f0a0ee3dc9e8836c31d24b77eabf61bcdd09e2c7
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
2
3         * ContainerControl.cs: Don't check CanSelect before calling
4         ProcessMnemonic.
5         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
6         release a KeyboardActive on click if it's not ours.
7
8 2007-05-23  Andreia Gaita  <avidigal@novell.com>
9
10         * ColumnHeader.cs: Add TypeConverter
11
12 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
13
14         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
15
16 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
17
18         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
19
20 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
21
22         * LinkLabel.cs: Implement public Padding property.
23
24 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
25
26         * LinkLabel.cs: Implement public FlatStyle.
27
28 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
29
30         * Control.cs: Apply patch from George to call parent.PerformLayout
31         when Visible is changed.  [Fixes bugs #81118, 81718]
32
33 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
34
35         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
36
37 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
38
39         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
40
41 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
42
43         * ContextMenu.cs: Implement Collapse.
44
45 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
46
47         * ToolBarButton.cs: Implement Name.
48
49 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
50
51         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
52         use current_item, it prevents some NRE. Fixes #81675.  
53
54 2007-05-22  Andreia Gaita  <avidigal@novell.com>
55
56         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
57         without updating the text.
58
59 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
60
61         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
62         without calling DeleteObject.  [Should fix bug #81709]
63
64 2007-05-22  Jackson Harper  <jackson@ximian.com>
65
66         * RichTextBox.cs: Set the line endings correctly, when flushing
67         RTF text.
68
69 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
70
71         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
72          {Width=0,Height=0}.
73
74 2007-05-22  Jackson Harper  <jackson@ximian.com>
75
76         * TreeView.cs: Setting top with a null node should set to the very
77         top.
78
79 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
80
81         * Form.cs: ShowDialog: destroy the handle when message loop is
82           finished, matches MS behaviour. Refactor parts of WmClose into
83           RaiseCloseEvents, that only raises events if they haven't already
84           been raised. Fixes #81688 and #81521.
85         * Application.cs: Don't call close on the form when exiting a modal
86           loop, it will raise all the (Form)Closed/Closing events again if
87           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
88           which doesn'r raise any events it they have been raised before.
89
90 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
91
92         * Control.cs: Add OnPrint.
93         * ToolStrip.cs: Add GetChildAtPoint.
94         * ToolStripContainer.cs: Add OnRightToLeftChanged.
95         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
96
97 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
98
99         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
100
101 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
102
103         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
104           isn't visible anymore. Fixes #81651.
105
106 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
107
108         * Control.cs: WmShowWindow: Update children's z-order after setting
109           their parent. SetParent may show the window, thereby corrupting
110           z-order, since the window will be shown on top.
111         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
112           multiple (and redundant) WM_SHOWWINDOW messages.
113         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
114           event has already been raised.
115         * Form.cs: Change is_changing_visible_state to a counter, since
116           SetVisibleCore can be called recursively. CreateHandle: when
117           creating mdi children, send (De)Activated events.
118         * MdiClient.cs: Update use of is_changing_visible_state.
119         * Application.cs: OnThreadException: Surround exception handling with
120           try/finally to ensure we always reset the error-handling state
121           before leaving.
122
123 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
124
125         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
126           (#81704).
127
128 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
129
130         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
131         SmallIcon views, now that we have a standarized horizontal spacing.
132
133         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
134         4, just like the other views (Match .Net).
135
136 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
137
138         * Control.cs: Delay calculating anchor distances until we actually layout.
139         Always query the WM for the actual size and location it put us at instead of
140         only when we send negative values.
141         [Fixes bugs #81694, 81695]
142
143 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
144
145         * Application.cs: Avoid a possible stack overflow when trying to exit
146           the application.
147
148 2007-05-19  Marek Safar  <marek.safar@gmail.com>
149
150         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
151         enum value.
152
153 2007-05-19  Andreia Gaita  <avidigal@novell.com>
154
155         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
156         * NumericUpDownAcceleration.cs, 
157           NumericUpDownAccelerationCollection.cs: Added 2.0
158           implementation.
159
160 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
161
162         * RichTextBox.cs: Recalculate the document after the ScrollBars
163         property is changed. Fixes bug #81681.
164
165 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
166
167         * DataObject.cs: Implement 2.0 methods.
168
169 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
170
171         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
172         in the center of the checkbox, not in the left-top corner. 
173         Fixes #80037.
174
175 2007-05-18  Jackson Harper  <jackson@ximian.com>
176
177         * RichTextBox.cs: Recalculate the document after the scrollbars
178         property is changed.
179         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
180         81486.
181
182 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
183
184         * CreateParams.cs: Make HasWindowManager marginally faster.
185         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
186           into Hwnd so that other drivers can use it as well.
187         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
188           the default location from Hwnd. Fixes MDI client windows always
189           showing up at (0,0) in Windows (Win32 won't set the default
190           location since the window styles aren't correct).
191
192 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
193
194         * TreeView.cs: Modified DoubleBuffered to just use the base
195         implementation.
196
197 2007-05-18  Jackson Harper  <jackson@ximian.com>
198
199         * TreeView.cs: Set the top node to the last child node when
200         expanding all
201         - When we get focus, if there is no selected node, use the top
202         node.
203
204 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
205
206         * KeysConverter.cs: Add CanConvertTo.
207         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
208         * LinkConverter.cs: Added.
209
210 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
211
212         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
213         it prevents error when file dont have write access. Fixes #81669 and #81667.  
214
215 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
216
217         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
218         button text. Fixes #79640.  
219
220 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
221
222         * Control.cs: According to MSDN controls created in the designer theres 
223         keyboard accelerators visible by default. So included check for design
224         in ShowKeyboardCuesInternal.  
225
226 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
227
228         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
229         text. Fixes #81621.  
230
231 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
232
233         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
234         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
235
236 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
237
238         * Control.cs: Finish implementation of UI State using WmChangeUIState
239         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
240         in some controls to check for show_keyboard_cues to draw accell keys "_".  
241
242 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
243
244         * ListBox.cs: When calculating the horizontal scrollbar
245         in single column mode, don't use values less than 0 for
246         Maximum. Fixes #81474.
247
248 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
249
250         * ListBox.cs: Throw the some missing exceptions in
251         ListBox.ObjectCollection methods.
252
253 2007-05-17  Jackson Harper  <jackson@ximian.com>
254
255         * TextBoxBase.cs: Recalculate the document when the word wrap
256         value has changed. This fixes 81488.
257
258 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
259
260         * Clipboard.cs: Implement missing GetText overload.
261
262 2007-05-17  Chris Toshok  <toshok@ximian.com>
263
264         * Control.cs (CheckDataBindings): remove the binding_context arg
265         to binding.Check.
266
267         * CurrencyManager.cs (OnItemChanged): fix this now that
268         BindingManagerBase is fixed. also remove the comment telling where
269         the fix should go.  We set transfering_data to true/false around
270         the call to PushData to keep UpdateIsBinding from being called.
271         (ListChangedHandler): remove the extra OnMetaDataChanged call for
272         PropertyDescriptorAdded in the 1.1 case.  The extra call is
273         actually generated by System.Data generating 2 metadata changed
274         events of its own per column add.  The fix should go there.  Add a
275         comment to that affect in our test's Assert.Ignore.
276
277         * BindingManagerBase.cs: Rework PullData and PushData slightly.
278         we keep a boolean flag (transfering_data) that keeps us from
279         calling UpdateIsBinding multiple times if we re-enter either of
280         them.
281
282         * ControlBindingsCollection.cs (AddCore): remove the
283         binding_context arg to binding.Check.
284
285         * Binding.cs (IsBinding): don't check if we're binding here, just
286         return our cached value.  we update it in UpdateIsBinding.
287         (Check): don't take the binding_context arg, we'll just use our
288         control's.  Also, for some reason MS doesn't use the data member
289         field when getting the bindingmanager for this binding.  it just
290         uses the datasource.  Make this method callable multiple times,
291         and only do the is_null_desc stuff if manager.Position != -1 (so
292         we don't get an exception accessing manager.Current).
293         (UpdateIsBinding): move the code from IsBinding here.
294         (PositionChangedHandler): call Check here to we can initialize
295         things that require a non- -1 position.
296
297 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
298
299         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
300         control.
301
302 2007-05-17  Andreia Gaita  <avidigal@novell.com>
303
304         * TabControl.cs: Add 2.0 methods and events, including
305         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
306         * TabPage.cs: Add 2.0 methods
307
308 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
309
310         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
311         keyboard_cues is properly handled by message method.  
312
313 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
314
315         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
316
317 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
318
319         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
320
321 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
322
323         * Control.cs: 
324         - WmUpdateUIState added to handle state changes, it make call to
325         OnChangeUICues event.
326         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
327         SystemInformation.
328
329 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
330
331         * ImageKeyConverter.cs: Added.
332         * TreeViewImageKeyConverter.cs: Added.
333
334 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
335         
336         * ToolTips.cs: Update Text if SetToolTip is called for a control
337         already showing the tooltip, as well as restarting its timer; show
338         tooltip if we are inside the control bounds by the time of calling
339         SetToolTip. Inside ShowTooltip remove the check to not show the 
340         tooltip again for the active control (it is allowed by .Net to 
341         show the tooltip on the same control multiple times).
342
343 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
344
345         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
346
347 2007-05-16  Andreia Gaita <avidigal@novell.com> 
348
349         * ContainerControl.cs: only process tab key if there are no 
350         modifier keys present, otherwise the control does the 
351         tab processing, if it needs to. Fixes #81622
352         * TabControl.cs: Fixes calculation for which tab to select on
353         shift+ctrl+tab.
354
355 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
356
357         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
358
359 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
360
361         * Control.cs: Make IsInputCharInternal to allow controls to
362         override it and still match MS API.
363         * TextBoxBase.cs: Override IsInputCharInternal and always
364         return true.
365         [Fixes bug #81616]
366
367 2007-05-15  Jackson Harper  <jackson@ximian.com>
368
369         * TextBox.cs: Disable some of the menu options when using a
370         readonly textbox.
371
372 2007-05-15  Jackson Harper  <jackson@ximian.com>
373
374         * TextBox.cs:
375         * TextBoxBase.cs:
376         * RichTextBox.cs: Some new 2.0 methods
377
378 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
379
380         * FileDialog.cs: On 1.0 profile, do not support multidotted 
381         extensions.
382
383 2007-05-14  Jackson Harper  <jackson@ximian.com>
384
385         * TextBoxBase.cs: Implement some of the new 2.0 methods.
386         * RichTextBox.cs: We need to override these methods on 2.0.
387         * MaskedTextBox.cs: These are implemented now
388         * TextControl.cs: This was off by one.
389
390 2007-05-14  Jackson Harper  <jackson@ximian.com>
391
392         * TextControl.cs: Because the line endings are including in the
393         text, we don't need to add them in anymore.
394
395 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
396
397         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
398         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
399
400 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
401
402         * ToolBar.cs: Adjust size to default size when button theres no text and
403         image, it fixes remaining issues from #81524.
404
405 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
406
407         * ToolBar.cs: 
408         - When not flat call redraw to recalculate sizes on creare handle to match
409         win32 behavior.
410         - Revert 77220 because it causes some regressions in toobar
411         button.
412
413 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
414
415         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
416           now actually enters a usable state.
417
418 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
419
420         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
421         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
422         3 buttons.
423
424 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
425
426         * ToolBar.cs: Save default_size on create handle to use later for buttons
427         without text, needed to mimic win32 behavior.
428
429 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
430
431         * ToolBar.cs: Fix button layour to best fit width or height according to
432         vertical or not. Fixes #81524.
433
434 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
435
436         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
437         toolbar size info because different styles theres different sizes.
438         Fixes #81522.
439
440 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
441
442         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
443         if we are using checkboxes, checked is true, and we have less
444         than two images in StateImageList; for the 1.1 in the same scenario
445         draw the first image if we have at least one image in StateImageList.
446         Fixes part of #81191.
447
448 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
449
450         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
451         the owner's Items collection on merge.
452
453 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
454
455         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
456         * ToolStripItemCollection.cs: Lots of fixes to when events get called
457         and parent/owner gets changed based on gert's unit tests.
458
459 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
460
461         * MaskedTextBox.cs: Started implementing parts of it.
462
463 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
464
465         * ListView.cs: When clicking the checkbox on the items
466         take into account the double clicks even if we have only
467         one image in StateImageList (only for 1.0/1.1). Also 
468         generate an extra change of checked state when we receive
469         the second click on checkbox (match .Net behaviour). 
470         Fixes part of #81191.
471
472 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
473
474         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
475
476 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
477
478         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
479         even if OnLoad is overriden and base.OnLoad is not called.
480         [Fixes bug #81582]
481
482 2007-05-10  Andreia Gaita  <avidigal@novell.com>
483
484         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
485         shame. (I blame my ever-persisting and annoying cold)
486
487 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
488
489         * ListView.cs: Don't eat navigation keys.  Let them flow through to
490         KeyDown/KeyPress routines.  [Fixes bug #81569]
491
492 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
493
494         * ListView.cs: When handling keys for selecting the item based off
495         keyboard input, do not consider keys pressed with Alt or Control.  Also,
496         correctly handle keys when the Shift key is down. [Fixes bug #81578]
497
498 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
499
500         * Control.cs: When using UseWaitCursor, we have to store the requested
501         Cursor to use when UseWaitCursor is turned off.
502
503 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
504
505         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
506         to false.
507         * Application.cs: Use PreProcessControlMessage instead of
508         PreProcessMessage.
509         * PreProcessControlMessage.cs: Make internal for 1.1.
510
511 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
512
513         * Control.cs: Add InternalContains focus property, which hast the same
514         functionality of ContainsFocus, but also including implicit controls.
515         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
516         since we need to know if the focus is contained in our implicit
517         ItemControl when calculating Layout. Fixes part of #80888.
518
519 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
520
521         * ToolTip.cs: Remove center form string alignment as it must be align to
522         left.
523
524 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
525
526         * ToolStripItemCollection.cs: Set the new item's parent and owner
527         in Insert like we do in Add.  [Fixes bug #81568]
528
529 2007-05-08  Jackson Harper  <jackson@ximian.com>
530
531         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
532         - Off by one error in SetTop
533         - Disable DoubeBuffering
534         
535 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
536
537         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
538           control as much as necessary in order to make it entirely visible,
539           instead of centering the control in the container (matches MS
540           behaviour). CalculateCanvasSize: we need to take the current scroll
541           position into account when calculating the maximum canvas,
542           otherwise the following scenario will fail: resize so that the
543           scrollbars appear, use the scrollbars to scroll, resize again
544           smaller, and now the canvas size is too small. Recalculate: when
545           showing scrollbars make sure they start off at 0, and try to scroll
546           the active control into view. Fixes #79540. HandleScrollBar: don't
547           scroll anywhere if the scrollbar isn't visible.
548
549 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
550
551         * ListView.cs: When focus changed, call Layout/Invalidate
552         in the focused item to update the selected state (should show
553         entire label when ListView is focused, and a part of it if is not).
554         * ListViewItem.cs: When doing layout for LargeIcon, take into account
555         for displaying the entire label not only the Focused state of the
556         item, but also the Focused state of the ListView (match .Net
557         behaviour).
558
559 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
560
561         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
562         Implement UseWaitCursor. 
563
564 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
565         Applying contributed patch from Sergey Volk.
566
567         * Clipboard.cs: Implement SetDataObject retry logic and new overload
568         of SetDataObject.
569         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
570
571 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
572
573         * Control.cs: Implement DrawToBitmap.
574
575 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
576         Applying contributed patch from Stefan Noack.
577         
578         * Control.cs: Add [Get|Set]AutoSizeMode.
579
580 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
581
582         * MdiClient.cs: Unmerge menus when the last child is closed.
583
584 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
585
586         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
587         * ToolStripManager.cs: Call Merge on DropDowns.
588         [Fixes bug #81477]
589
590 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
591
592         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
593           uints.
594         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
595           visibility. We can't create forms visible, since we have to set the
596           owner before making the form visible (otherwise Win32 will do
597           strange things with task bar icons). The problem is that we set the
598           internal is_visible to true before creating the control, so
599           is_changing_visible_state is the only way of determining if we're
600           in the process of creating the form due to setting Visible=true -
601           this works because SetVisibleCore explicitly makes the form
602           visibile afterwards anyways. Fixes #80775.
603
604 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
605
606         * ThemeWin32Classic.cs: When drawing ListViewItems,
607         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
608         or LargeIcon _and_ item is not focused (match .Net behaviour).
609
610 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
611
612         * Control.cs, Form.cs: Fix some obsolete method warnings.
613
614 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
615
616         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
617         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
618
619 2007-05-04  Andreia Gaita  <avidigal@novell.com>
620
621         * ContainerControl.cs: Fix active_control attribution when going
622         up the parent chain so that the first parent container gets the control
623         and the rest of the parent containers get the child containers (skips
624         non-containers). Fixes #80729
625
626 2007-05-04  Randolph Chung  <tausq@debian.org>
627
628         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
629         [Fixes bug #81499]
630
631 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
632
633         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
634           takes a size parameter, since the CreateParam's size isn't true for
635           minimized forms. Fixes #81518,
636
637 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
638
639         * Form.cs: Add OnDeactivateInternal.
640         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
641
642 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
643
644         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
645           accessing the parent. Fixes #81508.
646
647 2007-05-03  Chris Toshok  <toshok@ximian.com>
648
649         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
650         2.0 block, pass listposition + 1 to ChangeRecordState when a row
651         was added before the current listposition.  Fixes the
652         TestInsertRowBeforeCurrent unit test.
653
654 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
655
656         * Application.cs: Add RaiseIdle.
657         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
658         XplatUIX11.cs: Implement RaiseIdle.
659
660 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
661         corcompare work: N - Z
662         * NotifyIcon.cs
663         * ProgressBar.cs
664         * RadionButton.cs
665         * ScrollableControl.cs
666         * SplitContainer.cs
667         * SplitterPanel.cs
668         * StatusBar.cs
669         * SystemInformation.cs
670         * TabControl.cs
671         * TableLayoutControlCollection.cs
672         * TableLayoutPanel.cs
673         * TabPage.cs
674         * ToolBar.cs
675         * ToolBarButton.cs
676         * ToolStrip.cs
677         * ToolStripComboBox.cs
678         * ToolStripContainer.cs
679         * ToolStripContentPanel.cs
680         * ToolStripDropDown.cs
681         * ToolStripDropDownItem.cs
682         * ToolStripDropDownMenu.cs
683         * ToolStripItem.cs
684         * ToolStripItemCollection.cs
685         * ToolStripMenuItem.cs
686         * ToolStripPanel.cs
687         * ToolStripSplitButton.cs
688         * ToolTip.cs
689         * TreeNode.cs
690         * TreeNodeCollection.cs
691         * TreeNodeMouseHoverEventArgs.cs
692         * TreeView.cs
693
694 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
695
696         * ContextMenu.cs: Add public method Show with alignment property to 2.0
697         stuff. Thanks aatdark for the patch. 
698
699 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
700
701         * GridItem.cs: Implement 2.0 Tag property.
702
703 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
704
705         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
706         count instead of Nodes.Length.  [Fixes bug #81448]
707
708 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
709
710         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
711         [Fixes bug #81506]
712
713 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
714         corcompare work: A - M
715         * BindingNavigator.cs
716         * Button.cs
717         * ButtonBase.cs
718         * CheckBox.cs
719         * Control.cs
720         * FlowLayoutPanel.cs
721         * Form.cs
722         * Label.cs
723         * LinkLabel.cs
724         * ListView.cs
725
726 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
727
728         * Application.cs: Give toolstrips a chance to process mnemonics.
729         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
730         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
731         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
732
733 2007-05-01  Jackson Harper  <jackson@ximian.com>
734
735         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
736         wider area too.
737         - Don't set the BoundsSpecified
738
739 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
740
741         * Application.cs: When using the toolstrip shortcut mechanism, allow the
742         message to pass through to a regular control if it hosted by a toolstrip.
743         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
744         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
745
746 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
747
748         * TextRenderer.cs: Use the flags argument when using the MeasureString
749         fallback algorithm.
750
751 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
752
753         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
754         the MDI menu item.  [Fixes bug #81483]
755
756 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
757
758         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
759         string. When setting Name to null, use zero-length string instead.
760
761 2007-04-29  Andreia Gaita  <avidigal@novell.com>
762
763         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
764         DeselectTab). Implement missing 2.0 TabPageCollection methods
765         (Add, ContainsKey, RemoveByKey, IndexOfKey)
766
767 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
768
769         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
770
771 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
772
773         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
774         Fixes bug #81479. Include details of exception when LoadFile fails.
775
776 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
777
778         * DrawListViewSubItemEventArgs.cs: Added missing setter
779
780 2007-04-27  Andreia Gaita  <avidigal@novell.com>
781
782         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
783         Hide methods (not complete). Implement missing 2.0 OnPopup event.
784
785 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
786
787         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
788         removed in ly last commit (it was breaking the Label edit feature).
789
790         * ThemeWin32Classic.cs: When drawing a ListViewItem use
791         StringAlignment.Near for LineAlignment (match .Net).
792
793 2007-04-27  Andreia Gaita  <avidigal@novell.com>
794
795         * TabControl.cs: Change SetTab so it adds the tabpage to the list
796         of controls if it isn't already there - was blowing up when doing
797         tabcontrol.TabPages[i]=new TabPage(). 
798         SetTab now does a replace by removing the page at the index. 
799         Add a new InsertTab method that inserts a page in a given index 
800         instead of replacing. 
801         Implements TabPageCollection.Insert(int, TabPage).
802
803 2007-04-27  Chris Toshok  <toshok@ximian.com>
804
805         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
806         internal handler that can be invoked from our subclasses.)  Also,
807         add a comment to PushData about how we need to fix it.
808
809         * CurrencyManager.cs: tons of changes here.  trying to get things
810         matching the behavior of .net wrt event orders (ItemChanged,
811         CurrentChanged, PositionChanged.)  I've implemented a private .net
812         symbol (ChangeRecordState) that appears in stack traces because
813         it's actually easier to do this than to effective inline all its
814         various behaviors at every call site.
815
816         * RelatedPropertyManager.cs: guard against an exception here by
817         not using parent.Current if the position is set to -1 (if the
818         parent datasource is cleared, for instance).
819
820         * Binding.cs: don't parse data in PushData (this might be wrong,
821         but it jives with MS's behavior.)  Also, don't call PushData when
822         we get a CurrentChanged event.
823
824 2007-04-27  Andreia Gaita  <avidigal@novell.com>
825
826         * WebBrowser.cs,
827           WebBrowserBase.cs,
828           WebBrowserSiteBase.cs,
829           HtmlDocument.cs: Added stubbed out classes, no real implementations 
830           yet.
831
832 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
833
834         * MainMenu.cs: In draw method without parameters call draw method with 
835         PaintEvent, another one (just rect) adjust rectangle and we dont need it
836         as Rect property is already adjusted. Fixes #80694.
837
838 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
839
840         * Application.cs: Need to handle keyboard menu deselection here.
841         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
842         navigation, allowing keyboard to work on X11.
843         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
844
845 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
846
847         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
848         menu bar. It fixes some drawing issues in menu bar.
849
850 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
851
852         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
853         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
854         when <alt> key is pressed.
855
856 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
857
858         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
859         example just set visible to false and make this prevent from other problems.
860         In SystrayAdd always remove pending expose. Fixes #81072.
861
862 2007-04-26  Marek Safar  <marek.safar@gmail.com>
863
864         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
865         value is set.
866
867 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
868
869         * ListView.cs: Added three missing 2.0 events and corresponding
870         EventHandlers. Added the OwnerDraw property.
871         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
872
873 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
874
875         * DrawListViewItemEventArgs.cs
876         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
877
878 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
879
880         * TextControl.cs: Fixed typo in constructor
881
882 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
883
884         * Application.cs: Create a shortcut path so that currently selected
885         MenuStrips can intercept keyboard events without having focus.
886         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
887         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
888         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
889         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
890         generate WM_SYSCOMMAND message in X11 for other platforms.
891         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
892         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
893         * ToolStripSplitButton.cs: Add DefaultItem property.
894         
895 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
896
897         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
898         fixes some menu draw problem on Windows with border diferent from default
899         it also fixes #81403.
900
901 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
902
903         * Form.cs: Refactor WndProc into separate methods, just like Control is
904           doing it.
905
906 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
907
908         * Control.cs: set_Text: move the call to the driver into a seperate
909           virtual method so that Form can override it.
910         * MaskedTextBox.cs: Corcompare fixes.
911         * Form.cs: Override UpdateWindowText and only update the styles if the
912           form has been shown (fixes #81405).
913
914 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
915
916         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
917         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
918         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
919         the form lost focus or another control was clicked.
920
921 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
922
923         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
924         fixed.
925
926 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
927
928         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
929           DrawListViewItemEventHandler.cs,
930           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
931           Added.
932         * X11Structs.cs: More ToString implementation.
933
934 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
935
936         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
937         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
938
939 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
940
941         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
942           handle.
943         * FormCollection.cs: Don't add a form if it's already in the
944           collection.
945         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
946           according to behaviour and MSDN. The ownerWin32 is the active
947           window at the moment when we call ShowDialog, not the context's
948           main form (the context's main form may open another form that opens
949           a form with ShowDialog, the win32 owner is the second form). Add
950           and remove forms to the Application.OpenForms in other places to
951           better match MS behaviour. Add an IsActive property that raises
952           On(de)Activated only if the active state has changed (we were
953           raising OnDeactivated before OnActivated while creating forms).
954         * Application.cs: Refactor Enabling/Disabling of windows for modal
955           dialog loops out to separate methods, and restore the thread
956           context when we quit the method. Fixes #81407.
957
958 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
959
960         * ListView.cs: In ItemControl.HandleClicks, also fire 
961         2.0 MouseClick or MouseDoubleClick events on the parent,
962         not only the Click/DoubleClick events.
963
964 2007-04-24  Andreia Gaita  <avidigal@novell.com>
965
966         * TableLayoutSettings.cs: 
967         - Added a GetControls method and a support structure to help the 
968         TypeConverter to enumerate the controls for     serialization. 
969         - Added a new serialization constructor. 
970         - Added a isSerialized flag initialized to true on the 
971         serialization constructor so that the TableLayoutPanel.LayoutSettings 
972         setter does not throw the designed NotSupportedOperation exception
973         when the object is built through deserialization.
974         - Implemented GetObjectData
975         
976         * TableLayoutPanel.cs: Added check on LayoutSettings.
977
978 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
979
980         * ListView.cs: Report Click and DoubleClick events to the parent
981         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
982         from breaking the click count state when using dialog forms (Control
983         reports the clicks in a similar fashion). In the previous behaviour
984         the last WM_LBUTTONUP message in a  double click was sent to the
985         ListView's form, instead of the ListView, which was breaking the click
986         count for it. Fixes #80387.
987
988 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
989
990         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
991
992 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
993
994         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
995         us from created dropdowns for menu items that do not have subitems.
996         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
997         Check HasDropDownItems before calling DropDown so a dropdown will not be
998         created if it isn't needed.
999
1000 2007-04-24  Jackson Harper  <jackson@ximian.com>
1001
1002         * TreeView.cs: Set the first node to the selected node when we get
1003         focus if there is no selected node.
1004
1005 2007-04-24  Andreia Gaita  <avidigal@novell.com>
1006
1007         * MimeIcon.cs: remove using blocks so that image streams are
1008         not disposed of. Fixes #80151
1009
1010 2007-04-24  Jackson Harper  <jackson@ximian.com>
1011
1012         * TextBoxBase.cs: Fixup the height of textboxes when the control
1013         is created.
1014
1015 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
1016
1017         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
1018         for each ToolStripItem when the parent's RightToLeftChanged is called.
1019
1020 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1021
1022         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
1023           Fixes #80163.
1024         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
1025           property, so that the setter can be overriden too.
1026         * TextBox.cs: Change GetContextMenuInternal() to use
1027           ContextMenuInternal.
1028
1029 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1030
1031         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1032           #81406.
1033
1034 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1035
1036         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1037           #81406.
1038
1039 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1040
1041         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
1042           avoid duplicate work. Mostily skeleton code, it's not working at
1043           all yet.
1044
1045 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
1046
1047         * NotifyIcon.cs : stub for MouseClick event
1048         * Application.cs: stub for SetUnhandledExceptionMode
1049
1050 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
1051
1052         * BindingNavigator.cs : Initial (partial) implementation
1053
1054 2007-04-23  Jackson Harper  <jackson@ximian.com>
1055
1056         * TreeView.cs: Do not create the treeview's handle when setting
1057         the scroll position.
1058         - ExpandAll needs to compute the scrollbars so it knows which
1059         position to set the bar too.
1060         * TreeNode.cs: 
1061         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
1062
1063 2007-04-23  Jackson Harper  <jackson@ximian.com>
1064
1065         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
1066         key. Fixes #81408.
1067
1068 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
1069
1070         * ToolStripItem.cs: Make GetImageSize internal.
1071         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
1072         need to draw an item.  Fixes a reported issue where images on menus
1073         that were not 16x16 were drawing incorrectly.
1074
1075 2007-04-21  Miguel de Icaza  <miguel@novell.com>
1076
1077         * Padding.cs: Use the converter, fixes the resgen2 issue with
1078         XMLNotePad. 
1079
1080 2007-04-21  Jackson Harper  <jackson@ximian.com>
1081
1082         * TreeView.cs: Dont try to unhighlight the selected node if there
1083         isn't a selected node.
1084
1085 2007-04-21  Jackson Harper  <jackson@ximian.com>
1086
1087         * UpDownBase.cs:
1088         * TextBoxBase.cs:
1089         * ListView.cs:
1090         * ListBox.cs:
1091         * TreeView.cs: Use the InternalBorderStyle property to set the
1092         initial border style, this forces the client rectangle to be sized
1093         correctly.
1094
1095 2007-04-20  Jackson Harper  <jackson@ximian.com>
1096
1097         * TreeView.cs: Simplify scrolling to the last node after expanding
1098         all.
1099         - Fix some off by ones with setting the bottom.
1100
1101 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1102
1103         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
1104         that.  We were incorrectly doing it the other way around.  Also,
1105         update ClientSize if we change the BorderStyle before the control
1106         is created.
1107
1108 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1109
1110         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1111         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1112         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
1113         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1114         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1115         Caption to CaptionHeight.
1116         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
1117         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
1118         and FixedFrameBorderSize to return value from current XplatUI driver.
1119         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
1120         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
1121         and FixedFrameBorderSize using win32 API. Renamed Caption to
1122         CaptionHeight.
1123         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
1124         * SystemInformation.cs: Fixed typo in BorderSize.
1125
1126 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1127
1128         * XplatUI.cs: Added MenuAccessKeysUnderlined.
1129         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
1130         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
1131         returning false.
1132         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
1133         value from XplatUI driver.
1134         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
1135         SystemParametersInfo.
1136         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
1137         override.
1138         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
1139         returning false.
1140
1141 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1142
1143         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
1144
1145 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1146
1147         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
1148
1149 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1150
1151         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
1152         MenuStrips that contain ToolStripSeparators.
1153
1154 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1155
1156         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
1157           DefineStdCursorBitmap.
1158         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
1159           has been created off a standard cursor. This is used to get a
1160           bitmap of the standard cursor when Draw or DrawStretched is called
1161           in order to draw the cursor.
1162         * X11Structs.cs: Added XcursorImage and XcursorImages.
1163         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
1164           DefineStdCursorBitmap.
1165         * Cursors.cs: Update all relevant creations of Cursor to use the new
1166           internal constructor.
1167
1168 2007-04-19  Jackson Harper  <jackson@ximian.com>
1169
1170         * TextBox.cs: Move the has_been_focused into the base control, so
1171         some of the text adding methods can manipulate it (probably time
1172         for a better name for this flag too).
1173         - Call a new version of selectall that doesn't scroll
1174         * TextBoxBase.cs: When we append text, if the document is empty,
1175         don't scroll.  If the document has text already, we scroll to the
1176         end of the appended text.
1177         - When the text is changed, we reset the has_been_focused, so the
1178         next time the control gets focused, all the text is selected.
1179
1180 2007-04-19  Jackson Harper  <jackson@ximian.com>
1181
1182         * TextControl.cs: Move the margins to the document, add a method
1183         so the margin sizes can be updated.
1184         * TextBoxBase.cs: When the border style is changed, update the
1185         border sizes.
1186
1187 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
1188
1189         * Control.cs: Respect DefaultPadding.
1190         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
1191         padding into account.
1192         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
1193
1194 2007-04-19  Jackson Harper  <jackson@ximian.com>
1195
1196         * TextControl.cs: Oops, we need to use the ClientRect not the
1197         bounds here.
1198
1199 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1200
1201         * ListView.cs: In ItemControl.ItemsMouseDown, take into
1202         account the double clicks when CheckBoxes are used and
1203         the pointer is inside the checkbox. Fixes part of #81191.
1204
1205 2007-04-18  Jackson Harper  <jackson@ximian.com>
1206
1207         * TextControl.cs: Pressing the end key shouldn't move the caret
1208         past the line ending.
1209         * TextBoxBase.cs: We can still delete if we are in the line
1210         ending and the combine will just kill the existing line ending.
1211
1212 2007-04-18  Jackson Harper  <jackson@ximian.com>
1213
1214         * TextControl.cs: We can't move lines, then invalidate their
1215         bounds, we need to get the old bounds and combine that with the
1216         new bounds.
1217         * TextBoxBase.cs: Before combining two lines for a delete, we need
1218         to invalidate the area of the old line, since that will be moved
1219         in the combine operation.
1220
1221 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
1222
1223         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
1224         with transparent background. Fixes #80482.
1225
1226 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
1227
1228         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
1229         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
1230         [Fixes bug #81391]
1231
1232 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1233
1234         * CreateParams.cs: Add a couple of helper methods and do a less string
1235           concatenation in ToString.
1236         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
1237           overload that takes a Control parameter, since this method may be
1238           called before a control is assigned to the hwnd (from
1239           CreateWindow), and update CreateWindow to use the new overload. In
1240           GetMenuOrigin subtract the title bar from the y position if the
1241           form has a window manager (since we're painting it and not X).
1242         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
1243           CreateParams to calculate the origin (since border sizes may vary).
1244           In ScreenToMenu only subtract the title height if we actually have
1245           a title.
1246         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
1247           mdi children never have menus of themselves.
1248         * InternalWindowManager.cs: Implement menu handling like form does.
1249           Added GetMenuOrigin to calculate the menu origin, can't use the
1250           CreateParams from the form like normally since it's lying.
1251         * Hwnd.cs: Implement GetBorderSize better (in the sense more
1252           windows-like) and add Inflate and comparison operators to the
1253           Borders type. When calculating MenuOrigin and it's a form with a
1254           window manager, use the window manager to calculate it.
1255
1256 2007-04-17  Chris Toshok  <toshok@ximian.com>
1257
1258         * Control.cs (CreateControl): turns out in 2.0 we don't need this
1259         OnBindingContextChanged thing here.  It's only generated from
1260         ContainerControl.OnCreateControl.  Fixes a newly written unit test
1261         - BindingTest.BindingContextChangedTest4.
1262         
1263 2007-04-17  Jackson Harper  <jackson@ximian.com>
1264
1265         * ScrollBar.cs: When setting values, make sure the current
1266         position stays within the new values range.
1267
1268 2007-04-17  Chris Toshok  <toshok@ximian.com>
1269
1270         * Control.cs (CreateControl): talk about a bizarre corner case.
1271         Don't emit OnBindingContextChanged here if we're a parentless
1272         control (i.e. if we're a form.).  Fixes
1273         BindingTest.BindingContextChangedTest2.
1274
1275 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1276
1277         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
1278         from win32. Fixes #81255.
1279
1280 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1281
1282         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
1283         already present in CalculateButtonTextAndImageLayout.
1284
1285 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1286
1287         * XplatUIX11.cs: When setting min/max size for a window we need to
1288           translate the coordinates to x coordinates. Create an overload of
1289           SetWindowMinMax that takes a CreateParams handling this, and change
1290           SetWMStyles to call this function (can't use Control.FromHandle in
1291           the SetWindowMinMax to get the control/CreateParams from the handle
1292           because the handle might not have been assigned to the control
1293           yet). Fixes #81371.
1294
1295 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1296
1297         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
1298         if StateImageList is non-null and it has less than two items (match MS
1299         behaviour). Also, in HandleNavKeys handle the Space key, calling
1300         the new ToggleItemsCheckState method, which tries to change the
1301         checked state of the selected items. Fixes part of #81191.
1302
1303 2007-04-16  Jackson Harper  <jackson@ximian.com>
1304
1305         * RichTextBox.cs: namespace cleanup.
1306
1307 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1308
1309         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
1310
1311 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1312
1313         [Fixes #79447]
1314         * Control.cs: Call invalidate in set_Region.
1315
1316         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
1317         it dont works here.
1318
1319 2007-04-16  Jackson Harper  <jackson@ximian.com>
1320
1321         * TextBoxBase.cs: When enter is pressed, we need to update all
1322         lines below the current.
1323
1324 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
1325
1326         * MdiClient.cs: Implement implicit menu merging for MDI
1327         children.  When a child form is active, if it has a menustrip
1328         and the parent form has a MainMenuStrip, automatically merge
1329         the menus.
1330
1331 2007-04-15  Andreia Gaita  <avidigal@novell.com>
1332
1333         * TabControl.cs: Refactored sizing methods to not repeat
1334         code all over the place. Tab bounds are now calculated
1335         as if alignment is top and single line, and only when 
1336         setting the bounds are the positions adjusted according
1337         to alignment. Replaced hardcoded positions, spacings and
1338         paddings by getting the values the ThemeEngine. 
1339         Fixes #79619.
1340         
1341         * Theme.cs: Change TabControl properties and methods so
1342         that all start with TabControl*. Added more properties
1343         to help remove hardcoded values on tabcontrol.
1344         Add CPDrawBorder3D declaration so the Theming classes
1345         can access it.
1346         
1347         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
1348
1349         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
1350         on the Theming namespace, and call the appropriate methods here.
1351         Change CPDrawBorder3D to public.
1352
1353 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1354
1355         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
1356         the control after firing the OnMouseUp event, instead of sending
1357         the message before the mentioned event. This is so we can match the
1358         MS behaviour. Fixes part of #80385.
1359
1360 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1361
1362         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
1363         RightToLeft property.
1364
1365 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1366
1367         * ToolStrip.cs: Add properties and internal methods to support merging.
1368         * ToolStripItem.cs: Add MergeAction and MergeIndex.
1369         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
1370         not trigger reparenting or layouts.
1371         * ToolStripManager.cs: Add Merge and RevertMerge methods.
1372         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
1373         is hosting the overflow menu.
1374
1375 2007-04-13  Jackson Harper  <jackson@ximian.com>
1376
1377         * TextControl.cs: Set the line ending correctly for the first
1378         inserted line.
1379
1380 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
1381
1382         * Theme.cs: Update GetMethod to get the new definition for 
1383         KnownColors.Update (and fix theme color updates).
1384
1385 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
1386
1387         * MessageBox.cs: Fix some test and button position.
1388
1389 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1390
1391         * Form.cs: Consider the implicit controls in
1392         GetRealChildAtPoint. We need it since this method
1393         is called on Form when handling the some messages in
1394         WndProc, and need to consider those implicit ones too.
1395         Fixes #80385.
1396
1397 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
1398
1399         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
1400         if there are no ShortcutKeys set.
1401         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
1402         set, use it when painting.
1403
1404 2007-04-12  Jackson Harper  <jackson@ximian.com>
1405
1406         * TextControl.cs: Fix some off-by-one issues in line duplication
1407         and insertion in the undo manager. Also, overwrite the first tag
1408         of a line on insert, if it is just a zero lengthed tag. This
1409         prevents us from getting an extra stranded tag at the beginning of
1410         the first line.
1411
1412 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
1413
1414         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
1415         to calculated proper size including when handle was not created yet.
1416
1417 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1418
1419         * MdiWindowManager.cs: When moving a form, allow the form to be moved
1420           when the mouse is outside of it's parent's client rectangle. Fixes
1421           #79982 (take 3, part 2).
1422
1423 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1424
1425         * X11Structs.cs: Add a few ToString() overrides.
1426         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
1427           the window location in a window-manager independent way. Reworked
1428           FrameExtents, it now actually works. Reworked AddConfigureNotify
1429           and ReparentNotify handling to use GetTopLevelWindowLocation
1430           instead of the earlier, more hacky solution. Reworked SetWMStyles,
1431           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
1432           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
1433           for all other windows (fixes #81281 part 1), a toolwindow is hidden
1434           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
1435           and generally refactored to do as few calculations as possible
1436           inside the lock.
1437
1438 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
1439
1440         * Theme.cs: Change "reflective-contract" between MWF and SD to 
1441         minimize # of calls, avoid Color serialization and avoid updating 
1442         every "known colors" each time a single one is updated.
1443
1444 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1445
1446         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
1447         when not readonly and the text is explicitly set. Code style updates.
1448         * DataGridTableStyle.cs: Removed extra line.
1449         * DataGrid.cs: Code style updates. Removed extra whitespace.
1450         * DataGridColumnStyle.cs: Code style updates. Removed extra 
1451         whitespace.
1452
1453 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1454
1455         * XplatUIX11.cs: Added comment that "fixes" #80021.
1456
1457 2007-04-09  Jackson Harper  <jackson@ximian.com>
1458
1459         * TextControl.cs: We don't need this -1 on the line count anymore.
1460
1461 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1462
1463         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
1464         entered value to underlying type, and convert it back to a string to
1465         apply formatting. Modified GetFormattedValue to use TypeConverter
1466         if available.
1467
1468 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
1469
1470         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
1471         Use SubItems property when we want to ensure there's at least one
1472         subitem. Modified SubItems property to ensure there's always at least
1473         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
1474         the NRE's reported by MS.
1475
1476 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
1477
1478         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
1479         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
1480         Spaces to tabs. Removed extra tabs.
1481
1482 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
1483
1484         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1485         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
1486
1487 2007-04-06  Jackson Harper  <jackson@ximian.com>
1488
1489         * TextBoxBase.cs: When a delete removes a line, recalculate all
1490         lines below that line (they need to get offsets setup correctly)
1491         and invalidate.
1492
1493 2007-04-05  Jackson Harper  <jackson@ximian.com>
1494
1495         * TextControl.cs: We need to invalidate across the width of the
1496         document when we are invalidating multiple lines.
1497         * TextBoxBase.cs: Don't delete into the line ending.
1498
1499 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500
1501         * ListView.cs: Restore the check for the MouseHover event
1502         in ListView. It looks like the ListView fires more than one MouseHover
1503         event when HoverSelection is true  _only_ in weird-corner scenarios, but
1504         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
1505         event.
1506
1507 2007-04-05  Mike Kestner  <mkestner@novell.com>
1508
1509         * ListView.cs : raise MouseDown before updating selection.
1510         [Fixes #80373 tab 1&3]
1511
1512 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1513
1514         * ToolStripRenderer.cs: Add static method to mirror image.
1515         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
1516         and RightToLeftAutoMirrorImage.
1517         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
1518
1519 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1520
1521         * ToolStripSplitStackLayout.cs: Support Alignment property.
1522         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
1523
1524 2007-04-05  Jackson Harper  <jackson@ximian.com>
1525
1526         * TextControl.cs: Move around the line endings when crossing line
1527         boundaries.
1528         - When combining lines, strip the ending text off the first line.
1529
1530 2007-04-05  Jackson Harper  <jackson@ximian.com>
1531
1532         * TextControl.cs:
1533         * TextBoxBase.cs: Try to never move the cursor into the line
1534         ending.
1535         
1536 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1537
1538         * ToolStripItem.cs: Make sure we aren't firing mouse events when
1539         the item is disabled.  Also add a few missing methods.
1540
1541 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1542
1543         * ListView.cs: We don't need the MouseEnter/MouseLeave check
1544         to fire just one MouseHover event when HoverSelection is true, since
1545         .Net does fire more than one MouseHover event in that scenario. Also,
1546         fix the selection in HoverSelection, by invoking UpdateMultiSelect
1547         if MultiSelect is true, instead of only setting ListViewItem.Selected.
1548         Finally, we need to reset the Hover logic in MouseMove, even when we
1549         don't have a selected item.
1550
1551 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1552
1553         * ToolStrip.cs: Add several missing methods, properties, and events.
1554
1555 2007-04-04  Chris Toshok  <toshok@ximian.com>
1556
1557         * DataGridTextBoxColumn.cs: set the bounds of the text box to
1558         (0,0,0,0) in Commit, as MS does.
1559
1560         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
1561         make sure we set CurrentRow on a row header click *before* calling
1562         Select.  This moves the current cell (and the textbox) to the new
1563         row.  The call to Select then hides the textbox, giving us the
1564         correct behavior.  Fixes #80362.
1565
1566         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
1567         (ListChangedHandler): reorder the position/current changed events,
1568         and call UpdateIsBinding in the ItemAdded case.
1569
1570         * GridColumnStylesCollection.cs: add some columns events, one of
1571         which raises the CollectionChanged event.
1572
1573 2007-04-04  Jackson Harper  <jackson@ximian.com>
1574
1575         * TextControl.cs: When we delete multiple selection lines
1576         invalidate the selection area, don't need to do that for single
1577         lines because the final update view will handle it.
1578
1579 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1580
1581         * Control.cs: When we CreateControl, we need to also create all of the
1582         control's children.  The child's OnLoad must also fire before the parent's
1583         OnLoad.  Fixes the toolbox size in PDN.
1584
1585 2007-04-04  Jackson Harper  <jackson@ximian.com>
1586
1587         * TextBoxBase.cs: When the user presses enter, insert a line
1588         ending into the text. (Maybe this would be a good spot for
1589         Environment.NewLine).
1590         * TextControl.cs: Remove undo manager hack, line endings get
1591         inserted properly now.
1592         
1593 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1594
1595         * MenuAPI.cs: 
1596         - Remove unneeded parameters in UpdateCursor.
1597         - Fix UpdateCursor to check if menu is active.
1598         - Call UpdateCursor when menu deactivate my click.
1599         [Fixes remaining issues from #80410]
1600
1601 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1602
1603         * Control.cs: GetRealChildAtPoint method added, it make an
1604         recursive child control search for the point. 
1605
1606         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
1607         menu.
1608
1609         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
1610
1611 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1612
1613         * Form.cs: Fix mouse position when send back mouse event after closes
1614         menu.
1615
1616 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1617
1618         * Form.cs: Simplify the BUTTONDOWN for active tracker.
1619
1620 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1621
1622         * Control.cs: Fix an issue where if a user resized a control inside
1623         a sizing method like OnResize, we would overwrite their explicit
1624         value.  Also, only call DefaultSize once in the constructor instead
1625         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
1626         nothing actually changed.
1627
1628 2007-04-03  Jackson Harper  <jackson@ximian.com>
1629
1630         * TextControl.cs: Don't attempt to copy text for lines with no
1631         text in them (technically this shouldn't happen, but we aren't
1632         always inserting line endings when we should be).
1633
1634 2007-04-03  Jackson Harper  <jackson@ximian.com>
1635
1636         * TextBoxBase.cs: Calculate the scrollbars before calculating the
1637         document, because this sets some of the document size properties
1638         that are needed.
1639
1640 2007-04-03  Jackson Harper  <jackson@ximian.com>
1641
1642         * TextBoxBase.cs: We need to calculate maximums even if this is
1643         not a multiline control, because the maxs are used for scrolling.
1644         - Display the caret after doing a page up/down, we need to
1645         manually display it because a proper CaretMoved event isn't
1646         triggered (this is because of the way the math is done to
1647         determine how far to scroll).
1648
1649 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1650
1651         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
1652         (ToolBar was relying on SetBoundsCore to default the values sent 
1653         base off of BoundsSpecified.)
1654
1655 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1656
1657         * DateTimePicker.cs: Change Text so that when a null value or empty
1658           string is assigned to the test we always raise ValueChanged and
1659           TextChanged (earlier implementation would only raise ValueChanged
1660           if the current date value was different from DateTime.Now).
1661
1662 2007-04-03  Andreia Gaita <avidigal@novell.com> 
1663
1664         * ButtonBase: Call update after invalidation, fixes #80194
1665
1666 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1667
1668         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
1669           #79335.
1670
1671 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1672
1673         * XplatUIX11.cs: SetWMStyles: If the control is a form with
1674           FormBorderStyle = None, don't give the window any decorations.
1675           Fixes #81276.
1676
1677 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1678
1679         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1680         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
1681           to check for is a mix of several styles (such as WS_CAPTION for
1682           instance).
1683         * Control.cs: Don't paint an area bigger than the client area when
1684           painting the background colour. Add an internal GetCreateParams.
1685           Update calls to XplatUI.CalculateWindowRect due to API change.
1686         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
1687           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
1688           the size if it hasn't been handled by any windows. When creating
1689           and moving windows, X wants the location of the entire window, but
1690           the size of the client window, so add
1691           TranslateClientRectangleToXClientRectangle,
1692           TranslateWindowSizeToXWindowSIze and
1693           TranslatedXWindowSizeToWindowSize to cope with this, and call them
1694           before every window creation and move. Update CalculateWIndowRect
1695           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
1696           In AddConfigureNotify don't do anything if the hwnd is a zombie
1697           (fixes the BadWindow we were getting while running the tests),
1698           always calculate the offsets when it's a parentless window, not
1699           only when reparented, and translate the window size, since we're
1700           getting the client size of the whole window, excluding entire
1701           window.
1702         * Theme.cs: Added BorderSizableSize.
1703         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1704           anymore. Update calls to XplatUI.CalculateWindowRect due to API
1705           chang
1706         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
1707           change. Fake the window styles here instead of in XplatUIWin32 so
1708           that all back-ends get the same window styles (and it's Form that's
1709           deciding when to use wm, not the Win32 backend anyways)
1710         * Hwnd.cs: Completely reworked GetWindowRectangle and
1711           GetClientRectangle - they are now passed a CreateParams and they
1712           only use Style and ExStyle to determine the rectangles (they should
1713           now work just like Win32AdjustWindowRectEx - though quite a few
1714           special cases are probably missing). They should also be 100%
1715           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
1716           == rect), and all numbers (borders, menu sizes) are taken from the
1717           current theme. Added a GetBorders helper function that will return
1718           the borders for any given CreateParams (including captions and
1719           menus), and GetBorderSize that returns the given border size only.
1720         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1721           Hwnd.GetClientRectangle.
1722
1723 2007-04-02  Chris Toshok  <toshok@ximian.com>
1724
1725         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
1726         logic between the values we present to the user and the values
1727         which are stored in the column's property.  Also, don't call
1728         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
1729
1730 2007-04-02  Jackson Harper  <jackson@ximian.com>
1731
1732         * TextBoxBase.cs: Scroll faster!
1733
1734 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1735
1736         * StatusStrip.cs: Layout fixes for PDN.
1737         * ToolStrip.cs: Set item's available to true, and placement to main when
1738         added.
1739         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
1740         changing in setter before doing any work, add InternalVisible.
1741         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
1742         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1743         infinite loop.
1744
1745 2007-04-02  Jackson Harper  <jackson@ximian.com>
1746
1747         * TextBox.cs: LBUTTON does not make the textbox select all of it's
1748         text on focus.
1749
1750 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1751
1752         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
1753           Makes ToolStripComboBoxes show up again.
1754
1755 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1756
1757         * ListView.cs: Add a hover_pending field in ListView
1758         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
1759         cycle (we are resetting the MouseHover logic in XplatUI
1760         to handle HoverSelection). Fixes #80429.
1761
1762 2007-04-02  Jackson Harper  <jackson@ximian.com>
1763
1764         * TextControl.cs: Make sure the attributes get set on the last
1765         tag.
1766         - Still have to do the end tag if we have stepped all the ways to
1767         the end.
1768
1769 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
1770
1771         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
1772         on an internal libgdiplus call when the information is already 
1773         available via the public API.
1774
1775 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1776
1777         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
1778           control is removed from a control collecftion.
1779         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
1780           Fixes FormPropertyTest (failed on rare occasions).
1781         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
1782           of Win32SetParent (when changing from no parent to a parent it
1783           might add the new parent's location in screen coordinates to this
1784           window's location).
1785         * Form.cs: Rework ChangingParent once again, now the handle is
1786           recreated whenever a FormWindowManager is added or removed (that is
1787           whenever a normal form is parented or abandoned). Also change
1788           CreateParams so that all non-toplevel windows always get the
1789           specified sice (StartupPosition is never considered for
1790           non-TopLevel forms).
1791         * ContainerControl.cs: Add ChildControlRemoved, the container control
1792           needs to be notified when a control is removed from it's
1793           collection, in the case the removed control is the active control.
1794
1795 2007-04-02  Jackson Harper  <jackson@ximian.com>
1796
1797         * RichTextBox.cs: Use the new methods for setting the font and
1798         color, these methods set the specified attribute without
1799         overriding the other attributes.
1800
1801 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1802
1803         * ToolStripPanel.cs: Fixes for better layouts in PDN.
1804
1805 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
1806
1807         * TextBox.cs: Added internal ChangeBackColor method to special-case
1808         Color.Empty. Added check for invalid ScrollBars value.
1809         * TextBoxBase.cs: Added internal ChangeBackColor method.
1810         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
1811         internal ChangeBackColor method to special-case Color.Empty. Added
1812         check for invalid ScrollBars value.
1813
1814 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
1815
1816         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
1817
1818 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
1819
1820         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
1821         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
1822         [Based on submitted patch from Olivier Duff.]
1823
1824 2007-03-30  Jackson Harper  <jackson@ximian.com>
1825
1826         * TextBox.cs: Only select all on initial focus if the user has not
1827         specified a selection area.
1828
1829 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
1830
1831         * UserControl.cs: Override CreateParams.
1832
1833 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1834
1835         [ Fixes #80995 ]
1836
1837         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1838         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
1839           check for is a mix of several styles (such as WS_CAPTION for instance).
1840         * Control.cs: Don't paint an area bigger than the client area when painting
1841           the background colour. Add an internal GetCreateParams. Update calls to
1842           XplatUI.CalculateWindowRect due to API change.
1843         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
1844           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
1845           hasn't been handled by any windows. When creating and moving windows, X
1846           wants the location of the entire window, but the size of the client
1847           window, so add TranslateClientRectangleToXClientRectangle,
1848           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
1849           to cope with this, and call them before every window creation and move.
1850           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
1851           removing DeriveStyles). In AddConfigureNotify don't do anything if the
1852           hwnd is a zombie (fixes the BadWindow we were getting while running the
1853           tests), always calculate the offsets when it's a parentless window, not
1854           only when reparented, and translate the window size, since we're getting
1855           the client size of the whole window, excluding entire window.
1856         * Theme.cs: Added BorderSizableSize.
1857         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1858           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
1859         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
1860           Fake the window styles here instead of in XplatUIWin32 so that all
1861           back-ends get the same window styles (and it's Form that's deciding when
1862           to use wm, not the Win32 backend anyways)
1863         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
1864           they are now passed a CreateParams and they only use Style and ExStyle
1865           to determine the rectangles (they should now work just like
1866           Win32AdjustWindowRectEx - though quite a few special cases are probably
1867           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
1868           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
1869           sizes) are taken from the current theme. Added a GetBorders helper
1870           function that will return the borders for any given CreateParams
1871           (including captions and menus), and GetBorderSize that returns the given
1872           border size only.
1873         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1874           Hwnd.GetClientRectangle.
1875
1876 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1877
1878         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
1879           layout of the mdi children is handled by CreateParams. Fixes
1880           #79964,
1881
1882 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1883
1884         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
1885         processed.
1886
1887         * Form.cs: When active tracker mouse down is not processed, send event 
1888         back to control inside mouse position. [Fixes #81227]
1889
1890 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
1891
1892         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
1893         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
1894         stealing focus from the active form on Windows.  (Control will be made
1895         visible in ShowWindow.)
1896
1897 2007-03-29  Mike Kestner  <mkestner@novell.com>
1898
1899         * ImageList.cs : add internal Changed event.
1900         * ListView.cs : hook up to StateImageList.Changed to perform
1901         invalidations when the the state icon list changes. [Fixes #81191]
1902
1903 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
1904
1905         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
1906         to prevent tooltips from stealing focus from the active form on Windows.
1907
1908 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1909
1910         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
1911
1912         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
1913
1914 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1915
1916         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
1917         balloons.
1918
1919 2007-03-29  Jackson Harper  <jackson@ximian.com>
1920
1921         * TextControl.cs: When deleting text from non multiline textboxes,
1922         we need to update the entire document, because line offsets will
1923         be shifting.
1924
1925 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1926
1927         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
1928         added to theme, now we can create themes that uses diferent notify engines
1929         like notification-daemon from galago project or growl for Mac OS.
1930
1931 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
1932
1933         * NotifyIcon.cs: Prevent Balloon to show in task bar.
1934
1935 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
1936
1937         * XplatUIX11.cs: Prevent system to open more than one balloon.
1938
1939         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
1940         some compiler warning messages.
1941
1942 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
1943
1944         [Fixes #79149]
1945
1946         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
1947
1948         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
1949         implemented, this methods is used by NotifyIcon.BalloonWindow class.
1950
1951         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
1952         systems.
1953
1954 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1955
1956         * ListViewItem.cs: Forgot to make Invalidate internal.
1957
1958 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1959
1960         * ListView.cs: Add a InvalidateSelection method to
1961         invalidate methods which are currently selected, and call
1962         it when setting FullRowSelect and HideSelection, instead of
1963         calling Redraw.
1964
1965 2007-03-28  Chris Toshok  <toshok@ximian.com>
1966
1967         * XplatUIX11.cs (UnmapWindow): reindent this block.
1968
1969         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
1970         the selection_start if we're moving the selection (that is, not
1971         extending it). Fixes bug #80461.
1972
1973 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1974
1975         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
1976         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
1977         create private ControlCollection.
1978
1979 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * Control.cs: We need to call OnVisibleChanged for our implicit
1982         children as well as our normal children.  Fixes scrollbars in
1983         comboboxes not showing up.
1984
1985 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1986
1987         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
1988         the check for IsHandleCreated first.  The check in CreateHandle is not
1989         good enough because CreateHandle can be overriden, and the override 
1990         should not be called if the handle is already created.
1991
1992 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1993
1994         * ToolStrip.cs: Remove MonoTODO for tooltips.
1995         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
1996         * ToolStripContainer.cs: Add custom ControlCollection class.
1997         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
1998         * ToolStripDropDown.cs: Add some missing properties/methods.
1999         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
2000         * ToolStripItem.cs: Remove MonoTODO for tooltips.
2001         * ToolStripManager.cs: Add IsShortcutDefined.
2002         * ToolStripOverflow.cs: Override LayoutEngine.
2003         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
2004         * ToolStripSeparator.cs: Add ImageKey.
2005
2006 2007-03-28  Jackson Harper  <jackson@ximian.com>
2007
2008         * TextControl.cs: If a char delete removes a line ending, we need
2009         to update the ending style.
2010         - Make sure the line ending calcs get called.
2011
2012 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2013
2014         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
2015           it was making the new code not work. Fixed a typo in the new code
2016           as well. Fixes #79826.
2017
2018 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2019
2020         * XplatUIWin32.cs:
2021         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
2022         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
2023         - SystrayBalloon method implemented.
2024         [Add support for notifyicon balloon on win32, #79149]
2025
2026 2007-03-27  Mike Kestner  <mkestner@novell.com>
2027
2028         * ThemeWin32Classic.cs : update StateImageList selection to mirror
2029         the ms behavior when only one image is added to the list.
2030         [Fixes #81191]
2031
2032 2007-03-27  Jackson Harper  <jackson@ximian.com>
2033
2034         * TextControl.cs: Improvements to non multiline line ending
2035         drawing/measuing.
2036
2037 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2038
2039         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
2040
2041 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2042
2043         * NotifyIcon.cs: 
2044         - Balloon message handling added.
2045         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
2046
2047         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2048         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
2049         to SystrayBalloon to me like other Systray method, also a
2050         handle parameter added.
2051
2052 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2053
2054         * ListView.cs: Show scrollbars even when items.Count == 0
2055         but the columns Width is bigger than the ListView.Width.
2056         Also, when columns.Count == 0 set layout_wd and layout_ht
2057         to the ClientRectangle values, so we don't show any scrollbar
2058         in that case.
2059
2060 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2061
2062         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
2063
2064 2007-03-27  Jackson Harper  <jackson@ximian.com>
2065
2066         * RichTextBox.cs: The RTF library decodes the text properly for us
2067         now.
2068
2069 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2070
2071         * ListView.cs: Display HeaderControl even when columns.Count == 0.
2072         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
2073         ListView header (HeaderControl), instead of Control.BackColor.
2074
2075 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2076
2077         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
2078         Fixes tab control issues where controls would not show up because they
2079         never received their OnVisibleChanged call.
2080
2081 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2082
2083         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
2084         BalloonTipShown).
2085
2086 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2087
2088         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
2089         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
2090         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
2091         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
2092         the handle.  Fix WindowState by using the internal variable until we are 
2093         sure that we've been shown.
2094         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
2095         max or min.
2096         [Fixes bug #81198]
2097
2098 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2099
2100         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
2101           (at least borders). Fixes #79386 on Linux (with a small difference
2102           in behaviour: when trying to resize a caption-less window metacity
2103           shows the sysmenu. Resizing is still possible though).
2104         * XplatUIWin32.cs: When setting window styles send request an extra
2105           WM_NCCALCSIZE when it's a form without title (due to no text and no
2106           caption), since Win32 seems to calculate it wrong the first time we
2107           get the message, though the second time things work as they should.
2108         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
2109           newly reparented window might show up unparented. Update
2110           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
2111           there's no title text. Fixes #79386.
2112
2113 2007-03-27  Mike Kestner  <mkestner@novell.com>
2114
2115         * ListBox.cs : don't perform invalidations if the handle hasn't been
2116         created.  [Fixes #80753]
2117
2118 2007-03-27  Mike Kestner  <mkestner@novell.com>
2119
2120         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
2121         [Fixes #80428]
2122
2123 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2124
2125         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
2126         needed to implement Balloon.
2127
2128 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2129
2130         * ListViewItem.cs: In the constructors that take
2131         an array of strings, don't use ListViewSubItemCollection.AddRange
2132         method to add items, since we need to have a different behaviour (in
2133         the constructors we add an item for each null string, opposed to
2134         the behaviour of AddRange, which adds nothing).
2135
2136 2007-03-26  Andreia Gaita  <avidigal@novell.com>
2137
2138         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
2139
2140 2007-03-26  Jackson Harper  <jackson@ximian.com>
2141
2142         * TextControl.cs: Draw and measure line endings when in non
2143         multiline mode.
2144         - When searching the text, count the end of the last line as a
2145         word boundary.
2146
2147 2007-03-26  Jackson Harper  <jackson@ximian.com>
2148
2149         * RichTextBox.cs: The selection_start and selection_end don't
2150         really track the correct tags for the selection. So we'll manually
2151         compute the correct tag here.
2152
2153 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2154
2155         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
2156           and Continuous styles. Fixes #79469.
2157
2158 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2159
2160         * ToolStrip.cs: Implement Tooltips.
2161         * ToolStripItem.cs: Create internal method for determining tooltip.
2162
2163 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2164
2165         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
2166
2167 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2168
2169         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
2170         it prevents a problem thak keeps icon visible after application 
2171         closes on win32.
2172
2173 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2174
2175         * NotifyIcon.cs: Balloon properties and methods created.
2176
2177         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2178         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
2179
2180 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
2181
2182         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
2183
2184 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2185
2186         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
2187         parameter indicates which aspects were explicit/user-set.
2188         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
2189
2190 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2191
2192         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
2193         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
2194         SmallChange, and Value (2.0).
2195         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
2196
2197 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198
2199         * ListView.cs: Always set item_control.Width in LayoutDetails
2200         if View is Details. Setting it later in CalculateScrollBars
2201         in a not-so-corner scenario (the sum of columns width is
2202         not bigger than the ListView width when handle is created, and then
2203         that sum gets bigger by increasing the width of the columns)
2204         causes a very weird recursion path (which shouldn't be happening,
2205         since header_control sets it in CalculateScrollBars too). This bug
2206         appeared after Chris' fixes for handle created issues, so probably
2207         it's related to some handle-creation time.
2208
2209 2007-03-23  Chris Toshok  <toshok@ximian.com>
2210
2211         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
2212         case where there's an add row, just so we don't end up in a case
2213         where it's not displayed (this happens when the row is partially
2214         obscured).  Fixes bug #79574.
2215
2216 2007-03-23  Jackson Harper  <jackson@ximian.com>
2217
2218         * TextControl.cs:
2219         * TextBoxBase.cs:
2220         * RichTextBox.cs: Preserve line endings in the lines text buffer,
2221         also added an enum that represents the line ending type. 
2222
2223 2007-03-23  Andreia Gaita  <avidigal@novell.com>
2224
2225         * NumericUpDown.cs: Fix logic so Text and Value properties are not
2226         messed with in every method call, but only from DownButton, 
2227         UpButton, UpdateEditText() and ValidateText. Fixes #80346
2228
2229 2007-03-23  Chris Toshok  <toshok@ximian.com>
2230
2231         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
2232         format objects if the format spec is "".  Fixes bug #80889.
2233
2234 2007-03-22  Miguel de Icaza  <miguel@novell.com>
2235
2236         * ToolStripPanel.cs (Join): added stubs to build PDN3
2237
2238         * Control.cs (AutoScrollOffset): Add.
2239
2240         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
2241         property, its only implemented for Win32, on X11 it defaults to
2242         some hardcoded value.
2243
2244         * ToolStripItem.cs (AllowDrop): Add property
2245
2246 2007-03-22  Mike Kestner  <mkestner@novell.com>
2247
2248         * ListView.cs : in FullRowSelect Details mode, only enable box
2249         selection if the user clicks over the "item" column outside of the
2250         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
2251
2252 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2253
2254         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
2255           handle is not created yet.
2256         * Form.cs: Select: Don't call CreateHandle if the handle is already
2257           created, avoids a stack overflow on Windows when we are recreating
2258           controls.
2259         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
2260           they are made visible, and override AfterTopMostControl to keep
2261           them on top when other controls are brought to front.
2262           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
2263           or force_*scroll_visible is true (old implementation always shows
2264           scrollbars when needed, no matter what auto_scroll was set to).
2265         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
2266           IsHandleCreated check.
2267
2268 2007-03-22  Andreia Gaita  <avidigal@novell.com>
2269
2270         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
2271         row or col separator.
2272         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
2273
2274 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2275
2276         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
2277
2278 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2279
2280         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
2281         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
2282         every time. Fixes #80410.
2283
2284 2007-03-22  Chris Toshok  <toshok@ximian.com>
2285
2286         * BindingSource.cs (AddNew): partially implement.
2287
2288         remove a couple of NotImplementedException's
2289         to get bug #81148 closed.
2290
2291 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2292
2293         [Fixes #80380]
2294         
2295         * Control.cs:
2296         - UpdateCursor method added to update the screen cursor.
2297         - GetAvailableCursor method added to return cursor for enabled tree,
2298         it searches for cursor on control and it's parent's for enabled control.
2299         - Call UpdateCursor method on setter of Cursor property.
2300         - On setter of Enabled call UpdateCursor when it is false, we need to
2301         change cursor to normal (or to this parent cursor) because cursor 
2302         setting theres no effect to disabled controls.
2303         - Some minor source changes to follow the coding style guidelines.
2304
2305         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
2306         controls.
2307
2308 2007-03-22  Chris Toshok  <toshok@ximian.com>
2309
2310         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
2311         generates.
2312
2313 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2314
2315         * XplatUIX11.cs: Implement default locations for forms.
2316         * Form.cs: Completely rework startup location for forms. Fixes #79964.
2317         * Hwnd.cs: Add previous_child_startup_location (to track the current
2318           startup location for any child forms of the current form) and
2319           previous_main_startup_location (to track the startup location for
2320           the current toplevel form).
2321
2322 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2323
2324         * Control.cs: Don't trigger a layout if an implicit control is added
2325         that isn't visible.  Also, don't notify the owner when an implicit control
2326         is added.  (Owners shouldn't even know about their implicit controls.)
2327
2328 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2329
2330         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
2331         to save some re-layouts.
2332
2333 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
2334
2335         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
2336         [Fixes #81203]
2337
2338 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2339
2340         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
2341         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
2342
2343 2007-03-21  Mike Kestner  <mkestner@novell.com>
2344
2345         * ListView.cs : disable selection update for non-left button clicks
2346         with mods and over selected items.  [Fixes #80524]
2347
2348 2007-03-20  Jackson Harper  <jackson@ximian.com>
2349
2350         * TextControl.cs:
2351         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
2352         \r\r\n, \n.
2353
2354 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2355
2356         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
2357           very probably a more complicated calculation there. Update the
2358           textbox' ForeColor and BackColor when the ComboBox' colors are
2359           changed. Change the border change in LayoutComboBox to only affect
2360           the textbox, not all the calculations there. Seems to fix most of
2361           #79436.
2362
2363 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2364
2365         * ComboBox.cs: Handle Home and End keys as well as all combinations of
2366           modifiers + navigation keys as input keys, enables advanced text
2367           selection in the combobox (like Shift+Left Arrow for instance).
2368           ComboTextBox now overrides Focused and returns whatever
2369           ComboBox.Focused returns, since it really should be focused
2370           whenever the ComboBox is. Fixes #80795. Also make the border around
2371           the text box one pixel bigger, as mentioned in #79436.
2372
2373 2007-03-20  Jackson Harper  <jackson@ximian.com>
2374
2375         * TreeView.cs: Don't offset the images, this was causing some
2376         artifacts when expanding/collapsing with images that were the
2377         exact height of the treenode.
2378
2379 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2380
2381         * TrackBar.cs: Query the theme for the correct value when the mouse
2382           moves and the thumb is pressed. 
2383         * Theme.cs: Added TrackBarValueFromMousePosition
2384         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
2385           implementation was updating the trackbar value when drawing, now
2386           the drawing methods only draw. Fixes #80900. Refactored the
2387           calculations out to TrackBarValueFromMousePosition and
2388           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
2389           according to the mouse position whenever it wants to. Changed the
2390           light coloured pen when drawing the thumb from ControlLight to
2391           ControlLightLight, because the ControlLight is the same colour as
2392           the background so the 3D effect is lost. 
2393
2394 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2395
2396         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
2397         defined. Fixes #80784.
2398
2399 2007-03-20  Marek Habersack  <mhabersack@novell.com>
2400
2401         * ContextMenuStrip.cs: align with the change introduced in
2402         revision 74664.
2403
2404 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2405
2406         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
2407         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
2408         in SetTopmost.
2409
2410 2007-03-19  Chris Toshok  <toshok@ximian.com>
2411
2412         * Control.cs (WmPaint): don't make use of the Handle property
2413         after an event is emitted, as the user could have closed the
2414         form/destroyed the control.  Store the Handle in a local variable
2415         and make use of that.  Fixes bug #80768.
2416
2417 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2418
2419         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
2420         behavior in X11 environments.
2421
2422 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2423
2424         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
2425         because on setter of topmost we dont call SetTopmost when handle is not
2426         created.
2427
2428 2007-03-20  Jackson Harper  <jackson@ximian.com>
2429
2430         * TextControl.cs: Need to use SelectionLength () not
2431         selection_length, since that var is reset to -1.
2432         - Draw the caret when we don't have focus.
2433         * TextBox.cs: The selectall actually doesn't occur until the first
2434         focus.
2435         * TextBoxBase.cs: Need to update the caret position after a
2436         selectall.
2437         
2438 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2439
2440         * ListView.cs: Enable scrolling when using Tile view.
2441
2442 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2443
2444         [Fixes #80902]
2445
2446         * XplatUIDriver.cs: Abstract SetOwner method created.
2447
2448         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
2449         must be implemented and was masked as todo.
2450
2451         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
2452         GWL_HWNDPARENT.
2453
2454         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
2455         cheking for null owner to remove transient. The SetTopmost will be change
2456         on a decond step.
2457
2458         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
2459         SetTopmost. Now owned forms will work properly in win32 and X11.
2460
2461 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2462
2463         * MdiWindowManager.cs: Update function name.
2464         * Form.cs: After closing a form MdiParent is always null.
2465         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
2466           better what it should do: necessary book-keeping when the form is
2467           closed, it should not close the form itself.
2468
2469 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2470
2471         * ListViewItem.cs: Fix back and fore color. The subitems only
2472         use their own colors if they are set, otherwise use the listview's
2473         colors. Don't set default colors on constructor for subitem.
2474         Fixes #79315.
2475
2476 2007-03-19  Mike Kestner  <mkestner@novell.com>
2477
2478         * ListView.cs : make box selection for Details views with 
2479         FullRowSelect conform to MS behavior when clicking in the "item" 
2480         column and clicking outside the defined columns.
2481         [Fixes case 5-6 of #80374]
2482
2483 2007-03-19  Chris Toshok  <toshok@ximian.com>
2484
2485         * ScrollableControl.cs: create the controls from within the ctor,
2486         but don't actually add them until our handle is created.  this
2487         fixes a NRE possibility jpobst found (if you override OnLayout in
2488         a subclass, it's called before your ctor).  Also, add a
2489         IsHandleCreated guard to UpdateSizeGripVisibility as well.
2490
2491 2007-03-19  Jackson Harper  <jackson@ximian.com>
2492
2493         * TextBox.cs: Reduce the amount of invalidation we do.
2494         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
2495         some of them are true by default on MS.
2496         - Add some functions to reduce the amount of invalidates we do.
2497         * TextControl.cs: Less invalidation.
2498
2499 2007-03-19  Chris Toshok  <toshok@ximian.com>
2500
2501         [ Fixes #81773, and *seems* to fix #81553 as well ]
2502
2503         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
2504         AccumulateDestroyedHandles.  We need to do it *after* we send
2505         WM_DESTROY, as the user's code can access Control.Handle in
2506         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
2507         move the WM_DESTROY/zombie handling to before the call to
2508         XDestroyWindow.  For some reason without this ordering
2509         FormTest.RecreateHandle hangs.  This ordering is semantically
2510         equivalent, however, as XDestroyWindow is async anyway.
2511
2512 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
2513
2514         * RichTextBox.cs: Reset backcolor_set after setting default.
2515
2516 2007-03-19  Chris Toshok  <toshok@ximian.com>
2517
2518         * ScrollableControl.cs: the scroll position should not effect the
2519         canvas size.  commit patch from georgegiolfan@yahoo.com, which
2520         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
2521         
2522 2007-03-19  Chris Toshok  <toshok@ximian.com>
2523
2524         * ScrollableControl.cs: clean this up a bit.  create the
2525         scrollbars in the ctor and just show/hide them as needed.  Also,
2526         make hscroll_visible/vscroll_visible internal to Recalculate, and
2527         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
2528         everywhere else.  This seems to fix the scrollbars appearing
2529         beneath the content for me (i have *no* idea why that is,
2530         however.)
2531
2532 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2533
2534         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
2535         some redundacy for stuff in Anchor and Dock that base will take care of.
2536         [Fixes #80762]
2537
2538 2007-03-19  Mike Kestner  <mkestner@novell.com>
2539
2540         * ListView.cs : make box selection for Details views without 
2541         FullRowSelect dependent on the text bounds, not item bounds.
2542         * ListViewItem.cs : add an internal property to obtain the TextBounds
2543         in Details view.  [Fixes case 1-4 of #80374]
2544
2545 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2546
2547         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
2548         we're < 2.0. #78448 && #80316
2549
2550 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2551
2552         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
2553         have the same style available as the previously selected one.  Also,
2554         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
2555
2556 2007-03-19  Jackson Harper  <jackson@ximian.com>
2557
2558         * TextControl.cs: Add an alignment property that all new lines
2559         will be given.
2560         - Make sure to use the align shift when calculating the line's X
2561         position.
2562         * TextBox.cs: Set the alignment on the document as well as on all
2563         the document lines.
2564
2565 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2566
2567         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
2568           throw if setting the parent of an mdichild that already has an
2569           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
2570           AssemblyProductAttribute in the assembly, use the type's namespace (as
2571           MS seems to do). CreateControl: don't create the handle if the control
2572           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
2573           create handle if the control is not a form. Change FocusInternal to
2574           virtual so that it can be overriden by Form.
2575         * TextBox.cs: Update call to FocusInternal.
2576         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
2577           form is not a toplevel form when it's a mdi child, so update is_toplevel
2578           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
2579           hasn't been created. Show (IWin32Window): Don't allow this overload for
2580           toplevel windows. CenterToParent/CenterToScreen/Select: create the
2581           handle as MS does. SetVisibleCore: if called on a MdiChild and the
2582           parent isn't visible yet, save the visibility and restore it when the
2583           parent is made visible.
2584         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
2585           methods, since the visibility of the scrollbars can be changed from
2586           several places, not only from AutoScroll.
2587           [Fixes #81179]
2588
2589 2007-03-19  Jackson Harper  <jackson@ximian.com>
2590
2591         * RichTextBox.cs: Enable shortcuts by default.
2592         * TextBoxBase.cs: Add conditional shortcuts.  
2593
2594 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2595
2596         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
2597
2598 2007-03-19  Chris Toshok  <toshok@ximian.com>
2599
2600         [ Fixes bug #80604]
2601         
2602         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
2603         swallow the message we're waiting on, instead of delivering it, as
2604         this is only used for the WM_SHOWWINDOW raised from
2605         MapWindow/UnmapWindow, and the message needs to be generated
2606         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
2607         before doing the Map/Unmap.  Also make sure that the Hwnd is still
2608         alive after the message has been handled.
2609
2610         *before* the window is shown.
2611
2612         * Control.cs (CreateControl): guard a few more things inside the
2613         if (!is_created) block, as we might end up being called again -
2614         yay .net.
2615         (WmShowWindow): call CreateControl if we're showing the control.
2616
2617 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2618
2619         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
2620           controls without a handle if they have any parent with a handle. In
2621           Dispose add a check whether the handle is created or not before
2622           calling BeginInvoke, this removes the need of the extra disposing
2623           parameter (which was bogus anyway since it didn't prevent the
2624           invoke from happening, it only skipped the check for an existing
2625           handle, meaning that the invoke would call on an inexistent
2626           handle).
2627
2628 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2629
2630         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
2631         appears in taskbar.
2632
2633 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2634
2635         * MessageBox.cs:
2636         - Fixed a problem that dont show help button for messages with 3 buttons.
2637         - Refactory button size and position calculations, now dont use fixed 
2638         values, also fixed button sizes (#80043) and form's border space.
2639         - AddButton method created, now all other AddButton methods call this one.
2640         - Some other source code cosmetic changes.
2641
2642 2007-03-18  Jackson Harper  <jackson@ximian.com>
2643
2644         * RichTextBox.cs: Don't do this all fonts must match check if
2645         there is only one char selected.
2646
2647 2007-03-18  Jackson Harper  <jackson@ximian.com>
2648
2649         * TreeView.cs: ScrollWindow works properly now, so we don't need
2650         to screw around with the scroll area.  This fixes some artifacts
2651         when expanding and collapsing.
2652
2653 2007-03-18  Jackson Harper  <jackson@ximian.com>
2654
2655         * TextBoxBase.cs: Allow updating the selection position when the
2656         cursor is outside the textarea, but we have a capture.
2657         * TextControl.cs: A special case for when the cursor is outside
2658         the bounds of the TB.
2659         
2660 2007-03-18  Jackson Harper  <jackson@ximian.com>
2661
2662         * TextBoxBase.cs: Remove image pasting code for now.  There is no
2663         way to get an image on the clipboard right now anyways.
2664         * TextControl.cs:
2665         * RichTextBox.cs: Use the new RTF Picture class for pictures.
2666
2667 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2668
2669         * MessageBox.cs:
2670         - Set window properties in constructor intead of on CreateParams.
2671         - Remove topmost from Window ExStyle.
2672         - Set ShowInTaskbar to false.
2673         - Set form border to FixedDialog.
2674         - Some cosmetic changes and remove unneeded comments.
2675         - It fixes itens 2,3 and 4 of bug #80043.
2676
2677 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
2678
2679         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
2680         none was explicitly set. Fixes part of bug #79949.
2681
2682 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2683
2684         * ToolStripComboBox.cs: Add AutoComplete*.
2685
2686 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2687
2688         * ToolStripComboBox.cs: Add FlatStyle.
2689
2690 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
2691
2692         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
2693         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
2694
2695 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2696
2697         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
2698           CheckBox.cs, RadioButton.cs, BindingSource.cs,
2699           DataGridColumnStyle.cs: Remove warnings.
2700
2701 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2702
2703         * Menu.cs: MergeMenu: Check menu argument for null before looping over
2704           it.
2705         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
2706           visibility of mdi child forms. FormSizeChangedHandler: update the
2707           maximized size if size has changed while maximized.
2708         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
2709           creating the handle.
2710         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
2711           avoid creating the handle if not created.
2712         * XplatUI.cs: Update debug output.
2713         * XplatUIStructs.cs: Added ToString's for a couple of structs.
2714
2715 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
2716
2717         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
2718         ProcessCmdKey().
2719         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
2720         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
2721         Implement keyboard shortcuts.
2722
2723 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2724
2725         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
2726         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
2727         ColorDialog and all derived classes.
2728
2729 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2730
2731         [ Fixes bug #79828 ]
2732
2733         * ToolBar.cs:
2734         - Rename ToolBarButtonInfor to ToolBarItem.
2735         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
2736         - Maintain an array of ToolBarItem, used instead of ToolBarButton
2737         collection to be able add same button more than one time on a toolbar.
2738         - Refactory all properties and methods to use ToolBarItem. 
2739
2740         * ToolBarButton.cs: 
2741         - Remove all propeties and methods that is now in ToolBarItem.
2742         - Rectangle propery now gets the rectangle from first ToolBarItem to
2743         mimic win32 behavior.
2744         - Size calculation and layout methods also removed.
2745
2746         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
2747         ToolBarItem instead of ToolBarButton to right drawing buttons when
2748         same button/separator was added more than one time to ToolBar.
2749
2750         * ThemeNice.cs: Same as above. 
2751
2752 2007-03-15  Andreia Gaita  <avidigal@novell.com>
2753
2754         * XplatUIX11.cs: Fire extra MouseMove events right after
2755         MouseDown and MouseUp, emulating win32's <censored> behaviour
2756         for apps that rely on it.
2757
2758 2007-03-15  Jackson Harper  <jackson@ximian.com>
2759
2760         * TextControl.cs:
2761         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
2762         it is drawn on the controls client window and there is no NC
2763         area.
2764         - Set the background color to gray on 2.0 when we are readonly.
2765
2766 2007-03-15  Chris Toshok  <toshok@ximian.com>
2767
2768         [ Fixes bug #81144 ]
2769         
2770         * XplatUIX11.cs: implement VirtualScreen independently of
2771         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
2772         property.
2773
2774 2007-03-15  Chris Toshok  <toshok@ximian.com>
2775
2776         * Hwnd.cs: add an internal field for the cached_window_state.
2777
2778         * XplatUIX11.cs: cache the window state, invalidating the cache
2779         (and thus re-querying the X server) only when we see an update to
2780         the _NET_WM_STATE property.
2781
2782 2007-03-15  Chris Toshok  <toshok@ximian.com>
2783
2784         * BindingSource.cs: get a lot of the unit tests working.
2785
2786 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
2787
2788         * Control.cs: Modify UpdateStyles to store distances when bounds >=
2789         0 instead of just bounds > 0.  [Fixes bug #80912]
2790
2791 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
2792
2793         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
2794         and methods.
2795
2796 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
2797         
2798         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
2799         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
2800         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
2801         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
2802
2803 2007-03-15  Chris Toshok  <toshok@ximian.com>
2804
2805         [ Fixes #81101 ]
2806         
2807         * Control.cs: add Ivan's fix for 81101, with a slight modification
2808         - you can set control.Target to null.
2809
2810 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
2811
2812         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
2813         HideDropDown, use Hide instead to prevent an NRE.
2814         [Fixes bug #81147]
2815
2816 2007-03-14  Jackson Harper  <jackson@ximian.com>
2817
2818         * TextBoxBase.cs: Mess with the creation stuff a little. We need
2819         to calculate the document before the handle is created, in some
2820         cases. (Actually just one case).
2821
2822 2007-03-14  Jackson Harper  <jackson@ximian.com>
2823
2824         * TextBoxBase.cs: Need to display the caret after letting the base
2825         wndproc handle the focus methods, because the caret display
2826         methods check the focus state.
2827         - Try to display the caret after updating it's position with SelectWord.
2828         - Don't need to do an immediate update on this recalc, since there
2829         will be an invalidate anyways.
2830
2831 2007-03-14  Jackson Harper  <jackson@ximian.com>
2832
2833         * TreeView.cs: Some workarounds so that we can match event order a
2834         little better.
2835
2836 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
2837
2838         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
2839         #80803. Avoid NullReferenceException when Control does not have
2840         parent. Fixed different blinkstyle issues. Only subscribe to Tick
2841         event a single time. Only draw error icon when control is created and
2842         visible. Fixes failing unit tests.
2843
2844 2007-03-14  Andreia Gaita  <avidigal@novell.com>
2845
2846         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
2847         Selecting events. Fire Leave and Enter events when changing tabs.
2848
2849 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
2850
2851         * TreeView.cs: Add TreeViewNodeSorter.
2852         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
2853
2854 2007-03-14  Chris Toshok  <toshok@ximian.com>
2855
2856         * Form.cs: go ahead and remove the RecreateHandles that jpobst
2857         removed earlier and I had him add back it.  It turns out metacity
2858         *does* in fact handle the MOTIF_WM_HINTS property changing, it
2859         just doesn't redraw the window titlebar until you resize the
2860         window.  This also means we aren't recreating the entire window
2861         hierarchy on X when you change this property.  And it looks better
2862         on windows, too.
2863
2864 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2865
2866         * ListViewItem.cs:
2867         * ListView.cs: Collecting selection information
2868         is now done in SelectedIndexCollection rather than in
2869         SelectedListViewItemCollection. This is done so we can
2870         have the selection information code in one single place
2871         (virtual mode selection information entirely depends on
2872         SelectedIndexCollection).
2873
2874 2007-03-13  Miguel de Icaza  <miguel@novell.com>
2875
2876         * ErrorProvider.cs: Add stubs for ISupportInitialize
2877
2878 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2879
2880         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
2881         in the right order with the right values, from the Checked property, 
2882         just as MS does (instead of triggering them from ListView).
2883
2884         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
2885
2886 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2887
2888         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
2889         the correct handler in OnItemCheck method (ItemCheckEventHandler 
2890         instead of EventHandler). This used to throw an InvalidCastException.
2891
2892 2007-03-13  Jackson Harper  <jackson@ximian.com>
2893
2894         * TextBoxBase.cs: Calculate the document before the handle is
2895         created, so there isn't an extra invalidate called.
2896
2897 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
2898
2899         * Form.cs: Don't set owner in ShowDialog until we are sure
2900         that we aren't going to throw an exception.  [Fixes bug #80773]
2901
2902 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
2903
2904         * TreeView.cs: Make it compile.
2905
2906 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2907
2908         * Control.cs: Another place we don't call SizeFromClientSize.
2909         * Form.cs: Another place we don't call SizeFromClientSize.
2910         [Fixes bug #81125]
2911
2912 2007-03-12  Jackson Harper  <jackson@ximian.com>
2913
2914         * TreeView.cs: Basically emulating some strangness here with
2915         exanding nodes and setting node positions when windows aren't
2916         created.
2917         - Also attempting to walk the node tree less than previously, and
2918         just use visible order calculations for determining offsets.
2919         - oops made scrolling backwards.
2920         * TreeNode.cs: We need to start nodes with a zero visible order,
2921         because the order calcs are based on the first nodes order.
2922
2923 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2924
2925         * Form.cs: Don't exit the program if RecreateHandle is called on
2926         the main form.
2927
2928 2007-03-12  Chris Toshok  <toshok@ximian.com>
2929
2930         * XEventQueue.cs: remove the use of PostQuitState.
2931
2932         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
2933         WM_QUIT message in GetMessage, return false (and if we're in the
2934         nested WaitForHwndMessage, repost the WM_QUIT message).
2935
2936 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2937
2938         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
2939         or the MaximizeBox properties.  [Part of bug #80640]
2940
2941 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
2942
2943         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
2944         no links.
2945
2946 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2947
2948         * ToolStripItem.cs: Fix some tests I broke by checking Visible
2949         instead of visible.
2950
2951 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
2952
2953         * FileDialog.cs: Use text of File name combobox to determine what
2954         files the user selected. Added tokenizer to parse the file names.
2955         Fixes bug #81123.
2956
2957 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2958
2959         * Control.cs: We can't call SizeFromClientSize in the constructor,
2960         but we still need to do the same work, so make an internal version.
2961         [Fixes bug #80621]
2962
2963 2007-03-12  Jackson Harper  <jackson@ximian.com>
2964
2965         * TreeView.cs:
2966         * TreeNode.cs:
2967         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
2968         IsExpanded.
2969
2970 2007-03-12  Jackson Harper  <jackson@ximian.com>
2971
2972         * TextBoxBase.cs: Now that the handles are being created a little
2973         later, we need to make sure that the document is recalculated when
2974         the handle is created.
2975
2976 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
2977
2978         * Theme.cs: GetLinkFont abstract method added.
2979         
2980         * LinkLabel.cs: 
2981         - Remove CalcTrimRectangle, no longer needed.
2982         - Factor also remove, position issues must be fixed in libgdiplus.
2983         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
2984         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
2985         care about font used to draw links.
2986         - Set TabStop to true when control is "Selectable", control is selectable
2987         when have one or more links. Fixes #80501 (test case is also added).
2988         - Set the LinkArea values after links change, LinkArea values must be
2989         based in first link position and size, a test case was created.
2990         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
2991         the attribute must be true LinkArea.Length > 0. The same was applied to
2992         TabStop.
2993         
2994         * ThemeWin32Classic.cs: 
2995         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
2996         in draw method.
2997         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
2998         color change.
2999         - Draw focus rectangle for every parts focused, including parts that 
3000         is on another line, its because regions returns various rectangles
3001         and not only one. Needed to mimic W32 look.
3002         - Uses Graphics.Clip to delimite region painted, it mean that now 
3003         complete text is passed to DrawString, with this we solve layout
3004         issues without create another text renderer.
3005         - Uses Region.Intersect to fix some flickers problems, now only needed
3006         parts will redrawed.
3007         - This changes fixes #79614 and some other unreported issues, on Linux 
3008         some layout problems still remain, the problem is under 
3009         MeasureCharacterRanges but it is an libgdiplus bug.
3010
3011 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
3012
3013         * TextBox.cs: Set for foreground color.
3014         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
3015         this is already done in Control.
3016
3017 2007-03-10  Jackson Harper  <jackson@ximian.com>
3018
3019         * TextBox.cs: Set the background color, but reset the
3020         backcolor_set flag which is just for the user setting the
3021         background color.
3022
3023 2007-03-09  Chris Toshok  <toshok@ximian.com>
3024
3025         * Control.cs: really remove the call to XplatUI.SetVisible from
3026         CreateHandle(), like I said I did when I merged the branch.
3027
3028         * BindingSource.cs: implement some more of this stuff.
3029
3030 2007-03-09  Jackson Harper  <jackson@ximian.com>
3031
3032         * TextBox.cs: Don't explicitly set our background colors.
3033         * TextControl.cs:
3034         * TextBoxBase.cs: Draw readonly text.
3035         - Need to invalidate when backcolor or readonly are changed.
3036         
3037 2007-03-09  Jackson Harper  <jackson@ximian.com>
3038
3039         * TextBoxBase.cs: Don't set the forecolor until the handle is
3040         created.
3041         - Do not raise OnPaint, and removed some old debug code.
3042
3043 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
3044
3045         * ScrollableControl.cs: Fix mouse wheel scrolling.
3046
3047 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
3048
3049         * Control.cs: Wire up MouseDoubleClick event.
3050
3051 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
3052
3053         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
3054         top or bottom.
3055         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
3056         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
3057         item is added.  This logic was moved to ToolStrip.OnItemAdded.
3058         [Fixes bug #81090]
3059
3060 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3061
3062         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
3063
3064 2007-03-08  Jackson Harper  <jackson@ximian.com>
3065
3066         * TreeView.cs: Show the correct image for selected node (this used
3067         to work, not sure how the code got deleted). Also implemented 2.0 feature
3068         SelectedImageKey.
3069
3070 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3071
3072         * ListView.cs:
3073         * ListViewItem.cs: Cache index in items when retrieving them
3074         in VirtualMode.
3075
3076 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3077
3078         * ToolStripItem.cs: Don't return the explicit_size if we are using 
3079         AutoSize.  Fixes invalidation issue when user has explicitly set a
3080         size and has AutoSize = true.
3081
3082 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3083
3084         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
3085
3086 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3087
3088         * DataGridView.cs: Remove event handler from DataView when a
3089         DataTable is used as DataSource.
3090
3091 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3092
3093         * Control.cs: Create internal setter for client_size to allow it to be
3094         set without triggering resizing code.
3095         * Form.cs: Calculate client_size in constructor, only change client_size
3096         in FormBorderStyle property if Handle has been created.
3097         [Fixes #80574, #80791]
3098
3099 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
3100
3101         * SystemInformation.cs: Add TerminalServerSession.
3102
3103 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3104
3105         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
3106         TreeView code.
3107
3108 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3109
3110         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
3111         Handle before we were supposed to.  Now checks ActivateOnShow property
3112         in Control.
3113         * Control.cs: Add internal ActivateOnShow property.
3114         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
3115         for ActivateOnShow.
3116         * Hwnd.cs Remove no longer needed no_activate field.
3117
3118 2007-03-07  Jackson Harper  <jackson@ximian.com>
3119
3120         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
3121         2.0 properties
3122         * DrawTreeNodeEventHandler.cs: Add
3123         * DrawTreeNodeEventArgs.cs: Correct default value.
3124         
3125 2007-03-07  Chris Toshok  <toshok@ximian.com>
3126
3127         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
3128         to be called before NativeWindow.WndProc.  Put the HwndCreating
3129         magic there to hook up our Hwnd's to handles.
3130
3131 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
3132
3133         * DataGridView.cs: Comment out debug code.
3134
3135 2007-03-07  Chris Toshok  <toshok@ximian.com>
3136
3137         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
3138         to make the rest of the world happy]
3139
3140         * Control.cs (CreateHandle): there's no need to call
3141         XplatUI.SetVisible here, it's effectively done by
3142         XplatUI.CreateWindow on X now, and always was on windows.
3143
3144         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
3145         shortcircuit out of the loop if we have a message loop running on
3146         this thread.
3147
3148         [Changelog from merge]
3149
3150         2007-03-05  Chris Toshok  <toshok@ximian.com>
3151
3152                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
3153                 causes handle creation.
3154
3155         2007-02-28  Chris Toshok  <toshok@ximian.com>
3156
3157                 * ApplicationContext.cs: Add a flag to make sure we only raise the
3158                 ThreadExit event once (ExitThreadCore can be indirectly called
3159                 from a few places.)  I don't like the additional flag, but it
3160                 makes the event ordering/count correct.
3161
3162                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
3163                 without locking the collection.  An enumerator doesn't give us any
3164                 protection from modification anyway.  Lock the thread hash and
3165                 replace the complicated enumerator loop with a foreach.
3166                 (Application.CloseForms): make internal so it can be called from
3167                 ApplicationContext.  This should probably be moved to MWFThread.
3168                 (Application.ExitThread): don't call MWFThread.Current.Exit()
3169                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
3170                 when the runloop exits (in response to WM_QUIT.)
3171                 (Application.RunLoop): add a comment (and check) for
3172                 context.MainForm being null after setting context.MainForm.Visible
3173                 = true.  This is because you're perfectly free to dispose of a
3174                 form in VisibilityChanged.  Chalk this up to another case where we
3175                 need to synchronously generate WM_ACTIVATE from Control.Show.
3176                 Also, add handling for WM_QUIT here so we'll exit the loop.
3177                 
3178                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
3179                 fact that we don't wait if we're only unmapping the whole_window
3180                 makes me a bit nervous, but it doesn't seem to cause any problems
3181                 yet.
3182
3183                 also, add a comment about the stupid, broken and wrong resetting
3184                 of PostQuitState to false in GetMessage().
3185
3186                 In PostQuitMessage, we need to add a WM_QUIT message to the
3187                 thread's queue.  We use the FosterParent to get the right
3188                 handle/hwnd/queue.
3189
3190                 Lastly, in SetVisible, we need to unmap both windows, since the
3191                 waiting only happens when we're unmapping the client window.  So
3192                 now, the *only* time we unmap just the whole_window is in the hack
3193                 for resizing a control to 0,0.
3194                 
3195         2007-02-21  Chris Toshok  <toshok@ximian.com>
3196
3197                 * Application.cs (CloseForms): rewrite this so that we don't
3198                 modify the list while we're traversing it.
3199
3200         2007-02-20  Chris Toshok  <toshok@ximian.com>
3201
3202                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
3203                 of OnHandleCreated.
3204                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
3205                 handle is created.  otherwise we'll create it here.
3206                 (VerticalScrollEvent): same here.
3207
3208                 * Application.cs (CloseForms): call Form.Dispose, don't post
3209                 WM_CLOSE_INTERNAL.
3210
3211                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
3212                 here. Application should Dispose() of the Form's.
3213
3214                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
3215                 WM_DESTROY as well.
3216                 (MapWindow,UnmapWindow): only actually do the waiting for
3217                 SHOWWINDOW if the control we're dealing with is a Form.
3218                 (CreateWindow): if the control isn't a form, SendMessage
3219                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
3220
3221                 * Control.cs (SetVisibleCore): always use is_visible here, not
3222                 value.  If we use value, we can end up re-setting something
3223                 visible if, for instance, you do Control.Hide() in a delegate
3224                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
3225
3226         2007-02-20  Chris Toshok  <toshok@ximian.com>
3227
3228                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
3229                 the message we need.  PeekMessage returning false should not be a
3230                 condition under which we exit the loop.
3231
3232         2007-02-15  Chris Toshok  <toshok@ximian.com>
3233
3234                 * Control.cs (Refresh): only refresh if we've got a handle and are
3235                 visible.
3236                 (CreateAccessibilityInstance): CreateControl() here.
3237                 (UpdateChildrenZOrder): complicate the code loop even more by
3238                 taking into account controls that haven't had their handle
3239                 created, and those that aren't visible.  But on the flip side,
3240                 simplify the code by splitting it into two loops.  one which
3241                 builds up the list of child controls we're interested in, and the
3242                 other that sets the z order of those children.
3243
3244         2007-02-14  Chris Toshok  <toshok@ximian.com>
3245
3246                 * Control.cs: Control.AccessibilityObject causes the control to be
3247                 created, not just the handle.
3248
3249         2007-02-14  Chris Toshok  <toshok@ximian.com>
3250
3251                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
3252                 problem on X where a window might have its handle created (and be
3253                 visible) while the window is unmapped.  calling XConfigureWindow
3254                 on an unmapped window is bad, and generates X errors.
3255
3256         2007-02-13  Chris Toshok  <toshok@ximian.com>
3257
3258                 * Control.cs (CreateHandle): don't loop over our children setting
3259                 their parent here.  do it when in WndProc when we're shown.
3260                 (UpdateChildrenZOrder): make this internal so we can call it from
3261                 ScrollableControl.
3262                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
3263                 creating its handle.  Also, remove the calls to PerformLayout from
3264                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
3265                 OnVisibleChanged only seems to be called directly here for the
3266                 toplevel control.  It's propagated down the window hierarchy by
3267                 calls to child.OnParentVisibleChanged.
3268                 (OnVisibleChanged): don't do layout here - it's done (oddly
3269                 enough, according to a glance at stack traces on ms.net..) in
3270                 ScrollableControl.
3271                 
3272                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
3273                 z order of our children before calling PerformLayout.
3274
3275         2007-02-12  Chris Toshok  <toshok@ximian.com>
3276
3277                 [big change, fixes #80020]
3278                 
3279                 * AccessibleObject.cs: we need to make owner internal again to fix
3280                 some of ControlAccessibleObject.
3281
3282                 * Control.cs: lots of changes here.  add support for WM_CREATE,
3283                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
3284                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
3285                 we create child controls.  leave the MonoTODO's for the
3286                 accessibility calls, but fix the exceptions so the tests pass.
3287
3288                 Add the InvalidOperationExceptions to Invoke methods, and remove a
3289                 couple of InvokeInternal methods we aren't using.
3290                 
3291                 Also, add a couple of CreateHandle calls in places where we know
3292                 the handles are being created but our code doesn't reference
3293                 .Handle.
3294
3295                 Make SetVisibleCore call OnVisibleChange if the handle isn't
3296                 created.  If the handle is created, we rely on XplatUI.SetVisible
3297                 generating the event synchronously.
3298                 
3299                 Lastly, make sure we don't use this.Handle inside CreateHandle,
3300                 because we can call back into client (and that code can dispose of
3301                 the control).
3302
3303                 * XplatUIStructs.cs: misc/cleanup.
3304
3305                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
3306                 although we don't populate the wParam properly.
3307                 (CreateWindow): generate WM_CREATE.
3308                 (MapWindow,UnmapWindow): make these calls synchronous, at great
3309                 performance expense (particularly in the unmap case), to match
3310                 win32 behavior.
3311
3312                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
3313                 to call it.
3314                 (set_MdiParent): don't recreate the handle unless it's been
3315                 created already.
3316                 
3317                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
3318                 it's created.
3319
3320                 * NativeWindow.cs: this is probably the weirdest part of the
3321                 patch.  We need a way to link up the window being created to the
3322                 WM_CREATE message.  Since we can only be creating one window at a
3323                 time on a given thread, we keep track of a per-thread reference so
3324                 we can dispatch it properly.  We also need to keep track of the
3325                 Hwnd currently being created so that the win32 backend doesn't
3326                 have problems.
3327                 
3328                 * XplatUIWin32.cs: a similar change to the one we made in
3329                 NativeWindow.cs.
3330
3331 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3332
3333         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
3334         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
3335         to draw the menu shortcut string.
3336
3337 2007-03-07  Jackson Harper  <jackson@ximian.com>
3338
3339         * TreeNode.cs: Add the 2.0 collapse method.
3340
3341 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3342
3343         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
3344
3345 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3346
3347         * DataGridView.cs: Change DataSource will clear column and row
3348         lists. Call Invalidate() to reflect DataSource change.
3349
3350 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3351
3352         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
3353         and a new row is added to it.
3354
3355 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3356
3357         * DataGridView.cs: Add columns when DataSource is en empty list but
3358         is a System.Data.DataView (from a System.Data.DataTable).
3359
3360 2007-03-06  Andreia Gaita  <avidigal@novell.com>
3361
3362         * Label.cs: Implement AutoEllipsis (2.0)
3363
3364 2007-03-06  Jackson Harper  <jackson@ximian.com>
3365
3366         * TreeView.cs: Implement 2.0 TopNode setter property.
3367         - Use a local var instead of the skipped_nodes field for computing
3368         how many nodes to skip.  Otherwise we won't scroll because the
3369         valuechanged handler checks if skipped_nodes is equal to the new
3370         value.
3371         - Implement 2.0 Sort method.
3372         - Add useless 2.0 DoubleBuffer property
3373         - Implement 2.0 LineColors property.  Lets you change the color of
3374         the lines in the tree. Terribly useful for creating non cohesive
3375         desktops.
3376         - Implement 2.0 image key feature.
3377
3378 2007-03-06  Jackson Harper  <jackson@ximian.com>
3379
3380         * TreeView.cs: We can't get the bounds of the nodes before raising
3381         the AfterSelect event, because that event could change the node's
3382         bounds (scrolling, font change, etc).
3383
3384 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3385
3386         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
3387         * Form.cs: Don't recreate handle when creating FormWindowManager, just
3388           update window styles. In CreateParams us VisibleInternal instead of
3389           VIsible to get the actual visible flag set for this form.
3390         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
3391           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
3392           handle the case when the form is already maximized, in which case
3393           it should be restored. Fixes #81043.
3394
3395 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3396
3397         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
3398
3399 2007-03-05  Jackson Harper  <jackson@ximian.com>
3400
3401         * TreeViewHitTestInfo.cs: implement.
3402
3403 2007-03-05  Jackson Harper  <jackson@ximian.com>
3404
3405         * InternalWindowManager.cs: class status fix.
3406
3407 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3408
3409         * InternalWindowManager.cs: All windows that have a parent
3410         are confined to their parent when they're being moved.
3411         Fixes #80822.
3412
3413 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
3414
3415         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
3416         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
3417
3418 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3419
3420         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
3421           buttons invisible before deciding which ones should be visible
3422           (fixes minimize/maximize buttons showing up in toolwindows). Remove
3423           an unused variable.
3424         * InternalWindowManager.cs: Remove warning.
3425
3426 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3427
3428         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
3429         to throw an InvalidOperationException is virtual mode is being used.
3430
3431 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3432
3433         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
3434         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
3435         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
3436         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
3437         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
3438         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
3439
3440 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3441
3442         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
3443           driver.KeyboardDelay from XplatUI.KeyboardDelay 
3444         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
3445           (patch by Sergey Volk)
3446
3447 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3448
3449         * ToolWindowManager.cs: Added, contains logic for
3450           tool windows.
3451         * CreateParams.cs: Add a few helper methods and an
3452           internal variable to know which control the CreateParams belongs
3453           to.
3454         * Control.cs: Call Form.ChangingParent when the
3455           parent is about to be changed.
3456         * XplatUIX11.cs: DeriveStyles (): Set
3457           caption_height for all windows that have captions and are children.
3458           Update to use ToolWindowManager instead of InternalWindowManager
3459           for ToolWindows.
3460         * XplatUIWin32.cs: Set fake window styles for all
3461           windows that have window managers.
3462         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
3463           now duplicated for mdi windows when they are
3464           maximized, first for the buttons the window itself has, then for
3465           the buttons that appear in the menu bar. Makes things a little
3466           easier). Updated UpdateWindowDecorations, SetWindowState and the
3467           mouse eventhandlers accordingly.
3468         * Form.cs: Add ChangingParent (), contains the
3469           logic of what should happen when the parent changes. In MdiParent
3470           don't set things that ChangingParent () is doing. When handling
3471           WM_CLOSE, we can close the form if there are any other modal forms
3472           and the current form is a descendent of the modal form.
3473         * InternalWindowManager.cs: A lot of refactoring,
3474           the title buttons are now extracted to a separate container class
3475           that takes care of all button code (clicks, tooltips, etc). Moved
3476           Iconic|Maximized|Normal Bounds properties to this class from
3477           MdiWindowManager, so that the window state logic can succeed for
3478           other than mdi wm's. Implemented general window state change logic.
3479           Moved CreateButtons to ThemeWin32Classic, since the theme might
3480           override which buttons are available when as well as the exact
3481           location.
3482         * FormWindowManager.cs: Added, contains logic for
3483           normal forms.
3484         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
3485           which buttons go where (and if they are at all visible). 
3486           Removed special handling of maximized windows, since they aren't special. 
3487           In DrawManagedWindowDecorations don't try to draw the text if it is
3488           empty.
3489         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
3490           use whatever the wm gives us.
3491
3492 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3493
3494         * ButtonBase.cs: Add 2.0 properties.
3495         * Button.cs: Override Draw for 2.0.
3496         * Control.cs: Add Entered and Selected properties.
3497         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
3498         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
3499         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
3500         buttons.
3501         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
3502
3503 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3504
3505         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
3506
3507 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3508
3509         * XplatUIWin32.cs: Register a new class with Windows each time we get
3510         a new ClassStyle.  [Fixes bugs #79432, #80817]
3511         * Controls.cs: Set the correct ClassStyle in CreateParams.
3512         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
3513
3514 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
3515
3516         * ListView.cs: Add fireEvent argument to ReorderColumn since the
3517         ColumnReordered event must not be signaled when modifying DisplayIndex
3518         of a ColumnHeader. Added internal ReorderColumns method which takes
3519         care of drawing, and updating the internal DisplayIndex of the
3520         ColumnHeader. Added AddColumn method which is invoked from
3521         ColumnHeaderCollection when adding or inserting columns, and which
3522         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
3523         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
3524         Recalculated dispay indices after removing a ColumnHeader.
3525         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
3526         match MS. Allows last display index to be returned after ListView
3527         is disposed. Update actual location of ColumnHeader when DisplayIndex
3528         is modified.
3529
3530 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
3531
3532         * LinkLabel.cs: Improve CalcTrimRectangle.
3533         
3534         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
3535
3536 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3537
3538         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
3539         get rectangle as a result value.
3540
3541 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3542
3543         * LinkLabel.cs: Theres some diferences between rectangle return from 
3544         MeasureCharacterRanges and the area used for DrawString to fix this 
3545         CalcMeasurementFactor method was created, it calcules the diferences
3546         to be use later to adjust rectangle in draw operations. Fixes #80473.
3547         
3548         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
3549         to adjust draw rectangle.
3550
3551 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3552
3553         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
3554         text and some other changes to reduce and optimize source code.
3555
3556 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3557
3558         * RadioButton.cs: Implement 2.0 event.
3559         * RelatedImageListAttribute.cs: Implement new class.
3560
3561 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3562
3563         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
3564
3565 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * CheckBox.cs: Implement 2.0 functionality.
3568
3569 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3570
3571         * ListView.cs: Refactor Add and AddRange methods of
3572         ListViewItemCollection, to not update the ListView
3573         everytime an item is added in AddRange. Also move the update
3574         code to a new CollectionChanged method, and call it
3575         from other methods that need it as well (this should also fix some
3576         bugs when Sorting is used).
3577
3578 2007-02-27  Jackson Harper  <jackson@ximian.com>
3579
3580         * TextControl.cs: Try to never let the caret stay in a non-text
3581         tag.
3582         * TextBoxBase.cs: Update the caret.
3583
3584 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
3585
3586         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
3587         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
3588         delete POINT structure, duplicate of one in XplatUIStructs.
3589         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
3590
3591 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
3592
3593         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
3594         edit box since otherwise the Label would immediately be set (even if
3595         the user did not modify the label). In OnKeyDown set Handled to true
3596         if Return or Escape was pressed. In ColumnHeaderCollection unlink
3597         columns that are to be removed. In ListViewItemCollection unlink items
3598         that are to be removed.
3599
3600 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
3601
3602         * TextRenderer.cs: If we set a GDI clip region, we need to clear
3603         it when we are done.  [Fixes bug #80949]
3604
3605 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3606
3607         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
3608
3609 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3610
3611         * ListView.cs: I forgot to commit the changes for ListView 
3612         in my previous patch.
3613
3614 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3615
3616         * Clipboard.cs: Partially implement an overload of SetDataObject.
3617         * Form.cs: Implement ShowWithoutActivation.
3618         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
3619
3620 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3621
3622         This is a first set of changes to make the Virtual mode works,
3623         by avoiding the retrieval of ListViewItem instances until
3624         draw time.
3625
3626         * ListView.cs: Store item position in the ListView instead of the
3627         ListViewItem, this way we don't request the Bounds property of
3628         ListViewItem inside the ListView calculations, as well as cache the item
3629         size in item_size field. Store indexes instead of ListViewItem
3630         instances in the matrix used by icon view. Add a ItemMatrixLocation
3631         struct to hold the row and col info of the matrix info.
3632
3633         * ListViewItem.cs: Don't store the location anymore, and only cache
3634         the rectangles for GetBounds. Use the ListView.GetItemLocation
3635         method to retrieve the actual location.
3636
3637 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3638
3639         * TextRenderer.cs: Add clipping support, thanks to George.
3640         [Fixes bug #80949]
3641
3642 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3643
3644         * ListViewItem.cs: Cancel label edit when item is removed from 
3645         ListView.
3646         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
3647         event before the edit textbox is displayed.  Added CancelEdit method
3648         which is used end to editing while ignoring the value set by the
3649         user. In EndEdit, set focus to ListView to avoid losing focus to
3650         other controls. In ListViewItemCollection.Clear, cancel editing of
3651         any of the items.  In Remove, cancel editing of item being removed.
3652         Avoid udplicate code by modifing RemoveAt to invoke Remove.
3653
3654 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3655
3656         * FileDialog.cs: Update FSEntry when move is successful. Fixes
3657         bug #80948.  
3658
3659 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3660
3661         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
3662         compatible with non X11 systems. Fixes #80901.
3663
3664 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3665
3666         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
3667         whether the item should be unselected and reselect. We do no want this
3668         when we're starting to edit the label. Do not fire the 
3669         SelectedIndexChanged event from ListView when its already been fired
3670         by modifying ListViewItem.Selected. Fixes bug #80943.
3671
3672 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3673
3674         * TextRenderer.cs: Previos commit logic was backwards.
3675
3676 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3677
3678         * TextRenderer.cs: Don't add padding on MeasureText if we were
3679         sent the NoPadding flag.
3680
3681 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3682
3683         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
3684         after DrawButton. To prevent image overlaps button borders SetClip and 
3685         ResetClip added before and after draw image. Fixes #79129.
3686
3687 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3688
3689         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
3690         window size, it fix problem when you run under win32 that theres
3691         Size diferent than ClientSize. Also fix controls size and positions
3692         to mimic Win32. Fixes #80837.
3693
3694 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
3695
3696         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
3697         menu area to fix some problems for non X11 systems. Fixes #80613.
3698
3699 2007-02-22  Jackson Harper  <jackson@ximian.com>
3700
3701         * TreeNode.cs: When a node is expanded, set its is_expanded flag
3702         even if it doesn't have any children.
3703
3704 2007-02-22  Jackson Harper  <jackson@ximian.com>
3705
3706         * TreeView.cs: Calculate the top node 'on the fly', this
3707         eliminates issues where you need to click on the tree before
3708         scrolling it to get the top node computed correctly.
3709         * TreeNodeCollection.cs: We don't need to mess with the top node
3710         anymore.
3711
3712 2007-02-22  Jackson Harper  <jackson@ximian.com>
3713
3714         * DataGridViewRow.cs: Fix typo so height can actually be set.
3715         Patch by Peter Grimm.
3716
3717 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3718
3719         * FileDialog.cs: Fixed support for renaming files and directories.
3720         * ListView.cs: Do not lose focus when edit is canceled. Process
3721         Escape as regular key (to prevent closing of dialogs).
3722
3723 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3724
3725         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
3726         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
3727
3728 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3729
3730         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
3731         did not modify label.
3732         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
3733         modified the text. Reset Label when user presses Escape in edit mode.
3734         Move focus to ListView after having cancelled or finished editing the
3735         label.
3736
3737 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
3738
3739         * ComboBox.cs: Removed unnecessary initializations. Marked items field
3740         private. Clear textbox when Text is set to null and SelectedIndex is
3741         already -1.
3742         * FileDialog.cs: Removed unnecessary initializations. Removed 
3743         workarounds for ComboBox bugs that are now fixed. Modified
3744         DefaultExt, InitialDirectory and Title property to change null to
3745         zero-length string in getters. Avoid directly accessing fields.
3746
3747 2007-02-20  Jackson Harper  <jackson@ximian.com>
3748
3749         * TextControl.cs: Remove RecalAlignments call, that was some
3750         debugging leftovers.
3751         - Don't use the line indent when we shouldn't.
3752         * RichTextBox.cs: Add support for paragraph left indents.
3753
3754 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3755
3756         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
3757         Seems like the class status pages doesn't catch params differences.
3758
3759 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
3760
3761         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
3762
3763 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
3764
3765         * ComboBox.cs: Setting Text should have no effect if item text of
3766         selected item exactly matches value. First lookup text using
3767         case-sensitive comparison, and fallback to case-insensitive comparison.
3768         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
3769         allow startIndex to be last index. Changed ArgumentOutOfRangeException
3770         paramname to match MS. Restart from first item if string is not found
3771         after startIndex. Fixed paramname of ArgumentNullException that is
3772         thrown for null value in ObjectCollection.Contains.
3773
3774 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
3775
3776         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
3777
3778 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3779
3780         * ListControl.cs: In SelectedValue use value.Equals to compare for
3781         equality instead of ==, otherwise it will fail for strings.
3782         Fixes #80794.
3783
3784 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3785         
3786         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
3787         since the caret won't show up unless ShowSelection is true. 
3788         Fixes #80795.
3789
3790 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3791
3792         * Application.cs: When disabling all forms but the main form, do not
3793           disable any descendants of the main form (such as mdi children or
3794           other parented forms). Fixes #80822 on Windows.
3795         * Form.cs: If we have a parent, set the WS_CHILD style.
3796         * Control.cs: Update the window styles if the control whose parent has
3797           changed is a form (the WS_CHILD style has to be switched).
3798
3799 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
3800
3801         * XplatUIStructs.cs: MsgUIState structure added.
3802
3803 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
3804
3805         * FileDialog.cs: Removed need for separate fileName field. On 2.0
3806         profile, do not check filename(s) for illegal character if filename(s)
3807         were set non-interactively but always check on 1.0 profile. Fixed NRE
3808          in DefaultExt and only strip off first leading dot. Improve exception
3809         message when invalid Filter is set. Do not ignore InitialDirectory if
3810         it does no exist. Store specified Title, and if empty use default
3811         title (depending on type of dialog). Added an internal DialogTitle 
3812         property for retrieving dialog title. Fixed logic of displayed dir to
3813         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
3814         string as its buggy.
3815         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
3816         FileName is a zero-length string (it can never be null). Override 
3817         DialogTitle property to set default title of dialog box.
3818         * SaveFileDialog.cs: Override DialogTitle property to set default
3819         title of dialog box.
3820
3821 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
3822
3823         * FileDialog.cs: Modify default text of filename and filetype labels
3824         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
3825         after we've updated the SelectedIndex. Fixes part of bug #80887.
3826         * SaveFileDialog.cs: Set text of filetype label.
3827
3828 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3829
3830         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
3831         label field. Needed by latest Jackson's fixes for ListView.
3832
3833 2007-02-16  Andreia Gaita  <avidigal@novell.com>
3834
3835         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
3836         print preview images.
3837
3838 2007-02-16  Jackson Harper  <jackson@ximian.com>
3839
3840         * ListView.cs: Make AfterLabelEdit work correctly.
3841         * FileDialog.cs: After changing the name of the folder, we have to
3842         make sure that it is created, or that we pop up an error because
3843         it already exists.
3844
3845 2007-02-16  Jackson Harper  <jackson@ximian.com>
3846
3847         * X11Dnd.cs: Implement aliases on mime handlers, so things like
3848         System.String are mapped to text.
3849         - Handle dataobjects, getting all the possible formats out of them
3850         - We dont need the drag event args before we give feedback. This
3851         allows feedback cursors to be immediate before selections have
3852         been converted.
3853
3854 2007-02-16  Jackson Harper  <jackson@ximian.com>
3855
3856         * TextBoxBase.cs: Modified the method for inserting images to
3857         taking a line and position instead of tag and position.
3858         * RichTextBox.cs: Handle PngBlip data by inserting the png image
3859         into the RTF file.
3860         * TextControl.cs: Allow images to be inserted as the first tag of
3861         a line.
3862         - Fix some off by one issues when we assume the first tag is a
3863         text tag, not an image tag.
3864
3865 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3866
3867         * ListView.cs: Set focus to ListView when ItemControl gets a
3868         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
3869         Fixes part of #80467.
3870
3871 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3872
3873         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
3874           validate Text input (if null or empty string reset Value to default
3875           value). Fixes #80830.
3876
3877 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3878
3879         * ListView.cs: Set owner as null for columns and items when
3880         Dispose is invoked. Fixes #80607.
3881
3882 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
3883
3884         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
3885         showing DropDowns, don't show a Grip when doing Flow layout.
3886         [This fixes the toolbox in PDN 2.72.]
3887         * ToolStripItem.cs: Add Anchor property and some internal properties to
3888         reduces needed changes to FlowLayout.
3889         * ToolStripOverflow.cs: Remove unused variable.
3890         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
3891         use it in the layout calculations.
3892
3893 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3894
3895         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
3896         reported in #79640.
3897         
3898         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
3899         size calculation.
3900
3901 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3902
3903         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
3904         MeasureString format, it can make button very large in some cases, it is
3905         strange but is what win32 do.
3906
3907 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3908
3909         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
3910         size calculation.
3911
3912         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
3913         rendering, the value is based on MenuAccessKeysUnderlined.
3914
3915 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3916
3917         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
3918         for most themes.
3919         
3920         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
3921         
3922         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
3923         and use MenuAccessKeysUnderlined instead.
3924
3925 2007-02-13  Andreia Gaita  <avidigal@novell.com>
3926
3927         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
3928         A selected control would not get a Focus call if:
3929                 - the default active control of the container is the same as
3930                   the one that was selected
3931                 - we are switching from one container to another
3932         Under these conditions, the container being selected already has
3933         an active_control, which is the same as the one being activated, 
3934         so set_ActiveControl would always return and not send the Focus
3935         call. Fix to check if the currently active control of the container
3936         is actually focused.
3937
3938 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
3939
3940         * StatusStrip.cs: Implement the spring layout.
3941         * ToolStripControlHost.cs: Make sure the hosted control's visibility
3942         always matches the host.
3943         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
3944         and TextAfterImage.
3945
3946 2007-02-13  Andreia Gaita  <avidigal@novell.com>
3947
3948         * Control.cs: Code reorganization only.
3949           - Reorganize the WndProc cases so that each case has it's own handling method, 
3950           to help with the no-line-numbering stack traces.
3951           - Formatting changes (it's vstudio's fault, really :p)
3952
3953 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3954
3955         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
3956           Thread.CurrentUICulture to match DateTimePicker's (and MS)
3957           behaviour.
3958
3959 2007-02-12  Jackson Harper  <jackson@ximian.com>
3960
3961         * RichTextBox.cs:
3962         * TextBox.cs: By default we have a non multiline document
3963         - use the multiline property instead of the internal variable
3964         * TextBoxBase.cs: Treat multiline and non multiline the same in
3965         most places.
3966         - Use the documents multiline flag instead of tracking it ourself
3967         * TextControl.cs: Attempt at getting multiline to match MS
3968         behavior.  Lines now track an offset, which is either their X or Y
3969         offset depending on whether or not we are in multiline mode.
3970         - Update all the methods to understand that lines have an X value.
3971         - Fix crash in Undo::Duplicate when empty lines are deleted.
3972
3973 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
3974
3975         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
3976         code moved to properties PreferredHeight and PreferredWidth. It solve the
3977         all problems when preferred sizes must be recalculated. Fixes #80801.
3978
3979 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
3980
3981         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
3982         font height when compatible_text_rendering is false. Partially fix #80801.
3983
3984 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3985
3986         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
3987
3988 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3989
3990         * Form.cs: Improved exception messages in ShowDialog.
3991
3992 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3993
3994         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
3995         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
3996         if not set. Fixes bug #80764. Avoid accessing current_settings field
3997         directly.
3998
3999 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
4000
4001         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
4002         false.
4003
4004         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
4005         public in 2.0 and for easy maintenance and dont break compatibility it is 
4006         internal in 1.1.
4007         
4008 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4009
4010         * ToolStripItem.cs: Implement using images from ImageList.
4011
4012 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4013
4014         * DateTimePicker.cs: Change default date-formatting culture from
4015           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
4016           seems to be the way MS does it.
4017
4018 2007-02-08  Andreia Gaita  <avidigal@novell.com>
4019
4020         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
4021         (the 6 was cut off on the right side)
4022
4023 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4024
4025         * Form.cs: Tell MenuStrips to close when the form is clicked.
4026         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
4027         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
4028         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
4029         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
4030         support for Overflow, where items that do not fit are automatically
4031         reparented to a drop down menu.
4032         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
4033         Also: fixes bug #80747.
4034
4035 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4036
4037         * ComboBox.cs: Remove warning (unused code).
4038         * ScrollableControl.cs: Remove warning for 1.1 profile.
4039
4040 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4041
4042         * Form.cs: Remove a warning.
4043
4044 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4045
4046         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
4047           'g' specifier, not documented anywhere, but seems to always show up
4048           as a single space (might have something to do with the DateTime 'g'
4049           specifier, which is the era format, but since DateTimePicker can't
4050           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
4051           won't crash if the format has an unmatched quote. Now shows
4052           single-character formats correctly. Fixes #80744.
4053
4054 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4055
4056         * StatusStrip.cs: Stretch property needs to call base.Stretch,
4057         not this.Stretch to fix stack overflow. [Fixes bug #80760]
4058
4059 2007-02-07  Chris Toshok  <toshok@ximian.com>
4060
4061         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
4062         background color.  it overwrites the background image we've
4063         already painted.  Fixes #80599.
4064
4065 2007-02-07  Chris Toshok  <toshok@ximian.com>
4066
4067         * DataGrid.cs: return immediately from Edit() when there are no
4068         columns.  Fixes #80662.
4069
4070 2007-02-07  Chris Toshok  <toshok@ximian.com>
4071
4072         * MessageBox.cs: fix #80625.  don't always show the Help button in
4073         2.0.  use the displayHelpButton parameter to determine if we
4074         should show it. Also, make the internal show_help field private.
4075
4076 2007-02-07  Chris Toshok  <toshok@ximian.com>
4077
4078         * Control.cs (SetVisibleCore): check in the proposed patch for
4079         80604, and set is_visible before calling CreateControl.
4080
4081 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
4082
4083         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
4084         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
4085         on it.
4086
4087 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
4088
4089         * MenuAPI.cs: hotkey_active internal field added, it is required because
4090         we need to know when hotkeys must be draw, before this change a keystate
4091         Navigating was used but we can have menu in navigating state without
4092         hotkeys. Fixes #80694.
4093         
4094         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
4095
4096 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4097
4098         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
4099           corresponding events and methods to be internal for 1.1 profile and
4100           public for 2.0 profile (required by SizeGrip).
4101         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
4102           implicit control list). Don't set the size nor the location of the
4103           SizeGrip anymore as it's not needed.
4104         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
4105           draw directly on the captured control (fixes #80656). Removed
4106           ShowGrip (it wasn't used anywhere), redraw (always true), added
4107           GetDefaultSize and GetDefaultRectangle to calculate defaults.
4108         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
4109           be called from SizeGrip.
4110
4111 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4112
4113         * Timer.cs: Throw ArgumentException if Interval <= 0.
4114
4115 2007-02-05  Jackson Harper  <jackson@ximian.com>
4116
4117         * TreeView.cs: We need to check scrollbar visibility when window
4118         visibility is updated, because non visible trees don't ever add
4119         scrollbars.
4120         * Cursor.cs: We want the override cursor to be reset to NULL when
4121         we set current cursor to the default cursor.
4122
4123 2007-02-05  Jackson Harper  <jackson@ximian.com>
4124
4125         * TextControl.cs: Don't have crlfs when we are non multiline.
4126         - Consolidate the line position.
4127
4128 2007-02-05  Jackson Harper  <jackson@ximian.com>
4129
4130         * X11Keyboard.cs: BACK+CTRL gets a special char code.
4131
4132 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4133
4134         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
4135           handling LeaveNotify->NotifyUngrab in order to send
4136           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
4137           after calling XUngrabPointer, so we call WindowUngrabbed directly
4138           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
4139         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
4140           MouseCaptureChanged correctly. Also create handles if changing
4141           Capture (matches MS behaviour).
4142
4143 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4144
4145         * SizeGrip.cs: Make the last change 2.0 only.
4146
4147 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4148
4149         * SizeGrip.cs: If resizing and the capture is lost, revert any size
4150           changes to initial size (fixes #80597).
4151
4152 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4153
4154         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
4155
4156 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4157
4158         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
4159           background) and only allow dragging if enabled. This way the
4160           sizegrip can be used to fill the open square that otherwise would
4161           have been shown in the bottom right corner of ScrollableControl
4162           when ScrollableControl is not suppose to support sizing.
4163         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
4164           sizegrip is shown and enabled, and hook up with necessary events.
4165
4166 2007-02-01  Chris Toshok  <toshok@ximian.com>
4167
4168         * DataGridTextBoxColumn.cs: clean up the
4169         GetFormattedString/GetColumnValueAtRow combination of functions.
4170         Also fix UpdateUI, and the initial state of
4171         IsInEditOrNavigateMode.
4172
4173         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
4174         aren't supposed to scroll the textbox here, we're supposed to
4175         scroll the datagrid.
4176
4177 2007-02-01  Chris Toshok  <toshok@ximian.com>
4178
4179         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
4180         setting the position.
4181
4182 2007-02-01  Chris Toshok  <toshok@ximian.com>
4183
4184         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
4185         here, since the most recent focus fixes keep us from generating
4186         the Leave event when our textbox gets focus.
4187         (Edit): we should be passing null for the column style's
4188         instantText parameter.
4189         
4190 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
4191
4192         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
4193         raised.  Fixes menu text/icons not showing up in PDN.
4194
4195 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4196
4197         * Control.cs: Remove code in constructor that makes every
4198         control with WS_CHILD set have initial location -1, -1.
4199
4200 2007-01-31  Jackson Harper  <jackson@ximian.com>
4201
4202         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
4203         XplatUIX11.
4204         * XplatUIX11.cs: Give teh keyboard to teh dnd.
4205
4206 2007-01-31  Jackson Harper  <jackson@ximian.com>
4207
4208         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
4209         - Remove some debug code.
4210
4211 2007-01-31  Jackson Harper  <jackson@ximian.com>
4212
4213         * XplatUIX11.cs: If you set the override cursor during a grab, it
4214         should actually override the grab cursor.  This comes into play
4215         when you are setting custom cursors in a DND feedback method.
4216
4217 2007-01-31  Jackson Harper  <jackson@ximian.com>
4218
4219         * X11Dnd.cs: Add support for handling the QueryContinue and
4220         GiveFeedback events.
4221         - Cancel drag and drop actions when the escape key is clicked.
4222         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
4223         can handle the ESCAPE key.
4224         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
4225         done when dnd events are continued after the button is released.
4226         - Add a new helper method so that dnd can translate key events.
4227
4228 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
4229
4230         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
4231         make it more obvious what is happening.
4232
4233 2007-01-30  Jackson Harper  <jackson@ximian.com>
4234
4235         * XplatUIX11.cs: Don't break when handling button release in drag
4236         and drop operations. We need that BUTTONUP message to get through
4237         so capture is released.
4238         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
4239         this is handled automatically when the mouse is down.
4240
4241 2007-01-30  Jackson Harper  <jackson@ximian.com>
4242
4243         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
4244         is closed, so we need to make sure that we aren't changing the
4245         dialog result when the OK (Open or Save) button has been clicked
4246         and we are closing the window ourselves.  Note we don't need to
4247         worry about the cache being written in this case, because it was
4248         already done in the previous FilOk call.
4249
4250 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4251         
4252         * DateTimePicker.cs: Remove a warning.
4253         * ComboBox.cs: Remove a couple of warnings.
4254
4255 2007-01-29  Chris Toshok  <toshok@ximian.com>
4256
4257         * XplatUIX11.cs: don't crash, and remove the icon if the user has
4258         set one, if SetIcon is passed a null icon.
4259
4260 2007-01-29  Andreia Gaita  <avidigal@novell.com>
4261
4262         * TextBox.cs: Redraw when the password characters changes
4263         * TextControl.cs: Check if textbox has a password char and draw 
4264         a line of password chars instead of the text in the line. LineTag gets 
4265         an extra Draw() method which allows document.Draw to override the text 
4266         that will be drawn. Removes 1024 char limitation on length of passworded 
4267         lines.
4268
4269 2007-01-29  Jackson Harper  <jackson@ximian.com>
4270
4271         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
4272         single chars is not.
4273
4274 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
4275
4276         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
4277         one pixel.  Fix a StackOverflowException caused by an overload wrongly
4278         calling itself.
4279
4280 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
4281
4282         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
4283         also remove ProcessArrowKey and put the code inside ProcessKeys.
4284
4285 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
4286
4287         * PaddingConverter.cs: Added.
4288
4289 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4290         
4291         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
4292         ShowPanels is false (fixes #80600). Only draw up to 127 characters
4293         of text (fixes #80601). For panels clip the text to draw to the
4294         panel (fixes #80603).
4295
4296 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4297
4298         * ComboBox.cs: Fixed implementation of ResetText.
4299
4300 2007-01-25  Jackson Harper  <jackson@ximian.com>
4301
4302         * TextControl.cs: For the last char of a line we need to use the
4303         line size, not that chars width, since it won't actually be
4304         computed since the right side of a char is based on the start of
4305         the left side of the next char, and the next char does not exist.
4306
4307 2007-01-25  Chris Toshok  <toshok@ximian.com>
4308
4309         * Splitter.cs: fix the new unit tests, and reindent some switch
4310         statements.
4311
4312 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4313
4314         * ComboBox.cs: Implemented 2.0 methods and events.
4315         * TextBoxBase.cs: Added OnTextUpdate, so that
4316         ComboBox.ComboTextBox can inform ComboBox of it.
4317
4318 2007-01-25  Jackson Harper  <jackson@ximian.com>
4319
4320         * TextControl.cs: Respect ShowSelection when deciding whether or
4321         not to display the caret, this allows comboboxes to have carets
4322         when the combotextbox does not have focus.
4323
4324 2007-01-25  Jackson Harper  <jackson@ximian.com>
4325
4326         * TextControl.cs: Add a Suspend/Resume for updating, basically the
4327         same as the Suspend/Resume for recalc, except this will do actual
4328         Invalidates.
4329         - New Undo manager, works much like the MS version.
4330         - Implemented Redo
4331         * TextBoxBase.cs: The Cut operation is undoable.
4332
4333 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4334         
4335         * TextBoxBase.cs: Don't antialias text. Makes it look way better
4336         on Windows (no difference on Linux).    
4337
4338 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4339
4340         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
4341         we don't want to activate any windows. Fixes #79433.
4342
4343 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
4344
4345         - ButtonBase.cs: Fix capitalization of parameter: disposing.
4346         [Fixes bug #80609]
4347
4348 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
4349
4350         * FileDialog.cs:
4351         - Move to using System.ComponentModel.EventHandlerList
4352         - Replace Refresh with Invalidate
4353         - Clear the mime filecache on closing
4354         - Some other memory reducing work. After beeing closed FD now uses
4355           only about 300 KB for the fdo mime stuff plus the memory of the
4356           cached icons.
4357         * Mime.cs: Changed coding style and removed unnecessary commented
4358         code. Some more memory memory reducing work.
4359
4360 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4361
4362         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
4363         a few other missing 2.0 properties.
4364         * Theme.cs: Added DrawFlatStyleComboBox.
4365         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
4366
4367 2007-01-24  Chris Toshok  <toshok@ximian.com>
4368
4369         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
4370         wake_waiting flag, not just when there's data to be read.  if we
4371         don't, then future wakeup's won't reach us and we'll be doomed to
4372         wait for the entire 1 second timeout forever (unless there are X
4373         events to be had).
4374
4375 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4376
4377         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
4378         until you pass Items.Count, not Items.Count - 1 like 1.1.
4379
4380 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
4381
4382         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
4383
4384 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4385
4386         * ToolStripContainer.cs: The recent Dock fix exposed that I was
4387         adding the panels in the wrong order.
4388
4389 2007-01-24  Jackson Harper  <jackson@ximian.com>
4390
4391         * TextBoxBase.cs: When we move the caret we also need to move the
4392         selection, this fixes some random crashing after doing select
4393         text, unselect, delete a char, paste.
4394
4395 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4396
4397         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
4398
4399 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4400
4401         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
4402         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
4403         * ToolBar.cs: Force redraw in BackgroundImageChanged.
4404
4405 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4406
4407         * ToolBar.cs:
4408         - Implement support for vertical toolbars. Fixes #80539;
4409         - Call LayoutToolBar when resize, it fix some other problems in layout.
4410         - Rename requested_height to requested_size, as we can have width on it
4411         when toolbar is vertical.
4412         - Create a private property "Vertical" that uses Dock to verify when 
4413         toolbar is vertical or not.
4414         - Set ControlStyles when change Dock property.
4415         - Refactory in LayoutToolBar to have better variables names and to support
4416         vertical toolbars.
4417         - Fixes default value for ButtonSize when button count is equal zero, size
4418         must be (39, 36) test case writed.
4419
4420 2007-01-23  Chris Toshok  <toshok@ximian.com>
4421
4422         * Control.cs: fix the checks so that they work correctly for mdi
4423         parents/children.
4424
4425 2007-01-23  Chris Toshok  <toshok@ximian.com>
4426
4427         * Control.cs: ControlCollection seems to have super-secret
4428         abstraction breaking knowledge of Mdi containers.  allow MdiClient
4429         to add toplevel controls.
4430
4431 2007-01-23  Chris Toshok  <toshok@ximian.com>
4432
4433         * Control.cs: throw an ArgumentException if a toplevel control is
4434         added to our control collection from ControlCollection.Add, as
4435         well as from ControlCollection.IList.Add.  This fixes the
4436         ControlSetTopLevelTest.TestTopLevelAdd unit test.
4437
4438         Also, in ControlCollection.IList.Add, don't through an
4439         ArgumentNullException, throw an ArgumentException, when value ==
4440         null.  This matches MS.
4441
4442 2007-01-23  Chris Toshok  <toshok@ximian.com>
4443
4444         * BindingSource.cs: initial, incomplete, implementation of
4445         BindingSource.
4446
4447 2007-01-23  Jackson Harper  <jackson@ximian.com>
4448
4449         * TextControl.cs:
4450         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
4451         that I can fix a broken unit test (TextBoxTest::ClearUndo)
4452         
4453 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4454
4455         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
4456
4457 2007-01-23  Andreia Gaita  <avidigal@novell.com>
4458
4459         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
4460         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
4461         IndexOfKey() for 2.0
4462
4463 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4464
4465         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
4466         to prevent it from changing z-order.
4467         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
4468         leave UI updates in MdiWindowManager.
4469         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
4470         1 sized (NC handling goes weird on Linux otherwise).
4471         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
4472         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
4473         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
4474         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
4475         and SetWindowState(s) to allow for changing the size of an activated child
4476         before activating it (reduces a lot of flicker).
4477
4478 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4479
4480         * Form.cs: Changing FormBorderStyle has different semantics based
4481         on whether the Form is visible or not.  If not visible, don't change
4482         the Size.  But InvalidateNC needs to be called to force the window
4483         to pick up the changes and redraw itself.  [Fixes bug #80574]
4484
4485 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4486
4487         [Moma work]
4488         * ContainerControl.cs: ProcessCmdKey.
4489         * ErrorProvider.cs: new constructor.
4490         * Form.cs: fix AutoValidateEvent compiler warning.
4491         * Label.cs: fix OnAutoSizeChanged compiler warning.
4492         * MenuStrip.cs: fix CanOverflow compiler warning.
4493         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
4494         * TextBox.cs: Dispose.
4495         * ToolStrip.cs: CanOverflow, re-enable double buffering.
4496         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
4497         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
4498         * ToolStripItem.cs: Overflow, RightToLeft properties.
4499
4500 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4501
4502         * Form.cs: Move the layout of the main form to MdiWindowManager.
4503         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
4504         do a layout of the main window to update MdiClient's client area to
4505         the right area. Fixes #80533. Remove the calculation of nc size, 
4506         it was just wrong and the correct one is the same as for 
4507         InternalWindowManager. 
4508
4509 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
4510
4511         * Control.cs: Setting Anchor or Dock needs to reset the other
4512         to its default.  [Fixes bug #80556]
4513
4514 2007-01-20  Chris Toshok  <toshok@ximian.com>
4515
4516         * CheckedListBox.cs: class status changes.
4517
4518         * ScrollableControl.cs: same.
4519
4520         * RichTextBox.cs: same.
4521
4522         * ContainerControl.cs: same.
4523
4524         * ListView.cs: same.
4525
4526         * NotifyIcon.cs: same.
4527
4528         * MenuStrip.cs: same.
4529
4530         * RadioButton.cs: same.
4531
4532         * CheckBox.cs: same.
4533
4534         * PrintPreviewDialog.cs: same.
4535
4536         * Form.cs: same.
4537
4538 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
4539
4540         * TreeNode.cs: Apply Alan's patch for Name property.
4541
4542 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4543         
4544         * Form.cs: Implemented SizeGripStyle.
4545         * SizeGrip.cs: Check for minimum and maximum size for the
4546         control being resized and only resize if size has actually
4547         changed.
4548
4549 2007-01-19  Chris Toshok  <toshok@ximian.com>
4550
4551         * DataGridColumnStyle.cs: stop setting _readonly in the
4552         PropertyDescriptor setter.  fixes a unit test failure.
4553
4554         also, rename ParentReadOnly to TableStyleReadOnly, and have it
4555         just consult our table style (if we have one).  We don't need to
4556         consult the datagrid readonly attribute because that's passed in
4557         as the _ro arg to Edit.  this simplifies things a little.
4558         
4559         * DataGrid.cs: use CurrentColumn instead of
4560         current_cell.ColumnNumber just to simplify some of the code.
4561
4562         switch the order of some things in the CurrentCell setter to keep
4563         the previous cell from getting a textbox again -
4564         EnsureCellVisibility causes scrolling to happen, which calls Edit.
4565         So we need to set the new cell before calling it.
4566         
4567         call Edit in OnEnter, as does Microsoft.
4568         
4569         also, make sure the current table style isn't the one we create
4570         initially when checking to see if it's different than the one
4571         we're setting it to in BindColumns (this fixes #80421).
4572
4573         * GridTableStylesCollection.cs: table styles can have "" for a
4574         mapping name.  part of the fix for #80421.
4575
4576         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
4577         Edit significantly.
4578
4579 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4580
4581         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
4582         and less GDI object leaky-er.
4583
4584 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4585
4586         * LinkLabel.cs: Add opaque control style
4587
4588 2007-01-18  Jackson Harper  <jackson@ximian.com>
4589
4590         * TextControl.cs: Calculate width properly.
4591         - Don't store the tag's X offset, this can be figured out very
4592         easily.
4593         - When getting the caret tag make sure to get the last empty tag.
4594
4595 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4596
4597         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
4598         [Fixes bug #79959]
4599
4600         * Control.cs: Color.Empty shouldn't count for previous transparent
4601         redraw changes.
4602
4603 2007-01-18  Jackson Harper  <jackson@ximian.com>
4604
4605         * TextBox.cs:
4606         * RichTextBox.cs:
4607         * TextControl.cs: Starting to merge in some pieces of my older
4608         undo work.  Basically just some slight cleanup of the undo API.
4609
4610 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4611
4612         * TrackBar.cs: Fix signature of RightToLeftLayout.
4613         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
4614         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
4615         * Application.cs: Implemented UseWaitCursor.
4616
4617 2007-01-18  Jackson Harper  <jackson@ximian.com>
4618
4619         * TextControl.cs: We can't skip tags if any part of the tag is
4620         visible.
4621
4622 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4623
4624         * ContainerControl.cs: Override OnLayout.
4625
4626 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4627
4628         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
4629
4630         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
4631         everything else.
4632
4633 2007-01-18  Chris Toshok  <toshok@ximian.com>
4634
4635         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
4636         (leftover from the container_selected days, I'd wager).  fixes bug
4637         #80546.
4638
4639 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4640
4641         * Control.cs: Apply patch from George to fix the new testcase on
4642         bug #80451.  We can't just check for Color.Transparent, we need 
4643         to check if the back color's alpha channel is < 255.
4644
4645 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4646
4647         * Form.cs: Move setting show_icon = true to before the constructor
4648         so that the base constructor has that information when it calculates
4649         the form's size.  Was causing forms to be (6, 6) bigger than they
4650         were supposed to be.  Thanks for catching this Rolf!
4651
4652 2007-01-18  Jackson Harper  <jackson@ximian.com>
4653
4654         * TextControl.cs: When replacing a selection we need to invalidate
4655         from the initial selection start, because selection start is moved
4656         to the end of the replacement.
4657
4658 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4659
4660         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
4661
4662 2007-01-18  Chris Toshok  <toshok@ximian.com>
4663
4664         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
4665         I just added.
4666
4667 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
4668
4669         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
4670         layout methods and properties from ToolBarButton must be available
4671         into ToolBarButtonInfo.
4672
4673 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4674
4675         * Control.cs: If the control has a transparent background, we
4676         need to refresh it when it moves and when it's parent's background
4677         image changes.  [Fixes bug #80451]
4678
4679 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4680
4681         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
4682
4683 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4684
4685         * XplatUIWin32.cs: Implement proper double buffering for Windows.
4686         [Fixes bug #80447, and probably speeds up things as well]
4687
4688 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4689
4690         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
4691         * XplatUIWin32.cs: We need to recalculate NC size after changing 
4692         window style to toolwindow (otherwise the client rectangle will be
4693         3 pixels to small for some reason).
4694         * MdiWindowManager.cs: Revert NC size calculations to match how
4695         they are calculated only based on window styles (to match
4696         Win32AdjustWindowRectEx, since otherwise when setting size or 
4697         location, Control will call Win32AdjustWindowRectEx to update client 
4698         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
4699         calculate a different value of client size causing another paint 
4700         (and flickering))
4701         * InternalWindowManager.cs: When moving or resizing a window only
4702         update size or location if they actually changed.
4703         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
4704         (seems to match Windows behaviour better). Cleaned up 
4705         ManagedWindowDecorations to draw what's needed and nothing else
4706         (was drawing borders and lines where they shouldn't be)
4707         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
4708         (style = 0xFFFF) and takes into account caption height when 
4709         calculating window rectangle.   
4710
4711 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4712
4713         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
4714         can be added to toolbar multiple times, we need to maintain a list of 
4715         button information for each positions.
4716
4717 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4718
4719         * ToolBar.cs: Some small stetic changes.
4720
4721 2007-01-16  Jackson Harper  <jackson@ximian.com>
4722
4723         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
4724         that allow us to have nested recalc = false blocks.
4725         - Add paste support for images in the RichTextBox
4726         * RichTextBox.cs: flush the text after the color is changed, so
4727         the change takes effect.
4728         - Use SuspendRecalc
4729         - Some extra debugging info
4730         * TextControl.cs: Tags no longer track their length, it is just
4731         computed from the next tags length, this makes things a little
4732         simpler and reduces places that we have to track length changes.
4733         - Refactored the linetag class a little so we could make it
4734         a base class for different kinds of tags
4735         - Created a image tag, a tag that can have a single image inserted
4736         into it
4737         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
4738         that we can call suspend multiple times.
4739         - Add some debugging methods
4740
4741 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4742
4743         * MdiClient.cs: Add ActivatePreviousChild for 
4744         mdi child window navigation.
4745         * Form.cs: Use MdiClient.ActivateNextChild/
4746         ActivatePreviousChild instead of Form.SelectNextControl
4747         to select the next/previous child since 
4748         SelectNextControl doesn't do it in the same order
4749         as mdi children should do it.
4750
4751 2007-01-16  Chris Toshok  <toshok@ximian.com>
4752
4753         * Control.cs: remove container_selected field.
4754
4755 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4756
4757         * MdiClient.cs: Update main form's ActiveChild when
4758         updating keyboard focus for the mdi child.
4759
4760 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
4761
4762         * Control.cs: PreferredSize fix.
4763
4764         * Form.cs: Add several 2.0 events, properties, and methods.
4765
4766 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
4767
4768         * Form.cs: Provide meaningful message when MdiParent is assigned a
4769         Form that is not an MdiContainer.
4770
4771 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4772
4773         * MdiClient.cs: Update main form's ActiveChild when
4774         activating a mdi child.
4775
4776 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4777
4778         * MdiWindowManager.cs: Fix NRE when merging menus and main form
4779         doesn't have a menu.
4780
4781         * Form.cs: Request NCRecalc after creating a mdi child window.
4782         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
4783         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
4784         
4785         * MdiClient.cs: Add new method SendFocusToActiveChild that either
4786         sends keyboard focus to the active child, or to the MdiClient
4787         if there are no child forms.
4788         
4789 2007-01-15  Chris Toshok  <toshok@ximian.com>
4790
4791         * ListView.cs: drop the *Internal overrides, just do our work in
4792         ItemControl's WndProc instead.
4793
4794         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
4795         of the various controls, and forward the events properly (in the
4796         same manner as MS) from the textbox to the UpDown.  Also the
4797         ActiveControl of the UpDownBase gets set properly now.  Finally,
4798         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
4799
4800         * NumericUpDown.cs: set Text in the ctor.
4801
4802         * DomainUpDown.cs: call UpdateEditText in the ctor.
4803         
4804         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
4805         so even a Selectable = false textbox can be focused if you click
4806         in it.  Go figure.
4807
4808         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
4809         just add their handling in their respective WndProc's.  Also add
4810         an explicit FocusInternal method that doesn't consult CanFocus
4811         before calling Select(this).
4812
4813         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
4814         do our work in WndProc instead.
4815
4816         * TabControl.cs: same.
4817
4818         * ComboBox.cs: same.
4819
4820 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4821
4822         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
4823         Fixes #80006.
4824
4825 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4826
4827         * ListViewItem.cs:
4828         * ThemeWin32Classic.cs: Don't draw the item text outside
4829         item bounds in Details view, as well as use trimming.
4830         Fixes bug #80376.
4831
4832 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
4833
4834         * Form.cs: Implement Form.ShowIcon.
4835         
4836         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
4837         null, which when combined with the DlgModalFrame window style removes
4838         the icon from the title bar.
4839
4840 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
4841
4842         * Control.cs: Call OnMouseClick after OnClick. (2.0)
4843
4844 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4845
4846         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
4847         menu when mdi child windows theres a menu, uses insert to get icon
4848         at first position. Partially fix #80006.
4849
4850 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
4851
4852         * Clipboard.cs: Implement 2.0 methods.
4853
4854 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4855
4856         * Menu.cs: Implement Insert method of MenuItemCollection class
4857         to fix MenuMerge.
4858
4859 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4860
4861         * ListView.cs: Implement 2.0 FindItemWithText method.
4862
4863 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
4864
4865         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
4866         to calculate menu bar size. Fixes #80290.
4867
4868 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
4869
4870         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
4871
4872 2007-01-11  Chris Toshok  <toshok@ximian.com>
4873
4874         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
4875         initial form.
4876
4877 2007-01-11  Chris Toshok  <toshok@ximian.com>
4878
4879         * LinkLabel.cs: make sure to call base.Select in our Select method
4880         if it turns out we're going to be selected (i.e. if we have a link
4881         that is going to receive focus).  That way our container's
4882         ActiveControl is updated properly.
4883
4884 2007-01-11  Chris Toshok  <toshok@ximian.com>
4885
4886         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
4887         they have 1 or more links.  this fixes the crash gert reported.
4888
4889 2007-01-11  Andreia Gaita  <avidigal@novell.com>
4890
4891         * ContainerControl.cs: Remove ContainerSelected flag, not needed
4892         anymore.
4893
4894         * Control.cs (Controls.Add): Check if control to be added to the collection
4895         is a top level control, and throw an ArgumentException if it is.
4896         Remove ContainerSelectedFlag, not needed anymore.
4897
4898         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
4899         top most control doesn't activate the form. This fixes a problem in the
4900         MessageBox, where the default button wouldn't get focus because the form
4901         was activated before being Loaded - when the Owner is set, SetTopMost is
4902         called, and it would activate it.
4903
4904 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
4905
4906         * Button.cs: When clicked and setting the parent form's DialogResult,
4907         use FindForm instead of Parent, since parent could be a container
4908         control and not the Form.  Fixes bug #80495.
4909
4910 2007-01-10  Chris Toshok  <toshok@ximian.com>
4911
4912         * Form.cs: move the call to SendControlFocus into the same
4913         is_loaded check.
4914
4915 2007-01-10  Chris Toshok  <toshok@ximian.com>
4916
4917         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
4918         It breaks in the face of the new ActiveControl stuff, and should
4919         be unnecessary.
4920
4921         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
4922         activecontrol's focus if it's not already set, after we set
4923         ActiveControl, but before we call OnActivated.  Re-fixes #79667
4924         after the previous focus/active control fixes regressed it.
4925
4926         * Control.cs: reindent some code.
4927         
4928 2007-01-10  Chris Toshok  <toshok@ximian.com>
4929
4930         * Splitter.cs: clearing some outstanding changes from my tree.
4931         Replace all accesses (not writes) to the internal dock_style field
4932         with the Dock property.
4933
4934 2007-01-10  Chris Toshok  <toshok@ximian.com>
4935
4936         * Control.cs: make FireEnter, FireLeave, FireValidating, and
4937         FireValidated virtual.
4938
4939         * Form.cs: override and don't chain up calls to FireEnter and
4940         FireLeave.
4941
4942 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4943
4944         * ListView.cs: Add more text padding space when using
4945         auto resize for columns (the previous value didn't work fine).
4946
4947         * ThemeWin32Classic.cs: Update text position inside columns,
4948         to match the appeareance of .Net.
4949
4950         * ColumnHeader.cs: When using auto resize, only the Width should
4951         depend on the sub items, not the Height. Also, set width after
4952         auto resizing (the value of Width should never remain as -1 or -2).
4953
4954 2007-01-10  Chris Toshok  <toshok@ximian.com>
4955
4956         * Application.cs: fix compilation errors when debug is enabled.
4957
4958 2007-01-10  Chris Toshok  <toshok@ximian.com>
4959
4960         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
4961         add some nice ascii art pictures and explanation of the process).
4962         (GetMostDeeplyNestedActiveControl): new utility function we need
4963         because our ActiveControl can refer to a child container with its
4964         own ActiveControl.
4965
4966         * Form.cs (OnActivated): remove the call to SelectActiveControl
4967         from here, since you can override this method and not chain up,
4968         and winforms still sets the active control.
4969         (OnCreateControl): also remove the unnecessary SelectActiveControl
4970         call from here.
4971         (WndProc): it's actually called from the WM_ACTIVATE block, just
4972         before calling OnActivated.
4973
4974         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
4975         inside the else.  the ActiveControl setter will end up setting
4976         focus on @control.  This keeps us from setting it again (and
4977         generating an extra LostFocus/GotFocus pair).
4978         (Select (bool, bool)): reindent.
4979
4980 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
4981
4982         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
4983         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
4984         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
4985         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
4986         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
4987         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
4988         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
4989         ToolStripTextBox.cs: Another wave of corcompare work.
4990
4991 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4992
4993         * ColumnHeader.cs: Implement 2.0 AutoResize method using
4994         the Width property.
4995
4996         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
4997         methods by callling Column.AutoResize method on columns.
4998
4999 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
5000
5001         * Control.cs: Provide proper implementations of PreferredSize
5002         and GetPreferredSize (2.0).
5003
5004 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
5005
5006         * Form.cs: Remove one character (!) to make my previous OnClosing
5007         stuff work for modal windows like MessageBox.
5008
5009 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5010
5011         * ListView.cs:
5012         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
5013         ListView.Columns to get the last displayed column. Fixes #80452.
5014
5015 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
5016
5017         * Label.cs, LinkLabel.cs: Source code identation fixes.
5018
5019 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
5020
5021         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
5022         we dont need to invalidate only borders because when we invalidate four
5023         border lines the invalidate's generates a complete redraw of button, 
5024         because it now invalidate a complete rect some other redraws operations
5025         are fixed. Fixes #80196.
5026         
5027         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
5028         Remove ToolBarInvalidateEntireButton as it is not used.
5029
5030 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
5031         
5032         * Form.cs: Make sure that both OnClosing and OnFormClosing are
5033         called for 2.0 profile.
5034         * CloseReason.cs: Make class internal for 1.1.
5035
5036 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
5037
5038         * ToolStripManager.cs: Implement FindToolStrip functionality.
5039         * ToolStrip.cs: Register and unregister with ToolStripManager.
5040
5041 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
5042
5043         * Control.cs: This was messy.  2.0 moves much of ControlCollection
5044         to ArrangedElementCollection.  Implemented this with as few #if's as 
5045         possible (which is still too many).
5046
5047 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
5048
5049         * Control.cs: Implement SizeFromClientSize() [2.0].
5050
5051 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
5052
5053         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
5054         use Theme.BorderSize to calculate area instead of static value 1, 
5055         by the way use new BorderStaticSize instead     Border3DSize when 
5056         border_static is true. Fixes #79537.
5057         
5058         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
5059         
5060         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
5061         it is not needed.
5062
5063 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5064
5065         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
5066
5067 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5068
5069         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
5070         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
5071         
5072         * Hwnd.cs: 
5073         - border_static field added, it will used to define when a control 
5074         theres 3D border but it must be static (thin).
5075         - In GetWindowRectangle use Theme.BorderSize to calculate area 
5076         instead of static value 1, by the way use new BorderStaticSize instead
5077         Border3DSize when border_static is true.
5078
5079         * XplatUIX11.cs, XplatUIOSX.cs: 
5080         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
5081         
5082         * Theme.cs: BorderStaticSize field added.
5083
5084 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5085
5086         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
5087
5088 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5089
5090         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
5091         mimic same behavior than win32 that set border only in CreateParams,
5092         it fix problems under CreateParams overrides. Fix #79442 and partial
5093         fix #79537.
5094         
5095         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
5096         of thi control you must call recreate handle. 
5097         
5098         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
5099         need to do anything as RecreateHangle will take care about borders.
5100
5101 2007-01-05  Mike Kestner  <mkestner@novell.com>
5102
5103         * ListView.cs: hack to eliminate Lost/Got focus notifications on
5104         cycles between the ItemControl and parent.  Fixes #80388.
5105
5106 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
5107
5108         * Control.cs: Lazy init layout engine. Do not directly use 
5109         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
5110
5111 2007-01-05  Chris Toshok  <toshok@ximian.com>
5112
5113         * DataGrid.cs: don't forceably rebind columns in SetDataSource
5114         unless our list manager has changed (i.e. unless we have reason to
5115         believe our columns have changed).  Fixes #80422.
5116         
5117         also, disable the call do BindColumns in
5118         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
5119         1.1 the event isn't raised in response to a column addition on a
5120         table.)
5121
5122 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5123
5124         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
5125         that inheritors can not call it if they choose.  Fixes bug #80456.
5126
5127 2007-01-05  Andreia Gaita  <avidigal@novell.com>
5128
5129         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
5130         doesn't blow up with a null exception on marshalling.
5131         
5132 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5133
5134         * Control.cs: Implement several 2.0 protected properties and methods.
5135         Ensure that all necessary events are being called when properties
5136         are set.
5137
5138 2007-01-05  Mike Kestner  <mkestner@novell.com>
5139
5140         * ListView.cs: implement PgUp/PgDn for Details view.  Also
5141         fixes First/LastVisibleIndex to use the item_control.ClientRect 
5142         instead of the parent control.  Fixes #80378.
5143
5144 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
5145
5146         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
5147           determine whether to use yard-pound or not (bug #78399).
5148
5149 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5150
5151         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
5152         problems. So it is time to bring back the old popupbutton colors.
5153
5154 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5155
5156         * ColumnHeader.cs:
5157         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
5158         property by using the internal information of the
5159         columns order in ListView.
5160
5161 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
5162
5163         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
5164         Add 2.0 Tag properties.
5165
5166         * LinkArea.cs: Add 2.0 ToString method.
5167
5168 2007-01-03  Chris Toshok  <toshok@ximian.com>
5169
5170         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
5171         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
5172         when we're editing, which fixes #80047.
5173
5174 2007-01-03  Chris Toshok  <toshok@ximian.com>
5175
5176         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
5177         #80404.
5178
5179 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
5180
5181         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
5182         property and implementation.
5183
5184         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
5185         for MdiWindowListItem property.
5186
5187         * ToolStripDropDown.cs: Don't consider hidden menu items while
5188         laying out the menu.
5189
5190 2007-01-03  Andreia Gaita  <avidigal@novell.com>
5191
5192         * SendKeys.cs: window handle is not needed in win32, so just
5193         get the active window for X after parsing keys and don't use
5194         it when building the message; it is passed by parameter to the 
5195         Xplat method and used there to build the message instead. Also,
5196         wait for events to be processed on SendWait, as opposed to Send,
5197         which doesn't wait :) Playing with threads and Send() completely 
5198         hangs on ms.net, only SendWait() works.
5199         
5200         XplatUIX11.cs
5201         X11Display.cs: Check for valid window handle.
5202
5203 2007-01-03  Jackson Harper  <jackson@ximian.com>
5204
5205         * TextControl.cs: Need to prevent wrap calculations when replacing
5206         text (this was there before i removed it accidently).
5207         - Don't update the cursor during the positioning, just set it to
5208         selection_start at the end of the operaion.
5209
5210 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5211
5212         * Control.cs:
5213         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
5214         
5215 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5216
5217         * MonthCalendar.cs: Added Click and DoubleClick events again,
5218         but this time they only hide Control's Click and DoubleClick.
5219         
5220 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
5221
5222         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
5223         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
5224
5225 2007-01-02  Jackson Harper  <jackson@ximian.com>
5226
5227         * TextBoxBase.cs: We move the caret with the split now, so we
5228         don't need to explicitly move the caret after splitting.  This
5229         fixes the caret bumping down an extra line on Enter.
5230
5231 2007-01-02  Miguel de Icaza  <miguel@novell.com>
5232
5233         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
5234         2.72). 
5235
5236         * ScrollableControl.cs: Add Scroll event.
5237
5238 2007-01-02  Mike Kestner  <mkestner@novell.com>
5239
5240         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
5241         to fix all hdr height padding codepaths.  Fixes #80207.
5242
5243 2007-01-02  Chris Toshok  <toshok@ximian.com>
5244
5245         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
5246         setting it to the Control defaults anyway, and it being after the
5247         Dock set was screwing up layout.
5248         (set_Dock): don't short circuit out of setting base.Dock.  Also,
5249         no need to call UpdateStatusBar here, as it'll be re-layed out if
5250         it needs to be.
5251
5252 2007-01-02  Mike Kestner  <mkestner@novell.com>
5253
5254         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
5255         to header height for width == -1. Fixes the rest of #80207.
5256
5257 2007-01-02  Mike Kestner  <mkestner@novell.com>
5258
5259         * ListView.cs: rework the mouse event forwarding everaldo added
5260         to translate the coordinates to the parent control not
5261         raise the parent events until after we've done our work. Hover
5262         needs more work, in the case where HoverSelection is on, because
5263         the item control receives more than one MouseHover per Enter
5264         event, so we need to ensure only the "first" hover gets forwarded.
5265         Opening a minor bug for that.
5266
5267 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
5268
5269         * CheckedListBox.cs: Fixed SelectionMode to match MS.
5270         * ListControl.cs: Implemented AllowSelection property. Removed extra
5271         tabs.
5272         * ListBox.cs: Implemented AllowSelection property.
5273
5274 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5275
5276         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
5277         SelectedItem, it prevent for errors when you must disable item
5278         before perform click. Fixes #80409.
5279
5280 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5281
5282         * MenuAPI.cs: Prevent second level and beyond submenus to close
5283         until first level when move out side of popup.
5284         
5285 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5286
5287         * MenuAPI.cs:
5288         - Down submenu positin in three pixels.
5289         - Closes sub menu when mouse leaves from menu. Fixes #80402.
5290
5291 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5292
5293         * ThemeWin32Classic.cs:
5294         - Fix popup menu size adding one pixel on the top.
5295         - Down menu item border from two to one to mimic Win32.
5296         - Some source identation fixes. 
5297
5298 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5299
5300         * ThemeWin32Classic.cs: Use float numbers to calculate size and
5301         position of menu arrows, it fix wrong arrow size.
5302
5303 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5304
5305         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
5306         instead of line, it simplify draw operation and fix it using 3D
5307         borders to mimic Win32.
5308
5309 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
5310
5311         * StatusStrip.cs: Add implementation of the sizing grip.
5312
5313         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
5314         StatusStrip rendering.
5315
5316 2006-12-31  Chris Toshok  <toshok@ximian.com>
5317
5318         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
5319         override the layout style (anchor/dock) of the control.  assign to
5320         Dock instead.  Fixes bug #80416.
5321
5322         * ToolStrip.cs: same.
5323
5324 2006-12-31  Andreia Gaita  <avidigal@novell.com>
5325
5326         * ContainerControl.cs: Use ContainerSelected flag to check if 
5327         a Container is directly selected, or if Select is called on a 
5328         non-container. If a container is directly selected, focus events 
5329         should not be raised.
5330         Apply #80411 patch to throw exception on set_ActiveControl if 
5331         control is the same as the current one.
5332         
5333         * Control.cs: Use ContainerSelected flag (see above).
5334         Add invalidation check to raise event but not invalidate if 
5335         dimensions are 0.       
5336         Apply #80411 patch.
5337         
5338
5339 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
5340
5341         * MenuAPI.cs: After click, dont close popup menu when menu is
5342         ContextMenu. Fixes #80399.
5343
5344 2006-12-30  Chris Toshok  <toshok@ximian.com>
5345
5346         * ContainerControl.cs: make sure we throw the exception if the
5347         container control doesn't contain the control we're setting
5348         ActiveControl to.
5349
5350 2006-12-30  Chris Toshok  <toshok@ximian.com>
5351
5352         * Control.cs (SetTopLevel): fix the exception raised by
5353         SetTopLevel for child controls.
5354         (set_Anchor): call UpdateDistances when setting the anchor type.
5355         This fixes bug #80336.
5356
5357 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5358
5359         * Theme.cs: For now, revert back to 8pt font.
5360
5361 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
5362
5363         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
5364         Fixes #80395.
5365
5366 2006-12-29  Chris Toshok  <toshok@ximian.com>
5367
5368         * Control.cs: reorder the code in OnResize to give the same event
5369         ordering as MS.
5370
5371 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5372
5373         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
5374         TileHorizontally and TileVertically.
5375         
5376 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
5377
5378         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
5379         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
5380         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
5381         Corrected copyright and email adress.
5382
5383 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5384
5385         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
5386         of Exception in FullPath property if no TreeView is associated with
5387         the TreeNode.
5388
5389 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5390
5391         * Theme.cs: Marked default_font as private, and initialize it in ctor
5392         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
5393         on 2.0 profile.
5394         * ThemeGtk.cs: Removed default_font intialization.
5395         * ThemeWin32Classic.cs: Removed default_font initialization.
5396
5397 2006-12-28  Chris Toshok  <toshok@ximian.com>
5398
5399         * Control.cs: fix a couple of place where we were creating handles
5400         more aggressively than we should be.  Fixes ControlRefresh unit
5401         tests.
5402
5403 2006-12-28  Chris Toshok  <toshok@ximian.com>
5404
5405         * Control.cs: contrary to what the comment said, Control.Dock does
5406         not supercede Control.Anchor - the last one you assign to decides
5407         the layout behavior.  so we need to keep track of which was the
5408         last set.  Also, fix some of the affected property arguments in
5409         PerformLayout calls, and remove an redundant parent.PerformLayout
5410         call in OnResized.
5411
5412         Add a VisibleInternal property, which returns is_visible.  We
5413         can/should get rid of all the usage of this field elsewhere.
5414
5415 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5416         
5417         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
5418         control style, not DoubleBuffer. Added UseDoubleBuffering property
5419         that indicates whether doublebuffering is enabled and supported.
5420         (comment from and code based on Gert Driesen's patch in #80324).
5421         Fixes #80324.
5422
5423 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5424         
5425         * Control.cs: Fixed a NRE.
5426
5427 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5428
5429         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
5430         for 2.0.
5431
5432 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5433
5434         * Control.cs: Rewrote double buffering, now a seperate
5435         class handles all the buffering, no Graphics is disposed of
5436         until the painting is finished (earlier implementation 
5437         would crash if the control was resized in the OnPaint, 
5438         since it would cause the double buffer to be recreated
5439         and the old one disposed), a separate Graphics is 
5440         created for every paint (MS behaviour and anyways the state
5441         of the Graphics would have to be saved and restored otherwise)
5442         
5443         * XplatUIDriver.cs: 
5444         * XplatUIX11.cs:
5445         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
5446         so that we can get the graphics for the back buffer without
5447         having to create a new one and remove the offscreen_dc parameter
5448         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
5449         
5450 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5451
5452         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
5453         Also make virtual all the key-related methods.
5454
5455         * ListViewItem.cs: Make virtual the key related methods for
5456         ListViewSubItemCollection.
5457
5458 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5459
5460         * ListView.cs:
5461         * ListViewItem.cs:
5462         * ThemeWin32Classic.cs:
5463         * Theme.cs: Initial support for Tile view in ListView,
5464         as well as the implementation of the required bits for it (Item
5465         and Subitem).
5466
5467 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5468
5469         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
5470         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
5471         Provide useful exception messages.
5472
5473 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5474
5475         * TrackBar.cs: Remove a warning.
5476         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
5477         when used by DateTimePicker, fixes #80287. This also requires that 
5478         MonthCalendar implements it's own drawing for the yearly updown control,
5479         otherwise the Capture tracking would be too complicated. Removed the Click 
5480         and DoubleClick events (according to comments they were hiding the base class
5481         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
5482         raise these events, not that they cannot be raised. It is possible to raise 
5483         them by calling OnClick and OnDoubleClick). Added two internal fields in 
5484         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
5485         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
5486         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
5487         event, no longer needed.
5488         
5489 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5490
5491         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
5492         true if new value differs from current value.
5493
5494 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5495
5496         * Control.cs: ControlCollection.Count must be public. Fixed build of
5497         unit tests.
5498
5499 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5500
5501         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
5502
5503 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5504
5505         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
5506
5507 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5508
5509         * Control.cs: Invalidates control including when Width and Height is 
5510         equal zero or is not visible, only Paint event must be care about 
5511         this. Fixes #79913.
5512
5513 2006-12-26  Chris Toshok  <toshok@ximian.com>
5514
5515         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
5516         more corcompare work.
5517
5518         * DataGridView.cs: fix compiler warning.
5519
5520         * ColumnHeader.cs: some corcompare work, and also take the
5521         opportunity to make the internal fields private.
5522
5523         * ListView.cs: fix the fallout from the above field change.
5524
5525 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5526
5527         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
5528         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
5529         ToolStripTextBox.cs: Fixes to events and corcompare.
5530
5531 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5532
5533         * ListView.cs: Call owner.OnMousexx event to propagate events from
5534         item to ListView. Fixes #80367.
5535
5536 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5537
5538         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
5539         if value is less than one. ItemHeight should not be set to a value
5540         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
5541         Removed extra tabs.
5542
5543 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5544
5545         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
5546         * ToolStripStatusLabel.cs: Add Spring for Moma.
5547
5548 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5549
5550         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
5551         Fixed code formatting. Removed debug code.
5552         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
5553
5554 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5555
5556         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
5557         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
5558         ArgumentOutOfRangeException if ColumnCount is negative. In 
5559         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
5560         less than 4 or higher than 32768.
5561         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
5562         Fixed FormatProvider to return CurrentCulture unless explicitly set.
5563         Fixed IsFormatProviderDefault to return true if FormatProvider has
5564         not been explicitly set.
5565
5566 2006-12-25  Chris Toshok  <toshok@ximian.com>
5567
5568         * Application.cs: add a couple of 2.0 events.
5569
5570 2006-12-25  Chris Toshok  <toshok@ximian.com>
5571
5572         * Control.cs: fix compiler warning.
5573
5574         * AxHost.cs: corcompare fixes.
5575
5576         * ApplicationContext.cs: corcompare fixes.
5577
5578 2006-12-25  Chris Toshok  <toshok@ximian.com>
5579
5580         * Control.cs: only update dist_right/dist_bottom if the
5581         width/height is > 0.  this fixes anchored controls being resized
5582         smaller until they disappear and then resized larger again.
5583
5584 2006-12-25  Chris Toshok  <toshok@ximian.com>
5585
5586         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
5587         since they're nothing more than X/Left and Y/Top, respectively.
5588
5589         Also, move back to a per-control Bitmap/Graphics for
5590         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
5591         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
5592         Height.
5593
5594 2006-12-25  Miguel de Icaza  <miguel@novell.com>
5595
5596         * MessageBox.cs: Implemented overload that takes a new "bool
5597         displayHelpButton" by adding a new internal field "show_help".
5598         When clicked this will raise the HelpRequested on the owner or the
5599         main form. 
5600
5601         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
5602         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
5603
5604         * ListView.cs: Add support ColumnWidthChanged and
5605         ColumnWidthChanging. 
5606
5607         Add support for ColumnReordered event.
5608         (ReorderColumn): Add NET_2_0 specific support for cancelling the
5609         reorder.
5610
5611         Very nice codebase!
5612
5613         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
5614
5615         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
5616
5617 2006-12-24  Chris Toshok  <toshok@ximian.com>
5618
5619         * GridTablesFactory.cs: 2.0 corcompare work.
5620
5621         * ToolStripContainer.cs: add "override" to
5622         ContextMenuStripChanged, and remove the local event object.
5623
5624         * ToolStripDropDown.cs: same with a couple properties.
5625
5626         * ToolStripPanel.cs: same with AutoSizeChanged event.
5627
5628         * TextBoxBase.cs: add "override" to AutoSizeChanged.
5629
5630         * Form.cs: add the remaining 2.0 events, and do some corcompare
5631         attribute work.
5632
5633         * DateTimePicker.cs: add "new" to padding.
5634
5635         * ButtonBase.cs: use Control's use_compatible_text_rendering.
5636
5637         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
5638
5639         * DataGridView.cs: PaddingChanged is overridden.
5640
5641 2006-12-24  Chris Toshok  <toshok@ximian.com>
5642
5643         * Control.cs: corecompare work here too.
5644
5645         * DataGridViewElement.cs, DataGridView.cs,
5646         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
5647         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
5648         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
5649         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
5650         work.
5651
5652 2006-12-24  Miguel de Icaza  <miguel@novell.com>
5653
5654         * Control.cs: Switched the error message on the console for a
5655         todo.  A review of the code will have to cope with this anyways
5656         (since its a large feature, it is in our radar) and it was
5657         producing too much output when running PDN.
5658
5659         * ToolStripComboBox.cs: Set the text when the SelectedIndex
5660         changes.  Applications depend on this (PDN 2.72)
5661
5662 2006-12-23  Chris Toshok  <toshok@ximian.com>
5663
5664         * TableLayoutSettings.cs: finish up the corcompare work for this
5665         class.
5666
5667 2006-12-23  Chris Toshok  <toshok@ximian.com>
5668
5669         * Control.cs: make SetImplicitBounds internal, do some futzing
5670         with LayoutEngine so that it's available in 1.1, and remove the
5671         entire duplicated code mess from PerformLayout.  Use
5672         System.Windows.Forms.Layout.DefaultLayout instead.
5673
5674         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
5675
5676 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5677
5678         * Form.cs: Add MainMenuStrip property.
5679
5680 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5681
5682         * Control.cs: Add ContextMenuStrip property and implementation.
5683         Fix ContextMenu implementation to show menu centered on control when
5684         activated using the keyboard instead of showing at screen (0,0).
5685
5686         * ToolStripDropDown.cs: Fix needed overload of Show ().
5687
5688 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5689
5690         * Menu.cs: Name property added for 2.0 profile.
5691         
5692 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5693
5694         * Menu.cs: Update information about FindMenuItem, method to be
5695         implemented soon.
5696
5697 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5698
5699         * MenuAPI.cs: When deselect items deselect also selected subitems.
5700         
5701 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5702
5703         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
5704         FindSubItemByCoord to found itens that is not active, also an
5705         cheking added to FindSubItemByCoord to search for items only 
5706         in visible popup windows. Fixes #80274.
5707
5708 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
5709
5710         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
5711         internal property, it be care about change ExStyle. 
5712
5713 2006-12-22  Andreia Gaita  <avidigal@novell.com>
5714
5715         * ContainerControl.cs: set activeControl for parent forms up the 
5716         tree when the new activecontrol is a container.
5717         When validating the active control, if it is a container, also
5718         raise up the validation for it's active control. Fixes #80280
5719         
5720         * Control.cs: Add internal property flag and check to prevent
5721         Focus events from getting raised when Select() is called for
5722         a ContainerControl. There are still too many focus events being
5723         raised at the moment though.
5724         Cleaned up the code a bit.
5725
5726 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5727
5728         * Control.cs: Added all missing 2.0 events.and
5729         fixed a couple of corcompare issues.
5730         * TrackBar.cs: Implemented missing 2.0 bits.
5731         * MonthCalendar.cs, 
5732         * DateTimePicker.cs, 
5733         * MdiClient.cs: Fixed some corcompare issues.
5734
5735 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5736
5737         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
5738         SplitterPanel.cs: corecompare work.
5739
5740 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5741
5742         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
5743         Clean up warnings for BackgroundImageChanged and PaddingChanged
5744         events now that they are implemented in Control.cs.
5745
5746 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5747
5748         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
5749         
5750         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
5751         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
5752         of TableLayoutPanel and supporting cast.
5753
5754 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5755
5756         * XplatUIWin32.cs: 
5757         - GrabWindow now confines the mouse pointer to the confine window.
5758         - Added Win32ClipCursor and Win32GetClipCursor.
5759
5760         * Control.cs: 
5761         - Added CaptureWithConfine to be able to capture and confine 
5762         mouse pointer.
5763         
5764         * InternalWindowManager.cs: 
5765         - Call CaptureWithConfine instead of Capture if we're an
5766         MdiChild (fixes #79982).
5767
5768 2006-12-21  Chris Toshok  <toshok@ximian.com>
5769
5770         * DataGrid.cs: guard against the initial state of selection, where
5771         selection_start == -1.  make sure we only select from index >= 0.
5772         Fixes bug #80291.
5773
5774 2006-12-21  Chris Toshok  <toshok@ximian.com>
5775
5776         * Control.cs: we don't need to be so draconian with
5777         UpdateDistances, and we thusly don't need to call it before
5778         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
5779
5780 2006-12-21  Daniel Nauck  <dna@mono-project.de>
5781
5782         * ComboBox.cs,
5783         TextBox.cs: Implemented AutoComplete properties.
5784
5785 2006-12-20  Chris Toshok  <toshok@ximian.com>
5786
5787         * DataGridView*.cs: some corecompare work.
5788
5789 2006-12-20  Jackson Harper  <jackson@ximian.com>
5790
5791         * XplatUIX11.cs: We need to hide the caret when deleting it,
5792         otherwise you get carets left lying around everywhere.
5793         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
5794         prevents getting some weird half drawn caret tracers when
5795         scrolling.
5796         * TextControl.cs: Attempt to reduce the number of times we need to
5797         recreate the caret.
5798
5799 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
5800
5801         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
5802
5803 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5804
5805         * DateTimePicker.cs:
5806         - Implemented missing 2.0 bits.
5807         - Changed some default values to match MS.
5808         
5809 2006-12-20  Jackson Harper  <jackson@ximian.com>
5810
5811         * TextBoxBase.cs: When changing the font across the document we
5812         can't recalculate after changing each line, since that will cahnge
5813         the line count.
5814         - PreferredHeight is a little different than i thought.
5815         - When backspacing, move the caret before we do the actual char
5816         delete, because when that delete crosses a wrap boundary the
5817         positional information will change.
5818
5819 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5820
5821         * Control.cs: Added some missing 2.0 bits: 
5822         BackgroundImageLayout, BackgroundImageLayoutChanged, 
5823         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
5824         add IBindableComponent and IDropTarget implementation.
5825         
5826         * MonthCalendar.cs: 
5827         - Added all missing 2.0 features:
5828         BackgroundImageLayout, RightToLeftLayout, 
5829         OnHandleDestroyed, RightToLeftLayoutChanged, 
5830         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
5831         PaddingChanged.
5832         - Rewrote all the BoldDate code, it was completely broken.
5833         - Fixed all the tests (the tests can now be re-enabled, the
5834         problems were not with the tests, but with the control, it was
5835         mostly broken).
5836         
5837         * DateTimePicker.cs: Changed the location where the 
5838         MonthCalendar is shown.
5839         
5840 2006-12-19  Chris Toshok  <toshok@ximian.com>
5841
5842         * DataGridView.cs: add IDropTarget implementation.
5843
5844         * ToolStripPanel.cs: add IDropTarget implementation.
5845
5846 2006-12-19  Jackson Harper  <jackson@ximian.com>
5847
5848         * TextControl.cs: soft now means something different than what it
5849         used to mean, we want to move the caret regardless of whether or
5850         not this break was soft (would we really have wanted the caret
5851         to not move with the break in the old context?)
5852         * TreeView.cs: Make sure we factor in the vert scrollbar when
5853         calculating the horizontal scrollbar's maximum.
5854
5855 2006-12-19  Andreia Gaita  <avidigal@novell.org>
5856
5857         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
5858         check for keywords in alternate casing, close bug #80049.
5859
5860 2006-12-19  Chris Toshok  <toshok@ximian.com>
5861
5862         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
5863         methods (which all do nothing).
5864
5865         * IDropTarget.cs: add the 4 missing methods.
5866
5867 2006-12-19  Chris Toshok  <toshok@ximian.com>
5868
5869         * TableLayoutRowStyleCollection.cs: corcompare work.
5870         
5871         * TableLayoutSettings.cs: same.
5872
5873         * TableLayoutStyle.cs: same.
5874
5875         * TableLayoutColumnStyleCollection.cs: same.
5876
5877 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
5878
5879         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
5880         TableLayoutPanel I've had in my local tree for way too long.
5881
5882 2006-12-19  Miguel de Icaza  <miguel@novell.com>
5883
5884         * TableLayoutSettings.cs: Finish the public API (still needs all
5885         the logic to update on changes). 
5886
5887         * TableLayoutPanelCellPosition.cs: new file.
5888         
5889         * TableLayoutRowStyleCollection.cs,
5890         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
5891         TableLayoutSettings.cs: Track the final 2.0 table api.
5892
5893 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5894
5895         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
5896         and Image List 2.0 members for ColummnHeader.
5897         * ListView.cs: Add key-related 2.0 methods for
5898         ColumnHeaderCollection.
5899
5900 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
5901
5902         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
5903         ArgumentNullException if items argument is null. Ignore null item in
5904         arrays. Removed extra tabs.
5905
5906 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
5907
5908         * MonthCalendar.cs: Fixed InvalidCastException.
5909
5910 2006-12-19  Jackson Harper  <jackson@ximian.com>
5911
5912         * TextControl.cs: Don't increment the position here.
5913         - When calculating char positions only add in the line break size
5914         for hard line breaks.
5915
5916 2006-12-19  Andreia Gaita  <avidigal@novell.org>
5917
5918         * SendKeys.cs: Changed some things to match ms.net behaviour
5919         when parsing shifted capital letters.
5920         
5921         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
5922         Add window handle as parameter to SendInput. X11 needs the 
5923         window handle, and the handle being passed      to it in the keys 
5924         queue is the active control handle (which windows needs), not 
5925         the window handle.
5926         
5927         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
5928         to support SendKeys on X.       
5929         
5930         * X11Keyboard: Implement helper method to lookup a linux keycode
5931         given the virtual keycode. Added table of keycode-2-virtualkey
5932         values to support this.
5933
5934 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5935
5936         * ListView.cs: Add support for SelectedIndexCollection
5937         and SelectedItemCollection 2.0 methods. Implement support
5938         for ImageKey too.
5939         * ListViewItem.cs: Add support for ListViewSubItemCollection
5940         2.0 methods. Also, fix an incorrect behavior of AddRange method
5941         (it shouldn't call Clear).
5942         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
5943
5944 2006-12-19  Jackson Harper  <jackson@ximian.com>
5945
5946         * RichTextBox.cs: 
5947         * TextBoxBase.cs: New args for FormatText
5948         * TextControl.cs: Rewrote the main drawing method, this version
5949         feels a little easier to understand and debug to me.  Hopefully it
5950         does to others also
5951         - Fix FormatText to OR in the new formating values.  Added
5952         FormatSpecified param, basically this works in the same way as
5953         BoundsSpecified in Control.
5954         - Set the caret properties when the caret is positioned.
5955         - When wrapping text make sure that we calculate the width of the
5956         last character
5957         - when calculating alignments we might have wrapped down to the
5958         next line, so don't search for an individual tag, search for the
5959         end of the line
5960         - We need to invalidate the selection area when we replace the
5961         selection.
5962         
5963 2006-12-19  Daniel Nauck  <dna@mono-project.de>
5964
5965         * Application.cs: add Restart () 2.0 support
5966
5967 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5968
5969         * MenuItem.cs: Invalidate menu item rectangle after change Enable
5970         property. Fixes #80268.
5971         
5972 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5973
5974         * MenuAPI.cs: Dont trigger select event when closes top menu
5975         item. Fixes #80270.
5976
5977 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5978
5979         * MenuAPI.cs: When you click on menuitem only trigger onselect
5980         event for top menu itens. Fixes #80271.
5981         
5982 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5983
5984         * MdiWindowManager.cs: Make IconicBounds depend on
5985         the bottom of MdiClient, not the top (fixes #80267)
5986         
5987 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5988
5989         * MdiClient.cs: Added missing 2.0 attribute
5990
5991 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5992
5993         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
5994         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
5995
5996 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5997
5998         * MenuAPI.cs: Fix click when menuitem is not popup,
5999         this regression was caused by last commit (#80272).
6000
6001 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
6002
6003         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
6004         fire click event or close menu. Fixes #80272.
6005
6006 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6007
6008         * ListViewHitTestInfo.cs: add
6009
6010 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6011
6012         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
6013         * FlatButtonAppearance.cs: add
6014         * DockingAttribute.cs: add
6015
6016 2006-12-17  Chris Toshok  <toshok@ximian.com>
6017
6018         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
6019         and rebind our columns when it does - this way, if you make
6020         changes to the DataTable (or set the Table attribute on a DataView
6021         after setting it as the DataGrid's DataSource, the changes are
6022         made visible.)  Fixes bug #80107.
6023
6024 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6025
6026         * ListViewGroup.cs: add internal Location property for layouting.
6027         * Theme.cs: add abstract ListViewGroupHeight function.
6028         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
6029
6030 2006-12-16  Andreia Gaita  <avidigal@novell.com>
6031
6032         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
6033         Added reset of selected index to 0 when adding first tab page.
6034         Fixes #80264
6035         
6036         * NumericUpDown.cs: Fix NET_2_0 check
6037
6038 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6039
6040         * ListViewGroup.cs: fixed DefaultValueAttribute value
6041
6042 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6043
6044         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
6045
6046 2006-12-15  Miguel de Icaza  <miguel@novell.com>
6047
6048         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
6049         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
6050         ScrollableControl.cs: Add a handful of methods that are
6051         overwritten in 2.0 
6052
6053 2006-12-15  Chris Toshok  <toshok@ximian.com>
6054
6055         * XplatUIWin32.cs: initial implementation of the Reversible
6056         drawing functions.  there are some problems.  DrawReversibleFrame
6057         doesn't seem to work at all for Dashed FrameStyle, and in the
6058         Thick case there are drawing errors at the corners (we probably
6059         need to bind Rectangle instead of doing moveto/lineto's.)
6060
6061 2006-12-16  Andreia Gaita  <avidigal@novell.com>
6062         
6063         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
6064         to send blocks of key messages. Send accumulates keys to send with Flush, 
6065         while SendWait sends all keys immediately.
6066                 
6067         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
6068         XplatUIX11.cs,  XplatUIX11-new.cs:
6069         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
6070         to Win32 SendInput.
6071         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
6072         
6073         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
6074         testing for ms.net on this class is very tricky, as the tests run too fast 
6075         to allow the hook to release, essentially freezing the keyboard and the 
6076         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
6077         category :p
6078
6079 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6080
6081         * Padding.cs: fixed serialization compability to MS ("_var" field names),
6082                         added missing attributes.
6083  
6084 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6085
6086         * ListViewGroup.cs: Added missing attributes.
6087         * ListViewGroupCollection.cs: Added missing attributes.
6088
6089 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6090
6091         * ListViewItem.cs: fixed ListViewSubItem text property.
6092
6093 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6094         
6095         * Control.cs: Added missing 2.0 attributes
6096         
6097 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6098         
6099         * MdiClient.cs: Added missing 2.0 attribute.
6100         * MonthCalendar.cs: Added some missing 2.0 attributes 
6101         and properties.
6102         
6103 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6104
6105         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
6106
6107 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
6108
6109         * MainMenu.cs: Add the new 2.0 constructor to help out people
6110         using the MainMenu in VS2005.
6111
6112 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6113         
6114         * MdiChildContext.cs: Removed it, no longer used.
6115         * MdiClient.cs: Added missing 2.0 attributes.
6116         
6117 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6118         
6119         * InternalWindowManager.cs: Fix a NullRef with previous 
6120         changes for toolwindows.
6121         
6122 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6123
6124         * Control.cs: 
6125         - Added AfterTopMostControl to allow for certain controls 
6126         to always stay on top when normal controls are brought to 
6127         front.
6128         
6129         * XplatUIWin32.cs: 
6130         - (DrawInversibleRectangle): Get window rectangle from Win32 
6131         in stead of from control, since Win32 doesn't calculate
6132         screen coords correctly from control's Location if it 
6133         have docked siblings.
6134         
6135         * MdiWindowManager.cs:
6136         - Correct the control menu popup location when clicked on
6137         the maximized form icon. (fixes #80223.1)
6138         - Don't show moving rectangle if mouse hasn't moved from
6139         the original clicked point.
6140         - Removed FormGotFocus handler (not used).
6141         - Calculate the control buttons location from the main
6142         window's size and not client size (fixes #79770).
6143         - Form is now closed when the form icon is double-clicked
6144         (fixes #79775). 
6145         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
6146         
6147         * InternalWindowManager.cs:
6148         - Moved some MDI-only methods to MdiWindowManager.
6149         - Removed unused properties and methods.
6150         - Unified method naming for methods handling wm messages.
6151         - Moved all message handling to seperate methods for
6152         each message.
6153         
6154         * ThemeWin32Classic.cs:
6155         - DrawManagedWindowDecorations now draws the title bar 
6156         with a gradient brush.
6157         - Add a CPDrawButtonInternal that allows us to specify
6158         light, normal and dark colors for the buttons (control 
6159         buttons for MDI children were drawn with the same light
6160         color as the background, therefore loosing the 3D effect).
6161         
6162         * SizeGrip.cs:
6163         - Add a CapturedControl property that is used to 
6164         determine the control to resize (defaults to parent). 
6165         Needed for MdiClient, since its SizeGrip's parent is
6166         MdiClient, but the control to resize is the main form.
6167         
6168         * MdiClient.cs:
6169         - Set SizeGrip's CapturedControl to the main form in order
6170         to resize the main form and not the MdiClient.
6171         - Override AfterTopMostControl to leave the scrollbars 
6172         always on top.
6173
6174 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6175
6176         * ListView.cs: fixed ListViewItemCollection AddRange and
6177                         implemented ListViewItemCollection AddRange 2.0 support.
6178
6179 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6180
6181         * ListViewGroup.cs: Add.
6182         * ListViewGroupCollection.cs: Add
6183         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
6184         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
6185                                 stub for ImageKey 2.0 support.
6186
6187 2006-12-14  Mike Kestner  <mkestner@novell.com>
6188
6189         * ListView.cs: add text padding to the autocalculation for columns
6190         of width -2.  Fixes #80207.
6191  
6192 2006-12-14  Mike Kestner  <mkestner@novell.com>
6193
6194         * ListView.cs: add some index guarding for partial row navigation 
6195         logic.  Fixes #80250.
6196
6197 2006-12-14  Mike Kestner  <mkestner@novell.com>
6198
6199         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
6200         are added or inserted to the collection.  Fixes #81099.
6201
6202 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
6203
6204         * MenuAPI.cs: Closes menu when right click out side of popup
6205         it fix problem in ContextMenu and MainMenu. Fixes #80252.
6206
6207 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6208
6209         * ListViewItem.cs: Fix dumb error.
6210
6211         * ListView.cs: Add Find and ContainsKey methods in 
6212         ListViewItemCollection, and also return true for IsReadOnly
6213         and IsFixedSize (changes for 2.0). 
6214
6215 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
6216
6217         * Control.cs: Allow Region to be set to null.
6218
6219 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6220
6221         * MdiWindowManager.cs: Remove unused (commented out) code.
6222         * Form.cs: When the MdiChild is maximized, the form needs 
6223         WM_NCMOUSELEAVE, so request it.
6224         * InternalWindowManager.cs: 
6225         - Added tooltips to control buttons.
6226         - Removed duplicated control button handling code.
6227         - Removed unused (commented out) code.
6228         
6229 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
6230
6231         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
6232         was used because we must set cursor without trigger ChangeCursor event
6233         and without change Cursor control property. Fixes #79963.
6234
6235 2006-12-12  Andreia Gaita  <avidigal@novell.com>
6236         
6237         * Control.cs: Check if Region setter value is null, and ignore
6238
6239 2006-12-12  Jackson Harper  <jackson@ximian.com>
6240
6241         * TextControl.cs: We were almost always drawing one more line then
6242         needed, since the GetLineByPixel will return the last line found
6243         at that pixel. In most cases though, we were invalidating up to
6244         the junction between two lines.
6245         - Improve debug code.
6246
6247 2006-12-12  Chris Toshok  <toshok@ximian.com>
6248
6249         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
6250         and FillReversibleRectangle.
6251
6252         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
6253         and FillReversibleRectangle.
6254
6255         * XplatUIWin32.cs: add stubs which do nothing for
6256         DrawReversibleFrame, DrawReversibleLine, and
6257         FillReversibleRectangle.
6258
6259         * XplatUIOSX.cs: add stubs which raise NIE for
6260         DrawReversibleFrame, DrawReversibleLine, and
6261         FillReversibleRectangle.
6262
6263         * XplatUIX11.cs: add working implementation for
6264         DrawReversibleFrame, DrawReversibleLine, and
6265         FillReversibleRectangle.
6266         
6267         * ControlPaint.cs: implement DrawReversibleFrame,
6268         DrawReversibleLine, and FillReversibleRectangle, by calling into
6269         the appropriate XplatUI method.
6270
6271 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6272
6273         * Form.cs: Make MdiClient have the focus even if it's
6274         not selectable, since it should receive WM_KEY* and WM_MOUSE 
6275         messages. Fixes #79907.
6276         
6277 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6278
6279         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
6280         queried after the window is created.
6281         
6282         * XplatUIX11.cs: Added SendParentNotify to implement 
6283         WM_PARENTNOTIFY logic. Fixes #79965.
6284         
6285         * Control.cs: Added MakeParam.
6286         
6287 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6288
6289         * MdiClient.cs: Resume Layout before setting window
6290         states (fixes #80201).
6291
6292 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6293
6294         * MenuAPI.cs: Deselect a menu item after performing
6295         the click (fixes #80197).
6296
6297 2006-12-11  Jackson Harper  <jackson@ximian.com>
6298
6299         * TextBoxBase.cs: We need to cap this value, since Maximum -
6300         ViewPortHeight can be less than zero.
6301         - Only do selection with the left mouse button.
6302         * TextBox.cs: Don't tell the world that we have a context menu.
6303         * Control.cs: New method so that we can control whether or not the
6304         context menu is visible outside MWF.
6305
6306 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6307
6308         * ToolBarButton.cs: Fix text positon. 
6309
6310 2006-12-11  Miguel de Icaza  <miguel@novell.com>
6311
6312         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
6313
6314         * Control.cs (DoubleBuffered): Add implementation.
6315
6316         * Application.cs (OpenForms): Add.
6317
6318 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6319
6320         * Form.cs: Use opacity instead of Opactiy to determine if we need
6321         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
6322
6323 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6324
6325         * Control.cs: Fix NRE if Control.Site was set to null.
6326
6327 2006-12-11  Chris Toshok  <toshok@ximian.com>
6328
6329         * Control.cs: ControlCollection.Remove should return if the arg is
6330         null, and ControlCollection.SetChildIndex should raise a ANE.
6331
6332 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
6333
6334         * Control.cs: Verify value set for Dock property. Code formatting
6335         updates.
6336
6337 2006-12-11  Jackson Harper  <jackson@ximian.com>
6338
6339         * TextControl.cs: Draw the caret and the selection when a flag is
6340         set on the owner.
6341         * TextBoxBase.cs: We want to draw the caret and the selection for
6342         TextBox but not for TextBoxBase.
6343         - If the window is resized and scrolling is no longer needed (the
6344         whole doc is visible) set the scroll position to zero.
6345         - The default SelectWord (the one TextBox uses) should move the
6346         caret to the end of the word.
6347         - SelectAll moves the caret to the end of the selection.
6348         * TextBox.cs: We don't selectall on focus, we just do it when the
6349         control is created.
6350         
6351 2006-12-11  Mike Kestner  <mkestner@novell.com>
6352
6353         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
6354
6355 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6356
6357         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
6358         2.0 support.
6359         * ListViewItem.cs: Add Name 2.0 property.
6360
6361 2006-12-11  Andreia Gaita  <avidigal@novell.com>
6362
6363         * TabControl.cs: Set visibility on selected or default tab 
6364         when tabcontrol handle is created, so that it's contents
6365         actually show up (duh). Fixes #80193
6366         Don't redraw the control if there is no handle created, as
6367         the selected index might be completely invalid. Added some tests
6368         to check for this.
6369
6370 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6371
6372         * ToolBar.cs: Uses maximun width and height of all buttons as 
6373         button rectangle when ButtonSize specified, it looks strange but
6374         is what happens in Win32. Fixes #80189.
6375
6376 2006-12-11  Jackson Harper  <jackson@ximian.com>
6377
6378         * TextControl.cs: Need to track undo levels ourself, since
6379         compound actions will mess them up.
6380
6381 2006-12-10  Andreia Gaita  <avidigal@novell.com>
6382
6383         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
6384         SelectedIndex value is changed (even if it's not valid).
6385         Reset SelectedIndex to 0 when the handle is created and if
6386         the current index is invalid.
6387         Fixes SelectdeIndex unit tests and #80128
6388
6389 2006-12-08  Chris Toshok  <toshok@ximian.com>
6390
6391         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
6392         calls EndEdit, it needs to be called before we set current_cell to
6393         its new value.  Otherwise, we end up committing the value in the
6394         textbox to the new cell as well.  Fixes bug #80160.
6395
6396 2006-12-08  Chris Toshok  <toshok@ximian.com>
6397
6398         * Form.cs (set_CancelButton): if the button's DialogResult is
6399         None, set it to Cancel.  Fixes bug 80180.
6400
6401 2006-12-08  Jackson Harper  <jackson@ximian.com>
6402
6403         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
6404         to watch ourselves when setting the canvas size and setting the
6405         scrollbar values.
6406
6407 2006-12-08  Chris Toshok  <toshok@ximian.com>
6408
6409         * DataGrid.cs: comment out the two MakeTransparent calls for the
6410         time being so people using trunk (and not 1.2.2) on windows can
6411         actually use the datagrid.  This deals with bug #80151.
6412
6413 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6414
6415         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
6416         Graphics.DrawImage (image, int, int, int, int) overload instead
6417         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
6418         the dpi difference and was blurring images it drew.
6419         [Fixes bug #79960]
6420
6421 2006-12-08  Chris Toshok  <toshok@ximian.com>
6422
6423         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
6424         rowcnt is 0 (such as with an empty datasource), and make sure we
6425         initialize not_usedarea.Y to cells.Y, so we don't draw over the
6426         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
6427
6428 2006-12-08  Chris Toshok  <toshok@ximian.com>
6429
6430         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
6431         grid.
6432
6433 2006-12-08  Chris Toshok  <toshok@ximian.com>
6434
6435         [ Fixes bug #80167 ]
6436         
6437         * ThemeWin32Classic.cs: don't draw the image if the button's flat
6438         style is FlatStyle.System.
6439
6440         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
6441         ButtonBase.flat_style private, and switch uses of it to the public
6442         property.
6443         
6444 2006-12-08  Chris Toshok  <toshok@ximian.com>
6445
6446         [ Fixes bug #80121 ]
6447         
6448         * ThemeWin32Classic.cs: center the caption text in the datagrid
6449         when we draw it.
6450
6451         * DataGrid.cs: lessen the amount we add to the caption height from
6452         6 to 2.  6 was making it huge.
6453
6454 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6455
6456         * UpDownBase: Handle MouseWheel call directly instead of capturing
6457         the inner textbox's OnMouseWheel. Fixes #80166
6458
6459 2006-12-08  Jackson Harper  <jackson@ximian.com>
6460
6461         * TextControl.cs: We need to invalidate the textbox when we empty
6462         it (how had this not been discovered before?)
6463
6464 2006-12-08  Jackson Harper  <jackson@ximian.com>
6465
6466         * TextBoxBase.cs: Reworked the mouse down code so I could get it
6467         to behave like MS, we now ignore the eventargs.Click and just
6468         track state ourself, which we were already doing anyways.
6469         - Constrain the double click handler to the double click size.
6470         
6471 2006-12-08  Chris Toshok  <toshok@ximian.com>
6472
6473         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
6474         direction if that scrollbar isn't shown.  fixes bug #80158.
6475
6476 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6477
6478         * NumericUpDown.cs: Update value on getter. Fixes #79950
6479
6480 2006-12-08  Chris Toshok  <toshok@ximian.com>
6481
6482         * MenuItem.cs: add back in the event cloning code.  I didn't know
6483         how to do it in the face of the EventHandlerList work i'd done
6484         last week.  Fixes bug #80183.
6485
6486 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6487
6488         * Control.cs: Add an invalidate to the BackgroundImage setter.
6489         [Fixes 80184]
6490
6491 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6492
6493         * ToolStrip*: Add some small properties reported by MoMA, fix event
6494         firing and default properties based off of unit tests, and add some
6495         attributes based off of the class status page.
6496
6497 2006-12-07  Jackson Harper  <jackson@ximian.com>
6498
6499         * TextBoxBase.cs: Take HideSelection into account when determining
6500         whether or not to show the selection.
6501         * RichTextBox.cs: After inserting the RTF into the document move
6502         the cursor to the beginning of the document.
6503
6504 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6505
6506         * Control.cs: Remove static ArrayList "controls" which maintained
6507         a reference to every control created.
6508         * Application.cs: Create a static FormCollection to maintain a reference
6509         to every form created.  Use it in places that formerly enumerated through
6510         the controls one looking for forms.
6511         * Form.cs: Add and remove self from above FormCollection.
6512
6513 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
6514
6515         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
6516           not libgdk (though it makes me wonder why I didn't have any
6517           problems)
6518
6519 2006-12-07  Chris Toshok  <toshok@ximian.com>
6520
6521         [ you had to know this was coming after that last commit...]
6522         
6523         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
6524         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
6525         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
6526         XCopyArea).
6527
6528 2006-12-07  Chris Toshok  <toshok@ximian.com>
6529
6530         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
6531         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
6532         all the behavior we need for double buffering.
6533
6534         * XplatUIDriver.cs: implement the 3 double buffer methods using a
6535         client side Bitmap, just like the old Control-based double buffer
6536         code did.  The methods are virtual, so each XplatUI driver
6537         subclass can replace the implementation to use a faster, platform
6538         specific approach.
6539
6540         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
6541         double buffer code, and clean things up a bit in the process.
6542
6543 2006-12-06  Chris Toshok  <toshok@ximian.com>
6544
6545         * Control.cs: reindent WndProc.
6546
6547 2006-12-06  Chris Toshok  <toshok@ximian.com>
6548
6549         [ I wanna be like BenM when I grow up ]
6550         
6551         * Hwnd.cs: create a single static Graphics object on the static
6552         Bitmap we create.  use this for our text measurements.
6553
6554         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
6555         This was causing us to allocate a backbuffer for every control,
6556         even when it wasn't flagged as double buffered.  Instead use the
6557         single graphics instance.  This might have implications for
6558         multithreaded applications.  If we run into problems we can switch
6559         to creating 1 Graphics per control, on the static Hwnd bitmap.
6560
6561         this change nets us a 7M savings in private dirty mappings when
6562         running FormsTest.exe.
6563
6564 2006-12-06  Chris Toshok  <toshok@ximian.com>
6565
6566         * ListView.cs: the BackgroundImage override is just to set
6567         attributes.  chain up to base.BackgroundImage.
6568
6569         * RichTextBox.cs: same.
6570
6571         * ToolBar.cs: same, but we need to also redraw the toolbar when it
6572         changes, so instead a handler for BackgroundImageChanged.
6573         
6574         * Control.cs: make background_image private.
6575
6576 2006-12-06  Chris Toshok  <toshok@ximian.com>
6577
6578         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
6579         sure we even need this assignment, but roll with it for now.
6580
6581         * Control.cs: make the cursor field private.
6582
6583 2006-12-06  Chris Toshok  <toshok@ximian.com>
6584
6585         * Form.cs: we don't need to explicitly set ImeMode to
6586         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
6587         behavior in the face of ImeMode.Inherit.
6588
6589         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
6590         change the ctor's assignment to use ImeMode instead of ime_mode.
6591
6592         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
6593         ImeModeInherit.  Only check for the parent's imemode (and return
6594         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
6595         This fixes the button unit test, which sets both ImeMode and
6596         DefaultImeMode to ImeMode.Disable.
6597
6598         also make the ime_mode field private.
6599
6600 2006-12-06  Chris Toshok  <toshok@ximian.com>
6601
6602         * Control.cs: make control_style private.
6603
6604         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
6605         setting the styles to true, then setting them to false instead of
6606         reverting to their previous values.
6607
6608         also, call SetStyle on the scrollbars instead of using
6609         control_style directly.
6610
6611 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
6612
6613         * FormCollection.cs: Implement. [2.0]
6614
6615 2006-12-06  Chris Toshok  <toshok@ximian.com>
6616
6617         * Control.cs: make tab_stop private.
6618
6619         * Label.cs: set TabStop, not tab_stop.  reformat some event
6620         add/remove methods to make them more compact.
6621
6622 2006-12-06  Chris Toshok  <toshok@ximian.com>
6623
6624         * RadioButton.cs: fix TabStop handling.
6625
6626 2006-12-06  Chris Toshok  <toshok@ximian.com>
6627
6628         * TextBox.cs: remove the explicit assignments to has_focus.
6629         Control does that.
6630
6631         * ButtonBase.cs: remove the assignment to has_focus.  Control will
6632         manage that.
6633         
6634 2006-12-06  Chris Toshok  <toshok@ximian.com>
6635
6636         * ButtonBase.cs: remove all uses of is_enabled from this code.
6637         it's always true when any of the code containing the checks is
6638         executed.
6639
6640 2006-12-06  Chris Toshok  <toshok@ximian.com>
6641
6642         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
6643         with different semantics (some are present in both 1.1 and 2.0
6644         profiles) so that we match MS's behavior in our unit tests.
6645
6646 2006-12-06  Jackson Harper  <jackson@ximian.com>
6647
6648         * TextControl.cs: Make this operation undoable.
6649         * TextBoxBase.cs: Factor the border width into the preferred
6650         height.
6651         - implement Modified as per the spec.
6652
6653 2006-12-06  Chris Toshok  <toshok@ximian.com>
6654
6655         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
6656
6657 2006-12-06  Chris Toshok  <toshok@ximian.com>
6658
6659         * Control.cs: make right_to_left and context_menu fields private.
6660
6661 2006-12-06  Chris Toshok  <toshok@ximian.com>
6662
6663         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
6664         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
6665         Control.child_controls private.  switch all uses over to
6666         Control.Controls.
6667
6668 2006-12-06  Chris Toshok  <toshok@ximian.com>
6669
6670         * System.Windows.Forms/GroupBox.cs,
6671         System.Windows.Forms/AccessibleObject.cs,
6672         System.Windows.Forms/ErrorProvider.cs,
6673         System.Windows.Forms/Control.cs,
6674         System.Windows.Forms/UpDownBase.cs,
6675         System.Windows.Forms/ScrollBar.cs,
6676         System.Windows.Forms/DateTimePicker.cs,
6677         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
6678         System.Windows.Forms/ToolTip.cs,
6679         System.Windows.Forms/RadioButton.cs,
6680         System.Windows.Forms/LinkLabel.cs,
6681         System.Windows.Forms/Splitter.cs,
6682         System.Windows.Forms/TextBoxBase.cs,
6683         System.Windows.Forms/ToolStripTextBox.cs,
6684         System.Windows.Forms/ContainerControl.cs,
6685         System.Windows.Forms/ThemeWin32Classic.cs,
6686         System.Windows.Forms/SizeGrip.cs,
6687         System.Windows.Forms/ToolStripDropDown.cs,
6688         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
6689         private.  switch all uses over to Control.Parent.
6690
6691 2006-12-06  Chris Toshok  <toshok@ximian.com>
6692
6693         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
6694         Control does this before calling emitting these events.
6695
6696         * TabControl.cs: same.
6697
6698         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
6699         Control.client_rect.
6700
6701         * ButtonBase.cs: use the ClientSize property instead of the
6702         client_size field.
6703
6704         * ScrollableControl.cs: same.
6705
6706         * Control.cs: another pass at making properties private.  also,
6707         move the initialization of tab_stop to the ctor.
6708
6709 2006-12-05  Andreia Gaita <avidigal@novell.com>
6710
6711         * TabControl.cs: Let the selected index be set freely if the 
6712         control handle is not yet created.
6713
6714 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6715
6716         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
6717         internal until I can rewrite DefaultLayout.
6718         * ToolStrip.cs: Fix build error and some general cleaning.
6719         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
6720         Fix build errors caused by making some of Control's fields private.
6721
6722 2006-12-05  Jackson Harper  <jackson@ximian.com>
6723
6724         * TextControl.cs: Redo Insert a little so that it use IndexOf
6725         instead of Split, this prevents it from messing up on things like
6726         \n\n\n. Also more effecient since the split array doesn't need to
6727         be created.
6728         * TextBoxBase.cs: AppendText doesnt handle multiline and non
6729         multiline text differently, this is the first of many fixes that
6730         will make multiline/non-multiline the same thing as far as the
6731         TextBoxBase is concerned.
6732         - Don't split the text and insert lines, this can lose some line
6733         endings (like is the last line a soft or hard break). Instead use
6734         the new Insert.
6735         - Fix an off by one when combining all the lines in the Text
6736         getter.
6737         - Remove separate multiline handling from the Text getter/setter.
6738
6739 2006-12-05  Chris Toshok  <toshok@ximian.com>
6740
6741         * ButtonBase.cs: a few changes:
6742
6743         - don't reinitialize internal Control fields in the ctor when they
6744         have the same values as Control sets them.
6745
6746         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
6747         this before calling those methods.
6748
6749         - we don't need to call Refresh for anything.  use Invalidate
6750         instead.
6751
6752         - OnEnabledChanged doesn't need to redraw at all - Control.cs
6753         calls Refresh in its OnEnabledChanged.
6754         
6755         - several of the events we were registered for in the ctor to
6756         redraw ourselves already include calls to Invalidate in the
6757         property setters that raise the events.  remove the extra
6758         invalidation.
6759
6760         - reformat a switch statement that was 83274658 columns wide.
6761         
6762 2006-12-05  Mike Kestner  <mkestner@novell.com>
6763
6764         * ComboBox.cs: fix a unit test regression from a TextBox
6765         SelectionLength return of -1 when there's no selection.  
6766
6767 2006-12-05  Chris Toshok  <toshok@ximian.com>
6768
6769         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
6770         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
6771         cleaning up some of the internal Control fields being used by
6772         subclasses.
6773
6774 2006-12-05  Mike Kestner  <mkestner@novell.com>
6775
6776         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
6777         listbox after AddImplicit calls since it defaults to hidden. Add a 
6778         hack to preserve requested heights across DropDownStyle changes.
6779
6780 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6781
6782         * PropertyGrid.cs: Hide FindFirstItem method from public API.
6783
6784 2006-12-05  Chris Toshok  <toshok@ximian.com>
6785
6786         * DataGridView.cs: fix compiler warnings.
6787
6788         * PrintControllerWithStatusDialog.cs: same.
6789
6790         * ToolBar.cs: same.
6791
6792         * FolderBrowserDialog.cs: same.
6793
6794         * Splitter.cs: same.
6795
6796         * DataGridViewComboBoxCell.cs: same.
6797
6798         * XplatUIWin32.cs: same.
6799
6800         * PictureBox.cs: same.
6801
6802         * Win32DnD.cs: same.
6803
6804         * PageSetupDialog.cs: same.
6805
6806         * FileDialog.cs: same.
6807
6808         * PrintDialog.cs: same.
6809
6810         * DataGridTextBoxColumn.cs: same.
6811
6812         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
6813
6814 2006-12-05  Chris Toshok  <toshok@ximian.com>
6815
6816         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
6817         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
6818         System.ComponentModel.EventHandlerList work.
6819
6820 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
6821
6822         * DrawTreeNodeEventArgs.cs: Added.
6823
6824 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6825         
6826         * InternalWindowManager.cs: Remove an unused field.
6827         
6828 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6829
6830         * InternalWindowManager.cs:
6831         - Save the point where the title bar is clicked.
6832         
6833         * MdiWindowManager.cs:
6834         - Only allow moving of the window as long as the 
6835         clicked point on the title bar does not get out of
6836         MdiClient's rectangle. Fixes #79982.
6837         
6838         * MdiClient.cs:
6839         - Added Horizontal/VerticalScrollbarVisible.
6840         - Simplified the scrollbar sizing algorithm.
6841         - Cache the difference in scrolled value in
6842         H/VBarValueChanged and move the calculation out
6843         of the for loop.
6844
6845 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6846
6847         * Control.cs: Make the Console.WriteLine in WndProc 
6848         write more info.
6849
6850 2006-12-05  Chris Toshok  <toshok@ximian.com>
6851
6852         * ToolStripManager.cs, ToolStripButton.cs,
6853         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
6854         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
6855         ToolStripSplitButton.cs, ToolStripSeparator.cs,
6856         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
6857         ToolStripProgressBar.cs, ToolStripContainer.cs,
6858         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
6859         to using System.ComponentModel.EventHandlerList.
6860
6861 2006-12-04  Chris Toshok  <toshok@ximian.com>
6862
6863         * LinkLabel.cs: fix up compiler warnings.
6864
6865         * TableLayoutSettings.cs: same.
6866
6867         * TreeView.cs: same.
6868
6869         * ToolBar.cs: same.
6870
6871         * TabControl.cs: same.
6872
6873         * RichTextBox.cs: same.
6874
6875         * ListViewItem.cs: same.
6876
6877         * PropertyGrid.cs: same.
6878
6879         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
6880
6881         * ToolTip.cs same.
6882
6883         * TextRenderer.cs: fix up compiler warnings.
6884
6885         * Label.cs: same.
6886
6887         * Form.cs: corcompare fixes.
6888
6889         * PictureBox.cs: fix up compiler warnings.
6890
6891         * ImageListStreamer.cs: same.
6892
6893         * TrackBar.cs: corcompare fix.
6894
6895         * Control.cs: fix up compiler warnings.
6896
6897         * SplitterPanel.cs: same.
6898
6899         * NumericTextBox.cs: same.
6900
6901         * ImageList.cs: same.
6902
6903         * StatusStrip.cs: same.
6904
6905         * ProgressBar.cs: corcompare fix.
6906
6907         * ToolStripButton.cs: fix up compiler warnings.
6908
6909         * ToolStripStatusLabel.cs: same.
6910
6911         * ToolStripSplitButton.cs: same.
6912
6913         * ToolStripSeparator.cs: same.
6914
6915         * ToolStripProgressBar.cs: same.
6916
6917         * ToolStripDropDownMenu.cs: same
6918
6919         * ToolStripDropDown.cs: same.
6920
6921         * ToolStripDropDownButton.cs: same.
6922
6923         * ToolStrip.cs: same.
6924
6925         * ToolStripControlHost.cs: same.
6926
6927         * ToolStripContentPanel.cs: same.
6928
6929         * ToolStripDropDown.cs: same.
6930
6931         * ToolStripContainer.cs: same.
6932
6933         * ToolStripPanel.cs: same, and add "new" where we need it to work
6934         with the new ArrangedElementCollection.
6935
6936         * ToolStripItemCollection.cs: add "new" where we need it to work
6937         with the new ArrangedElementCollection.
6938
6939 2006-12-04  Andreia Gaita <avidigal@novell.com>
6940
6941         * TabControl.cs: Fix default tab selection to after TabControl
6942         gets focus and not before. Fixes #80128
6943
6944 2006-12-04  Chris Toshok  <toshok@ximian.com>
6945
6946         * DataGridTableStyle.cs: remove the gross calling of
6947         datagrid.Refresh from here.  It's a broken idea and it doesn't
6948         work anyway.
6949
6950         * DataGrid.cs: instead, just register/unregister from the
6951         DataGridTableStyle events in CurrentTableStyle.  we play it
6952         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
6953         even though some would most likely not require it.  Fixes bug
6954         #80115 (and one portion of #80117 as a side effect).
6955
6956 2006-12-04  Chris Toshok  <toshok@ximian.com>
6957
6958         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
6959         so the textbox (if any) goes away.  Fixes bug #80117.
6960
6961 2006-12-04  Chris Toshok  <toshok@ximian.com>
6962
6963         * DataGridColumnStyle.cs: set the column's readonly property
6964         initially based on the property descriptor's IsReadOnly.  Fixes
6965         bug #80044.
6966
6967 2006-12-04  Chris Toshok  <toshok@ximian.com>
6968
6969         * ComboBox.cs: wrap the dropdown style changing work in
6970         SuspendLayout/ResumeLayout.  Fixes bug #79968.
6971
6972 2006-12-04  Jackson Harper  <jackson@ximian.com>
6973
6974         * TextBoxBase.cs: Fix off by one, since these are one-based.
6975         * TextBox.cs: Select all the text when we get focus.  The TextBox
6976         does this but the RTB does not.
6977
6978 2006-12-04  Chris Toshok  <toshok@ximian.com>
6979
6980         * DataGridTextBoxColumn.cs: remove some spew.
6981
6982         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
6983         but some part of me is saying "it shouldn't be here.."  At any
6984         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
6985         setting the value.
6986
6987 2006-12-04  Chris Toshok  <toshok@ximian.com>
6988
6989         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
6990         to reassign the propertydescriptor.
6991
6992 2006-12-04  Jackson Harper  <jackson@ximian.com>
6993
6994         * TextBoxBase.cs:
6995         * TextControl.cs: Remove some unused variables.  Maybe this will
6996         patch things up between mike and I.
6997         - don't split lines less then one char wide, if the viewport is
6998         that small text won't be visible anyways.
6999         
7000 2006-12-04  Jackson Harper  <jackson@ximian.com>
7001
7002         * TextBoxBase.cs: Default selection length is -1, need to do some
7003         more testing on windows to see when this is used for the property.
7004         - Redid the Lines [] property to that we properly remove soft line
7005         breaks
7006         - added support for preserving carriage returns
7007         -  CanUndo is not a variable like 'is undo enabled' it just returns
7008         true if there is undo operations available.
7009         - AppendText doesn't need to grab the last tag itself anymore,
7010         this happens automatically when we move the cursor.
7011         * TextControl.cs: Add CompoundActions to the undo class. This
7012         allows combining the other operations into one big option.  ie a
7013         paste will combine { delete old, insert new, move cursor }
7014         - Add InsertString undo operation
7015         - New method for deleting multiline text
7016         - Add carriage returns to lines. So we can preserve carriage
7017         returns when text is 'roundtripped'
7018
7019 2006-12-04  Chris Toshok  <toshok@ximian.com>
7020
7021         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
7022         minimum 0.  Fixes the scrollbar exception in bug #80136.
7023
7024 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7025
7026         * MdiClient.cs: 
7027         * MdiWindowManager: Removed unused fields and methods.
7028         
7029 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7030         
7031         * StatusBar.cs: Update all panels when a AutoSize=Contents
7032         panel needs updating.
7033         
7034         * StatusBarPanel.cs: Remove twidth and only use initialize.
7035         Fixes #80031.
7036                 
7037 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7038
7039         * Form.cs: When a form's MdiParent is set add it directly
7040         on top of the z-order in stead of relying on MdiClient's
7041         ActivateChild to do it. Fixes #80135.
7042         
7043         * MdiClient.cs: 
7044         - Remove original_order, mdi_child_list is already doing
7045         the same thing.
7046         - Create mdi_child_list on construction in
7047         stead of first use (avoids a few null checks).
7048
7049         * MenuItem.cs: Use an already existing list of mdi children
7050         to get the correct order of children and remove the other
7051         redundant list.
7052
7053 2006-12-04  Chris Toshok  <toshok@ximian.com>
7054
7055         * PropertyGridView.cs: cached_splitter_location is only used in
7056         !DOUBLEBUFFER code.
7057
7058         * PropertyGrid.cs: implement the ComComponentNameChanged event
7059         using Events, hoping that would fix the warning.  Looks like a
7060         compiler bug instead (#80144).
7061
7062         * PropertyManager.cs: remove unused method.
7063
7064 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
7065
7066         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
7067         include parentesis to fix expression evaluation. Fixes #79634.
7068
7069 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
7070         
7071         * MenuAPI.cs:
7072         - Changes to fix behavior in Menu control, some reported in #80097
7073         and other detected during behavior refactory like a select event
7074         problems.
7075         - Remove unneded "if's" conditions.
7076         - Created an internal to flag when popup is active in control, we need 
7077         it because in .NET you can have menu active but without popup active
7078         when you active menu using popup without visible items.
7079         - Mimic win32 behavior for Select and Popup events.  
7080         - Dont open popup menu when you dont have visible subitems.
7081         - Do nothing when click on disabled menu item.
7082         - Some small changes to follow the coding style guidelines.
7083         - Unselect menu only when another control gives focus. Fixes #80097.
7084         - Remove unused code.
7085         
7086         * MenuItem.cs: internal VisibleItems method to check if menu
7087         theres visible subitems, it will be usefull to fix some 
7088         behavior in Menu control.
7089         
7090 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7091         
7092         * Timer.cs: Tag property for 2.0 profile.
7093         
7094 2006-12-01  Chris Toshok  <toshok@ximian.com>
7095
7096         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
7097         
7098         * Win32DnD.cs: comment out some unused fields.
7099
7100         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
7101         some unused properties/methods.
7102
7103         * XplatUIX11.cs: fix MousePosition so we override the base class's
7104         property instead of conflicting with it.
7105
7106         * PictureBox.cs: comment out some unused fields
7107
7108         * OSXStructs.cs: make some struct fields public.
7109
7110         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
7111         MousePosition so we override the base class's property instead of
7112         conflicting with it.
7113
7114         * X11Dnd.cs: comment out some unused fields
7115
7116         * X11DesktopColors.cs: fix some struct field visibility to quiet
7117         the compiler.
7118
7119         * X11Dnd.cs: remove some debug code.
7120
7121         * ThemeClearlooks.cs: comment out unused field.
7122
7123         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
7124
7125         * ThemeGtk.cs: comment out some unused pinvokes.
7126
7127         * Timer.cs: remove some unused fields.
7128
7129         * ThemeClearlooks.cs: comment out unused field.
7130
7131         * UpDownBase.cs: comment out unused field.
7132
7133         * DataObject.cs: comment out unused field.
7134
7135         * DataGridBoolColumn.cs: reomve unused field.
7136
7137         * DataGrid.cs: remove unused field.
7138
7139         * Cursor.cs: remove old ToBitmap code.
7140
7141         * ControlPaint.cs: remove unused method.
7142
7143         * ScrollBar.cs: remove unused fields.
7144
7145         * ComboBox.cs: remove unused field, and chain up to
7146         AccessibleObject ctor.
7147
7148         * ListBox.cs: remove unused field.
7149
7150         * ButtonBase.cs: wrap a couple fields in NET_2_0.
7151
7152         * GridEntry.cs: remove unused fields.
7153
7154         * Binding.cs: remove unused fields.
7155
7156         * AxHost.cs: remove unused method.
7157
7158         * ContainerControl.cs: remove unused field.
7159
7160         * ScrollableControl.cs: remove unused fields.
7161
7162 2006-12-01  Chris Toshok  <toshok@ximian.com>
7163
7164         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
7165         the Where/WhereString stuff.  it's easy enough to CWL
7166         Environment.StackTrace.
7167
7168         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
7169         unused private fields.
7170
7171 2006-12-01  Jackson Harper  <jackson@ximian.com>
7172
7173         * TextControl.cs: Do not update the view while inserting multiline
7174         text. If we update the view we might wrap lines, before entering
7175         the new lines, which causes the new line insertion calculations to
7176         be totally fubared.
7177         - Remove an old TODO
7178         - Make debug output a little nicer
7179         
7180 2006-12-01  Chris Toshok  <toshok@ximian.com>
7181
7182         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
7183
7184 2006-12-01  Chris Toshok  <toshok@ximian.com>
7185
7186         [ fix the majority of the CS0108 warnings we've been suppressing ]
7187         
7188         * TreeView.cs: mark BackgroundImageChanged as 'new'.
7189
7190         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
7191         to "LayoutToolBar" to quiet mcs.
7192         
7193         * TabControl.cs: mark our ControlCollection class as 'new'.
7194
7195         * TextBoxBase.cs: mark some events as 'new'.
7196
7197         * Splitter.cs: TabStop is 'new'.
7198
7199         * ControlBindingsCollection.cs: mark a few methods as new since
7200         they change the visibility from protected to public.
7201
7202         * RadioButton.cs: DoubleClick -> base class, and remove unused
7203         HaveDoubleClick.
7204
7205         * MonthCalendar.cs: ImeMode property -> base class, and mark many
7206         events as new.
7207
7208         * NumericUpDown.cs: TextChanged -> base class.
7209
7210         * CheckedListBox.cs: mark our ObjectCollection class as new to
7211         quiet mcs.
7212
7213         * FolderBrowserDialog.cs: make HelpRequest event new and have it
7214         muck with the base class.
7215
7216         * StatusBar.cs: fix some mcs warnings about Update being the same
7217         name as a base class method.
7218
7219         * RichTextBox.cs: mark some events as new, and make them do things
7220         to the base class impl.
7221
7222         * UserControl.cs: mark TextChanged as new, and have it manipulate
7223         base.TextChanged.
7224
7225         * UpDownBase.cs: mark some things new.
7226
7227         * CheckBox.cs: mark DoubleClick "new", and add some text about
7228         what we need to look at.
7229
7230         * Panel.cs: make the events "new", and manipulate the base
7231         version.  these are just here for attributes.
7232
7233         * AccessibleObject.cs: make owner private.
7234
7235         * Control.cs: deal with AccessibleObject.owner being private.
7236         cache our own copy if we need it.
7237
7238         * Button.cs: add "new" to the DoubleClickEvent.
7239
7240         * ListBox.cs: no need to track our own has_focus here.  let
7241         Control.has_focus do it for us.  Also some other work to clear up
7242         warnings about not overriding base class methods of the same name.
7243         
7244         * ComboBox.cs: clear up some warnings about not override base
7245         class methods of the same name.
7246
7247 2006-12-01  Chris Toshok  <toshok@ximian.com>
7248
7249         * Form.cs: flag a few things as "new" to quiet some of the mcs
7250         warnings.
7251
7252         * AxHost.cs: same.
7253
7254         * PrintPreviewDialog.cs: same.
7255
7256         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
7257         now DGV isn't so horrible on the class status page.  also, move
7258         all events to using System.ComponentModel.EventHandlerList.  my
7259         wrists hurt.
7260
7261 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7262
7263         * MdiWindowManager.cs:
7264         - Set form to active mdi child if shown,
7265         and update the active mdi child to the next 
7266         remaining child in the z-order if the form is hidden.
7267
7268         * Form.cs: 
7269         - Track if the form has been visible and if its 
7270         visibility is beeing changed, so that the MdiClient
7271         can properly decide the ActiveMdiChild. The MdiClient 
7272         cannot track this since the form can change visibility 
7273         before MdiClient is created.
7274
7275         * MdiClient.cs:
7276         - Don't activate anything of the parent form is changing
7277         its visibility.
7278         - Rework ActiveMdiChild to only return visible mdi 
7279         children and take into account several other corner 
7280         cases.
7281
7282 2006-12-01  Chris Toshok  <toshok@ximian.com>
7283
7284         * IBindableComponent.cs: new 2.0 interface.
7285
7286 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
7287
7288         * DataGrid.cs: Font for caption area is bold by default.
7289
7290 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
7291
7292         * Menu.cs: Tag property for 2.0.
7293         
7294 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7295
7296         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
7297         
7298 2006-12-01  Chris Toshok  <toshok@ximian.com>
7299
7300         * TreeView.cs: doh, the Begin* events should be
7301         TreeViewCancelEventHandler.
7302
7303 2006-12-01  Chris Toshok  <toshok@ximian.com>
7304
7305         * Form.cs: Form.ControlCollection already stores off the
7306         form_owner field.  don't access the base class's internal "owner"
7307         field.
7308
7309         * Control.cs: make all the fields in Control.ControlCollection
7310         private.  there's no need for any internal fields here.
7311
7312 2006-12-01  Chris Toshok  <toshok@ximian.com>
7313
7314         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
7315         OnHandleCreated.  Fixes bug #80109.
7316
7317 2006-12-01  Chris Toshok  <toshok@ximian.com>
7318
7319         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
7320         SplitContainer.cs, Control.cs, StatusStrip.cs,
7321         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
7322         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
7323         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
7324         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
7325         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
7326         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
7327         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
7328         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
7329         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
7330         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
7331
7332         do most of the work to convert our code over to use
7333         System.ComponentModel.Component.Events for
7334         adding/removing/dispatching events.
7335
7336
7337 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7338
7339         * DataGridView.cs: Fix an ArgumentNullException reported 
7340         twice today in IRC.
7341
7342 2006-11-30  Mike Kestner  <mkestner@novell.com>
7343
7344         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
7345         grabbed listbox.  Fixes #80036 and #80101.
7346
7347 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7348
7349         * Message.cs: Changed ToString() to match MS.
7350         
7351 2006-11-30  Jackson Harper  <jackson@ximian.com>
7352
7353         * TextBoxBase.cs: You can still change the selected text on a read
7354         only textbox.
7355         * TextControl.cs: Lower magic number for wrap calculations. This
7356         lets text get closer to the right (far) edge.
7357
7358 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7359
7360         * Control.cs: Tweak 2.0 layout properties.
7361         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
7362         * TextRenderer.cs: Add a new overload.
7363         * ToolStrip*: Huge amount of changes and new features.
7364
7365 2006-11-30  Mike Kestner  <mkestner@novell.com>
7366
7367         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
7368         scroll range correct.  Fixes #79994.
7369
7370 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7371
7372         * MdiWindowManager.cs: Update main form's text when
7373         a form is closed. (fixes #80038)
7374         
7375 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
7376
7377         * ToolBar.cs:
7378         - Fix an regression in ButtonSize.
7379         - Get ImeMode default value change to "Disable".
7380         - Get ShowTooltips default value change to true, default value is 
7381         "false" but after make a test in .NET we get "true" result as default.
7382         
7383 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
7384
7385         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
7386
7387 2006-11-29  Chris Toshok  <toshok@ximian.com>
7388
7389         * XplatUIWin32.cs (GetWindowTransparency): check return value of
7390         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
7391         SetWindowTransparency hasn't been called.
7392
7393 2006-11-29  Chris Toshok  <toshok@ximian.com>
7394
7395         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
7396         if it's supported.
7397         (set_AllowTransparency): reorder things a little so that the
7398         WS_EX_LAYERED style is removed properly.
7399
7400 2006-11-29  Chris Toshok  <toshok@ximian.com>
7401
7402         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
7403         
7404         * Form.cs: only call the XplatUI transparency method (get/set) if
7405         SupportsTransparency says it's supported. Otherwise fallback to
7406         doing nothing (in the set case) or returning the instance field we
7407         cache (in the get case).
7408
7409         * XplatUIStructs.cs: add TransparencySupport flag enum.
7410         
7411         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
7412         change to SupportsTransparency.
7413
7414         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
7415         TransparencySupport.None from SupportsTransparency.
7416
7417         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
7418         TransparencySupport.Set from SupportsTransparency.
7419
7420         * XplatUIWin32.cs: implement GetWindowTransparency calling
7421         GetLayeredWindowAttributes, and implement SupportsTransparency by
7422         checking whether or not both
7423         GetWindowTransparency/SetWindowTransparency are available
7424         entrypoints.  We need to do this since SetWindowTransparency is
7425         available as of win2k, but GetWindowTransparency requires winxp.
7426         yay win32 api.
7427
7428         * XplatUI.cs: Add GetWindowTransparency, and change
7429         SupportsTransparency to allow for either/both Get/Set.
7430
7431 2006-11-29  Chris Toshok  <toshok@ximian.com>
7432
7433         * DataGrid.cs: keep from going into an infinite loop redrawing a
7434         datagrid that has no datasource.  Fixes bug #80033.
7435
7436 2006-11-29  Chris Toshok  <toshok@ximian.com>
7437
7438         * MenuItem.cs: fix the NRE when we assign text (and therefore call
7439         Invalidate) before the mainmenu has been assigned to a control.
7440
7441 2006-11-29  Chris Toshok  <toshok@ximian.com>
7442
7443         * DataGrid.cs: detect when we should be double the double click
7444         row/column autosize stuff, although that codepath has yet to be
7445         written.  part of the work for bug #79891.
7446
7447 2006-11-29  Chris Toshok  <toshok@ximian.com>
7448
7449         * Binding.cs (SetControl): fix unit test.
7450
7451 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7452
7453         * PageSetupDialog.cs: Validate the margins and set them in
7454         PageSettings. 
7455         * NumericTextBox.cs: New class to mimic the behavior of the
7456         textboxes used in the printing dialogs.
7457
7458 2006-11-29  Andreia Gaita  <avidigal@novell.com>
7459         
7460         * Form.cs: Revert previous change (remove call UpdateBounds
7461         from form constructor), because it messes with the handle creation
7462         order, and that one needs lots and lots of love.
7463         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
7464         for valid printer and throw InvalidPrinterException if document
7465         is set but printer not valid), adding a MonoTODO. Once 
7466         handle creation is done properly, we can put this back in.
7467
7468 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7469
7470         * MenuItem.cs: Create a invalidate method for menu item, to be
7471         calling from set text, it make text changes to imadiate update
7472         on screen. Fixes #80013. 
7473         
7474 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7475
7476         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
7477         fixes bug #80070 and some other problem on toolbar buttons
7478         layout.
7479
7480 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7481
7482         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
7483         with dotted brush.      Fixes #79564
7484         
7485 2006-11-28  Andreia Gaita  <avidigal@novell.com>
7486
7487         * Form.cs: Removed call to UpdateBounds on Form
7488         constructor, it was causing a call to CreateHandle
7489         before it was supposed to.
7490         * PrintControllerWithStatusDialog: Applied patch
7491         by Chris Toshok to hide controller when there are
7492         no printers available.
7493         PrintDialog.cs: initialize printer settings to 
7494         null - correct DefaultValues test #5
7495         * PrintPreviewControl.cs: Move PrintController
7496         initialization to GeneratePreview
7497         * PrintPreviewDialog.cs: 
7498         - Remove Preview generation     from Document_set(). It is 
7499         called on OnPaint
7500         - Throw InvalidPrinterException on CreateHandle if
7501         a Document is set but there are no printers or 
7502         printer is not valid.
7503         * ThemeWin32Classic: don't paint PrintPreviewControl
7504         if there is nothing to paint    
7505
7506 2006-11-28  Miguel de Icaza  <miguel@novell.com>
7507
7508         * Form.cs: Add another popular method.
7509
7510         * TabPage.cs: ditto.
7511
7512 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7513
7514         * MenuItem.cs: Fixed a warning.
7515         * InternalWindowManager: Fixed a warning.
7516
7517 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7518
7519         * MenuItem.cs:
7520         - When cloning a menu also clone MdiList and clone the 
7521           window menu items properly (as the forms and menuitems
7522           are kept in an internal hashtable, these need updating 
7523           as well)
7524         - Rewrote the window menu code, menu items are added in the
7525           order the forms were added to their parent, and they are
7526           updated every time the window menu is shown (before the
7527           list was only generated once, in the current order of the
7528           forms, and would never be updated). A checkmark is shown
7529           next to the item corresponding to the active mdi child.
7530
7531 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7532
7533         * XplatUIStructs.cs: 
7534         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
7535         
7536         * XplatUIWin32.cs: 
7537         - Added TME_NONCLIENT to TMEFlags.
7538         - Handles WM_NCMOUSEMOVE in GetMessage to 
7539           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
7540
7541         * MdiWindowManager:
7542         - Now merges mdi child menu to parent menu when maximized.
7543         - Recalculate NC areas of both mdi child and mdi parent. 
7544           Fixes #79757 (4).
7545           on window state and size changes.Fixes #79844 (3).
7546         - Handle WM_NCCALCSIZE to properly calculate borders.
7547
7548         * Form.cs:
7549         - Add/remove to the mdi containers list of mdi children 
7550           in the order they are added.
7551         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
7552           to the maximized mdi child.
7553         
7554         * InternalWindowManager.cs:
7555         - Only execute a click on the control buttons on the mouse up,
7556           not on the mouse down. Show the state of the button 
7557           (was only showing Normal state, never Pressed state). The
7558           pressed button now follows the mouse (if you click the Close 
7559           button and move the mouse over the Maximize button, the 
7560           Maximize button will be shown as pressed). Since Win32 does
7561           not generate WM_NCLBUTTONUP if you release the button outside
7562           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
7563           it as a mouse up.
7564         
7565         * ThemeWin32Classic.cs:
7566         - Draw a missing border around mdi child forms. Fixes #79844 (2).
7567
7568         * MdiClient.cs:
7569         - Added a list of forms which contains the order the forms are
7570           added to the mdi parent.
7571         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
7572         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
7573         - If the active form changes set the scrollbars to the top
7574           of the Z order, otherwise the form could hide them.
7575         - Scrollbars are now sized according to ClientSize, not 
7576           to Size, and they take into account the other scrollbar
7577           to determine maximum.
7578         
7579 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
7580         
7581         * XplatUI.cs:
7582         * XplatUIDriver.cs:
7583         * XplatUIX11.cs:
7584         * XplatUIWin32.cs:
7585         * XplatUIOSX.cs:
7586         - Added RequestAdditionalWM_NCMessages for windows to 
7587           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
7588           Currently only implemented in XplatUIWin32.
7589
7590 2006-11-27  Chris Toshok  <toshok@ximian.com>
7591
7592         * Hwnd.cs: only add the hwnd to the windows hash in
7593         set_WholeWindow and set_ClientWindow if whole_window/client_window
7594         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
7595
7596 2006-11-27  Mike Kestner  <mkestner@novell.com>
7597
7598         * ComboBox.cs: remove redundant OnDropDown call.  It is called
7599         from the ComboListBox.ShowWindow code. Fixes #79969.
7600
7601 2006-11-27  Chris Toshok  <toshok@ximian.com>
7602
7603         * Hwnd.cs: remove the setters for ExposePending and
7604         NCExposePending - noone uses them.
7605
7606 2006-11-27  Jackson Harper  <jackson@ximian.com>
7607
7608         * TextControl.cs: new param for ReplaceSelection which determines
7609         whether we select the new selection, or set the cursor to the end
7610         of the new selection.
7611         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
7612         pasting, select the new text.
7613         * RichTextBox.cs: Use new param for ReplaceSelection.
7614
7615 2006-11-27  Jackson Harper  <jackson@ximian.com>
7616
7617         * TextBoxBase.cs: Set the selection to the caret after the caret
7618         is moved, otherwise they get out of sync.
7619
7620 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7621
7622         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
7623         it fixes #80015
7624
7625 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7626
7627         * ThemeWin32Classic.cs: 
7628         - Fix toolbar drop down arrow position.
7629         - Fix drop down appearance when ToolBar.Appearance is normal,
7630         it fixes #80018.
7631         
7632 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
7633
7634         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
7635         * Control.cs: Same.
7636         * UpDownBase.cs: Same.
7637         * ButtonBase.cs: Same.
7638         * ScrollBar.cs: Same.
7639         * TrackBar.cs: Same.
7640         * PictureBox.cs: Same.
7641         * UserControl.cs: Same.
7642         * Label.cs: Same.
7643         * ListControl.cs: Same.
7644         * TextBoxBase.cs: Same.
7645         * ListView.cs: Same.
7646         * RichTextBox.cs: Same.
7647         * TreeView.cs: Same.
7648
7649 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
7650
7651         * PrintDialog.cs:
7652         - Text label for where 
7653         - Text label comment was not shown
7654
7655 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
7656
7657         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
7658
7659 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7660
7661         * InternalWindowManager.cs: 
7662         - Handle WM_PARENTNOTIFY to activate the form
7663         if any child control is clicked.
7664         - The form is only sizable if not minimized.
7665
7666         * MdiWindowManager.cs:
7667         - Save the IconicBounds if the form is moved.
7668         - Rework SetWindowState, now the window bounds 
7669         are stored only if the old window state is Normal.
7670         
7671         * MdiClient.cs:
7672         - In SetWindowStates store the old window state if 
7673         the window is maximized and restore window state if
7674         the window looses focus.
7675         - Don't handle any scrollbar value changes if 
7676         initializing the scroll bars. Fixes #79771.
7677         - Reworked ArrangeIconicWindows. Current algorithm
7678         tests bounds agains all other minimized windows, if
7679         any intersections create new bounds (going left to 
7680         right, bottom to top) and then test again. When 
7681         successful the bounds are saved and never computed
7682         again. Fixes #79774.
7683
7684 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7685
7686         * InternalWindowManager.cs: Added HandleTitleBarUp.
7687
7688 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7689
7690         * NumericUpDown.cs: In .NET 1.1, user entered text is still
7691         hexadecimal in ParseUserEdit.
7692
7693         
7694 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7695
7696         * MdiWindowManager.cs: 
7697         - Handle a click on the form's icon to show the 
7698         system menu (when maximized). Fixes #79775.
7699         - Change the existing click handler for the form's
7700         icon when not maximized to show on MouseUp.
7701         Fixes #79776.
7702
7703         * Form.cs: In OnResize only layout the mdi child's
7704         parent if it actually has a parent. Might not if
7705         the window is closing.
7706
7707
7708 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7709
7710         * MdiClient.cs: Ignore active MDI client for text of parent, if
7711         child has no text set.
7712
7713 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7714
7715         * ToolBar.cs: Fixed ToString to match MS.
7716
7717 2006-11-22  Andreia Gaita  <avidigal@novell.com>
7718
7719         * NumericUpDown: 
7720         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
7721         update inner values on set. Fixes #79966.
7722         - Override OnLostFocus to update value on NET 2. Fixes #79950.
7723         - Fix hexadecimal parsing.
7724         
7725         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
7726         parent. Fixes #79957
7727
7728 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7729
7730         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
7731         the actual size has to be queried, since if height /
7732         width is negative Win32 changes it to 0. 
7733         Fixes #79999 on Windows.
7734         
7735         * XplatUIX11.cs: Set height / width to 0 if negative
7736         in SetWindowPos. Fixes #79999 on Linux.
7737         
7738 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7739
7740         * ThemeWin32Classic.cs: Fix text redenring when button is
7741         pressed.
7742
7743 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7744
7745         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
7746         and later navigate by mouse. Fixes #79528.
7747
7748 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7749
7750         * ToolBar.cs: Set default value for TabStop to false in
7751         constructor, it fixes remaining behavior of bug #79863.
7752
7753 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7754
7755         * MdiWindowManager.cs:
7756         * InternalWindowManager.cs:
7757         - Moved a few methods specific to Mdi from 
7758         InternalWindowManager to MdiWindowManager.
7759         Fixes #79996.
7760         
7761 2006-11-21  Chris Toshok  <toshok@ximian.com>
7762
7763         * XplatUIOSX.cs: stub out InvalidateNC.
7764
7765         * XplatUIWin32.cs: implement InvalidateNC using the call I found
7766         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
7767
7768         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
7769
7770         * XplatUIDriver.cs: add InvalidateNC abstract method.
7771
7772         * XplatUI.cs: add InvalidateNC.
7773
7774 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7775
7776         * ToolBar.cs: Invalidate complete button area when pressed status 
7777         was changed.
7778         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
7779         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
7780         by 1 when button is pressed.
7781
7782 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7783
7784         * ToolButton.cs: Invalidate middle of DropDown button when
7785         ToolBar theres DropDownArrows.
7786         * ThemeWin32Classic.cs: Change position of DropDown arrow and
7787         fix DropDown drawing operations.
7788
7789 2006-11-20  Chris Toshok  <toshok@ximian.com>
7790
7791         * NativeWindow.cs: fix the formatting of functions ('{' on the
7792         following line), and enable the thread exception dialog.
7793
7794         * Application.cs: remove the duplicate exception catching from
7795         here.
7796
7797 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7798
7799         * Toolbar.cs: Triggers button click event when click on icon
7800         of dropdown ToolBarButton. Fixes #79912.
7801         
7802 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7803
7804         * Theme.cs:
7805         * ThemeWin32Classic.cs:
7806         - Added a property WindowBorderFont to enable themeing
7807           of mdi child windows' Text.
7808           
7809 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7810
7811         * InternalWindowManager.cs:
7812         * Form.cs:
7813         * MdiClient.cs:
7814         * MdiWindowManager.cs: 
7815         - If mdi child is maximized, set mdi parent's
7816           text to "Parent - [Child]". Fixes #79770.
7817         - If there is any maximized mdi child windows, only the active 
7818           window (and any new windows) is maximized, the rest are normal.
7819         - On a WindowState change only save mdi child's window bounds 
7820           if the old window state was normal. Fixes #79774.
7821         - The scroll bars are now calculated on hopefully all
7822           necessary events. Fixed #79771 / #79844->6 / #79906.
7823         - MdiClient.SizeScrollBars() now takes into account docked 
7824           controls in the parent when calculating available space.
7825         - InternalWindowManager now always repaints the entire title
7826           area. Fixes #79844->1/4/5.
7827         - Added RequestNCRecalc on mdi child windowstate changes.
7828           Fixes #79772.
7829
7830 2006-11-20  Mike Kestner  <mkestner@novell.com>
7831
7832         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
7833         in the MouseUp handler of the listbox and move the return handling
7834         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
7835
7836 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7837
7838         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
7839
7840 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
7841
7842         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
7843           working in 1.2.x anymore. So, updated.
7844
7845 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
7846
7847         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
7848         NumberGroupSeparator of current culture instead of assuming en-US.
7849         Fixed bug #79967.
7850
7851 2006-11-17  Mike Kestner  <mkestner@novell.com>
7852
7853         * Control.cs: Add the concept of implicit bounds setting so that
7854         dock/undock round trips preserve explicitly set size/locations.
7855         Fixes #79313.
7856
7857 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
7858
7859         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
7860           can't handle those filters. (Fixes bug #79961)
7861
7862 2006-11-17  Chris Toshok  <toshok@ximian.com>
7863
7864         [ fixes the exit/crashes associated with #79835.  it's clearly
7865         suboptimal though, we need to figure out a better way to solve
7866         this. ]
7867         
7868         * PrintPreviewControl.cs: deal with the new invalid printer
7869         exceptions.
7870
7871         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
7872         and return false (so CommonDialog.ShowDialog doesn't actually show
7873         the form.)
7874
7875         * PrintDialog.cs: enable/disable the Ok button depending on
7876         whether or not the printer is valid.
7877
7878         * CommonDialog.cs (ShowDialog): only actually show the form if
7879         RunDialog returns true.
7880
7881 2006-11-17  Jackson Harper  <jackson@ximian.com>
7882
7883         * TextControl.cs: When soft splitting a line, mark it as a soft
7884         split line. Also carry over the current line break to the next
7885         line.
7886
7887 2006-11-17  Chris Toshok  <toshok@ximian.com>
7888
7889         * XplatUIX11.cs: when scrolling a window with an invalid area, we
7890         only want to shift the part of the invalid area that overlaps the
7891         area we're scrolling.  we also don't want to clear the invalid
7892         area unless the invalid area was entirely contained within the
7893         scrolling area.
7894
7895 2006-11-16  Chris Toshok  <toshok@ximian.com>
7896
7897         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
7898         also make sure to free the memory returned by XGetWindowProperty
7899         in GetText().
7900
7901         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
7902
7903 2006-11-16  Chris Toshok  <toshok@ximian.com>
7904
7905         * XplatUI.cs: add a new super secret way to get at the totally
7906         unsupported X11 backend.
7907
7908 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
7909
7910         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
7911
7912 2006-11-16  Jackson Harper  <jackson@ximian.com>
7913
7914         * TreeView.cs: Allow more explicit setting of top node position
7915         for scrollbars. Slower algo, but more accurate.
7916         - CollapseAll should maintain the current top node.
7917         * TextBoxBase.cs: When positioning the caret, use the line, pos
7918         method, since the x, y method does not grab the correct tag, and
7919         the caret height never gets set correctly. (Maybe I should just do
7920         away with the caret having its own height, and always use the
7921         carets current tag for height).
7922
7923 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
7924
7925         [Fixes 79778, 79923]
7926
7927         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
7928         Parent to the FosterParent instead.
7929
7930 2006-11-16  Jackson Harper  <jackson@ximian.com>
7931
7932         * TreeView.cs: Need to recalc the topnode when we expand or
7933         collapse. The scrolling methods can't handle this on their own,
7934         since they use differences between the last scroll position, and
7935         those difference get completely messed up since we are expanding
7936         nodes.  This problem should probably be fixed in the scrolling
7937         methods, so they can figure out exactly where they are, but this
7938         will slow things down a little.
7939         * ThemeWin32Classic.cs: Special case for groupboxes with empty
7940         strings, makes nunit-gui look a lot nicer.
7941
7942 2006-11-16  Chris Toshok  <toshok@ximian.com>
7943
7944         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
7945         the broken multithreaded event handling we have in here.  File
7946         this entry under "Why we should move to the new X11 backend".
7947
7948         Any thread can make it into UpdateMessageQueue, which gets events
7949         from the X socket - some of which could belong to hwnds being
7950         managed by a different thread.  We can also have multiple threads
7951         in UpdateMessageQueue at the same time, with each one reading from
7952         the X socket.  This leads to many problems, with the following
7953         solutions:
7954
7955         We can't use hwnd.Queue.Enqueue anywhere in here and must use
7956         EnqueueLocked.
7957
7958         The MotionNotify compression we do can't work across threads
7959         (without locking the entire queue, perhaps) since we call
7960         hwnd.Queue.Peek, so we just punt and don't compress motion events
7961         unless the owning thread is the one which got the X event.
7962
7963         ConfigureNotify is another fun one, since it modifies the hwnd's
7964         bounds and then enqueues the event.  We add a lock to Hwnd which
7965         is held when setting configure_pending to true (and enqueuing the
7966         event).
7967
7968         There is a race wrt the wake socket.  we need to make sure that
7969         only 1 thread is waiting on that socket, or else a thread could
7970         sleep waiting for data that never comes.  It's difficult (but not
7971         impossible) to make happen, because it seems to require something
7972         like the following:
7973
7974             1. Thread 1 polls on wake_receive
7975         
7976             2. poll returns saying there's data to be read on
7977                wake_receive.
7978         
7979             3. Thread 2 polls on wake_receive and immediately returns
7980                saying there's data to be read.
7981
7982             4. Thread 2 reads the wakeup byte from wake_receive
7983
7984             5. Thread 1 attempts to read the wakeup byte from
7985                wake_receive.
7986
7987             6. Thread 2 exits (due to a form closing, perhaps).
7988
7989             7. Thread 1 blocks forever.
7990         
7991         Fun, eh?
7992
7993         Fixing the Expose handling isn't done yet, and the races inherent
7994         in that piece of code are responsible for the drawing mistakes you
7995         see when generating expose events in a MT app (like NPlot).  This
7996         one is the likely to be the hardest to bandaid, and it doesn't
7997         appear to cause anything but drawing problems.  The other issues
7998         caused apps to exit or hang.
7999
8000         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
8001         called from a different thread than the one that should be calling
8002         these functions.
8003
8004         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
8005
8006 2006-11-15  Chris Toshok  <toshok@ximian.com>
8007
8008         * Application.cs: null out the context's MainForm when we exit
8009         RunLoop.  Fixes a newly checked in unit test as well as the last
8010         ODE from bug #79933.
8011
8012 2006-11-15  Chris Toshok  <toshok@ximian.com>
8013
8014         * Form.cs (set_Owner): allow a null value so we can clear the
8015         form's owner.
8016         (Dispose): set all our owned_form's Owner properties to null, and
8017         clear the owned_forms collection.
8018         (WM_CLOSE): clean up this a little bit.. still not right though.
8019
8020         * ApplicationContext.cs: OnMainFormClosed should only call
8021         ExitThreadCore if the main form isn't recreating.  Fixes unit
8022         test.
8023
8024 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8025
8026         [Fixes 78346]
8027
8028         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
8029
8030 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8031
8032         [Fixes 79433]
8033
8034         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
8035         keep popup window types from stealing focus from the main form
8036         on Windows.
8037
8038         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
8039
8040         * MenuAPI.cs: Set above flag to true.
8041
8042 2006-11-15  Chris Toshok  <toshok@ximian.com>
8043
8044         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
8045         the button being released is not in wParam.
8046
8047 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8048
8049         * Form.cs: Add the released button to MouseEventArgs.Button
8050         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
8051         on Win32.
8052
8053 2006-11-15  Chris Toshok  <toshok@ximian.com>
8054
8055         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
8056         GetText().  untested because it's unused in our implementation.
8057         Control.Text always caches the text, even if
8058         ControlStyles.CacheText is not set.
8059
8060         fixes bug #79939.
8061
8062 2006-11-15  Chris Toshok  <toshok@ximian.com>
8063
8064         [ fixes #79933 ]
8065         
8066         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
8067         message.  no hiding, no disposing.
8068
8069         in the WM_CLOSE handler, hide the form if it's modal.
8070
8071 2006-11-15  Chris Toshok  <toshok@ximian.com>
8072
8073         * XplatUIX11.cs: use AddExpose instead of sending a message.
8074         fixes textbox border drawing.
8075
8076 2006-11-15  Chris Toshok  <toshok@ximian.com>
8077
8078         * PropertyGridView.cs: keep from crashing on mouse move/down when
8079         the property grid is empty.
8080
8081 2006-11-14  Jackson Harper  <jackson@ximian.com>
8082
8083         * TextControl.cs: Make PageUp and PageDown more like the MS
8084         versions.
8085         * TextBoxBase.cs: When we set the text property position the
8086         cursor at the beginning of the document.
8087
8088 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8089
8090         * Form.cs: if a mdi child's WindowState has changed
8091         before it's creation, it would display wrong control
8092         buttons.
8093         
8094 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
8095
8096         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
8097           (Fixes bug #79927)
8098
8099 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8100
8101         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
8102         the window gets to paint its borders even if the window is
8103         getting smaller.
8104         
8105         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
8106         otherwise the old control buttons would still be painted 
8107         if the window gets bigger.
8108         
8109         * PaintEventArgs.cs: add an internal method so that the clip 
8110         rectangle can be changed.
8111         
8112 2006-11-13  Chris Toshok  <toshok@ximian.com>
8113
8114         [ fixes bug #79745 ]
8115         
8116         * NotifyIcon.cs: lots of cleanup.
8117
8118         * X11Structs.cs: add an enum for XEMBED messages.
8119
8120         * XplatUIX11.cs: reindent one of the giant switch statements, it
8121         was taking up an additional tab stop, and this file is already way
8122         too wide for my laptop's screen.
8123
8124         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
8125         we get it, resize the hwnd to the WMNormalHints max_width/height.
8126
8127 2006-11-13  Jackson Harper  <jackson@ximian.com>
8128
8129         * TextBoxBase.cs: Compute the value changes for the mouse wheel
8130         teh simple way.
8131
8132 2006-11-13  Chris Toshok  <toshok@ximian.com>
8133
8134         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
8135         #79898.  force a reference to the Region to stick around so the
8136         unmanaged object isn't collected (rendering our handle in the MSG
8137         stale).
8138
8139 2006-11-13  Chris Toshok  <toshok@ximian.com>
8140
8141         * XplatUIX11.cs: fix #79917 for window managers which support
8142
8143         using XStoreName on the raw utf8, and we need to convert to
8144         COMPOUND_TEXT if it's non-latin1.
8145
8146 2006-11-13  Chris Toshok  <toshok@ximian.com>
8147
8148         * Form.cs (set_DialogResult): we need to set closing to false if
8149         we're setting our result to None.  fixes bug #79908.
8150
8151 2006-11-13  Jackson Harper  <jackson@ximian.com>
8152
8153         * TextControl.cs: When formatting text, compute the adjusted tag
8154         lengths correctly, using FindTag for the end tag instead of trying
8155         to figure it out outselves.
8156         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
8157         the item, ItemHeight doesn't work, because trees with large
8158         imagelists use those for their height
8159         * TreeView.cs: ActualItemHeight factors in the image height
8160         - compute left edge of checkboxes correctly
8161         - when expanding/collapsing move the bottom down one pixel, so we
8162         aren't moving part of the node
8163
8164 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8165
8166         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
8167         stack in PaintEventStart so that it won't get disposed by the gc
8168         before reaching PaintEventEnd.
8169
8170 2006-11-13  Jackson Harper  <jackson@ximian.com>
8171
8172         * TextBoxBase.cs: Don't select the word if we are on a line with
8173         no text.
8174         - We don't need to position the caret on mouse up, since the mouse
8175         move handler should be doing this
8176         - When double clicking a blank line, the caret is advanced to the
8177         next line.
8178
8179 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
8180
8181         * TreeNodeCollection.cs: Avoid duplicating indexer code.
8182
8183 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
8184
8185         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
8186         Fixes part of bug #79910.
8187
8188 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
8189
8190         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
8191           (bug #79903). Some minor string updates to match ms.
8192
8193 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8194
8195         * FileDialog.cs: Don't add an extension if the filename
8196           already ends with that extension.
8197
8198 2006-11-10  Jackson Harper  <jackson@ximian.com>
8199
8200         * TreeView.cs: Use the currently highlighted node for the
8201         BeforeSelect event.
8202         * TextBoxBase.cs: There is no need to expand selection on
8203         MouseMove.
8204         - CanUndo means 'is there any undo operations', not 'is undo
8205         allowed on this textcontrol. Fixed ClearUndo unit test.
8206
8207 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
8208
8209         * Button.cs: only perform click when button is Selectable (so as 
8210         not to activate default buttons when they're disabled)
8211         
8212         * Control.cs: Rewrite of the SelectNextControl and related 
8213         methods. HandleClick now selects next control if the current one
8214         is being disabled.
8215         
8216         * Form.cs: OnActivated selects next active control only if Load 
8217         has already occurred. If Load hasn't run, there's no point in 
8218         selecting here, Load might change the state of controls.
8219         
8220         * FocusTest.cs: Tests marked as working again for these fixes
8221
8222 2006-11-10  Chris Toshok  <toshok@ximian.com>
8223
8224         * XplatUIX11.cs: a couple of fixes.
8225
8226         - use XInternAtoms with almost all the atoms we need to register,
8227         instead of many, many calls to XInternAtom.  should help a bit on
8228         startup time, at the expense of making the code look a little
8229         worse.
8230
8231         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
8232         isn't reparented (which seems to be a clue that we're running fon
8233         compiz) and they have an Owner form.  This fixes the tool windows
8234         in paint.net when running under compiz.
8235
8236         - when setting the opacity of a window, support both the case
8237         where the window has been reparented and also when it hasn't been.
8238         Since compiz/beryl doesn't seem to reparent windows, and these are
8239         the only window managers which support translucency, I'm not sure
8240         why we need the hwnd.reparented case at all.. but leave it in.
8241         now we get translucent windows in paint.net under compiz/beryl.
8242
8243 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8244
8245         * FileDialog.cs: Always return the value for FilterIndex that
8246           was set. Internally convert it to values that make sense.
8247
8248 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8249         
8250         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
8251
8252 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8253
8254         * Toolbar.cs: Change default value of DropDownArrows to true, the 
8255         signature still using false to make it compatible with MS but the 
8256         initial value is true. Fixes #79855.
8257
8258 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8259
8260         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
8261           only available on Linux.
8262
8263 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
8264
8265         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
8266         reduce number of calls to redraw method during toolbar creation.
8267
8268 2006-11-09  Mike Kestner  <mkestner@novell.com>
8269
8270         * ListView.cs : raise SelectedIndexChanged when an item is selected
8271         programmatically via the Item.Selected property.  Gert's nice 
8272         ListViewSelectedIndexChanged test fixture now runs clean.
8273
8274 2006-11-09  Mike Kestner  <mkestner@novell.com>
8275
8276         * ListView.cs : raise SelectedIndexChanged when a selected item is
8277         removed from the item collection using Remove or RemoveAt.
8278
8279 2006-11-09  Mike Kestner  <mkestner@novell.com>
8280
8281         * ListView.cs : raise SelectedIndexChanged once per selected item
8282         for compat with MS.  Fixes #79849+.
8283
8284 2006-11-09  Chris Toshok  <toshok@ximian.com>
8285
8286         * TabControl.cs: initialize row_count to 0, and set it to 1 when
8287         we need to (if we have any tab pages).  Fixes unit test.
8288
8289 2006-11-09  Chris Toshok  <toshok@ximian.com>
8290
8291         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
8292         width is 0, not 3.  Fixes a unit test.
8293
8294 2006-11-09  Mike Kestner  <mkestner@novell.com>
8295
8296         * ListView.cs : use Implicit scrollbars so that focus isn't 
8297         stolen from the listview when they are clicked. Fixes #79850.
8298
8299 2006-11-09  Chris Toshok  <toshok@ximian.com>
8300
8301         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
8302         have a root item.  Fixes #79879.
8303
8304 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
8305
8306         * FileDialog.cs:
8307           - Fix ToString ()
8308           - An ArgumentException is now thrown if a wrong filter
8309             is applied (matches ms). The previous filter doesn't change
8310             anymore if an exception is thrown.
8311           - Changing the FileName property also affects FileNames
8312         * ColorDialog.cs: The length of the CustomColors array is always
8313           16. It doesn't matter if we use a smaller array or null to update
8314           or change the custom colors property.
8315         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
8316           for RootFolder if we get a undefined value.
8317
8318 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8319
8320         * StatusBarPanel.cs: 
8321         - Width is set to MinWidth if Width is smaller than
8322         MinWidth. Fixes #79842.
8323         - MinWidth now always overrides Width (MSDN says MinWidth
8324         is set to Width when AutoSize = None, but they do not 
8325         behave like that).
8326         - Style has now the the correct default value.
8327         
8328 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8329  
8330         * TrackBar.cs: 
8331         - The control is completely invalidated on 
8332         Got/LostFocus to draw the focus rectangle correctly.
8333         - When AutoSize then height is always 45 (width for 
8334         vertical controls).
8335         
8336         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
8337         on the mouse when moved and it doesn't move when grabbed
8338         until the mouse moves as well. Also fixed some wrong 
8339         calculations when clicking on the thumb (control thought
8340         click was outside of thumb and didn't grab it).
8341         Fixes some of the issues in #79718.
8342
8343 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
8344
8345         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
8346
8347 2006-11-08  Chris Toshok  <toshok@ximian.com>
8348
8349         * PropertyGridView.cs: only call ToggleValue if the item is not
8350         readonly.
8351
8352 2006-11-08  Jackson Harper  <jackson@ximian.com>
8353
8354         * TextBoxBase.cs: The RichTextBox and textbox have very different
8355         word selection methods.  Implement the textbox's simple word
8356         selection here, and let the RichTextBox override and provide it's
8357         own.
8358         - Don't do extra selection on mouseup
8359         * RichTextBox.cs: Use the documents word selection algorithm, I
8360         think ideally, this function will be pulled into the
8361         RichTextBox.cs code someday.
8362
8363 2006-11-08  Chris Toshok  <toshok@ximian.com>
8364
8365         * RootGridEntry.cs: new class to represent GridItemType.Root.
8366
8367         * CategoryGridEntry.cs: reformat, and add boilerplate.
8368         
8369         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
8370         returns the UI parent anyway, and we need special handling to
8371         implement the GetTarget method in the face of it.  Also, implement
8372         Select().
8373
8374         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
8375         a root grid item, and use that instead of PropertyGrid.grid_items.
8376         Also, make use of TypeConverters (and add limitted support for
8377         ICustomTypeDescriptors) when initially populating the grid.
8378         Arrays now show up more or less properly.
8379
8380 2006-11-08  Chris Toshok  <toshok@ximian.com>
8381
8382         * Application.cs: set the modal dialog to non modal after we close
8383         it.  Fixes bug #79866.
8384
8385 2006-11-08  Jackson Harper  <jackson@ximian.com>
8386
8387         * TextControl.cs: When combining lines carry over the line end
8388         style from the end line.
8389         - Invalidate the selected area when setting it, if it is visible.
8390         * TextBoxBase.cs: Only rich text box can do full line selects.
8391         - Make sure to set the cursor position when there is a click,
8392         otherwise two clicks in separate areas could cause a large chunk
8393         to be selected.
8394
8395 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8396
8397         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
8398         Fixes #79863.
8399
8400 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8401
8402         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
8403         time. Remove tooltips when ToolButton click events.  Fixes #79856.
8404
8405 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8406
8407         * MenuAPI.cs: Ignore right click for menu actions and fixes
8408         menu border when clicked.  Fixes #79846.
8409
8410 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8411
8412         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
8413         MouseState after create wParam for message, this fixes mouse button 
8414         equal none in mouse up events.
8415         
8416 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
8417
8418         * Control.cs : Focus() now calls Select to set the Container's
8419         Active Control and to give it focus. To avoid infinite recursion
8420         (because ActiveControl also calls Focus at one point), a check 
8421         is made in Focus with the help of a new internal variable
8422         is_focusing.
8423
8424 2006-11-07  Mike Kestner  <mkestner@novell.com>
8425
8426         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
8427         if there's a selection.  Fixes #79849.
8428
8429 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
8430
8431         * PropertyGrid.cs: Avoid fixed height of help description label.
8432         Fixes part of bug #79829.
8433
8434 2006-11-07  Chris Toshok  <toshok@ximian.com>
8435
8436         * XplatUIX11.cs: fix #79790 again, by using the
8437         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
8438
8439 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8440
8441         * ToolBar.cs: Fix left click checking.
8442
8443 2006-11-07  Chris Toshok  <toshok@ximian.com>
8444
8445         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
8446
8447 2006-11-07  Chris Toshok  <toshok@ximian.com>
8448
8449         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
8450         PropertyManager unit tests.
8451
8452         * PropertyManager.cs: make property_name internal.
8453
8454 2006-11-07  Chris Toshok  <toshok@ximian.com>
8455
8456         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
8457         pass a unit test.  Also, don't set image_index to anything in
8458         response to setting the ImageList property.
8459
8460 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8461
8462         * ToolBar.cs: Ignore click events when mouse button is not a
8463         left button, only accepts other button for dropdown menus.  
8464         Fixes #79854.
8465
8466 2006-11-07  Chris Toshok  <toshok@ximian.com>
8467
8468         * DataGrid.cs: make the back and parent row buttons a little less
8469         ugly.
8470
8471 2006-11-07  Jackson Harper  <jackson@ximian.com>
8472
8473         * TextBoxBase.cs: When converting to Text don't put line breaks in
8474         for soft line breaks.
8475         * TextControl.cs: There is an initial "fake" line in the document,
8476         this is now a soft break line, so that an extra line feed doesn't
8477         get added to the end of documents.
8478
8479 2006-11-07  Chris Toshok  <toshok@ximian.com>
8480
8481         [ fix bug #79778 ]
8482         
8483         * CurrencyManager.cs: if the list is readonly, don't bother
8484         checking if IBindingList.AllowNew is true.
8485
8486         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
8487         for non-DataRowView datasources..  or rather, make it not crash.
8488         (DataGridPaintRelationRow): make sure we limit the row painting to
8489         the area not covered by the row header, and make our cell width at
8490         least large enough to cover the relation area.  This allows grids
8491         that have relations but no rows to render correctly.
8492         (DataGridPaintRowContents): same type of changes here.
8493         (SetDataSource): move back to always calling
8494         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
8495         navigating back through relations.
8496         (HitTest): handle the case where we have no cells but have
8497         relations.  Right now we generate a hit in cell 0 of whatever the
8498         row is, not sure if this is strictly correct, but it works for our
8499         purposes.
8500         
8501         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
8502         bother doing anything.
8503
8504 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
8505
8506         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
8507         early version of StatusStrip.  Not responsible for eaten
8508         application or firstborn children.
8509
8510 2006-11-06  Chris Toshok  <toshok@ximian.com>
8511
8512         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
8513         call GetTabRect with a -1 index.  Fixes #79847.
8514
8515 2006-11-06  Jackson Harper  <jackson@ximian.com>
8516
8517         * TreeNodeCollection.cs: Update scrollbars after clearing.
8518
8519 2006-11-06  Chris Toshok  <toshok@ximian.com>
8520
8521         * NumericUpDown.cs: fix the ToString method for some unit test
8522         love.
8523
8524 2006-11-06  Chris Toshok  <toshok@ximian.com>
8525
8526         * PropertyGrid.cs:
8527         - set the initial SelectedGridItem if we can.
8528
8529         - Exclude non-mergable properties only if we're merging > 1
8530         object.  Merging 1 object isn't really merging, obviously.
8531
8532         - Handle PropertySort.NoSort just like Alphabetical, which is
8533         wrong of course, but at least gets things on the screen.
8534         
8535         * PropertyGridView.cs:
8536         - Add method "FindFirstItem" which finds the first property grid
8537         item, so we can select it by default.
8538
8539         - make use of GridEntry.CanResetValue.
8540
8541         - Don't call RedrawBelowItemOnExpansion here anymore, the
8542         individual GridEntry's will do that.
8543
8544         - Remove the ITypeDescriptorContextImpl internal class.
8545         
8546         * GridEntry.cs:
8547         - this class needs to implement ITypeDescriptorContext, as it's
8548         what MS's PropertyDescriptorGridEntry does, which means we can
8549         remove the ITypeDescriptorContextImpl internal class from
8550         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
8551
8552         - keep a reference to our PropertyGridView, and move the call to
8553         RedrawBelowItemOnExpansion here from PGV.  This means
8554         programmaticly setting Expanded actually does something visible.
8555
8556         - add a CanResetValue() function which takes into account our
8557         possibly multiple "selected_objects" in the merged case.  Shifting
8558         PropertyGridView to use this method fixes another unreported
8559         crasher found running the test for #79829.
8560
8561         - when Top or Bounds is updated, make sure the PropertyGridTextBox
8562         is updated to reflect this.
8563
8564         * CategoryGridEntry.cs: the ctor takes the PGV now.
8565         
8566 2006-11-06  Jackson Harper  <jackson@ximian.com>
8567
8568         * TextControl.cs: These are 1 based.
8569         * TextBoxBase.cs: When setting the selected text, don't change the
8570         selected text tags, this is done by ReplaceText, just position the
8571         cursor at the end of the new text.
8572
8573 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8574
8575         * ListView.cs: Allow label edit only when, when LabelEdit is
8576           set to true.
8577
8578 2006-11-06  Jackson Harper  <jackson@ximian.com>
8579
8580         * TextControl.cs: If a suitable wrapping position isn't found,
8581         just wrap right in the middle of a word.
8582
8583 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8584
8585         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
8586           bug #79820.
8587
8588 2006-11-06  Jackson Harper  <jackson@ximian.com>
8589
8590         * TreeView.cs: Can't use the VisibleCount property when setting
8591         scrollbar heights, because this doesn't take into account whether
8592         or not the horz scrollbar just came visible.
8593
8594 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
8595
8596         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
8597         activated.  Fixes #79369, #79832.
8598
8599 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
8600
8601         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
8602           had to remove support for links that point to a directory. FileInfo
8603           returns no usefull information (means, the directory they point to)
8604           for such links. Replaced some empty string ("") with String.Empty.
8605
8606 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8607
8608         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
8609         NullReferenceException when attempting to remove node that is not in
8610         collection. Throw NullReferenceException when null is passed to 
8611         Remove. Allow first element of the collection to be removed. Fixes
8612         bug #79831.  In GetEnumerator ().Current return null if positioned 
8613         before the first element of the collection. In GetEnumerator ().Reset,
8614         position before first element of the collection.
8615
8616 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8617
8618         * PropertyGrid.cs: To match MS, remove default title and description
8619         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
8620         buttons.
8621
8622 2006-11-04  Chris Toshok  <toshok@ximian.com>
8623
8624         * Theme.cs: add a Clamp method, just for kicks.
8625
8626         * ThemeWin32Classic.cs: clamp all color components to [0..255].
8627
8628 2006-11-04  Chris Toshok  <toshok@ximian.com>
8629
8630         * Form.cs: if the form isn't visible, Close() does nothing.
8631
8632 2006-11-03  Chris Toshok  <toshok@ximian.com>
8633
8634         * Form.cs (Close): if the form is modal, don't Dispose of it, only
8635         Hide it.
8636         (WndProc): don't Dispose after handling the WM_CLOSE message.
8637
8638         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
8639         them as such, instead of using casts from Control to Form.  Also,
8640         don't Dispose of the modal dialog when we fall out of the loop -
8641         Close() it instead.
8642
8643         fixes bug #79813.
8644
8645 2006-11-03  Chris Toshok  <toshok@ximian.com>
8646
8647         * Control.cs (Dispose): only go through the dispose thing if we're
8648         @disposing, and we haven't already been disposed.  Fixes bug
8649         #79814.
8650
8651         * Form.cs: no reason to call "base.Dispose()" here instead of
8652         "Dispose()".
8653
8654 2006-11-03  Mike Kestner  <mkestner@novell.com>
8655
8656         * ComboBox.cs : use ToString instead of casts in AddItem for
8657         sorting functionality.  Fixes #79812.
8658
8659 2006-11-03  Chris Toshok  <toshok@ximian.com>
8660
8661         * Application.cs: pave the way for actually using the thread
8662         exception dialog.  it's ifdefed out at the moment.
8663
8664 2006-11-03  Chris Toshok  <toshok@ximian.com>
8665
8666         * ThreadExceptionDialog.cs: until we get a better layout, actually
8667         hide the details textbox and label when we shouldn't see them.
8668
8669 2006-11-03  Jackson Harper  <jackson@ximian.com>
8670
8671         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
8672         multiline textboxes anymore.  This method also determines the
8673         width/height of a textboxes canvas area.
8674         - Sorta a revert of the last patch.  For multiline just position
8675         the controls, then bail.  This way the scrollbar width won't be
8676         altered.
8677
8678 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
8679
8680         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
8681         it dont need.  Fixes #79537.
8682
8683 2006-11-02  Jackson Harper  <jackson@ximian.com>
8684
8685         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
8686         send the status after firing the DndOver event.
8687
8688 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8689
8690         * TrackBar.cs: Now orientation only switches height / width if
8691         the control's handle is created (Win32 does it like this). Also 
8692         fixed a typo in ToString() for a test to pass, changed the 
8693         exception thrown in set_LargeChange and set_SmallChange to 
8694         match Win32 behaviour, and added TrackBar tests to the unit 
8695         tests.
8696
8697 2006-11-02  Chris Toshok  <toshok@ximian.com>
8698
8699         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
8700         not _NET_WM_STATE_NO_TASKBAR.
8701
8702 2006-11-02  Jackson Harper  <jackson@ximian.com>
8703
8704         * TextControl.cs: Increment count by one, since in the update view
8705         count - 1 is used.
8706
8707 2006-11-02  Jackson Harper  <jackson@ximian.com>
8708
8709         * TextBoxBase.cs: Use client rectangle not bounds for checking if
8710         the mouse is in the client rectangle (duh).
8711
8712 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8713         
8714         * TrackBar.cs: Fixed trackbar jumping around when clicking
8715         on it - the trackbar was not detecting correctly at which
8716         side of the thumb the click was done. (fixes #79718)
8717
8718 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
8719
8720         * ListBox.cs: scroll visible area when change SelectedIndex to
8721         a non visible area.  Fixes #79481.
8722
8723 2006-11-01  Jackson Harper  <jackson@ximian.com>
8724
8725         * TextControl.cs: When replacing the selection move the selection
8726         start/end/anchor to the end of the new text.
8727
8728 2006-11-01  Jackson Harper  <jackson@ximian.com>
8729
8730         * XplatUIWin32.cs: When setting the parent change the controls
8731         visibility to it's visibility flag, not to it's old parents
8732         visibility (.Visible walks the parent chain).
8733
8734 2006-11-01  Chris Toshok  <toshok@ximian.com>
8735
8736         * XplatUIX11.cs: revert the #79790 fix, as the simple.
8737         XSetTransientForHint fix breaks paint .net's tool windows.  more
8738         work needed for that one.
8739
8740 2006-11-01  Chris Toshok  <toshok@ximian.com>
8741
8742         * ScrollBar.cs: throw ArgumentException instead of Exception in
8743         LargeChange/SmallChange setters.  fixes unit tests.
8744
8745 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8746
8747         * ContainerControl.cs: reverted rev.67183 (which was itself
8748         a reversion of rev.66853... eh).
8749         
8750         * Control.cs: Fixes Reflector hang by changing Focus() call
8751         to what it was before rev.66643 (calling Select() here sets 
8752         ActiveControl, which in some situations calls back Focus and 
8753         eventually does a stack overflow). Temp fix.    
8754         Changes to GetNextControl() to not look for children to select when
8755         parent cannot be selectable (so it looks for siblings instead)  
8756         
8757 2006-10-31  Mike Kestner  <mkestner@novell.com>
8758
8759         * CheckedListBox.cs : off by one error in returned index from
8760         ObjectCollection.Add.  Fixes #79758.
8761
8762 2006-10-31  Chris Toshok  <toshok@ximian.com>
8763
8764         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
8765         calls for the textbox/spinner, to keep from recursing to the point
8766         where we crash.  Fixes #79760.
8767
8768 2006-10-31  Chris Toshok  <toshok@ximian.com>
8769
8770         * ListControl.cs (set_SelectedValue): don't throw exceptions on
8771         null/"" value, just return.  matches ms's behavior and fixes some
8772         failing tests.
8773
8774 2006-10-31  Chris Toshok  <toshok@ximian.com>
8775
8776         * Control.cs (set_Capture): make a logic a little easier to
8777         follow.
8778
8779         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
8780         if it's being destroyed.  A necessary fix surely, but a bandaid
8781         also, to fix the stuck capture problem in bug #78413.
8782
8783 2006-10-31  Chris Toshok  <toshok@ximian.com>
8784
8785         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
8786         convention of clearing hwnd.ClientRect when we set the
8787         width/height (so it'll be recalculated by Hwnd).
8788
8789 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8790
8791         * ContainerControl.cs: reversed Contains check from
8792         ActiveControl due to hanging problems. This fix
8793         partly regresses #79667 (button does not have
8794         initial focus), so this might be a symptom for 
8795         a larger parenting problem (set_ActiveControl
8796         is being called but the child control does
8797         not have the parent set yet?)   
8798         
8799 2006-10-31  Mike Kestner  <mkestner@novell.com>
8800
8801         * MenuAPI.cs : fix keynav when menu is click activated.
8802
8803 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
8804
8805         * ToolStrip*: Version 0.2.
8806
8807         * MenuStrip.cs: Version 0.1.
8808
8809         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
8810
8811 2006-10-30  Chris Toshok  <toshok@ximian.com>
8812
8813         [ fixes the oversized notify icon issue in bug #79745 ]
8814         
8815         * NotifyIcon.cs: scale the icon down to the size we're given by
8816         the XplatUI layer (this would be faster if we did it once instead
8817         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
8818         since it's never invoked.
8819
8820         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
8821         pixels high by default, so let's hardcode our systray icon to that
8822         size.  The SYSTEM_TRAY protocol should really have a way for
8823         client apps to query for the correct icon size.. but oh well.  A
8824         couple of patches to deal with the screwy client_window ==
8825         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
8826         instance, and also make sure we don't XSelectInput twice).
8827
8828 2006-10-30  Chris Toshok  <toshok@ximian.com>
8829
8830         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
8831         recreating forms.  Control recreation is the bane of my existence.
8832         Fix it in a way that keeps everyone happy.
8833
8834 2006-10-30  Chris Toshok  <toshok@ximian.com>
8835
8836         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
8837         just non-CHILD ones.  otherwise sometimes scrollbars end up with
8838         client_windows not being resized to the proper size (ReportBuilder
8839         shows this extremely well).
8840
8841 2006-10-30  Chris Toshok  <toshok@ximian.com>
8842
8843         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
8844         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
8845         showing up in the gnome taskbar.  Fixes bug #79790.
8846
8847 2006-10-30  Chris Toshok  <toshok@ximian.com>
8848
8849         * ApplicationContext.cs: guard against a NRE.
8850
8851         * Application.cs: null out the old MainForm for the context, so we
8852         don't try to use it again once it's disposed.  Fixes bug #79783.
8853
8854 2006-10-30  Chris Toshok  <toshok@ximian.com>
8855
8856         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
8857         BindingContext, set the data source directly, otherwise do the
8858         lazy approach - the actual ListManager will be created when we get
8859         a BindingContext. Fixes bug #79700.
8860
8861 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
8862
8863         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8864           XplatUIX11.cs: Remove old 2 parameter SetVisible.
8865
8866         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
8867
8868 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
8869
8870         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
8871         of SetVisible that allows a window to be shown, but not activated.
8872         This is needed on Windows for MenuStrip, and can probably be used
8873         with MainMenu and ComboBox to fix the focus stealing issues on
8874         Windows.
8875
8876         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
8877
8878 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
8879
8880         * PictureBox.cs: Fix the output of the ToString method.
8881
8882 2006-10-29  Chris Toshok  <toshok@ximian.com>
8883
8884         * Control.cs (get_TopLevelControl): fix bug #79781.
8885
8886 2006-10-29  Chris Toshok  <toshok@ximian.com>
8887
8888         * ListControl.cs (set_DataSource): throw Exception here, not
8889         ArgumentException, to match MS behavior.
8890
8891 2006-10-29  Chris Toshok  <toshok@ximian.com>
8892
8893         * Form.cs: remove the try-catch's around calls to GetWindowState.
8894         We can just check the return value.
8895
8896         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
8897         Instead return -1.
8898
8899         * XplatUI.cs: Add note about additional return value for
8900         GetWindowState.
8901
8902 2006-10-29  Chris Toshok  <toshok@ximian.com>
8903
8904         * Control.cs (CreateHandle): when we create our handle, we also
8905         create the handles of our child controls.  Fixes one of the
8906         Control unit tests (CH11).
8907
8908 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
8909
8910         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
8911
8912 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
8913
8914         * ThemeClearlooks.cs: A little speedup.
8915
8916 2006-10-27  Chris Toshok  <toshok@ximian.com>
8917
8918         * Control.cs: implement Control.FromChildHandle in a way that
8919         matches the docs (and fixes the failed test.)
8920
8921 2006-10-27  Chris Toshok  <toshok@ximian.com>
8922
8923         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
8924         comments).
8925
8926         * DataGrid.cs: implement ResetForeColor such that the tests
8927         succeed.
8928         
8929 2006-10-27  Chris Toshok  <toshok@ximian.com>
8930
8931         * ToolBarButton.cs: setting text/tooltiptext to null results in it
8932         being set to "".  Fixes bug #79759.
8933
8934 2006-10-27  Jackson Harper  <jackson@ximian.com>
8935
8936         * TextControl.cs: We need to clear the entire selection area when
8937         setting the start, otherwise multiline selections are still
8938         visible.
8939
8940 2006-10-26  Chris Toshok  <toshok@ximian.com>
8941
8942         * PropertyGridView.cs: 
8943
8944         - ifdef all the code specific to the double
8945         buffer case, and provide some alternatives in the non-doublebuffer
8946         code, which makes heavy use of XplatUI.ScrollWindow to move things
8947         around without having to invalidate (and cause flicker).  There
8948         are still some drawing problems in the non-doublebuffered case, so
8949         DOUBLEBUFFER is defined by default.
8950
8951         - Fix the way dropdowns are handled.  now we explicitly watch for
8952         the events which might cause the dropdown to close, and break out
8953         of the nested event loop there.  This gets rid of all Capture
8954         code, at the expense of the Msg special casing.  Seems to work,
8955         though, and fixes bug #79743.
8956
8957 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
8958         * Control.cs: SetIsRecreating now recreates implicitly added
8959         child controls as well. Finally fixes #79629. The flag passed to 
8960         SetIsRecreating has also been removed since it wasn't used.
8961         
8962 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8963
8964         * PageSetupDialog.cs: Clean some code, fix some bits, 
8965         add some checks, and add a printer sub-dialog.
8966
8967 2006-10-26  Chris Toshok  <toshok@ximian.com>
8968
8969         * PropertyGrid.cs: make set_SelectedObject call
8970         set_SelectedObjects, and move the duplicate logic to the
8971         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
8972
8973         * PropertyGridView.cs: hide the textbox when we get a
8974         SelectedObjectsChanged event.
8975
8976         Fixes bug #79748.
8977
8978 2006-10-26  Chris Toshok  <toshok@ximian.com>
8979
8980         * PropertyGridView.cs: deal with the type converter not supporting
8981         GetStandardValues() or GetStandardValues() returning null, which
8982         is does in the default case.  Fixes #79742.
8983
8984 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
8985
8986         * CheckedListBox.cs: nunit no longer crashes when selecting 
8987         Project/Edit menu option
8988         
8989 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
8990
8991         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
8992         is no menu selected. fixes #79739
8993
8994 2006-10-25  Chris Toshok  <toshok@ximian.com>
8995
8996         * PropertyGridView.cs: factor out the splitter invalidation code
8997         into the SplitterPercent setter, and for kicks implement the
8998         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
8999         amount in either direction.
9000
9001 2006-10-25  Chris Toshok  <toshok@ximian.com>
9002
9003         * PropertyGridView.cs: do some cleanup of the brush used to draw
9004         text - read only fields should be grayed out.  not sure how to do
9005         this with the textbox, though.  but the textbox's should also be
9006         readonly now at least.  Also, hide/show the textbox when resizing
9007         the control.
9008         
9009         * CursorConverter.cs: use System.Reflection when getting the
9010         properties of Cursors, as TypeDescriptor.GetProperties isn't
9011         returning static properties.
9012
9013 2006-10-25  Chris Toshok  <toshok@ximian.com>
9014
9015         * PropertyGridView.cs: factor out the up/down handling, and reuse
9016         it for page up/down.  also add End/Home support.
9017
9018 2006-10-25  Chris Toshok  <toshok@ximian.com>
9019
9020         * PropertyGridView.cs:
9021
9022         - ensure the selected grid item is visible in the scrolled area,
9023         fixes bug #79572.
9024
9025         - fix Keys.Down handling when you're on the last item in the
9026         propertygrid.
9027
9028 2006-10-25  Mike Kestner  <mkestner@novell.com>
9029
9030         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
9031         clicks too.  Fixes #79725.
9032
9033 2006-10-24  Chris Toshok  <toshok@ximian.com>
9034
9035         * PropertyGrid.cs: use property.Converter instead of
9036         TypeDescriptor.GetConverter(property.PropertyType), so we catch
9037         TypeConverters declared on the property as well as on the
9038         PropertyType.  Fixes bug #79678.
9039
9040 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
9041
9042         * MimeIcon.cs, Mime.cs:
9043           Fallback to the default platform handler if no shared mime info
9044           stuff exists (fixes #79693).
9045
9046 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9047         * ContainerControl.cs: Incorrect contains check in ActiveControl 
9048         from previous fix (duh).
9049
9050 2006-10-20  Chris Toshok  <toshok@ximian.com>
9051
9052         * PropertyGridView.cs: the dropdown should be MIN(number of items
9053         in list, 15).  Fixes #79551.
9054
9055 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9056         Fixes #79384, #79394, #79652, #79667
9057         * Application.cs: 
9058         
9059         - Modal windows are now destroyed in the proper order for windows
9060         
9061         * ContainerControl.cs:
9062         
9063         - ActiveControl setter has more conditions on when to return:
9064                 - if we're reselecting the active control, but it actually
9065                 didn't have focus (window hidden or some such), it runs
9066                 - if the active control being selected doesn't actually 
9067                 exist in the container, it returns
9068         
9069         * Form.cs
9070         
9071         - The ShowDialog now gets the current form as the owner when
9072         invoking without parameters, and correctly activates the owner 
9073         when returning
9074         
9075         * MessageBox.cs
9076         
9077         - MessageBox now catches the Escape key to exit
9078
9079 2006-10-20  Chris Toshok  <toshok@ximian.com>
9080
9081         * PropertyGridView.cs: fix a number of issues (bug #78565, and
9082         most of bug #79676):
9083
9084         - you can navigate around the property grid with the arrow keys.
9085
9086         - the dropdown is sized properly when the pg has a vertical
9087         scrollbar.
9088
9089         - fix the indentation for subentries, and properly select the
9090         entire label rect.
9091
9092         - fix the gray bar's drawing (only draw it to the last element,
9093         not for the height of the control.  Also make sure we draw that
9094         last horizontal grid line.
9095
9096         - use the same mechanism the datagrid uses wrt the editing textbox
9097         when scrolling/resizing/etc.  Namely, we hide it first, do the
9098         operation, then show it again (if it's still visible).
9099         
9100         - aggressively remove a lot of unnecessary refreshes (and also
9101         calls to Invalidate(). call more limited variants, and only redraw
9102         what we need.)
9103         
9104         * PropertyGrid.cs:
9105
9106         - when we're populating the merged collection, fill in the UI
9107         parent with either the passed in item, or the category item we
9108         create.
9109
9110         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
9111
9112         * GridItem.cs: drop some fully qualified names.
9113         
9114         * GridEntry.cs: add a "UIParent", which is basically the parent
9115         treenode.
9116
9117         * GridItemCollection.cs: add an IndexOf method.
9118
9119 2006-10-20  Mike Kestner  <mkestner@novell.com>
9120
9121         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
9122         a working win32 NC invalidation mechanism, we can't invalidate
9123         menus.  [Fixes #79705]
9124
9125 2006-10-20  Mike Kestner  <mkestner@novell.com>
9126
9127         * ListBox.cs : don't update the VScrollbar if the list is empty,
9128         just hide it.  [Fixes #79692]
9129
9130 2006-10-20  Jackson Harper  <jackson@ximian.com>
9131
9132         * RichTextBox.cs: Handle some special chars better, and don't skip
9133         the entire group when we encounter a special char that we don't
9134         handle correctly.
9135
9136 2006-10-18  Chris Toshok  <toshok@ximian.com>
9137
9138         * PropertyGridView.cs: address a number of issues from bug #79676,
9139         mostly of the cosmetic variety.
9140
9141         - The highlight rectangle for indented items not extends all the
9142         way to the left.
9143
9144         - Indented items aren't indented so much.
9145
9146         - the dropdown is properly sized width-wise if the pg has a
9147         vertical scrollbar.
9148
9149 2006-10-18  Chris Toshok  <toshok@ximian.com>
9150
9151         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
9152         systray stuff is rather convoluted to begin with.
9153
9154         systray icons are a single window for some reason (that I haven't
9155         figured out yet), and for them, client_window == whole_window.
9156         Given the way the tests are structured elsewhere to determine
9157         which paints are pending (client vs. nc), that situation will
9158         always yield PAINT, not NCPAINT.  So, if we have a pending
9159         nc_expose and no pending expose, remove the hwnd from the paint
9160         queue, and also set nc_expose_pending to false, to keep us from
9161         blocking further expose's adding the hwnd to the paint queue.
9162
9163         phew.  like i said, a rather convoluted change.  Fixes the
9164         notifyicon repaint issues in bug #79645.
9165
9166 2006-10-18  Chris Toshok  <toshok@ximian.com>
9167
9168         * Form.cs: when getting the backcolor of the form, don't get
9169         base.BackColor, as this allows parents to influence the background
9170         color.  This breaks mdi forms.  Instead, if the background_color
9171         is empty, return the default.
9172
9173 2006-10-18  Chris Toshok  <toshok@ximian.com>
9174
9175         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
9176         to being private instead of internal static.
9177
9178         * Control.cs: remove all the stupid ParentWaitingOnRecreation
9179         crap, it wasn't working for more deeply nested controls anyway,
9180         and we already have the is_recreating flag - use that instead.
9181         Before calling DestroyHandle in RecreateHandle, recurse through
9182         the control tree setting it to true.  this returns the recreate
9183         code to much of its original simplicity, while now guaranteeing we
9184         actually recreate everything we're supposed to.  This change gets
9185         fyireporting actually showing mdi children.
9186
9187 2006-10-17  Chris Toshok  <toshok@ximian.com>
9188
9189         * Form.cs: remove some debug spew, and collapse some duplicate
9190         code at the end of SetClientSizeCore.
9191
9192         * XplatUIX11.cs: 
9193         - add some more debug spew here too wrt Destroy handling.
9194         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
9195         in Control's handling of WM_DESTROY.
9196         - Remove the handling of zombie window DestroyNotifies from the
9197         event loop - we don't need it.  Now the only DestroyNotifies we
9198         actually handle are ones generated by X.
9199         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
9200         match gtk's (functioning) handling of this. This keep metacity
9201         from leaving droppings in the form of wm borders with no window
9202         contents all over the place.
9203
9204         * Control.cs:
9205         - add a bunch of debug spew wrt control recreation.
9206         - fix a bug where we weren't tracking Visible properly on
9207         recreated hwnds.
9208         - fixed the WM_PAINT double buffer handling to support re-entrant
9209         calls (yes, i know it's gross, but it's happening to us).
9210
9211 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9212         * ThemeWin32Classic.cs: changed drawing of selected days
9213         to make them look better.
9214
9215 2006-10-16  Chris Toshok  <toshok@ximian.com>
9216
9217         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
9218         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
9219
9220         * XplatUIX11.cs: move away from using hwnd.client_dc and
9221         hwnd.non_client_dc and on to a stack of dc's (and in window's
9222         case, PAINTSTRUCT's), so we can deal with nested Paint calls
9223         without puking or not disposing of Graphics objects.
9224
9225         * XplatUIOSX.cs: same.
9226
9227         * XplatUIWin32.cs: same.
9228
9229 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9230
9231         * FileDialog.cs: Don't call on_directory_changed inside
9232           OnSelectedIndexChanged (it changes the SelectedIndex too).
9233           Instead move it to OnSelectionChangeCommitted.
9234
9235 2006-10-13  Chris Toshok  <toshok@ximian.com>
9236
9237         * XplatUIX11.cs: more Destroy work.  the current code does the
9238         following things, in order:
9239
9240         1. Enumerates all handles of all controls at or below the one
9241         being destroyed, in pre-order.  As it is doing this, it marks the
9242         handles as zombie and clears all references to them.
9243         
9244         2. calls XDestroyWindow on the window passed in.
9245
9246         3. SendMessage's WM_DESTROY to all he handles in the accumulated
9247         list.
9248
9249 2006-10-13  Chris Toshok  <toshok@ximian.com>
9250
9251         * XplatUIX11.cs: set hwnd.zombie to true before calling
9252         SendMessage (WM_DESTROY).  this keeps us from marking the new
9253         window a zombie, and also keeps us from calling sendmessage at
9254         all.
9255
9256 2006-10-13  Jackson Harper  <jackson@ximian.com>
9257
9258         * TextControl.cs: Do not show the caret and selection at the same
9259         time.  Reduces ugliness by 35%.
9260
9261 2006-10-13  Chris Toshok  <toshok@ximian.com>
9262
9263         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
9264         zombie after we do the recursive call, so we actually do call
9265         SendMessage on the children controls.
9266         (GetMessage): if we find a pending paint event for a zombie hwnd,
9267         remove the hwnd from the paint queue, or else it will always be
9268         there (and we'll effectively loop infinitely)
9269
9270 2006-10-13  Mike Kestner  <mkestner@novell.com>
9271
9272         * MenuItem.cs : add Selected format under keynav too.
9273         Fixes #79528.
9274
9275 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9276
9277         * PropertyGrid.cs: Fixed some NRE's and small difference between our
9278         implementation and that of MS.
9279
9280 2006-10-13  Chris Toshok  <toshok@ximian.com>
9281
9282         * Control.cs (OnInvalidated) only futz with the invalid_region if
9283         the control is double buffered.  this fixes the apparent hang in
9284         the ListView unit tests.  Someone needs to make the
9285         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
9286
9287 2006-10-13  Chris Toshok  <toshok@ximian.com>
9288
9289         * PropertyGridView.cs:
9290
9291         - do a little refactoring so that only one place calls
9292         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
9293         else call that.  Also make it Refresh, since there are redraw bugs
9294         otherwise (we should take a look at that...)
9295
9296         - do a little more refactoring work to share the body of code
9297         involved with the drop down.  it was duplicated in the code
9298         dealing with the listbox handling and in the code dealing with the
9299         UITypeEditors.
9300
9301         - add a Capture to the dropdown form's control once it's
9302         displayed, and add a MouseDown handler that checks to make sure
9303         the position is inside the control.  If it's not, close the
9304         dropdown.  This fixes #78190.
9305
9306         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
9307         if the value is different than the initial value.
9308         
9309 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
9310
9311         * Control.cs: see #78650
9312         - Fixed GetNextControl for several cases:
9313                 - Changed FindFlatForward to return 
9314                 correct sibling control when more than one
9315                 control has same TabIndex as the currently 
9316                 focused one.
9317                 - Changed FindFlatBackward to loop children
9318                 from last to first and apply same logic as in
9319                 FindFlatForward
9320                 - Changed FindControlForward to search for
9321                 children when control is not a container
9322                 but has children, or search for siblings if
9323                 control is a container...
9324                 - Changed FindControlBackward   to continue
9325                 searching for child controls when hitting 
9326                 Panel-like parents
9327                 
9328         - Fixed Focus method to update ActiveControl
9329         (FocusTest.FocusSetsActive failure)
9330         
9331         * TabControl.cs:
9332         - Focus rectangle now refreshes when gaining
9333         or losing focus
9334         - Removed grab for Tab key on IsInputKey that 
9335         was keeping tab navigation from working (#78650)
9336
9337 2006-10-13  Chris Toshok  <toshok@ximian.com>
9338
9339         * PropertyGridView.cs:
9340         - Rewrite SetPropertyValue to loop over SelectedGridItem's
9341         SelectedObjects.
9342
9343         - Deal with GridItem.Value == null a few places.
9344
9345         * PropertyGrid.cs: 
9346         - replace the PopulateGridItemCollection with a pair of methods
9347         which compute the intersection of all the properties in the
9348         SelectedObjects array.  Fixes #79615.
9349
9350         - Throw ArgumentException from set_SelectedObjects if there's a
9351         null in the array.
9352
9353         - Add GetTarget method which can be used to traverse up the
9354         GridItem.Parent chain.  It depends on the assumption that
9355         selected_objects for different GridEntries are always in the same
9356         order (a safe assumption).  Use this method and loop over all the
9357         selected objects in the entry when calling RemoveValueChanged and
9358         AddValueChanged.
9359         
9360         * GridEntry.cs: Make this handle multiple selected objects.
9361         .Value returns null if not all the selected objects share the same
9362         value.
9363
9364 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
9365         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
9366           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
9367           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
9368           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
9369           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
9370         add additional functionality.
9371
9372 2006-10-12  Mike Kestner  <mkestner@novell.com>
9373
9374         * ErrorProvider.cs : new ToolTipWindow ctor sig.
9375         * HelpProvider.cs : new ToolTipWindow ctor sig.
9376         * ToolTip.cs : remove ToolTip param from Window sig since it is
9377         not used.
9378         * ToolBar.cs : add tooltip support.  Fixes #79565.
9379
9380 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9381
9382         * ComboBox.cs: move the events in set_SelectedIndex to 
9383         after the call to HighlightIndex in order to avoid 
9384         possible recursion and subsequent problems with the call
9385         to HighlightIndex and include a range check in 
9386         set_HighlightIndex. Fixes #79588
9387         
9388 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9389
9390         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
9391         to ui thread's settings instead of sunday. 
9392         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
9393
9394 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9395
9396         * DateTimePicker.cs
9397         * MonthCalendar.cs
9398         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
9399         and implement missing functionality (selecting different parts 
9400         of the date and edit them individually with the keyboard).
9401         
9402 2006-10-11  Chris Toshok  <toshok@ximian.com>
9403
9404         * Control.cs (OnInvalidated): fix NRE relating to last change.
9405
9406 2006-10-11  Chris Toshok  <toshok@ximian.com>
9407
9408         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
9409         atoms in _NET_WM_STATE here if the window is maximized.  We need
9410         to do this because we're *replacing* the existing _NET_WM_STATE
9411         property, so those atoms will be lost otherwise, and any further
9412         call to GetWindowState will return Normal for a window which is
9413         actually maximized.  Fixes #79338.
9414
9415 2006-10-11  Jackson Harper  <jackson@ximian.com>
9416
9417         * TextControl.cs: Special case for setting selection end to
9418         selection start, we basically kill the anchor.
9419         - some todo comments.
9420
9421 2006-10-11  Chris Toshok  <toshok@ximian.com>
9422
9423         * Control.cs: switch to using an "invalid_region" to track which
9424         parts of the image buffer need updating.  This is more code than
9425         the simple fix from r66532.  That version just attempted to always
9426         fill the entire buffer on redraw, which turns out to be
9427         inefficient when invalidating small rectangles.  This version
9428         simply adds the invalid rectangle to the invalid region.  When we
9429         get any WM_PAINT message we see if it can be filled using the
9430         image buffer, and if it can't (if the paint event's clip rectangle
9431         is visible in the invalid region) we first fill the image buffer.
9432         So, the image buffer is still a cache, we just fill it lazily.
9433
9434         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
9435         need it any longer.
9436
9437 2006-10-11  Chris Toshok  <toshok@ximian.com>
9438
9439         * XplatUIX11.cs (SetWindowPos): we need to update both position as
9440         well as size after calling XMoveResizeWindow.  This keeps us from
9441         ignoring future SetWindowPos calls.  Fixes the disappearing
9442         DateTimePicker in the ToolBarDockExample from bug #72499.
9443
9444 2006-10-11  Chris Toshok  <toshok@ximian.com>
9445
9446         * TextBoxBase.cs: reorder things a bit when it comes to
9447         resizing-causing-recalculation.  we were recalculating the
9448         document when our position was changed, which shouldn't happen.
9449         We only care about size changes.  Clear up some more redundant
9450         recalculation calls while I'm at it.  This makes the toolbar dock
9451         example snappy when you're just dragging toolbars around (since it
9452         causes a relayout whenever you move one.)
9453
9454 2006-10-11  Chris Toshok  <toshok@ximian.com>
9455
9456         * ToolBarButton.cs (get_Rectangle): this only returns
9457         Rectangle.Empty if Visible == false, or Parent == null.
9458         Parent.Visible doesn't matter.
9459
9460 2006-10-10  Chris Toshok  <toshok@ximian.com>
9461
9462         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
9463         by .net 1.1, so switch to an internal method instead.
9464
9465 2006-10-10  Chris Toshok  <toshok@ximian.com>
9466
9467         * Control.cs (WM_PAINT): when a control is double buffered we draw
9468         initially to the ImageBuffer and then copy from there.  But when a
9469         parent control which has child controls is double buffered, the
9470         initial drawing doesn't encompass the entire ClientRectangle of
9471         the parent control, so we end up with uninitialized bits (this is
9472         easily seen by dragging the top toolbar in
9473         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
9474         manually set the ClipRectangle of the paint_event (only the one we
9475         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
9476         of the nastiness in bug #72499.
9477
9478         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
9479         which we use in Control.cs's WM_PAINT handling.
9480
9481 2006-10-10  Jackson Harper  <jackson@ximian.com>
9482
9483         * TextBoxBase.cs: Finish off the autoscrolling stuff.
9484
9485 2006-10-10  Chris Toshok  <toshok@ximian.com>
9486
9487         * Cursor.cs: Apply a slightly different patch to the one suggested
9488         in #79609.
9489
9490 2006-10-10  Jackson Harper  <jackson@ximian.com>
9491
9492         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
9493         not the parent form.
9494         * TextControl.cs: use difference in old line count vs new count to
9495         calculate how many lines were added, this takes into account soft
9496         line breaks properly.
9497
9498 2006-10-10  Chris Toshok  <toshok@ximian.com>
9499
9500         * LinkLabel.cs: don't call MeasureCharacterRanges against a
9501         rectangle located at 0,0 and the size of the text.  Use
9502         ClientRectangle instead.  This fixes rendering of non-left aligned
9503         link labels.
9504
9505 2006-10-10  Jackson Harper  <jackson@ximian.com>
9506
9507         * TextBoxBase.cs: When we set the selection start position the
9508         caret.
9509         * TextControl.cs: Need to update the caret when we decrement it to
9510         zero.
9511         - Make sure that the selection_visible flag gets reset to false if
9512         the selection isn't visible.  Before this you could get it set to
9513         visible by changing the selection start, then changing the end to
9514         equal the start.
9515
9516 2006-10-09  Jackson Harper  <jackson@ximian.com>
9517
9518         * TreeView.cs: Don't update scrollbars when we aren't visible.
9519         * TreeNodeCollection.cs: Only need to update scrollbars if being
9520         added to an expanded visible node or the root node.
9521
9522 2006-10-09  Chris Toshok  <toshok@ximian.com>
9523
9524         * XplatUIX11.cs (SendMessage): fix NRE.
9525
9526 2006-10-09  Jackson Harper  <jackson@ximian.com>
9527
9528         * TextBoxBase.cs: Implement horizontal autoscrolling.
9529         * TextControl.cs: Add a movement types that allows moving forward
9530         and backwards without wrapping.
9531
9532 2006-10-09  Mike Kestner  <mkestner@novell.com>
9533
9534         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
9535         with focus "expansion" of labels.  Fixes #79532 and then some.
9536         * ThemeWin32Classic.cs : add LineLimit to ListView label format
9537         when wrapping.
9538
9539 2006-10-09  Jackson Harper  <jackson@ximian.com>
9540
9541         * TextBoxBase.cs: Set the default max values to MaxValue since
9542         we use the scrollbar for autoscrolling and the default value is
9543         100.  If we don't do this the caret won't keep up with typing
9544         after about 18 characters.
9545         * TextControl.cs: Make sure the selection is offset by the
9546         viewport x.  This fixes selection when using auto scrolling.
9547
9548 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
9549         
9550         * Form.cs: The active control should be selected after the 
9551         OnLoad so that any child control initialization that affects
9552         the selection is done. Fixes #79406
9553
9554 2006-10-06  Chris Toshok  <toshok@ximian.com>
9555
9556         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
9557         to have no evil effects.
9558
9559         - Stop selecting StructureNotifyMask on non-toplevel windows.
9560
9561           The only way children should be resized is by using the SWF api,
9562           and we already send WM_WINDOWPOSCHANGED messages in those cases.
9563           Toplevel windows can be interacted with via the window manager,
9564           and so we keep the input mask there.
9565
9566           The other event StructureNotifyMask gives us (that we care
9567           about) is DestroyNotify.  The code is already structured such
9568           that it assumes we won't be getting a DestroyNotify event for
9569           the window we pass to XDestroyWindow (which is what
9570           StructureNotifyMask is supposed to guarantee.)  So, that code
9571           shouldn't be affected by this either.
9572
9573         - Stop selecting VisibilityChangeMask altogether.
9574
9575           We weren't doing anything with the resulting events anyway.
9576         
9577         This vastly reduces the number of X requests and events we see
9578         when resizing/laying out a large ui.
9579
9580 2006-10-06  Chris Toshok  <toshok@ximian.com>
9581
9582         * ScrollableControl.cs (DisplayRectangle): we need to take into
9583         account the DockPadding regardless of whether or not auto_scroll
9584         == true.  rework this slightly to this effect, and fix bug #79606,
9585         and part of #72499 (you can now see the drag handles and drag
9586         toolbars around).
9587
9588 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
9589
9590         * ListViewItem.cs: Collections of selected and checked items are now
9591         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
9592         we mark the collection "dirty".
9593         * ListView.cs: Marked collections readonly. Modified UpdateSelection
9594         to only clear SelectedItems when a new item is selected and MultiSelect
9595         is enabled. CheckedItems and SelectedItems now subscribe to Changed
9596         event of ListViewItemCollection, and mark its list dirty whenever
9597         that event is fire. This allows us to return selected/checked items 
9598         in the same order as they are in the Items collection. This matches
9599         the MS behavior.
9600
9601 2006-10-06  Chris Toshok  <toshok@ximian.com>
9602
9603         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
9604         right mouse clicks.  Fixes bug #79593.
9605
9606 2006-10-06  Chris Toshok  <toshok@ximian.com>
9607
9608         * Splitter.cs: doh, fix splitters that don't want to cancel the
9609         movement when you drag them.  Also, impose the limits on the
9610         values we send to the SplitterMovingEvent.  Fixes #79598.
9611
9612 2006-10-06  Jackson Harper  <jackson@ximian.com>
9613
9614         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
9615         since we use this for auto scrolling also.
9616
9617 2006-10-05  Chris Toshok  <toshok@ximian.com>
9618
9619         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
9620         beginning to think that most datagrid column types don't need this
9621         method.  Fixes bug #79392.
9622
9623 2006-10-05  Chris Toshok  <toshok@ximian.com>
9624
9625         * DataGrid.cs: move back to a more lazy scheme for creating the
9626         CurrencyManager, so we aren't updating it every time you set
9627         either DataSource or DataMember.  Also, don't call
9628         RecreateDataGridRows if the currency manager hasn't changed.
9629
9630 2006-10-05  Chris Toshok  <toshok@ximian.com>
9631
9632         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
9633         emitted, SelectedIndex should already be updated.  Fixes bug
9634         #78929.
9635
9636 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
9637
9638         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
9639           ToolStripTextBox.cs: Initial commit.
9640         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
9641
9642 2006-10-05  Jackson Harper  <jackson@ximian.com>
9643
9644         * TabControl.cs: We need to invalidate the tab control area when
9645         new ones are added (duh).
9646
9647 2006-10-03  Chris Toshok  <toshok@ximian.com>
9648
9649         * Form.cs (ProcessDialogKey): if the focused control is in this
9650         form and is a button, call its PerformClick method here.  Fixes
9651         #79534.
9652
9653 2006-10-04  Jackson Harper  <jackson@ximian.com>
9654
9655         * TabPage.cs: Ignore setting of Visible, and add an internal
9656         method for setting the controls visibility.  TabPage's Visible
9657         property is a little strange on MS, this seems to make us
9658         compatible, and fixes cases where people set all the tab pages to
9659         visible.
9660         * TabControl.cs: Use the new internal setting on tab pages
9661         visibility.
9662
9663 2006-10-03  Mike Kestner  <mkestner@novell.com>
9664
9665         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
9666
9667 2006-10-03  Mike Kestner  <mkestner@novell.com>
9668
9669         * ListView.cs : use is_visible instead of Visible to check if 
9670         scrollbars should be placed/sized.  Also some max_wrap_width
9671         love for LargeIcon view.  [Fixes #79533]
9672
9673 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
9674
9675         * TextControl.cs :
9676           Make set_TextAlign() do actually update the align. Fixed #78403.
9677
9678 2006-10-03  Chris Toshok  <toshok@ximian.com>
9679
9680         * DataGrid.cs: fix a crash when switching datasources if the
9681         vertical scrollbar is at someplace other than Value = 0.  Also,
9682         reduce the number of recalculation passes we do in SetDataSource
9683         from 2 to 1.
9684
9685 2006-10-03  Jackson Harper  <jackson@ximian.com>
9686
9687         * TextBoxBase.cs: Move the if value the same bail check up, we
9688         don't want to empty the document if it is already empty, this
9689         seems to severly mess up the caret.  TODO: I should probably fix
9690         the empty statement to update teh caret somehow.
9691
9692 2006-10-03  Chris Toshok  <toshok@ximian.com>
9693
9694         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
9695         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
9696         reflection, an internal row type, properties on said type, etc.)
9697         will work with our datagrid.  Fixes #79531.
9698
9699 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9700
9701         * FileDialog.cs: Don't crash if a path is not accessible
9702           (System.UnauthorizedAccessException). Fixes #79569.
9703         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
9704           a ':' too. Return unknown icon for those paths/files.
9705
9706 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
9707
9708         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
9709         GetContainerControl returns null.
9710
9711 2006-10-02  Chris Toshok  <toshok@ximian.com>
9712
9713         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
9714         call to XGetWindowAttributes instead of "handle".  fixes an X
9715         error using notifyicon after the NotifyIconWindow to Form base
9716         class switch.
9717
9718 2006-10-02  Chris Toshok  <toshok@ximian.com>
9719
9720         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
9721         server grab and looping we need to do to get down to the most
9722         deeply nested child window.
9723         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
9724         QueryPointer again after the WarpPointer so we can generate a
9725         proper (fake) MotionNotify event to be enqueued in the destination
9726         window's queue.
9727         (GetCursorPos): call QueryPointer.
9728
9729         Fixes #79556.
9730
9731 2006-10-02  Jackson Harper  <jackson@ximian.com>
9732
9733         * NotifyIcon.cs: Derive the notify icon from a form, so things
9734         like FindForm work on it.
9735         - Swallow the WM_CONTEXTMENU message, since that is generated on
9736         mouse down, and context menu is a mouse up kinda guy.  I believe
9737         the correct fix here is probably to make the notify icon entirely
9738         NC area, but this seems to work fine for anyone not manipulating
9739         WndProc.
9740
9741 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
9744           ToolStripItemCollection.cs, ToolStripLabel.cs,
9745           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
9746           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
9747           Initial implementation.
9748         * TextRenderer.cs: Provide padding to MeasureText.
9749
9750 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
9751
9752         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
9753         of ButtonBaseAccessibleObject. Fix bug #79552.
9754
9755 2006-10-02  Jackson Harper  <jackson@ximian.com>
9756
9757         * MdiWindowManager.cs: When maximizing use the containers client
9758         rect, not it's bounds, so nc area is accounted correctly.
9759         - Use the parent form's size for the menu position, since the
9760         client isn't always the full form size.
9761
9762 2006-10-01  Chris Toshok  <toshok@ximian.com>
9763
9764         * ScrollableControl.cs: make sure neither right_edge or
9765         bottom_edge are < 0, since they're used as LargeChange for the
9766         horiz/vert scrollbars respectively.  Fixes #79539.
9767
9768 2006-10-01  Chris Toshok  <toshok@ximian.com>
9769
9770         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
9771         the xplatuix11 code can cause us to destroy/recreate our handle.
9772
9773         * XplatUIX11.cs
9774         (SystrayAdd):
9775         - this code can be invoked many times for the same Hwnd.  Make
9776           sure we only destroy the client window once (the first time this
9777           method is called).  This fixes bug #79544.
9778         - Remove the call to the improperly bound XSync.  why we had two
9779           bindings to this, I will never know, but this call resulted in
9780           events being discarded from the queue(!).
9781         - correct a misunderstanding of _XEMBED_INFO - the second atom is
9782           not our current state but the state we wish to be in.  So, 0 if
9783           we don't want to be mapped.  Change it to 1.
9784         (SystrayRemove): The XEMBED spec makes mention of the fact that
9785         gtk doesn't support the reparent of client windows away from the
9786         embedder.  Looking at gtksocket-x11.c seems to agree with this.
9787         The only avenue we have for removing systray icons is to destroy
9788         them.  We don't want the handle to go away for good, though, so
9789         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
9790         #79545.
9791         
9792 2006-10-01  Chris Toshok  <toshok@ximian.com>
9793
9794         * Form.cs (WndProc): inline the native_enabled variable usage into
9795         the cases in which it's used.  Fixes #79536.
9796
9797 2006-09-29  Mike Kestner  <mkestner@novell.com>
9798
9799         * ListView.cs : toggle the selection state for ctrl clicks in 
9800         multiselect mode. [Fixes #79417]
9801
9802 2006-09-29  Mike Kestner  <mkestner@novell.com>
9803
9804         * ListView.cs : kill CanMultiSelect and refactor the selection
9805         code to support multiselection in the absence of mod keys. Steal
9806         arrow/home/end keys by overriding InternalPreProcessMessage to
9807         restore regressed keynav behavior.
9808         [Fixes #79416]
9809
9810 2006-09-29  Jackson Harper  <jackson@ximian.com>
9811
9812         * MdiClient.cs: Repaint the titlebars when the active window is
9813         changed.
9814
9815 2006-09-29  Chris Toshok  <toshok@ximian.com>
9816
9817         * Application.cs: when entering a runloop with a modal, make sure
9818         the hwnd is enabled.  Fixes #79480.
9819
9820 2006-09-29  Chris Toshok  <toshok@ximian.com>
9821
9822         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
9823         when ListManager.CanAddRows == false, bump us back one.
9824
9825         * DataGridColumnStyle.cs (ParentReadOnly): remove the
9826         listmanager.CanAddRows check.  This makes ArrayLists uneditable
9827         using a datagrid, which is not right.
9828         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
9829         is an IEditable, but call property_descriptor.SetValue regardless.
9830         fixes #79435.
9831
9832 2006-09-29  Chris Toshok  <toshok@ximian.com>
9833
9834         * DataGridBoolColumn.cs: we need to test equality in the face of
9835         possible null values (as is the case with the default NullValue).
9836         This patch keeps us from crashing in that case.
9837
9838 2006-09-29  Jackson Harper  <jackson@ximian.com>
9839
9840         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
9841         here, since it will get called for every node collection in the
9842         tree. This is now done in the treeview once the sorting is
9843         finished.
9844         * TreeView.cs: Recalculate the visible order, and update the
9845         scrollbars after sorting, set the top nope to the root so that the
9846         recalc actually works.
9847
9848 2006-09-29  Chris Toshok  <toshok@ximian.com>
9849
9850         * LinkLabel.cs: more handling of the default link collection in
9851         the face of LinkArea manipulation.  The default link collection
9852         contains 1 element (start=0,length=-1).  If the user sets LinkArea
9853         to anything and the links collection is the default, clear it.
9854         Then only add the link if its nonempty.  Fixes #79518.
9855
9856 2006-09-29  Chris Toshok  <toshok@ximian.com>
9857
9858         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
9859         piece correctly when we hit a '\n'.  Fixes #79517.
9860
9861 2006-09-29  Chris Toshok  <toshok@ximian.com>
9862
9863         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
9864         change the binding of gdk_init_check to take two IntPtr's, and
9865         pass IntPtr.Zero for both of them.  Fixes #79520.
9866
9867 2006-09-29  Mike Kestner  <mkestner@novell.com>
9868
9869         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
9870         [Fixes #78779]
9871
9872 2006-09-28  Jackson Harper  <jackson@ximian.com>
9873
9874         * XplatUIX11.cs: When translating NC messages make sure we go from
9875         whole window to screen, not client window to screen.
9876         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
9877         method doesn't exist
9878         - Skip over controls that aren't forms when arranging.
9879
9880 2006-09-28  Jackson Harper  <jackson@ximian.com>
9881
9882         * XplatUIWin32.cs: Clip the rect to the parent window.
9883         * XplatUIStructs.cs: Add clipping modes struct.
9884         * InternalWindowManager.cs: New private method that factors title
9885         bar heights in when calculating the pos of an NC mouse message.
9886         - Use SendMessage to force a paint when the form's size is changed
9887         instead of painting the decorations immediately.
9888         - Don't let the NC button click messages get to DefWndProc,
9889         because they will attempt to handle windowing themself, and this
9890         messes up z-order (it will put them in front of the scrollbars).
9891         * XplatUIX11.cs: Make sure that we don't reset window managers if
9892         we already have one (ie the window is an MDI window).
9893
9894 2006-09-28  Chris Toshok  <toshok@ximian.com>
9895
9896         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
9897         menu code really needs going over.
9898
9899 2006-09-27  Chris Toshok  <toshok@ximian.com>
9900
9901         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
9902         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
9903         window is maximizable.  So, we need to make sure that even if we
9904         clear the border/wm frame of those functions, they're still
9905         available (basically, we remove the decoration without removing
9906         the function).  Half the fix for #79338.
9907
9908 2006-09-27  Chris Toshok  <toshok@ximian.com>
9909
9910         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
9911         Fixes bug #79515.
9912
9913 2006-09-27  Chris Toshok  <toshok@ximian.com>
9914
9915         * Splitter.cs: reorder things a bit so that we don't actually
9916         draw/move the splitter until after calling OnSplitterMoving.  This
9917         lets users cancel/disallow the movement by explicitly setting
9918         event.SplitX/SplitY.  Fixes #79372.
9919
9920 2006-09-27  Jackson Harper  <jackson@ximian.com>
9921
9922         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
9923         because it is most likely on a window being destroyed, and that
9924         will give us an X11 error.
9925
9926 2006-09-27  Chris Toshok  <toshok@ximian.com>
9927
9928         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
9929         the dropdown button now toggles between showing and hiding the
9930         dropdown.  Also, get rid of dropdown_form_showing and just use
9931         dropdown_form.Visible.  We still don't do a grab, but I'll leave
9932         that part to someone who has handled Capture-fu before.
9933
9934 2006-09-27  Chris Toshok  <toshok@ximian.com>
9935
9936         * DataGrid.cs: return false if alt isn't pressed when '0' is
9937         pressed.  this keeps the '0' key from being swallowed, and fixes
9938         bug #79350.
9939
9940 2006-09-27  Chris Toshok  <toshok@ximian.com>
9941
9942         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
9943         Calling Refresh (in response to a scrollbar event) screws up the
9944         scrollbar painting.  Fixes bug #78923.
9945
9946 2006-09-27  Chris Toshok  <toshok@ximian.com>
9947
9948         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
9949         then insert into hashtable" blocks threadsafe.
9950
9951 2006-09-27  Chris Toshok  <toshok@ximian.com>
9952
9953         * MessageBox.cs (CreateParams): the styles should be |'ed with our
9954         baseclass's, since otherwise the
9955         ControlBox/MinimizeBox/MaximizeBox assignments above have no
9956         effect.  This gets the close button back in messageboxes.
9957
9958 2006-09-27  Chris Toshok  <toshok@ximian.com>
9959
9960         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
9961         flag, not just != 0.  this makes flags that are actually multiple
9962         bits (like WS_CAPTION) work.  fixes bug #79508.
9963
9964 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
9965
9966         * PageSetupDialog.cs: add support for getting and settings the 
9967         paper size, source and orientation.
9968
9969 2006-09-26  Chris Toshok  <toshok@ximian.com>
9970
9971         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
9972         and caption == "", we need to remove the resize handles as well as
9973         the title bar.
9974
9975         * Control.cs (set_Text): turns out that setting Text on a form
9976         should change the WM styles on the window, since if ControlBox ==
9977         false, the only way to get a window border is to have a non-""
9978         Text property.  check winforms/forms/text.cs for an example.  so,
9979         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
9980         update both window styles and title.  This fixes a lot of dialogs
9981         (including the preferences dialog in MonoCalendar.)
9982
9983 2006-09-26  Chris Toshok  <toshok@ximian.com>
9984
9985         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
9986         control isn't a Form), call Win32ShowWindow to hide the window,
9987         but don't update the control Visible property.  When we reparent
9988         back to a parent control, call SetVisible in order for the
9989         window's visibility to be reinstated.
9990
9991         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
9992         the FosterParent.
9993
9994         * Control.cs (ControlCollection.Remove): remove that value.Hide()
9995         call for good, since it breaks MonoCalendar (and other things I'm
9996         sure.) Also, set all_controls to null *after* the owner calls,
9997         which end up regenerating it.
9998         (ChangeParent): allow new_parent to be == null, passing
9999         IntPtr.Zero down to XplatUI.
10000
10001         this fixes #79294 the right way.
10002
10003 2006-09-26  Mike Kestner  <mkestner@novell.com>
10004
10005         * GridEntry.cs : internal SetParent method.
10006         * PropertyGrid.cs : attach to property changed on the proper
10007         target if we have a hierarchical grid with subobjects. Setup
10008         GridItem.Parent for hierarchical items.
10009         * PropertyGridView.cs : Set value on the correct target for
10010         hierarchical grids. [Fixes #78903]
10011
10012 2006-09-26  Chris Toshok  <toshok@ximian.com>
10013
10014         * Control.cs (ChildNeedsRecreating): this should return true if
10015         either we're being recreated and the child is in our list, or our
10016         parent is waiting for our recreation.
10017
10018 2006-09-26  Chris Toshok  <toshok@ximian.com>
10019
10020         * Control.cs (ControlCollection.Remove): reinstate the
10021         value.Hide() call as suggested in bug #79294.
10022
10023 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
10024
10025         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
10026         coordinates (versus a relative move).
10027
10028 2006-09-26  Chris Toshok  <toshok@ximian.com>
10029
10030         * Control.cs: rework child recreation a little bit.  It turns out
10031         that we race between the DestroyNotify the WM_DESTROY message.  If
10032         the parent gets its DestroyNotify before the child gets the
10033         WM_DESTROY message, the child ends up not recreating (since the
10034         parent finishes its recreation on DestroyNotify, and the child
10035         checks ParentIsRecreating.)
10036
10037         So, instead we store off a list of all the child controls which
10038         need to be recreated when the parent control starts to recreate
10039         itself.  Then, when child controls get their WM_DESTROY message we
10040         check to see if they're in the parent's pending recreation list,
10041         and if so, we recreate.  This removes all dependency on ordering
10042         from the code and fixes the initial MonoCalendar upgrade dialog.
10043         
10044 2006-09-26  Jackson Harper  <jackson@ximian.com>
10045
10046         * TextControl.cs: Use the Line to get the length of the line,
10047         since soft line breaks can change the end line.
10048
10049 2006-09-26  Chris Toshok  <toshok@ximian.com>
10050
10051         * Control.cs (ControlCollection.AddImplicit): don't add the
10052         control again if it's already in one of our lists.  This keeps us
10053         from adding controls over and over again for comboboxes when their
10054         handle gets recreated (as the combobox adds implicit controls in
10055         OnHandleCreated).  Fixes the X11 errors in bug #79480.
10056
10057 2006-09-26  Jackson Harper  <jackson@ximian.com>
10058
10059         * TextControl.cs: When deleting characters make sure that any
10060         orphaned zero lengthed tags get deleted.
10061         - Fix ToString for zero lengthed tags.
10062
10063 2006-09-25  Jackson Harper  <jackson@ximian.com>
10064
10065         * TextControl.cs: When getting a tag at the location there can be
10066         multiple tags at the same spot, these are 0-lengthed tags that
10067         appear when extra formatting has been stuck in a location.  We
10068         need to pull out the last of these 0 lengthed tags.
10069
10070 2006-09-25  Jackson Harper  <jackson@ximian.com>
10071
10072         * TextControl.cs: Fix print out in debug method.
10073         * TextBoxBase.cs: When text is set bail if we are setting to the
10074         previous value.
10075         
10076 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
10077
10078         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
10079           It is now possible to change the selected index in a FontXXXListBox
10080           with the up and down arrow keys from the FontXXXTextBoxes.
10081           Also, send the FontXXXTextBox mouse wheel event to the corresponding
10082           FontXXXListBoxes to match ms.
10083
10084 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
10085
10086         * SystemInformation.cs: Return a clone of the theme's MenuFont because
10087         anyone can dispose it, anytime. All other properties returns enums, 
10088         structs or basic types so they don't need such tricks.
10089
10090 2006-09-22  Jackson Harper  <jackson@ximian.com>
10091
10092         * XplatUI.cs:
10093         * XplatUIWin32.cs:
10094         * Clipboard.cs:
10095         * DataFormats.cs:
10096         * XplatUIOSX.cs:
10097         * XplatUIDriver.cs: Update interface to add a primary selection
10098         flag, so the driver can use the primary selection buffer if
10099         needed.
10100         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
10101
10102         * RichTextBox.cs: We need to supply the data object to paste now
10103         (so we can choose to supply CLIPBOARD or PRIMARY).
10104         * TextBoxBase.cs: Supply data object to paste (see above).
10105         - Middle click uses the primary selection data object.
10106         
10107 2006-09-21  Chris Toshok  <toshok@ximian.com>
10108
10109         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
10110         of SetWMStyles.  It's still a rat's nest and is largely
10111         order-dependent which I dislike immensely.  This also fixes the X
10112         button disappearing from toplevel forms.
10113
10114 2006-09-21  Mike Kestner <mkestner@novell.com>
10115
10116         * ListBox.cs: move Jordi's click/dblclick raising code to the
10117         mouse up handler.
10118
10119 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
10120
10121         * ListBox.cs: Fixes 79450
10122
10123 2006-09-21  Mike Kestner <mkestner@novell.com>
10124
10125         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
10126         to deal with people updating the TreeNodeCollection after the tree
10127         is disposed.  "Fixes" 79330.
10128
10129 2006-09-20  Jackson Harper <jackson@ximian.com>
10130
10131         * TextControl.cs: Push the cursor record onto the undo stack
10132         before the delete action. This fixes 78651.
10133
10134 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
10135
10136         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
10137         CreateParams. Fixes 79329.
10138
10139 2006-09-19  Chris Toshok  <toshok@ximian.com>
10140
10141         * XplatUIX11.cs: a couple of blanket code massage passes to clean
10142         things up a bit.  First, get rid of the NetAtoms array (and the NA
10143         enum), and just embed the atoms as static fields.  Also, add a
10144         couple of functions (StyleSet and ExStyleSet) to clean up all the
10145         bitmask testing of styles.
10146
10147         * X11Structs.cs: remove the NA enum, not needed anymore.
10148         
10149 2006-09-19  Chris Toshok  <toshok@ximian.com>
10150
10151         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
10152         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
10153         added cleanup to get MessageBox titles appearing again, which were
10154         broken by my earlier fix for caption-less/ControlBox-less windows.
10155
10156 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
10157
10158         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
10159           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
10160           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
10161           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
10162           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
10163           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
10164           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
10165           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
10166           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
10167           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
10168           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
10169             Inital import.
10170         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
10171           ToolStripButton.cs: Stubs needed for above.
10172         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
10173
10174 2006-09-15  Chris Toshok  <toshok@ximian.com>
10175
10176         * XplatUIX11.cs:
10177         - make the MessageQueues hashtable Synchronized.
10178         
10179         - SendMessage: if the Hwnd is owned by a different thread, use the
10180         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
10181         thread.  Fixes bug #79201.
10182
10183 2006-09-15  Chris Toshok  <toshok@ximian.com>
10184
10185         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
10186         ControlBox == false, we disallow maximize/minimize/close.  If the
10187         form Caption is "" we also disallow move (and get rid of the Title
10188         decoration).  Unfortunately, regardless of how things are set,
10189         we're stuck with the Title and WM menu.
10190
10191 2006-09-15  Chris Toshok  <toshok@ximian.com>
10192
10193         * Application.cs: add locking around the static message_filters
10194         ArrayList, part of #79196.
10195
10196 2006-09-15  Chris Toshok  <toshok@ximian.com>
10197
10198         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
10199         Form.ControlBox == false, the window has no titlebar nor resize
10200         handles.  fixes bug #79368.
10201
10202 2006-09-15  Chris Toshok  <toshok@ximian.com>
10203
10204         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
10205         >= 0.  Fixes bug #79370.
10206
10207 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
10208         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
10209         * Control.cs:
10210             Add properties: LayoutEngine, Margin, DefaultMargin.
10211             Add method: GetPreferredSize.
10212             Move layout logic from PerformLayout to layout engines. 
10213
10214 2006-09-13  Chris Toshok  <toshok@ximian.com>
10215
10216         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
10217         fix for #79326 broke #78718, so this change addresses that.
10218
10219         - in SendWMDestroyMessages remove the call to
10220         CleanupCachedWindows, since we might be recreating the control and
10221         need to maintain the references to right Hwnd handles.  Also, set
10222         the zombie flag to true for each of the children in the hierarchy
10223         instead of calling hwnd.Dispose.  This will cause GetMessage to
10224         ignore all events for the window except for DestroyNotify.
10225
10226         - In GetMessage, ignore messages except for DestroyNotify for
10227         zombie hwnds.
10228         
10229         * Control.cs: revert the is_recreating fix from the last
10230         ChangeLog.  It's definitely "right", but it breaks switching from
10231         an MDI form to a non-MDI form.  Will need to revisit that.
10232
10233         * Hwnd.cs: add a zombie flag, which means "the
10234         client_window/whole_window handles are invalid, but we're waiting
10235         for the DestroyNotify event to come in for them".  Set the flag to
10236         false explicitly if setting WholeWindow/ClientWindow, and also
10237         when Disposing.
10238         
10239 2006-09-13  Chris Toshok  <toshok@ximian.com>
10240
10241         * XplatUIX11.cs: rework window destruction slightly.
10242
10243         - when destroying the windows associated with a control, we don't
10244         need 2 separate XDestroyWindow calls.  Just the one for the
10245         whole_window (or for client_window if whole_window is somehow
10246         IntPtr.Zero -- can this happen?) is enough.
10247
10248         - reworked SendWMDestroyMessages slightly, so we always dispose
10249         the child control hwnd's after sending the messages.
10250         
10251         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
10252         the two places it was used (one was even using hwnd.Handle and the
10253         other hwnd.client_window.  ugh), adding another call in
10254         SendWMDestroyMessages.  We need this new call because now the
10255         DestroyNotify events in the queue will be ignored for the child
10256         controls (as their hwnd's were disposed, and the window id's
10257         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
10258
10259         - this fixes bug #79326.
10260
10261 2006-09-13  Chris Toshok  <toshok@ximian.com>
10262
10263         * Control.cs: don't always set is_recreating to false at the end
10264         of RecreateHandle, since sometimes we're not done (and won't be
10265         until WndProc handles the WM_DESTROY message).  Also, set
10266         is_recreating to false in the WM_DESTROY handling code.  Part of
10267         the fix for bug #79326.
10268
10269 2006-09-13  Miguel de Icaza  <miguel@novell.com>
10270
10271         * X11DesktopColors.cs: Start the droppage of debugging messages.
10272
10273         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
10274
10275 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
10276
10277         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
10278
10279 2006-09-12  Chris Toshok  <toshok@ximian.com>
10280
10281         * DataGrid.cs (get_ListManager): if the list_manager is null, try
10282         to create it using SetDataSource.  Fixes bug #79151.
10283
10284 2006-09-11  Chris Toshok  <toshok@ximian.com>
10285
10286         * XEventQueue.cs: add a DispatchIdle property.
10287
10288         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
10289         either the queue is null, or the queue has DispatchIdle set to
10290         true.
10291         (DoEvents): set queue.DispatchIdle to false around the
10292         peek/translate/dispatch message loop in this method.  This keeps
10293         Application.Doevents from emitting idle events.  Part of the fix
10294         for #78823.
10295
10296 2006-09-11  Chris Toshok  <toshok@ximian.com>
10297
10298         * DataGrid.cs (set_DataSource): make this work for both the
10299         winforms/datagrid test and ReportBuilder.  It seems as though when
10300         we've created a ListManager (or maybe it's if we have a
10301         BindingContext?), when we set the DataSource it clears the
10302         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
10303         #79333.
10304
10305 2006-09-11  Chris Toshok  <toshok@ximian.com>
10306
10307         * XplatUIX11.cs: deal with queue being null, which happens in all
10308         the Clipboard functions.  Fixes one of the two problems mentioned
10309         in #78612.
10310
10311 2006-09-11  Chris Toshok  <toshok@ximian.com>
10312
10313         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
10314         button on various spots (including outside the menu) works closer
10315         to MS, and doesn't crash.  Fixes #79343.
10316
10317 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
10318
10319         * ListView.cs: Do not initialize item_sorter in init. To match MS,
10320         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
10321         and the internal comparer is set. When a new ListViewItemSorter is set,
10322         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
10323         was specified. No further processing is necessary if SortOrder is set
10324         to it's current value. If Sorting is modified to None, and View is
10325         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
10326         (either custom or our internal ItemComparer) to null, on 1.0 profile
10327         only set item_sorter to null if its our internal IComparer. If Sorting
10328         is modified to Ascending or Descending, then use our internal IComparer
10329         if none is set, and if the current IComparer is our internal one then:
10330         on 2.0 profile always replace it with one for new Sorting, and on 1.0
10331         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
10332         Enum.IsDefined to verify whether a valid View value is specified in
10333         its setter. Automatically sort listview items when listview is
10334         created. In Sort, do nothing if ListView is not yet created, or if
10335         no item_sorter is set (no Sorting was set, Sorting was explicitly set
10336         to None or ListViewItemSorter was set to null). Added Sort overload
10337         taking a bool to indicate whether the ListView should be redrawn when
10338         items are sorted (we use this in ListViewItemCollection to avoid double
10339         redraws). Modified our internal IComparer to take the sort order into
10340         account. In Add and AddRange methods of ListViewItemCollection, also
10341         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
10342         view), but use overload with noredraw option to avoid double redraw.
10343         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
10344         true when View is Tile, and do the same when attempting to set View to
10345         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
10346         for selected/checked indices, as it involves overhead when sorting is
10347         done while these collections are not used all that often. Instead
10348         we'll build the indices on demand. Modified IList implementation of
10349         CheckedIndexCollection to use public methods if object is int.
10350         Modified CheckedListViewItemCollection to hide checked items if
10351         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
10352         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
10353         IList implementation in SelectedIndexCollection to use public methods
10354         if object is int. Modified SelectedListViewItemCollection to hide
10355         selected items if listview is not yet created.
10356         * ListViewItem.cs: CheckedIndices list no longer needs to be
10357         maintained separately (see ListView changes). Also clone font, fixes
10358         test failure.
10359
10360 2006-09-11  Mike Kestner  <mkestner@novell.com>
10361
10362         * ComboBox.cs: if we are updating the contents of the currently
10363         selected index, refresh the control or the textbox selection.
10364         [Fixes #79066]
10365
10366 2006-09-11  Mike Kestner  <mkestner@novell.com>
10367
10368         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
10369         the 'specified' logic has been moved there.  This seems like a bug 
10370         in Control.cs, since our current SetBoundsCore completely ignores 
10371         the specified parameter.  Peter's commit seems to indicate that is 
10372         the way the MS control implementation works.  [Fixes #79325]
10373
10374 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
10375
10376         * XplatUI.cs: Set default_class_name to be composed
10377         of current domain id. This allows MWF to be loaded in multiple
10378         domains on Win32.
10379
10380 2006-09-09  Miguel de Icaza  <miguel@novell.com>
10381
10382         * X11Keyboard.cs: If we are unable to obtain the input method, do
10383         not call CreateXic to create the input context.   Should fix
10384         #78944/79276.
10385
10386 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
10387
10388         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
10389           Simplified gnome support by adding more pinvokes to get the
10390           icon for a file or mime type.
10391
10392 2006-09-08  Jackson Harper  <jackson@ximian.com>
10393
10394         * MenuAPI.cs: Deslect popup context menu items before closing the
10395         window, so that you don't see the previously selected item
10396         selected when you reopen the menu.
10397         * TextControl.cs: Update the cursor position even if we don't have
10398         focus.  This fixes typing in things like the ComboBox.  I'm not
10399         totally sure we should always set the visibility if we don't have
10400         focus, but couldn't find any corner cases where the cursor showed
10401         up when it shouldn't.
10402
10403 2006-09-08  Chris Toshok  <toshok@ximian.com>
10404
10405         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
10406         our arrays are length 256.  & 0xff before indexing.  Fixes the
10407         crash in bug #78077.
10408         
10409 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10410
10411         * ThemeWin32Classic.cs: 
10412         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
10413         is true. Handle that check box too.
10414
10415 2006-09-07  Chris Toshok  <toshok@ximian.com>
10416
10417         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
10418         79244.
10419
10420 2006-09-07  Chris Toshok  <toshok@ximian.com>
10421
10422         * Control.cs: in set_BackColor only do the work if
10423         background_color != value.
10424
10425         * XplatUIX11.cs: move the clearing of invalid areas (both client
10426         and nc) to the same block of code where we set (nc_)expose_pending
10427         to false.  That is, move it from PaintEventEnd to PaintEventStart,
10428         so things that cause invalidates from within OnPaint will trigger
10429         another call to OnPaint.  Fixes bug #79262.
10430
10431 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
10432
10433         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
10434         * FileDialog.cs: Fix typo
10435
10436 2006-09-07  Jackson Harper  <jackson@ximian.com>
10437
10438         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
10439         for tab pages if they have any.
10440
10441 2006-09-06  Mike Kestner  <mkestner@novell.com>
10442
10443         * Splitter.cs: use the "current" rect when finishing drag handle
10444         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
10445
10446 2006-09-06  Mike Kestner  <mkestner@novell.com>
10447
10448         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
10449         support offset splitters. [Fixes #79298]
10450
10451 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
10452
10453         * Mime.cs: Fixed a bug that could override the global mime type
10454           result.
10455
10456 2006-09-05  Jackson Harper  <jackson@ximian.com>
10457
10458         * TabControl.cs: Better calculation method for setting the slider
10459         pos. Prevents crashes on really wide tabs.
10460         - Draw Image on tab pages if an image list is used.
10461
10462 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10463
10464         * MonthCalendar.cs: When Font changes, the Size should be
10465         updated to fit the new font's space requirements.
10466
10467 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
10468
10469         * ListBox.cs: If the items are cleared with Items.Clear set
10470           top_index to 0.
10471
10472 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10473
10474         * MonthCalendar.cs: Handle arrow keys as input keys. Also
10475         fire DateChanged event instead of DateSelected event when
10476         the date was changed by keyboard interaction.
10477
10478 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10479
10480         * DateTimePicker.cs: Handle DateChanged for the associated
10481         month_calendar control, and set month_calendar.Font from 
10482         OnFontChanged method, as well as resize the height of the
10483         control when needed. Make PreferredHeight proportional.
10484
10485 2006-09-01  Chris Toshok  <toshok@ximian.com>
10486
10487         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
10488         properties.
10489
10490         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
10491
10492 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
10493
10494         * FileDialog.cs: Set ClientSize instead of window size, to allow space
10495           for decorations (Fixes #79219)
10496
10497 2006-09-01  Mike Kestner  <mkestner@novell.com>
10498
10499         * ComboBox.cs: first stab at sorting plus some selection handling
10500         fixes to bring us more in line with MS behavior.  Also switches back
10501         to index based selection.  Alternative patches for index-based 
10502         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
10503         and latency@gmx.de on bug 78848.  I assume they were similar to this
10504         code I've had simmering in my tree forever.
10505         [Fixes #78848]
10506
10507 2006-09-01  Chris Toshok  <toshok@ximian.com>
10508
10509         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
10510         when setting list position guard against ending up with a -1 index
10511         (the other part of the fix for #78812).  Should probably make sure
10512         we don't need the analogous fix in the ItemDeleted case.
10513
10514         * DataGrid.cs:
10515         - in SetDataSource, work around the fact that the way
10516         OnBindingContextChanged is invoked will cause us to re-enter this
10517         method.  I'll remove the hack once I investigate
10518         OnBindingContextChanged.
10519
10520         - fix the logic in set_DataSource and set_DataMember (basically
10521         what to do if the other of the two is null.)
10522         
10523         - in OnListManagerItemChanged, we need to take into account the
10524         edit row when deciding whether or not to call RecreateDataGridRows
10525         (part of the fix for #78812).
10526
10527 2006-09-01  Jackson Harper  <jackson@ximian.com>
10528
10529         * Splitter.cs: Don't do anything if there is no control to affect
10530         (prevents us from crashing in weird tet cases).
10531         * TreeView.cs: Bounding box for the mouse movement reverting
10532         focus/selection back to previously selected node.  This matches
10533         MS, and makes the tree a lot more useable.
10534         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
10535         use clipping so they are not drawn.  This fixes when the control
10536         is set to have a transparent background, or if it was over an
10537         image.
10538
10539 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
10540
10541         * MimeIcon.cs: Improved handling for reading default icons when
10542           using gnome (2.16 made it necessary). Check and read svg icons
10543           first, then 48x48 and then 32x32 icons.
10544
10545 2006-08-31  Chris Toshok  <toshok@ximian.com>
10546
10547         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
10548         visible.
10549
10550         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
10551         ProcessKeyPreview.  Fixes part of #77806.
10552
10553         * DataGrid.cs: big patch.
10554
10555         - revert the queueing up of DataSource/DataMember if inside
10556         BeginInit/EndInit calls.  That's not the way the datagrid achieves
10557         its delayed databinding.  Instead, call SetDataSource in
10558         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
10559         #78811.
10560
10561         - Also, it wasn't mentioned in #78811, but the test case exhibits
10562         behavior that was lacking in our datagrid implementation - Columns
10563         that have mapping names that don't exist in the datasource's
10564         properties aren't shown.  Yuck.  To fix this I added the bound
10565         field to the column style, and basically any calculation to figure
10566         out anything about columns uses a loop to find the bound columns.
10567         still need to investigate if I can cache an array of the bound
10568         columns or if the indices must be the same.
10569
10570         - When setting CurrentCell, we no longer abort if the cell being
10571         edited was in the add row.  This fixes the other part of #77806.
10572
10573         - The new code also fixes #78807.
10574         
10575         * ThemeWin32Classic.cs: perpetrate the same disgusting
10576         column.bound field hack, and only render bound fields.
10577
10578 2006-08-31  Chris Toshok  <toshok@ximian.com>
10579
10580         * DataGridColumnStyle.cs: add bound field.  this field is true if
10581         the datasource has a property corresponding to the mapping name.
10582
10583         * DataGridTableStyle.cs: set the bound field on the column styles
10584         depending on whether or not we have a column for that property.
10585
10586 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
10587
10588         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
10589           splitter control (fixes #79228)
10590
10591 2006-08-31  Chris Toshok  <toshok@ximian.com>
10592
10593         * DataGridColumnStyle.cs: we need to delay the assignment of
10594         property descriptor until the last possible moment due to the lazy
10595         databinding stuff in the datagrid.  Also, fix the exceptions
10596         thrown by CheckValidDataSource to match MS.
10597
10598 2006-08-31  Jackson Harper  <jackson@ximian.com>
10599
10600         * Form.cs: When activated select the active control, if there is
10601         no active control, we select the first control.
10602         * XplatUIX11.cs: If there is no focus control when we get a
10603         FocusIn event, find the toplevel form and activate it.  This
10604         occurs when you popup a window, it becomes the focus window, then
10605         you close that window, giving focus back to the main window.
10606
10607 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10608
10609         * MonthCalendar.cs: 
10610         * ThemeWin32Classic.cs: Cache Font in bold style, as well
10611         as StringFormat with Center alignments in MonthCalendar,
10612         instead of creating new ones when drawing the control. 
10613         Also, draw the month name in bold style.
10614
10615 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10616
10617         * Control.cs:
10618           - PerformLayout(): It would seem MS performs the fill even if the 
10619             control is not visible (part of #79218 fix)
10620           - ResetBackColor(): Use the setter to reset the color, to allow
10621             overriders to catch the change.
10622         * Form.cs:
10623           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
10624           - CreateHandle(): dito (part of $79218 fix)
10625           - Don't set an icon if we have a dialog
10626         * ScrollableControl.cs:
10627           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
10628           - ScrollIntoView(): No need to scroll if control is already visible
10629             (resolves fixme and fixes #79218)
10630
10631 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10632
10633         * MonthCalendar.cs: Change proportions in SingleMonthSize
10634         to match the aspect of the original control.
10635
10636 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
10637
10638         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
10639           get updated when they get maximized.
10640
10641 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10642
10643         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
10644
10645 2006-08-29  Chris Toshok  <toshok@ximian.com>
10646
10647         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
10648
10649 2006-08-29  Jackson Harper  <jackson@ximian.com>
10650
10651         * TreeView.cs: Need to track selected node and highlighted node,
10652         they aren't always the same thing, when the mouse is down on a
10653         node it is hilighted, but not selected yet.
10654         - Do the HideSelection stuff right
10655         - Need to focus on rbutton mouse down. And redraw selection when
10656         right click is mouse upped.
10657
10658 2006-08-29  Mike Kestner  <mkestner@novell.com>
10659
10660         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
10661         when SubItems.Count < Columns.Count.  [Fixes #79167]
10662
10663 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
10664
10665         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
10666
10667 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
10668
10669         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
10670           from X. Only send based on ConfigureNotify if we don't have the
10671           correct location in hwnd (if the window manager moved us)
10672
10673 2006-08-28  Mike Kestner  <mkestner@novell.com>
10674
10675         * ListView.cs: remove a TODO. 
10676         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
10677         [Fixes ListView part of #79166]
10678
10679 2006-08-28  Mike Kestner  <mkestner@novell.com>
10680
10681         * ListView.cs: move wheel handler to parent since it is focused
10682         instead of the item_control now.  [Fixes #79177]
10683
10684 2006-08-28  Mike Kestner  <mkestner@novell.com>
10685
10686         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
10687         when the control is focused. [Fixes #79171]
10688
10689 2006-08-28  Mike Kestner  <mkestner@novell.com>
10690
10691         * ListView.cs: size the item and header controls for empty and
10692         unscrollable views.
10693         * ThemeWin32Classic.cs: draw disabled backgrounds.
10694         [Fixes #79187]
10695
10696 2006-08-28  Chris Toshok  <toshok@ximian.com>
10697
10698         * Form.cs: remove unused "active_form" static field.
10699
10700         * Hwnd.cs: lock around accesses to static windows collection.
10701
10702         * Application.cs: lock threads in Exit ().
10703
10704 2006-08-28  Chris Toshok  <toshok@ximian.com>
10705
10706         * NativeWindow.cs: lock around accesses to window_collection.
10707         
10708 2006-08-28  Chris Toshok  <toshok@ximian.com>
10709
10710         * Control.cs: err, fix this the right way, by locking on controls
10711         when using it.  not by making it synchronized.
10712
10713 2006-08-28  Chris Toshok  <toshok@ximian.com>
10714
10715         * Control.cs: make the static "controls" field synchronized, as it
10716         gets updated from multiple threads.
10717
10718 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10719
10720         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
10721           Prevent other threads from exiting when calling thread sets quit state.
10722         * XEventQueue.cs: Added PostQuitState property
10723
10724 2006-08-27  Chris Toshok  <toshok@ximian.com>
10725
10726         * AsyncMethodData.cs: add a slot for the window handle.
10727
10728         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
10729         window (the destination control's window, not the foster window).
10730
10731         * Control.cs (BeginInvokeInternal): store the window's handle in
10732         the AsyncMethodData.
10733         
10734
10735 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10736
10737         * XplatUIX11.cs:
10738           - PostQuitMessage: Removed resetting S.D display handle, we might have
10739             another loop started after calling PostQuitMessage (Fixes #79119)
10740           - Created destructor to reset S.D handle
10741
10742 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
10743
10744         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
10745
10746 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10747
10748         * TextControl.cs (Insert): Update the caret position even if we don't
10749           have a handle yet, just don't call the driver in that case.
10750         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
10751           to the end of the new selection text (Fixes #79184)
10752
10753 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10754
10755         * Form.cs (Activate): Only activate if the handle is created)
10756         * Control.c:
10757           - Mark window as invisible when it's disposed
10758           - Check if window handle is created when setting window visible, 
10759             instead of relying just on the is_created variable
10760           - Check if object is disposed when creating the control (Fixes #79155)
10761
10762 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10763
10764         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
10765           when allowing layout again. Otherwise we re-generate the anchoring 
10766           distance to the border again and actually alter what the user wanted
10767           This is ugly, it'd be better if we used DisplayRectangle instead of
10768           ClientRectangle for Control.UpdateDistances, but that causes us to
10769           have other problems (initial anchoring positons would be wrong)
10770           (Fixes #78835)
10771
10772 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10773
10774         * Control.cs:
10775           - The size and location setters shouldn't go directly to 
10776             SetBoundsCore, but to SetBounds, which triggers layout on the
10777             parent, then calls SetBoundsCore. (Related to fix for #78835)
10778           - SetBounds: Moved actual location update code into this function
10779             from SetBoundsCore, to match MS. Added call to PerformLayout if
10780             we have a parent (to trigger resizing of anchored parents if the 
10781             child size has changed (see testcase for #78835) 
10782         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
10783           new control code
10784         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
10785
10786 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10787
10788         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
10789           System.Drawing when a toplevel window gets closed; there might
10790           be other toplevel windows belonging to the same app (Fixes #78052)
10791
10792 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
10793
10794         * FileDialog.cs: After reading FileDialog settings from mwf_config
10795           use Desktop prefix only if a real folder doesn't exist anymore.
10796         * FontDialog.cs: Added char sets.
10797           It is now possible to select the font, size or style with the
10798           textboxes.
10799
10800 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
10801
10802         * PrintPreviewDialog.cs: Use assembly name constants.
10803
10804 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10805
10806         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
10807           scrollbar from whacking it's buttons)
10808
10809 2006-08-24  Chris Toshok  <toshok@ximian.com>
10810
10811         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
10812         in this patch (aggregating setting Left/Top/Width/Height to
10813         setting Bounds on the scrollbars), but the crux of the fix is in
10814         Recalculate, where we scroll by the remaining scroll_position if
10815         we're hiding a scrollbar.  The 2*$5 reward in the comment is
10816         serious.
10817
10818 2006-08-24  Jackson Harper  <jackson@ximian.com>
10819
10820         * MdiClient.cs:
10821         * MdiWindowManager.cs: If the form is made a non-mdi window we
10822         need to remove the form closed event so that closing forms works
10823         correctly.
10824
10825 2006-08-24  Jackson Harper  <jackson@ximian.com>
10826
10827         * Control.cs: Make IsRecreating internal so that the driver can
10828         check it
10829         - Temporarily remove the Hide when controls are removed, its
10830         making a whole bunch of things not work because visibility isn't
10831         getting reset elsewhere correctly
10832         * Form.cs: Need to do a full handle recreation when the mdi parent
10833         is set.
10834         * XplatUIX11.cs: If we are recreating handles don't dispose the
10835         HWNDs.  What was happening is the handles were being recreated in
10836         SendWMDestroyMessages, but then flow continued on in that method
10837         and destroyed the new handles.
10838
10839 2006-08-23  Jackson Harper  <jackson@ximian.com>
10840
10841         * Form.cs: MdiClient is always at the back of the bus
10842         * Control.cs: When the order of items in the collection is changed
10843         we need to reset the all_controls array
10844         - do the same sorta setup thats done when adding a control when a
10845         control is set on the collection.
10846
10847 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10848
10849         * TextBoxBase.cs (get_Text): Return an empty array if our document
10850           is empty (fixes #79052)
10851
10852 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10853
10854         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
10855           on WM_SYSCHAR messages (fixes #79053)
10856
10857 2006-08-23  Chris Toshok  <toshok@ximian.com>
10858
10859         * DataGrid.cs: fix flickering when scrolling vertically.
10860
10861 2006-08-23  Chris Toshok  <toshok@ximian.com>
10862
10863         * DataGrid.cs (EndEdit): only invalidate the row header when we
10864         need to.
10865
10866 2006-08-23  Chris Toshok  <toshok@ximian.com>
10867
10868         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
10869         methods.  fixes the flicker when scrolling around.
10870
10871 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10872
10873         * FileDialog.cs: Making sure the control is created before we get a 
10874           chance to use it with BeginInvoke (Fixes #79096)
10875
10876 2006-08-23  Chris Toshok  <toshok@ximian.com>
10877
10878         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
10879         width to use when painting the rows.
10880
10881 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10882
10883         * TextBoxBase.cs:
10884           - Throw ArgumentException if a negative value is passed to SelectionLength
10885           - Update the selection end if start is moved. end needs to be always
10886             after start. (Fixes #79095)
10887           - Track selection length; MS keeps the selection length even if start
10888             is changed; reset on all other operations affection selection
10889
10890 2006-08-22  Jackson Harper  <jackson@ximian.com>
10891
10892         * TreeView.cs: Make sure both scrollbars get displayed and sized
10893         correctly when the other bar is visible.
10894         - Use the original clip rectangle for checking if the area between
10895         the two scrollbars is visible, not the viewport adjusted clipping
10896         rectangle.
10897
10898 2006-08-22  Jackson Harper  <jackson@ximian.com>
10899
10900         * Binding.cs: We don't use IsBinding because it requires the
10901         control to be created, which really shouldn't be necessary just to
10902         set a property on the control.
10903
10904 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10905
10906         * ComboBox.cs: Some CB.ObjectCollection methods must throw
10907         ArgumentNullReferenceException when the argument is null.
10908
10909 2006-08-21  Jackson Harper  <jackson@ximian.com>
10910
10911         * Timer.cs: Track the thread that the timer is started in (NOT
10912         CREATED), this way messages for it will only be triggered on its
10913         queue.
10914         * XEventQueue.cs: Track the timers here, this makes timers per
10915         thread, like MS.
10916         * XplatUIX11.cs: The timers are moved to the XEventQueue.
10917
10918 2006-08-19  Chris Toshok  <toshok@ximian.com>
10919
10920         * XplatUIX11.cs: after further communication with pdb, we get the
10921         best of both worlds.  SetZOrder working for un-Mapped windows, and
10922         no X errors for un-mapped windows.
10923
10924 2006-08-19  Chris Toshok  <toshok@ximian.com>
10925
10926         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
10927         as it was causing pdn toolbars to not have the correct stacking.
10928
10929 2006-08-18  Mike Kestner  <mkestner@novell.com> 
10930
10931         * ListView.cs : guard against negative ClientArea.Width in scrollbar
10932         calculation.  Not sure why control should ever be setting a negative
10933         width though.  Fixes #78931.
10934
10935 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10936
10937         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
10938         null items in ObjectCollection class.
10939         * ListBox.cs.: Likewise.
10940
10941 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
10942
10943         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
10944           as the base method in ThemeWin32Classic should work fine.
10945           Fixed bug #78607.
10946
10947 2006-08-18  Jackson Harper  <jackson@ximian.com>
10948
10949         * Binding.cs: When validating if the value entered doesn't convert
10950         properly reset to the old value.
10951         * RadioButton.cs: Don't fire click when we get focus.
10952
10953 2006-08-18  Jackson Harper  <jackson@ximian.com>
10954
10955         * FileDialog.cs: Paint the selection on the directory combobox the
10956         same way as on MS. 
10957
10958 2006-08-17  Jackson Harper  <jackson@ximian.com>
10959
10960         * ErrorProvider.cs: Don't allow the error control to be selected.
10961         * Control.cs: Don't send the SetFocus messages, the control
10962         activation will do this, and if we do it blindly here validation
10963         does not work.
10964
10965 2006-08-17  Jackson Harper  <jackson@ximian.com>
10966
10967         * Control.cs:
10968         * ContainerControl.cs: Make validation events fire in the correct
10969         order.  TODO: For some reason the first validation event is not
10970         getting fired.
10971
10972 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10973
10974         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
10975
10976 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10977
10978         * ComboBox.cs : implement scroll wheel support for popped-down
10979         state. Fixes #78945. 
10980
10981 2006-08-17  Jackson Harper  <jackson@ximian.com>
10982
10983         * TreeView.cs: Specify treeview actions (old patch that didn't get
10984         committed for some reason).
10985         - Don't let the mouse wheel scroll us too far.  Just want to make
10986         the bottom node visible, not scroll it all the ways to the top.
10987
10988 2006-08-17  Jackson Harper  <jackson@ximian.com>
10989
10990         * XplatUIX11.cs: Mouse wheel events go to the focused window.
10991
10992 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10993
10994         * ComboBox.cs : don't do mouseover selection in simple mode.
10995
10996 2006-08-16  Jackson Harper  <jackson@ximian.com>
10997
10998         * Form.cs: Fire the closing events for all the mdi child windows
10999         when a window is closed.  If the cancel args are set to true, the
11000         main window still gets the event fired, but it doesn't not close.
11001         * MdiWindowManager.cs: Do this closing cleanup in a Closed
11002         handler, instead of when the button is clicked, so cancelling the
11003         close works correctly.
11004         * ComboBox.cs: Send the mouse down to the scrollbar.
11005
11006 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11007
11008         * ListBox.cs: When passing 'null' to SelectedItem,
11009         set SelectedIndex to -1, to unselect items. This is the
11010         observed behaviour in .Net.
11011
11012 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
11013
11014         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
11015           MS flags saying there won't be any. (fixes #78800)
11016         * Control.cs (HandleClick): Made virtual
11017
11018 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
11019
11020         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
11021           cultures. Fixed bug #78399.
11022
11023 2006-08-16  Jackson Harper  <jackson@ximian.com>
11024
11025         * Form.cs: Use the MdiClients MdiChildren property to access
11026         MdiChildren instead of creating the array from the child controls.
11027         * MdiClient.cs: Maintain a separate array of the mdi children, so
11028         that insertion order is maintained when the Z-order is changed.
11029
11030 2006-08-16  Mike Kestner  <mkestner@novell.com> 
11031
11032         * ListView.cs : add an ItemComparer and default to it for sorting.
11033         Fixes #79076, but sorting needs a complete overhaul to be compat with
11034         MS.
11035
11036 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11037
11038         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
11039
11040 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11041
11042         * Hwnd.cs (Mapped): Properly traverse the tree
11043
11044 2006-08-15  Chris Toshok  <toshok@ximian.com>
11045
11046         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
11047         pass manager.Current.GetType() to ParseData.  It has to be the
11048         property type.  So, hold off doing the ParseData until we're in
11049         SetPropertyValue where we know the type.  This fixes the crash in
11050         #78821 but the textbox is still empty.
11051
11052 2006-08-15  Chris Toshok  <toshok@ximian.com>
11053
11054         * DataGrid.cs:
11055         - when we're scrolling, only call Edit() again if the
11056         current cell is still unobscured. Fixes bug #78927.
11057         - when handling mousedown on a cell, ensure the cell is visible
11058         before calling Edit.
11059         - remove the properties from DataGridRow, and remove the
11060         DataGridParentRow class altogether.
11061         
11062
11063 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11064
11065         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
11066           fire OnTextChanged by ourselves. There's no point calling base,
11067           we don't set the base value anywhere else. Fixes #78773.
11068
11069 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11070
11071         * ListBox.cs: Call CollectionChanged when modifying
11072         an item from Items indexer, to update the actual items
11073         in the list box.
11074
11075 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11076
11077         * PrintDialog.cs: Small fixes for focus and a pair of checks,
11078         to match .Net behaviour.
11079
11080 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11081
11082         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
11083
11084 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11085
11086         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
11087
11088 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11089
11090         * MessageBox.cs: Prevent potential NRE exception.
11091         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
11092
11093 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11094
11095         * MessageBox.cs: Calculate the owner of a messagebox, also make
11096           it topmost. Fixes #78753
11097
11098 2006-08-14  Chris Toshok  <toshok@ximian.com>
11099
11100         * XplatUIX11.cs: A couple of fixes so that metacity will let us
11101         programmatically move windows.  first, set the PPosition hint as
11102         well as the USPosition hint.  Second include some code from pdb
11103         that sets the window type to NORMAL when we set the transient for
11104         hint.  This is because, in the absence of a window type, metacity
11105         thinks any window with TransientFor set is a dialog, and refuses
11106         to let us move it programmatically.  fascists.
11107
11108 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11109
11110         * XplatUIX11.cs: When setting normal hints, take into consideration
11111           an different hints previously set so we don't delete them (fixes #78866)
11112
11113 2006-08-12  Chris Toshok  <toshok@ximian.com>
11114
11115         * ToolBarButton.cs: make Layout return a boolean, if something to
11116         do with the button's layout changed.
11117
11118         * ToolBar.cs:
11119         - add another parameter to Redraw, @force, which all existing
11120           calls set to true.
11121         - make the Layout function return a boolean which is true if the
11122           layout has actually changed.  Redraw now uses this (and @force)
11123           to determine when to invalidate.  At present the only place
11124           where @force can be false is the call from OnResize, when
11125           background_image == null.  So, resizing a toolbar when the
11126           layout doesn't change results in no drawing.
11127
11128 2006-08-12  Chris Toshok  <toshok@ximian.com>
11129
11130         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
11131         the VScrollBar and HScrollbar reversed.  oops.
11132
11133         * DataGrid.cs: fix the logic that assigns sizes to the implicit
11134         scrollbars.  we were assigning them twice (once in
11135         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
11136         therefore causing two scrollbar resizes (and redraws?) to happen
11137         per grid resize.
11138
11139 2006-08-12  Chris Toshok  <toshok@ximian.com>
11140
11141         * ToolBarButton.cs: redraw the entire button if the theme tells us
11142         to.
11143
11144         * Theme.cs: add ToolBarInvalidateEntireButton.
11145
11146         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
11147         buttons, just the border.
11148
11149         * ThemeNice.cs: redraw the entire toolbar button since we need to
11150         draw the highlight image.
11151
11152         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
11153         we need to redraw the entire button (not just the border).
11154
11155 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11156
11157         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
11158           for vertical bars. Fixes the mismatches shown by #78513
11159
11160 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
11161
11162         * FileDialog.cs: If a saved/remembered path doesn't exist
11163           anymore, fall back to "Desktop".
11164
11165 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11166
11167         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
11168           parent. It's apparently legal to not have one
11169         * XplatUIX11.cs:
11170           - SetZOrder: Don't try to set Z-Order on an unmapped window
11171           - CreateWindow: 0,0 are legal coordinates for a window. don't move
11172             it unless the coordinates are negative
11173
11174 2006-08-10  Mike Kestner  <mkestner@novell.com>
11175
11176         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
11177         when setting to null per msdn docs.  Fixes #78854.
11178
11179 2006-08-10  Chris Toshok  <toshok@ximian.com>
11180
11181         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
11182         flickering by setting a clip rectangle on the Graphics when we
11183         need to redraw just a particular menuitem.  Also, rename "OnClick"
11184         to "OnMouseDown" to reflect what it actually is.
11185         
11186         * Form.cs: track the OnMouseDown change.
11187
11188 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
11189
11190         * CommonDialog.cs: Properly inherit the CreateParams from the form
11191           and only change what we need. Fixes #78865
11192
11193 2006-08-10  Chris Toshok  <toshok@ximian.com>
11194
11195         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
11196         flickering in flat mode (and most of the flickering in general) by
11197         only invalidating the button border (and not the entire rectangle)
11198         when the state changes.  A couple of cases still flicker:
11199         ToggleButtons, and the dropdown arrow case when the user mouse
11200         ups.
11201
11202 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
11203
11204         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
11205           for german keyboards. Numlock state shouldn't affect the behaviour
11206           of the Del key. Fixes bug #78291.
11207
11208 2006-08-10  Chris Toshok  <toshok@ximian.com>
11209
11210         * ListControl.cs: remove the items.Clear line from BindDataItems,
11211         as this is the first thing done by both subclasses in their
11212         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
11213         passed -1, refresh the list.  This gets databinding working when
11214         the datasource is set on the list before the datasource is
11215         populated (as in wf-apps/ReportBuilder.)
11216
11217         * ComboBox.cs: remove the argument to BindDataItems.  This call
11218         should really go away, and be initiated by the ListControl code.
11219
11220         * ListBox.cs: same.
11221
11222 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11223
11224         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
11225           if no data is in the document when the control is displayed
11226
11227 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
11228
11229         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
11230           yes (fixes #78806)
11231         * TextControl.cs: 
11232           - PositionCaret: Allow positioning of caret but don't call methods 
11233             requiring a handle if the window isn't created yet
11234           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
11235           - owner_HandleCreated: Don't position the caret, just update it's 
11236             location. User might have already set a different position
11237
11238 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11239
11240         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
11241           windows. Screws up the returned coordinates for child windows. 
11242           Fixes #78825. I'm hoping this doesn't break something, since the
11243           code was explicitly put in 8 months ago, but no bug was attached.
11244           Menus still seem to work properly.
11245
11246 2006-08-08  Chris Toshok  <toshok@ximian.com>
11247
11248         * DataGrid.cs: make BeginInit/EndInit actually do what they're
11249         supposed to do - delay data binding until the EndInit call.  Also,
11250         make the table style collection's CollectionChangeAction.Refresh
11251         work properly.
11252
11253         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
11254         (with action = Refresh) when a consituent table's MappingName is
11255         changed.
11256
11257 2006-08-08  Chris Toshok  <toshok@ximian.com>
11258
11259         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
11260         Invalidate, since changing the text can change the size of the all
11261         toolbar buttons.
11262
11263 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11264
11265         * Form.cs (AddOwnedForm): Still need to add the form to our listif
11266           we don't have it yet
11267
11268 2006-08-08  Chris Toshok  <toshok@ximian.com>
11269
11270         * PrintControllerWithStatusDialog.cs: don't .Close() the status
11271         dialog, as this causes X errors later on, since we actually
11272         destroy the window.  Instead, .Hide() it.
11273
11274 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11275
11276         * ComboBox.cs: Added focus reflection for popup window
11277         * XplatUIX11.cs: 
11278           - Removed transient setting for non-app windows for now, not sure it
11279             was needed
11280           - Fixed logic checking if we have captions when deciding 
11281             override_redirect, WS_CAPTION is two bits and a 0 check was not
11282             sufficient
11283           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
11284             complicated
11285         * Form.cs: 
11286           - AddOwnedForm: Don't just add the form to the list, call the property
11287             to ensure the driver is informed about the ownership as well
11288           - CreateHandle: Set the TopMost status in the driver if we have an owner
11289         * XplatUI.cs: Fixed debug statement
11290
11291 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
11292         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11293           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
11294           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
11295           TrackBarRenderer.cs: Make constructor private.
11296         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
11297         * ProfessionalColorTable.cs: Make properties virtual.
11298
11299 2006-08-06  Duncan Mak  <duncan@novell.com>
11300
11301         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
11302         is not changing.
11303
11304 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11305         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11306           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
11307           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
11308           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
11309           Initial import of new 2.0 classes.
11310
11311 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11312         * Application.cs: Add 2.0 VisualStyles properties.
11313
11314 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11315         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11316           XplatUIX11.cs: Create property to allow access to existing private
11317           variable "themes_enabled"
11318
11319 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11320
11321         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
11322         file size, as otherwise our class libraries fail using windows. Fixes
11323         bug #78759.
11324
11325 2006-08-04  Jackson Harper  <jackson@ximian.com>
11326
11327         * Form.cs:
11328         * XplatUIX11.cs: Move the toolwindow window manager creation into
11329         the X11 driver, this way on win32 we can let windows create/handle
11330         the toolwindows.
11331
11332 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11333
11334         * PrintDialog.cs: Remove some redundant checks, add some others,
11335         clean some code, and move the focus to the text boxes when the
11336         values are incorrect.
11337
11338 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
11339
11340         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
11341
11342 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11343
11344         * NumericUpDown.cs: Setting the Minimum and Maximum is now
11345           handled correctly. Fixes bug #79001.
11346
11347 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11348
11349         * PrintDialog.cs: The "Copies" numeric up down must have
11350         set the Minimum property to 1; only if the value is bigger
11351         than 1, activate "Collate" check box. This is the behaviour of .Net.
11352         Also modify the Document elements only if it is not null.
11353
11354 2006-08-03  Jackson Harper  <jackson@ximian.com>
11355
11356         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
11357         length. (We have a larger array then actual node count).
11358                 
11359 2006-08-03  Jackson Harper  <jackson@ximian.com>
11360
11361         * ComboBox.cs: Don't show selection by default.
11362         - The SelectAll isn't needed here, since the focus code should do
11363         that
11364         - DDL style lists to manual selection drawing, so when they
11365         get/lose focus they have to invalidate.
11366
11367 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
11368
11369         * TextBoxBase.cs: Don't always show all selections by default.
11370
11371 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
11372         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
11373           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
11374           Fixed various typos.
11375
11376 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11377
11378         * Control.cs: Removing the controls in a ControlCollection with
11379           Clear now hides the controls as expected. Fixes bug #78804. 
11380
11381 2006-08-03  Jackson Harper  <jackson@ximian.com>
11382
11383         * Control.cs: Revert previous focus patch, it breaks reflector.
11384
11385 2006-08-03  Jackson Harper  <jackson@ximian.com>
11386
11387         * ComboBox.cs: Cleanup selection and focus with the combobox.
11388         This also eliminates some duplicated keyboard code, since now
11389         everything is handled by the main class.
11390         - Make list selection work on mouse up instead of down, to match
11391         MS.
11392
11393 2006-08-02  Jackson Harper  <jackson@ximian.com>
11394
11395         * Control.cs: Setting focus needs to go through the whole
11396         selection mechanism.
11397
11398 2006-08-02  Chris Toshok  <toshok@ximian.com>
11399
11400         * PrintPreviewDialog.cs: change MinimumSize to use
11401         base.MinimumSize so it works.
11402
11403 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
11404
11405         * TextControl.cs:
11406           - UpdateCaret: Added sanity check in case caret isn't defined yet
11407           - Line.Delete: Now updating selection and caret markers if we're
11408             transfering a node (Properly fixes #78323)
11409           - SetSelectionEnd: Added sanity check
11410         * TextBoxBase.cs: Removed broken attempt to fix #78323
11411
11412 2006-08-01  Chris Toshok  <toshok@ximian.com>
11413
11414         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
11415         Close() call is handled in Form, not here.
11416
11417 2006-08-01  Chris Toshok  <toshok@ximian.com>
11418
11419         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
11420         layout/rendering.
11421
11422         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
11423         for sizes < 100% zoom.  The code now aggressively attempts to keep
11424         from calling document.Print (), and tries not to use the scaling
11425         g.DrawImage whenever possible (it still does if you scale to >
11426         100%, since usually that involves huge images).
11427
11428         * PrintPreviewControl.cs: hook up the close button.
11429
11430 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
11431         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
11432           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
11433           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
11434           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
11435           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
11436           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
11437           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
11438           Removed [Serializable] for 2.0 Event Handlers.
11439
11440 2006-07-31  Jackson Harper  <jackson@ximian.com>
11441
11442         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
11443         * TextControl.cs: Uncomment out the body of this method.
11444
11445 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
11446
11447         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
11448           standard cursors.
11449
11450 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11451
11452         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
11453           that embed TextBox and need selections visible even if textbox is not
11454           focused to enforce that behaviour.
11455         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
11456           selection drawing
11457
11458 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11459
11460         * TextControl.cs:
11461           - Added new SetSelectionStart/SetSelectionEnd overloads
11462           - Fixed viewport width assignment to be accurate
11463           - Adjusted alignment line shift calculations to allow cursor on right
11464             aligned lines to be always visible at the right border (like MS)
11465         * TextBoxBase.cs:
11466           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
11467           - TextBoxBase_SizeChanged: recalculating canvas on size changes
11468           - CalculateScrollBars: Use ViewPort size instead of window size, to
11469             properly consider space occupied by the border and scrollbars 
11470             (Fixes #78661)
11471           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
11472             calculations; no longer leaves artifacts
11473           - CaretMoved: Adjusted window scrolling to match MS and fixed several
11474             calculation bugs (Still missing right/center align calculations)
11475
11476 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
11477
11478         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
11479           use of both scroll rect and clip rect, as they do the same.
11480
11481 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11482
11483         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
11484           in the event handler (fixes #78912)
11485
11486 2006-07-31  Chris Toshok  <toshok@ximian.com>
11487
11488         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
11489         grid.ListManager.Count, since grid.ListManager might be null.
11490         This of course begs the question "why are we drawing rows for a
11491         grid with no list manager (and therefor no rows)?"  Fixes the
11492         crash in bug #78929.
11493
11494 2006-07-31  Chris Toshok  <toshok@ximian.com>
11495
11496         * RelatedPropertyManager.cs: Don't always chain up to the parent
11497         ctor.  instead, call SetDataSource if the parent's position is !=
11498         -1.  Fixes the crash in #78822.
11499
11500 2006-07-31  Chris Toshok  <toshok@ximian.com>
11501
11502         * DataGrid.cs (get_ListManager): use field instead of property
11503         accessors for datasource and datamember.
11504         (RowsCount): make internal again.
11505         (OnMouseDown): end edits before resizing columns/rows.
11506         (OnMouseUp): restart edits after resizing columns/rows.
11507
11508 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
11509
11510         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
11511           This fixes the situation where the last set cursor is displayed
11512           whenever the mouse is over scrollbars.
11513
11514 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11515
11516         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
11517         Document properties, as well as initial values.
11518
11519 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
11520
11521         * XplatUIWin32.cs (SetBorderStyle): Setting both border
11522           and ClientEdge results in a 3-pixel border, which is
11523           wrong.
11524
11525 2006-07-28  Jackson Harper  <jackson@ximian.com>
11526
11527         * TreeNodeCollection.cs: Fix the clear method.
11528         - Fix the Shrink also
11529
11530 2006-07-27  Jackson Harper  <jackson@ximian.com>
11531
11532         * TreeView.cs: Make sure the visible order is computed when we
11533         attempt to size the scrollbars (for trees that mess with the
11534         scrolling when they shouldn't.
11535         - Make sure to give the scrollbars valid values.
11536
11537 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11538
11539         * XplatUIX11.cs: Move motion compression code to where it
11540           has less performance impact
11541
11542 2006-07-26  Jackson Harper  <jackson@ximian.com>
11543
11544         * UpDownBase.cs: When the control is selected make the child
11545         controls non selectable, so that a click on them won't do a
11546         focus/unfocus cycle.
11547         - Don't give focus to the text box when the spinner is selected.
11548         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
11549
11550 2006-07-26  Chris Toshok  <toshok@ximian.com>
11551
11552         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
11553         satisfied with this solution.  If the bitmaps are small, we should
11554         just cache them in the PrintPreviewDialog and draw them here.
11555         Also, the layout is broken for the 2-up and 3-up cases.
11556
11557         * Theme.cs: add PrintPReviewControlPaint.
11558
11559         * PrintPreviewDialog.cs: first pass implementation.
11560
11561         * PrintPreviewControl.cs: first pass implementation.  No
11562         scrollbars yet.
11563
11564         * PrintDialog.cs: only validate fields if that particular portion
11565         of the UI is enabled.  Also, set the document's controller to a
11566         PrintControllerWithStatusDialog wrapping the document's print
11567         controller.
11568
11569         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
11570         bring up a SaveFileDialog (i hope we don't want to match the
11571         behavior of the crappy windows file entry) and set the
11572         PrinterSettings.PrintFileName accordingly.
11573
11574 2006-07-26  Jackson Harper  <jackson@ximian.com>
11575
11576         * ContainerControl.cs: Add a field that disables auto selecting
11577         the next control in a container when the container is activated.
11578         * UpDownBase.cs: Don't select the text box when the up down is
11579         selected.
11580
11581 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11582
11583         * XEventQueue.cs: Added methods for peeking (used for compression
11584           of successive events)
11585         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
11586           mouse move events (fixes #78732)
11587
11588 2006-07-25  Jackson Harper  <jackson@ximian.com>
11589
11590         * UpDownBase.cs: Use an internal class for the textbox so that we
11591         can control focus.  the updown control should always have focus,
11592         if either the text area or the buttons are clicked.
11593         - Send the key messages to the textbox, since it never actually
11594         has focus
11595         - Activate and decativate the textbox caret.
11596
11597 2006-07-24  Jackson Harper  <jackson@ximian.com>
11598
11599         * Control.cs: Use the directed select when selecting a control,
11600         this way the container controls override will get called and the
11601         whole ActiveControl chain will get triggered.  TODO: probably need
11602         to make sure this gets done everywhere instead of the old
11603         Select(Control).
11604         * ContainerControl.cs: Implement the directed Select method to
11605         find and activate the correct child control.    
11606         
11607 2006-07-22  Mike Kestner  <mkestner@novell.com>
11608
11609         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
11610         menu handling code so that clicks without a grab work too.
11611         [Fixes #78914]
11612
11613 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
11614
11615         * FileDialog.cs: Enable the BackButton when dirstack has one element.
11616           Added some small optimizations.
11617
11618 2006-07-21  Matt Hargett  <matt@use.net>
11619
11620         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
11621
11622 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
11623
11624         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
11625           tests pass and match MS in some strange border cases.
11626
11627 2006-07-21  Chris Toshok  <toshok@ximian.com>
11628
11629         * ThemeWin32Classic.cs: handle drawing of the relation links and
11630         parent row buttons.
11631
11632         * Theme.cs: change args to DataGridPaintParentRow.
11633
11634         * DataGrid.cs: Don't use controls for the relation links and
11635         parent buttons, so we have to handle all their interactions in
11636         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
11637         when we're navigating through child tables, so we can reinstate
11638         selection, expanded state, current cell, etc.
11639
11640 2006-07-20  Chris Toshok  <toshok@ximian.com>
11641
11642         * ToolBar.cs: When we redraw a button, for whatever reason,
11643         there's no reason to redraw the entire toolbar.  Also, don't call
11644         Control.Refresh from within Redraw, as it's much heavier than
11645         Invalidate (which is really what we want).
11646
11647 2006-07-20  Chris Toshok  <toshok@ximian.com>
11648
11649         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
11650         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
11651         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
11652         traces from within a debug IBindingList datasource
11653         (in mono/winforms/datagrid) for *days*, I've finally gotten things
11654         to work in a similar fashion.
11655
11656 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11657
11658         * ListBox.cs: Don't call Sort () when setting 
11659         the Sorted property to false (avoid an unnecessary sort).
11660
11661 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11662
11663         * ListControl.cs: DataSource should throw an ArgumentException
11664         instead of a normal exception when the argument is not of the 
11665         correct type.
11666
11667 2006-07-20  Mike Kestner  <mkestner@novell.com>
11668
11669         * Control.cs: add InternalPreProcessMessage to allow us to steal
11670         key events before MWF gets its paws on them.  Adapted from a
11671         suggestion by eno.
11672         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
11673         up/down/left/right navigation. Override the new internal control
11674         method to steal the events since they never make it to WndProc.
11675         * ToolBarButton.cs: don't worry about pushed when setting hilight
11676         since the drawing code prefers pushed to hilight. Invalidate on 
11677         Hilight changes. Fixes #78547 and #78525.
11678
11679 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11680
11681         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
11682           the canvas size. Fixes #78868
11683
11684 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
11685
11686         * Splitter.cs: Track requested split position until first layout
11687           is performed. Fixes #78871
11688
11689 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11690
11691         * Application.cs: Removed code that forces 1.x for the version
11692           number if the version started with 0. Not sure why that code was
11693           there and I couldn't find any bugs that indicated we needed it.
11694           Fixes #78869
11695
11696 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
11697
11698         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
11699           ResetDefaults(), just write some output to the console until it's
11700           implemented. Fixes bug #78907 for now. Eliminated two warnings.
11701
11702 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
11703
11704         * PropertyGridView.cs: set StartPosition of drop down forms
11705         so they appear in correct initial spot.  Fixes #78190.
11706
11707 2006-07-19  Mike Kestner  <mkestner@novell.com>
11708
11709         * ThemeWin32Classic.cs: use parent background color when drawing
11710         flat toolbars.  Restructure the conditionals to make sure non-flat
11711         non-Divider toolbars are filled too.  Fixes #78837.
11712
11713 2006-07-19  Mike Kestner  <mkestner@novell.com>
11714
11715         * ListBox.cs: Sort on collection changes even if the handle
11716         isn't created yet.  Fixes #78813.
11717
11718 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11719
11720         * ListControl.cs: DisplayMember should never be null,
11721         and now we assign String.Empty when null is passed to it (this
11722         is the .Net way).
11723
11724 2006-07-17  Mike Kestner  <mkestner@novell.com>
11725
11726         * ListViewItem.cs: restructure Font and subitem Font handling 
11727         to hold a specific font and refer back to owner on null.
11728         Fixes #78761.
11729
11730 2006-07-17  Mike Kestner  <mkestner@novell.com>
11731
11732         * ToolBar.cs: bandaid for side-effect of previous patch which was
11733         discarding explicit heights for non-AutoSize toolbars.  Need to
11734         extend my format tester to deal with AutoSize=false. Fixes #78864.
11735
11736 2006-07-15  Jackson Harper  <jackson@ximian.com>
11737
11738         * LabelEditTextBox.cs:
11739         * TreeView.cs: Use a new LabelEdit class for node editing, this
11740         class automatically 'closes' itself when it gets the enter key or
11741         loses focus.
11742         - Use the client rectangle when setting the trees scrollbars, so
11743         border style is taken into account.
11744         
11745 2006-07-14  Jackson Harper  <jackson@ximian.com>
11746
11747         * TreeNode.cs:
11748         * TreeView.cs: Make the editing work similar to MSs, firing the
11749         events correctly and ending edits correctly.
11750
11751 2006-07-14  Mike Kestner  <mkestner@novell.com>
11752
11753         * ToolBarButton.cs:
11754         * ToolBar.cs: layout restructuring and redraw enhancements to support
11755         formatting changes gracefully, like setting TextAlign, ImageList, 
11756         ButtonSize, and Appearance.  Handles explicit button sizing quirks
11757         of the MS controls.  Things like flat toolbars ignoring button size
11758         but becoming constant sized at the largest button's size.  Normal
11759         toolbars with an image set cannot be shrunk smaller than the image,
11760         but text can be clipped/ignored.
11761         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
11762         is zero.  Seems like DrawString should be smart enough to not put
11763         anything on screen though. Also trim labels and ellipsize at the char
11764         boundary, not word.
11765         Fixes #78711 and #78483.
11766
11767 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11768
11769         * FolderBrowserDialog.cs: Disable "New Folder" button and
11770           "New Folder" contextmenu menuitem if a folder like "My Computer"
11771           is selected.
11772
11773 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11774
11775         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
11776         * FolderBrowserDialog.cs:
11777           - Use MWFConfig to store and read size and position settings
11778           - Added code to create a new folder (button or context menu).
11779             Use TreeView labeledit to change the name of the new folder.
11780
11781 2006-07-14  Jackson Harper  <jackson@ximian.com>
11782
11783         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
11784         when the tree is scrolled we end editing.
11785
11786 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11787
11788         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
11789           Down arrows
11790
11791 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
11792
11793         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
11794         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
11795         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
11796         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
11797         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
11798         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
11799         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
11800         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
11801         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
11802         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
11803         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
11804         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
11805         ListViewItemSelectionChangedEventHandler.cs,
11806         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
11807         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
11808         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
11809         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
11810         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
11811         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
11812         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
11813         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
11814         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
11815         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
11816         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
11817         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
11818         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
11819         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
11820         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
11821         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
11822         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
11823         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
11824         WebBrowserNavigatingEventHandler.cs, 
11825         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
11826
11827 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
11828
11829         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
11830         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
11831         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
11832         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
11833         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
11834         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
11835         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
11836         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
11837         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
11838         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
11839         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
11840         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
11841         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
11842         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
11843         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
11844         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
11845         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
11846         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
11847         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
11848         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
11849         ListViewItemStates.cs, MaskFormat.cs: Added
11850
11851 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
11852
11853         * PropertyGridView.cs: Fix keyboard navigation of drop down.
11854         Patch from eno for bug 78558.
11855         
11856 2006-07-13  Jackson Harper  <jackson@ximian.com>
11857
11858         * TreeView.cs: When an edit is finished make sure that the
11859         selected node is visible.
11860         - When setting the top/bottom use the scrollbars is_visible, so
11861         everything will be set correctly even if the tree isn't visible
11862         yet.
11863
11864 2006-07-13  Jackson Harper  <jackson@ximian.com>
11865
11866         * ComboBox.cs: Revert the item->index part of my previous patch.
11867         * TreeView.cs: Use LostFocus instead of Leave for detecting when
11868         the edit box has lost focus (duh).
11869         - Just make the edit box not visible when we get return, that will
11870         take the focus, which will call EndEdit
11871         * TreeNode.cs When we start editing, notify the treeview.
11872
11873 2006-07-12  Jackson Harper  <jackson@ximian.com>
11874
11875         * ComboBox.cs: Clear out old items before setting the item list.
11876         This prevents databound controls from having their items added
11877         twice.
11878         - Switch the combobox to use indices whereever possible instead of
11879         using Item's.  This allows usto navigate through lists that have
11880         more then one item with the same string value (ie a, b, b, a).
11881         - Scroll the listboxes scrollbar when a non visible item is
11882         highlighted
11883         - Allow keypress to cycle through all the possible values. For
11884         example if you have b1, b2, b3 and hold down the B key all the
11885         values will be cycled through.
11886         
11887 2006-07-12  Jackson Harper  <jackson@ximian.com>
11888
11889         * TextBoxBase.cs:
11890         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
11891         this using the internal methods.
11892         * Control.cs: Add OnGotFocusInternal.  A new method that allows
11893         controls to "override" OnGotFocus and change focus behavior if
11894         needed.
11895         - Same thing for LostFocus
11896         * ComboBox.cs: Pass off focus to the text control properly.
11897
11898 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
11899
11900         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
11901         * FolderBrowserDialog.cs: Almost a complete rewrite.
11902           - Better support for Environment.Specialfolders
11903           - Added support for MWFVFS
11904           - Made setting SelectedPath work
11905
11906 2006-07-12  Jackson Harper  <jackson@ximian.com>
11907
11908         * Control.cs: Optimze getting all the controls.
11909
11910 2006-07-11  Jackson Harper  <jackson@ximian.com>
11911
11912         * ContainerControl.cs: Override SETFOCUS in the container control,
11913         so that it is not selected on mouse click.
11914
11915 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
11916
11917         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
11918           Hopefully we will have a better way once all of focus is complete.
11919
11920 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
11921
11922         * ThemeWin32Classic.cs: Commented out some debug code and fixed
11923           a compile error with csc.
11924
11925 2006-07-11  Jackson Harper  <jackson@ximian.com>
11926
11927         * Control.cs: When hiding a control only select the next control
11928         if the current control was focused.
11929         - Don't handle enter/leave when setting/killing focus, this is
11930         done by the container control.
11931         - Remove is_selected, it's not needed anymore.
11932         - Add utility methods for selecting a child control, and for
11933         firing the Enter/Leave events.
11934         * ContainerControl.cs: When a control is activated fire the
11935         enter/leave events.
11936         - Don't wrap when processing the tab key, so that focus can be
11937         moved outside of the container.
11938         - Use the correct active control
11939
11940 2006-07-11  Jackson Harper  <jackson@ximian.com>
11941
11942         * ComboBox.cs: Remove some debug code that was blinding me.
11943         * UpDownBase.cs: These controls actually aren't implicit, they are
11944         visible to the user.
11945
11946 2006-07-10  Chris Toshok  <toshok@ximian.com>
11947
11948         * DataGrid.cs: move back to the is_adding boolean field.  god i
11949         hate this is_editing/is_adding/is_changing stuff.
11950
11951 2006-07-10  Chris Toshok  <toshok@ximian.com>
11952
11953         * DataGridTableStyle.cs: just check if the property type is bool.
11954         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
11955         Don't use CanRenderType.
11956
11957         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
11958         if our text == NullText.  Remove CanRenderType.
11959
11960         * DataGridBoolColumn.cs: nuke CanRenderType.
11961
11962         * DataGrid.cs: reenable some code to end the current edit inside
11963         of set_CurrentCell.  This fixes the other 1.1.16 regression.
11964         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
11965         Also, remove the visible_row_count arg from CalcRowHeaders, since
11966         we don't need to worry about the actual height of the area.
11967
11968 2006-07-10  Chris Toshok  <toshok@ximian.com>
11969
11970         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
11971         mode, just return.
11972
11973         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
11974         the real sense of the IsInEditOrNavigateMode property (true =
11975         navigate, false = edit).  Also, update OnKeyPress to reflect this.
11976
11977         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
11978         column style exists, we still need to set its property descriptor
11979         to match up with our list manager.
11980
11981 2006-07-10  Chris Toshok  <toshok@ximian.com>
11982
11983         * ThemeWin32Classic.cs: implement the new row/header painting
11984         approach.  The parent row painting will likely go away and
11985         replaced with label controls, but the rest seems to work ok (and
11986         efficiently).
11987
11988         * Theme.cs: change the way we draw datagrid rows.  we don't draw
11989         the row headers as a block now.  Instead we draw them in the
11990         normal draw-row loop.  Add some calls for drawing parent rows and
11991         relation rows.
11992
11993         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
11994         a default table style.  Set the defaults from ThemeEngine.Current,
11995         not SystemColors.  Fix lots of misc issues with property setters.
11996
11997         * DataGrid.cs: move loads of style information out of this class
11998         as it's being duplicated with DataGridTableStyle.  keep track of a
11999         special DataGridTableStyle for the properties we used to mirror
12000         here.  Switch all the style properties to access this table style
12001         instead of instance fields of this class.  Also add a internal
12002         class to represent parent rows (more needs to be stored here, like
12003         the selection state from the parent table, as well as the
12004         expansion state.)  Also, for datasources with relations, do the
12005         right thing for collapse/expand, and add support for the
12006         navigation/parent row buttons.
12007
12008         Lastly, fix the crash in the 1.1.16 build.
12009
12010         * GridTableStylesCollection.cs: make the explicit interface
12011         implementations call the class's methods as opposed to duplicating
12012         them.
12013
12014         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
12015         0 so the text doesn't jump around when we move the cursor.
12016
12017 2006-07-10  Jackson Harper  <jackson@ximian.com>
12018
12019         * TextBoxBase.cs:
12020         * ListBox.cs: Match MS's ToString (this makes debugging focus
12021         stuff infinitely easier).
12022
12023 2006-07-10  Jackson Harper  <jackson@ximian.com>
12024
12025         * Control.cs (SelectNextControl): When checking the control's
12026         parent use this instead of ctrl.parent so that null can be passed
12027         to SelectNextControl. (I have unit tests for this).
12028         - Remove unused var.
12029
12030 2006-07-10  Chris Toshok  <toshok@ximian.com>
12031
12032         * CurrencyManager.cs: correct one regression, the removal of the
12033         finalType field.  Also, add a MonoTODO on CanAddRows, implement
12034         Refresh() correctly, and fix some event emission in
12035         ListChangedHandler.
12036
12037 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
12038
12039         * FileDialog.cs: Don't use brackets for new folders if they exist
12040           under *nix. Instead use -(number of existing folders +1).
12041
12042 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
12043
12044         * FileDialog.cs:
12045           - Fixed really nasty bug #78771
12046           - Don't block the whole GUI when reading directories with a lot of
12047             entries. Use an other thread instead and call BeginInvoke to
12048             update the ListView in MWFFileView
12049
12050 2006-07-07  Chris Toshok  <toshok@ximian.com>
12051
12052         * Control.cs (Dispose): release any Capture when disposing.
12053
12054 2006-07-07  Chris Toshok  <toshok@ximian.com>
12055
12056         * LinkLabel.cs (Select): if we chain up to the parent, set
12057         focused_index to -1 so we'll search for the first available link
12058         the next time the user tabs into us.  Also, if the direction is
12059         backward and focused_index == -1, start the search from the last
12060         element.
12061
12062 2006-07-07  Chris Toshok  <toshok@ximian.com>
12063
12064         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
12065         is beyond the end of the text, don't do anything.
12066         (CreateLinkPieces): set our ControlStyles.Selectable based on
12067         whether or not we have any links.
12068         (Link.Invalidate): use a loop instead of foreach.
12069         (Link.set_Start): null out owner.sorted_links so it'll be
12070         recreated by CreateLinkPieces.
12071
12072 2006-07-06  Chris Toshok  <toshok@ximian.com>
12073
12074         * LinkLabel.cs: revert the SetStyle change.
12075
12076 2006-07-06  Chris Toshok  <toshok@ximian.com>
12077
12078         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
12079         (OnEnableChanged): s/Refresh/Invalidate
12080         (OnGotFocus): if we have a focused index already, refocus it (so
12081         if we mouse out/in to the window it'll focus the right link).
12082         (OnKeyDown): move the tab handling out of here.
12083         (OnLostFocus): don't set focused_index to -1, so we can refocus it
12084         when we lose focus.
12085         (OnMouseDown): don't Capture here - Control handles it.  Also,
12086         focus the active link.
12087         (OnMouseUp): don't deal with Capture.
12088         (OnPaintBackgroundInternal): remove.
12089         (OnTextAlignChanged): CreateLinkPieces before calling the
12090         superclass's method.
12091         (OnTextChanged): call CreateLinkPieces before calling superclass's
12092         method.
12093         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
12094         move around.
12095         (Select): implement this, moving the selection between different
12096         links, and call parent.SelectNextControl if we don't have another
12097         link to focus in the given direction.
12098         (CreateLinkPieces): call Invalidate instead of Refresh.
12099         
12100 2006-07-06  Chris Toshok  <toshok@ximian.com>
12101
12102         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
12103         new LinkLabel internals.
12104
12105         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
12106         over pieces looking for active/focused/etc links.  also, deal with
12107         runs of text (and links) with embedded \n's in them, and use
12108         MeasureCharacterRanges instead of MeasureString to figure out the
12109         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
12110         two-step.
12111
12112 2006-07-04  Jackson Harper  <jackson@ximian.com>
12113
12114         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
12115         XKB or key auto repeat, do it manually.  Without key auto repeat,
12116         when a key is held down we get key press, key release, key press,
12117         key release, ... with auto repeat we get key press, key press, key
12118         press ..., and then a release when the key is actually released.
12119
12120 2006-07-03  Jackson Harper  <jackson@ximian.com>
12121
12122         * TabControl.cs:
12123         * ThemeWin32Classic.cs: Tabs do not obey normal background color
12124         rules, they are always control color regardless of the background
12125         color.
12126
12127 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
12128
12129         * FileDialog.cs: Added internal class MWFConfig.
12130           Removed Registry support and replaced it with support for the new
12131           MWFConfig class. See MWFConfig comments for more information.
12132
12133 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
12134
12135         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
12136           rectangle. Added some patches from eno from bug #78490 and fixed
12137           the arrow position for small up and down CPDrawScrollButtons.
12138
12139 2006-06-30  Jackson Harper  <jackson@ximian.com>
12140
12141         * InternalWindowManager.cs: Remove some debug code.
12142         * Form.cs: When an MdiParent is set to null, the window is
12143         "detatched" and becomes a normal window.
12144         * MdiClient.cs: Don't bring the new child form to the front until
12145         it is activated (setting it as active does this), this makes the
12146         previously active forms titlebar get redrawn as inactive.
12147
12148 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
12149
12150         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
12151           with later controls
12152
12153 2006-06-29  Mike Kestner  <mkestner@novell.com>
12154
12155         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
12156         arrow in keynav state.  Fixes #78682.
12157
12158 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12159
12160         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
12161           order (fixes #78393)
12162
12163 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
12164
12165         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
12166           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
12167           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
12168           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
12169           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
12170           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
12171           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
12172           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
12173           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
12174           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
12175           enumerations (FlagsAttribute, SerializableAttribute, added/removed
12176           values)
12177
12178 2006-06-28  Mike Kestner  <mkestner@novell.com>
12179
12180         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
12181
12182 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12183
12184         * PropertyGrid.cs,
12185           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
12186           item lines from other area (It also makes BackColor consistent and
12187           compatible with .NET). Fixed bug #78564.
12188
12189 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
12190
12191         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
12192         Patch from Eno for #78555.
12193
12194 2006-06-27  Chris Toshok  <toshok@ximian.com>
12195
12196         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
12197
12198         * DataGridColumnStyle.cs: same.
12199
12200         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
12201         
12202         * DataGridDrawingLogic.cs: nuke.
12203
12204 2006-06-27  Chris Toshok  <toshok@ximian.com>
12205
12206         * DataGridTableStyle.cs: clean up the constructors, and build the
12207         list of child relations for this table.  I have no idea if this is
12208         where we should be doing it (it probably isn't), but since we're
12209         already iterating over the properties..
12210
12211         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
12212         struct and array for keeping track of row information, similar to
12213         what's shown in a hack on
12214         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
12215
12216         * Theme.cs: be consistent about the naming of DataGrid methods,
12217         prefering ColumnWidths and RowHeights over columnsWidths and
12218         RowsHeights.
12219
12220         * ThemeWin32Classic.cs: same, and also add support for variable
12221         sized rows (and the +/- expansion icons for related rows).
12222
12223 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12224
12225         * TextBoxBase.cs: Applied Eno's patch from #78660
12226
12227 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12228
12229         * Form.cs (ScaleCore): We don't want to scale our form if it's
12230           state is minimized or maximized, but we still need to scale our
12231           child windows. Also, added try/finally block to ensure layout
12232           gets reset (Fixes #78697)
12233
12234 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12235
12236         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
12237
12238 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12239
12240         * Form.cs: Fixed c+p error and added check to resize form if minimum
12241           size is bigger than current size (Fixes #78709)
12242
12243 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
12244
12245         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
12246
12247 2006-06-26  Mike Kestner  <mkestner@novell.com>
12248
12249         * ComboBox.cs: only do Keypress handling in the combo when there  
12250         are items in the collection. Fixes #78710.
12251
12252 2006-06-26  Chris Toshok  <toshok@ximian.com>
12253
12254         * Binding.cs: make this work bi-directionally.  also, clear up
12255         other mixups between Push/Pull Data (e.g. we're supposed to pull
12256         data when validating).
12257
12258         * BindingManagerBase.cs: trim some fully qualified collection
12259         types.
12260
12261         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
12262
12263 2006-06-23  Chris Toshok  <toshok@ximian.com>
12264
12265         * PropertyManager.cs: It appears (according to the unit tests)
12266         that PropertyManager doesn't use
12267         PropertyDescriptor.AddValueChanged to track propery value changes
12268         in its datasource, but uses the same scheme as Binding, where it
12269         looks for a <Property>Changed event and binds to it.
12270
12271         Also, according to the docs, IsSuspended always returns false for
12272         a property manager with a non-null datasource.
12273
12274 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
12275
12276         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
12277           need to update the actual DialogResult. (Fixes #78613)
12278
12279 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
12280
12281         * Form.cs (ShowDialog): Release any captures before running the
12282           new message pump (fixes #78680)
12283
12284 2006-06-22  Mike Kestner  <mkestner@novell.com>
12285
12286         * ListView.cs: Layout column widths properly in details mode even 
12287         if HeaderStyle.None is set.  Fixes #78691.
12288
12289 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
12290
12291         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
12292
12293 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
12294
12295         * Control.cs (ContainsFocus): Using new driver method to get focused
12296           window, instead of trying to use internal tracking var, which can
12297           recursion issues (Fixes #78685)
12298         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
12299           XplatUIWin32.cs: Added GetFocus method to return focused window
12300
12301 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12302
12303         * ColorDialog.cs: when the mouse button is pressed inside the color
12304         matrix, don't let the cursor move out of it until the button is
12305         released, which is the behavior on windows. Changed 'colours' by
12306         'colors' to use the same word consistently.
12307
12308 2006-06-21  Chris Toshok  <toshok@ximian.com>
12309
12310         * DataGrid.cs: add in some basic navigation stuff (navigating to a
12311         child relation and back, using a stack).  Also, remove
12312         GetDataSource and the code that calls it - it's not needed.  Also,
12313         track CurrencyManager.ListName's removal.
12314
12315 2006-06-21  Chris Toshok  <toshok@ximian.com>
12316
12317         * CurrencyManager.cs: push some of the original type checking from
12318         BindingContext.CreateBindingManager to here, and remove some of
12319         the finalType stuff.  Need more tests to make sure I've got the
12320         ListName part right, and we might need more in SetDataSource.
12321
12322         * PropertyManager.cs: add a ctor that takes just the datasource,
12323         and no property name.  Make SetDataSource work with a null
12324         property_name, and make Current return the data_source if the
12325         property descriptor is null.  this makes 'string foo = "hi";
12326         BindingContext[foo].Current' return "hi" as it should.
12327
12328         * RelatedCurrencyManager.cs: make this code more generic - there's
12329         no reason the parent manager has to be CurrencyManager, and
12330         there's no reason to pass the DataRelation.  It suffices to use a
12331         BindingManagerBase and PropetyDescriptor.
12332
12333         * RelatedPropertyManager.cs: make a similar change here.
12334         
12335         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
12336         flower I knew it could be.
12337
12338 2006-06-20  Chris Toshok  <toshok@ximian.com>
12339
12340         * PropertyManager.cs: the PropertyChangedHandler is invoked when
12341         data in the source has changed and we need to update the control,
12342         so s/PullData/PushData.
12343
12344         * CurrencyManager.cs: Refresh is meant to update the control from
12345         data in the datasource.  So, s/PullData/PushData.
12346
12347         * BindingContext.cs: add more ugliness (we weren't handling the
12348         case where data_source = DataTable and data_member = column_name).
12349
12350         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
12351         from the perspective of the datasource.  PullData pulls from the
12352         control, PushData pushes to the control.
12353
12354 2006-06-20  Chris Toshok  <toshok@ximian.com>
12355
12356         * BindingContext.cs: rewrite the CreateBindingManager code to
12357         handle navigation paths more or less properly.  This could
12358         definitely stand some more work, in particular to push the
12359         recursion up to the toplevel.  But that relies on fixes in other
12360         places (System.Data comes to mind).
12361
12362         Also, move to a flat hashtable (and encode the twolevel nature of
12363         the dictionary into the hash key).  This lets us implement the
12364         IEnumerable.GetEnumerator method.
12365
12366         * RelatedCurrencyManager.cs: new class.  Update our view based on
12367         our relation and our parent CurrencyManager's position.
12368
12369         * CurrencyManager.cs: split out some logic from the ctor into
12370         SetView, so it can be called from the new RelatedCurrencyManager
12371         subclass.
12372
12373         * RelatedPropertyManager.cs: new class.  Update our datasource
12374         based on the position of our parent CurrencyManager.
12375
12376         * PropertyManager.cs: split out some logic from the ctor into
12377         SetDataSource, so it can be called from the new RelatedDataSource
12378         subclass.  Also, make the Current getter return the value
12379         of the PropertyDescriptor, not the data_source.
12380
12381         * Binding.cs: no need to duplicate the string splitting code here.
12382
12383 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12384
12385         * Control.cs:
12386           - set_Enabled: OnEnabledChanged is not called if the inherited state 
12387             of the control is not altered, even though  we might be changing the
12388             internal state of the control (#78458)
12389           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
12390             OnEnabledChanged, to allow easy altering of any child window state
12391           - OnEnabledChanged: Added code to enable/disable driver window state
12392           - OnParentEnabledChanged: Instead of firing the event, call 
12393             OnEnabledChanged, which will fire the event and also a) set driver
12394             window state and pass the enabled state to any grandchildren (#78458)
12395
12396 2006-06-19  Jackson Harper  <jackson@ximian.com>
12397
12398         * InternalWindowManager.cs: We don't set the cursor explicitly
12399         thats done via the response to NCHITTESTs.
12400         - Don't need to adjust for titlebar heights anymore, the
12401         coordinates are coming in the correct coordinates now (see peters
12402         last patch).
12403
12404
12405 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12406
12407         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
12408           being translated relative to whole window, instead of client window.
12409           That caused broken offsets on mouseclick (and caused gas for our
12410           InternalWindowManager)
12411
12412 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12413
12414         * TextControl.cs:
12415           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
12416           - Undo(): Added replay of cursor move on DeleteChars action; added
12417             calling Undo() again if a recorded cursor move is invalid (to
12418             ensure that some action is performed on Undo)
12419         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
12420
12421 2006-06-16  Jackson Harper  <jackson@ximian.com>
12422
12423         * MdiClient.cs: Instead of just sizing maximized windows when
12424         there is a resize we also have to adjust the Y of minimized
12425         windows, so they stay pinned to the bottom of the mdi container.
12426         - Eliminate separate tracking of the active control, we can just
12427         get this from the controls collection.
12428         - Paint the decorations for the newly activated titlebar so we get
12429         a pretty blue bar.
12430         * InternalWindowManager.cs:
12431         * ThemeWin32Classic.cs: Minimized windows get all three buttons
12432         even if they are a tool window.
12433         
12434 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12435
12436         * TextControl.cs (Undo): Handle non-existent cursor locations in the
12437           undo buffer, these can happen when text was deleted and the cursor
12438           was recorded first. Since we will also have a recorded cursor
12439           after the delete this is not an issue. (Fixes #78651)
12440
12441 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
12442
12443         * AccessibleObject.cs: Remove dependence on Control.is_selected;
12444           instead properly track control states internally (allows us to
12445           remove is_selected from Control)
12446
12447 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12448
12449         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
12450         whose width is not a multiple of 8.
12451
12452 2006-06-13  Jackson Harper  <jackson@ximian.com>
12453
12454         * MdiClient.cs:  Only maximize the next child if the current one
12455         is maximized.
12456
12457 2006-06-13  Chris Toshok  <toshok@ximian.com>
12458
12459         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
12460         modified.  Also, guard against grid or grid_drawing being null in
12461         Invalidate.
12462
12463         * DataGrid.cs: Reformat tons of getters/setters.  In the
12464         DataMember setter, just call SetNewDataSource instead of
12465         duplicating some of its functionality.  In SetNewDataSource, don't
12466         check ListManager for null, since the property getter creates the
12467         object if needed.
12468
12469         * DataGridTableStyle.cs: don't set TableStyle or call
12470         SetDataGridInternal on the column here, it's done in
12471         GridColumnStylesCollection.Add.
12472
12473         * GridColumnStylesCollection.cs: fix all the explicit interface
12474         implementations to just call our methods.  Nuke AddInternal() and
12475         move the body of it to Add().  Also, add a call to
12476         column.SetDataGridInternal to Add().
12477
12478         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
12479         base()+duplicate code.  Also, use the Format property instead of
12480         format to generate an Invalidate ala MS.  Lastly, create the
12481         textbox here, unconditionally.
12482         (set_Format): call Invalidate.
12483         (get_TextBox): no need to call EnsureTextBox.
12484         (Commit): remove the message box.
12485         (Edit) remove the call to EnsureTextBox.
12486         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
12487         (EnterNullValue): no need to check textbox for null.
12488         (HideEditBox): no need to check textbox for null.
12489         (SetDataGridInColumn): add the textbox to the grid's controls.
12490         (EnsureTextBox): nuke.
12491         
12492 2006-06-13  Jackson Harper  <jackson@ximian.com>
12493
12494         * MdiWindowManager.cs: Hook up to the maximized menus paint event
12495         and redraw the buttons when needed. Unhook when the window is
12496         unmaximized.
12497         * MainMenu.cs: Add an internal Paint event, the mdi window manager
12498         needs this so that it can redraw its buttons when the menu is
12499         repainted.
12500         * InternalWindowManager.cs:
12501         * Form.cs: The method order has changed for DrawMaximizedButtons,
12502         so that it can be a PaintEventHandler.
12503         
12504 2006-06-13  Jackson Harper  <jackson@ximian.com>
12505
12506         * MdiClient.cs: When we close a maximized mdi window, the next mdi
12507         window is activated and maximized, even if it wasn't before.
12508         - When  a new window is activated repaint the decorations of the
12509         old one, so that it no longer has the Active "look" (the blue
12510         titlebar).
12511         * InternalWindowManager.cs: Open up CreateButtons to base classes
12512         so they can recreate the buttons on state changes.
12513         - If a window is maximized give it all three buttons
12514         * MdiWindowManager.cs: Create the titlebar buttons when the state
12515         is changed, this is needed because a toolwindow will not have all
12516         three buttons until it is maximized.
12517
12518 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
12519
12520         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
12521           Fixed bug #78609.
12522
12523 2006-06-12  Jackson Harper  <jackson@ximian.com>
12524
12525         * KeysConverter.cs: Make sure we handle the Ctrl special case
12526         if its the only key.
12527         
12528 2006-06-12  Jackson Harper  <jackson@ximian.com>
12529
12530         * Theme.cs: Add a method to get the size of a managed window
12531         toolbar button.
12532         * InternalWindowManager.cs: Remove the ButtonSize property, this
12533         should be retrieved from the theme.
12534         * MdiWindowManager.cs: Get the button size from the theme
12535         * ThemeWin32Classic.cs: Make the method to get the managed window
12536         titlebar button size public.
12537         - Handle the different button sizes of maximized toolwindows
12538         (should match any maximized window).
12539         - Get the titlebar height from the theme, not the WM (which gets
12540         it from the theme).
12541
12542 2006-06-12  Jackson Harper  <jackson@ximian.com>
12543
12544         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
12545         event down to the mdi window manager.
12546         - Expose some extra stuff to base classes
12547         - Make sure to end the Capture on an NC Mouse up, so that we can
12548         get double clicks properly, and the sizing doens't stick.
12549         - When doing PointToClient contain it in the workable desktop
12550         area, this prevents windows from changing size when the cursor is
12551         pulled outside of the working area while sizing.
12552         * MdiWindowManager.cs: When we get a double click maximize the
12553         window.
12554         - Reset the cursor after handling mode changes.
12555
12556 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
12557
12558         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
12559           current desktop, instead of just assuming a 0, 0 origin. This
12560           is needed for our internal window manager, to know the top
12561           margin of the desktop
12562
12563 2006-06-12  Chris Toshok  <toshok@ximian.com>
12564
12565         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
12566         we need this to get rid of the selected background in the bool
12567         column.
12568         (CancelEditing): move the ConcedeFocus call to above the Abort
12569         call.  Also, set is_changing to false and invalidate the row
12570         header if we were changing before.
12571         (ProcessKeyPreviewInternal): remove, since noone outside this
12572         class calls it anymore.  Roll the code into ProcessKeyPreview.
12573         (EndEdit): remove the internal version.
12574         (InvalidateCurrentRowHeader): make private.
12575
12576         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
12577         Keys.Escape handling (and with it the last call to
12578         DataGrid.EndEdit from outside the class.)
12579
12580
12581 2006-06-12  Chris Toshok  <toshok@ximian.com>
12582
12583         * DataGridTextBox.cs (.ctor): isedit defaults to false.
12584         (OnKeyPress): set isedit to true.
12585         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
12586         already handled by the grid.
12587
12588         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
12589         right.  ugh.
12590         (set_DataSource): SetDataSource always returns true, so stop
12591         putting it in an if statement.
12592         (EndEdit): get rid of some {}'s
12593         (ProcessGridKey): return true in case Keys.Escape.
12594         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
12595         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
12596         PositionChanged, stopped connecting to CurrentChanged.
12597         (GetDataSource): simplify this a bunch.
12598         (SetDataSource): change return type from bool to void.
12599         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
12600         to this, and make sure we don't set ListManager.Position inside
12601         set_CurrentCell.
12602         (OnListManagerItemChanged): if we're passed an actual index,
12603         redraw that row.
12604
12605         * CurrencyManager.cs (set_Position): don't call PullData here.
12606
12607 2006-06-09  Jackson Harper  <jackson@ximian.com>
12608
12609         * TreeNode.cs:  Recalculate the visible order before doing the
12610         Expand/Collapse Below calls, because those calls generate an
12611         expose.
12612         - Reduce calls to the TreeView property, which is mildly expensive
12613         by using a local var.
12614         * Form.cs: Layout the MDI child windows when creating the parent
12615         form.
12616         - Don't use the internal constructor anymore
12617         * MdiClient.cs: use the parent form width/height (if available)
12618         when laying out the child windows, we do this because the
12619         mdiclient isn't docked yet when the initial layout is done.
12620         - Don't need an internal constructor anymore.
12621
12622 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12623
12624         * FileDialog.cs: handle access errors when trying to create a folder
12625         or changing to a directory. No need to initialize out parameters.
12626
12627 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12628
12629         * FileDialog.cs: Append a number when creating a new folder if the
12630           folder already exists (use parenthesis instead of square brackets)
12631
12632 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12633
12634         * FileDialog.cs:
12635           - Disabled registry support for windows and added better registry
12636             error checking for other systems (need to investigate why it
12637             works perfectly on my system)
12638           - If a folder already exist show an error MessageBox instead of
12639             trying to create an indexed name.
12640           - Fixed a non intentional typo.
12641
12642 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12643
12644         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
12645
12646 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12647
12648         * FileDialog.cs: When creating a new folder don't crash if the
12649           folder already exists.
12650
12651 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12652
12653         * FileDialog.cs: Allmost a complete rewrite.
12654           - added a "virtual" file system that handles the differences
12655             between unix and windows file systems (especially the directory
12656             structure). Moved most of the directory and file handling code
12657             into the vfs.
12658             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
12659             UnixFileSystem and FSEntry.
12660           - Recently used folder/directory, size, location and used file names
12661             (file name ComboBox) are now stored in the registry and get read
12662             before the dialog shows up (fixes part 6 of bug #78446).
12663           - Creation of new folders/directories is now possible (context menu
12664             or ToolBar). Added TextEntryDialog for this that fills in the gap
12665             until ListView.LabelEdit works.
12666           - Fixed cursor handling (bug #78527) and focus handling for
12667             PopupButtonPanel
12668           - Various "Search in" ComboBox enhancements. The content of the
12669             dropdown listbox now almost matches ms.
12670           - Changed the behaviour when the user switches to SpecialFolder
12671             Recent to show the ListView in View.Details.
12672           - Beside using the ToolBar to change the View property of the
12673             file ListView it is now possible to use the context menu too.
12674
12675 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12676
12677         * ComboBox.cs: Don't create a new ObjectCollection when an item
12678           gets inserted. Just insert the item in the existing object_items
12679           ArrayList.
12680
12681 2006-06-08  Jackson Harper  <jackson@ximian.com>
12682
12683         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
12684         that the treeview and root node checks are done also, this fixes a
12685         regression i caused in the unit tests.
12686
12687 2006-06-07  Wade Berrier <wberrier@novell.com> 
12688
12689         * RichTextBox.cs: More ISO8859-1 -> unicode
12690
12691 2006-06-07  Mike Kestner  <mkestner@novell.com>
12692
12693         * ComboBox.cs : use items to hold highlight/selection so that
12694         collection insertions don't require synchronization.
12695
12696 2006-06-07  Jackson Harper  <jackson@ximian.com>
12697
12698         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
12699         routine.  We now always keep the sized edge at the cursor instead
12700         of computing movement and adjusting rects.  There is one buglet
12701         with this method though when the cursor is moved over area that
12702         the window can not expand too (such as the toolbars on the desktop).
12703
12704 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12705
12706         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
12707         here. Fixes crash on startup in AlbumSurfer.
12708
12709 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
12710
12711         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
12712           values
12713
12714 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12715
12716         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
12717         statement to avoid calling XNextEvent which will block if another thread
12718         took the event that we were expecting. Fixes bug #78605.
12719
12720 2006-06-07  Mike Kestner  <mkestner@novell.com>
12721
12722         * ListView.cs : isolated checkbox clicking from the selection logic.
12723         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
12724
12725 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12726
12727         * Form.cs: Check that the value passed to Form.DialogResult
12728         is a valid enum value.
12729
12730 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12731
12732         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
12733         Computer'. Clicking it in the network view goes to 'My Computer'.
12734         Added CIFS filesystem type. Display the mount point of filesystems.
12735         Avoid duplicate mount points (happens for me with CIFS);
12736
12737 2006-06-06  Jackson Harper  <jackson@ximian.com>
12738
12739         * InternalWindowManager.cs: Draw the maximized windows buttons
12740         when resizing.
12741
12742 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12743
12744         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
12745         all other dialogs. Fixes bug #78585.
12746
12747 2006-06-06  Mike Kestner  <mkestner@novell.com>
12748
12749         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
12750         Only invalidate checkbox on checkstate changes to avoid flicker.
12751         * ListBox.cs : avoid unselect/select when clicking selected item.
12752         avoid reselection flicker for already multiselected items.
12753         Fixes #78382.
12754
12755 2006-06-06  Jackson Harper  <jackson@ximian.com>
12756
12757         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
12758         the parent form so that the menu is removed if needed.
12759
12760 2006-06-06  Mike Kestner  <mkestner@novell.com>
12761
12762         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
12763         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
12764
12765 2006-06-06  Mike Kestner  <mkestner@novell.com>
12766
12767         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
12768
12769
12770 2006-06-06  Jackson Harper  <jackson@ximian.com>
12771
12772         * Control.cs: Use the property (instead of the field) to get the
12773         default cursor so it is instantiated correctly.
12774         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
12775         resizes so we need to manually repaint the window decorations here.
12776         - Set the titlebar button locations as soon as they are created,
12777         otherwise they are not set correctly on win32.
12778         
12779 2006-06-06  Chris Toshok  <toshok@ximian.com>
12780
12781         * CurrencyManager.cs (set_Position): call PullData before
12782         OnCurrentChanged.
12783         (AddNew): after calling IBindingList.AddNew, update our
12784         listposition, and call OnCurrentChanged/OnPositionChanged (without
12785         calling PullData).
12786         (OnCurrentChanged): remove the call to PullData from here.
12787         (OnItemChanged): remove the call to PushData from here.
12788         (OnPositionChanged): change the test from == null to != null to
12789         match the other methods.
12790         (ListChangedHandler): the grossest part of the patch.  Implement
12791         this such that it passes the unit tests in CurrencyManagerTest and
12792         the output more or less matches that of MS's implementation.
12793  
12794 2006-06-06  Mike Kestner  <mkestner@novell.com>
12795
12796         * ListView.cs : only update check state on single click.
12797         * ThemeWin32Classic.cs : fix focus drawing for details view without
12798         fullrowselect.  Fixes #78454.
12799         * XplatUIX11.cs : fix for double click emission.
12800
12801 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
12802
12803         * PropertyGridView.cs : Applied Atsushi's patch to fix
12804         font dialog bug  (#78197).
12805
12806 2006-06-05  Jackson Harper  <jackson@ximian.com>
12807
12808         * TreeNode.cs: Compute the next node for expanding/collapsing
12809         correctly. We now factor in nodes without a NextNode
12810         correctly. (Fixes somes cases in nunit-gui).
12811         * InternalWindowManager.cs: Set the bounds when updating the
12812         virtual position of a tool window.
12813         
12814 2006-06-05  Chris Toshok  <toshok@ximian.com>
12815
12816         * DataGrid.cs: rename cached_currencymgr to list_manager.
12817         (set_CurrentCell): move SetCurrentCell code here, and clean it up
12818         some.
12819         (CurrentRow, CurrentColumn): single accessors so we can make the
12820         cursor movement code a lot easier to understand.
12821         (CurrentRowIndex): implement this in terms of CurrentRow.
12822         (BeginEdit): clean this up a bit.
12823         (CancelEditing): sort out the is_editing/is_changing/is_adding
12824         stuff a little.
12825         (EndEdit): minor changes.
12826         (OnKeyDown): add a comment about a (most likely) unnecessary
12827         check.
12828         (OnMouseDown): cancel editing when we click on a row header.  And
12829         use the CurrentRow setter, not CurrentCell.
12830         (ProcessDialogKey): directly call ProcessGridKey.
12831         (UpdateSelectionAfterCursorMove): factor out this common block of
12832         code (it's used everywhere that we move the cursor by updating row
12833         or column).
12834         (ProcessGridKey): pretty substantial overhaul.  Use the
12835         CurrentRow/CurrentColumn properties to make the code a lot more
12836         readable.  Only use the CurrentCell property when we have to
12837         modify both row and column at once.  Tab behavior is still broken,
12838         and Delete is untested.
12839         (Select): if we have no selected rows, set selection_start to
12840         @row.
12841         (EditCurrentCell): rename EditCell this.  It was only ever invoked
12842         with CurrentCell as the arg, so drop the arg and rename it.
12843
12844         * DataGridColumnStyle.cs: clean up the constructors a little, and
12845         drop CommonConstructor().
12846
12847         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
12848         actually get notified when the user hits it.
12849         (ProcessKeyMessage): *substantially* simplify this method.
12850         There's no reason (that I can see) for the textbox to be making
12851         calls into the datagrid at all.  Remove all of them but the ones
12852         for Enter handling.  those will take some more work.
12853
12854         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
12855         calling HideEditBox.
12856         (HideEditBox): if we have an active textbox, render it invisible
12857         without causing a re-layout of the datagrid.
12858
12859 2006-06-05  Mike Kestner  <mkestner@novell.com>
12860
12861         * ListView.cs : fix NRE crasher when focuseditem is cleared by
12862         collection changes by resetting it to Items[0].  Fixes #78587.
12863
12864 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12865
12866         * MessageBox.cs: if the height of the text is larger than the icon_size,
12867         use that. Fixes bug #78575.
12868
12869 2006-06-05  Jackson Harper  <jackson@ximian.com>
12870
12871         * TreeView.cs: Fix line drawing when scrolling.  To do this each
12872         node is basically responsible for drawing its entire horizontal
12873         area.  When drawing a node it draws its parent node lines if
12874         needed.
12875         - Adjust the clip area to the viewport rectangle
12876         - Fix Left/Right key handling to match MS. (It expand/collapses
12877         and moves to parents/first child but does not move selection to
12878         sibling nodes).
12879         - Fix SetTop to work with new bound calculation code
12880         - When scrollbars are no longer needed we need to reset scrolling
12881         vars and recalculate the visible order so the redraw is correct
12882         * TreeNode.cs: We can't expand/collapse nodes with no children.
12883
12884 2006-06-03  John Luke  <john.luke@gmail.com> 
12885
12886         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
12887         so the colors work without dev packages
12888         
12889 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
12890
12891         * Control.cs 
12892           - Select: Implemented to just use activate. Seems to match MS 
12893             behaviour closest. Documented to only do actual control walking 
12894             based on it's parameters if in a container control so I moved 
12895             the code there.
12896           - Removed selection check logic from our internal Select() method
12897         * ContainerControl.cs:
12898           - Select: Moved selection logic from Control here, since MS documents
12899             that containers obey the bool arguments. No longer calling base
12900
12901 2006-06-02  Jackson Harper  <jackson@ximian.com>
12902
12903         * TreeView.cs: If the selected node isn't changed when we get
12904         focus update the previously selected node so that we see the
12905         selection box.
12906
12907 2006-06-02  Mike Kestner  <mkestner@novell.com>
12908
12909         * ComboBox.cs: restructure grab and general mouse event handling.
12910         Make the composite control raise mouse events like it was a single
12911         control for leaves/enters/motion/up/down events.  fix dropdown list
12912         coordinate mangling and refactor it into the scrollbar subclass to
12913         reduce code duplication.  Fixes #78282 #78361 and #78457.
12914
12915 2006-06-02  Mike Kestner  <mkestner@novell.com>
12916
12917         * ScrollBar.cs: remove Capture setting/clearing, as it happens
12918         automatically in the Control.WndProc.
12919
12920 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12921
12922         * FileDialog.cs: fix crash when running SharpChess, which sets the
12923         FilterIndex to 2 with only one Filter.
12924
12925 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12926
12927         * ToolBar.cs: add SizeSpecified property.
12928         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
12929         try to figure out our real size, otherwise fallback to what the
12930         container says.
12931
12932 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
12933
12934         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
12935         * Control.cs (WndProc): MS always calls the DefWndProc to pass
12936           up the event
12937
12938 2006-06-01  Mike Kestner  <mkestner@novell.com>
12939
12940         * ListView.cs: revamp the focus management in ListView.  It still
12941         causes churn of LostFocus/GotFocus emissions on clicks, but it's
12942         better than not handling focus at all.  Will revisit when pdb feels
12943         the general focus handling is solid.  Fixes #78526.
12944
12945 2006-06-01  Jackson Harper  <jackson@ximian.com>
12946
12947         * TreeView.cs: Set the default border style in the constructor.
12948         - Move painting to use OnPaintInternal instead of capturing
12949         WM_PAINT, this is the correct way of doing things
12950         - UpdateBelow shouldn't invalidate the scrollbar area
12951         - Cap the top on update below in case the node was above the top
12952         of the viewport rectangle.
12953         - ExpandBelow and Collapse below need to obey Begin/End Update.
12954         * TreeNode.cs: Make is_expanded internal so the treenode
12955         collection can change it without firing the whole event chain.
12956         * TreeNodeCollection.cs: When clearing all the child nodes make
12957         sure to recalc the visible order.
12958         - Improve algo for remove the top node
12959
12960 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
12961
12962         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
12963           SendMessage directly calling window procedures, which in turn might
12964           call SetFocus()
12965
12966 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
12967
12968         * Control.cs: Don't handle WM_SETFOCUS if the same window already
12969           has focus (works around X11 sending a FocusIn after our SetFocus)
12970         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
12971
12972 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
12973
12974         * Mime.cs: Fix for the NET_2_0 build.
12975           NameValueCollection needs StringComparer now.
12976
12977 2006-05-31  Chris Toshok  <toshok@ximian.com>
12978
12979         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
12980         return (via an out parameter) the starting X of the column.
12981         (UpdateVisibleColumn): track change to FromPixelToColumn.
12982         (HitTest): add a ColumnResize case here.
12983         (DrawResizeLine): new function, probably poorly named.
12984
12985         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
12986         only need to keep one reference.
12987         (set_ListManager): same.
12988         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
12989         Also, add support for HitTestType.ColumnResize.
12990         (OnMouseMove): add column resize behavior here, and change the
12991         cursor to the correct one as we move around the datagrid.
12992         (OnMouseUp): terminate the column resize if we're resizing.
12993         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
12994         for the current cell.
12995         (ConnectListManagerEvents): use cached_currencymgr.
12996         (DisconnectListManagerEvents): fill this in, using
12997         cached_currencymgr.
12998         (SetCurrentCell): remove cached_currencymgr_events handling.
12999         (SetDataMember): only call DisconnectListManagerEvents if
13000         cached_currencymgr is != null.
13001         (SetDataSource): same.
13002         (OnListManagerCurrentChanged): cached_currencymgr_events ->
13003         cached_currencymgr.
13004
13005 2006-05-31  Jackson Harper  <jackson@ximian.com>
13006
13007         * BindingManagerBase.cs: Remove somedebug code that creeped into
13008         SVN.
13009         * TreeNode.cs: We get the indent level dynamically right now, so
13010         don't track it as a member.
13011         * TreeNodeCollection.cs: Make sure all nodes added to the list
13012         have parents, treeviews/topnodes setup properly.
13013         - Don't attempt to track indent level.
13014
13015 2006-05-30  Jackson Harper  <jackson@ximian.com>
13016
13017         * BindingContext.cs: Create the currency manager tables here.
13018         This allows us to more easily create null tables (when bad data
13019         members are used), and more easily create related currency
13020         managers.
13021         * CurrencyManager.cs: All the table creation stuff is done by the
13022         binding context now.
13023         - Current should throw an exception if listposition is -1.
13024         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
13025         been bound yet.
13026
13027 2006-05-30  Mike Kestner  <mkestner@novell.com>
13028
13029         * ListView.cs: allow reexpansion of zero-width column headers.
13030         Fixes #78528.
13031
13032 2006-05-28  Chris Toshok  <toshok@ximian.com>
13033
13034         * CurrencyManager.cs (get_Current): after the late binding
13035         listposition = -1 fix, we need to guard against it here and return
13036         null, otherwise we raise an exception (which is swallowed
13037         elsewhere, and breaks datagrid databinding.)
13038
13039 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
13040
13041         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
13042           than WM_SYSKEY, don't throw if get something unexpected (#78507)
13043
13044 2006-05-26  Jackson Harper  <jackson@ximian.com>
13045
13046         * ControlPaint.cs:
13047         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
13048         values, it's faster and it's all we care about (we don't care if
13049         the names aren't equal).
13050         * KeyboardLayouts.cs: Eliminate some dead code.
13051         - Lazy init things
13052         * X11Keyboard.cs: Lazy init keyboard detection.
13053         - Cleanup access modifiers a little.
13054
13055 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
13056
13057         * XplatUIX11.cs: Once again, attempting to get layout just right.
13058
13059 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
13060
13061         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
13062           the sizes of each link section, that will result in sizes that
13063           match DrawString's layout (Fixes #78391)
13064
13065 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
13066
13067         * FileDialog.cs: If AddExtension property is true autocomplete the
13068           extensions in SaveFileDialog correctly. Fixes bug #78453.
13069           Set MyNetwork and MyComputer to "C:\" for windows. This should
13070           fix part 8 of bug #78446 for now.
13071
13072 2006-05-26  Chris Toshok  <toshok@ximian.com>
13073
13074         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
13075         invalidate the current row header if we need to, but presumably
13076         we'll invalidate the row corrsponding to the bounds or
13077         editingControl.
13078         (GridHScrolled): switch back to this method, as it's part of the
13079         public api.  *sigh*.
13080         (GridVScrolled): same.
13081         (OnMouseWheel): hack up something that more or less works.  Call
13082         GridHScrolled/GridVScrolled directly, instead of duplicating much
13083         of their code here.
13084         (EnsureCellVisibility): reinstate a bunch of this code, since we
13085         can't just set the scrollbar Value and expect to do all the work
13086         in the ValueChanged handler.  Also, Call Update() after scrolling
13087         in one direction so the other XplatX11.ScrollWindow call has the
13088         proper stuff in the proper places.
13089         (EditCell): set is_editing to true before calling .Edit.
13090
13091         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
13092         don't bother comparing first.
13093         (OnKeyPress): call grid.ColumnStartedEditing before calling
13094         base.OnKeyPress.  this will set is_changing and invalidate the row
13095         header if necessary.
13096         (ProcessKeyMessage): for WM_CHAR messages, call
13097         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
13098         and WM_KEYDOWN.
13099         
13100         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
13101         it's done in the DataGrid.
13102         (NextState): call grid.ColumnStartedEditing, which takes care of
13103         invalidating the row header (and setting is_changing).
13104
13105         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
13106         here.  it's done in the DataGrid.
13107
13108 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13109
13110         * Control.cs: allow changing the cursor when the mouse position is
13111         out of bounds but Capture is set.
13112         * LinkLabel.cs: handle the case when the mouse button is pressed on the
13113         linklabel but released somewhere else.
13114
13115 2006-05-25  Jackson Harper  <jackson@ximian.com>
13116
13117         * TreeView.cs: When we get focus if there is no selected node make
13118         it the top node
13119         - Remove some uneeded setup code from Draw.
13120         * TreeNodeCollection.cs: If the tree doesn't have a top node when
13121         a new node is inserted make the new node the top.
13122         * XplatUIX11.cs:
13123         * Timer.cs: Use Utc time so that no local time zone stuff needs to
13124         be used (should be faster).
13125         
13126 2006-05-25  Chris Toshok  <toshok@ximian.com>
13127
13128         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
13129         problem with the last commit.
13130
13131 2006-05-25  Chris Toshok  <toshok@ximian.com>
13132
13133         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
13134         need the invalidate call here, while scrolling right-to-left via
13135         the left arrow key (i.e. moving the editing cell while scrolling).
13136
13137         * DataGrid.cs (.ctor): remove the initialization of
13138         ctrl_pressed/shift_pressed.  We no longer track them using key
13139         up/down handlers, but by using Control.ModifierKeys.  Also, switch
13140         to using ValueChanged handlers on the scrollbars instead of
13141         Scrolled event handlers.  This simplifies a bunch of the scrolling
13142         code.
13143         (GridHValueChanged): rename from GridHScrolled, and change it to
13144         work with the new event args.
13145         (GridVValueChanged): same.
13146         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
13147         (OnMouseWheel): actually scroll the datagrid.  Don't change the
13148         selected cell.
13149         (ProcessGridKey): correct all the keyboard navigation stuff I
13150         could find.  Ctrl up/down/left/right/home/end work now.
13151         (EnsureCellVisibility): correct method name spelling.  Also,
13152         simplify this a touch by not explicitly calling the
13153         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
13154         scrollbar value.
13155         (OnKeyUpDG): no need for this method now.
13156         
13157 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13158
13159         * LinkLabel.cs: display the OverrideCursor when hovering the label.
13160         Fixes bug #78392.
13161
13162 2006-05-25  Chris Toshok  <toshok@ximian.com>
13163
13164         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
13165         r61019.
13166
13167 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13168
13169         * Application.cs: Moved setting of is_modal and closing to before
13170           we create the control, to allow the event handlers called as a
13171           result of creation affect closing. Also removed Gonzalo's previous
13172           change to setting DialogResult, the behaviour has been moved to 
13173           Form.ShowDialog()
13174         * Form.cs: 
13175           - ShowDialog(): Removed explicit creation of the form, let RunLoop
13176             handle it instead
13177           - ShowDialog(): If no dialog result is set, we need to return Cancel
13178           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
13179             the close is cancelled
13180
13181 2006-05-25  Jackson Harper  <jackson@ximian.com>
13182
13183         * StatusBar.cs: We only need to update the sizes of the other
13184         panels when we have auto size contents.  Also we are only updating
13185         the contents of the panel, not the borders, so compensate for the
13186         border width (TODO: get this width from the theme somehow).
13187         * TreeView.cs: Scrollable is true by default
13188         - Use invalidate instead of refresh where needed
13189         - Factor the scrollable value into scrollbar updating
13190         - Update the scrollbars if the Scrollable property is altered
13191         - Update the selected node if its ImageIndex is changed
13192         - Handle null nodes in UpdateNode (mainly so we don't have to
13193         check if selected is null when updating it
13194         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
13195         are factored into the visible count
13196         - Use VisibleCount for clarity in the code
13197         - When the font is changed we need to recurse through all the
13198         nodes and invalidate their sizes
13199         
13200 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13201
13202         * Application.cs: set the DialogResult to fixed when the main form is
13203         hidden or destroyed while being modal.
13204
13205 2006-05-25  Miguel de Icaza  <miguel@novell.com>
13206
13207         * Theme.cs: Use Tangoified messagebox icons. 
13208
13209         (GetSizedResourceImage): Also cope with width = 0 and do not
13210         trigger a warning in that case (0 means "give me your icon from
13211         the resouce, no special size needed).
13212
13213 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13214
13215         * Application.cs: Leave runloop if the the main modal form is 
13216           hidden (fixes #78484)
13217
13218 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
13219
13220         * BindingContext.cs : reject null datasource in Contains() and
13221           Item[].
13222         * CurrencyManager.cs : check data_member validity when data_source
13223           is dataset. When it is late binding, the initial position is -1.
13224
13225 2006-05-24  Jackson Harper  <jackson@ximian.com>
13226
13227         * TreeNodeCollection.cs: Dont't recalculate the visible order on
13228         inserted nodes that aren't visible.  This changes the
13229         max_visible_order which confuses scrollbar settings.
13230         - Use the enumerator to get the prev node instead of duplicating
13231         code.
13232         * TreeView.cs: Use new method for setting scrollbar values
13233         - Don't set the bounds every time the scrollbar is updated
13234         - When updating below the root node use an invalidate instead of a
13235         refresh to prevent the child controls (scrollbars) from being
13236         refreshed. (UpdateBelow still needs to be reworked anyways).
13237         - Reenable SetBottom now that visible orders are set correctly,
13238         added some debug code incase we ever get bad values there again.
13239         - Set the scrollbar max to 2 less then the max value, this
13240         compensates for the max value being one above the node count, and
13241         for scrollbars adding one extra "notch".
13242         - When drawing image nodes if there is an imagelist we draw the
13243         first image in the list if the supplied image index is out of the
13244         image list's bounds.
13245         
13246 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13247
13248         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
13249           we receive a size change from the WM (Fixes #78503)
13250
13251 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
13252
13253         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
13254           rectangle (Fixes #78501)
13255
13256 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13257
13258         * ButtonBase.cs: 
13259           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
13260             as a bitfield.
13261           - Fixed MouseMove to no longer switch pressed state unless the left
13262             mouse button is pressed. Atsushi provided the original patch (#78485)
13263           
13264 2006-05-24  Jackson Harper  <jackson@ximian.com>
13265
13266         * ScrollBar.cs: New internal methods that allow us to change a
13267         couple values on the scrollbar (the most common case is maximum
13268         and large change) without getting multiple invalidates.
13269
13270 2006-05-24  Chris Toshok  <toshok@ximian.com>
13271
13272         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
13273         (Edit): save off the original state in oldState, and set
13274         grid.is_editing to true.
13275         (OnKeyDown): abort editing if escape is pressed.  also, call
13276         NextState if space is pressed.
13277         (OnMouseDown): call NextState.
13278         (NextState): factor out shared code from OnKeyDown and OnMouseDown
13279         here.  Also, only invalidate the row header once (on the initial
13280         is_changing switch) to save on redraws.
13281
13282 2006-05-24  Chris Toshok  <toshok@ximian.com>
13283
13284         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
13285         if the value in the cell is different than it was before.  This
13286         keeps us from triggering a layout when we move around a datarid
13287         with a highlighted cell.
13288         (Edit): suspend layout when creating/positining the text box, and
13289         resume passing false so we don't ever actually re-layout.
13290         (ReleaseHostedControl): same.
13291         (EnsureTextBox): reformat slightly, and set WordWrap to false.
13292
13293         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
13294         control-key sequences should go to the datagrid - remove that
13295         lock.  Also, modify the conditions under which we move between
13296         cells when moving the cursor within a cell, and remove the "this"
13297         and "base" from field accesses.  We weren't even consistent, given
13298         they all were in the base class.
13299
13300 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
13301
13302         * Binding.cs : (.ctor)
13303           An obvious NRE fix for BindingTest.CtorNullTest().
13304
13305 2006-05-23  Chris Toshok  <toshok@ximian.com>
13306
13307         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
13308         them between lines.  This fixes some quirks editing cells in the
13309         datagrid.
13310
13311 2006-05-23  Jackson Harper  <jackson@ximian.com>
13312
13313         * TreeView.cs: Use begin/end update when doing expand/collapse all
13314         so that we don't get flicker on the scrollbar.
13315
13316 2006-05-23  Jackson Harper  <jackson@ximian.com>
13317
13318         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
13319         treenode calculations to be independant of the painting code. To
13320         do this nodes track a visible order which is calculated by the
13321         treeview.
13322         - Call new methods for expanding/collapsing nodes.  These methods
13323         use scrollwindow so we don't have to update everything below the
13324         node.
13325         * TreeView.cs: Refactored drawing and scrolling code.  We don't
13326         need to update nodes when drawing anymore or calculate scrollbar
13327         stuff.
13328         - Added new methods for expanding/collapsing nodes. These methods
13329         use ScrollWindow so as to not have to redraw all the nodes below.
13330         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
13331         we add/remove nodes or sort.
13332         - Handle removing the selected and the top node properly.
13333
13334 2006-05-23  Chris Toshok  <toshok@ximian.com>
13335
13336         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
13337         maybe this should actually happen in the datagrid code?
13338         (EndEdit): no need to invalidate anything, given that
13339         ReleaseHostedControl causes the datagrid to relayout, which
13340         invalidates everything anyway.
13341
13342         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
13343         in SetCurrentCell).
13344         (set_SelectionBackColor): call InvalidateSelection instead of
13345         Refresh.
13346         (set_SelectionForeColor): same.
13347         (BeginEdit): Flesh this out a bit.
13348         (CancelEditing): only do any of this if we're editing/adding.
13349         (EndEdit): same.
13350         (OnMouseDown): there's no need to cancel editing here, it's done
13351         in SetCurrentCell.
13352         (SetCurrentCell): only invalidate the current row header if it's a
13353         different row than the new one.
13354         (ShiftSelection): fix this to work like MS does.
13355         (ResetSelection): factor out the invalidation of selected_rows to
13356         InvalidateSelection.
13357         (SetDataSource): cancel any editing that's going on.
13358
13359         * DataGridColumnStyle.cs
13360         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
13361         call the non-interface version.
13362
13363         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
13364         header rectangle with the clip rectangle so we don't redraw the
13365         entire header for just a small area.  Gets rid of the last flicker
13366         when horizontally scrolling.
13367         (DataGridPaintRow): same.
13368
13369 2006-05-23  Mike Kestner  <mkestner@novell.com>
13370
13371         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
13372         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
13373         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
13374         Critical bug report.
13375
13376 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13377
13378         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
13379           and this fixes #78493
13380
13381 2006-05-23  Miguel de Icaza  <miguel@novell.com>
13382
13383         * Theme.cs (GetSizedResourceImage): Scale images if the proper
13384         size is not found.  
13385         
13386         * FileDialog.cs: Do not change the background for the side bar as
13387         it wont work nicely with the theme, and also reduces the artifacts
13388         in rendering the icons (which I want to fix too).
13389
13390         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
13391         resources, not resgen resources. 
13392
13393         (PlatformDefaultHandler): Pull images using the new API.
13394
13395 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13396
13397         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
13398           a reference to the hwnd and will not remove it unless there are
13399           no pending exposures (fixes #78341)
13400         * XplatUI.cs: Improved debug
13401
13402 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
13403
13404         * MenuAPI.cs : don't handle OnClick event when it was not the left
13405           button. Fixed bug #78487.
13406
13407 2006-05-23  Mike Kestner  <mkestner@novell.com>
13408
13409         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
13410         prefer submenus to the top menu for item lookup, to avoid popping down
13411         top-row items.
13412
13413 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
13414
13415         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
13416           Graphics.FillRectangle as the visual results are really bad (even
13417           on win). We now draw perfect arrows (and perfect shadows when the
13418           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
13419           Pen.DashPattern to draw the dots of each line.
13420
13421 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
13422
13423         * FileDialog.cs: Update the filename combobox when navigating through
13424           the ListView with the cursor keys. Fixes part 7 of bug #78446.
13425
13426 2006-05-22  Mike Kestner  <mkestner@novell.com>
13427
13428         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
13429         Fixes #78463.
13430
13431 2006-05-22  Mike Kestner  <mkestner@novell.com>
13432
13433         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
13434         requests. Fix a misspelled parameter and a copy paste exception error
13435         in Select.
13436
13437 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
13438
13439         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
13440           to get the same width/height (5/13) on X11 as the default font has on
13441           win32. This means that our DefaultFont emSize is smaller than the 
13442           the MS SWF equivalent (even thought the width/height stays the same)
13443
13444 2006-05-20  Jackson Harper  <jackson@ximian.com>
13445
13446         * MdiClient.cs:
13447         * MdiWindowManager.cs:
13448         * InternalWindowManager.cs: Make sure to use the border width from
13449         the theme.
13450
13451 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
13452
13453         * PrintDialog.cs: Implements printer details
13454
13455 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
13456
13457         * FileDialog.cs: Added focus handling for PopupButtonPanel.
13458           Fixes part 1 and 2 of bug #78446
13459
13460 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
13461
13462         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
13463           instead of sticking to the first ever calculated value
13464
13465 2006-05-19  Mike Kestner  <mkestner@novell.com>
13466
13467         * ComboBox.cs: fix mouse motion selection to use MousePosition and
13468         PointToClient, since Capture is set. Fixes #78344.
13469
13470 2006-05-19  Mike Kestner  <mkestner@novell.com>
13471
13472         * ListView.cs: match MS behavior in Details view where items are not
13473         drawn if Columns.Count == 0. 
13474         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
13475         Use a separate pen to draw the check, since changing the width affects
13476         the box as well.  Fixes #78454.
13477
13478 2006-05-18  Miguel de Icaza  <miguel@novell.com>
13479
13480         * ListView.cs: ArgumentOutOfRangeException, single versions of the
13481         exception should throw the name of the invalid argument.
13482
13483         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
13484         there are no files listed. 
13485
13486 2006-05-18  Jackson Harper  <jackson@ximian.com>
13487
13488         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
13489         up.
13490
13491 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13492
13493         * Control.cs: Brought back our old UpdateZOrder method as a private
13494           function and switched our calls from UpdateZOrder to the new one.
13495           This fixes the Paint.Net canvas disappearing bug.
13496
13497 2006-05-18  Jackson Harper  <jackson@ximian.com>
13498
13499         * Theme.cs:
13500         * ThemeWin32Classic.cs:
13501         * InternalWindowManager.cs: Move the drawing into the theme,
13502         expose everything the theme should need from the window manager.
13503
13504 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13505
13506         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
13507           from the call to NativeWindow to avoid walking up the parent chain
13508           further than needed (speeds up setting cursors and avoids setting
13509           the wrong cursor if a parent has another cursor defined)
13510         * Cursor.cs: When loading an icon as cursor, MS uses the center of
13511           the icon as hotspot, not what's contained as hotspot in the icon
13512           file. This fixes the perceived drawing offset seen with Paint.Net
13513         
13514 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13515
13516         * XplatUIX11.cs: 
13517           - Store the calculated rectangle in Hwnd object and use it when 
13518             setting the client size
13519           - Force Toolwindows to always be type Dock, to ensure they're on top
13520
13521 2006-05-18  Mike Kestner  <mkestner@novell.com>
13522
13523         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
13524         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
13525         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
13526         Substantial refactoring to remove confusing nested classes. Coding
13527         standard and Get+Set->property refactorings.  Shift to index based
13528         highlighting in ComboListBox instead of constantly using IndexOf and
13529         Items[]. Add invalidations on resize for DropDownList to fix ugliness
13530         in FileDialog growth.  Draw borders manually since Simple mode needs
13531         to look like two independent controls.  Make listbox border
13532         conditional to DropDownStyle.  Improved OwnerDraw support.
13533
13534 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
13535
13536         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
13537         Don't set the disposed graphics to null, so we can throw the "right"
13538         exception if the graphics is reused later (added a flag to avoid 
13539         double disposing). Some behaviours are different under 2.0 and are
13540         filled under bug #78448.
13541
13542 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13543
13544         * Control.cs: When double-buffering is enabled, we need to reset
13545           our graphics context between paint calls. Otherwise, any 
13546           transformations and other alterations on the context will 
13547           become cumulative (#77734)
13548
13549 2006-05-18  Mike Kestner  <mkestner@novell.com>
13550
13551         * ListView.cs: do focused item selection like MS on clicks. 
13552         Rework focus handling for ItemControl so LostFocus invalidates as
13553         well.
13554         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
13555         the ListView ItemControl has focus.
13556
13557 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
13558
13559         * XplatUIX11.cs: If client_window ends up being width or height zero
13560           due to border settings, move it off window inside whole_window (#78433)
13561
13562 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13563
13564         * Mime.cs: Shrink the mime file cache correctly.
13565
13566 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13567
13568         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
13569
13570 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13571
13572         * XplatUIX11.cs (AddExpose): More sanity checks
13573
13574 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13575
13576         * XplatUIX11.cs:
13577           - AddExpose: Don't add expose ranges outside the size of our
13578             window
13579           - Cast opacity values to Int32 to avoid crashes with certain
13580             values
13581           - Added disabled code paths that protect against illegal cross-
13582             thread painting (Developers.exe)
13583
13584 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13585
13586         * ProgressBar.cs: Invalidate the control when it's resized
13587           since block size is based on control size. (#78388)
13588
13589 2006-05-16  Miguel de Icaza  <miguel@novell.com>
13590
13591         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
13592         of setting the incoming argument to the "reset" value, we set the
13593         this.datamember to string.empty (before we were invalidating the
13594         incoming data).   
13595
13596         Fixes 78420
13597
13598 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13599
13600         * Form.cs: Only apply transparency settings after the form
13601           is created. (Fixes #77800)
13602
13603 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13604
13605         * ApplicationContext.cs: Grab the HandleDestroyed event so
13606           we know when to fire OnMainFormClosed 
13607
13608 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13609
13610         * Application.cs: Introduced sub-class to allow tracking of
13611           threads and centralized triggering of the event mess for
13612           ThreadExit, AppExit, etc..  (#76156)
13613
13614 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
13615
13616         * MimeIcon.cs:
13617           - Do not return a null icon index value for a mime subclass.
13618             Instead try the main mime type class too.
13619           - Seems that some newer distributions don't have a link to some
13620             gnome default icons anymore. So check the default gnome dir too.
13621           
13622
13623 2006-05-16  Jackson Harper  <jackson@ximian.com>
13624
13625         * MdiClient.cs: Don't paint the parent background image if we have
13626         our own background image.
13627
13628 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13629
13630         * Control.cs:
13631           - PerformLayout: Do not shrink space filled by DockStyle.Fill
13632             controls, all filled controls are supposed to overlap (#78080)
13633           - UpdateZOrder is supposed to update the control's z-order in the
13634             parent's z-order chain. Fixed to behave like that
13635           - BringToFront: Removed obsolete code
13636           - SendToBack: Simplyfied
13637           - SetChildIndex: Trigger layout calculations when Z-order changes
13638             since layout is done by z-order
13639
13640 2006-05-16  Chris Toshok  <toshok@ximian.com>
13641
13642         [ fixes bug #78410 ]
13643         * DataGrid.cs (set_AlternatingBackColor): use
13644         grid_drawing.InvalidateCells instead of Refresh().
13645         (set_BackColor): call grid_drawing.InvalidateCells.
13646         (set_BackgroundColor): use Invalidate instead of Refresh.
13647
13648         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
13649         invalidate the cell area.
13650
13651 2006-05-15  Chris Toshok  <toshok@ximian.com>
13652
13653         [ fixes bug #78011 ]
13654         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
13655         on to DataGridPaintRow.
13656         (DataGridPaintRow): take a clip argument, and only draw the cells
13657         which intersect it.  same with the not_usedarea.
13658
13659         * Theme.cs (DataGridPaintRow) add @clip parameter.
13660
13661         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
13662         XplatUI.ScrollWindow.
13663         (ScrollToRow): same.
13664
13665         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
13666         with last column which was causing a gray swath to appear with the
13667         XplatUI.ScrollWindow code.
13668
13669 2006-05-15  Chris Toshok  <toshok@ximian.com>
13670
13671         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
13672         use XplatUI.ScrollWindow.
13673         (VerticalScrollEvent): use XplatUI.ScrollWindow.
13674
13675 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
13676
13677         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
13678
13679 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13680
13681         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
13682           file since there are no equivalent X11 cursors
13683
13684 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13685
13686         * MonthCalendar.cs : DateTimePicker should reflect selected date
13687           on mouse*up*, not mouse*down*. Fixed originally reported part of
13688           bug #76474.
13689
13690 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13691
13692         * TabControl.cs : When argument index is equal or more than tab
13693           count, just ignore. Fixed bug #78395.
13694
13695 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13696
13697         * Control.cs: Dispose all child controls when control is diposed (#78394)
13698
13699 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13700
13701         * ColorDialog.cs: Finally it is possible to select the color with
13702           the text boxes
13703
13704 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13705
13706         * PrintDialog.cs: Fix typo
13707
13708 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13709
13710         * PrintDialog.cs: PrintDialog is not resizable
13711         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
13712           color. Made some ToolBar drawing methods protected virtual.
13713
13714 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
13715
13716         * PrintDialog.cs: Implementation of the PrintDialog
13717
13718 2006-05-12  Chris Toshok  <toshok@ximian.com>
13719
13720         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
13721         thumb, instead use MoveThumb.  This has the side effect of making
13722         most of the other thumb moving machinery use MoveThumb as well.
13723         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
13724         need to actually invalidate the rectangle where the new thumb will
13725         go.
13726         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
13727         We force an Update() after, so it's not as fast as it could be,
13728         but at least there's zero flicker and no droppings.
13729         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
13730         (UpdateThumbPos): add another argument (dirty), which says whether
13731         or not to calculate/add dirty regions which we later invalidate.
13732         For cases where we know we're going to use MoveThumb, we pass
13733         false for this.  Otherwise, pass true.
13734
13735 2006-05-12  Jackson Harper  <jackson@ximian.com>
13736
13737         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
13738         the status bar.
13739         
13740 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
13741
13742         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
13743           and GetClipRegion methods and UserClipWontExposeParent property.
13744         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
13745           overriding UserClipWontExposeParent property, setting to false, since
13746           Win32 handles the required expose messages to draw our clipped parent
13747           areas internally
13748         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
13749           PaintEventStart to set the user clip region if set.
13750         * Control.cs: 
13751           - Now internally tracking the Region for the control since we need to
13752             store it if the handle is not yet created and only set it when it
13753             becomes created. Before setting the region forced handle creation
13754           - Added code to draw the parents underneath a user-clipped region
13755         * Hwnd.cs: Added UserClip property
13756
13757 2006-05-12  Chris Toshok  <toshok@ximian.com>
13758
13759         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
13760         (set_Maximum): same.
13761         (set_Minimum): same.
13762         (set_SmallChange): same.
13763         (OnMouseUpSB): remove the call to refresh when releasing the
13764         thumb.  We shouldn't need it.
13765         
13766 2006-05-12  Miguel de Icaza  <miguel@novell.com>
13767
13768         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
13769         AutoSize set to None, we do not need to relayout everything, we
13770         just need to invalidate the current region.
13771
13772         (Draw): Do not draw the entire ClientArea, just redraw the
13773         clip area being passed.
13774
13775         * MdiClient.cs: Make MdiClient constructor with the Form argument
13776         internal. 
13777
13778 2006-05-12  Jackson Harper  <jackson@ximian.com>
13779
13780         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
13781         parents background image,  but strangely not their own.
13782         - (DrawStatusBarPanel): Take into account horizontal alignment
13783         when drawing the strings and icons.
13784
13785 2006-05-12  Mike Kestner  <mkestner@novell.com>
13786
13787         * ListBox.cs: avoid invalidations for focus when the collection is
13788         empty. 
13789
13790 2006-05-12  Chris Toshok  <toshok@ximian.com>
13791
13792         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
13793         invalidate the entire thumb area.  Call InvalidateDirty which
13794         limits the redraw to the thumb itself and surrounding pixels.
13795
13796         * XplatUIX11.cs (ScrollWindow): optimize copying.
13797         
13798 2006-05-12  Chris Toshok  <toshok@ximian.com>
13799
13800         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
13801         Figure out the positioning/layout in a single pass instead of
13802         multiple recursive invocations.  Speeds up the initial display of
13803         the data grid.  Also, make many things private that were
13804         originally public but unused outside this class.
13805
13806 2006-05-11  Jackson Harper  <jackson@ximian.com>
13807
13808         * MdiClient.cs: Improved layout code.
13809
13810 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
13811
13812         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
13813           not SelectedObject.
13814
13815 2006-05-11  Chris Toshok  <toshok@ximian.com>
13816
13817         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
13818         union of that will always be {0,0,width,height}.
13819
13820 2006-05-11  Jackson Harper  <jackson@ximian.com>
13821
13822         * Form.cs: Match MS's DefaultSize for forms (they must have
13823         changed the size in sp2).
13824
13825 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
13826
13827         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
13828
13829 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
13830
13831         * TextControl.cs : Fixed bug #78109. This incorrect position
13832           comparison caused crash on automatic line split.
13833         * TextBoxBase.cs : reduce duplicate code.
13834
13835 2006-05-10  Jackson Harper  <jackson@ximian.com>
13836
13837         * MdiClient.cs: Active form is only sent to the back when using
13838         the Next form functionality, when a form is clicked the current
13839         active shouldn't be sent to the back.
13840         - Layout the mdi windows when the container is first made visible.
13841         * Form.cs: Give the MdiClient a ref to the containing form when we
13842         create it.
13843         
13844 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
13845
13846         * LinkLabel.cs : link_font could be uninitialized, so populate one
13847           before actual use. Fixed bug #78340.
13848
13849 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
13850
13851         * XplatUIX11.cs : clipboard format native value is IntPtr.
13852           Fixed bug #78283.
13853
13854 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
13855
13856         * Control.cs: 
13857           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
13858             which is passed up the parent chain by DefWndProc
13859           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
13860             to DefWndProc (#77956)
13861         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
13862
13863 2006-05-10  Jackson Harper  <jackson@ximian.com>
13864
13865         * MdiClient.cs: We need to remove the controls from the mdi
13866         collection, when we close the window.
13867         * MdiWindowManager.cs: Special handling of closing mdi windows.
13868         * InternalWindowManager.cs: Make the close method virtual so the
13869         mdi window manager can handle it specially.
13870
13871 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
13872
13873         * DataGrid.cs:
13874           - Recalculate grid when the data source has changed
13875           - Matches styles provided by user from all data sources types
13876         * DataGridTableStyle.cs: For columns that provided by the user set the
13877         with the preferred value is there was unassigned.
13878         * CurrencyManager.cs: throw OnItemChanged event
13879
13880 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
13881
13882         * PictureBox.cs: Don't animate until handle is created. Start animation
13883           when handle is created.
13884
13885 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
13886
13887         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
13888           current codebase.
13889         * XEventQueue.cs: We don't need to provide the extra info
13890
13891 2006-05-10  Jackson Harper  <jackson@ximian.com>
13892
13893         * MdiClient.cs: If the mdi clients parent form has a background
13894         image set, we draw that background image for the mdi area's
13895         background.
13896
13897 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
13898
13899         * TextBoxBase.cs: Set IBeam cursor (#78347)
13900
13901 2006-05-10  Mike Kestner  <mkestner@novell.com>
13902
13903         * ToolBar.cs: fix some text padding issues with ButtonSize
13904         calculation. Update the default size to match MS documentation.
13905         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
13906         button size. Fixes #78296.
13907
13908 2006-05-10  Mike Kestner  <mkestner@novell.com>
13909
13910         * ListBox.cs: use is_visible for scrollbar positioning in case the
13911         control isn't on screen yet.  Fix off by one with Right vs Width
13912         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
13913         
13914 2006-05-10  Jackson Harper  <jackson@ximian.com>
13915
13916         * X11Dnd.cs: Drop to a control with another control on top of it.
13917         * ToolBar.cs: Work on a copy of the buttons list, so that it can
13918         be modified in click handlers. TODO: Look for similar problems in
13919         other controls.
13920
13921 2006-05-09  Jackson Harper  <jackson@ximian.com>
13922
13923         * Form.cs: Window managers need the old window state when setting
13924         window state now.
13925         * InternalWindowManager.cs: Allow the base mdi window manager to
13926         handle more of the MDI only stuff (like maximize buttons).
13927         * MdiWindowManager.cs: Fix some snafus in changing the window
13928         state.  Add all the menu functionality, for both popup and
13929         maximized menus.
13930         * MdiClient.cs: When a new form is selected the currently
13931         activated form is sent to the back, this matches MS.
13932         - Implement a new method to activate the next mdi child window.
13933
13934 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
13935
13936         * Control.cs: 
13937           - Added new InternalCapture method to allow controls to prevent
13938             the capture behaviour on the click handlers
13939           - Switched to use InternalCapture
13940         * ComboBox.cs:
13941           - Using InternalCapture to prevent mouse captures from being released
13942             on mouse button release (Fixes #78100)
13943         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
13944           returns Form borders if a caption is present. (Fixes #78310)
13945
13946 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
13947
13948         * TreeNode.cs: Changed serialization .ctor to not require every field
13949           to be present. (#78265)
13950         * OwnerDrawPropertyBag.cs: Added serialization .ctor
13951
13952 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
13953
13954         * MimeIcon.cs: for is faster than foreach for strings.
13955
13956 2006-05-05  Mike Kestner  <mkestner@novell.com>
13957
13958         * CheckedListBox.cs: update check handling code to not use selected.
13959         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
13960         behavior for visual feedback, motion response, shift/ctrl handling,
13961         and properly deal with all 4 selection modes. Updates to bounds
13962         handling logic.  Add scroll wheel support. [Fixes #77842]
13963
13964 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
13965
13966         * ListView.cs:
13967           - Moved adding of Implicit controls into .ctor. That way, subsequent
13968             creation of the controls will not cause them to think they are 
13969             toplevel windows (fixes #78200 header problem)
13970           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
13971           - Switched visibility setting of header control to use internal field
13972             to avoid triggering handle creation
13973           - Now checking if handle is created before causing a refresh when items
13974             are added (This makes us now match handle creation time with MS)
13975         * Splitter.cs: Removed loading of private splitter cursor, switched to
13976           Cursors version now that that is loading the right ones
13977         * Cursors.cs: Load proper splitter cursors from resources
13978         * Cursor.cs: Added second method of loading resource cursors for the 
13979           VS.Net users amongst us
13980
13981 2006-05-05  Mike Kestner  <mkestner@novell.com>
13982
13983         * ListView.cs: give header_control a minimum size based on the
13984         ListView size.
13985
13986 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
13987
13988         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
13989           window seems to do that with metacity, so set that type. (#78120)
13990
13991 2006-05-05  Mike Kestner  <mkestner@novell.com>
13992
13993         * ListViewItem.cs: fix Details mode checkbox layout bug.
13994         * ThemeWin32Classic.cs: draw a ListView column header for unused space
13995         at the end of the header, if it exists. [Fixes for #78200]
13996
13997 2006-05-04  Jackson Harper  <jackson@ximian.com>
13998
13999         * MdiClient.cs: Add a helper property to get the container form.
14000         * MdiWindowManager.cs: We have to make sure to use the menu origin
14001         when drawing the icons and buttons, this fixes maximized window
14002         icons/buttons on win32.
14003         * InternalWindowManager.cs: Reset the restore captions when a
14004         window goes from Maximized to Minimized and vice versa. Move the
14005         DrawMaximizedButtons into the MdiWindowManager source, tool
14006         windows can't be maximized. NOTE: This could use a little
14007         refactoring if time ever permits.
14008         
14009 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14010
14011         * TextBox.cs: Add MWFCategoryAttributes
14012         * TextBoxBase.cs: Add MWFCategoryAttributes
14013         * Form.cs: Add MWFCategoryAttributes
14014
14015 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14016
14017         * Control.cs: Add MWFCategoryAttributes
14018         * ScrollableControl.cs: Add MWFCategoryAttributes
14019
14020 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
14021
14022         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
14023           Divider is true. Fix a little glitch in PropertyToolBar
14024           drawing code
14025
14026 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
14027
14028         * Control.cs:
14029           - Dispose: Call base.Dispose, this causes the disposed event
14030             to be fired (and probably other, more important stuff)
14031           - SetVisibleCore: Set is_visible to true after creating the
14032             window so that the window still gets created invisible (if
14033             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
14034             to generate a WM_ACTIVE message
14035         * Form.cs: Call Dispose when we want to destroy the window, instead of
14036           just destroying the handle (Dispose will do that for us)
14037         * XplatUIX11.cs:
14038           - RootWindow also needs a queue, so we can properly process the
14039             property change events from RootWindow (like Activate)
14040           - Generatic synthetic WM_ACTIVE message when the active window is
14041             being destroyed
14042
14043 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
14044
14045         * LinkLabel.cs: Trigger a recalc of our label dimensions when
14046           bounds are changed
14047
14048 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
14049
14050         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
14051           for determining width and height (image might not be assigned if
14052           we're drawing an imagelist)
14053
14054 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
14055
14056         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
14057         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
14058           height from system
14059         * Theme.cs: No longer returns hardcoded menu height, instead calls
14060           new driver method
14061         * Form.cs (OnLoad): Scaling happens before triggering Load events 
14062           on MS (# 78257)
14063
14064 2006-05-01  Mike Kestner  <mkestner@novell.com>
14065
14066         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
14067
14068 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
14069
14070         * TextBoxBase.cs: Removed Fixme
14071         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
14072
14073 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
14074
14075         * XplatUIX11.cs:
14076           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
14077             the rectangle relative to the parent, considering borders. We
14078             don't really want that.
14079           - ScrollWindow: Fixed warning to be more understandable
14080         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
14081           scrollbars and scroll only the visible area
14082         * RichTextBox.cs: Removed debug output
14083
14084 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14085
14086         * NumericUpDown.cs (Text): Just use base
14087         * UpDownBase.cs: Ensure txtView is created before using it
14088
14089 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14090
14091         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
14092           casting to IntPtr to avoid 64bit overflow errors
14093
14094 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14095
14096         * Control.cs:
14097           - AllowDrop: Don't force handle creation.
14098           - CreateHandle: Added call to tell driver if we're allowed to drop
14099
14100 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14101
14102         * FileDialog.cs: Remember the last directory not only for the
14103           current instance but also for new FileDialog instances.
14104
14105 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14106         
14107         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
14108           broke sending async messages
14109
14110 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14111
14112         * XplatUIX11.cs:
14113           - ScrollWindow: Fixed method. We finally generate expose events again
14114             for scrolled areas. This was causing 'garbage' when scrolling
14115             textbox and other controls that used ScrollWindow
14116           - Switched from using the regular queue for paint events to the MS 
14117             model of 'generating' paint events when the queue is empty.
14118             We use the new XQueueEvent.Paint subclass to store which windows
14119             need painting.
14120           - AddExpose now takes the x/y/width/height of the exposed area
14121             and inserts the window into the paint queue if not already there
14122           - InvalidateWholeWindow: Switched to use new AddExpose method
14123           - UpdateMessageQueue: Added which queue to monitor for paint events
14124           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
14125             the unlikely case nothing above handles it. We reset the expose
14126             pending states to get them off the queue.
14127           - GetMessage: Now pulls a paint event if no other events are in the
14128             queue
14129           - Invalidate: Switched to new AddExpose method
14130           - PeekMessage: Updated to understand pending paint events
14131           - UpdateWindow: Fixed logic bug. We were only updating if the window
14132             didn't need updating. Also switched to sending WM_PAINT directly,
14133             like MS does.
14134         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
14135           and random access Remove(). The random access is needed to handle
14136           UpdateWindow() where a WM_PAINT is sent directly without accessing
14137           the queue.
14138         * ScrollBar.cs: Added Update() calls to cause immediate updates to
14139           allow for better feedback when scrolling. Scrollbars are small and
14140           the immediate update should make it 'feel' more responsive without
14141           slowing things down. ScrollBar still needs it's invaliate logic
14142           updated to not always invalidate the whole bar on certain changes.
14143
14144 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14145
14146         * Control.cs:
14147         (BackColor): if the control does not support a transparent background,
14148         return the default backcolor when the parent backcolor is transparent.
14149
14150 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
14151
14152         * Application.cs: Updated to new StartLoop/GetMessage API
14153         * RichTextBox.cs: Provide some output on RTF parsing errors
14154         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
14155           new queue_id argument to GetMessage and PeekMessage to allow faster
14156           handling of per-thread queues in drivers.
14157         * Hwnd.cs: Added Queue tracking and property
14158         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
14159         * XEventQueue.cs: Added thread trackingA
14160         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
14161         * XplatUIX11.cs:
14162           - Implemented new per-thread queue
14163           - GetMessage: Fixed return/break behaviour on several cases. We were
14164             returning stale messages in some cases, instead of just processing
14165             the next message
14166
14167 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14168
14169         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
14170
14171 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
14172
14173         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
14174           fixed off-by-one comparisons between Width/Height and Right/Bottom.
14175
14176 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14177
14178         * PropertyGridView.cs: Fix drop down width.
14179
14180 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14181
14182         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
14183           a mess in DrawToolBar, so I removed one of them.
14184
14185 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14186
14187         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
14188           needed (clip). Otherwise we get artifacts.
14189
14190 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14191
14192         * FixedSizeTextBox.cs: Added constructor to allow specifying which
14193           dimension is fixed
14194         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
14195           and switched FixedSizeTextBox to only be fixed vertical (#78116)
14196         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
14197           if it matches the scale base font (avoids unneeded scaling)
14198
14199 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14200
14201         * X11DesktopColors.cs: One gtk_init_check should be enough
14202
14203 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
14204
14205         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
14206           match MS behaviour
14207
14208 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14209
14210         * TextBoxBase.cs: 
14211           - Generate OnTextChanged for Backspace even if we're only deleting
14212             the current selection
14213           - When setting the Text property, only select all text if the
14214             control does not have focus when it is being set. Otherwise
14215             just place the cursor at the beginning of the control
14216
14217 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14218
14219         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
14220           Added a little helper to draw PropertyGrid ToolBar with a different
14221           border and a different BackColor.
14222         * PropertyGrid.cs: Some background parts didn't get painted with the
14223           correct background color. Added a class that helps us to draw the
14224           correct border for PropertyGridView and a class that helps us to
14225           draw ToolBars with a different backcolor
14226         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
14227
14228 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
14229
14230         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
14231         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
14232
14233 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14234
14235         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
14236           into the palette entries. Also, since we're working on a copy
14237           we needed to copy the palette back onto the bitmap.
14238         * Cursor.cs: Same fix as XplatUIWin32.cs.
14239
14240 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
14241
14242         * ImageListStreamer.cs: Need to read the var (or we're off)
14243
14244 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14245
14246         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
14247           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
14248           TextBoxBase.cs: Unused var fixes
14249         * AxHost.cs: Small 2.0 fix
14250         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
14251           as it seems that is what at least Metacity expects. This will make
14252           icons show up on 64bit platforms. We still have some 64bit size
14253           issues, though, since the startup app window size still won't match.
14254
14255 2006-04-25  Mike Kestner  <mkestner@novell.com>
14256
14257         * *.cs: cleanup newly reported exception var unused warnings.
14258
14259 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14260
14261         * ThemeWin32Classic.cs: Button image alignment now matches exactly
14262           ms
14263
14264 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14265
14266         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
14267           image. The image position is always the same, no matter if the
14268           button is pressed or not.
14269
14270 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14271
14272         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
14273           selection and set the correct filename for SaveFileDialog.
14274           Patch by Emery Conrad.
14275
14276 2006-04-24  Mike Kestner  <mkestner@novell.com>
14277
14278         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
14279         check for item.X outside the ClientRect instead of item.Y. Fixes
14280         #78151.
14281
14282 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14283
14284         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
14285         trust that value blindly and do some sanity check. Fixes bug #77814.
14286
14287 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14288
14289         * ImageListStreamer.cs: save the mask as a 1bpp image.
14290
14291 2006-04-21  Mike Kestner  <mkestner@novell.com>
14292
14293         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
14294         pass Checked and Indeterminate to the Theme Engine. Improve
14295         encapsulation with ListBox.
14296         * ListBox.cs: Keep a StringFormat instead of calculating it every item
14297         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
14298         nested types.  Move all CheckState functionality to CheckedListBox.
14299         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
14300         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
14301         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
14302         single base list. Fix scrollbar sizing and placement to mirror MS.
14303         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
14304         used.
14305         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
14306         for CheckedListBox by using new DrawItemState info.  Center the
14307         checkboxes on the items. Use new StringFormat property.
14308
14309 2006-04-18  Jackson Harper  <jackson@ximian.com>
14310
14311         * Form.cs: MdiChildren don't do default locations the same way as
14312         regular forms.  This prevents a crash when trying to position the
14313         mdi windows.
14314
14315 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
14316
14317         * PropertyGridTextBox.cs: Formatting, copyright
14318         * PropertiesTab.cs: Formatting
14319         * PropertyGrid.cs: Formatting
14320         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
14321           click toggling of values
14322           
14323 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
14324
14325         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
14326         * Control.cs (.ctor): verify_thread_handle is static, don't reset
14327           every time a control is created
14328         * Application.cs: Removed obsolete EnableRTLMirroring method
14329
14330 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
14331
14332         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
14333         SelectedIndex to -1. Fixes bug #78121.
14334
14335 2006-04-17  Jackson Harper  <jackson@ximian.com>
14336
14337         * Binding.cs: Handle null values for Current and BindingContext.
14338         This occurs when binding is a little delayed.
14339         * CurrencyManager.cs: return null for Current when there are no
14340         items in the list.
14341         - Hookup to the listchanged event on the DataView and update
14342         bindings when the list is changed.  This fixes late binding of
14343         controls.
14344
14345 2006-04-17  Jackson Harper  <jackson@ximian.com>
14346
14347         * X11Dnd.cs:
14348         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
14349         Ringenbach.
14350
14351 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
14352
14353         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
14354           place
14355         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
14356           with the correct ButtonState
14357
14358 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
14359
14360         * XplatUIX11.cs: Improved distinguishing between window types to
14361           tell the WM a type closer to what the app wants (Fixes #78107)
14362
14363 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14364
14365         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
14366           GrabHandle
14367
14368 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14369
14370         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
14371           drawing code to reflect the size grip changes
14372
14373 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14374
14375         * ImageListStreamer.cs: fix handling of the mask that follows the main
14376         bitmap when deserializing and serialize it properly. The generated mask
14377         should better be a 1bpp image, but I'll do that later.
14378
14379 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14380
14381         * FileDialog.cs: Show something in the DirComboBox on *nix if the
14382           path doesn't fit into some of our Current.Places
14383
14384 2006-04-13  Jackson Harper  <jackson@ximian.com>
14385
14386         * ComboBox.cs: Use borders instead of drawing our own decorations,
14387         try to obey correct rules for heights.
14388         * Theme.cs:
14389         * ThemeNice.cs:
14390         * ThemeClearLooks.cs:
14391         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
14392         this is now handled by borders.
14393         - Remove unused DrawListBoxDecorationSize method.
14394         
14395 2006-04-13  Mike Kestner  <mkestner@novell.com>
14396
14397         * MenuAPI.cs: null guarding for the disbled click check fixes crash
14398         reported by Alex.
14399
14400 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14401
14402         * ThemeWin32Classic.cs: 
14403           - Fixed CPDrawStringDisabled
14404           - Corrected drawing of disabled menu items
14405           - Fixed drawing of disabled radio buttons (bug #78095)
14406           - Draw check in a disabled CheckBox with color ControlDark 
14407
14408 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14409
14410         * Form.cs: Use the provided width when calculating the menu size;
14411           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
14412           and ClientSize.Width won't be updated yet
14413         * Application.cs: Use Visible instead of Show() to make form visible,
14414           this way we create the handle later and menusize is considered
14415
14416 2006-04-12  Mike Kestner  <mkestner@novell.com>
14417
14418         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
14419         reporting.
14420
14421 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14422
14423         * TextBox.cs: Implemented context menu
14424
14425 2006-04-12  Mike Kestner  <mkestner@novell.com>
14426
14427         * ListView.cs: implement box selection. fixes #77838.
14428         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
14429
14430 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14431
14432         * XplatUIX11.cs: Added setting of window type when transient window
14433           is created (metacity would move it otherwise)
14434         * X11Structs.cs: Added WINDOW_TYPE atoms
14435         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
14436           background (the control is Opaque but still wants transparent
14437           backgrounds)
14438
14439 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14440
14441         * Control.cs: Added OnPaintBackgroundInternal to allow controls
14442           that set Opaque but don't mean it (like all ButtonBase-derived
14443           controls) to still draw their background
14444         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
14445           the background
14446
14447 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14448
14449         * Control.cs (PaintControlBackground): Set the graphics object
14450           on our PaintEvent to null to prevent it from being disposed
14451           when the PaintEvent gets disposed
14452
14453 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
14454
14455         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
14456         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
14457
14458 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14459
14460         * Control.cs: 
14461           - Added transparency check to BackColor property. Transparent
14462             backgrounds are only allowed if the control styles permit it
14463           - Added recursive painting of parent control background and
14464             foreground if a control with a transparent backcolor is drawn
14465             (Thanks to Tim Ringenback for providing his 'hack' as a base
14466              for this patch) Fixes #77985 and #78026.
14467           - Added Opaque style check before calling OnPaintBackground, no
14468             need to draw the background if the control is opaque
14469           - Removed ControlAccessibleObject owner variable (inherited from
14470             base, no need to define again)
14471           - Added some documentation links explaining the drawing events
14472             and styles
14473
14474 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14475
14476         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
14477           that the affected control is the located at the left border of our
14478           parent (Fixes #77936)
14479
14480 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14481
14482         * TextBoxBase.cs: When rendering disabled or readonly controls,
14483           draw the background with 'Control' instead of 'Window' color as
14484           long as the user hasn't specifically set a color
14485
14486 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14487
14488         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
14489           since that won't be updated if the user types text (only if it's
14490           programatically set)
14491
14492 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14493
14494         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
14495           layout changes do to app-triggered resizes will have the proper
14496           display rectangle for layout
14497
14498 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
14499
14500         * ThemeWin32Classic.cs:
14501           - Make use of the SystemBrushes and SystemPens wherever possible
14502           - Corrected some highlight colors
14503           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
14504             drawing
14505         * Theme.cs: Added Empty field to CPColor struct
14506
14507 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14508
14509         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
14510           is displayed when calculating the display rectangle. Thanks to Mike
14511           for teaching me the err of my ways.
14512
14513 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
14514
14515         * ScrollableControl.cs:
14516           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
14517             (instead of 0,0) and we now return the real width/height instead of
14518             just the clientrectangle, adjusted for padding. The rectangle is
14519             now cached and created by the new CalculateDisplayRectangle method.
14520           - Created new CalculateDisplayRectange method, which basically does
14521             what get_DisplayRectangle() did originally, but now using the 
14522             right edge instead of DisplayRectangle to determine the size of
14523             our scrollbars
14524           - get_Canvas(): Fixed it to properly calculate canvas for 
14525             right/bottom controls which seem to be placed to the right/bottom
14526             of any controls that have a fixed location
14527           - Removed TODO that's taken care of
14528           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
14529             and SetDisplayRectLocation according to new MSDN2 docs
14530           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
14531             event when that is called, this is added for compatibility
14532           - ScrollControlIntoView(): Implemented.
14533           - Switched scrollbars to be implicit, they shouldn't be selectable
14534         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
14535           call it when the active control is set/changed
14536         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
14537         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
14538           implicit_control variable (used for native Win32 message generation)
14539         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
14540           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
14541         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
14542         * XplatUIStructs.cs: Added ScrollBarCommands enum
14543
14544 2006-04-10  Jackson Harper  <jackson@ximian.com>
14545
14546         * ButtonBase.cs:
14547         * CheckedListBox.cs:
14548         * ComboBox.cs:
14549         * DataGrid.cs:
14550         * DataGridView.cs:
14551         * Form.cs:
14552         * GroupBox.cs:
14553         * ListBox.cs:
14554         * PrintPreviewControl.cs:
14555         * ProgressBar.cs:
14556         * PropertyGrid.cs:
14557         * Splitter.cs:
14558         * StatusBar.cs:
14559         * TrackBar.cs:
14560         * UpDownBase.cs: Fixup base event overrides.
14561         
14562 2006-04-06  Mike Kestner  <mkestner@novell.com>
14563
14564         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
14565         all user-initiated value changes to min <= value <= max-thumbsz+1.
14566         (set_Value): check for vert/horiz when calculating new thumb position.
14567         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
14568         like MS does.
14569         (OnMouseMoveSB): refactor the thumb dragging code and refine
14570         invalidation logic to reduce flicker.
14571         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
14572         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
14573         (UpdateThumbPosition): small code readability cleanup
14574
14575 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
14576
14577         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
14578           different
14579
14580 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14581
14582         * ThemeNice.cs: Use a better graphics effect when a button is pressed
14583
14584 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14585
14586         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
14587         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
14588           This dramatically reduces the number of Pen.Dispose calls. 
14589           Where possible call ResPool methods only once instead of calling it
14590           over and over again (for example for the same color).
14591
14592 2006-04-06  Mike Kestner  <mkestner@novell.com>
14593
14594         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
14595         Also remove an unused private field on the collection. Fixes #77972.
14596
14597 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14598
14599         * ThemeNice.cs: Added ToolBar drawing code
14600
14601 2006-04-06  Mike Kestner  <mkestner@novell.com>
14602
14603         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
14604         I'm assuming that means we need to look up the toplevel for the
14605         provided control. Fixes the crash trace in #77911 but exposes another
14606         crash in some strange reflection usage in NDocGui.
14607
14608 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14609
14610         * ThemeNice.cs: Gave it a little silver touch and added Images
14611           method
14612         * FontDialog.cs: FontDialog is not resizable
14613         * FileDialg.cs: Added SizeGripStyle.Show
14614
14615 2006-04-05  Jackson Harper  <jackson@ximian.com>
14616
14617         * KeyboardLayouts.cs: Remove warning.
14618
14619 2006-04-05  Jackson Harper  <jackson@ximian.com>
14620
14621         * Control.cs: Enable OnPaintInternal so we can use it for drawing
14622         all of our controls instead of Paint +=.
14623         * ListBox.cs:
14624         * ListView.cs:
14625         * MenuAPI.cs:
14626         * MessageBox.cs:
14627         * NotifyIcon.cs:
14628         * ProgressBar.cs:
14629         * ScrollBar.cs:
14630         * Splitter.cs:
14631         * StatusBar.cs:
14632         * TabControl.cs:
14633         * TextBoxBase.cs:
14634         * ToolBar.cs:
14635         * TrackBar.cs:
14636         * UpDownBase.cs:
14637         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
14638         use OnPaintInternal. Remove Width/Height and Visible checks in
14639         paint handler, this is done at a higher level now.
14640         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
14641         * PaintEventArgs.cs: Add a handled flag so controls that don't
14642         want anymore painting after OnPaintInternal can make sure OnPaint
14643         isn't called.
14644
14645 2006-04-05  Mike Kestner  <mkestner@novell.com>
14646
14647         * Form.cs: fix the menu WndProc hacks to respect the native enabled
14648         state of the form, so that we don't process events when Modal dialogs
14649         are up. Fixes #77922.
14650
14651 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
14652
14653         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
14654           checking is done.
14655
14656 2006-04-05  Mike Kestner  <mkestner@novell.com>
14657
14658         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
14659
14660 2006-04-05  Mike Kestner  <mkestner@novell.com>
14661
14662         * ListView.cs (HeaderMouseMove): null guarding for the over column
14663         when setting up the drag_to_index.  Fixes #78015.
14664
14665 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
14666
14667         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
14668           in the taskbar. Transient windows seem to accomplish that.
14669
14670 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
14671
14672         * Form.cs:
14673           - Re-enabled CreateParams.X/Y code for FormStartPosition
14674           - Added code for manual placement when creating the Control
14675           - Incomplete patch to treat MDI forms differently when
14676             setting the ClientSizeCore. (Still need to figure out handling
14677             x/y coords there)
14678         * XplatUIX11.cs:
14679           - When we're explicitly setting the X/Y position of a non-Child
14680             window, let the WM know. Metacity really wants this.
14681
14682 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14683
14684         * ThemeNice.cs: Added CPDrawButton
14685
14686 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14687
14688         * ThemeNice.cs: Changed the color for focused buttons and activated
14689           the arrows for small scroll buttons.
14690
14691 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14692
14693         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
14694           anymore. Changed some method modifiers to protected (virtual)
14695         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
14696           changes
14697         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
14698           Updated drawing of menus, buttons and progressbars; added
14699           CPDrawBorder3D 
14700
14701 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14702
14703         * ImageListStreamer.cs: implemented serialization/deserialization
14704         of the images.
14705
14706 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
14707
14708         * ThemeWin32Classic.cs:
14709           - Removed all the DrawFrameControl stuff; CPDrawButton,
14710             CPDrawCheckBox and CPDrawRadioButton are now handled directly
14711             inside the methods
14712           - Updated and corrected the drawing code of CPDrawButton,
14713             CPDrawCheckBox and CPDrawRadioButton to better match ms
14714           - Updated theme checkbox and radiobutton code to use the CP*
14715             methods
14716
14717 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14718
14719         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
14720           bug is fixed
14721
14722 2006-03-31  Jackson Harper  <jackson@ximian.com>
14723
14724         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
14725         sometimes.
14726         * UpDownBase.cs: Don't CreateGraphics manually, use a
14727         Refresh. Ideally we would invalidate the correct areas here.
14728
14729 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14730
14731         * XplatUIX11.cs: 
14732           - We now track the mapping state of windows. If a window (or 
14733             one of it's parents) is not mapped we no longer permit
14734             WM_PAINT messages to be generated since we'd otherwise get 
14735             lots of BadMatch X errors. Jackson did all the work figuring
14736             out the problem.
14737           - Destroying the caret if the window it's contained in is 
14738             destroyed. Can't use regular DestroyCaret method since it
14739             might fall into a drawing function (trying to remove the
14740             caret) and with that generate new BadMatch errors. Again,
14741             Jackson tracked this down.
14742           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
14743             make sure we send the messages to all windows. (The old code
14744             would send the WM_DESTROY to the window, and then all child
14745             windows would be 'gone' because the WM_DESTROY handle lookup
14746             would no longer find the destroyed window)
14747         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
14748         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
14749
14750 2006-03-31  Jackson Harper  <jackson@ximian.com>
14751
14752         * ScrollableControl.cs: Dont recalc if we are not visible.
14753
14754 2006-03-31  Mike Kestner  <mkestner@novell.com>
14755
14756         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
14757         the visibility branch.
14758
14759 2006-03-31  Jackson Harper  <jackson@ximian.com>
14760
14761         * ScrollBar.cs: Cap values when incrementing/decrementing.
14762
14763 2006-03-31  Mike Kestner  <mkestner@novell.com>
14764
14765         * MenuAPI.cs: setup menu.tracker for popup/context menus.
14766         * ToolTip.cs: guard against timer expirations with no active control.
14767         Not sure why it happened.
14768
14769 2006-03-31  Mike Kestner  <mkestner@novell.com>
14770
14771         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
14772         text.
14773         * ToolTip.cs: Position the tooltip based on where the cursor is at
14774         popup time, not at MouseEnter time.  Add a Down state so that we don't
14775         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
14776         positioning offset. Lookup DisplaySize at positioning time, since it
14777         can theoretically change during invocation.
14778         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
14779         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
14780
14781 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14782
14783         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
14784           Fixes behaviour when the Text property of the box is String.Empty
14785
14786 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
14787
14788         * XplatUIX11.cs: Only send mouseleave for our client windows, not
14789           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
14790           a window)
14791
14792 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14793
14794         * FileDialog.cs: Visual enhancement for the popup buttons in 
14795           PopupButtonPanel
14796
14797 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14798
14799         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
14800           code
14801
14802 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
14803
14804         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
14805           highlighted menu items to match ms
14806
14807 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
14808
14809         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
14810
14811 2006-03-30  Mike Kestner  <mkestner@novell.com>
14812
14813         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
14814         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
14815         go active to account for HotLight to Selected transition.
14816         * MenuItem.cs: add internal Selected prop. Fill out the Status
14817         property by calculating it from item info. Add HotLight,
14818         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
14819
14820 2006-03-30  Mike Kestner  <mkestner@novell.com>
14821
14822         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
14823
14824 2006-03-29  Jackson Harper  <jackson@ximian.com>
14825
14826         * Form.cs: Implement TODO.
14827
14828 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
14829
14830         * PrintPreviewDialog.cs: Implemented missing methods and events; still
14831           missing proper dialog setup in the constructor
14832
14833 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
14834
14835         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
14836         * Control.cs:
14837           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
14838           - Fixed ResetBindings and removed TODO
14839           - Added check for cross-thread calls to get_Handle()
14840           - Added Marshaller attribute for set_Font to satisfy class status
14841         * FontDialog.cs: Removed TODOs that seemed implemented
14842         * UpDownBase.cs: Removed unneeded TODO and Fixme
14843         * MessageBox.cs: Implemented support for Default button and removed TODO
14844         * FileDialog.cs: Removed obsolete TODO
14845         * DomainUpDown.cs: Removed obsolete TODO
14846         * ButtonBase.cs: Removed obsolete TODO
14847         * XplatUIWin32.cs: Removed obsolete TODO
14848         * Form.cs:
14849           - Removed obsolete TODO
14850           - Calling CheckAcceptButton when the acceptbutton is changed to allow
14851             internal status updates
14852           - Making sure the active control is selected when the control is created
14853         * CurrencyManager.cs: Removed obsolete TODO
14854
14855 2006-03-29  Mike Kestner  <mkestner@novell.com>
14856
14857         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
14858         of PrintPreviewDialog and RichTextBox.
14859
14860 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
14861
14862         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
14863           DarkDark, Light and LightLight colors for a specific color
14864         * ThemeWin32Classic.cs:
14865           - Use Button drawing code to draw RadioButtons and CheckBoxes with
14866             Appearance = Button 
14867           - Make use of the new ResPool helper CPColor
14868           - Draw ProgressBar and StatusBar with correct 3D borders
14869
14870 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
14871
14872         * ColorDialog.cs: Return selected color. Fixes bug #77940.
14873
14874 2006-03-28  Mike Kestner  <mkestner@novell.com>
14875
14876         * ListView.cs: fix Icon layout to plan for scrollbar widths when
14877         calculating col/row counts.
14878
14879 2006-03-28  Mike Kestner  <mkestner@novell.com>
14880
14881         * ColumnHeader.cs:
14882         * ListView.cs:
14883         * ListViewItem.cs:
14884         * Menu.cs: 
14885         switch to explicit interface method implementation for some methods
14886         corcompare identifies as inconsistent with MS.
14887
14888 2006-03-28  Mike Kestner  <mkestner@novell.com>
14889
14890         * MainMenu.cs: 
14891         * Menu.cs:
14892         add a few missing methods from the class status output.
14893
14894 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
14895
14896         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
14897           correct.
14898
14899 2006-03-28  Mike Kestner  <mkestner@novell.com>
14900
14901         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
14902
14903 2006-03-27  Mike Kestner  <mkestner@novell.com>
14904
14905         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
14906         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
14907
14908 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
14909
14910         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
14911
14912 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14913
14914         * ThemeWin32Classic.cs:
14915           - GroupBox: Inserted a little gap between the text and the lines
14916             on the right side
14917           - Made the code in CPDrawBorder3D more readable
14918           - Corrected the drawing location of the up and down arrows in 
14919             CPDrawScrollButton
14920
14921 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14922
14923         * ControlPaint.cs: Corrected line widths in DrawBorder for
14924           ButtonBorderStyle Inset and Outset
14925
14926 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14927
14928         * ThemeWin32Classic.cs:
14929           - Rewrote the totally broken CPDrawBorder3D method. That was
14930             one of the main problems for the terrific ThemeWin32Classic
14931             look
14932           - Updated and corrected Button drawing
14933           - Correct the dimensions of the SizeGrip to match ms ones
14934           - Removed a small drawing glitch in DrawComboBoxEditDecorations
14935         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
14936           Border3DStyle.Sunken to match ms.
14937
14938 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14939
14940         * ThemeWin32Classic.cs: First small part of the "de-uglify
14941           ThemeWin32Classic" effort, SizeGrip
14942
14943 2006-03-24  Jackson Harper  <jackson@ximian.com>
14944
14945         * XplatUIX11.cs: Give a max idle time of one second, this matches
14946         MS and forces an Idle event every second when there are no other
14947         events in the queue.
14948
14949 2006-03-24  Mike Kestner  <mkestner@novell.com>
14950
14951         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
14952         * ListView.Item.cs: fix layout issues with null image lists and images
14953         smaller than checkbox size.
14954         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
14955         mode like MS does.  It's weird, but consistent.  ;-)
14956         Fixes #77890.
14957
14958 2006-03-24  Mike Kestner  <mkestner@novell.com>
14959
14960         * ListView.cs: Scroll wheel support for the item control.  Fixes
14961         #77839.
14962
14963 2006-03-23  Jackson Harper  <jackson@ximian.com>
14964
14965         * ScrollableControl.cs: Special case negative sized areas, not
14966         zero.
14967         * MonthCalendar.cs: Save the rect of the clicked date so we can
14968         use it for invalidation.
14969         - Try to cut down on the number of invalidates
14970         - Invalidate the rect the mouse is over and was over when moving
14971         the mouse, so we get the focus box following the cursor.
14972
14973 2006-03-23  Mike Kestner  <mkestner@novell.com>
14974
14975         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
14976         focus rectangle drawing. Fixes #77835.
14977
14978 2006-03-23  Mike Kestner  <mkestner@novell.com>
14979
14980         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
14981         the if and else if and reverting back to the original == check on the
14982         None conditional.
14983
14984 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
14985
14986         * FontDialog.cs: Update the example panel if the selected index of
14987           the fontListBox changes.
14988
14989 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
14990
14991         * FileDialog.cs: Make FileDialog remember which directory it was in
14992           last in the same execution.
14993
14994 2006-03-22  Mike Kestner  <mkestner@novell.com>
14995
14996         * FileDialog.cs: make the DropDownMenu on the toolbar display
14997         RadioChecks since they are mutually exclusive and that's what MS does.
14998
14999 2006-03-22  Mike Kestner  <mkestner@novell.com>
15000
15001         * Theme.cs: add Color param to CPDrawMenuGlyph.
15002         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
15003         checks and radio marks and arrows are visible on highlighted items.
15004         * ControlPaint.cs: update to use new Theme signature.
15005
15006 2006-03-22  Mike Kestner  <mkestner@novell.com>
15007
15008         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
15009         is active. Fixes #77870.
15010
15011 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
15012
15013         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
15014           to be focused/selected after startup
15015
15016 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
15017
15018         * ColorDialog.cs: 
15019           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
15020             CustomColors and ShowHelp properties
15021           - Some internal rewrites to get better results when using the
15022             ColorMatrix
15023
15024 2006-03-22  Mike Kestner  <mkestner@novell.com>
15025
15026         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
15027         HoverSelection.  Fixes #77836.
15028
15029 2006-03-22  Mike Kestner  <mkestner@novell.com>
15030
15031         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
15032         ToggleButtons.  (De)Sensitize the Back button around a stack count of
15033         1, not 0.  Update ButtonSize based on a pixel count of the win32
15034         control.  Adjust the toolbar size/location for new button size.
15035
15036 2006-03-22  Jackson Harper  <jackson@ximian.com>
15037
15038         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
15039         true.
15040         * ScrollBar.cs: When doing increments and decrements we need to
15041         set the Value property so that ValueChanged gets raised. A
15042         possible optimization here would be to make an internal SetValue
15043         that doesn't invalidate immediately.
15044         * ToolTip.cs: Tooltips get added to their container (when
15045         supplied) so they get disposed when the container is disposed.
15046         - Don't create tooltips for String.Empty. This prevents all these
15047         little 2-3 pixel windows from showing up when running nunit-gui
15048         and driving me mad.
15049         * Form.cs: Don't set topmost when setting the owner if the handles
15050         haven't been created yet.  The topmost set will happen when the
15051         handles are created.
15052
15053 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
15054
15055         * XplatUIX11.cs:
15056           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
15057           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
15058             visible (to allow them to recalculate their sizes)
15059
15060 2006-03-21  Mike Kestner  <mkestner@novell.com>
15061
15062         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
15063         methods. Removed a ton of redundant code.  Still not really happy with
15064         the border rendering, but I think that's mainly because of the
15065         ControlDarkDark being black instead of a dark grey. Depending on how 
15066         close we want to be, we might want to revisit those color choices.
15067         Among the new features added during the refactor were DropDownArrow
15068         pressed rendering, Disabled image rendering.  Proper flat appearance
15069         boundary rendering.  Removed the Divider and Wrapping dividers since I
15070         can't figure out any combination of themes and conditions to make the
15071         MS control draw a horizontal line on a toolbar despite what the
15072         Divider property docs indicate.
15073         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
15074         conditions and incorrect layout.  Updated to coding standard.
15075         * ToolBarButton.cs: refactored layout and positioning code from
15076         ToolBar to here.  Invalidate wherever possible instead of forcing
15077         redraws of the whole toolbar. 
15078         (Known remaining issues: explicit ButtonSize smaller than provided
15079         images.)
15080
15081 2006-03-21  Mike Kestner  <mkestner@novell.com>
15082
15083         * ContextMenu.cs (Show): use the position parameter instead of just
15084         showing at the MousePosition.
15085
15086 2006-03-21  Jackson Harper  <jackson@ximian.com>
15087
15088         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
15089         control handle this.
15090         * TreeNodeCollection.cs: If we are clearing the root node we need
15091         to reset top_node so calcs can still happen.
15092         * ThemeWin32Classic.cs: This is a Flags so we need to check
15093         properly.
15094         
15095 2006-03-21  Jackson Harper  <jackson@ximian.com>
15096
15097         * DataGrid.cs: Create columns when the binding context has been
15098         changed.
15099         * X11Structs.cs: Keysyms are uints.
15100         - Add size to fix build.
15101
15102 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
15103
15104         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15105           XplatUIOSX.cs: 
15106           - Added ResetMouseHover method to allow controls to retrigger
15107             hovering if they need it more than once
15108           - Implemented MouseHoverTime and MouseHoverSize properties
15109         * Timer.cs: Start() must reset the interval
15110         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
15111           properties
15112
15113 2006-03-21  Jackson Harper  <jackson@ximian.com>
15114
15115         * X11Keyboard.cs: improved layout detection. Move the nonchar
15116         tables into this file.
15117         * KeyboardLayouts.cs: Move the tables into resource files.
15118
15119 2006-03-21  Mike Kestner  <mkestner@novell.com>
15120
15121         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
15122
15123 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
15124
15125         * Mime.cs: Various speed optimizations. Looking up mime types
15126           is now 2 times faster than before
15127
15128 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
15129
15130         * CreateParams.cs: Added internal menu field
15131         * Control.cs: 
15132           - Switched call order for UpdateBounds; now we always call
15133             the one that also takes ClientSize, and we're calculating the 
15134             client size via driver method in the others. The previous
15135             method of tracking client size by difference wasn't working
15136             for forms where even the starting client size wouldn't match
15137             the overall form size (due to borders) (Part of fix for #77729)
15138           - CreateParams(): Do not use parent.Handle unless the handle is
15139             already created. Causes havoc with Nexxia and throws off our
15140             creation of controls
15141         * XplatUIX11.cs:
15142           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
15143           - Switched handling of ConfigureNotify over to new PerformNCCalc 
15144             method (consolidates code)
15145           - Changed RequestNCRecalc to use new PerformNCCalc method
15146           - Added calls to RequestNCRecalc when menus and borders are changed
15147             to allow app to set NC size. (Part of fix for #77729) This matches
15148             when MS send a WM_NCRECALC on Win32 windows.
15149           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
15150             (Part of fix for #77729). This matches what MS does, they also
15151             send that message when the form is made visible.
15152           - XException.GetMessage: Improved usability of X errors by including
15153             a translation of the window into Hwnd and Control class
15154           - Improved debug info for window creation, reparenting and destruction
15155           - Created helper method WindowIsMapped() [Currently not used]
15156         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
15157         * Form.cs:
15158           - CreateParams: Now setting our menu on the new internal menu field
15159           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
15160             avoid calculating the same property twice
15161         * Hwnd.cs:
15162           - Improved usability of ToString() for debugging purposes
15163           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
15164             determine the height of the menu, instead of just the font. This
15165             required to also create a graphics context and to keep a bmp 
15166             around (for performance reasons)
15167
15168 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
15169
15170         * MenuAPI.cs: Added OnMouseUp method
15171         * Form.cs:
15172           - Now remembering the requested client size, avoids size errors
15173           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
15174             instead of base if the menu is active. This is required due to
15175             control now capturing and releasing on down/up and it would
15176             prematurely release our menu capture
15177
15178 2006-03-17  Jackson Harper  <jackson@ximian.com>
15179
15180         * KeyboardLayouts.cs: Add the czech layouts.
15181
15182 2006-03-16  Jackson Harper  <jackson@ximian.com>
15183
15184         * Control.cs: Use the viewport space when sizing not the controls
15185         client size, so things like ScrollableControl that effect the
15186         viewport size (when scrollbars are added) are computed correctly.
15187         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
15188         of ManagerEntrys.
15189         - Handle creating BindingManagers for null data sources.
15190         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
15191         source, otherwise when rows are added they are added to the 'fake'
15192         datasource and we will crash when trying to set the position in
15193         those rows.
15194         - Use Implicit scrollbars on the datagrid so they arent
15195         selectable.
15196         
15197 2006-03-16  Jackson Harper  <jackson@ximian.com>
15198
15199         * Binding.cs:
15200         * InternalWindowManager.cs:
15201         * MdiWindowManager.cs:
15202         * X11Keyboard.cs: I really want Mike to love me again (fix
15203         compiler warnings).
15204
15205 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
15206
15207         * DataGrid.cs:
15208           - OnMouseDown: Switch to editing mode when clicking on the cell
15209                          even if we're clicking on the cell that's currently 
15210                          selected
15211           - ProcessGridKey: Left/Right now wrap like MS.Net does
15212           - ProcessGridKey: Tab now knows to add a new row when tab is
15213                             pressed in the cell of the last column of the 
15214                             last row
15215           - ProcessGridKey: Enter now adds another row  if pressed in the last
15216                             row and selectes the new row, same column cell
15217           - ProcessGridKey: Home/End navigate columns, not rows, like 
15218                             originally implemented
15219           - Broke ProcessKeyPreview code out into an extra Internal method
15220             so it can be called from the edit code
15221         * DataGridTextBox.cs (ProcessKeyMessage):
15222           - Switched to accept Tab keypresses
15223           - Added F2 handling to allow jumping to the end of the edited cell
15224           - Added logic to allow moving caret left/right inside edited cell
15225             and making the edited cell jump when the caret hits cell borders
15226           - Tab and Enter are now passed to the datagrid after being handled
15227         * TextBoxBase.cs:
15228           - Removed capture code now that Control handles it
15229           - set_SelectionStart now ensures caret is visible
15230
15231 2006-03-16  Jackson Harper  <jackson@ximian.com>
15232
15233         * TrackBar.cs: Debackwards the increment/decrement for handling
15234         mouse clicks on the bar with vertical trackbars.
15235         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
15236         bottom to match MS.
15237
15238 2006-03-16  Mike Kestner  <mkestner@novell.com>
15239
15240         * ListView.cs: make shift/ctrl keyboard and mouse selection 
15241         consistent with the MS control. Fix a bug in
15242         SelectedListViewItemCollection.Clear that was pissing me off for the
15243         better part of a day because the collection was being altered
15244         underneath us as we walked the list.
15245
15246 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
15247
15248         * Control.cs: Not sure how we could miss this so long, but it seems
15249           that MS.Net has Capture set all the way from before calling 
15250           OnMouseDown through sending the mouse events until after
15251           OnMouseUp. This will fix DataGrid's selection being set to end
15252           at the location of the MouseUp.
15253
15254 2006-03-15  Jackson Harper  <jackson@ximian.com>
15255
15256         * BindingContext.cs: Check the binding after its added so that it
15257           can initialize the binding managers and hookup to events.
15258         * Binding.cs: Data members seem to sometimes include rows/cols in
15259           the format Row.Column we now take this into account.
15260           - Hookup to the position changed event so we can update the
15261           control when the position has changed in the data set.
15262         * CurrencyManager.cs: Take into account the row/col naming
15263           convention when creating dataset tables.
15264         * BindingContext.cs: Using a newer better way of storing
15265           datasource/datamember pairs.  Hopefully this better matches MS for
15266           looking up binding managers.
15267
15268
15269 2006-03-15  Jackson Harper  <jackson@ximian.com>
15270
15271         * BindingContext.cs: The currency manager needs the data member
15272         name, if the member is a data set we use the name to find the
15273         correct table.
15274         * CurrencyManager.cs: When creating the list prefer an IList over
15275         an IListSource.
15276         - Attempt to create a DataTable from a DataSet (TODO: might need
15277         some better error checking here, although MS doesn't seem to have much)
15278         - If we have a DataTable create a view and use it as our list.
15279
15280 2006-03-15  Mike Kestner  <mkestner@novell.com>
15281
15282         * ListView.cs: keep a matrix of the icon mode layout to facilitate
15283         keyboard navigation. Support Up/Down/Left/Right selection correctly
15284         for all 4 View modes.
15285         * ListViewItem.cs: add internal row/col fields for icon layouts.
15286
15287 2006-03-15  Jackson Harper  <jackson@ximian.com>
15288
15289         * TabControl.cs: Redraw the tabs when we resize so their newly
15290         calculated sizes are drawn on screen.
15291         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
15292         composite characters.
15293         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
15294         - filter events so that composite characters can be created
15295         patches by peter
15296         * X11Structs.cs: Add XIMProperties enum.
15297
15298 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15299
15300         * Control.cs (BringToFront, SendToBack): Don't use window or handle
15301           unless it's created
15302
15303 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15304
15305         * Control.cs (PerformLayout): We don't need to consider visiblity
15306           for anchoring, only for docking. This fixes 'whacky' alignment
15307           in listbox and other controls that use implicit scrollbars after
15308           the previous PerformLayout patch
15309         * ListBox.cs: Switched to use implicit scrollbars
15310           
15311 2006-03-14  Mike Kestner  <mkestner@novell.com>
15312
15313         * ToolBar.cs: 
15314         * VScrollBar.cs:
15315         - chain up the "new event" overrides to base and use
15316         OnEvent to raise them.  Part of fix for bug #76509.
15317
15318 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
15319
15320         * FileDialog.cs: Do not select an item in the parent directory
15321           on backspace
15322
15323 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15324
15325         * Control.cs (PerformLayout): It would seem that we considered
15326           invisible windows for our layout. Not quite the right thing
15327           to do. Now we don't any longer, thereby fixing bug #76889.
15328
15329 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15330
15331         * Control.cs (CanFocus): I goofed. A control can have focus 
15332           even though it's not selectable. Made it match MS docs.
15333
15334 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15335
15336         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
15337           center by default (fixes #76895)
15338         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
15339           all uses of Border3DSides.All with the explicit ORd together
15340           Left|Right|Top|Bottom because I assume that nobody was aware 
15341           that All also implies a center fill. Most places I checked had
15342           a fill right above.
15343         * ProgressBarStyle.cs: Added
15344
15345 2006-03-13  Mike Kestner  <mkestner@novell.com>
15346
15347         * ListView.cs: fix breakage in drag shadow header positioning 
15348         from Peter's csc compilation fix.
15349
15350 2006-03-13  Mike Kestner  <mkestner@novell.com>
15351
15352         * ListView.cs: fix NRE produced by backspacing twice in a focused
15353         FileDialog.
15354
15355 2006-03-13  Mike Kestner  <mkestner@novell.com>
15356
15357         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
15358
15359 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15360
15361         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
15362           be changed
15363         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
15364           the allowed size before making programmatic size changes
15365
15366 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
15367
15368         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
15369           set, metacity is broken and will still use the emty sizes in 
15370           the struct. (Fix for #77089)
15371
15372 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15373
15374         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
15375           WindowExStyles and marked both enums as Flags
15376         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
15377           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
15378           to match WindowStyles split
15379         * XplatUIX11.cs:
15380           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
15381           - Updated to match WindowStyles split
15382         * XplatUIWin32.cs:
15383           - Fixed FosterParent creation, was using ExStyle on the Style field
15384             (This should help with Popup focus issues)
15385           - Updated to match WindowStyles split
15386
15387 2006-03-13  Jackson Harper  <jackson@ximian.com>
15388
15389         * MdiWindowManager.cs: Use the system menu height. Fixes some
15390         strange sizing issues.
15391
15392 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15393
15394         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
15395         * TextBoxBase.cs:
15396           - Scroll to caret after inserting text (#77672)
15397           - Make scroll range one pixel higher, fixes off-by-one error (and
15398             makes underlines visible on the last line)
15399
15400 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
15401
15402         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
15403           the keyboard state from being stuck with keys in 'pressed' state when
15404           focus is switched away via keyboard
15405         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
15406           reset the keyboard if no X11 KeyUp events are expected to come
15407         * X11Structs.cs: Switched type of Visible to bool to match driver
15408
15409 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15410
15411         * TextControl.cs:
15412           - Switched caret to be just 1 pixel wide, matches MS and looks less
15413             clunky
15414           - Moved caret display 1 pixel down from the top of the control
15415             to improve view
15416           - InsertCharAtCharet: Update the selection start if moving the caret
15417             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
15418           - No longer always creating the caret when the caret methods are
15419             called. Only the actual ShowCaret/HideCaret will do that now
15420           - Only setting caret visible if the owner control has focus
15421           - UpdateView: Added invalidation-shortcut logic for center and right 
15422             aligned text. Previously we'd update all according to the left
15423             logic which caused drawing errors. Also fixed height of invalidated
15424             areas, now properly invalidating the whole area (was off-by-one)
15425           - owner_HandleCreated: Always generate the document when the
15426             handle is created; this ensures that 
15427         * TextBoxBase.cs:
15428           - Fixed situation where caret would disappear under the right
15429             window border, also improved scrolling behaviour on left-
15430             aligned textboxes
15431           - Fixed right-aligned textboxes to have a border to the
15432             right instead of the caret being under the right border
15433         * XplatUIX11.cs:
15434           - Switched from 'nested' to simple visible/not visible tracking 
15435             for caret (part of fix for #77671)
15436           - No longer passing through translated FocusIn/FocusOut messages
15437             since we were notifying too often and the wrong windows. Instead
15438             we just notify our focussed window of receiving or loosing focus
15439         * XplatUIWin32.cs: Switched from 'nested' show/hide 
15440           counting for caret to simple visible yes/no behaviour (part of 
15441           fix for #77671)
15442
15443 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15444
15445         * Mime.cs: Remove debug code...
15446
15447 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15448
15449         * MimeGenerated.cs: Removed
15450         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
15451           and subclasses) from /usr/(local/)share/mime and
15452           $HOME/.local/share/mime.
15453
15454 2006-03-10  Jackson Harper  <jackson@ximian.com>
15455
15456         * MdiWindowManager.cs: Recalc the NC area when a window is
15457         maximized/restored so that the menu area is drawn on forms that
15458         don't have a menu.
15459
15460 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15461
15462         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15463           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
15464           us to force a WM_NCCALCRESIZE message being sent. This is needed
15465           for MDI maximizing.
15466
15467 2006-03-10  Jackson Harper  <jackson@ximian.com>
15468
15469         * Form.cs: We need to use the ActiveMenu when calculating menu
15470         height.
15471         - Fix nullref when the window manager hasn't been created yet.
15472         * Control.cs: Fix nullref when we try to bring a control to the
15473         front that has no parent.
15474         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
15475         height.
15476         - Add a dummy item to the maximized menu so it always has the
15477         correct height. Otherwise when there are no menus we don't get our
15478         icon and buttons.
15479         
15480
15481 2006-03-10  Jackson Harper  <jackson@ximian.com>
15482
15483         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
15484         stuff.
15485         * Form.cs: Make the window_state internal so the window managers
15486         can track it.
15487         - When an MDI child is maximized let its window manager create the
15488         main menu (so it can add its icon).
15489         - Notify the window managers of state changes
15490         - Let the window manager paint its buttons and handle button
15491         clicks on the menu when it is maximized.
15492         * InternalWindowManager.cs: Move the prev_bounds into the mdi
15493         window manager, since tool windows don't use it, only mdi windows.
15494         - Tell the main form that we don't want it to handle NCPAINT
15495         itself to avoid extra painting.
15496         - Handle clicks on a maximized windows menu.
15497         - Handle window state changes
15498         - Handle minimize/maximize clicks correctly by setting the window state.
15499         * MdiWindowManager.cs: Add an icon menu that (the menu you get
15500         when clicking on the forms icon).
15501         - New method to create a forms maximized menu. This is its normal
15502         menu + an icon.
15503         - Handle window state changes.
15504         - Handle sizing of maximized windows.  Maximized windows are just
15505         drawn bigger then the parent visible area. All controls are still
15506         there, they are just outside the visible area (this matches windows).
15507         * MdiClient.cs: No scrollbars when a child window is maximized.
15508         - Let the children windows figure out how big they should be when
15509         sizing maximized windows.
15510         - Implement a version of ArrangeIconicWindows somewhat similar to
15511         Windows version.  There are some little differences, but I don't
15512         think any app will rely on the layout of minimized mdi windows.
15513
15514 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15515
15516         * Padding.cs: Several fixes to allow compiling with csc 2.0
15517
15518 2006-03-09  Jackson Harper  <jackson@ximian.com>
15519
15520         * Menu.cs:
15521         * MenuItem.cs: Cheap hack so we can add items to the list without
15522         the events being raised.  This allows adding mdi items during
15523         drawing. TODO: Should probably find a better time to add the items.
15524
15525 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15526
15527         * ThemeWin32Classic.cs:
15528           - CheckBox_DrawText: Added logic to not wrap if not enough space
15529             is available (Fix for bug #77727)
15530           - RadioButton_DrawText: Added logic not to wrap if not enough
15531             space is available (Fix for bug #77727). Also removed some
15532             duplicate code, DrawString always drawing the regular text
15533             before hitting the if statement.
15534
15535 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
15536
15537         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
15538
15539 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15540
15541         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
15542         * ContainerControl.cs: Partial implementation of some 2.0 scaling
15543           methods. Moved the new 2.0 properties into alphabetical order with
15544           other properties and added MonoTODO tags
15545
15546 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15547
15548         * AutoScaleMode.cs: Added. Fix build.
15549
15550 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15551
15552         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15553           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
15554           and was requiring premature handle creation for calls from above
15555         * Form.cs, Control.cs: Removed handle arguments from calls to
15556           CalculateClientRect()
15557
15558 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15559
15560         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
15561           drag_column.column_rect is MarshalByRef and can't be used that way
15562
15563 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15564
15565         * AxHost.cs: Added deserialization constructor for 
15566           AxHost+State (fixes 77743)
15567
15568 2006-03-09  Mike Kestner  <mkestner@novell.com>
15569
15570         * ListView.cs: 
15571         - Added column drag reordering for details view.
15572         - fixed behavior when mouse is dragged off column and
15573         AllowColumnReorder is false.
15574         * ColumnHeader.cs: clone the format too in Clone.
15575         * Theme.cs: add DrawListViewHeaderDragDetails method.
15576         * ThemeWin32Classic.cs:
15577         - impl new method for drawing drag column shadows and targets.
15578         - support column offset for details mode in DrawListViewItem.
15579
15580 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15581
15582         * TextControl.cs: Reset the char_count when the document is cleared
15583           (Fixes bug reported on mono-winforms mailing list)
15584
15585 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15586
15587         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
15588           of calling base we simply process the key ourselves, since both
15589           DefWindowProc and the handled method would set m.Result. 
15590           (Fixes #77732)
15591
15592 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15593
15594         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
15595           method also moves the window; instead implemented a copy of
15596           Control.ScaleCore (Part of fix for #77456)
15597         * TextBoxBase.cs: 
15598           - Created new CreateGraphicsInternal method to allow providing
15599             a graphics context when no handle is created without triggering
15600             handle creation. (Part of fix for #77456)
15601           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15602         * TextControl.cs: 
15603           - Switched Constructor to require TextBoxBase instead of Control (to
15604             allow uncast access to CreateGraphicsInternal)
15605           - Safeguarded use of owner.Handle property. No longer accessing it
15606             unless the handle is already created.
15607           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15608           - Now triggering a recalc when owning control becomes visible
15609         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
15610           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
15611           premature handle creation (Part of fix for #77456)
15612         * Control.cs:
15613           - We now only destroy our double-buffering buffers when the
15614             control is resized or disposed, but not when visibility
15615             changes. (The code even re-created them twice every time)
15616           - Now requiring a redraw of the buffer on visibility changes
15617             (fixes bug 77654 part 2)
15618           - Not passing OnParentVisibleChanged up unless the control
15619             is visible
15620           - CanFocus: Fixed to match MS documentation
15621           - Focus: Fixed to return actual focus state and to check if
15622             setting focus is legal before setting it
15623
15624 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
15625
15626         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
15627           when to draw focus rectangle by looking at parent focus and
15628           selected state instead. This fixes TabPages on Linux sometimes
15629           having none or multiple focus rectangles.
15630         * XplatUIX11.cs (SetFocus): 
15631           - Don't set the focus if the same window already has focus
15632           - Use SendMessage instead of PostMessage (like it's Win32
15633             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
15634             to match MS behaviour
15635         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
15636           are not selectable.
15637
15638 2006-03-07  Jackson Harper  <jackson@ximian.com>
15639
15640         * PictureBox.cs: Revert line I accidently committed last week.
15641
15642 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
15643
15644         * Control.cs: 
15645           - Added new IsRecreating and ParentIsRecreating properties to
15646             allow testing if RecreateHandle has been called on ourselves
15647             or one of our parents
15648           - WndProc(WM_DESTROY): If our control handle is being recreated
15649             we immediately need to create the handle when receiving the
15650             destroy, that way our child windows find a valid parent handle
15651             when they themselves are being recreated upon WM_DESTROY receipt
15652             (fix for bug #77654 part 1)
15653         * XplatUIX11.cs:
15654           - DestroyWindow: WM_DESTROY must be sent to our own window before
15655             notifying any child windows. MS documents that child windows
15656             are still valid when WM_DESTROY is received. (Control now relies on
15657             this behaviour)
15658           - Added some fine-grain debug options
15659
15660 2006-03-06  Jackson Harper  <jackson@ximian.com>
15661
15662         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
15663         box and base calculations off this.
15664         * MdiChildContext.cs:
15665         * MdiWindowManager.cs: Don't need to ensure scrollbars here
15666         anymore.
15667         
15668 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
15669
15670         * Splitter.cs: In situations where the affected control is added
15671           to the parent's control list after the splitter, we would not
15672           populate affected. Now we try populating it on mousedown, if
15673           it's not already set, and force it to be re-set whenever our
15674           parent changes.
15675
15676 2006-03-03  Matt Hargett  <matt@use.net>
15677
15678         * Control.cs: implement Control.Padding
15679         * Padding.cs: -Padding.All returns -1 when constructing with the
15680         implicit default ctor
15681         -Padding.ToString() matches MS.NET
15682         * ContainerControl.cs: implement
15683         ContainerControl.AutoScaleDimensions
15684         * ListControl.cs: implement ListControl.FormattingEnabled
15685         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
15686         * ButtonBase.cs:
15687         * TabPage.cs: Implement UseVisualStyleBackColor.
15688         * PictureBox.cs: Implement PictureBox.InitialImage.
15689
15690 2006-03-03  Mike Kestner  <mkestner@novell.com>
15691
15692         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
15693         event declarations to proxy to base event.
15694         * ListViewItem.cs: update to use ItemControl.
15695         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
15696         * ThemeWin32Classic.cs: update to new ListView theme API and fix
15697         column header label rendering for 0 width columns.
15698
15699 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
15700
15701         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
15702           that causes the control to be created. Fixes #77476.
15703
15704 2006-03-02  Jackson Harper  <jackson@ximian.com>
15705
15706         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
15707         expose_pending.
15708
15709 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
15710
15711         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
15712           passed in for the EventArgs (fixes #77690)
15713
15714 2006-03-01  Jackson Harper  <jackson@ximian.com>
15715
15716         * ScrollBar.cs: Refresh afterbeing resized.
15717
15718 2006-02-28  Mike Kestner  <mkestner@novell.com>
15719
15720         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
15721         Clean up a tracker compile warning.
15722         * MenuItem.cs: add internal PerformPopup method.
15723         [Fixes #77457]
15724
15725 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15726
15727         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
15728           implicit expose) when the text is set to null
15729
15730 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
15731
15732         * RichTextBox.cs (FlushText): When newline is true, we always
15733           need to split the line, even if no text is on it and we may
15734           never eat newlines. (Fixes #77669)
15735
15736 2006-02-28  Mike Kestner  <mkestner@novell.com>
15737
15738         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
15739         and set Selected instead.
15740         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
15741         collections.
15742
15743 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15744
15745         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
15746
15747 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
15748
15749         * FontDialog.cs:
15750           - Got rid of the panel. All controls are now directly added to
15751             the dialog form
15752           - It is now possible to set a font with the Font property
15753           - MinSize and MaxSize property do now what they should
15754           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
15755           - Searching and selecting a font with the font textbox works now,
15756             the same applies to the style and size textbox
15757           - Draw the correct 3D border in the example panel
15758           - Fixed a little mem leak (unused fonts didn't get disposed)
15759           - Many other internal updates/rewrites...
15760           - Fix typo
15761
15762 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
15763
15764         * TextControl.cs: 
15765           - InsertRTFFromStream: Added 'number of characters inserted' argument
15766           - set_SelectedRTF: Now using the number of characters to calculate
15767             the new location for the selection and cursor (x/y cannot be used
15768             due to potentially already wrapped text)
15769
15770 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
15771
15772         * TextControl.cs: Added property and implemented means to allow 
15773           disabling recalculation of a document (can be used to speed up
15774           multiple inserts and is needed to make RTF inserts predictable, see
15775           bug #77659)
15776         * RichTextBox.cs: Using the new NoRecalc property of Document to
15777           keep x/y insert locations predictable. Also makes it faster inserting
15778           large chunks of RTF
15779
15780 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
15781
15782         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
15783           it's easier for a child control to handle the other messages without
15784           having to duplicate the special functionality
15785         * TextBoxBase.cs
15786           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
15787             code to handle processing the key ourselves, in order to get 
15788             access to the result of KeyEventArgs.Handled. We now only call 
15789             ProcessKey if they key hasn't been handled already. Fixes #77526.
15790           - set_Text: If null or empty string is given, just clear the 
15791             document. Fixes part of #77526
15792
15793 2006-02-27  Jackson Harper  <jackson@ximian.com>
15794
15795         * SizeGrip.cs: Paint the background color before painting the grip
15796         so things look right.
15797         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
15798
15799 2006-02-27  Mike Kestner  <mkestner@novell.com>
15800
15801         * ListView.cs:
15802           - Restructure layout and invalidation model to remove a ton of
15803           flicker from the control and speed up performance in general.
15804           - Add manual column resize, flickers like crazy, but I already have
15805           some ideas on how I'll fix that. (#76822)
15806           - Merge the three Icon-based views into a single layout method.
15807           - Move item selection interaction logic from the item since 
15808           interaction with the collections is more appropriate to the view.
15809           - Deselection on non-item clicks.
15810         * ListViewItem.cs:
15811           - Encapsulate most of the layout. Add some internal props to trigger
15812           layout.  Move to a model where Items invalidate themselves instead
15813           of just invalidating the whole control every time something changes.
15814           - Invalidate on Text/Caption changes.
15815           - switch to an offset based layout model to avoid having to absolute
15816           position every element on item moves.
15817           - correct checkbox layout to conform to MS layout.
15818         * ThemeWin32Classic.cs:
15819           - refactor some column header drawing code.
15820           - fix string justification for column headers (#76821)
15821           - make SmallIcon labels top justified for compat with MS impl.
15822         * ThemeClearlooks.cs:
15823           - adjust to new ListViewItem internal checkbox bounds api.
15824
15825 2006-02-27  Jackson Harper  <jackson@ximian.com>
15826
15827         * Control.cs:  Change where implicit controls fall in the zorder.
15828         They are now on top of all children.
15829         - Synced AddImplicit code with Add
15830         - Removed unused enumerator.
15831         * SizeGrip.cs: Remove the TODO as its been TODONE.
15832
15833 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
15834
15835         * TextControl.cs(Insert): Combine the last lines unless the insertion
15836           string ends with \n\n, otherwise we leave one line too many (Fixes
15837           something I noticed with the testapp for #77526; the bug itself was
15838           already fixed in the previous checkin)
15839
15840 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
15841
15842         * RichTextBox.cs:
15843           - SelectionColor and SelectionFont methods no longer set absolute
15844             styles. Instead, the keep font or color respectively (This 
15845             resolves a long-standing FIXME in the code)
15846           - When flushing RTF text, the insert code now considers text trailing
15847             behind the insertion point (Fixes the bug where when replacing
15848             the selected text via SelectedRTF the remainder of the line behind 
15849             the selection would stay on the first insertion line)
15850         * TextBoxBase.cs:
15851           - AppendText now updates the selection points after inserting text
15852           - AppendText now ensures that the last tag (sometimes 0-length) of
15853             the document is used for the style information (Fixes part of 
15854             bug #77220)
15855         * TextControl.cs:
15856           - Created new FontDefiniton class to allow describing partial style
15857             changes
15858           - StreamLine() now takes a lines argument, to allow it to decide
15859             whether an encountered zero-length tag is the last in the document
15860             (which must be kept to not loose the font/color contained in it,
15861             for later appends)
15862           - Created Combine() and Split() methods for Marker structs, to 
15863             support marker updates due to reformatted documents (soft line
15864             wraps)
15865           - Implemented Document.CaretTag setter
15866           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
15867             of the last line (Not the cause, but also exposed by bug #77220)
15868           - Added LineTag argument to InsertString method, to allow callers
15869             to force a certain tag to be used (required to force use of the
15870             trailing zero-length tag of a document)
15871           - Now updating markers in Combine(), to avoid stale tag markers
15872           - Added some method descriptions to aid maintenance
15873           - Implemented new FormatText concept, allowing additive/subtractive
15874             formatting by only specifying the components that are to be 
15875             changed. This was needed for resolving the RTB.SelectedColor/
15876             RTB.SelectedFont fixmes
15877           - Added Break() support method to allow breaking up linetags (used
15878             for partial formatting)
15879           - Added GenerateTextFormat() method. It is used for partial 
15880             formatting and allows to generate a full font/color from given
15881             attributes and an existing tag.
15882
15883 2006-02-26  Jackson Harper  <jackson@ximian.com>
15884
15885         * XplatUIX11.cs:  Use the correct caption height.
15886         - Translate hittest coordinates to screen coords to match MS.
15887         * XplatUIWin32.cs: When we create MDI windows we need to reset
15888         some of the style flags, so we get a nice blank window, and can
15889         draw all the decorations ourselves.
15890         - Set a clipping rectangle on the non client paint event, the
15891         window manager drawing code needs one.
15892         * Form.cs: The window manager needs to know when the window state
15893         has been updated.
15894         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
15895         don't need to factor in border and title sizes in these
15896         methods. TODO: Remove the args and fix the call points.
15897         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
15898         properly.
15899         - Let the driver set the cursors.
15900         - Improve active window handling
15901         - Correct sizes for title bars and buttons.
15902         - Match MS drawing better
15903         * MdiWindowManager.cs: We don't need to handle border style
15904         updates specially anymore.
15905         - Check for scrollbars when windows are done moving
15906         - Handle Active properly.
15907         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
15908         correctly. I am spewing the exception though, so we don't hide the
15909         bugs.
15910         
15911 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
15912
15913         * DataGridViewRowPostPaintEventArgs.cs,
15914           DataGridViewCellPaintingEventArgs.cs,
15915           DataGridViewRowCollection.cs,
15916           DataGridViewRowPrePaintEventArgs.cs,
15917           DataGridViewCell.cs: Clear a few warnings and implement a few
15918           exceptions that should be thrown.
15919
15920 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
15921
15922         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
15923           'inheriting' our parent's (non-default) cursor. (Part of
15924            the fix for #77479)
15925
15926 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
15927
15928         * XplatUIX11.cs: Fixed cast to make csc happy
15929
15930 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
15931
15932         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
15933           it's for the client area (part of fix for #77479 and needed
15934           for MDI window cursor handling)
15935         * XplatUIX11.cs
15936           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
15937             the appropriate default cursors and also passing the message
15938             up the parent chain 
15939           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
15940             for non-client areas
15941
15942 2006-02-15  Jackson Harper  <jackson@ximian.com>
15943
15944         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
15945         is a real MDI window
15946
15947 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
15948
15949         * X11DesktopColors.cs: Instead of checking the desktop session
15950           string for "KDE" check if it starts with "KDE"
15951
15952 2006-02-10  Jackson Harper  <jackson@ximian.com>
15953
15954         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
15955         systems).
15956
15957 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
15958
15959         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
15960           errors
15961         * ColorDialog.cs:
15962           - Got rid of the panel. All controls are now directly added to
15963             the dialog form
15964           - Changed to mono coding style
15965
15966 2006-02-10  Jackson Harper  <jackson@ximian.com>
15967
15968         * InternalWindowManager.cs: We don't need the set visibility to
15969         false hack anymore now that peter has written beautiful shutdown
15970         code.
15971
15972 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
15973
15974         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
15975           where already explicitly destroyed
15976
15977 2006-02-10  Jackson Harper  <jackson@ximian.com>
15978
15979         * MdiClient.cs: Handle the case where windows are too high or to
15980         the left and we need scrollbars.
15981
15982 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
15983
15984         * MimeIcon.cs: Added some icons
15985         * FileDialog.cs:
15986           - Fixed bug #77477
15987           - Got rid of the panel. All controls are now directly added to
15988             the dialog form
15989           - Changed to mono coding style
15990           - On Linux "My Computer" and "My Network" will now show some
15991             more usefull information. A new class, MasterMount, gathers
15992             this information from /proc/mount. Updated MWFFileView to make
15993             use of this information
15994           - Fixed a bug that caused FileDialog to crash when
15995             ".recently_used" file had a zero size
15996           - FilterIndex does now what it should
15997           - Some Refactoring
15998         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
15999             FileDialog changes
16000
16001 2006-02-09  Jackson Harper  <jackson@ximian.com>
16002
16003         * ComboBox.cs: Don't touch if null.
16004
16005 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
16006
16007         * Cursor.cs: 64bit safeness fix
16008         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
16009
16010 2006-02-09  Jackson Harper  <jackson@ximian.com>
16011
16012         * Form.cs: If a form is made into an MDI form update the styles so
16013         all the props can get set correctly.
16014         - Kill the mdi_container when we dont need it anymore.
16015         * InternalWindowManager.cs: Add missing NOT
16016
16017 2006-02-08  Jackson Harper  <jackson@ximian.com>
16018
16019         * InternalWindowManager.cs: Respek clipping when drawing MDi
16020         decorations.
16021
16022 2006-02-08  Jackson Harper  <jackson@ximian.com>
16023
16024         * Hwnd.cs: Add bits to track non client expose events.
16025         * XplatUIX11.cs: Track non client expose events on the hwnd. This
16026         gives us a proper invalid rect and will allow for some nice
16027         optimizations with NC client drawing
16028         - MDI windows are children windows, so move their style handling
16029         into the child window block.
16030         * InternalWindowManager.cs: Remove a state reset that was
16031         getting invoked at the wrong time. Fixes managed windows getting
16032         into a 'stuck' captured state.
16033
16034 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
16035
16036         * TextControl.cs (Document.ctor): Now initializing 
16037           selection_anchor. Fixes #77493
16038
16039 2006-02-07  Jackson Harper  <jackson@ximian.com>
16040
16041         * TrackBar.cs: The increment/decrements were backwards.
16042
16043 2006-02-07  Mike Kestner  <mkestner@novell.com>
16044
16045         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
16046         to the instance itself.
16047
16048 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
16049
16050         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
16051           on ulongs and pointers, the size differs between 32bit and 64bit
16052           systems. 
16053
16054 2006-02-07  Mike Kestner  <mkestner@novell.com>
16055
16056         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
16057         for 64 bit platforms to work around a metacity bug. 
16058
16059 2006-02-07  Jackson Harper  <jackson@ximian.com>
16060
16061         * TrackBar.cs: Process the input keys we need, and hookup to
16062         KeyDown instead of using WndProc, so we get key messages.
16063
16064 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
16065
16066         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
16067           machine we're on. 
16068         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
16069           we need to translate the XdndVersion atoms array before sending it
16070
16071 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
16072
16073         * XplatUIX11.cs: 
16074           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
16075             number of bits for the property, not the number of bytes. The
16076             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
16077             but would not crash since it specified 8 bits instead of 4 bits)
16078           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
16079             defined as XID -> long in the C headers)
16080           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
16081             references since those are now IntPtr to begin with
16082           - Switched all Atom.XXX 'int' casts to IntPtr casts
16083           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
16084           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
16085           - Added XChangeActivePointerGrab DllImport (for X11DnD)
16086         * X11Structs.cs:
16087           - Changed 'int' type for Atoms in XEvent structures to IntPtr
16088           - Changed atom in HoverStruct to be IntPtr
16089         * X11DnD.cs:
16090           - Removed local DllImports, switched code to use those from XplatUIX11
16091           - Removed/fixed casts related to the switch of Atom to be a IntPtr
16092
16093 2006-02-06  Mike Kestner  <mkestner@novell.com>
16094
16095         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
16096         method signatures in the import region.  There may still be some
16097         lingering struct marshaling issues, as I didn't drill down into those.
16098         Yet.
16099
16100 2006-02-06  Jackson Harper  <jackson@ximian.com>
16101
16102         * ComboBox.cs: Dont manually set the top_item, this is computed
16103         when the scrollbar position is set.
16104
16105 2006-02-06  Mike Kestner  <mkestner@novell.com>
16106
16107         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
16108         startup crashes on amd64.  There's other fixes needed.  All pinvoke
16109         usage of Atom needs to be mapped to IntPtr for example.  And there are
16110         likely other int/long issues to be addressed.
16111
16112 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
16113
16114         * FileDialog.cs: One more...
16115
16116 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16117
16118         * FileDialog.cs: Next try
16119
16120 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16121
16122         * FileDialog.cs: First part of fix for #77464
16123
16124 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16125
16126         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
16127           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
16128           AcceptButton border drawing.
16129
16130 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
16131
16132         * Form.cs: Moved positioning of form after auto scaling is applied,
16133           otherwise it would possibly use wrong form size.
16134
16135 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
16136
16137         * Control.cs (RecreateHandle): No need to re-create any child
16138           controls, the child windows will get destroyed automatically by
16139           the windowing system or driver, and re-created when the handle
16140           is being accessed the first time. Fixes #77456
16141         * Form.cs: No longer setting the form to closing if the handle is 
16142           being recreated. This seems like the right thing to do, don't
16143           have a bug or testcase for this, though.
16144
16145 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16146
16147         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
16148           controls to avoid unwanted side effects
16149
16150 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
16151
16152         * Control.cs: 
16153           - ScaleCore needs to scale the bounds, not the ClientSize of the 
16154             control. Fixes #77416.
16155           - DefaultSize is 0,0 for control
16156         * TextBoxBase.cs: 
16157           - DefaultSize is 100, 20
16158           - SetBoundsCore: Now enforcing the height, no matter if the provided
16159             height is more or less than the preferred one, as long as AutoSize
16160             is on
16161         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
16162
16163 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16164
16165         * Control.cs:
16166           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
16167             call unless both performLayout is true *and* we have a pending
16168             layout change
16169           - ResumeLayout: MS does not completely nest Suspend and Resume,
16170             they bottom out at 0, fixed our code to match that.
16171           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
16172             SetBoundsCore, we were updating even when we shouldn't. This fixes
16173             swf-anchors mis-anchoring when resizing the app fast and lots.
16174           - UpdateDistances: Now only setting the left and top distance if 
16175             we have a parent and are not suspended, this is based on
16176             a suggestion by Don Edvaldson in bug #77355.
16177           - OnVisibleChanged: Fixed logic when to create the control. We may
16178             not create the control if we have no parent or if it's not visible;
16179             switched to using Visible property instead of is_visible field 
16180             since the property also considers parent states. This fixes a bug
16181             when starting Paint.Net
16182
16183 2006-02-02  Jackson Harper  <jackson@ximian.com>
16184
16185         * Form.cs: If the forms handle hasn't been created yet don't call
16186         into xplatui to make it top most, just set the topmost flag on the
16187         form in CreateParams
16188         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
16189
16190 2006-02-01  Jackson Harper  <jackson@ximian.com>
16191
16192         * ScrollableControl.cs: Refactored the Recalculate method a
16193         little, this wasn't handling all the variants of bottom and right
16194         bars needed to be added and added/removed based on their
16195         counterparts being added/removed (which changes the drawable
16196         size). Also we special case client widths and heights of 0 and
16197         don't add the scrollbar for those.
16198
16199 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
16200
16201         * XplatUIX11.cs: 
16202           - Added method to get AbsoluteGeometry(); currently unused, but might
16203             be used in the future, if we try again to figure out toplevel
16204             coordinates with some more crappy window managers
16205           - Added FrameExtents() method to retrieve the WM set decoration size
16206           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
16207             to deal with at least KDE, FVWM and metacity (Fixes #77092)
16208         * Hwnd.cs: 
16209           - Added whacky_wm tracking var for metacity
16210           - Added logic to have default menu height if the actual menu height
16211             has not yet been calculated (part of fix for #77426)
16212         * Form.cs: Keep track whether client size has been set and re-set 
16213           it if a menu is added/removed afterwards (Fixes #77426)
16214
16215 2006-01-31  Jackson Harper  <jackson@ximian.com>
16216
16217         * Control.cs: When a new Site is set on the component attempt to
16218         pull the AmbientProperties from it.
16219
16220 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
16221
16222         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
16223           in the background of the owning form. Fixes #77332
16224
16225 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16226
16227         * MimeIcon.cs: Fix for #77409
16228
16229 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16230
16231         * XplatUIX11GTK.cs: Initial import
16232
16233 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
16234
16235         * FixedSizeTextBox: fixes class signature
16236
16237 2006-01-30  Jackson Harper  <jackson@ximian.com>
16238
16239         * FixedSizeTextBox.cs: New internal class that represents a
16240         textBox that will not be scaled.
16241         * TreeView.cs:
16242         * ComboBox.cs:
16243         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
16244         standard TextBox.
16245                 
16246 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
16247
16248         * XplatUIX11.cs: Retrieve default screen number instead of
16249           assuming 0. Attempted fix for #77318
16250
16251 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
16252
16253         * XplatUIWin32.cs: 
16254           - GetWindowPos: When a window is parented by FosterParent, use 
16255             the desktop instead of FosterParent as the base to get coordinates
16256           - CreateWindow: Don't make FosterParent the parent window for Popups
16257             if we don't want a taskbar entry, Popups automatically don't get one
16258         * Hwnd.cs: Need to call remove to actually remove the key from the
16259           hash table
16260
16261 2006-01-30  Mike Kestner  <mkestner@novell.com>
16262
16263         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
16264
16265 2006-01-30  Jackson Harper  <jackson@ximian.com>
16266
16267         * TreeView.cs:
16268         * TreeNode.cs: Raise events no matter how the treenode is
16269         checked. Patch by Don Edvalson.
16270
16271 2006-01-30  Jackson Harper  <jackson@ximian.com>
16272
16273         * TreeNode.cs: Signature fix.
16274
16275 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
16276
16277         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
16278
16279 2006-01-20  Mike Kestner  <mkestner@novell.com>
16280
16281         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
16282         event forwarding when menus are active.
16283         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
16284         Most of the patch is pdb's with a little rework.
16285
16286 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16287
16288         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
16289           Removed GetMenuDC and ReleaseMenuDC methods; replaced
16290           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
16291         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
16292         * InternalWindowManager.cs: Added use of PaintEventStart/End to
16293           handling of WM_NCPAINT message, now passing the PaintEventArgs to
16294           the PaintWindowDecorations method
16295         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
16296         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
16297         * MenuAPI.cs: Made tracker window invisible
16298         * XplatUIWin32.cs:
16299           - Removed GetMenuDC and ReleaseMenuDC methods
16300           - Implemented the client=false path for PaintEventStart and
16301             PaintEventEnd
16302
16303 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16304
16305         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
16306         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
16307           styles
16308         * Form.cs: 
16309           - MaximizeBox, MinimizeBox: Recreate the handle when setting
16310             the style
16311           - CreateParams: Reworked the styles to match MS look'n'feel,
16312             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
16313             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
16314
16315 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16316
16317         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
16318           window is not mapped, since otherwise every form that's being 
16319           created is considered minimized, which is wrong.
16320         * Form.cs: Catching the exception and returning our internal value
16321           instead
16322
16323 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16324
16325         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
16326           SetWindowMinMax() to have means to tell the driver about the minimum,
16327           maximum and maximized state window sizes. (Part of the fix for #76485)
16328         * Form.cs:
16329           - Implemented tracking of minimum and maximum window size, now calling
16330             new SetWindowMinMax() driver method to tell the driver (Part of the
16331             fix for #76485)
16332           - Finished handling of WM_GETMINMAXINFO method, now setting all values
16333             (Completes fix for #76485)
16334           - Calling new SetWindowMinMax driver method when the handle for a 
16335             form is created, to make sure the driver knows about it even if
16336             the values have been set before the window was created
16337           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
16338             to avoid messing up our anchoring calculations (partial fix
16339             for #77355)
16340         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
16341         * XplatUIX11.cs:
16342           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
16343           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
16344             (and presumably other freedesktop.org compliant WMs). Left the
16345             assumption unmapped=minimized, needed for SetVisible to work.
16346           - Now setting the window state when creating windows
16347           - Fixed SetVisible to consider/set the window state when mapping
16348             a Form. We cannot set the state before it's mapped, and we cannot
16349             use Form.WindowState once it's mapped (since it would ask the
16350             driver and get 'normal'. Therefore, we grab the state before
16351             mapping, map, and then set state.
16352           - Implmemented SetWindowMinMax method; Metacity does not seem to
16353             honor the ZoomHints, though.
16354         * XplatUIWin32.cs:
16355           - Removed MINMAXINFO (moved to XplatUIStructs)
16356           - Added SetWindowMinMax stub (on Win32 the only way to set that
16357             information is in response to the WM_GETMINMAXINFO message, which
16358             is handled in Form.cs)
16359           - Added logic to SetVisible to set the proper window state when a 
16360             form is made visible (fixes #75720)
16361
16362 2006-01-26  Jackson Harper  <jackson@ximian.com>
16363
16364         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
16365         same way we handle them with Invoke.
16366
16367 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
16368
16369         * Form.cs:
16370           - Added tracking of window state so CreateParams can return
16371             the appropriate style
16372           - Moved setting of WS_CAPTION style in CreateParams to allow
16373             styles without caption
16374         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
16375           control if the TextBox property is accessed. Fixes #77345
16376         * Control.cs:
16377           - get_Created: now uses is_disposed and is_created to determine
16378             return value (suggested by Jackson)
16379           - CreateHandle: No longer exits if the handle is being recreated
16380           - RecreateHandle: If the handle is not yet created call the 
16381             appropriate method to create either control or handle. If the
16382             control is already created CreateHandle will simply exit instead
16383             of just creating the handle
16384         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
16385           now SendMessage WM_DESTROY directly to the control when DestroyWindow
16386           is called.
16387         * XplatUIX11.cs: 
16388           - When DestroyWindow is called, instead of waiting for the 
16389             DestroyNotification from X11, we directly post it to the WndProc
16390             and immediately dispose the hwnd object.
16391             Same applies to DestroyChildWindows, and this obsoletes the
16392             expose_pending tracking. Contrary to Win32 behaviour we destroy our
16393             child windows before our own, to avoid X11 errors.
16394           - Removed the direct sending of WM_PAINT on UpdateWindow
16395         * XplatUIWin32.cs:
16396           - Reworked DoEvents and GetMessage to allow access to internal queue
16397             even when trying non-blocking access to the queue.  Fixes #77335. 
16398             Based on a patch suggestion by Don Edvalson. The new private
16399             GetMessage can now also be used as a backend for a PeekMessage
16400             frontend version.
16401         * XplatUI.cs: Improved debug output for CreateWindow
16402
16403 2006-01-25  Jackson Harper  <jackson@ximian.com>
16404
16405         * Help.cs: Allow param to be null. Patch by Don Edvalson.
16406
16407 2006-01-24  Jackson Harper  <jackson@ximian.com>
16408
16409         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
16410         when we have a MaxDropItems lower then the selected index.
16411
16412 2006-01-24  Jackson Harper  <jackson@ximian.com>
16413
16414         * Control.cs: Don't allow selection of non visible controls, allow
16415         selection of controls without parents.
16416
16417 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16418
16419         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
16420         * DataGridDrawingLogic.cs: Add editing row only when is necessary
16421
16422 2006-01-23  Jackson Harper  <jackson@ximian.com>
16423
16424         * UpDownBase.cs: Make the textbox handle all the selection and
16425         tabbing. This fixes tabing to updown controls.
16426
16427 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16428
16429         * TextBoxBase.cs: fixes exception thown the object was null
16430
16431 2006-01-23  Jackson Harper  <jackson@ximian.com>
16432
16433         * ButtonBase.cs: Just use the base CreateParams. They set
16434         visibility and enabled correctly.
16435         * ComboBox.cs:
16436         * TrackBar.cs:
16437         * MonthCalendar.cs: Lets let the base set as much of the
16438         createparams as possible so we don't have duplicate code all over
16439         the place.
16440
16441 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
16442
16443         * ThemeGtk.cs: Added TrackBar and some experimental code to
16444           get double buffering back
16445
16446 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
16447
16448         * DataGrid.cs: Allows row number set internally higher than the last
16449         when creating a new row. Restores the editing functionality.
16450
16451 2006-01-20  Mike Kestner  <mkestner@novell.com>
16452
16453         * MimeIcon.cs: delay Image creation until the icons are accessed
16454         instead of creating 190 scaled images on GnomeHandler startup.
16455
16456 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
16457
16458         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
16459           first call base before processing the event. Fixes #77279
16460
16461 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
16462
16463         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
16464           that the stride for the GDI bitmap would match the stride of
16465           a DIB or a Cursor.
16466
16467 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
16468
16469         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
16470
16471 2006-01-19  Jackson Harper  <jackson@ximian.com>
16472
16473         * ComboBox.cs: Hookup the text controls keydown event so we get
16474         those when the text control has the focus.
16475
16476 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16477
16478         * Label.cs: Now using the base events instead of defining new ones;
16479           this allows us to just call the base properties without having to
16480           duplicate all base property logic 
16481
16482 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16483
16484         * Label.cs: A label by default is not a tabstop (Fixes one of our
16485           failing nunit tests)
16486
16487 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16488
16489         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
16490         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
16491
16492 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16493
16494         * Cursor.cs: Reimplemented creating cursor bitmaps without using
16495           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
16496           This fixes #77218
16497         * XplatUIWin32.cs: 
16498           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
16499             constructor creates images that can't be saved. Part of the fix
16500             for #76103
16501           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
16502           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
16503             bug fix for handling window state in forms properly)
16504
16505 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16506
16507         * ThemeGtk.cs: Simplify ScrollBar drawing
16508
16509 2006-01-18  Jackson Harper  <jackson@ximian.com>
16510
16511         * Splitter.cs: Set the default dock style for the splitter control
16512         in the constructor.
16513
16514 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16515
16516         * ThemeGtk.cs: Corrected StateType and ShadowType for
16517           gtk_paint_box
16518
16519 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16520
16521         * Control.cs: Make use of Theme.DoubleBufferingSupported
16522         * ThemeGtk.cs:
16523           - Added drawing for flat style buttons
16524           - Added ScrollBar drawing
16525
16526 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16527
16528         * ThemeClearlooks.cs: Removed some unneeded code.
16529         * ThemeGtk.cs: First part of ThemeGtk enhancements.
16530
16531 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16532
16533         * LinkLabel.cs: We need to update the hover drawing when
16534           leaving the control as well.
16535
16536 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
16537
16538         * DataGrid.cs: Clicking on non empty areas in the columns
16539            area was giving an exception
16540
16541 2006-01-17  Jackson Harper  <jackson@ximian.com>
16542
16543         * ThemeWin32Classic.cs:
16544         * ListView.cs: Do not draw/clip the headers when the header style
16545         is None.
16546
16547 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16548
16549         * DataGrid.cs: Fixes 77260
16550         
16551 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16552
16553         * DataGrid.cs: Clicking on a column on a empty grid was giving
16554           an exception
16555
16556 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16557
16558         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
16559           or any keypress will crash the grid.
16560
16561 2006-01-17  Mike Kestner  <mkestner@novell.com>
16562
16563         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
16564         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
16565         invisible/previously-visible items.
16566         [Fixes #76909]
16567
16568 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
16569
16570         * ThemeClearlooks.cs:
16571         - Added CL_Draw_Button method; now other theme controls that are 
16572           not derived from button or do not have a button can draw buttons
16573           too
16574         - Updated ComboBox drawing
16575         - Beautified RadioButton drawing
16576         - Corrected drawing of bottom and left tabs
16577         - Beautified DateTimePicker and MonthCalendar
16578         - Added CPDrawButton and CPDrawRadioButton
16579
16580 2006-01-16  Jackson Harper  <jackson@ximian.com>
16581
16582         * ComboBox.cs: Set the initial value of the scrollbar to the
16583         current index. Reduce the numbers of refreshs and IndexOfs called.
16584
16585 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
16586
16587         * FileDialog.cs: When the file listview is focused hitting the
16588           backspace key moves the fileview to the parent directory
16589
16590 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16591
16592         * Form.cs: 
16593           - Added RecreateHandle call when changing taskbar visibility to 
16594             trigger reparenting in Win32 driver (Fixes #75719)
16595           - If a window has minimize or maximize buttons, it cannot have
16596             a help button
16597         * XplatUIWin32.cs:
16598           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
16599             the toplevel form with FosterParent (A toolwindow not on the
16600             taskbar) (Fixes #75719)
16601           - Made FosterParent a toolwindow
16602
16603 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16604
16605         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
16606
16607 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16608
16609         * ToolTip.cs: If SetToolTip is called from a control and the mouse
16610           is currently over that control, make sure that tooltip_window.Text
16611           gets updated
16612
16613 2006-01-13  Mike Kestner  <mkestner@novell.com>
16614
16615         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
16616
16617 2006-01-13  Jackson Harper  <jackson@ximian.com>
16618
16619         * TreeView.cs: On MS GetNodeAt never actually factors in the X
16620         value passed.  Also redraw the selected node when we recieve
16621         focus, so tabbing between trees works correctly.
16622
16623 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16624
16625         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
16626           ~/.gconf/%gconf-tree.xml, so use
16627           .gconf/desktop/gnome/interface/%gconf.xml
16628
16629 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16630
16631         * TextControl.cs: Draw text in gray if control is disabled
16632
16633 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16634
16635         * TreeView.cs: Draw the focus rectangle outside the highlight, to
16636           make sure it's always visible. Fixes #76680.
16637
16638 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16639
16640         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
16641
16642 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
16643
16644         * PageSetupDialog.cs: Added.
16645         * PrintDialog.cs: Attributes.
16646         * PrintPreviewControl.cs: Updates.
16647         * PrintPreviewDialog.cs: Updates.
16648         
16649 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16650
16651         * Control.cs: Undid my selection check fix, since it's not needed
16652         * TextBoxBase.cs:
16653           - Now considering the presence of hscroll/vscroll when sizing
16654             vscroll/hscroll respectively. Fixed bug #77077
16655           - Added Left/Up/Down/Right to IsInputKey list to prevent
16656             ContainerControl from stealing them. This fixes what I broke
16657             with my last checkin.
16658
16659 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
16660
16661         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
16662           I finally understand how the property can be set without a setter :-)
16663
16664 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16665
16666         * Application.cs:
16667           - Switched RunLoop to use static Message.Create to create a 
16668             Message object
16669           - Added PreProcessMessage call in runloop for keyboard events; this
16670             is part of the fix for #77219, I overlooked this originally in the
16671             MSDN doc for PreProcessMessage
16672         * Control.cs:
16673           - Removed call to PreProcessMessage from handling of keyboard 
16674             messages; it's supposed to be done in the message pump
16675           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
16676             per MSDN documentation.
16677           - IsInputChar: All chars are input chars by default; removed the 
16678             parent calling chain, MS does not document that
16679           - PreProcessMessage: If IsInputChar is true, we want to return false
16680             to allow dispatching of the message
16681           - When selecting the next control, now also check that we're not
16682             selecting ourselves again and therefore return a false positive.
16683         * TextBoxBase.cs:
16684           - Tried to match return values for IsInputKey and ProcessDialogKey
16685             to what MS returns; moved processing of our special keys outside
16686             ProcessDialogKey since MS does not seem to return true on those.
16687           - Moved code that previously was in ProcessDialogKey into new private
16688             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
16689           - Reworked handling of WM_CHAR to not have to duplicate code from
16690             Control.cs anymore, instead we simply call down to base.
16691            
16692 2006-01-12  Jackson Harper  <jackson@ximian.com>
16693
16694         * ComboBox.cs: We always need to refresh the text area when
16695         EndUpdate is called. Fixes the combobox in the file dialog.
16696         * Control.cs: Don't create the creator_thread until the controls
16697         handle is created.  Also in InvokeRequired we check if the
16698         creator_thread is null. This gives the effect of InvokeRequired
16699         returning true if the controls handle is not created yet, and
16700         matches MS.
16701
16702 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16703
16704         * XplatUI.cs:
16705           - Added StartLoop() driver method. This is used to allow drivers to
16706             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
16707             loop for a particular thread
16708           - Added EndLoop() driver method. This is called once the message
16709             pump for the thread is shut down
16710           - Added SupportsTransparency method to allow the driver to indicate
16711             opacity support for windows
16712         * Form.cs:
16713           - Removed TODO attribute, completed AllowTransparency property
16714           - Added documented logic to Opacity
16715         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
16716           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
16717           versions of CompatibleTextRendering
16718         * X11Structs.cs: Added opacity atom to our atom enumeration
16719         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
16720           of a form might be set before it's reparented by the WM, and we need
16721           the opacity value without calling up to Form)
16722         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
16723           SupportsTransparency() driver methods
16724         * Application.cs: Now calling StartLoop and EndLoop driver methods
16725         * XplatUIX11.cs:
16726           - Added opacity atom registration
16727           - Added StartLoop()/EndLoop() methods. They're empty right now but
16728             will need to get implemented when we switch to a per-thread queue
16729           - Implemented SupportsTransparency() method
16730           - Implemented SetWindowTransparency() method
16731           - Added support for setting the opacity value when a window is
16732             reparented (since the opacity needs to be set on the WM frame)
16733         * XplatUIOSX.cs, XplatUIWin32.cs:
16734           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
16735
16736 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16737
16738         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
16739
16740 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16741
16742         * FileDialog.cs: Added ToolTip for MWFFileView
16743         * MimeIcon.cs: Rewrote GnomeHandler.
16744           - Get currently used gnome icon theme from
16745             ($HOME)/.gconf/%gconf-tree.xml
16746           - Make use of inherited icon themes
16747           - Support SVG icon themes like Tango via librsvg
16748
16749 2006-01-12  Miguel de Icaza  <miguel@novell.com>
16750
16751         Revert's Jackson's revert which broke 2.0 builds.   Fix both
16752         builds. 
16753         
16754         * Application.cs: Move the use_compatible_text_rendering outside
16755         the NET_2_0 define.  If we ever need to use the
16756         use_compatible_text_rendering on the individual controls they will
16757         access the variable from the common shared code paths.
16758
16759 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16760
16761         * XplatUI.cs:
16762           - Added more granular debug options
16763           - Added method to print both window text and id
16764           - Switched debug output to use new Window() debug method
16765           - Added IsEnabled() driver method
16766           - Added EnableWindow() driver method
16767         * Form.cs:
16768           - Removed end_modal; no longer needed, new loop handles termination
16769             via 'closing' variable
16770           - If form is modal, setting DialogResult will now initiate loop
16771             termination via 'closing' variable
16772           - Added support for is_enabled/WS_DISABLED to CreateParams
16773           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
16774             does all the work
16775           - Removed code that's now in RunLoop from ShowDialog()
16776           - Added various documented sanity checks to ShowDialog()
16777           - Added handling of WM_DESTROY message; we set 'closing' on getting
16778             the message to indicate the message pump to terminate
16779           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
16780             send by the Application.ExitThread method. (We send the message
16781             to destroy the window after all other events have been
16782             processed through the queue, instead of destroying the handle 
16783             directly)
16784           - Moved code from Close() method to WM_CLOSE handler; added logic
16785             to only send close-related events if the form is not displayed
16786             modal
16787         * Splitter.cs (..ctor): Fixed typo in resource name
16788         * Control.cs:
16789           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
16790             brush now
16791           - set_Cursor: Now only setting calling into XplatUI if the handle for
16792             the control is already created; this avoids implict handle creation
16793             or crashes if it's not created
16794           - set_Enabled: Now setting the enabled state via the new driver method
16795             instead of just tracking it
16796           - CreateParams: Added logic to set WS_DISABLED based on enabled state
16797           - CreateControl: Reordered event firing and method calls to more
16798             closely fire events in the order MS does. Now setting the
16799             enabled state in the driver when creating the control.
16800           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
16801             match MS order
16802         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
16803           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
16804         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
16805         * Hwnd.cs:
16806           - Added tracking of window enabled state (get_Enabled/set_Enabled)
16807           - Added EnabledHwnd property to easily allow a driver to find the
16808             handle of the first enabled window in the parent chain (this is
16809             used by drivers to pass up input events of disabled windows)
16810         * XplatUIDriver.cs: Added IsEnabled() method
16811         * Application.cs:
16812           - Removed crude and obsolete exiting tracking variable
16813           - Removed internal ModalRun(); replaced by RunLoop()
16814           - Implemented private CloseForms() method to allow closing all 
16815             windows owned by a particular (or all) threads
16816           - Exit() now properly closes all windows without forcing the message
16817             pump to quit
16818           - Removed obsolete InternalExit() method
16819           - Changed Run() methods to use new RunLoop() message pump
16820           - Implemented new RunLoop() method for both modal and non-modal forms
16821         * CommonDialog.cs:
16822           - get_CreateParams: Added setting of WS_DISABLED
16823           - Simplified ShowDialog(); now all the work is done in RunLoop(),
16824             invoked via Form.ShowDialog()
16825         * NativeWindow.cs: We don't remove the window from the collection when
16826           the handle is destroyed; there might still be messages for it in the
16827           queue (mainly the resulting WM_DESTROY); instead it will be removed
16828           when Control calls InvalidateHandle in the WM_DESTROY handler
16829         * XplatUIX11.cs:
16830           - CreateWindow: Added logic to handle the WS_DISABLED window style
16831           - EnableWindow: Implemented based on Hwnd.Enabled
16832           - GetMessage: Reset PostQuitState so the method can be called again
16833           - Implemented support for disabled windows (passing messages to the
16834             first enabled parent) in handling all input messages
16835           - Added optimizations for handling Expose events
16836           - Implemeted new driver method IsEnabled()
16837           - Now always resetting paint pending tracking vars when we start paint
16838           - Re-implemented UpdateWindow via just sending a WM_PAINT message
16839         * XplatUIOSX.cs: Added IsEnabled method stub
16840         * XplatUIWin32.cs: Implemented new IsEnabled() method
16841
16842 2006-01-11  Jackson Harper  <jackson@ximian.com>
16843
16844         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
16845         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
16846         variables a little.
16847         * ColorDialog.cs: Clear out the old form before adding the new
16848         panel.  
16849
16850 2006-01-11  Jackson Harper  <jackson@ximian.com>
16851
16852         * X11Dnd.cs: Make sure to add all the text formats when adding
16853         strings to the data object.
16854         * TreeNodeCollection.cs: When adding to a sorted tree we need to
16855         do some redrawing too.  Also change the UpdateNode to an
16856         UpdateBelow so the newly added node gets painted.
16857         
16858 2006-01-11  Miguel de Icaza  <miguel@novell.com>
16859
16860         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
16861         LinkLabel.cs, PropertyGrid.cs: Implement the
16862         UseCompatibleTextRendering property for 2.x
16863
16864         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
16865
16866 2006-01-11  Jackson Harper  <jackson@ximian.com>
16867
16868         * TreeView.cs: Use the property for setting the selected node so
16869         the correct events get raised.
16870         * TreeNode.cs: Update the tree when the fore/back colours of a
16871         node are set.
16872
16873 2006-01-10  Jackson Harper  <jackson@ximian.com>
16874
16875         * TreeView.cs: Allow setting SelectedNode to null.
16876
16877 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16878
16879         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
16880
16881 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16882
16883         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
16884
16885 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16886
16887         * PrintDialog.cs: Added attributes and set default property values.
16888
16889 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16890
16891         * PrintControllerWithStatusDialog.cs: 
16892         Added PrintControllerWithStatusDialog.
16893
16894 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16895
16896         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
16897         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
16898
16899 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16900
16901         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
16902
16903 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
16904
16905         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
16906         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
16907
16908 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
16909
16910         * MimeIcon.cs: Added internal class SVGUtil.
16911
16912 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
16913
16914         * FileDialog.cs: Don't crash if there are two files with the
16915           same name but different locations.
16916
16917 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
16918
16919         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
16920         dates across multiple month grids. Used to not highlight entire 
16921         month, but does now.
16922         
16923 2006-01-06  Jackson Harper  <jackson@ximian.com>
16924
16925         * MonthCalendar.cs: Removed DoEvents call to prevent a running
16926         message loop. Change timer intervals to numbers that seem more
16927         natural.
16928
16929 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
16930
16931         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
16932           object for location info since screen object is now implemented.
16933
16934 2006-01-05  Jackson Harper  <jackson@ximian.com>
16935
16936         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
16937         * AsyncMethodResult.cs: We no longer use a WeakReference for the
16938         AsyncMethodResult, this is because we ALWAYS want the
16939         ManualResetEvent to get set.
16940         * Control.cs: When disposing use an async invoke to call shutdown
16941         code, so that thigns don't block on the finalizer thread.  Also
16942         check if we even have a message loop before trying to send
16943         messages, if we don't then don't bother sending messages.
16944         - No more weak references for async methods
16945         * XplatUIDriver.cs: No more weak references for async methods.
16946
16947 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16948
16949         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
16950           returns two FontFamily with the same name
16951
16952 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
16953
16954         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
16955           drawing disabled text. Instead using the ColorGrayText color
16956
16957 2006-01-04  Jackson Harper  <jackson@ximian.com>
16958
16959         * TreeNode.cs: redraw the node when its image index is changed.
16960
16961 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
16962
16963         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
16964           time I checked there are no others like it.
16965
16966 2006-01-04  Jackson Harper  <jackson@ximian.com>
16967
16968         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
16969         this gives the behavoir I was looking for.
16970         * Control.cs: Special case Invoking EventHandlers, this matches MS
16971         and fixes part of bug #76326.
16972
16973 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16974
16975         * ThemeClearlooks.cs, FileDialog.cs:
16976           - Reflect the latest Theme class changes
16977           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
16978             with DateTime
16979             
16980 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16981
16982         * Theme.cs: Cache UI resource images and resize them if needed
16983
16984 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
16985
16986         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
16987           is called. This fixes the crash in Nexxia when setting the font
16988           attributes in the chat. [However, RTF needs a look-over to make sure
16989           that all SelectionXXX methods handle the special case that selection
16990           is empty and therefore the change must be applied to all text starting
16991           at the cursor/selection start]
16992
16993 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
16994
16995         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
16996           XplatUIOSX.cs: Added SendMessage and PostMessage methods
16997         * X11Keyboard.cs: Switched to new way of calling PostMessage
16998
16999 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
17000
17001         * Theme.cs: Added theme interface for images to allow the theme to
17002           control what images are used for things like FileDialog, MessageBox
17003           icons, etc.
17004         * MessageBox.cs: Now uses the new Theme icon/image interfaces
17005
17006 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
17007
17008         * FileDialog.cs:
17009           - Removed some dead code
17010           - Opening a recently used file does work now
17011           - Small UI enhancements
17012           - Refactoring
17013
17014 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
17015
17016         * FileDialog.cs: Forgot too add __MonoCS__
17017
17018 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
17019
17020         * FileDialog.cs: We are able to read recently used files now let's
17021           go on and write them.
17022
17023 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
17024
17025         * FileDialog.cs: Breathe some life into "last open"/"recently used"
17026           button
17027         * MimeIcon.cs: Do a check for the top level media type also
17028
17029 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
17030
17031         * ThemeClearlooks.cs:
17032           - Added CPDrawStringDisabled
17033           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
17034             some chars if the text doesn't fit into text_rect
17035           - DrawListViewItem: If View = View.LargeIcon center the image;
17036             rewrote the drawing of ListViewItem.Text if View = 
17037             View.LargeIcon
17038
17039 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
17040
17041         * MimeIcon.cs: Use default KDE icon theme if there is no
17042           "48x48" directory for the current icon theme, fixes #77114
17043         * Mime.cs: Disable not working and actually not used code. 
17044         * ThemeWin32Classic.cs:
17045           - Replace "new SolidBrush" in GetControlBackBrush and
17046             GetControlForeBrush with ResPool.GetSolidBrush
17047           - Changed DrawListViewItem from private to protected virtual
17048         * FileDialog.cs:
17049           - Added form.MaximizeBox = true
17050           - Don't throw an exception if there is a broken symbolic link
17051
17052 2005-12-23  Jackson Harper  <jackson@ximian.com>
17053
17054         * TabControl.cs: Give the panels focus, keyboard navigation is
17055         fixed so this works correctly now.
17056         - We need these key events also.
17057         * ToolBar.cs: Remove some of the poor mans double buffering.
17058         
17059 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
17060
17061         * ComboBox.cs: The internal TextBox now returns the focus.
17062
17063 2005-12-23  Jackson Harper  <jackson@ximian.com>
17064
17065         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
17066
17067 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17068
17069         * Control.cs: Removed debug code
17070         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
17071           implicit children
17072
17073 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
17074
17075         * Control.cs: When creating the control, update the Z-order after
17076           all it's children are created, too. (Fixes nexxia not showing
17077           picturebox bug)
17078
17079 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17080
17081         * Control.cs: Do not update the anchoring distances if layout is
17082           suspended, instead do it once layout is resumed
17083
17084 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
17085
17086         * Control.cs: 
17087           - After many hours of debugging, for both Jackson and
17088             myself, it turns out that it helps to set the parent of a control
17089             if you want to actually see it onscreen. In the spirit of that
17090             discovery, we're now setting the parent of the control and
17091             it's children when the control's handle is created. This fix
17092             will make Lutz Roeder's Reflector run happily. 
17093           - now just creating the handle instead of the whole control when
17094             getting a graphics context for the control.
17095
17096 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17097
17098         * ScrollableControl.cs: When calculating the canvas, don't consider
17099           the scrollbar widths. Instead, predict if horizontal scrollbar
17100           will affect canvas when deciding on vertical display and vice versa.
17101
17102 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17103
17104         * RichTextBox.cs: Set default RTF font for documents that don't
17105           have a font table (Fixes #77076)
17106
17107 2005-12-22  Jackson Harper  <jackson@ximian.com>
17108
17109         * TextBoxBase.cs: It's difficult to do, but you can have an empty
17110         clipboard. This prevents a NullRef in that case.
17111         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
17112         clipboard. PRIMARY is for the currently selected text only. (We
17113         should implement PRIMARY at some point.
17114
17115 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17116
17117         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
17118           a Unicode function with a structure that was defined in Ansi way.
17119           This fixes #76942.
17120
17121 2005-12-21  Jackson Harper  <jackson@ximian.com>
17122
17123         * StatusBar.cs: Statusbar handles its fore/back colours on it's
17124         on. Because thats how it rolls. (and this avoids it using ambient
17125         colours).
17126         * ThemeWin32Classic.cs: Use the proper back color for filling.
17127         * Menu.cs: Use the system menu bar color for drawing menu
17128         bars. Using the window back color will bring ambient colours into
17129         the picture.
17130
17131 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
17132
17133         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
17134           Bitmaps were created and not disposed.
17135
17136 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17137
17138         * Control.cs (CreateControl): Don't do anything if the control is
17139           already created, otherwise we'd fire the OnCreated event more than
17140           once
17141
17142 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17143
17144         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
17145           will always match. Instead return -1. Fixes #76464.
17146
17147 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17148
17149         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
17150           neither the beginning nor the end of the line (Fixes bug #76479)
17151
17152 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17153
17154         * Control.cs:
17155           - ControlNativeWindow.ControlFromHandle(): Now handling situation
17156             where handle is invalid
17157           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
17158             instead of slower linear search
17159         * NativeWindow.cs: Don't remove the window from the hashtable until
17160           after the driver has destroyed it (since the driver might use
17161           Control.FromHandle to lookup the control object
17162         * Hwnd.cs: Added DestroyPending property to track if a window is 
17163           already destroyed as far as the driver is concerned and only hasn't
17164           yet notified the control
17165         * XplatUIX11.cs:
17166           - Activate(): Check if the window is still valid before using the 
17167             handle
17168           - Implemented DestroyChildWindow() method to mark child windows as
17169             destroyed when a window is destroyed. This prevents situations 
17170             where we might call an X method based on queued events for a
17171             window that already has been destroyed but we haven't yet pulled
17172             the destroy method from the queue.
17173           - Added a call to the new DestroyChildWindow() method to the drivers
17174             DestroyWindow code. Also now marking the destroyed window itself
17175             as pending
17176
17177 2005-12-20  Jackson Harper  <jackson@ximian.com>
17178
17179         * StatusBar.cs:
17180         * StatusBarPanel.cs: Don't calculate panel sizes on draw
17181         anymore. Just do them when needed, also track the rects of panels
17182         so that we can optimize refreshing more in the future.
17183
17184 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
17185
17186         * ColorDialog.cs: Fixed focus drawing in small color controls
17187
17188 2005-12-19  Jackson Harper  <jackson@ximian.com>
17189
17190         * InternalWindowManager.cs:
17191         * MdiWindowManager.cs: Cleanup some coordinate system changes so
17192         moving windows works properly.
17193
17194 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
17195
17196         * Control.cs: 
17197           - Removed call to InitLayout() from SetBoundsCore(); doc says
17198             it's only called when a control is added to a container
17199           - Split InitLayout logic, moved to separate UpdateDistances() method
17200             since we need to perform those calculations more often than just
17201             when adding the control to a container. (Needed to fix #77022)
17202           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
17203           - Reduced the OnBindingContextChanged events count, don't send them
17204             unless the control is created, we still aren't totally matching
17205             MS, but I can't quite figure out some of their rules
17206
17207 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17208
17209         * ThemeClearlooks.cs: Corrected distance between ProgressBar
17210           stripes
17211
17212 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17213
17214         * ThemeClearlooks.cs:
17215           - Updated ProgressBar drawing
17216           - Corrected drawing of ScrollBars and scroll buttons
17217           - Some temporary fixes for minor pixel artefacts
17218
17219 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
17220
17221         * Control.cs:
17222           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
17223             cause events to be sent in the same order as MS does.
17224           - Added ChangeParent() method to trigger various OnXXXChanged events
17225             that need to be fired when a parent changes (This is a reworking
17226             of the patch from r54254, with the X11 errors fixed)
17227           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
17228             since on MS we get OnLayoutChanged events when calling Clear()
17229           - Changed Enabled property to consider parent state as well, if a
17230             parent is not enabled, the control will not be either
17231           - Changed Parent property to simply call Controls.Add() since that
17232             now does all the work required, this way we avoid code duplication
17233           - Threw in a few OnBindingsContextChanged calls to try and match
17234             when MS sends them. We seem to send a few too many, though.
17235           - Added call to CreateControl when adding the control to a parent.
17236             We were never calling CreateControl. Still needs some work, in
17237             some places we treat HandleCreated and ControlCreated as equal, 
17238             which is wrong
17239           - Removed obsolete commented out code from UpdateZOrder()
17240
17241 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17242
17243         * ThemeClearlooks.cs: Updated TrackBar drawing.
17244
17245 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17246
17247         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
17248
17249 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17250
17251         * FileDialog.cs: Add the Help button and the open readonly
17252           checkbox only if needed
17253
17254 2005-12-16  Jackson Harper  <jackson@ximian.com>
17255
17256         * Control.cs: Make sure we have an active menu before trying to
17257         process commands on it. Prevents menu-less forms from crashing
17258         when Alt is pressed.
17259         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
17260         Dieter Bremes.
17261         * RichTextBox.cs: Expand statement to help out gmcs and fix the
17262         2.0 build.
17263
17264 2005-12-16  Jackson Harper  <jackson@ximian.com>
17265
17266         * InternalWindowManager.cs: Don't translate tool windows screen
17267         coordinates. This fixes windows 'bouncing' around when being moved.
17268
17269 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17270
17271         * TextBoxBase.cs:
17272           - MaxLength now treats 2^31-1 equal to unlimited length (this is
17273             not quite MS compatible, MS uses that number only for single line
17274             and 2^32-1 for multi-line, but I figure it won't hurt keeping
17275             the limit at 2GB)
17276           - Now enforcing the MaxLength limit when entering characters
17277           - Added argument to internal Paste() method to track if it's called
17278             from programatically or via keyboard, since keyboard driven pastes
17279             need to enforce max-length
17280           - Added logic to Paste to only paste as many chars as MaxLength 
17281             allows
17282         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
17283         * TextControl.cs:
17284           - Added Length property to return number of characters in document
17285           - Added private CharCount property which only tracks actual chars
17286             in the document (no linefeeds) and fires event when CharCount
17287             changes
17288           - Added tracking of character count to all methods that alter it
17289           - Added LengthChanged event to allow applications to subscribe
17290             to any changes to the document
17291
17292 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17293
17294         * TextBox.cs: 
17295           - Removed local password_char field (moved to TextBoxBase)
17296           - Now setting the document's password var when password is
17297             set
17298         * TextBoxBase.cs:
17299           - Added password_char field (needed here so MultiLine can
17300             access it)
17301           - Added logic to MultiLine property setter to set the document's
17302             variable when password display is allowed
17303           - Removed debug code and made some debug code conditional
17304         * TextControl.cs:
17305           - Added RecalculatePasswordLine() method to handle special password
17306             char only lines
17307           - Added PasswordChar property, also added related tracking vars
17308           - Draw() method now uses local text var for grabbing text to draw,
17309             this var is set to line.text unless we're doing password display,
17310             then it is set to the pre-generated all-password-chars line
17311           - Added calling RecalculatePasswordLine() method for password lines
17312
17313 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17314
17315         * Hwnd.cs: 
17316           - Added Reparented property to allow tracking of Window Manager
17317             reparenting actions (which affect X/Y calculations of toplevel 
17318             windows)
17319           - Made ToString() print window handles in hex
17320         * XplatUIX11.cs:
17321           - AddConfigureNotify(): Now uses reparented state off Hwnd to
17322             determine if X/Y needs offsetting
17323           - AddConfigureNotify(): Fixed offset calculations
17324           - Now adds ReparentNotify messages into the queue
17325           - Now processes ReparentNotify messages and causes a 
17326             WM_WINDOWPOSCHANGED message to be sent upstream if a window
17327             is reparented (as most likely it's X/Y coordinates are changed
17328             due to that)
17329
17330 2005-12-14  Jackson Harper  <jackson@ximian.com>
17331
17332         * XplatUIX11.cs: Tool windows still need to respek focus.
17333
17334 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17335
17336         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
17337           have a working release
17338
17339 2005-12-13  Jackson Harper  <jackson@ximian.com>
17340
17341         * Form.cs: Update styles after setting the border style regardless
17342         of whether or not the window is using a window manager.
17343
17344 2005-12-13  Jackson Harper  <jackson@ximian.com>
17345
17346         * Form.cs: We now hook into an internal window manager instead of just an
17347         MDI subsystem, this is so we can have properly behaving tool windows.
17348         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
17349         * InternalWindowManager.cs: New internal class that acts as a
17350         window manager for tool windows and as a base for mdi windows.
17351         * MdiWindowManager.cs: New class that acts as a window manager for
17352         mdi windows.
17353
17354 2005-12-12  Jackson Harper  <jackson@ximian.com>
17355
17356         * Control.cs: Updates so we match behavoir for for implicit
17357         controls. Fixes explosions in MDI.
17358
17359 2005-12-12  Jackson Harper  <jackson@ximian.com>
17360
17361         * Control.cs: Implement Invalidate (Region).
17362
17363 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
17364
17365         * Control.cs: 
17366           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
17367             the same events as MS does. MS fires events for each property 
17368             except, for unknown reasons, Cursor, when the control is reparented. 
17369             I can't seem to totally match add/remove since MS also fires some 
17370             VisibleChanged events, which makes no sense. Consolidated the
17371             parenting code into a separate method so it can be called from
17372             both Add and Remove. set_Parent no longer needs any special logic
17373             as it calls the parent's add method which implicitly fires
17374             all events
17375           - Removed some obsolete code and debug output
17376           - Enabled state is inherited from parents, if this is enabled
17377
17378 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
17379
17380         * Form.cs: Removed commented out code
17381
17382 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
17383
17384         * Control.cs:
17385           - Added internal version of Invoke, with additional argument 
17386             indicating if we're calling it from a Dispose() handler. That
17387             way we can avoid BeginInvoke throwing an exception if we're
17388             calling for an already destroyed window.
17389           - Added a dispose argument to BeginInvokeInternal, and made the
17390             check if a valid window handle chain exists conditional on
17391             it not being a dispose call
17392           - Removed code in DestroyHandle to destroy our children. Since we
17393             now handle the WM_DESTROY message we will catch all our children
17394             being destroyed.
17395           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
17396         * Form.cs:
17397           - Added a field to track the application context of the form.
17398           - No need to set closing variable as response to WM_CLOSE, instead
17399             we destroy the window. We also call PostQuitMessage if the form
17400             has an application context (which makes it the main app form,
17401             which, when closed terminates the app)
17402         * XplatUI.cs:
17403           - Dropped Exit() method, it's naming was confusing
17404           - Added PostQuitMessage() which causes GetMessage to return false
17405             once the message queue is empty
17406         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
17407           PostQuitMessage()
17408         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
17409           no longer a valid XplatUI method, but left it in since it's used
17410           internally. Added empty PostQuitMessage() method.
17411         * MenuAPI.cs: Replaced call to Exit() with call to
17412           PostQuitMessage, even though this is probably no longer needed.
17413         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
17414         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
17415         * Application.cs:
17416           - Replaced call to XplatUI.Exit() with PostQuitMessage()
17417           - Removed old debug code that would call XplatUI for exception
17418             display, enabled standard exception handling (Still not enabled
17419             though, until NativeWindow's ExternalExceptionHandler define
17420             is removed
17421         * NativeWindow.cs:
17422           - Added internal method to allow control to update NativeWindow
17423             after a window has been destroyed
17424           - Added handling of already destroyed windows when calling i
17425             DestroyWindow
17426           - Added removal of handle from list on ReleaseHandle
17427         * XplatUIX11.cs:
17428           - Dropped GetMessageResult var and related code
17429           - Added PostQuitState to field to track if PostQuitMessage has been
17430             called
17431           - Dropped Exit() method
17432           - Added PostQuitMessage() method
17433           - GetMessage now will return false if PostQuitState is set and no
17434             more messages are in the queue.
17435           - Expose handler will no longer generate WM_PAINT messages if we are
17436             in PostQuitState since it's very likely any windows have already
17437             been destroyed, and since Hwnd won't get updated until we have
17438             processed the DestroyNotify we'd be causing X errors.
17439         
17440 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17441
17442         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
17443           Thanks to Mike for pointing out the err of my ways.
17444
17445 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17446
17447         * Control.cs(PreProcessMessage): Moved menu handling back, but
17448           after all other key handling, to match MS (who handles Menu in
17449           DefWndProc)
17450         * Menu.cs (WndProc): Removed my brainfart
17451
17452 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17453
17454         * Control.cs(PreProcessMessage): Removed special menu handling 
17455         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
17456
17457 2005-12-07  Mike Kestner  <mkestner@novell.com>
17458
17459         * Control.cs : special case SYSKEYUP so that we can adjust keynav
17460         state according in tracker.
17461         * Menu.cs : promote tracker field to base class and provide a tracker
17462         lookup capability.  Add/Remove shortcuts dynamically if the top menu
17463         has a tracker. Unparent items that are removed from the collection.
17464         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
17465         * Theme*.cs: add always_show_hotkeys field to support configurability
17466         of mnemonic display.  win32 doesn't show mnemonics until Alt is
17467         pressed.
17468
17469 2005-12-07  Jackson Harper  <jackson@ximian.com>
17470
17471         * MdiChildContext.cs: Use Control.ResetCursor.
17472         * Control.cs: ResetCursor needs to set the property so that the
17473         correct XplatUI call gets made.
17474
17475 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17476
17477         * Control.cs: More fixes to make our key events match MS. We
17478           were not setting the modifier state on KeyData, and we were
17479           not generating any events when Alt was pressed with a key
17480           since handling of WM_SYSxxx was missing for the OnKey methods.
17481
17482 2005-12-07  Jackson Harper  <jackson@ximian.com>
17483
17484         * MdiChildContext.cs: reenable the sizing code.
17485         - When the mouse leaves a window reset its cursor.
17486
17487 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17488
17489         * ThemeClearlooks.cs: Reflect latest Hwnd changes
17490
17491 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17492
17493         * Hwnd.cs: Now using the theme 3d bordersize to calculate
17494           widths of Fixed3D borders
17495
17496 2005-12-07  Jackson Harper  <jackson@ximian.com>
17497
17498         * MdiClient.cs: Fix warnings. Earn Mike's love.
17499
17500 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17501
17502         * ThemeClearlooks.cs:
17503           - Adjusted mouse over button color
17504           - Added first parts of CheckBox drawing
17505           - Added correct color for selected text background
17506           - Fixed ComboBox drawing
17507           - Added CPDrawBorder3D and CPDrawBorder
17508
17509 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17510
17511         * XplatUIX11.cs: Added call to XBell for AudibleAlert
17512
17513 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
17514
17515         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17516           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
17517           alert users via sound. We could add an enum arg with different
17518           types of alerts in the future
17519
17520 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17521
17522         * Control.cs: Fix behaviour problems pointed out by Mike
17523
17524 2005-12-05  Mike Kestner  <mkestner@novell.com>
17525
17526         * StatusBarPanel.cs: add Invalidate method and hook it into all the
17527         prop setters.  Calls parent.Refresh for now, but could be maybe be
17528         optimized with an internal method on StatusBar at some point.
17529         [Fixes #76513]
17530
17531 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
17532
17533         * RichTextBox.cs: Implemented get_SelectionColor
17534
17535 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
17536
17537         * ThemeClearlooks.cs:
17538           - Removed dead code
17539           - Draw black button border only if button is Form.AcceptButton
17540           - Draw correct button color for pressed RadioButton if the mouse 
17541             has entered the button
17542           - Updated ProgressBar drawing!
17543           - Updated CPDrawSizeGrip drawing
17544           - Updated StatusBarPanel drawing
17545
17546 2005-12-05  Mike Kestner  <mkestner@novell.com>
17547
17548         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
17549         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
17550
17551 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
17552
17553         * ThemeClearlooks.cs: Initial check-in, activate with
17554           export MONO_THEME=clearlooks
17555         * ThemeEngine.cs: Added ThemeClearlooks
17556
17557 2005-12-03  Mike Kestner  <mkestner@novell.com>
17558
17559         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
17560         [Fixes #76897]
17561
17562 2005-12-02  Jackson Harper  <jackson@ximian.com>
17563
17564         * Form.cs: If the child form has no menu the default main menu is
17565         used as the active menu.
17566
17567 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
17568
17569         * ListBox.cs: Check if any items exist before trying to resolve 
17570           coordinates into items
17571
17572 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17573
17574         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
17575           as the second color for the background hatch
17576
17577 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17578
17579         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
17580         * RichTextBox.cs: FormatText position arguments are 1-based, now making
17581           sure that what we pass to FormatText is always 1-based. Fixes #76885
17582
17583 2005-11-29  Miguel de Icaza  <miguel@novell.com>
17584
17585         * NumericUpDown.cs (EndInit): When we are done initializing,
17586         reflect any updates on the UI.
17587
17588 2005-12-02  Jackson Harper  <jackson@ximian.com>
17589
17590         * ImplicitHScrollBar.cs:
17591         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
17592         their container controls.
17593         * TreeView.cs: Use the new implicit scrollbars.
17594
17595 2005-12-02  Jackson Harper  <jackson@ximian.com>
17596
17597         * TreeView.cs: Make top_node internal so the TreeNodeCollections
17598         can play with it.
17599         * TreeNodeCollection.cs: If we remove the topnode we need to
17600         update topnode to the next node in line.
17601         - When clearing nodes go through the same process as removing
17602         them, so they get depareneted and checked if they are top node.
17603
17604 2005-12-01  Jackson Harper  <jackson@ximian.com>
17605
17606         * TreeView.cs: When imagelists are used the image area is
17607         selectable as well as the text.
17608         - If there are no selected nodes select the first one.
17609         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
17610         so don't do it more then we need to.
17611
17612 2005-12-01  Jackson Harper  <jackson@ximian.com>
17613
17614         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
17615         that arrows can be scaled.
17616
17617 2005-12-01  Jackson Harper  <jackson@ximian.com>
17618
17619         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
17620         fail. Patch by Dieter Bremes
17621
17622 2005-11-30  Jackson Harper  <jackson@ximian.com>
17623
17624         * Form.cs: Property is 2.0 only
17625         * PrintDialog.cs: Signature fix.
17626
17627 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17628
17629         * TextControl.cs: 
17630           - No longer artificially moves text 2 pixels down (now that we have
17631             borders this is no longer needed)
17632           - Added calcs for left, hanging and right indent
17633
17634 2005-11-23  Mike Kestner  <mkestner@novell.com>
17635
17636         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
17637
17638 2005-11-30  Jackson Harper  <jackson@ximian.com>
17639
17640         * MdiChildContext.cs: Set the cloned menus forms, as these don't
17641         get cloned as part of CloneMenu ().
17642         * Menu.cs: Make sure the parent of the items get set correctly
17643         when they are added.  And the owners are notified of the changes.
17644         * Form.cs: Create an ActiveMenu property, so that when MDI is used
17645         we can change the menu being displayed/handled by the form without
17646         changing the menu assosciated with the form.
17647         - Don't let Mdi children draw/handle menus.
17648         
17649 2005-11-30  Jackson Harper  <jackson@ximian.com>
17650
17651         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
17652         a MenuChanged event. Just to make the API a little more
17653         consistent.
17654         * MainMenu.cs:
17655         * MenuItem.cs: Use the new OnMenuChanged
17656         * MdiChildContext.cs: Handle menu merging.
17657         * Form.cs: Implement MergedMenu.
17658         
17659 2005-11-30  Jackson Harper  <jackson@ximian.com>
17660
17661         * Menu.cs: We were misusing Add. Add goes behind the specified
17662         index according to the docs, and does not replace the specified
17663         index. So I added an Insert method.
17664
17665 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17666
17667         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
17668           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
17669           is for Jackson
17670         * RichTextBox.cs: Added calls to base for DnD events
17671
17672 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
17673
17674         * TextControl.cs:
17675           - Fixed drag-selection related crash; style fixes
17676           - Implemented undo class
17677             o Implemented method to capture document state for specified
17678               range in document tree
17679             o Implemented method to restore captured document state
17680             o Implemented cursor tracking
17681             o Implemented basic undo stack
17682           - Added undo cursor tracking to methods altering cursor location
17683           - Added undo tracking to selection deletion (still missing
17684             other text-altering hookups)
17685         * RichTextBox.cs:
17686           - Added SelectionLength property
17687           - Implemented CanPaste()
17688           - Implemented Paste()
17689           - Added missing protected methods
17690           - Fixed RTF->Document conversion; now uses font index 0 and color 
17691             index 0 as the default font for the parsed text
17692           - Fixed RTF<->Document font size translation
17693           - Fixed RTF generation, now properly handles cross-tag boundaries
17694             for single line selection
17695           - No longer always appends blank line to generated RTF
17696           - Removed TODOs
17697           - Added missing attributes
17698           - Hooked up undo-related methods
17699         * TextBoxBase.cs:
17700           - Implemented Copy()
17701           - Implemented Paste()
17702           - Implemented Cut()
17703           - Fixed caret mis-behaviour on backspace across line-boundaries
17704
17705 2005-11-29  Jackson Harper  <jackson@ximian.com>
17706
17707         * MdiClient.cs: Add a method for activating mdi children. Very
17708         basic right now. I imagine someday it might need more girth.
17709         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
17710         children windows names are added to the menu item.
17711         * ThemeWin32Classic.cs: Draw the arrow if the item is an
17712         mdilist. This happens regardless of whether or not there are any
17713         mdi windows to see in the list, and according to my tests happens
17714         before the items are even added. Also happens if there isn't even
17715         an mdi client to get windows from.
17716
17717 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
17718
17719         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
17720         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
17721
17722 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
17723
17724         * DataGridTableStyle.cs:
17725           - Create always the styles for the missing columns even if they are
17726             provided by the user (not default table style)
17727         * DataGrid.cs:
17728           - Fixes bug 76770
17729           - Fixes SetDataBinding (always re-attach source)
17730           - Fixes SetNewDataSource (only clear styles if they are not for 
17731             this source)
17732          -  Expands OnTableStylesCollectionChanged to handle style refresh 
17733             and remove properly
17734
17735 2005-11-29  Jackson Harper  <jackson@ximian.com>
17736
17737         * FileDialog.cs: Implement missing bits, remove some dead
17738         code.
17739         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
17740         creation of the panel so that the options set on the dialog are
17741         seen when the panel is created.
17742         * TreeView.cs: raise a click when items are clicked.
17743         
17744 2005-11-29  Jackson Harper  <jackson@ximian.com>
17745
17746         * MdiClient.cs: Pass some signature methods through to base.
17747
17748 2005-11-28  Jackson Harper  <jackson@ximian.com>
17749
17750         * ListView.cs: Raise the click event when items are clicked.
17751
17752 2005-11-28  Jackson Harper  <jackson@ximian.com>
17753
17754         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
17755         a nullref.
17756
17757 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
17758
17759         * ThemeNice.cs: - Removed 1 pixel bitmaps
17760           - Use SmoothingMode.AntiAlias where it makes sense
17761             (ScrollButton arrow for example)
17762           - Enhanced Button focus drawing
17763           - Fixed ComboBox drawing (no artefacts anymore, focus
17764             rectangle is back again, reduced size of ComboButton, etc.)
17765           - Fixed RadioButton focus drawing for Appearence.Button
17766           - Slight ScrollButton redesign
17767           - Some LinearGradientBrush size fixes
17768           - GroupBoxes have now rounded edges
17769           - Fixed StatusBar drawing
17770
17771 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
17772
17773         * ThemeNice.cs: - Remove dead code
17774           - use correct background colors for menus, etc.
17775           - Fake pixel drawing with 1 pixel bitmaps
17776
17777 2005-11-24  Jackson Harper  <jackson@ximian.com>
17778
17779         * MdiClient.cs: Size the scrollbars when resizing the window.
17780         - Resize the maximized windows when the client is resized
17781         * Form.cs: Make the child context available
17782         
17783 2005-11-23  Jackson Harper  <jackson@ximian.com>
17784
17785         * MdiChildContext.cs: Don't size windows if they are maximized.
17786
17787 2005-11-23  Mike Kestner  <mkestner@novell.com>
17788
17789         * ContextMenu.cs: use MenuTracker.
17790         * Control.cs: remove menu handle usage.
17791         * Form.cs: remove menu handle usage.
17792         * Hwnd.cs: remove menu handle usage.
17793         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
17794         motion and clicks to the new Tracker handlers.
17795         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
17796         and handle usage.
17797         * MenuAPI.cs: refactored to combine popup and menubar event handling.
17798         Killed the MENU and MENUITEM data types and associated collections
17799         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
17800         MenuTracker class that exposes the leftovers from the old MenuAPI
17801         static methods. Restructured Capture handling so that only one grab is
17802         done for the entire menu hierarchy instead of handing off grabs to
17803         submenus. Tracker now has an invisible control to Capture when active.
17804         * MenuItem.cs: add sizing accessors, kill Create
17805         and handle usage.
17806         * Theme.cs: remove menu handle and MENU(ITEM) usage.
17807         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
17808         MENU(ITEM). remove menu handle usage, use Menu directly.
17809         * XplatUIDriver.cs: remove menu handle usage.
17810         * XplatUIOSX.cs: remove menu handle usage.
17811         * XplatUIWin32.cs: remove menu handle usage.
17812         * XplatUIX11.cs: remove menu handle usage.
17813
17814 2005-11-22  Jackson Harper  <jackson@ximian.com>
17815
17816         * Hwnd.cs: Don't compute the menu size for
17817         DefaultClientRectangle.
17818         - Reenable menu sizes being computed for GetClienRectangle.
17819         * Form.cs: Remove comment of trechery
17820         
17821 2005-11-22  Jackson Harper  <jackson@ximian.com>
17822
17823         * Hwnd.cs: The adjustments for the menu bar are made when it is
17824         attached to the form.
17825
17826 2005-11-19  Jackson Harper  <jackson@ximian.com>
17827
17828         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
17829         (just like on windows).
17830
17831 2005-11-19  Jackson Harper  <jackson@ximian.com>
17832
17833         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
17834         use real buttons anymore because they are in non client area. The
17835         one TODO here is that I need to somehow invalidate a section of
17836         the non client area.
17837
17838 2005-11-18  Jackson Harper  <jackson@ximian.com>
17839
17840         * Control.cs: Put the enum check back in now that MDI doesnt have
17841         to use this to set border styles.
17842         * Form.cs: Only set mdi child windows borders if the handle has
17843         been created.
17844         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
17845         this directly on to the driver.
17846         - Get the move start position before adjusting for the titlebar
17847         height, this fixes the windows "skipping" when they are first
17848         moved.
17849
17850 2005-11-18  Jackson Harper  <jackson@ximian.com>
17851
17852         * XplatUIX11.cs: Just compute the mdi borders separately as they
17853         don't totally match up with normal form borders.
17854
17855 2005-11-18  Jackson Harper  <jackson@ximian.com>
17856
17857         * Control.cs: Set WS_ styles for borders, so that the driver does
17858         not have to retrieve the control instance to figure out what kind
17859         of borders it should have.
17860         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
17861         driver can know its an mdi child easily.
17862         * XplatUIX11.cs: Get the border styles and whether the window is
17863         MDI from the Styles and ExStyles params instead of having to get a
17864         control. This prevents a chicken and egg problem.       
17865
17866 2005-11-18  Jackson Harper  <jackson@ximian.com>
17867
17868         * MdiClient.cs: Fix typo so scrollbars show up correctly.
17869
17870 2005-11-18  Jackson Harper  <jackson@ximian.com>
17871
17872         * MdiClient.cs: Calculate when to add and remove scrollbars
17873         correctly.
17874         * MdiChildContext.cs: Adjust the y position to take the titlebar
17875         into account.
17876         - No height for FormBorderStyle.None
17877
17878 2005-11-18  Jackson Harper  <jackson@ximian.com>
17879
17880         * Control.cs: Allow non enum values to be used for
17881         InternalBorderStyle.  MDI does this to set a special border style.
17882         - New utility methods for converting points to/from client coords
17883         - Add the newly created control to the Controls collection before
17884         updating its style. This way UpdateStyle can walk the control
17885         heirarchy to find the control if needed.
17886         so I don't need to create a new Point object all the time.
17887         * Form.cs: Let MDI windows handle their border styles.
17888         - Set styles on MDI windows so the correct title style is derived.
17889         * MdiChildContext.cs: Move all the painting and window handling
17890         into the non client area.
17891         - Use correct sizing and put correct buttons on frames based on
17892         the FormBorderStyle.
17893         - Notify the mdi client about scrolling
17894         - Need to handle the buttons ourselves now, because they are all
17895         in non client areas and we can't add controls there.
17896         * MdiClient.cs: Halfway to scrolling, this implementation is
17897         somewhat broken though, we need to check to make sure other
17898         windows aren't causing scrolling before removing the bars. Also
17899         the bars need to be drawn on top, maybe I can switch implicit
17900         controls to be on top.
17901         * Hwnd.cs: caption_height and tool_caption_height are now
17902         properties of an hwnd, this way they can be set by the driver
17903         based on the type of window they are.  In X11 the window manager
17904         handles the decorations so caption_height is zero unless its an
17905         MDI window.
17906         - Add 3 pixel borders for MDI windows (0xFFFF).
17907         - Get rid of some code duplication, have DefaultClientRectanle
17908         just call GetClientRectangle.
17909         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
17910         Hwnd now.
17911         - Set border styles differently for mdi windows.
17912         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
17913         Hwnd now.
17914         
17915 2005-11-15  Mike Kestner  <mkestner@novell.com>
17916
17917         * Menu.cs: when adding an item to the collection, if item is already 
17918         parented, remove it from the parent.
17919
17920 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
17921
17922         * X11DesktopColors.cs: Added KDE support
17923
17924 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
17925
17926         * XplatUIWin32.cs: 
17927           - Clipboard methods now can translate Rtf format
17928           - No longer removes clipboard contents whenever a new format is added
17929             to allow placing multiple formats on the clipboard
17930         * Clipboard.cs: Clipboard now supports getting a IDataObject and
17931           will place all formats contained in it onto the clipboard. Also
17932           now cleans the clipboard before placing a new object onto it
17933         * RichTextBox.cs:
17934           - Implemented set_Rtf
17935           - Implemented set_SelectedRtf
17936           - Created InsertRTFFromStream() method to allow single code base
17937             for all properties and methods that insert RTF into document
17938           - Removed debug output
17939         * TextControl.cs:
17940           - Fixed Delete(int) to fix up line numbers
17941           - Fixed ReplaceSelection to combine start and end line
17942           - Fixed serious DeleteChars bug that would leave the document tree
17943             broken
17944           - Improved DumpTree with several logic checks to detect broken
17945             document trees
17946           - Removed debug lines
17947           - Fixed Caret.WordForward/WordBack moving code, now always also 
17948             updates caret.tag (fixes crash when word-selecting across tag
17949             boundaries via keyboard)
17950           - Added Insert() method for inserting multiline text into documents
17951           - Fixed DeleteChars() calculation errors that would cause a broken
17952             tag chain with multiple tag lines
17953           - DeleteChars() no longer crashes on multi-tag lines if not all tags
17954           - Split() no longer moves caret if split is at caret location
17955           - ReplaceSelection() now updates the cursor and re-displays it
17956           - ReplaceSelection() now uses new Insert() method to avoid code
17957             duplication
17958           - FormatText() can now handle formatting partial lines
17959         * TextBoxBase.cs:
17960           - Append now uses new TextControl.Insert() method (this avoids 
17961             duplicate code)
17962           - Implemented Ctrl-X (Cut) (
17963           - Implemented Ctrl-C (Copy)
17964           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
17965             regeneration when pasting text; roundtripping Copy&Paste within
17966             edit control still fails due to some calculation bugs in GenerateRTF)
17967           - The Delete key will now remove the current selection if it is visible
17968         * TextBox.cs: Removed debug lines
17969         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
17970           driver to be initialized and can't therefore be done via a static ctor)
17971
17972 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
17973
17974         * TextControl.cs: Added backend code for finding char arrays and strings
17975         * TextBoxBase.cs:
17976           - Added mouse wheel scroll support
17977           - Added support for VScroll and HScroll events
17978         * RichTextBox.cs:
17979           - Implemented all seven Find() variants
17980           - Implemented GetCharFromPosition()
17981           - Implemented GetCharIndexFromPosition()
17982           - Implemented GetLineFromIndex()
17983           - Implemented GetPositionFromCharIndex();
17984           - Implemented SaveFile for PlainText and UnicodeText
17985           - Fixed set_Font, now setting a new font applies that font to
17986             the whole document
17987           - Implemented generic Document to RTF converter
17988           - Implemented SaveFile for RichText format (still missing unicode
17989             conversion for non-ansi chars)
17990           - Implemented get_Rtf
17991           - Implemented get_SelectedRtf
17992
17993 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
17994
17995         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
17996           to allow any captures to be released before triggering OnClick. This
17997           way a click handler may capture the mouse without interference.
17998         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
17999           This way we send them even though X may not allow a grab (if the window
18000           isn't visible, for example)
18001
18002 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
18003
18004         * DataGridViewRowEventArgs.cs: DataGridView implementation
18005         * DataGridViewElement.cs: DataGridView implementation
18006         * DataGridViewComboBoxCell.cs: DataGridView implementation
18007         * DataGridViewDataErrorContexts.cs: DataGridView implementation
18008         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
18009         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
18010         * ImageLayout.cs: DataGridView implementation
18011         * DataGridViewComboBoxColumn.cs: DataGridView implementation
18012         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
18013         * DataGridViewSelectionMode.cs: DataGridView implementation
18014         * IDataGridViewEditingControl.cs: DataGridView implementation
18015         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
18016         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
18017         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
18018         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
18019         * DataGridViewColumnSortMode.cs: DataGridView implementation
18020         * DataGridView.cs: DataGridView implementation
18021         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
18022         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
18023         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
18024         * Padding.cs: DataGridView implementation
18025         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
18026         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
18027         * DataGridViewRowEventHandler.cs: DataGridView implementation
18028         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
18029         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
18030         * DataGridViewButtonCell.cs: DataGridView implementation
18031         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
18032         * DataGridViewEditMode.cs: DataGridView implementation
18033         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
18034         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
18035         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
18036         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
18037         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
18038         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
18039         * DataGridViewCellEventHandler.cs: DataGridView implementation
18040         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
18041         * DataGridViewCellStyleConverter.cs: DataGridView implementation
18042         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
18043         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
18044         * DataGridViewColumnEventArgs.cs: DataGridView implementation
18045         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
18046         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
18047         * QuestionEventArgs.cs: DataGridView implementation
18048         * IDataGridViewEditingCell.cs: DataGridView implementation
18049         * DataGridViewTriState.cs: DataGridView implementation
18050         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
18051         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
18052         * DataGridViewColumnCollection.cs: DataGridView implementation
18053         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
18054         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
18055         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
18056         * DataGridViewColumn.cs: DataGridView implementation
18057         * DataGridViewCellBorderStyle.cs: DataGridView implementation
18058         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
18059         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
18060         * DataGridViewRow.cs: DataGridView implementation
18061         * DataGridViewImageCellLayout.cs: DataGridView implementation
18062         * DataGridViewImageCell.cs: DataGridView implementation
18063         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
18064         * DataGridViewCheckBoxCell.cs: DataGridView implementation
18065         * DataGridViewHeaderCell.cs: DataGridView implementation
18066         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
18067         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
18068         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
18069         * DataGridViewTextBoxColumn.cs: DataGridView implementation
18070         * QuestionEventHandler.cs: DataGridView implementation
18071         * DataGridViewCellStyleScopes.cs: DataGridView implementation
18072         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
18073         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
18074         * DataGridViewCell.cs: DataGridView implementation
18075         * DataGridViewCellEventArgs.cs: DataGridView implementation
18076         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
18077         * DataGridViewCellStyle.cs: DataGridView implementation
18078         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
18079         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
18080         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
18081         * TextFormatFlags.cs: DataGridView implementation
18082         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
18083         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
18084         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
18085         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
18086         * DataGridViewButtonColumn.cs: DataGridView implementation
18087         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
18088         * HandledMouseEventArgs.cs: DataGridView implementation
18089         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
18090         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
18091         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
18092         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
18093         * DataGridViewRowCollection.cs: DataGridView implementation
18094         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
18095         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
18096         * DataGridViewHitTestType.cs: DataGridView implementation
18097         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
18098         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
18099         * DataGridViewColumnEventHandler.cs: DataGridView implementation
18100         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
18101         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
18102         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
18103         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
18104         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
18105         * DataGridViewContentAlignment.cs: DataGridView implementation
18106         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
18107         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
18108         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
18109         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
18110         * DataGridViewPaintParts.cs: DataGridView implementation
18111         * DataGridViewCellCollection.cs: DataGridView implementation
18112         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
18113         * DataGridViewImageColumn.cs: DataGridView implementation
18114         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
18115         * DataGridViewElementStates.cs: DataGridView implementation
18116         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
18117         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
18118         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
18119         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
18120         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
18121         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
18122         * DataGridViewRowHeaderCell.cs: DataGridView implementation
18123         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
18124         * DataGridViewTextBoxCell.cs: DataGridView implementation
18125         * DataGridViewBand.cs: DataGridView implementation
18126         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
18127         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
18128         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
18129         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
18130         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
18131         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
18132         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
18133         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
18134         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
18135         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
18136         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
18137
18138 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
18139
18140         * ThemeWin32Classic.cs: 
18141           - Draw the outside focus rectangle around buttons
18142           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
18143             doesn't use end caps for every dash of a line anymore. This
18144             workaround ignores the forecolor.
18145
18146 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
18147
18148         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
18149           endian safe.
18150
18151 2005-11-07  Jackson Harper  <jackson@ximian.com>
18152
18153         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
18154
18155 2005-11-07  Jackson Harper  <jackson@ximian.com>
18156
18157         * ScrollableControl.cs: Calculate the maximum and change vars
18158         (more) correctly so that scrollbars appear as a sensible size.
18159
18160 2005-11-04  Jackson Harper  <jackson@ximian.com>
18161
18162         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
18163         collection.
18164         * TreeView.cs: When the tree is sorted null out the top_node so
18165         that it is recalculated.
18166         - Use dotted lines instead of dashed lines to match MS better.
18167
18168 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
18169
18170         * ListView.cs: 
18171           - Implements key search for items. Useful when browsing files with FileDialog
18172           - When changing view mode or when clear the items reset scrollbar positions
18173
18174 2005-11-04  Jackson Harper  <jackson@ximian.com>
18175
18176         * CurrencyManager.cs: Implement the MetaDataChanged event, the
18177         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
18178         as to what the method may do as there is no real way of creating a
18179         derived CurrencyManager and calling the method. 
18180
18181 2005-11-03  Jackson Harper  <jackson@ximian.com>
18182
18183         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
18184         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
18185         method which seems to just be used internally to refresh the tabs.
18186
18187 2005-11-03  Jackson Harper  <jackson@ximian.com>
18188
18189         * TabControl.cs: Implement the remove method. Fix some broken
18190         comments.
18191
18192 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18193
18194         * DateTimePicker.cs:
18195           - Added missing DateTimePickerAccessibleObject class
18196           - Added missing events
18197           - Added OnFontChanged method
18198         * Form.cs: Added missing attributes
18199         * TreeView.cs: Added missing attributes
18200
18201 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
18202
18203         * GridItemCollection.cs: Fix signatures
18204
18205 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18206
18207         * XplatUI.cs: Updated build rev/date
18208         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
18209           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
18210         * Application.cs: Trigger context-specific ExitThread events
18211
18212 2005-11-03  Jackson Harper  <jackson@ximian.com>
18213
18214         * Menu.cs:
18215         * MainMenu.cs:
18216         * GridTableStylesCollection.cs:
18217         * Timer.cs:
18218         * TabPage.cs:
18219         * HelpProvider.cs:
18220         * StatusBar.cs:
18221         * MonthCalendar.cs: Signature fixes
18222
18223 2005-11-03  Jackson Harper  <jackson@ximian.com>
18224
18225         * TreeNodeCollection.cs: Remove should not be virtual.
18226         * TreeView.cs: Implement the last of the missing methods.
18227
18228 2005-11-03  Jackson Harper  <jackson@ximian.com>
18229
18230         * TreeNodeConverter.cs: Implement to get off my class-status back.
18231
18232 2005-11-03  Jackson Harper  <jackson@ximian.com>
18233
18234         * TreeView.cs: Hookup the bits for drag and drop.
18235         * TreeNode.cs: Don't cache the tree_view or index anymore, now
18236         that nodes can be moved from tree to tree easily this just causes
18237         all sorts of problems.
18238         * TreeNodeCollection: Don't need to give treenodes an index and
18239         treeview anymore when they are added, these are computed on the
18240         fly. Also make sure to remove a node before its added.
18241
18242 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18243
18244         * TextControl.cs:
18245           - Added CaretSelection enum
18246           - Added comparison methods to Marker struct, makes selection code
18247             more readable
18248           - Added SelectionStart and SelectionEnd as 'moveable' location for
18249             the CaretDirection enum and handler
18250           - Added selection_prev variable to track optimized invalidation for
18251             word and line selection
18252           - Added SelectionVisible property (returns true if there is a valid 
18253             selection)
18254           - Switched CaretHasFocus to only display the caret if there is no
18255             visible selection
18256           - Avoiding StringBuilder.ToString to retrieve a single char, instead
18257             using the direct character index; should be much faster
18258           - Added various conditional debug statements
18259           - Fixed invalidation calculation for selection ranges
18260           - Added ExpandSelection() method to support word and line selection
18261           - Switched SetSelectionToCaret to use new Marker compare overloads
18262           - Added central IsWordSeparator() method to determine word 
18263             separators/whitespace and FindWordSeparator() to streamline common
18264             usage of IsWordSeparator()
18265         * TextBoxBase.cs:
18266           - Removed unneeded grabbed variable, it was just mirroring
18267             Control.Capture
18268           - No longer firing OnTextChanged event when Text setter is called,
18269             since the base will fire the event for us
18270           - Added handling of Ctrl-Up/Down selection
18271           - Added handling of Shift-Cursorkey selection
18272           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
18273             words
18274           - Added handling of Shift and Ctrl-Shift-Home/End selection
18275           - Removed some debug output
18276           - Added handling for single/double/tripple-click to place caret/
18277             select word/select line respectively (Fixes bug #76031)
18278           - Added support for drag expansion of word/line selection
18279         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
18280           current selection
18281
18282 2005-11-02  Jackson Harper  <jackson@ximian.com>
18283
18284         * X11Dnd.cs: If the drag is going to and from a MWF window just
18285         copy the data instead of sending it out through the X Selection
18286         mechanism.
18287
18288 2005-11-02  Jackson Harper  <jackson@ximian.com>
18289
18290         * X11Dnd.cs:
18291         * XplatUIX11.cs: When in a drag we don't want motion notify
18292         messages to get passed on to the other controls. This prevents
18293         mouse move messages from showing up in the drag source.
18294
18295 2005-11-02  Jackson Harper  <jackson@ximian.com>
18296
18297         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
18298         the correct button is release to end a drag.
18299         * XplatUIX11.cs: Make the button state internal so the drag system
18300         can access it.  Dragging needs to know about all button releases,
18301         not just left button.
18302
18303 2005-11-02  Miguel de Icaza  <miguel@novell.com>
18304
18305         * Form.cs (Icon): If the icon is null, reset the icon to the
18306         default value. 
18307
18308         * Cursor.cs: When writing the AND-mask bitmap do not include the
18309         number of colors, but hardcode those to two (black and white),
18310         fixes the loading of color cursors (Paint Dot Net).
18311
18312         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
18313         turn off autoscaling.
18314
18315         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
18316
18317 2005-11-02  Jackson Harper  <jackson@ximian.com>
18318
18319         * X11Dnd.cs: Make sure to send a status message if the pointer
18320         enters a control that can not accept a drop, otherwise the cursor
18321         isn't updated correctly. Also tried to compress the lines of code
18322         a bit.
18323
18324 2005-11-02  Jackson Harper  <jackson@ximian.com>
18325
18326         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
18327         set actions correctly.  This isn't perfect as XDND and win32 have
18328         some differences on how you allow actions. I'll clear this up by
18329         adding a path for drag from MWF to MWF windows.
18330         * XplatUIX11.cs: Hook into the dnd system.
18331
18332 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
18333
18334         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
18335         previously shown but they are no longer need it. Very obvious when 
18336         browsing files with FileDialog.
18337
18338 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
18339
18340         * Control.cs: We always need to call OnPaintBackground. We pretty much
18341           ignore AllPaintingInWmPaint and always do the painting there, whether 
18342           it's set or not, since we always ignore the WM_ERASEBKGND message 
18343           (which we don't generate on X11). This fixes #76616.
18344         * Panel.cs: Removed unneeded background painting. This happens properly
18345           in Control.cs already
18346
18347 2005-10-31  Mike Kestner  <mkestner@novell.com>
18348
18349         * Menu.cs: Add items to collection before setting their index.
18350         * MenuItem.cs : add range checking with ArgumentException like MS.
18351         [Fixes #76510]
18352
18353 2005-10-31  Jackson Harper  <jackson@ximian.com>
18354
18355         * ListBox.cs: Invalidate if the area is visible at all not just
18356         contained in the visible rect. Fixes unselection of semi visible
18357         items.
18358
18359 2005-10-31  Jackson Harper  <jackson@ximian.com>
18360
18361         * Control.cs: Consistently name the dnd methods. Make them
18362         internal so we can override them to match some MS behavoir
18363         internally.
18364         * Win32DnD.cs: Use the new consistent names.
18365
18366 2005-10-31  Jackson Harper  <jackson@ximian.com>
18367
18368         * TreeView.cs: Don't draw the selected node when we lose focus.
18369
18370 2005-10-31  Jackson Harper  <jackson@ximian.com>
18371
18372         * X11Dnd.cs: We still need to reset the state even though a full
18373         reset isn't being done, otherwise status's still get sent all over
18374         the place.
18375
18376 2005-10-31  Jackson Harper  <jackson@ximian.com>
18377
18378         * Control.cs: Make the dnd_aware flag internal so the dnd
18379         subsystem can check it. Catch exceptions thrown in dnd handlers to
18380         match MS behavoir.
18381         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
18382         * X11Dnd.cs: Handle null data in the converters. Set the XDND
18383         version when sending a XdndEnter. Use the control/hwnd dnd_aware
18384         flags to reduce the number of dnd enters/status's sent.
18385
18386 2005-10-31  Jackson Harper  <jackson@ximian.com>
18387
18388         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
18389
18390 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
18391
18392         * PictureBox.cs: Fixes 76512
18393
18394 2005-10-28  Jackson Harper  <jackson@ximian.com>
18395
18396         * X11Dnd.cs: Early implementation to support winforms being a drag
18397         source for data on X11. Also restructured the converters so they
18398         can go both ways now.
18399         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
18400         
18401 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
18402
18403         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
18404           clipboard requests
18405
18406 2005-10-27  Jackson Harper  <jackson@ximian.com>
18407
18408         * TreeNode.cs: Implement serialization so my DnD examples will work.
18409
18410 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
18411
18412         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
18413           TreeView.cs: Don't dispose objects that are not owned.
18414           
18415 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
18416
18417         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
18418           should retrieve the current cursor and report that, but XplatUI
18419           doesn't (yet) have an interface for that (and I'm not sure I even
18420           can, on X11)
18421         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
18422           until any message loop processing is done (and the WM_SETCURSOR
18423           replaces the cursor to the proper one)
18424         * XplatUIX11.cs: 
18425           - Fixed override behaviour, we can't set the cursor globally on X11, 
18426             just for our windows.
18427           - Invalidating the System.Drawing X11 display handle when we are
18428             shutting down
18429         * Control.cs: Fix to make csc happy
18430
18431 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
18432
18433         * TextBoxBase.cs: 
18434           - get_Text: Add last line (without trailing newline) to returned
18435             value (Fixes 76212)
18436           - get_TextLength: Count last line in returned length
18437           - ToString: Call Text property instead of duplicating code
18438
18439 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
18440
18441         * ImageList.cs: Dispose ImageAttributes objects.
18442
18443 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18444
18445         * ImageList.cs: Use attribute constructors with less arguments where
18446           possible.
18447
18448 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18449
18450         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
18451           Use typeof instead of strings when assembly is referenced. Added
18452           some more comments.
18453
18454 2005-10-21  Jackson Harper  <jackson@ximian.com>
18455
18456         * ListView.cs: Raise a double click event. Also tried to somewhat
18457         fix when the selectedindexchanged event is raised. Its still
18458         broken though.
18459
18460 2005-10-21  Jackson Harper  <jackson@ximian.com>
18461
18462         * TreeView.cs: New method to invalidate the plus minus area of a
18463         node without invalidating the whole node (maybe this can be used
18464         in some more places).
18465         * TreeNodeCollection.cs: When adding to an empty node we need to
18466         invalidate its plus minus area so the little block shows up.
18467         
18468 2005-10-21  Jackson Harper  <jackson@ximian.com>
18469
18470         * TreeView.cs: Make sure that when we invalidate a node the bounds
18471         are big enough to cover the selected box and the focus
18472         rectangle. Use a different colour for the lines connecting nodes
18473         so they show up with all themes.
18474
18475 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18476
18477         * NativeWindow.cs: Don't call anything that could call into the driver,
18478           we might be on a different thread.
18479
18480 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
18481
18482         * Control.cs(Dispose): Since Dispose might run on a different thread,
18483           make sure that we call methods that could call into the driver via
18484           invoke, to avoid thread issues
18485
18486 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18487
18488         * XplatUI.cs: Removed finalizer
18489         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
18490           not allowing to be called on the finalizer thread.
18491
18492 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
18493
18494         * ImageList.cs:
18495           - Reverted r51889 and r51891.
18496           - Added ImageListItem class that stores unmodified image items and image
18497             properties required to create list images until handle is created.
18498           - Added AddItem and moved image creation logic to AddItemInternal.
18499           - Added CreateHandle method that creates images based on unmodified items.
18500           - Added DestroyHandle that changes state to store unmodified items.
18501           - Add and AddStrip methods no more create handle.
18502           - ReduceColorDepth has no return value.
18503           - Dispose destroys handle.
18504           - Modified other methods to reflect the above changes.
18505           - Implemented key support.
18506           - Added profile 2.0 members and attributes.
18507           - Added private Reset and ShouldSerialize methods that provide the same
18508             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
18509             them as they are private.
18510           - Added some more comments about implementation details.
18511
18512 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18513
18514         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
18515
18516 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18517
18518         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
18519
18520 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18521
18522         * DataGridDrawingLogic.cs: Fixes column hit calcultation
18523         * DataGridColumnStyle.cs: Remove debug message
18524
18525 2005-10-20  Jackson Harper  <jackson@ximian.com>
18526
18527         * TreeView.cs: We can always get input keys regardless of whether
18528         or not editing is enabled. They are used for navigation.
18529
18530 2005-10-20  Jackson Harper  <jackson@ximian.com>
18531
18532         * TreeNode.cs: Use the viewport rect for determining if a node
18533         needs to be moved for visibility. Don't use Begin/End edit. This
18534         calls a full refresh when its done.
18535         * TreeView.cs: New SetBottom works correctly.  Make the viewport
18536         rect property internal so the treenodes can see it. When clicking
18537         on a node we need to ensure that its visible because it might just
18538         be partly visible when clicked.
18539
18540 2005-10-20  Jackson Harper  <jackson@ximian.com>
18541
18542         * TreeNodeCollection.cs: Remove debug code.
18543
18544 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18545
18546         * Datagrid.cs: Implements column sorting in Datagrid
18547         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
18548
18549 2005-10-20  Jackson Harper  <jackson@ximian.com>
18550
18551         * TreeNodeCollection.cs: Remove items properly. Update the correct
18552         area after removing them.
18553
18554 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18555
18556         * Datagrid.cs: Should not call base.OnPaintBackground
18557
18558 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18559
18560         * XplatUIX11.cs (GetMessage):
18561           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
18562             window instead of client window
18563           - Now properly calculates NC_xBUTTONUP message coordinates
18564           - ScreenToMenu now properly calculates it's coordinates of whole 
18565             window, since menus are in the whole window, not in the client
18566             window
18567           - Added WholeToScreen coordinate translation method
18568
18569 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
18570
18571         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
18572           want to return a message, loop back to the beginning of the function
18573           and grab the next real message to process instead.
18574
18575 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18576
18577         * Splitter.cs: Properly set limits if no filler control is used
18578
18579 2005-10-19  Jackson Harper  <jackson@ximian.com>
18580
18581         * ColorDialog.cs: Don't show the help button if it is not enabled
18582         instead of disabling it (this is what MS does). Don't create the
18583         panel until the dialog is run, otherwise the vars (such as
18584         ShowHelp) are not set yet.
18585
18586 2005-10-19  Jackson Harper  <jackson@ximian.com>
18587
18588         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
18589         are reduced when adding nodes.
18590         * TreeNode.cs:
18591         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
18592         tree.
18593         
18594 2005-10-19  Jackson Harper  <jackson@ximian.com>
18595
18596         * FolderBrowserDialog.cs: End editing our treeview so the window
18597         actually gets refreshed.
18598
18599 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18600
18601         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
18602           Obsoleted handling of WM_ERASEBKGND, now always draws our background
18603           inside of WM_PAINT
18604
18605 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18606
18607         * MenuAPI.cs: Returns after Hidding window
18608         * XplatUIX11.cs: Added TODO found while debugging menu issues
18609
18610 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18611
18612         * XplatUIX11.cs: Do not re-map the whole window when it's size
18613           becomes non-zero unless it's supposed to be actually visible
18614
18615 2005-10-18  Jackson Harper  <jackson@ximian.com>
18616
18617         * TreeView.cs: We don't need to keep a count anymore.
18618         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
18619         use the Grow method.
18620
18621 2005-10-18  Jackson Harper  <jackson@ximian.com>
18622
18623         * TreeNodeCollection.cs: Insert is not supported on arrays, so
18624         implement it manually here.
18625
18626 2005-10-18  Jackson Harper  <jackson@ximian.com>
18627
18628         * ImageList.cs: Dont kill the list when the colour depth is
18629         changed, just change the colour depth of all the images.
18630         - Same goes for setting the image size. Just resize them all
18631         instead of killing the list softly.
18632
18633 2005-10-18  Jackson Harper  <jackson@ximian.com>
18634
18635         * Control.cs: Don't invalidate empty rectangles.
18636
18637 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18638
18639         * ListViewItem.cs:
18640           - Adds checked item to the Checked/Item lists (where empty before)
18641           - Do not add items to the Selected lists if they are already present
18642         * ListView.cs:
18643           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
18644           - When deleting items make sure that we delete them for the Selected
18645           and Checked list also.
18646
18647 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18648
18649         * Label.cs: Dispose objects no longer used
18650         * ThemeWin32Classic.cs: Dispose objects no longer used
18651
18652 2005-10-18  Jackson Harper  <jackson@ximian.com>
18653
18654         * TabControl.cs: Don't refresh the whole control when the tabs are
18655         scrolled, we just need to refresh the tab area.
18656
18657 2005-10-17  Jackson Harper  <jackson@ximian.com>
18658
18659         * XplatUIX11.cs: Compress code a little bit. Only calculate the
18660         after handle when we need it.
18661
18662 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18663
18664         * Control.cs: When the parent size changes, recalculate anchor 
18665           positions. Partial fix for #76462
18666
18667 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18668
18669         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
18670           drawn. Fixes #76462
18671
18672 2005-10-17  Jackson Harper  <jackson@ximian.com>
18673
18674         * MonthCalendar.cs: Don't create the numeric up down until our
18675         handle is created. Otherwise our handle is created in the
18676         constructor and we don't know if we are a WS_CHILD or WS_POPUP
18677         yet.
18678
18679 2005-10-17  Jackson Harper  <jackson@ximian.com>
18680
18681         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
18682         correctly.
18683
18684 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18685         * TreeNode.cs : small logical fix (was using local var instead of field)
18686         
18687 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18688
18689         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
18690
18691 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18692
18693         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
18694
18695 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
18696
18697         * Control.cs: 
18698           - Re-implemented anchoring code. My first version was really broken.
18699             This fixes bug #76033. Unlike the previous implementation we will
18700             no longer have round errors since all numbers are calculated from
18701             scratch every time. Removed various anchor-related obsolete vars.
18702           - InitLayout no longer causes layout event firing and layout to be 
18703             performed
18704
18705 2005-10-16  Jackson Harper  <jackson@ximian.com>
18706
18707         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
18708         which was broken).
18709
18710 2005-10-16  Jackson Harper  <jackson@ximian.com>
18711
18712         * TabControl.cs: Remove debug code.
18713
18714 2005-10-16  Jackson Harper  <jackson@ximian.com>
18715
18716         * XEventQueue.cs: Increase the default queue size (very simple
18717         apps needed to grow the queue).
18718         * Hwnd.cs: No finalizer so we don't need to suppress
18719         finalization. Compute the invalid area manually so a new rectangle
18720         does not newto be created.
18721         * ScrollableControl.cs: Don't set any params (otherwise visibility
18722         isn't set correctly).
18723         * MdiChildContext.cs: New constructor takes the mdi parent so it
18724         doesn't have to be computed and avoids a crash on windows. Draw
18725         the window icon properly, and allow the text to be seen.
18726         * Form.cs: Use new MdiChildContext constructor. Make sure the
18727         child context isn't null in wndproc.
18728         * TabControl.cs: Don't set focus, this is muddling keyboard
18729         behavoir. Expand the tab rows when a window size increase will
18730         allow extra tabs to be seen. Don't allow tabs smaller than the
18731         width of a window to be scrolled out of view.
18732         * TreeNode.cs:
18733         * TreeView.cs: Use measure string to calculate a nodes width, the
18734         width is cached and only updated when the text or the font is
18735         changed. Don't check for expand/collapse clicks on the first level
18736         nodes if root lines are disabled.
18737         
18738 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
18739
18740         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
18741
18742 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18743
18744         * DataGridBoolColumn.cs: fixes warning
18745
18746 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18747
18748         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
18749         to match more to match more precisely the MS Net behavior
18750
18751 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18752
18753         * Hwnd.cs: Added field to track if window is mapped
18754         * XplatUIX11.cs: 
18755           - Unmap windows if they become 0-size, re-map when 
18756             they are >0 again; fixes #76035
18757           - Re-set our error handler after initializing X11Desktop
18758             to override any error handlers Gtk or whatever was called
18759             may have set.
18760
18761 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18762
18763         * CheckedListBox.cs: Removed unused vars
18764         * ListView.cs: Fixed signatures
18765         * RichTextBox.cs: Removed unused vars
18766         * TextBoxBase.cs: Removed unused vars
18767         * XplatUIWin32.cs: Removed unused vars
18768         * XplatUIX11.cs: Removed unused vars
18769         * XplatUI.cs: Updated version and date to latest published
18770
18771 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
18772
18773         * Cursor.cs: Added private .ctor to work around a bug in
18774           resourceset (Thanks to Geoff Norton for the help on this)
18775         * SplitterEventArgs.cs: Made fields accessible so we don't
18776           waste boatloads of objects and can reuse the same one
18777           in Splitter
18778         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
18779           any captions and borders when generating screen coordinates
18780         * Splitter.cs: Reimplemented control, now fully complete, uses
18781           rubberband drawing, supports and obeys all properties, has
18782           proper cursors
18783
18784 2005-10-13  Miguel de Icaza  <miguel@novell.com>
18785
18786         * Form.cs (Form): Setup default values for autoscale and
18787         autoscale_base_size;  Make these instance variables, not static
18788         variables. 
18789
18790         (OnLoad): on the first load, adjust the size of the form.
18791
18792 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
18793
18794         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
18795           width argument to DrawReversibleRectangle()
18796         * XplatUIWin32.cs, XplatUIX11.cs: 
18797           - Implemented width for DrawReversibleRectangle()
18798           - Added logic to DrawReversibleRectangle that recognizes a zero
18799             width or height and only draws a line in that situation
18800         
18801 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
18802
18803         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
18804         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
18805         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
18806           method (it uses our FosterParent window to get a graphics context)
18807
18808 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
18809
18810         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
18811           and SetWindowBackground methods
18812         * Control.cs:
18813           - Setting proper ControlStyles
18814           - We no longer call XplatUI.SetWindowBackground and XplatUI.
18815             EraseWindowBackground, instead we draw the window background
18816             ourselves in PaintControlBackground. This behaviour is
18817             required to match MS, where, when OnPaintBackground is not
18818             called, the background is not drawn.
18819           - Removed unneeded Refresh() in set_Text
18820         * Hwnd.cs: Dropped the ErasePending support. No longer needed
18821         * XplatUIX11.cs:
18822           - Created DeriveStyles method to translate from CreateParams to
18823             FormBorderStyle and TitleStyle, also handles BorderStyle (which
18824             matches FormBorderStyle enum values)
18825           - Consolidated SetHwndStyles and CalculateWindowRect border/title
18826             style calculations into single DeriveStyles method
18827           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
18828             from redrawing the whole window on any resize or expose.
18829           - Fixed CreateWindow usage of SetWindowValuemask. Before not
18830             all styles were applied to our whole/client window appropriately
18831           - Removed EraseWindowBackground() and SetWindowBackground() methods
18832           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
18833             no longer clear/redraw the background through X
18834           - Removed handling of erase_pending bit, we have no use for it (or
18835             so it seems)
18836         * XplatUIOSX.cs:
18837           - Removed generation and handling of WM_ERASEBKGND message
18838           - Removed EraseWindowBackground() and SetWindowBackground() methods
18839           - Removed handling of hwnd.ErasePending flag
18840         * XplatUIWin32.cs:
18841           - Removed EraseWindowBackground() and SetWindowBackground() methods
18842           - We no longer call EraseWindowBackground on PaintEventStart, we 
18843             ignore the fErase flag, erasing is handled in Control in the
18844             background handler
18845         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
18846           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
18847           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
18848           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
18849           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
18850           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
18851           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
18852
18853 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
18854
18855         * PropertyGrids.cs: Get sub properties
18856         * PropertyGridView.cs: Fix drawing code
18857
18858 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18859
18860         * ListBox.cs: Fixes 76383
18861
18862 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18863
18864         * DataGridTextBoxColumn.cs: Sets location and size before attachment
18865         * ThemeWin32Classic.cs: Fixes border drawing and calculations
18866         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
18867
18868
18869 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18870
18871         * ComboBox.cs: Fixes border drawing
18872
18873 2005-10-10  Miguel de Icaza  <miguel@novell.com>
18874
18875         * MimeIcon.cs: Ignore errors if the file can not be read.
18876
18877 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18878
18879         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
18880          - Fixed border calculations
18881          - Fixed horizontal scrolling in single column listboxes
18882          - Fixed drawing issues
18883
18884 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
18885
18886         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
18887           FormBorderStyle enum
18888         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
18889           code to determine FormBorderStyles from CreateParams
18890         * Form.cs:
18891           - Fixed bug where we'd set the wrong window styles if we were
18892             not creating an MDI window
18893           - Added call to XplatUI.SetBorderStyle when form borders are set
18894         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
18895         * Hwnd.cs:
18896           - Removed obsolete edge style
18897           - Switched from BorderStyle to FormBorderStyle
18898         
18899 2005-10-10  Jackson Harper  <jackson@ximian.com>
18900
18901         * Form.cs: Use the property to get the window handle instead of
18902         accessing it directly. Prevents a null reference exception.
18903
18904 2005-10-10  Jackson Harper  <jackson@ximian.com>
18905
18906         * TreeView.cs: Don't adjust the rect given to DrawString now that
18907         our libgdiplus draws correctly.
18908
18909 2005-10-08  Jackson Harper  <jackson@ximian.com>
18910
18911         * TreeView.cs: Don't try to find the clicked on node if there are
18912         no nodes in the tree.
18913
18914 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
18915
18916         * RichTextBox.cs:
18917
18918           restore
18919
18920 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
18921
18922         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
18923           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
18924           ErrorProvider.cs:
18925           Use ResPool for brushes and dispose System.Drawing objects that
18926           are not used anymore.
18927
18928 2005-10-07  Jackson Harper  <jackson@ximian.com>
18929
18930         * MdiChildContext.cs: Use the new borders instead of drawing them
18931         ourselves.
18932
18933 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
18934
18935         * Calling UpdateBounds after changing the window's BorderStyle 
18936         since the style can change the ClientSize
18937
18938 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18939
18940         * Control.cs: Made PaintControlBackground virtual
18941         * Panel.cs: Overriding PaintControlBackground instead of using paint
18942           event; paint event method was interfering with 'real' users of the
18943           event.
18944
18945 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
18946
18947         * ThemeWin32Classic.cs: remove border drawing since it is handled
18948         by the base control class now and was causing double border drawing.
18949
18950 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18951
18952         * Panel.cs: Redraw our background on paint. Not a pretty solution,
18953           but it does seem to match MS behaviour. This fixes bug #75324
18954
18955 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18956
18957         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
18958           somewhat hackish looking
18959
18960 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
18961
18962         * TextBoxBase.cs:
18963           - We now accept Enter even if AcceptEnter is false, if the containing
18964             form does not have an AcceptButton configured (fixes bug #76355)
18965           - Calculations are now fixed to no longer use Width/Height, but
18966             ClientSize.Width/Height, since we now support borders (this was
18967             a result of fixing borders and therefore bug #76166)
18968           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
18969             true (fixes bug #76354)
18970         
18971 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18972
18973         * Control.cs: 
18974           - Defaulting BorderStyle and setting it in XplatUI when our window 
18975             is created
18976           - Added enum check to InternalBorderStyle setter
18977         * XplatUIX11.cs: 
18978           - Added drawing of window borders
18979           - Now properly calculates WM decorations offset for toplevel 
18980             windows (fixes bug #74763)
18981         * XplatUIWin32.cs: 
18982           - Implemented BorderStyles for windows (we're letting win32 draw 
18983             the border for us)
18984           - Fixed the signature for SetWindowLong
18985         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
18986           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
18987           setting borders
18988         * UpDownBase.cs: Remove drawing of borders, this is handled by
18989           the driver, outside the client area
18990         * ListView.cs: Removed bogus border calculations. The control should
18991           be oblivious to borders, since those are not part of the client
18992           area. 
18993         * X11DesktopColors.cs: Commented out (currently) unneeded variables
18994         * ThemeWin32Classic.cs: Removed border calculations from ListView 
18995           drawing code
18996
18997 2005-10-06  Jackson Harper  <jackson@ximian.com>
18998
18999         * MdiChildContext.cs: Clear out the old virtual position remove
19000         all the unneeded calls to CreateGraphics.
19001
19002 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19003
19004         * TextControl.cs: Use proper color for highlighted text; fixes #76350
19005
19006 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19007
19008         * Form.cs: 
19009           - Added loading and setting of our new default icon
19010           - Only set icon if window is already created
19011
19012 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19013
19014         * Label.cs:
19015           - Do not explicitly set the foreground and background colors, to
19016             allow inheriting from parents (fixes #76302)
19017           - Use Control's InternalBorderStyle property to deal with borders
19018
19019 2005-10-06  Jackson Harper  <jackson@ximian.com>
19020
19021         * MdiChildContext.cs: Use the new xplatui function to draw a
19022         reversible rect.
19023
19024 2005-10-06  Jackson Harper  <jackson@ximian.com>
19025
19026         * Form.cs: Add the parent before creating the child context cause
19027         we need the parent when setting up the child.
19028
19029 2005-10-06  Jackson Harper  <jackson@ximian.com>
19030
19031         * FolderBrowserDialog.cs: redo the tree population code so a
19032         second thread isn't used. Should be a lot faster and more stable
19033         now.
19034
19035 2005-10-05  Jackson Harper  <jackson@ximian.com>
19036
19037         * TreeView.cs: There are no expand/collapse boxes if the node has
19038         no children.
19039
19040 2005-10-05  Jackson Harper  <jackson@ximian.com>
19041
19042         * X11DesktopColors.cs: Get menu colours for the gtk theme.
19043
19044 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
19045
19046         * FileDialog.cs: Fix InitialDirectory
19047
19048 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
19049
19050         * ComboBox.cs:
19051                 - Fixes changing between styles
19052                 - Fixes simple mode
19053                 - Fixes last item crashing when navigating with keyboard
19054
19055 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
19056
19057         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
19058
19059 2005-10-05  Jackson Harper  <jackson@ximian.com>
19060
19061         * TreeView.cs: If updating the root node do a full refresh.
19062         * TreeNode.cs: The root node should be expanded by default. Also
19063         added a utility prop to tell if we are the root node.
19064         * TreeNodeCollection.cs: Only refresh if the node we are being
19065         added to is expanded. Also added a comment on a potential
19066         optimization.
19067         
19068 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
19069
19070         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
19071           in dispose method. Fixes #76330
19072
19073 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
19074
19075         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
19076
19077                 - Implements vertical and horizontal scrolling using XplatUI
19078                 - Fixes keyboard navagation
19079                 - Fixes EnsureVisible
19080                 - Drawing fixes
19081                 - Handles and draws focus properly
19082
19083
19084 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
19085
19086         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
19087           Create handle. NET_2_0: Destroy handle when value is null.
19088
19089 2005-10-03  Jackson Harper  <jackson@ximian.com>
19090
19091         * ScrollBar.cs: My last scrollbar patch was broken. This is a
19092         revert and a new patch to prevent the thumb from refreshing so
19093         much.
19094
19095 2005-10-02  Jackson Harper  <jackson@ximian.com>
19096
19097         * ScrollBar.cs: Don't update position if it hasn't actually
19098         changed. This occurs when you hold down the increment/decrement
19099         buttons and the thumb gets to the max/min.
19100
19101 2005-10-01  Jackson Harper  <jackson@ximian.com>
19102
19103         * Form.cs:
19104         * MdiChildContext.cs:
19105         * MdiClient.cs: Implement ActiveMdiChild in Form.
19106
19107 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
19108
19109         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
19110
19111 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
19112
19113         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
19114           be found
19115
19116 2005-09-30  Jackson Harper  <jackson@ximian.com>
19117
19118         * ListBox.cs: Don't do a full refresh unless some data has
19119         actually changed.
19120
19121 2005-09-30  Jackson Harper  <jackson@ximian.com>
19122
19123         * TreeView.cs: Make sure that the checkboxes size is factored in
19124         even when not visible.
19125
19126 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19127
19128         * FileDialog.cs: Fix Jordi's build break
19129
19130 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19131
19132         * FileDialog.cs: 
19133                 - Use standard the Windows colours for the combobox as espected
19134                 - Dispose objects that use resouces when no longer need them
19135
19136 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19137
19138         * X11DesktopColors.cs: Initial incomplete implementation
19139         * XplatUIX11.cs: Added call to initialize X11DesktopColors
19140
19141 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
19142
19143         * Theme.cs: 
19144           - Switched Theme color names to match the names defined in 
19145             System.Drawing.KnownColors. Life's hard enough, no need to make 
19146             it harder.
19147           - Added setters to all theme color properties so themes can set
19148             their color schemes. The setters also propagate the color changes
19149             to System.Drawing.KnownColors via reflection
19150         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
19151           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
19152           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
19153           use the new, more logical theme color names
19154         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
19155           post-NT colors
19156         * ThemeWin32Classic.cs:
19157           - Removed code to set the old classic Windows colors. Instead it
19158             now relies on the colors returned by System.Drawing.KnownColors
19159             which will be either modern static colors (Unix) or colors
19160             read from the user's configuration (Win32)
19161           - Updated to use the new, more logical theme color names
19162           - Switched DataGrid drawing code to use only Theme colors instead of
19163             a mix of System.Drawing.KnownColors and Theme colors
19164           - DrawFrameControl(): Removed code that fills the button area, the
19165             fill would overwrite any previous fill done by a control. This
19166             fixes bug #75338 
19167           - Added DrawReversibleRectangle() stub
19168         * ScrollableControl.cs: Set visible state to false when scrollbars
19169           are removed (pdn fix)
19170         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
19171           DrawReversibleRectangle() method to allow drawing primitive 
19172           'rubber bands'
19173         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
19174
19175 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19176
19177         * ImageList.cs: Add(Icon): Create handle.
19178
19179 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19180
19181         * ListView.cs:
19182         * ThemeWin32Classic.cs:
19183                 - Fixes detail mode
19184                 - Sets clippings
19185                 - Issues with drawing
19186
19187 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19188
19189         * ImageList.cs: Moved RecreateHandle back to ImageList as event
19190           source has to be the ImageList.
19191
19192 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19193
19194         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
19195
19196 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19197
19198         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
19199
19200 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19201
19202         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
19203
19204 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
19205         * GridItem.cs: Fixed TODOs
19206         * GridItemCollection.cs: Added ICollection interface
19207
19208 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19209
19210         * ImageList.cs: Resize icons when needed.
19211
19212 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
19213
19214         * ListViewItem.cs
19215                 - Fixes GetBounds and returns on screen rects
19216         * ListView.cs:
19217                 - Fixes vertical and horzintal scrolling of items
19218         * ThemeWin32Classic.cs:
19219                 - Fixes drawing
19220                 
19221 2005-09-29  Raja R Harinath  <harinath@gmail.com>
19222
19223         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
19224
19225 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
19226
19227         * ImageList.cs: Added comments about handle creation. Moved Handle,
19228           HandleCreated and OnRecreateHandle implementations to ImageCollection.
19229           Handle is created in Add methods.
19230
19231 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19232          
19233         * DataGridDrawingLogic.cs: 
19234                 - Takes rows into account on Colum calculations
19235                 - Returns the column when clickig
19236         * DataGrid.cs:
19237                 - Fixes default HitTestInfo values
19238                 - Fixes HitTestInfo.ToString
19239                 - Fixes ResetBackColor          
19240         
19241 2005-09-28  Jackson Harper  <jackson@ximian.com>
19242
19243         * MdiChildContext.cs: Obey rules for fixed sized windows (no
19244         sizing or cursor changes). Also added some temp code to draw the
19245         titlebars text (Makes dev a little easier).
19246
19247 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19248
19249         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
19250
19251 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19252          
19253         * ListBox.cs: Fixes bug 76253
19254
19255 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19256
19257         * ImageList.cs: Added comments about the current implementation. Added
19258           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
19259           Format32bppArgb to preserve transparency and can use Graphics.FromImage
19260           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
19261           with Bitmap.LockBits for better performance. Revised the whole file to
19262           match MS.NET behaviour and provide better performance. Non-public
19263           interface members are calling public members even when they throw
19264           NotSupportedException for better maintainability. Moved ColorDepth,
19265           ImageSize, ImageStream and TransparentColor implementations to
19266           ImageCollection for better performance as these properties are not used
19267           by ImageList.
19268         * ImageListStreamer.cs: Added a new internal constructor that takes an
19269           ImageList.ImageCollection and serializes Images based on
19270           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
19271           match ImageList property name.
19272
19273 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
19274
19275         * ListBox.cs: Fixes IndexFromPoint for last item
19276
19277 2005-09-27  Jackson Harper  <jackson@ximian.com>
19278
19279         * Form.cs: Set the position of new mdi children correctly.
19280
19281 2005-09-27  Jackson Harper  <jackson@ximian.com>
19282
19283         * MdiClient.cs: New mdi children need to be added to the back of
19284         the controls collection so the zorder is set correctly. Also add a
19285         count of all the child windows that have been created.
19286
19287 2005-09-27  Jackson Harper  <jackson@ximian.com>
19288
19289         * Form.cs (CreateParams): Setup MDI forms correctly.
19290
19291 2005-09-27  Jackson Harper  <jackson@ximian.com>
19292
19293         * MdiChildContext.cs:
19294         * MonthCalendar.cs:
19295         * UpDownBase.cs:
19296         * ListBox.cs:
19297         * ListView.cs:
19298         * TextBoxBase.cs:
19299         * TreeView.cs:
19300         * ScrollableControl.cs:
19301         * ComboBox.cs: Add implicit controls using the new implict control
19302         functionality in ControlCollection. Also try to block multiple
19303         control add in a suspend/resume layout to save some cycles.
19304         
19305 2005-09-27  Jackson Harper  <jackson@ximian.com>
19306
19307         * Control.cs: Add functionality to the controls collection to add
19308         'implicit controls' these are controls that are created by the
19309         containing control but should not be exposed to the user. Such as
19310         scrollbars in the treeview.
19311         * Form.cs: The list var of the ControlsCollection is no longer
19312         available because of the potential of implicit controls getting
19313         ignored by someone accessing the list directly.
19314
19315 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
19316
19317         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
19318           loose it's parent. (Fixed bug introduced in r49103 when we added
19319           setting the child parent to null on Remove)
19320
19321 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
19322
19323         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
19324         * Splitter.cs: Added missing attributes for BorderStyle property.
19325         * TextBoxBase.cs: Marked Calculate* methods internal.
19326         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
19327         MS.NET.
19328
19329 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
19330          
19331         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
19332
19333 2005-09-25  Jackson Harper  <jackson@ximian.com>
19334
19335         * TreeView.cs: Update the node bounds correctly regardless of
19336         whether the node is visible.
19337
19338 2005-09-25  Jackson Harper  <jackson@ximian.com>
19339
19340         * ImageList.cs: Don't dispose the image after it is added to the
19341         image list. Only reformat images that need to be resized.
19342
19343 2005-09-25  Jackson Harper  <jackson@ximian.com>
19344
19345         * ImageList.cs: Don't set the format when changing the image.
19346
19347 2005-09-25  Jackson Harper  <jackson@ximian.com>
19348
19349         * TreeView.cs: We can't just assume the node has a font. Use the
19350         treeviews font if no node font is available.
19351
19352 2005-09-25  Jackson Harper  <jackson@ximian.com>
19353
19354         * TreeView.cs: Allow the scrollbars to be reset with negative
19355         values.
19356         - Don't add scrollbars to negative sized windows.
19357
19358 2005-09-23  Jackson Harper  <jackson@ximian.com>
19359
19360         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
19361         old Mono.Posix. Also remove some stray code that shouldn't have
19362         been committed.
19363
19364 2005-09-23  Jackson Harper  <jackson@ximian.com>
19365
19366         * TreeView.cs: Attempt at proper sizing of the horizontal
19367         scrollbar. Also don't resize the scrollbars unless they are
19368         visible.
19369
19370 2005-09-23  Jackson Harper  <jackson@ximian.com>
19371
19372         * TreeView.cs: We don't need to expand the invalid area when the
19373         selection changes, as this is all drawn in the node's bounding
19374         box. The area needs to be expanded (previous typo was contracting
19375         it) when the focus rect moves.
19376
19377 2005-09-23  Jackson Harper  <jackson@ximian.com>
19378
19379         * TreeView.cs: Display the selection box under the correct
19380         circumstances. We were rendering white text with no selection box
19381         before.
19382
19383 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
19384
19385         * TextControl.cs(Split): Now updates selection start/end if it points 
19386           into a line that's being split. Fixes a FIXME and bug #75258
19387
19388 2005-09-23  Jackson Harper  <jackson@ximian.com>
19389
19390         * Binding.cs:
19391         * ListControl.cs: Don't use the path when retrieving binding
19392         managers from the binding context. My bat sense tells me that the
19393         path is only used on insertion.
19394
19395 2005-09-22  Jackson Harper  <jackson@ximian.com>
19396
19397         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
19398
19399 2005-09-22  Jackson Harper  <jackson@ximian.com>
19400
19401         * Splitter.cs: There are special cursors used for splitting.
19402         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
19403
19404 2005-09-22  Jackson Harper  <jackson@ximian.com>
19405
19406         * Splitter.cs: Change the cursor appropriately when the splitter
19407         is moused over, so the user actually knows there is a splitter
19408         there.
19409
19410 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19411
19412        * Label.cs : Fix ToString method to give same output as MS.NET
19413
19414 2005-09-22  Jackson Harper  <jackson@ximian.com>
19415
19416         * TreeView.cs: Create the scrollbars when the handle is created
19417         and add them right away, just make them invisble. Also account for
19418         the window being shrunk vertically to the point that the vert
19419         scrollbar needs to be added.
19420         - Remove some 0.5 adjustments to get around anti aliasing issues.
19421         
19422 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
19423          
19424         * MainMenu.cs: Fixes default value
19425         * MenuItem.cs: Fixes default value
19426
19427 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
19428
19429         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
19430
19431 2005-09-21  Jackson Harper  <jackson@ximian.com>
19432
19433         * Control.cs: Don't try to set the border style on the window if
19434         it hasn't been created. When the window is created the border
19435         style will be used.
19436
19437 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19438
19439         * Control.cs (Update): Don't call XplatUI if we don't have a
19440           window handle yet
19441
19442 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19443
19444         * ContainerControl.cs: Instead of throwing an exception, print
19445           a one-time warning about Validate not being implemented
19446         * XplatUIWin32.cs: Removed debug output
19447
19448 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19449
19450         * Control.cs: Only set XplatUI background if we expect the windowing
19451           system to handle the background. This stops controls that draw their
19452           own background from flickering
19453
19454         * XplatUIX11.cs: Support custom visuals and colormaps for window 
19455           creation. This allows, amongst other things, using MWF X11 windows 
19456           with OpenGL.
19457
19458 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19459
19460         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
19461           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
19462           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
19463           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
19464           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
19465           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
19466           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
19467           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
19468           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
19469           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
19470           GridColumnStylesCollection.cs, 
19471           IDataGridColumnStyleEditingNotificationService.cs,
19472           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
19473           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
19474           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
19475           TreeNodeCollection.cs, AmbientProperties.cs, 
19476           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19477           DataObject.cs, ErrorProvider.cs, Splitter.cs,
19478           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
19479           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
19480           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
19481           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
19482           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
19483           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
19484           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
19485           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
19486           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
19487           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
19488           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
19489           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
19490           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
19491           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
19492           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
19493           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
19494           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
19495           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
19496           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
19497           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
19498           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
19499           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
19500           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
19501           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
19502           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
19503           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
19504           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
19505           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
19506           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
19507           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
19508           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
19509           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
19510           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
19511           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
19512           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
19513
19514 2005-09-21  Jackson Harper  <jackson@ximian.com>
19515
19516         * TreeNode.cs: Call Before/After Expand not Collapse when
19517         expanding.
19518
19519 2005-09-20  Jackson Harper  <jackson@ximian.com>
19520         
19521         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
19522
19523 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19524          
19525         * ListViewItem.cs:
19526                 - Fixes bug 76120
19527                 - Fixes proper storing of subitems
19528                 - Fixes not updated items
19529
19530 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
19531
19532         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
19533           things if our window handle isn't created yet. Also disabled 
19534           debug for TextBoxBase
19535
19536 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
19537
19538         * MenuAPI.cs: Remove filtering of events to allow menu usage
19539
19540 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19541
19542         * Cursor.cs: Allow null to be passed to Cursor.Current.
19543
19544 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
19545
19546         * ThemeWin32Classic.cs:
19547           - Change some private methods/fields to protected virtual so that 
19548             they can be accessed and overriden in derived classes
19549           - First refactoring of some methods. Derived themes now don't 
19550             need to duplicate the complete code from ThemeWin32Classic
19551         * ThemeNice.cs:
19552           - Added nice StatusBar
19553           - Derive from ThemeWin32Classic and not Theme
19554           - Removed duplicate ThemeWin32Classic code
19555
19556 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19557
19558         * Control.cs (ControlCollection.Add): If the value null is passed
19559         the control is ignored. 
19560
19561         Optimize this loop.
19562
19563 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
19564
19565         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
19566           PostQuitMessage state.
19567         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
19568
19569 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
19570
19571         * Application.cs: Our constructor will never get called, move 
19572           initialization to fields; fixes bug #75933
19573
19574 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19575
19576         * FileDialog.cs :
19577                 - Allow files to be selected properly using file name
19578                 combo box.
19579                 - Add ability to change diretory (absolute / relative)
19580                 using file name combo box.
19581
19582 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19583          
19584         * ListBox.cs: 
19585                 - Fixes Multicolumn listboxes item wrong calculations
19586                 - Allows to click when only one item is in the listbox
19587                 - Fixes crash when no items using keyboard navigation
19588
19589 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
19590
19591         * ComboBox.cs: Reverted almost everything from the latest patch which
19592           broke ComboBox
19593
19594 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
19595         
19596         * ToolTip.cs:
19597                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
19598         * ComboBox.cs:
19599                 - When DropDownStyle is Simple, it does not show scrollbar 
19600                 to the last item of the list.
19601                 - When DropDownStyle is Simple, it crashed when the list was 
19602                 scrolled down with the down cursor key.
19603                 - Fixed a bug that when DropDownStyle is DropDownList, the 
19604                 selected item was not shown.
19605                 - The position of the selected item was not preserved when 
19606                 the next dropdown happened.
19607         * ThemeWin32Classic.cs:
19608                 - Items were wrapped at the right end.
19609         * CheckedListBox.cs:
19610                 - Fixed Add method
19611         * ListBox.cs:
19612                 - Items should be fully shown.
19613                 - When resizing and vertical scrollbar disappeared, the item 
19614                 of index 0 should be on the top of the list.
19615                 - GetItemRectangle should consider the size of ver. scrollbar
19616         * StatusBar.cs:
19617                 - SizingGrip area should not be allocated when it is not 
19618                 displayed.
19619                 - Now it reflects MinWidth of the containing panel and 
19620                 fixed a crash that happens when its width becomes so small.
19621
19622 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19623
19624         * CheckedListBox.cs: Fixes bug 76028
19625         * ListBox.cs: Fixes bug 76028
19626
19627 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19628
19629         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
19630         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
19631
19632 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
19633
19634         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
19635
19636 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19637
19638         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
19639
19640 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19641
19642         * IRootGridEntry.cs: Added
19643         * PropertyGridCommands.cs: Added
19644         * PropertiesTab.cs: Added missing methods and property
19645         * PropertyGridView.cs: Made class internal
19646         * PropertyGridTextBox.cs: Made class internal
19647
19648 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19649
19650         * MimeIcon.cs: Try to check some other environment variables
19651           if "DESKTOP_SESSION" returns "default"
19652
19653 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19654
19655         * ThemeNice.cs: Corrected background colors (e.g. menus)
19656         * ColorDialog.cs: Use correct background colors for controls
19657
19658 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19659
19660         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
19661
19662 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
19663
19664         * RichTextBox.cs: Added initial implementation
19665         * lang.cs: Removed. Was accidentally checked in long time ago
19666         * TODO: Removed. Contents were obsolete
19667
19668 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19669                                                                                 
19670         * PropertiesTab.cs : Added
19671
19672 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19673                                                                                 
19674         * PropertyGrid.cs : Update
19675         * PropertyGridView.cs : Update
19676         * System.Windows.Forms.resx : Added images and strings
19677
19678 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
19679
19680         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
19681  
19682 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
19683
19684         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
19685           a busy loop right after the Ungrab the X11 display is otherwise 
19686           blocked
19687
19688 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
19689
19690         * ThemeWin32Classic.cs: Optimise the use of clipping
19691
19692 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
19693
19694         * DataGrid.cs: fixes recursion bug
19695
19696 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
19697
19698         * ThemeNice.cs: 
19699           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
19700           - Cleanup
19701
19702 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
19703
19704         * ThemeNice.cs: Draw nice ProgressBars
19705
19706 2005-09-01  Miguel de Icaza  <miguel@novell.com>
19707
19708         * VScrollBar.cs: Another buglet found by Aaron's tool. 
19709
19710         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
19711         bug finder.
19712
19713 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
19714
19715         * ThemeNice.cs:
19716           - Added nicer menu drawing
19717           - Updated DrawTab
19718           - some refactoring
19719
19720 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19721
19722         * CreateParams.cs (ToString): Made output match MS
19723         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
19724             handle is already created (to avoid forcing window creation)
19725         * XplatUIX11.cs: Set window text to caption after creating window,
19726           in case Text was set before window was created
19727         * Form.cs: Use this.Text instead of a static string as caption
19728
19729 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19730
19731         * NotifyIcon.cs: Don't set the window to visible; this screws
19732           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
19733           OnPaint without a bitmap)
19734         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
19735           happen very often anyway; we could add the check to the WM_PAINT 
19736           event generation code
19737
19738 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19739
19740         * NotifyIcon.cs: Fill the icon area with a background color, to 
19741           avoid 'residue' when transparent icons are drawn
19742         * XplatUIX11.cs:
19743           - Handle whole_window == client_window when destroying windows
19744           - SystrayAdd(): Set client_window to whole_window value to
19745             get mouse and other events passed to NotifyIcon
19746
19747 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19748
19749         * Form.cs: Set proper default for Opacity property
19750         * NotifyIcon.cs:
19751           - ShowSystray(): Don't bother creating telling the OS
19752             about the systray item if no icon is provided
19753           - Now handles WM_NCPAINT message to deal with whole/client window
19754             split
19755           - Create window as visible to not get caught by Expose optimization
19756         * Hwnd.cs: Removed debug message
19757         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
19758           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
19759             PaintEventStart/End to use new client argument
19760         * TextBoxBase.cs:
19761           - Commented out debug messages
19762           - Switched PaintEventStart/End to use new client argument
19763         * XplatUI.cs: Added client window bool to PaintEventStart()/
19764           PaintEventEnd() calls, to support drawing in non-client areas
19765         * XplatUIDriver.cs: 
19766           - Added client window bool to PaintEventStart()/PaintEventEnd() 
19767             calls, to support drawing in non-client areas
19768           - Added conditional compile to allow using MWF BeginInvoke 
19769             on MS runtime
19770         * XplatUIX11.cs:
19771           - Added some conditional debug output
19772           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
19773             whole/client window split
19774           - Implemented handling of client argument to PaintEventStart()/End()
19775         * Control.cs:
19776           - Throw exception if BeginInvoke() is called and the window handle
19777             or one of the window's parent handles is not created
19778           - Added conditional compile to allow using MWF BeginInvoke on
19779             MS runtime
19780           - get_Parent(): Only sets parent if handle is created. This avoids
19781             forcing window handle creation when parent is set.
19782           - Now fires Layout and Parent changed events in proper order
19783           - Switched to use Handle instead of window.Handle for Z-Order setting,
19784             the get_Parent() patch above causes us to possibly get null for 'window'
19785           - Implemented handling of client argument to PaintEventStart()/End()
19786           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
19787             default handling)
19788           - Now sends a Refresh() to all child windows when Refresh() is called
19789
19790 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
19791
19792         * Form.cs: Added (non-functional) Opacity property
19793         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
19794
19795 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
19796         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
19797           use export MONO_THEME=nice to activate it.
19798           Currently supported controls:
19799           - Button
19800           - ComboBox
19801           - ScrollBar
19802           - TabControl (TabAlignment.Top only, other will follow)
19803         * ThemeEngine.cs: Add theme nice
19804         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
19805           if enabled
19806
19807 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
19808
19809         * Splitter.cs: Resize docked control and its neighbor.
19810
19811 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
19812         -- Making Windows with Menus layout correctly --
19813         * Form.cs : The first leg of the fix
19814                 Menu setter - adjust Client Size as needed to make space for the menu
19815                 SetClientSizeCore - doesn't call base version to be able to pass the 
19816                         menu handle to XplatUI.CalculateWindowRect
19817         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
19818         * XplatUIX11.cs: The critical second leg of the fix
19819                 GetWindowPos needs to use a recalculated client_rect
19820                 so that resizing the window doesn't break layout of child controls. 
19821                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
19822                 Lots of \t\n killed
19823
19824 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19825
19826         * Label.cs: Now properly recalculates width and height on Font and Text
19827           changes if AutoSize is set
19828
19829 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
19830         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
19831
19832 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
19833
19834         * ImageList.cs: Makes ToString method compatible with MS
19835
19836 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
19837
19838         * MenuAPI.cs: fixes bug 75716
19839
19840 2005-08-11 Umadevi S <sumadevi@novell.com>
19841         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
19842
19843 2005-08-11 Umadevi S <sumadevi@novell.com>
19844         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
19845
19846 2005-08-10  Umadevi S <sumadevi@novell.com>
19847         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
19848
19849 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
19850
19851         * Menu.cs: fixes bug 75700
19852         * MenuAPI.cs: fixes navigation issues
19853
19854 2005-08-09  Umadevi S <sumadevi@novell.com>
19855         * CheckedListBox.cs - simple fix for GetItemChecked.
19856
19857 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
19858
19859         * ComboBox.cs: Serveral fixes
19860         * ListBox.cs: Serveral fixes
19861
19862 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
19863
19864         * ComboBox.cs: Fixes FindString methods and GetItemHeight
19865         * ListBox.cs: Fixes FindString methods
19866
19867 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
19868
19869         * DataGrid.cs: fixes bugs exposed by new tests
19870
19871 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
19872
19873         * Mime.cs: Compile Mono assembly references only if compiling
19874           with Mono (Allows to build with VS.Net again)
19875
19876 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
19877
19878         * Control.cs (PaintControlBackground): Draw background image
19879         corrrectly.
19880         (CheckForIllegalCrossThreadCalls): Stubbed.
19881         
19882         * Form.cs (OnCreateControl): Center when should be centered.
19883         
19884         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
19885
19886 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
19887
19888         * Binding.cs: Binding to properties should be case unsensitive
19889
19890 2005-07-18 vlindos@nucleusys.com
19891
19892         * DataGrid.cs: fixes setmember order
19893
19894 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
19895
19896         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
19897         * FileDialog.cs: FileDialog is now resizable and uses the new
19898           MimeIconEngine
19899
19900 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
19901
19902         * DataGridTextBoxColumn.cs: default value
19903         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
19904         * GridTableStylesCollection.cs: fixes checking MappingName
19905         * DataGridDrawingLogic.cs: fixes drawing logic issues
19906         * DataSourceHelper.cs: rewritten to make compatible with more data sources
19907         * DataGrid.cs: fixes    
19908
19909 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
19910
19911         * MimeGenerated.cs: Use case sensitive comparer for
19912           NameValueCollections
19913
19914 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
19915
19916         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
19917         * ThemeWin32Classic.cs: bug fixes, code refactoring
19918         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
19919         * DataGrid.cs: bug fixes, code refactoring
19920         * DataGridTextBox.cs: bug fixes, code refactoring
19921         * DataGridColumnStyle.cs:  bug fixes, code refactoring
19922         * Theme.cs:  bug fixes, code refactoring
19923
19924 2005-07-01  Peter Bartok  <pbartok@novell.com> 
19925
19926         * TextControl.cs: Quick fix for the reported crash on ColorDialog
19927           and other text box usage
19928
19929 2005-07-01  Jackson Harper  <jackson@ximian.com>
19930
19931         * TabControl.cs: Make sure the bottom of the tab covers the pages
19932         border.
19933
19934 2005-06-30  Peter Bartok  <pbartok@novell.com> 
19935
19936         * Form.cs (ShowDialog): Assign owner of the dialog
19937         * TextBoxBase.cs: Always refresh caret size when deleting, caret
19938           might have been moved to a tag with different height
19939
19940 2005-06-30  Jackson Harper  <jackson@ximian.com>
19941
19942         * Form.cs: Don't create an infinite loop when setting focus
19943         * MenuItem.cs: Don't dirty the parents if we don't have any
19944
19945 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
19946
19947         * LibSupport.cs: Rename
19948
19949 2005-06-29  Peter Bartok  <pbartok@novell.com>
19950
19951         * TextBoxBase.cs: Re-align caret after deleting a character
19952         * TextControl.cs:
19953           - DeleteChars(): Ensure that tag covers the provided position
19954           - StreamLine(): Drop reference for dropped tag
19955
19956 2005-06-29  Peter Bartok  <pbartok@novell.com> 
19957
19958         * TextControl.cs: 
19959           - Selections now work properly, anchoring at the initial location
19960             and properly extending in either direction (SetSelectionToCaret(),
19961             SetSelectionStart() and SetSelectionEnd())
19962           - No longer redraws the whole control on selection change, now
19963             calculates delta between previous and new selection and only
19964             invalidates/redraws that area
19965           - Fixed FindPos() math off-by-one errors
19966           - Changed DeleteChars() to verify the provided tag covers the
19967             provided position, selections may have a tag that doesn't cover
19968             the position if the selection is at a tag border
19969           - Fixed off-by-one errors in DeleteChars()
19970           - Added missing streamlining check in DeleteChars() to remove
19971             zero-length tags
19972           - Implemented Invalidate() method, now properly calculates exposures
19973             between two given lines/positions
19974           - Implemented SetSelection()
19975           - Obsoleted and removed FixupSelection()
19976           - Improved RecalculateDocument() logic, removing code duplication
19977
19978 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19979
19980         * LibSupport.cs: changes to match different input/output arguments.
19981
19982 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19983
19984         * LibSupport.cs: added libsupport.so init routine.
19985
19986 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
19987         
19988         * ControlBindingsCollection.cs
19989                 - Throws an exception on null datasource when adding
19990                 - Checks for duplicated bindings when adding
19991
19992 2005-06-28  Jackson Harper  <jackson@ximian.com>
19993
19994         * TreeView.cs (OnKeyDown): Support left and right properly
19995         (navigates as well as expanding and collapsing.
19996         - Add support for Multiply, this expands all the selected nodes
19997         children.
19998         - Fix some tabbing.
19999
20000 2005-06-28  Jackson Harper  <jackson@ximian.com>
20001
20002         * TreeView.cs: Implement keyboard navigation, currently supports,
20003         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
20004         support for toggling checkboxes with the space bar.
20005
20006 2005-06-28  Jackson Harper  <jackson@ximian.com>
20007
20008         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
20009         tree.
20010
20011 2005-06-28  Jackson Harper  <jackson@ximian.com>
20012
20013         * TreeView.cs: Add missing event.
20014
20015 2005-06-27  Peter Bartok  <pbartok@novell.com> 
20016
20017         * TextControl.cs:
20018           - Made line ending size configurable (now allows for counting 
20019             lineendings as \n or \r\n)
20020           - Added margin to viewport to keep caret visible on right side
20021           - Fixed translation routines for line/pos to documentpos to consider
20022             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
20023           - Fixed some line-endings to be unix style
20024           - Fixed Document.FormatText to perform it's calculations 1-based
20025           - Added descriptions for a few methods that might otherwise get 
20026             used wrong
20027           - Added NOTE section with some basic conventions to remember at 
20028             the top of the file
20029           - Major fixup for RichTextBox selection drawing:
20030             * Fixed crashes when multiple tags on a single line were selected
20031             * fixed selection box drawing not overlaying text
20032             * fixed bogus offset calculation for tags not starting at index 1
20033             * Switched behaviour from using multiple Substrings of a 
20034               StringBuilder.ToString() to using multiple 
20035               StringBuilder.ToString(start, length) statements, hoping this is
20036               faster (kept original version commented out in the code, in case
20037               original version was faster)
20038         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
20039           alignment != Left
20040         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
20041           call it as well
20042
20043 2005-06-27  Jackson Harper  <jackson@ximian.com>
20044
20045         * TabControl.cs: Move to the left and right with the arrow
20046         keys. These keys don't cycle beyond first and last like
20047         tab. Refresh all the tabs when scrolling them to the left or
20048         right.
20049
20050 2005-06-27  Jackson Harper  <jackson@ximian.com>
20051
20052         * TabControl.cs:
20053           - ToString: Added method
20054           - CreateParams: Remove TODO and comment
20055           - OnKeyDown: Cycle through bounds properly.
20056           - SelectedIndex: Scroll to the right or left if we need to
20057           display the newly selected tab.
20058
20059 2005-06-23  Jackson Harper  <jackson@ximian.com>
20060
20061         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
20062         set.
20063
20064 2005-06-23  Jackson Harper  <jackson@ximian.com>
20065
20066         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
20067         CTRL-SHIFT-TAB, and HOME, END are there any others?
20068
20069 2005-06-23  Jackson Harper  <jackson@ximian.com>
20070
20071         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
20072
20073 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20074         
20075         * DataGridTextBoxColumn.cs: fixes and enhancements
20076         * ThemeWin32Classic.cs: fixes and enhancements
20077         * DataGridBoolColumn.cs:  fixes and enhancements
20078         * DataGridDrawingLogic.cs:  fixes and enhancements
20079         * CurrencyManager.cs: fixes and enhancements
20080         * DataGrid.cs: fixes and enhancements
20081         * DataGridColumnStyle.cs:  fixes and enhancements
20082
20083 2005-06-22  Jackson Harper  <jackson@ximian.com>
20084
20085         * TabControl.cs: Add some missing methods that just call into the
20086         base. Make the TabPageCollection's IList interface behave in the
20087         same manner as the MS implementation.
20088
20089 2005-06-22  Peter Bartok  <pbartok@novell.com> 
20090
20091         * TextControl.cs: Added sanity check
20092         * TextBoxBase.cs: 
20093           - Fixed wrapping behaviour, don't set wrap on single line controls
20094             (this fixes the breakage of colordialog introduced in an earlier
20095              checkin)
20096           - Added rudimentary support for autoscrolling right-aligned controls
20097             (still needs fixing, also, center alignment scroll is missing)
20098
20099 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20100         
20101         * ScrollBar.cs: Fixes thumbpos on Maximum values
20102
20103 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
20104         
20105         * PropertyGridView.cs: Pass context information to UITypeEditors 
20106
20107 2005-06-21  Peter Bartok  <pbartok@novell.com> 
20108
20109         * TextBoxBase.cs:
20110           - Now calling PositionCaret with absolute space coordinates
20111           - Enabled vertical scrolling
20112           - Better tracking of scrollbar changes, tied into WidthChange
20113             event
20114           - Improved cursor tracking
20115           - Removed debug output
20116         * TextControl.cs:
20117           - PositionCaret coordinates are now works in absolute space, not 
20118             the canvas
20119           - Improved tracking of document size
20120           - Added events for width and height changes
20121
20122 2005-06-21  Peter Bartok  <pbartok@novell.com>
20123
20124         * Form.cs: Set focus to active control when form is activated
20125         * TextControl.cs: 
20126           - Added word-wrap functionality to RecalculateLine() 
20127           - Added some short function descriptions for VS.Net to aid in
20128             writing dependent controls
20129           - Added Caret property, returning the current coords of the caret
20130           - Added ViewPortWidth and ViewPortHeight properties
20131           - Added Wrap property
20132           - Added CaretMoved event
20133           - Removed some old debug code
20134           - Split() can now create soft splits
20135           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
20136           - Added method to format existing text
20137           - Fixed size/alignment calculations to use viewport
20138           - RecalculateDocument now can handle changing line-numbers while
20139             calculating lines
20140
20141         * TextBox.cs:
20142           - Added some wrap logic, we don't wrap if alignment is not left
20143           - Added casts for scrollbar var, base class switched types to
20144             also support RichTextBoxA
20145           - Implemented handling of scrollbar visibility flags
20146
20147         * TextBoxBase.cs:
20148           - Switched scrollbars type to RichTextBoxScrollBars to support
20149             RichTextBox
20150           - Added tracking of canvas width/height
20151           - Switched scrollbars to be not selectable (to keep focus on text)
20152           - Added central CalculateDocument() method to handle all redraw
20153             requirements
20154           - Added ReadOnly support
20155           - Added WordWrap support
20156           - Fixed handling of Enter key (we now treat it as a DialogKey)
20157           - Fixed caret positioning when h or v scroll is not zero
20158           - Fixed placing/generation of vertical scrollbar
20159           - Added CalculateScrollBars() method to allow updating scrollbar
20160             limits and visibility
20161           - Fixed handling of horizontal scroll
20162           - Added handling of vertical scroll
20163           - Implemented auto-'jump' when caret moves to close to a left or
20164             right border and there is text to be scrolled into view (currently
20165             there's the potential for a stack overflow, until a bug in
20166             scrollbar is fixed)
20167
20168 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
20169         
20170         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
20171
20172 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
20173
20174         * Mime.cs:
20175         - added inodes.
20176         - return application/x-zerosize for files with size zero
20177           (if no extension pattern matches).
20178         - check matches collection for strings too.
20179         - return only the first mime type if the name value
20180           collection has more than one mime type.
20181
20182 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
20183         
20184         * PropertyGrid.cs: Cleaned up some TODOs
20185         * PropertyGridView.cs: Added support for UITypeEditors
20186
20187 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20188         
20189         * DataGrid.cs: clears cached value
20190
20191 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20192
20193         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
20194         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
20195         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
20196         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
20197         
20198 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
20199
20200         * ThemeWin32Classic.cs: fixes colour
20201
20202 2005-06-15  Peter Bartok  <pbartok@novell.com>
20203
20204         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
20205         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
20206         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
20207         * Control.cs: Added some MWFCategory and MWFDescription attributes
20208         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
20209
20210 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
20211
20212         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
20213         usage
20214
20215 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
20216
20217         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
20218         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
20219         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
20220         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
20221         * DataGrid.cs: default datagrid settings for Default Styles, fixes
20222         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
20223
20224 2005-06-13  Jackson Harper  <jackson@ximian.com>
20225
20226         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
20227         isn't printed when the user enables dropping. (X11 does accept
20228         drops).
20229         
20230 2005-06-13  Jackson Harper  <jackson@ximian.com>
20231
20232         * TreeView.cs: Remove some TODOS.
20233
20234 2005-06-13  Jackson Harper  <jackson@ximian.com>
20235
20236         * Form.cs: Hook into the mdi framework.
20237         * MdiClient.cs: Use the base control collections add method so
20238         parents get setup correctly. Set the default back colour and dock
20239         style.
20240         * MdiChildContext.cs: New class, this bad actor handles an
20241         instance of an MDI window. Right now there is only basic
20242         support. You can drag, close, and resize windows. Minimize and
20243         Maximize are partially implemented.
20244
20245 2005-06-13  Jackson Harper  <jackson@ximian.com>
20246
20247         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
20248         freaky when both vals are negative. NOTE: There are probably other
20249         places in XplatUIX11 that this needs to be done.
20250
20251 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
20252
20253         * DataGrid.cs: implement missing methods, move KeyboardNavigation
20254         * DataGridColumnStyle.cs: fixes signature
20255
20256 2005-06-12  Jackson Harper  <jackson@ximian.com>
20257
20258         * XplatUIX11.cs: Use sizing cursors similar to the ones on
20259         windows.
20260
20261 2005-06-11  Jackson Harper  <jackson@ximian.com>
20262
20263         * StatusBarPanel.cs: Signature cleanups. Implement
20264         BeginInit/EndInit.
20265
20266 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
20267
20268         * DataGridTextBoxColumn.cs: Honors aligment
20269         * GridColumnStylesCollection.cs: Contains is case unsensitive
20270         * GridTableStylesCollection.cs: several fixes
20271         * DataGridTableStyle.cs: default column creation
20272         * DataGridDrawingLogic.cs: fixes
20273         * CurrencyManager.cs: ListName property
20274         * DataGrid.cs: multiple styles support
20275         * DataGridColumnStyle.cs: fixes
20276         
20277
20278 2005-06-10  Peter Bartok  <pbartok@novell.com>
20279
20280         * Control.cs(Select): Moved SetFocus call to avoid potential
20281           loops if controls change the active control when getting focus
20282         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
20283           the up/down buttons
20284
20285 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
20286
20287         * ImageListConverter.cs: Implemented
20288
20289 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20290
20291         * MonthCalendar.cs: Wired in NumericUpDown control for year
20292
20293 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20294
20295         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
20296           DoubleClick events, since they are not meant to be fired.
20297
20298 2005-06-09  Peter Bartok  <pbartok@novell.com>
20299
20300         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
20301           Jonathan's standalone controls into MWF, implemented missing
20302           events, attributes and methods; added xxxAccessible classes
20303         * AccessibleObject.cs: Made fields internal so other classes
20304           can change them if needed
20305
20306 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
20307
20308         * UpDownBase.cs: Complete implementation
20309         * NumericUpDown.cs: Complete implementation
20310         * DomainUpDown.cs: Complete implementation
20311
20312 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
20313
20314         * DataGridTextBoxColumn.cs: drawing fixes
20315         * DataGridCell.cs: fixes ToString method to match MSNet
20316         * DataGridTableStyle.cs: fixes
20317         * DataGridBoolColumn.cs: fixes, drawing
20318         * DataGridDrawingLogic.cs: fixes, new methods
20319         * DataGridTextBox.cs: Keyboard and fixes
20320         * DataGrid.cs:
20321                 - Keyboard navigation
20322                 - Scrolling fixes
20323                 - Row selection (single, multiple, deletion, etc)
20324                 - Lots of fixes
20325         
20326 2005-06-07  Jackson Harper  <jackson@ximian.com>
20327
20328         * ThemeWin32Classic.cs: Clear the background area when drawing
20329         buttons.
20330
20331 2005-06-06  Peter Bartok  <pbartok@novell.com>
20332
20333         * ImageListStreamer.cs: Fixed signature for GetData
20334         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
20335         * ComboBox.cs:
20336           - Added missing ChildAccessibleObject class
20337           - Added missing OnXXXFocus overrides, switched to using those
20338             instead of the event handler
20339         * Control.cs:
20340           - Added Parent property for ControlAccessibleObject
20341           - Fixed signatures
20342           - Fixed attributes
20343           - Added ResetBindings()
20344         * ListBindingConverter.cs: Implemented some methods
20345         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
20346         * ImageList.cs: Implemented basic handle scheme, removed TODOs
20347         * ContainerControl.cs: Fixed signature, now subscribing to the
20348           ControlRemoved event instead of overriding the handler, LAMESPEC
20349         * CurrencyManager.cs: Added missing attribute
20350         * MonthCalendar.cs: Added missing properties
20351
20352 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20353
20354         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
20355         
20356 2005-06-06  Gaurav Vaish and Ankit Jain
20357
20358         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
20359         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
20360         
20361 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20362
20363         * Control.cs: fixes CreateParams Width / Height.
20364
20365 2005-06-05  Peter Bartok  <pbartok@novell.com>
20366
20367         * Win32DnD.cs: Removed compilation warnings
20368
20369 2005-06-05  Peter Bartok  <pbartok@novell.com>
20370
20371         * Control.cs (CreateParams): Since we don't know if one of the
20372           properties we use is overridden, lets make sure if we fail accessing
20373           we continue with a backup plan
20374
20375 2005-06-05  Peter Bartok  <pbartok@novell.com>
20376
20377         * Win32DnD.cs:
20378           - Removed debug output
20379           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
20380             struct
20381           - Plugged resource leak
20382         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
20383           MS size
20384
20385 2005-06-05  Peter Bartok  <pbartok@novell.com>
20386
20387         * XplatUIWin32.cs: Removed DnD code
20388         * Win32DnD.cs: Implemented drop source and drop target functionality
20389
20390 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20391
20392         * UpDownBase.cs: remove duplicate addition of event, enable some code
20393         that was commented out.
20394         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
20395         Validate input when a key is pressed. It works fine now for every
20396         combination of Hexadecimal. Only missing some drawing love when sharing
20397         space with other controls.
20398
20399 2005-06-04  Peter Bartok  <pbartok@novell.com>
20400
20401         * Control.cs:
20402           - We need to pass a window for DragDrop, so enable callback events
20403           - Added DnD callback events when being a DragSource
20404         * XplatUI.cs (StartDrag): Added window handle argument
20405         * XplatUIDriver.cs (StartDrag): Added window handle argument
20406         * QueryContinueDragEventArgs: Made fields internally accessible so
20407           drivers can set them
20408         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
20409           can set them
20410
20411 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
20412
20413         * DataGridTextBoxColumn.cs: column text editing
20414         * DataGridTableStyle.cs: Respect columns styles created by the user
20415         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
20416         * DataGridBoolColumn.cs: bool column editing
20417         * DataGrid.cs: fixes to scrolling, properties, etc
20418         * DataGridTextBox.cs: handle keyboard
20419         * DataGridColumnStyle.cs: fixes
20420
20421 2005-06-02  Jackson Harper  <jackson@ximian.com>
20422
20423         * ImageListStreamer.cs: Somewhat broken implementation of
20424         GetObjectData. The RLE needs some work to match MS properly.
20425
20426 2005-06-02  Jackson Harper  <jackson@ximian.com>
20427
20428         * X11Dnd.cs: Attempting to keep at least one file in MWF
20429         monostyled.
20430
20431 2005-06-02  Peter Bartok  <pbartok@novell.com>
20432
20433         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
20434           that way
20435
20436 2005-06-02  Peter Bartok  <pbartok@novell.com>
20437
20438         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
20439         * XplatUI.cs: Added DoDragDrop() method
20440         * XplatUIDriver.cs: Added DoDragDrop() method
20441
20442 2005-06-02  Jackson Harper  <jackson@ximian.com>
20443
20444         * Splitter.cs: Implement BorderStyle.
20445
20446 2005-06-02  Jackson Harper  <jackson@ximian.com>
20447
20448         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
20449         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
20450         X11 using XDND.
20451
20452 2005-06-02  Peter Bartok  <pbartok@novell.com>
20453
20454         * DataObject.cs:
20455           - Added Data setter
20456           - Fixed broken insertion code for SetData, now also
20457             overwrites any existing entry of the same format name
20458         * Hwnd.cs: Added list of pointers that automatically gets
20459           freed when the window is disposed
20460         * XplatUI.cs: Call driver initialization method when loading
20461           a driver
20462         * Control.cs:
20463           - OnDragLeave takes EventArgs, not DragEventArgs
20464           - Added setting of WS_EX_ACCEPTFILES style when dropping is
20465             supported
20466           - Forces style update when drop state changes
20467         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
20468           not perfect since we cannot (yet) call the IDataObject.GetData()
20469           method, we keep getting 0x80004005 error, dunno why)
20470
20471 2005-06-02  Peter Bartok  <pbartok@novell.com>
20472
20473         * DragEventArgs.cs: Make fields internal so we can cache the
20474           object and re-set the fields from XplatUI
20475
20476 2005-06-02  Jackson Harper  <jackson@ximian.com>
20477
20478         * Control.cs: Add some internal methods so the DnD subsystem can
20479         raise DnD events. Also call into the driver when AllowDrop is set.
20480         * XplatUI.cs:
20481         * XplatUIDriver.cs: New method for setting whether or not a window
20482         is allowed to accept drag and drop messages.
20483                 
20484 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
20485         
20486         * ScrollBar.cs: Make sure that values sent in Scroll events
20487         are always between Maximum and Minimum.
20488
20489 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
20490
20491         * Menu.cs: Call MenuChanged when menuitem visibility has been
20492         changed.
20493         * MenuItem.cs: Rebuild menu when item is (not) visible.
20494         * MainMenu.cs: MainMenu has special MenuChanged.
20495         * Theme.cs: Caption and FrameBorderSize are not fixed.
20496         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
20497         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
20498         * XplatUIX11.cs,
20499         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
20500         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
20501
20502 2005-05-30  Jackson Harper  <jackson@ximian.com>
20503
20504         * DataFormat.cs: We can't statically initialize this stuff because
20505         it calls into the xplatui and could create a loop. So we lazy init
20506         it.
20507
20508 2005-05-28  Jackson Harper  <jackson@ximian.com>
20509
20510         * Control.cs: Proper implementation of Product(Name/Version).
20511
20512 2005-05-27  Jackson Harper  <jackson@ximian.com>
20513
20514         * DataObject.cs: Dont crash if no data is found.
20515
20516 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
20517         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
20518                 as per status page, guessing it should be set to true
20519
20520 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
20521
20522         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
20523         * DataGridTableStyle.cs: set proper formatting text, def header text
20524         * ThemeWin32Classic.cs: new themable paramaters
20525         * DataGridBoolColumn.cs: paint check box, get data, fixes
20526         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
20527         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
20528         * DataGridColumnStyle.cs: fixes
20529         * Theme.cs: new themable paramaters
20530                 
20531 2005-05-26  Peter Bartok  <pbartok@novell.com>
20532
20533         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
20534
20535 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20536         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
20537
20538 2005-05-24  Peter Bartok  <pbartok@novell.com>
20539
20540         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
20541           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
20542           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
20543           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
20544           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
20545           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
20546           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
20547           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
20548           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
20549           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
20550           missing attributes, etc
20551         * DataGridPreferredColumnWidthTypeConverter.cs: Added
20552
20553 2005-05-24  Peter Bartok  <pbartok@novell.com>
20554
20555         * Help.cs: Added, implemented trivial functions, throws up MessageBox
20556           when user tries to get help
20557         * DataObject.cs, DataFormats.cs, LinkArea.cs,
20558           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
20559           to suppress warnings
20560         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
20561           avoid unreachable code warning
20562
20563 2005-05-20  Peter Bartok  <pbartok@novell.com>
20564
20565         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
20566
20567 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20568
20569         * DataGridTextBoxColumn.cs: Basic painting methods
20570         * DataGridTableStyle.cs: Set table style in the column
20571         * ThemeWin32Classic.cs: Use Theme for colors
20572         * DataGridDrawingLogic.cs: Implement more drawing
20573         * DataGrid.cs: drawing, theming, enhacements, fixes
20574         * DataGridColumnStyle.cs: fixes, drawing
20575         * Theme.cs: theming for Datagrid
20576
20577 2005-05-20  Peter Bartok  <pbartok@novell.com>
20578
20579         * Cursor.cs: Implemented GetObjectData() method
20580
20581 2005-05-20  Peter Bartok  <pbartok@novell.com>
20582
20583         * Cursors.cs: Added setting of cursor name
20584         * Cursor.cs:
20585           - Implemented constructors
20586           - Implemented Draw and DrawStretched
20587           - Implemented Current property
20588           - Implemented == and != operators
20589           - Implemented Dispose()
20590           - Implemented ToString
20591           - Added missing attributes
20592         * XplatUIX11.cs:
20593           - Added missing reset for OverrideCursor when DoEvents is called
20594           - Fixed creation of cursor, logic was wrong
20595         * XplatUIWin32.cs:
20596           - Added missing reset for OverrideCursor when DoEvents is called
20597           - Fixed creation of cursor, bit arrays were swapped
20598         * Clipboard.cs: Removed obsolete MonoTODO attribute
20599
20600 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20601
20602         * ComboBox.cs: fixes OnSelectedItemChanged
20603         * ControlBindingsCollection.cs: fixes item range check
20604
20605 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20606
20607         * UpDownBase.cs:
20608                 - Calc preferred height properly
20609                 - Implement missing properties
20610                 
20611         * NumericUpDown.cs: Implement missing events
20612
20613 2005-05-19  Jackson Harper  <jackson@ximian.com>
20614
20615         * TabControl.cs: New method that resizes the tab pages before
20616         redrawing them. This as needed as the control is double buffered
20617         and sizing will not be recalculated unless ResizeTabPages is
20618         called.
20619         * TabPage.cs: Set base.Text instead of Text in the constructor so
20620         that UpdateOwner does not get called. Use the new Redraw method of
20621         TabControl instead of Refresh so the sizing is recalculated.
20622         * ThemeWin32Classic.cs: Draw the text for button tabs.
20623
20624 2005-05-19  Jackson Harper  <jackson@ximian.com>
20625
20626         * Control.cs: Paint control background images. Fix typo where
20627         PaintControlBackground was not getting called correctly.
20628
20629 2005-05-19  Peter Bartok  <pbartok@novell.com>
20630
20631         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
20632           I can investigate, apparently I broke FileDialog
20633
20634 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
20635
20636         * AxHost.cs: Some simple properties.
20637         * Control.cs: window must be accessible after ctor.
20638         * Form.cs: Added TransparencyKey property.
20639         * TextBoxBase.cs: Implemented Clear. Text property can be null.
20640         * XplatUIWin32.cs: SetBorderStyle implemented.
20641
20642 2005-05-18  Peter Bartok  <pbartok@novell.com>
20643
20644         * DataObject.cs: Entries are not global but particular to the
20645           DataObject, now it behaves that way
20646         * XplatUIWin32.cs: Implemented Clipboard methods
20647         * Clipboard.cs: Implemented
20648         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
20649         * XplatUIOSX.cs: Updated to final clipboard prototypes
20650         * XplatUIX11.cs: Implemented Clipboard methods
20651         * XplatUIDriver.cs: Updated to final clipboard prototypes
20652         * XplatUIStructs.cs:
20653           - Added BITMAPINFOHEADER struct
20654           - Added ClipboardFormats enum
20655         * X11Structs.cs:
20656           - Added ClipboardStruct
20657           - Added Atom enum items for clipboard types
20658           - Fixed atom types for Selection event structures
20659         * DataFormats.cs:
20660           - Added internal properties and methods for drivers to enumerate
20661             all known formats
20662           - Switched initialization method to allow drivers to assign their
20663             own IDs even for the MS predefined clipboard IDs
20664         * XplatUI.cs: Updated to final clipboard interface
20665
20666 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20667         * PropertyGridView.cs: Fixed compiler warnings.
20668
20669 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20670         * PropertyGrid.cs: Added some event calls
20671         * PropertyGridView.cs: Change drawing code to use double buffering
20672         * PropertyGridTextBox.cs: Changed Text property name
20673         * GridItem.cs: Added Bounds property.
20674         * GridEntry.cs: Added Bounds property.
20675
20676 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
20677
20678         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
20679         since GetType() may not return the correct type if the object is
20680         a remoting proxy.
20681
20682 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
20683
20684         * TreeNodeCollection.cs: fixes get/set item ranges
20685         
20686 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20687
20688         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
20689                 
20690 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20691
20692         * ComboBox.cs: Fix item range comparation
20693         * ListView.cs: Fix item range comparation
20694
20695 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
20696
20697         * FontDialog.cs:
20698           - Clear example panel when OnPaint is called
20699           - Better solution for displaying the example panel text
20700           - Select default indexes in the ListBoxes
20701
20702 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20703
20704         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
20705
20706 2005-05-11  Peter Bartok  <pbartok@novell.com>
20707
20708         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
20709         * SelectionRangeConverter.cs: Implemented
20710         * PropertyGrid.cs: Fixed attribute value
20711         * Control.cs:
20712           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
20713           - Added Sebastien Pouliot's CAS Stack Propagation fixes
20714         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
20715           that's common to all drivers. First methods to go there are
20716           Sebastien Pouliot's CAS Stack Propagation helper methods
20717         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
20718           Sebastien Pouliot for CAS Stack Propagation
20719
20720 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20721
20722         * OSXStructs.cs:
20723           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
20724
20725 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
20726
20727         * DataGridTextBoxColumn.cs: fixed some members
20728         * GridColumnStylesCollection.cs: indexed column is case insensitive
20729         * DataGridTableStyle.cs: fixes
20730         * ThemeWin32Classic.cs: add new theme parameter
20731         * Theme.cs: add new theme parameter
20732         * DataGridDrawingLogic.cs: Datagrid's drawing logic
20733         * DataGrid.cs: fixes, new internal properties, etc.
20734         * DataGridColumnStyle.cs: allows to set grid value
20735         *
20736
20737 2005-05-10  Peter Bartok  <pbartok@novell.com>
20738
20739         * AccessibleObject.cs:
20740           - Removed MonoTODO attribute on help, method is correct
20741           - Fixed Bounds property
20742         * AxHost.cs: Moved MonoTODO
20743         * ButtonBase.cs: Now setting AccessibleObject properties
20744         * RadioButton.cs: Setting proper AccessibleObject role
20745         * CheckBox.cs: Setting proper AccessibleObject role
20746         * ControlBindingsCollection.cs: Added properties, methods and attributes
20747         * DataFormats.cs: Fixed awkward internal API, and changed to enable
20748           userdefined DataFormats.Format items as well
20749         * ListControl.cs: Removed data_member from the public eye
20750         * OpenFileDialog.cs:
20751           - Made class sealed
20752           - Added missing attributes
20753         * SaveFileDialog.cs: Added missing attributes
20754         * ImageListStreamer.cs: Fixed code that caused warnings
20755         * LinkLabel.cs: Removed unreachable code
20756         * TreeView.cs: Fixed code that caused warnings
20757         * PropertyGridView.cs: Fixed code that caused warnings
20758         * GridColumnStylesCollection.cs: Added missing attributes
20759         * GridTableStylesCollection: Added missing attribute
20760         * PropertyManager: Added .ctor
20761         * SecurityIDType: Added
20762         * DataObject.cs: Implemented class
20763         * LinkArea.cs: Added missing attribute
20764
20765 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
20766
20767         * RadioButton.cs: call base method to allow to fire OnClick event
20768         * UpDownBase.cs: OnMouseUp call base method
20769         * CheckedListBox.cs: call base method before returning
20770         * TrackBar.cs: call base method before returning
20771         
20772
20773 2005-05-10  Peter Bartok  <pbartok@novell.com>
20774
20775         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
20776           for messages
20777
20778 2005-05-10  Peter Bartok  <pbartok@novell.com>
20779
20780         * DataFormats.cs: Implemented
20781         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
20782           XplatUIX11.cs: Added Clipboard APIs
20783         * XplatUIWin32.cs: Implemented Clipboard APIs
20784         * FolderBrowserDialog.cs: Added missing event, attributes
20785
20786 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
20787
20788         * CheckBox.cs: call base method to allow to fire OnClick event
20789
20790 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
20791
20792         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
20793
20794 2005-05-06  Peter Bartok  <pbartok@novell.com>
20795
20796         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
20797         * Screen.cs: Implemented
20798         * HelpNavigator.cs: Added
20799         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
20800           property
20801         * HelpProvider.cs: Implemented all we can do until we have a CHM
20802           help library (which means that "What's This" does work now)
20803
20804 2005-05-06  Jackson Harper  <jackson@ximian.com>
20805
20806         * XplatUIX11.cs: Fix waking up the main loop.
20807                 
20808 2005-05-05  Peter Bartok  <pbartok@novell.com>
20809
20810         * XplatUI.cs: Updated revision
20811         * Form.cs: Removed enless loop
20812         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
20813         * Label.cs (OnPaint): Added call to base.OnPaint()
20814         * ToolTip.cs: Made ToolTipWindow reusable for other controls
20815         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
20816         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
20817         * AxHost.cs: Added
20818         * ButtonBase.cs: Moved base.OnPaint() call to end of method
20819         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
20820           to ToolTip.ToolTipWindow for drawing and size methods; this allows
20821           reuse of ToolTipWindow by other controls
20822         * SizeGrip.cs: Moved base.OnPaint() call to end of method
20823         * XplatUIX11.cs: Now clipping drawing area (experimental)
20824         * PictureBox.cs: Moved base.OnPaint() call to end of method
20825         * Theme.cs: Fixed ToolTip abstracts to match new format
20826         * ErrorProvider.cs: Implemented
20827
20828 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
20829
20830         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
20831         * LinkLabel.cs:
20832                 - Adds cursors
20833                 - Handles focus
20834                 - Implements LinkBehavior
20835                 - Fixes many issues
20836
20837 2005-05-03  Jackson Harper  <jackson@ximian.com>
20838
20839         * ListView.cs: Calculate the scrollbar positioning on resize and
20840         paint, so they get put in the correct place.
20841
20842 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
20843
20844         * ColorDialogs.cs: The small color panels are now handled by
20845           SmallColorControl. This fixes drawing of the focus rectangle
20846           and adds a 3D border.
20847
20848 2005-05-03  Peter Bartok  <pbartok@novell.com>
20849
20850         * Control.cs: Modified version of Jonathan Chamber's fix for
20851           double-buffering
20852
20853 2005-05-03  Jackson Harper  <jackson@ximian.com>
20854
20855         * ListView.cs: Remove redraw variable. Control now handles whether
20856         or not a redraw needs to be done, and will only raise the paint
20857         event if redrawing is needed.
20858
20859 2005-05-03  Jackson Harper  <jackson@ximian.com>
20860
20861         * Splitter.cs: No decorations for the splitter form. Cache the
20862         hatch brush.
20863
20864 2005-05-03  Jackson Harper  <jackson@ximian.com>
20865
20866         * TreeView.cs: Use dashed lines to connect nodes. Use the
20867         ControlPaint method for drawing the focus rect instead of doing
20868         that in treeview.
20869
20870 2005-05-02  Peter Bartok  <pbartok@novell.com>
20871
20872         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
20873
20874 2005-04-29  Jackson Harper  <jackson@ximian.com>
20875
20876         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
20877         entire image buffer. Just clear the clipping rectangle.
20878
20879 2005-04-29  Jackson Harper  <jackson@ximian.com>
20880
20881         * ThemeWin32Classic.cs: Don't draw list view items that are
20882         outside the clipping rectangle.
20883
20884 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
20885
20886         * ListBox.cs: added horizontal item scroll
20887
20888 2005-04-29  Jackson Harper  <jackson@ximian.com>
20889
20890         * ThemeWin32Classic.cs: Remove some old debug code that was
20891         causing flicker with the new double buffering code.
20892
20893 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
20894
20895         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
20896         behave like combobox and comboboxlist (still not sure if this is
20897         correct though).
20898
20899 2005-04-28  Jackson Harper  <jackson@ximian.com>
20900
20901         * ThemeWin32Classic.cs: Don't fill the middle of progress
20902         bars. This fills areas outside of the clip bounds that don't need
20903         to be filled.
20904
20905 2005-04-28  Jackson Harper  <jackson@ximian.com>
20906
20907         * Control.cs: Don't expose functionality to touch the image buffers.
20908         * ProgressBar.cs:
20909         * ListView.cs: We do not need to (and no longer can) manipulate
20910         the image buffers directly. All of this is handled by Control.
20911
20912 2005-04-28  Peter Bartok  <pbartok@novell.com>
20913
20914         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
20915           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
20916           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
20917
20918 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
20919
20920         * Combobox:
20921                 - Adjust control's height for non-simple comboboxes (bug fix)
20922                 - Remove dead code
20923         * MenuAPI.cs: remove unused var
20924         * ScrollBar.cs: remove unsed var
20925                  
20926         * ListBox.cs: unselect items when clearing
20927
20928 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
20929
20930         * ListControl.cs: honors OnPositionChanged and default Selected Item
20931         * ListBox.cs: unselect items when clearing
20932
20933 2005-04-27  Jackson Harper  <jackson@ximian.com>
20934
20935         * X11Keyboard.cs: Initialize a default keyboard and give a warning
20936         if a "correct" keyboard is not found. This will make us not crash,
20937         but might give some users bad keyboard layouts...seems to be the
20938         same thing rewind does.
20939
20940 2005-04-27  Jackson Harper  <jackson@ximian.com>
20941
20942         * BindingManagerBase.cs: Attach the current/position changed
20943         handlers to their respective events.
20944
20945 2005-04-27  Jackson Harper  <jackson@ximian.com>
20946
20947         * Control.cs: Make sure that the first WM_PAINT does a full draw,
20948         not just a blit.
20949         * ThemeWin32Classic.cs: Don't fill the background for picture
20950         boxes. This could overright user drawing.
20951         * ComboBox.cs: Just fill the clipping rect not the entire client
20952         rect when drawing the background. This prevents pieces of the
20953         image buffer from getting overwritten and is theoretically faster.
20954
20955 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
20956
20957         * ComboBox.cs: Databinding support fixes, fire missing events
20958         * ListControl.cs: implement missing methods and properties, fixes
20959         * ThemeWin32Classic.cs: Databiding support on Drawing
20960         * CheckedListBox.cs: Databinding support fixes, fire missing events
20961         * ListBox.cs: Databinding support fixes, fire missing events
20962         
20963 2005-04-25  Peter Bartok  <pbartok@novell.com>
20964
20965         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
20966
20967 2005-04-25  Jackson Harper  <jackson@ximian.com>
20968
20969         * TreeView.cs: Use the horizontal scrollbars height not width when
20970         determining how much of the client area is available.
20971
20972 2005-04-25  Jackson Harper  <jackson@ximian.com>
20973
20974         * Control.cs: Double buffering is handled differently now. As per
20975         the spec, the extra buffer is created in the WM_PAINT message and
20976         passed down to the control's drawing code.
20977         * GroupBox.cs:
20978         * Label.cs:
20979         * CheckBox.cs:
20980         * ProgressBar.cs:
20981         * RadioButton.cs:
20982         * ColorDialog.cs:
20983         * ComboBox.cs:
20984         * PropertyGridView.cs:
20985         * UpDownBase.cs:
20986         * MessageBox.cs:
20987         * MenuAPI.cs:
20988         * ListView.cs:
20989         * ButtonBase.cs:
20990         * SizeGrip.cs:
20991         * ScrollBar.cs:
20992         * ListBox.cs:
20993         * TrackBar.cs:
20994         * ToolBar.cs:
20995         * PictureBox.cs:
20996         * DateTimePicker.cs:
20997         * StatusBar.cs:
20998         * TreeView.cs: Update to new double buffering system.
20999         * MonthCalendar.cs: Uncomment block, as Capture is now
21000         working. Update to new double buffering
21001         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
21002         * PaintEventArgs.cs: New internal method allows us to set the
21003         graphics object. This is used for double buffering.
21004         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
21005         rectangle. The internal paint_area var has been removed from
21006         StatusBar. The clipping rect should be used instead.
21007         * Theme.cs: Give the PictureBox drawing method a clipping rect.
21008         * TabPage.cs: The RefreshTabs method was removed, so just call the
21009         tab controls Refresh method now.
21010         * TabControl.cs: Update to new double buffering. Make sure the
21011         handle is created before sizing the tab pages, otherwise we will
21012         get stuck in a loop.
21013
21014 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
21015
21016         * LinkLabel.cs: Fix typo, bug #74719; patch
21017           from Borja Sanchez Zamorano
21018
21019 2005-04-22  Jackson Harper  <jackson@ximian.com>
21020
21021         * TreeNode.cs: Implement Handle stuff.
21022         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
21023
21024 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
21025
21026         * DataGridTextBoxColumn.cs: call base constructors, fixes
21027         * GridColumnStylesCollection.cs: missing events, methods, and functionality
21028         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
21029         * DataGridTableStyle.cs: implements create default column styles
21030         * DataGridBoolColumn.cs: which types can handle
21031         * DataGrid.cs: missing methods, fixes, new functionality
21032         * DataGridColumnStyle.cs: fixes
21033
21034 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
21035         * FolderBrowserDialog.cs:
21036         - Use a thread to fill the TreeView
21037         - Adjusted some sizes
21038
21039 2005-04-19  Peter Bartok  <pbartok@novell.com>
21040
21041         * LinkLabel.cs: (Re-)create the pieces when setting the Text
21042           property. Fixes #74360.
21043
21044 2005-04-19  Jackson Harper  <jackson@ximian.com>
21045
21046         * XEventQueue.cs: Lock when getting the lockqueue size.
21047         * PictureBox.cs: Call base OnPaint
21048         
21049 2005-04-19  Peter Bartok  <pbartok@novell.com>
21050
21051         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
21052           messages were no longer being processed (this broke BeginInvoke)
21053
21054           
21055 2005-04-18  Jackson Harper  <jackson@ximian.com>
21056
21057         * TreeView.cs: buglet that caused node images to get drawn
21058         regardless of whether or not they were in the clipping rectangle.
21059
21060 2005-04-18  Jackson Harper  <jackson@ximian.com>
21061
21062         * CurrencyManager.cs: There are four rules for GetItemProperties:
21063         - If the type is an array use the element type of the array
21064         - If the type is a typed list, use the type
21065         - If the list contains an Item property that is not an object, use
21066         that property
21067         - use the first element of the list if there are any elements in
21068         the list.
21069         
21070 2005-04-17  Jackson Harper  <jackson@ximian.oom>
21071
21072         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
21073         click. This handles offsets for scrolling properly and reduces
21074         memory. Also fixed GetNode to not offset now that TopNode works
21075         properly.
21076         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
21077         
21078 2005-04-17  Jackson Harper  <jackson@ximian.com>
21079
21080         * CursorConverter.cs: Initial implementation.
21081
21082 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21083
21084         * ListControl.cs: work towards complex data binding support on ListControl
21085         * CurrencyManager.cs: work towards complex data binding support on ListControl
21086         * ListBox.cs: work towards complex data binding support on ListControl
21087
21088
21089 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21090
21091         * GridTableStylesCollection.cs: fixes name and constructor
21092         * DataGridTableStyle.cs: fixes
21093         * DataGridBoolColumn.cs: fixes names and constructors
21094         * DataGrid.cs: define methods and properties. Some init implementations
21095         * DataGridCell.cs: define methods and properties. Some init implementations
21096         * GridTablesFactory.cs: Define methods and properties
21097
21098 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
21099
21100         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
21101         graphics port changes.  We still want the coordinates in global screen
21102         coordinates.
21103
21104 2005-04-14  Jackson Harper  <jackson@ximian.com>
21105
21106         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
21107         check plus minus or checkbox clicks unless those features are enabled.
21108
21109 2005-04-14  Jackson Harper  <jackson@ximian.com>
21110
21111         * TreeView.cs: Add methods for setting the top and bottom visible
21112         nodes. TreeNode::EnsureVisible uses these methods.
21113         * TreeNode.cs: Implement EnsureVisible
21114
21115 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
21116
21117         * Form.cs: Pospone menu assignation if the window has not been created yet
21118         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
21119         size and position
21120
21121 2005-04-12  Jackson Harper  <jackson@ximian.com>
21122
21123         * TreeView.cs: Set the TopNode properly when scrolling
21124         occurs. This has the added benifit of reducing the amount of
21125         walking that needs to be done when drawing. Also removed an old
21126         misleading TODO.
21127         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
21128         
21129 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
21130
21131         * Timer.cs: fixes interval setting when the timer is already enabled
21132         
21133 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
21134
21135         * FolderBrowserDialog.cs: First approach
21136
21137 2005-04-09  Peter Bartok  <pbartok@novell.com>
21138
21139         * FolderBrowserDialog: Added
21140
21141 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
21142
21143         * LinkLabel.cs: move drawing code into the theme
21144         * ThemeWin32Classic.cs: drawing code and painting background bugfix
21145         * Theme.cs: define DrawLinkLabel method
21146
21147 2005-04-05  Jackson Harper  <jackson@ximian.com>
21148
21149         * BindingContext.cs: Use weak references so these bad actors don't
21150         stay alive longer then they need to.
21151
21152 2005-04-05  Jackson Harper  <jackson@ximian.com>
21153
21154         * ListControl.cs: Basic implementation of complex databinding.
21155         * ComboBox.cs:
21156         * ListBox.cs: Add calls to ListControl databinding methods.
21157
21158 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
21159
21160         * FileDialog.cs:
21161           - Don't change PopupButtonState to Normal when the
21162             PopupButton gets pressed several times.
21163           - Renamed ButtonPanel to PopupButtonPanel
21164
21165 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
21166
21167         * ColorDialog.cs: Use cached objects instead of creating them
21168         * LinkLabel.cs: Use cached objects instead of creating them
21169         * Splitter.cs: Use cached objects instead of creating them
21170         * FontDialog.cs: Use cached objects instead of creating them
21171         * PropertyGridView.cs: Use cached objects instead of creating them
21172         * MessageBox.cs: Use cached objects instead of creating them
21173         * FileDialog.cs: Use cached objects instead of creating them
21174         * ThemeWin32Classic.cs: Use cached objects instead of creating them
21175         * TreeView.cs: Use cached objects instead of creating them
21176         
21177 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
21178
21179         * Control.cs: use Equals to compare the font since no == op
21180         * ScrollBar.cs: use Equals to compare the font since no == op
21181
21182 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
21183
21184         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
21185
21186 2005-04-01  Jackson Harper  <jackson@ximian.com>
21187
21188         * Binding.cs: Implement IsBinding.
21189         * BindingManagerBase.cs:
21190         * PropertyManager.cs:
21191         * CurrencyManager.cs: Add IsSuspended property.
21192
21193 2005-04-01  Jackson Harper  <jackson@ximian.com>
21194
21195         * Binding.cs: Had some IsAssignableFrom calls backwards.
21196
21197 2005-04-01  Jackson Harper  <jackson@ximian.com>
21198
21199         * Binding.cs: Handle null data members when pulling data.
21200         * PropertyManager.cs: Handle the data member being a property that
21201         does not exist.
21202
21203 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21204
21205         * DataGridTextBoxColumn.cs: fixes signature
21206         * DataGrid.cs: calls right constructor
21207
21208 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21209
21210         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
21211         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
21212         * GridTableStylesCollection.cs: implements GridTableStylesCollection
21213         * DataGridTableStyle.cs: implements DataGridTableStyle
21214         * DataGridBoolColumn.cs: implements DataGridBoolColumn
21215         * DataGridTextBox.cs: implements DataGridTextBox
21216         * DataGridColumnStyle.cs: implements DataGridColumnStyle
21217
21218 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
21219
21220         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
21221
21222 2005-03-29  Peter Bartok  <pbartok@novell.com>
21223
21224         * Application.cs:
21225           - Properly implemented CompanyName property
21226           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
21227             returns a path that includes CompanyName, ProductName and
21228             Version (fixes bug #70330)
21229
21230 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
21231
21232         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
21233           fixes bug #72588.
21234
21235 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21236
21237         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
21238         
21239           - Added ReadOnly CheckBox
21240           - Further refactoring: moved some code from Open-/SaveFileDialog
21241             to FileDialog
21242
21243 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21244
21245         * OpenFileDialog.cs: Fixed CheckFileExists
21246         * FileDialog.cs:
21247           Moved FileView and DirComboBox outside FileDialog class.
21248           They can now be used outside FileDialog
21249
21250 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21251
21252         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
21253         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
21254
21255 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21256
21257         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21258           - Added missing CreatePrompt property in SaveDialog
21259           - Overall SaveDialog handling should be better now
21260           - Added non standard ShowHiddenFiles property
21261           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
21262           - Added InitialDirectory and RestoreDirectory support
21263
21264 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
21265
21266         * FileDialog.cs: Made dirComboBox usable
21267
21268 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
21269
21270         * FileDialog.cs: Added Filter support (case sensitiv)
21271
21272 2005-03-24  Jackson Harper  <jackson@ximian.com>
21273
21274         * TabControl.cs: Need a couple more pixels for the lines.
21275
21276 2005-03-23  Jackson Harper  <jackson@ximian.com>
21277
21278         * TabControl.cs: Give the tab page focus when it is selected.
21279
21280 2005-03-23  Jackson Harper  <jackson@ximian.com>
21281
21282         * TabControl.cs: Account for the drawing of tabs borders when
21283         invalidating. If the slider was clicked dont do click detection on
21284         the tabs.
21285
21286 2005-03-23  Jackson Harper  <jackson@ximian.com>
21287
21288         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
21289
21290 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
21291
21292         * CategoryGridEntry.cs: Added
21293         * GridItem.cs: Added helper properties
21294         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
21295         * GridEntry.cs: Updated code for collection
21296         * PropertyGrid.cs: Cleaned up some formatting
21297         * PropertyGridView.cs: Added drop down functionality for enums.
21298         * GridItemCollection.cs: Added enumerator logic
21299         * PropertyGridEntry.cs: Added
21300
21301 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21302
21303         * FileDialog.cs:
21304           - Removed unnecessary commented code
21305           - Fixed handling for entering the filename manually in the combobox
21306
21307 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21308
21309         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
21310
21311 2005-03-18  Peter Bartok  <pbartok@novell.com>
21312
21313         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
21314           them being touching the border
21315
21316 2005-03-18  Peter Bartok  <pbartok@novell.com>
21317
21318         * TextControl.cs: Quick hack to center text better
21319
21320 2005-03-18  Peter Bartok  <pbartok@novell.com>
21321
21322         * ControlPaint.cs:
21323           - Don't throw NotImplemented exceptions, just print a notice once
21324             instead (requested by Miguel). This makes running existing SWF
21325             apps a bit easier
21326         * Control.cs:
21327           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
21328           - Added context menu trigger on right click
21329         * Panel.cs: Trigger invalidate on resize
21330         * StatusBar.cs:
21331           - Removed old double-buffer drawing
21332           - Added ResizeRedraw style to force proper update of statusbar
21333         * ListView.cs:
21334           - Removed debug output
21335         * ThemeWin32Classic.cs:
21336           - Fixed drawing of status bar, now draws Text property if there
21337             are no defined panels
21338
21339 2005-03-18  Jackson Harper  <jackson@ximian.com>
21340
21341         * ImageList.cs: When the image stream is set pull all the images
21342         from it.
21343         * ImageListStreamer.cs: Implement reading image list streams.
21344
21345 2005-03-18  Peter Bartok  <pbartok@novell.com>
21346
21347         * ThemeWin32Classic.cs (DrawPictureBox):
21348           - Fixed calculations for centered drawing
21349           - Fixed drawing for normal mode, not scaling the image on normal
21350
21351 2005-03-18  Peter Bartok  <pbartok@novell.com>
21352
21353         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
21354           textbox
21355         * FileDialog.cs:
21356           - Made Open/Save button the accept button for FileDialog
21357           - Tied the cancel button to the IButtonControl cancel button
21358           - Save/Open now properly builds the pathname
21359           - Now handles user-entered text
21360           - Preventing crash on right-click if no item is selected
21361           - Fixed Text property, now uses contents of textbox
21362           - Fixed SelectedText property, now just returns the text part that
21363             is selected in the text box
21364
21365 2005-03-18  Jackson Harper  <jackson@ximian.com>
21366
21367         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
21368         rect, make sure to de-adjust the interior rect after drawing the
21369         tab text.
21370
21371 2005-03-18  Peter Bartok  <pbartok@novell.com>
21372
21373         * MenuAPI.cs: Remove menu *before* executing selected action to
21374           prevent the menu from 'hanging around'
21375           
21376 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
21377
21378         * XplatUIOSX.cs: Implemented WorkingArea property
21379
21380 2005-03-17  Peter Bartok  <pbartok@novell.com>
21381
21382         * XplatUIX11.cs: Fixed menu coord calculations
21383         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
21384           for calculating offsets
21385
21386 2005-03-17  Peter Bartok  <pbartok@novell.com>
21387
21388         * Hwnd.cs: Do not consider menu presence for default client
21389           rectangle location/size
21390         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21391           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
21392           translation functions
21393         * FileDialog.cs: Fixed (what I presume is a) typo
21394
21395 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
21396
21397         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
21398           X access (avoids X-Async errors)
21399
21400 2005-03-16  Jackson Harper  <jackson@ximian.com>
21401
21402         * TabControl.cs: Raise the SelectedIndexChanged event.
21403
21404 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
21405
21406         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21407           - Removed vertical ToolBar and replaced it with a custom panel
21408             (desktop and home button already work)
21409           - Added Help button (some controls get resized or relocated then)
21410           - Draw correct text depending on Open or Save.
21411           - Fixed some typos...
21412
21413 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
21414
21415         * ScrollBar.cs:
21416           - Only change Maximum and Minimum when need it (bug fix)
21417
21418 2005-03-15  Peter Bartok  <pbartok@novell.com>
21419
21420         * Form.cs: Use Handle for icon, to trigger creation if
21421           the window does not yet exist
21422         * Control.cs:
21423           - CanSelect: Slight performance improvement
21424           - Focus(): Preventing possible recursion
21425           - Invalidate(): Removed ControlStyle based clear flag setting
21426           - WM_PAINT: fixed logic for calling OnPaintBackground
21427           - WM_ERASEBKGND: Fixed logic, added call to new driver method
21428             EraseWindowBackground if the control doesn't paint background
21429         * XplatUIWin32.cs:
21430           - Moved EraseWindowBackground() method to internal methods
21431           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
21432             is sent via SendMessage on BeginPaint call on Win32
21433         * XplatUIX11.cs:
21434           - Added EraseWindowBackground() method
21435           - No longer sends WM_ERASEBKGND on .Expose, but on call to
21436             PaintEventStart, which more closely matches Win32 behaviour
21437           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
21438           - Fixed SetFocus() to properly deal with client and whole windows
21439         * Hwnd.cs: Added ErasePending property
21440         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
21441         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
21442
21443 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
21444
21445         * XplatUIOSX.cs:
21446           - Fix hard loop when timers exist.
21447           - Fix bugs with middle and right click for 3 button mice.
21448
21449 2005-03-11  Peter Bartok  <pbartok@novell.com>
21450
21451         * XplatUIX11.cs:
21452           - get_WorkingArea: Need to call X directly, GetWindowPos only
21453             returns cached data now
21454           - Added sanity check to GetWindowPos hwnd usage
21455
21456 2005-03-11  Jackson Harper  <jackson@ximian.com>
21457
21458         * BindingManagerBase.cs: This method isn't used anymore as
21459         PullData now updates the data in the control.
21460
21461 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
21462
21463         * Form.cs: fixes menu drawing on X11
21464         * MenuAPI.cs:  fixes menu drawing on X11
21465
21466 2005-03-11  Peter Bartok  <pbartok@novell.com>
21467
21468         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
21469           from Jonathan Gilbert; should fix bug #73606
21470         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
21471           in Screen coordinates. Thanks, Jordi.
21472         * Form.cs: Added missing attribute
21473
21474 2005-03-11  Peter Bartok  <pbartok@novell.com>
21475
21476         * Form.cs:
21477           - Rudimentary Mdi support
21478           - Removed outdated FormParent code
21479           - Implemented lots of missing properties and methods, still missing
21480             transparency support
21481           - Added missing attributes
21482           - Implemented support for MaximumBounds
21483           - Added firing of various events
21484         * XplatUI.cs: Added SetIcon() method
21485         * XplatUIDriver.cs: Added SetIcon() abstract
21486         * XplatUIOSX.cs: Stubbed out SetIcon() method
21487         * XplatUIX11.cs:
21488           - Implemented SetIcon() support
21489           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
21490           - Switched to unix line endings
21491         * XplatUIWin32.cs:
21492           - Made POINT internal so for can access it as part of MINMAX
21493           - Implemented SetIcon() support
21494           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
21495             native Mdi support again, might have to go managed)
21496         * Control.cs: Now fires the StyleChanged event
21497         * MdiClient.cs: Added; still mostly empty
21498
21499 2005-03-10  Peter Bartok  <pbartok@novell.com>
21500
21501         * SaveFileDialog.cs: Added emtpy file
21502
21503 2005-03-08  Peter Bartok  <pbartok@novell.com>
21504
21505         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
21506           in turn triggers OnCreateContro) when creating a handle for the
21507           first time.
21508         * TextControl.cs: Fixed endless loop in certain cases when
21509           replacing the current selection
21510
21511 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
21512
21513         * ScrollBar.cs:
21514           - Honors NewValue changes in Scroll events allowing apps to change it
21515           - Adds First and Last Scroll events
21516           - Fixes Thumb events
21517
21518 2005-03-07  Peter Bartok  <pbartok@novell.com>
21519
21520         * Hwnd.cs: Added DefaultClientRectangle property
21521         * XplatUI.cs: Now using the X11 driver Where() method, which provides
21522           more detailed debug information
21523         * XplatUIX11.cs:
21524           - Fixed size-change feedback loop, where we would pull an old size
21525             off the queue and mistakenly change our window's size to an
21526             earlier value
21527           - Now compressing ConfigureNotify events, to reduce looping and
21528             redraw issues
21529         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
21530           is called
21531
21532 2005-03-07  Jackson Harper  <jackson@ximian.com>
21533
21534         * Binding.cs: Push data pushes from data -> property. Check if the
21535         property is readonly when attempting to set it.
21536
21537 2005-03-07  Jackson Harper  <jackson@ximian.com>
21538
21539         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
21540         instead of IsSubclassOf. Pulling data now sets the value on the
21541         control.
21542         * PropertyManager.cs:
21543         * CurrencyManager.cs: Just need to pull data when updating now,
21544         because PullData will set the value on the control.
21545
21546 2005-03-04  Jackson Harper  <jackson@ximian.com>
21547
21548         * Binding.cs: Implement data type parsing and converting on pulled
21549         data. TODO: Are there more ways the data can be converted?
21550
21551 2005-03-04  Jackson Harper  <jackson@ximian.com>
21552
21553         * Binding.cs: Support <Property>IsNull checks. Also bind to the
21554         controls Validating method so we can repull the data when the
21555         control loses focus.
21556
21557 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
21558
21559         * ColumnHeader.cs:
21560           - Fixes null string format
21561           
21562         * ListView.cs:
21563           - Adds enum type checks
21564           - Fixes redrawing and recalc need after changing some properties
21565           - Fixes on focus_item set after the event
21566           - Fixes adding columns after the control has been created
21567           
21568         * ThemeWin32Classic.cs:
21569           - Fixes CheckBox focus rectangle
21570           - Fixes ColumnHeader drawing
21571
21572
21573 2005-03-03  Jackson Harper  <jackson@ximian.com>
21574
21575         * Binding.cs: Bind to <Property>Changed events so we can detect
21576         when properties are changed and update the data.
21577
21578 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
21579
21580         * ImageList.cs:
21581           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
21582           - Fixes ImageList constructor with ImageList container
21583           - Fixes image scaling (wrong parameters at DrawImage)
21584
21585 2005-02-02  Jackson Harper  <jackson@ximian.com>
21586
21587         * Binding.cs: Make property searches case-insensitive. Eliminate
21588         some duplicated code.
21589
21590 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
21591
21592         * ComboBox.cs:
21593                 - Handle focus event
21594                 - Fix scrollbar events
21595                 - Discard highlighted item if remove it
21596                 - Fixes SelectedItem with strings
21597
21598 2005-03-01  Peter Bartok  <pbartok@novell.com>
21599
21600         * Control.cs:
21601           - Fixed Visible property, now follows (once again) parent chain
21602             to return false if any control in the chain is visible=false
21603           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
21604           - Fixed several places where is_visible instead of Visible was used
21605           - Implemented FIXME related to focus selection when setting focused
21606             control to be invisible
21607
21608         * XplatUIWin32.cs: Now using proper method to find out if window is
21609           visible. Thanks to Jordi for pointing it out
21610
21611 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
21612
21613         * ComboBox.cs: show/hide scrollbar instead of creating it
21614
21615 2005-02-27  Jackson Harper  <jackson@ximian.com>
21616
21617         * CurrencyManager.cs: Add PositionChanged stuff.
21618
21619 2005-02-27  Peter Bartok  <pbartok@novell.com>
21620
21621         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
21622         * XplatUIOSX.cs: Added GetMenuOrigin() stub
21623         * XplatUIWin32.cs: Implemented GetMenuOrigin()
21624         * XplatUIX11.cs:
21625           - Implemented GetMenuDC()
21626           - Implemented GetMenuOrigin()
21627           - Implemented ReleaseMenuDC()
21628           - Implemented generation of WM_NCPAINT message
21629           - Implemented generation and handling of WM_NCCALCSIZE message
21630         * Form.cs: Added debug helper message for Jordi's menu work
21631         * Hwnd.cs:
21632           - Modified ClientRect property; added setter, fixed getter to handle
21633             setting of ClientRect
21634           - Added MenuOrigin property
21635
21636 2005-02-26  Peter Bartok  <pbartok@novell.com>
21637
21638         * XplatUIX11.cs:
21639           - Destroys the caret if a window that's being destroyed contains it
21640           - Ignores expose events coming from the X11 queue for windows that
21641             already are destroyed
21642           - Now uses the proper variable for handling DestroyNotify, before we
21643             marked the wrong window as destroyed
21644           - Improved/added some debug output
21645
21646 2005-02-26  Peter Bartok  <pbartok@novell.com>
21647
21648         * X11Keyboard.cs: Fixes to work on 64bit systems
21649
21650 2005-02-26  Peter Bartok  <pbartok@novell.com>
21651
21652         * Control.cs:
21653           - Now calling OnHandleDestroyed from DestroyHandle()
21654             instead of Dispose()
21655           - Removed bogus call to controls.Remove() from DestroyHandle()
21656
21657 2005-02-26  Peter Bartok  <pbartok@novell.com>
21658
21659         * Control.cs: Properly destroy child windows when our handle is
21660           destroyed
21661
21662 2005-02-25  Peter Bartok  <pbartok@novell.com>
21663
21664         * XplatUI.cs:
21665           - Added 'DriverDebug' define to allow tracing XplatUI API calls
21666           - Alphabetized Static Methods and Subclasses
21667
21668         * XplatUIX11.cs:
21669           - Added XException class to allow custom handling of X11 exceptions
21670           - Created custom X11 error handler, tied into XException class
21671           - Added support for MONO_XEXCEPTIONS env var to allow the user
21672             to either throw an exception on X errors or continue running
21673             after displaying the error
21674           - Added handling of DestroyNotify message
21675           - Added handler for CreateNotify message (still disabled)
21676           - Improved (tried to at least) Where method to provide file and lineno
21677         * X11Structs.cs:
21678           - Added XErrorHandler delegate
21679           - Added XRequest enumeration (to suppor translation of errors)
21680
21681 2005-02-25  Jackson Harper  <jackson@ximian.com>
21682
21683         * PropertyManager.cs: Implement editing features
21684         * CurrencyManager.cs:
21685         * Binding.cs: First attempt at UpdateIsBinding
21686         * BindingManagerBase.cs: Call UpdateIsBinding before
21687         pushing/pulling data.
21688
21689 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
21690
21691         * MenuAPI.cs: Respect disabled items
21692         * ThemeWin32Classic.cs
21693                 - Caches ImageAttributes creation for DrawImageDisabled
21694                 - Fixes vertical menu line drawing
21695                 - Draws disabled arrows in disable menu items
21696
21697 2005-02-24  Peter Bartok  <pbartok@novell.com>
21698
21699         * Hwnd.cs:
21700           - Added UserData property to allow associating arbitrary objects
21701             with the handle
21702           - Fixed leak; now removing Hwnd references from static windows array
21703         * XplatUIWin32.cs:
21704           - Fixed Graphics leak in PaintEventEnd
21705           - Removed usage of HandleData, switched over to Hwnd class
21706         * HandleData.cs: Removed, obsoleted by Hwnd.cs
21707
21708 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21709
21710         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
21711         * ScrollBar.cs: Fixes bug
21712         * TrackBar.cs: removes death code, clipping, mimize refreshes,
21713          keyboard navigation enhancements
21714
21715 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21716
21717         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
21718         * GroupBox.cs: Add control styles
21719         * Label.cs: Add control styles
21720         * UpDownBase.cs: Add control styles
21721         * ListBox.cs: Add control styles
21722         * XplatUIWin32.cs: Fixes wrong parameter order
21723
21724
21725 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
21726
21727         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
21728
21729 2005-02-23  Jackson Harper  <jackson@ximian.com>
21730
21731         * PropertyManager.cs: Implement property binding. This doesn't
21732         seem to work yet though as (I think) there are some bugs in
21733         System.ComponentModel.PropertyDescriptor.
21734         * BindingContext.cs: Use new PropertyManager constructor.
21735
21736 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
21737
21738         * ProgressBar.cs: use clip region in ProgressBar
21739         * ThemeWin32Classic.cs: use clip region in ProgressBar
21740
21741 2004-02-22  Jackson Harper  <jackson@ximian.com>
21742
21743         * BindingsCollection.cs: Remove some debug code.
21744
21745 2005-02-22  Jackson Harper  <jackson@ximian.com>
21746
21747         * BindingContext.cs:
21748         * ControlBindingsCollection.cs:
21749         * CurrencyManager.cs:
21750         * Binding.cs:
21751         * BindingManagerBase.cs: Initial implementation
21752         * BindingsCollection.cs: Add an internal contains method that the
21753         BindingManagerBase uses to ensure bindings aren't added twice to
21754         the collection.
21755         * PropertyManager.cs: Stubbed out.
21756         * Control.cs:
21757         * ContainerControl.cs: Hook up databinding
21758         
21759 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
21760
21761         * XplatUIOSX.cs:
21762           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
21763           Fixed Invalidate/Update chain.
21764           Fixed tons of other minor bugs (this is almost a complete rewrite).
21765
21766 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
21767
21768         * ComboBox.cs: do subcontrol creation when the control is created
21769
21770 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21771
21772         * Label.cs: fixes image drawing (image and imagelist)
21773         * ThemeWin32Classic.cs: cache brushes
21774         
21775 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21776
21777         * Form.cs: Move menu drawing code to Theme class
21778         * ComboBox.cs: Move ComboBox drawing code to Theme class
21779         * MenuItem.cs: Move menu drawing code to Theme class
21780         * MenuAPI.cs: Move menu drawing code to Theme class
21781         * ThemeWin32Classic.cs: New methods
21782         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
21783         * ListBox.cs: Move Listbox drawing code to Theme class
21784         * Theme.cs: New methods
21785
21786 2005-02-20  Peter Bartok  <pbartok@novell.com>
21787
21788         * Control.cs:
21789           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
21790             only process mnemonics on those)
21791           - Fixed event sequence for key handling; first calling
21792             ProcessKeyEventArgs now
21793         * TextBoxBase.cs:
21794           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
21795             for processing non-character keys
21796           - Fixed WM_CHAR to generate proper event sequence before processing
21797         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
21798           generation
21799
21800 2005-02-19  Peter Bartok  <pbartok@novell.com>
21801
21802         * UserControl.cs: Added TextChanged event; added attributes
21803         * SizeGrip.cs: Implemented resizing and optional display of grip
21804         * Form.cs: Fixed attribute
21805         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
21806           Changed meaning of ScrollWindow bool argument; instead of the
21807           clear attribute (which will be true usually anyway), it gives the
21808           option of moving child controls as well.
21809         * XplatUIX11.cs:
21810           - Changed to match new ScrollWindow argument
21811           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
21812             now handles the implicit parent window a WM puts around us
21813         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
21814           to work)
21815         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
21816         * TreeView.cs: Adjusted to new ScrollWindow arguments
21817
21818 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21819
21820         * Form.cs: Menu integration with non-client area
21821         * MenuItem.cs: Menu integration with non-client area
21822         * MenuAPI.cs: Menu integration with non-client area
21823
21824 2005-02-18  Peter Bartok  <pbartok@novell.com>
21825
21826         * MethodInvoker.cs: Added
21827         * MdiLayout.cs: Added
21828         * SendKeys.cs: Started implementation
21829         * ErrorIconAlignment.cs: Added
21830
21831 2005-02-18  Peter Bartok  <pbartok@novell.com>
21832
21833         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
21834         * Form.cs: Added handling for Menu-related Non-client messages
21835
21836 2005-02-17  Peter Bartok  <pbartok@novell.com>
21837
21838         * UpDownBase.cs: Fixed typo, compilation errors
21839         * DomainUpDown.cs: Fixed attribute value
21840
21841 2005-02-16  Miguel de Icaza  <miguel@novell.com>
21842
21843         * UpDownBase.cs: Attach entry events.
21844         Propagate events.
21845         Add ForeColor property, Focused, InterceptArrowKeys (interception
21846         does not work yet).
21847
21848 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
21849
21850         * Form.cs:
21851                 - Redraw non client are on Setmenu
21852                 - Calc proper menu starting point
21853
21854 2005-02-17  Peter Bartok  <pbartok@novell.com>
21855
21856         * Application.cs: Fixed message_filter check
21857
21858 2005-02-17  Peter Bartok  <pbartok@novell.com>
21859
21860         * Application.cs: Now calls registered message filters
21861         * DockStyle.cs: Fixed attribute
21862         * Form.cs: Fixed attribute
21863         * Menu.cs: Fixed attribute
21864         * ToolTip.cs: Fixed attribute
21865         * TreeNode.cs: Added missing attributes and arranged in regions
21866         * PropertyGrid.cs: Fixed signatures
21867         * TreeNodeCollection.cs: Added attributes
21868         * Splitter.cs: Added missing attributes; arranged into regions
21869         * TabPage.cs: Added missing attributes; arranged into regions
21870         * TextBoxBase.cs: Added missing attributes
21871         * TextBox.cs: Added missing attributes
21872         * ArrangeDirection.cs: Added missing attributes
21873         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
21874         * ToolBarButton.cs: Fixed attributes
21875         * AnchorStyles.cs: Fixed attribute
21876         * TrackBar.cs: Fixed attributes
21877         * TabControl.cs: Added missing attributes and arranged into regions
21878         * ToolBar.cs: Fixed attribute
21879         * StatusBar.cs: Fixed signature, organized into regions and added
21880           attributes
21881         * StatusBarPanel.cs: Fixed attributes
21882         * ContentsResizedEventArgs.cs: Implemented
21883         * ContentsResizedEventHandler.cs: Implemented
21884         * DateBoldEventArgs.cs: Implemented
21885         * DateBoldEventHandler.cs: Implemented
21886         * UpDownEventArgs.cs: Implemented
21887         * UpDownEventHandler.cs: Implemented
21888         
21889 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
21890
21891         * Form.cs: first Menu NC refactoring
21892         * MenuAPI.cs: first Menu NC refactoring
21893         
21894 2005-02-16  Peter Bartok  <pbartok@novell.com>
21895
21896         * ImeMode.cs: Added missing attributes
21897         * Menu.cs: Fixed attribute
21898         * GroupBox.cs: Fixed attribute
21899         * Label.cs: Fixed attribute
21900         * ColorDialog.cs (RunDialog): Removed TODO attribute
21901         * ComboBox.cs: Fixed attributes
21902         * ListControl.cs: Added missing attributes
21903         * PropertyGrid.cs: Fixed attributes
21904         * Control.cs: Fixed attributes
21905         * ListViewItem.cs: Added TypeConverter attribute
21906         * NotifyIcon.cs: Fixed attributes
21907         * ListView.cs: Fixed attributes
21908         * ButtonBase.cs: Fixed attribute
21909         * ImageList.cs: Added missing attributes
21910         * ContainerControl.cs: Fixed signature
21911         * CheckedListBox.cs: Fixed attribute; added missing attributes
21912         * Panel.cs: Fixed attributes
21913         * PropertyTabChangedEventArgs.cs: Added missing attribute
21914         * PropertyValueChangedEventArgs.cs: Added missing attribute
21915         * Binding.cs: Fixed attribute
21916         * ListViewItemConverter: Implemented ListViewSubItemConverter class
21917         * ListBox.cs: Fixed attribute; added missing attributes;
21918         * ScrollableControl.cs: Added missing attributes
21919         * PictureBox.cs: Added missing attributes; implemented missing property
21920         * DateTimePicker.cs: Added missing attributes
21921         * Theme.cs (ToolWindowCaptionHeight): Fixed type
21922         * MonthCalendar.cs: Fixed attributes
21923         * StatusBarPanel.cs: Added missing attributes
21924         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
21925
21926 2005-02-16  Peter Bartok  <pbartok@novell.com>
21927
21928         * TextBoxBase.cs: The previous method to enforce height yet remember
21929           the requested high was less than ideal, this is an attempt to do
21930           it better.
21931         * Control.cs: Added comment about possible problem
21932         * Copyright: Updated format
21933         * GridItemType.cs: Fixed swapped values
21934
21935 2005-02-15  Jackson Harper  <jackson@ximian.com>
21936
21937         * BaseCollection.cs: Use property so we never access an
21938         uninitialized list. Also initialize the list in the property.
21939
21940 2005-02-15  Peter Bartok  <pbartok@novell.com>
21941
21942         * GroupBox.cs (ProcessMnemonic): Implemented
21943         * Label.cs (ProcessMnemonic): Implemented
21944         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
21945           hotkeys
21946
21947 2005-02-15  Peter Bartok  <pbartok@novell.com>
21948
21949         * RadioButton.cs (ProcessMnemonic): Implemented
21950         * CheckBox.cs (ProcessMnemonic): Implemented
21951         * Control.cs:
21952           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
21953             handling
21954           - Added internal method to allow calling ProcessMnemonic from other
21955             controls
21956         * ContainerControl.cs:
21957           - Started support for handling validation chain handling
21958           - Implemented ProcessMnemonic support
21959           - Added Select() call to Active, to make sure the active control
21960             receives focus
21961         * Form.cs: Setting toplevel flag for Forms (this was lost in the
21962           FormParent rewrite)
21963         * ThemeWin32Classic.cs:
21964           - DrawCheckBox(): Fixed stringformat to show hotkeys
21965           - DrawRadioButton(): Fixed stringformat to show hotkeys
21966         * CommonDialog.cs: Removed WndProc override, not needed
21967
21968 2005-02-14  Peter Bartok  <pbartok@novell.com>
21969
21970         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
21971           missed those in the rewrite
21972
21973 2005-02-14  Miguel de Icaza  <miguel@novell.com>
21974
21975         * NumericUpDown.cs (Increment, ToString): Add.
21976         (DecimalPlaces): implement.
21977         
21978         Add attributes.
21979         
21980         * UpDownBase.cs: Add the designer attributes.
21981
21982 2005-02-13  Peter Bartok  <pbartok@novell.com>
21983
21984         * Panel.cs: Removed border_style, now in Control
21985         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
21986           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
21987
21988 2005-02-13  Peter Bartok  <pbartok@novell.com>
21989
21990         * MouseButtons.cs: Added missing attributes
21991         * XplatUIStructs.cs: Added enumeration for title styles
21992         * LeftRightAlignment.cs: Added missing attributes
21993         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
21994           it compatible with Graphics.FromHwnd()
21995         * SelectedGridItemChangedEventArgs.cs: Fixed property type
21996         * Keys.cs: Added missing attributes
21997         * SelectionRange.cs: Added missing attributes
21998         * SelectionRangeConverter.cs: Added
21999         * XplatUI.cs:
22000           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
22001             ReleaseMenuDC methods
22002           - Renamed ReleaseWindow to UngrabWindow
22003           - Added proper startup notice to allow version identification
22004         * Form.cs:
22005           - Added missing attributes
22006           - Removed FormParent concept
22007         * Label.cs: Removed border_style field, now in Control
22008         * RadioButton.cs: Now properly selects RadioButton when focus is
22009           received
22010         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
22011         * Control.cs:
22012           - Added missing attributes
22013           - Added borderstyle handling
22014           - Removed FormParent concept support
22015           - Fixed calls to XplatUI to match changed APIs
22016           - Fixed bug that would case us to use disposed Graphics objects
22017           - Removed unneeded internal methods
22018           - PerformLayout(): Fixed to handle DockStyle.Fill properly
22019           - SelectNextControl(): Fixed to properly check common parents
22020         * TextBoxBase.cs: Removed border_style field (now in Control)
22021         * MessageBox.cs:
22022           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
22023             fixed calculations for form size
22024           - Added support for localized strings and icons
22025           - Improved form size calculations, added border
22026         * ListView.cs: Removed border_style field (now in Control)
22027         * X11Structs.cs: Moved several structs from X11 driver here
22028         * X11Keyboard.cs: Changed debug message
22029         * Application.cs: Removed FormParent concept support
22030         * CommonDialog.cs:
22031           - Resetting end_modal flag
22032           - Removed FormParent concept support
22033         * NativeWindow.cs: Removed FormParent concept support
22034         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
22035           Client area and Non-Client whole window to allow support for WM_NC
22036           messages
22037         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
22038           prevent using it until it supports Hwnd as per Geoff Norton's request
22039         * ToolBar.cs: Fixed drawing, was not doing proper drawing
22040         * PictureBox.cs: Removed border_style field, now in Control
22041         * XplatUIWin32.cs: Added new driver methods
22042
22043 2005-02-12  Peter Bartok  <pbartok@novell.com>
22044
22045         * OpacityConverter.cs: Implemented
22046         * Hwnd.cs: Internal class to support drivers that need to emulate
22047           client area/non-client area window behaviour
22048
22049 2005-02-11  Peter Bartok  <pbartok@novell.com>
22050
22051         * KeysConverter.cs: Implemented
22052
22053 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
22054
22055         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
22056         * LinkLabel: Added missing attributes
22057         * MainMenu.cs: fixes ToString
22058         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
22059         * ListBox.cs: fixes event position
22060         * TrackBar.cs: adds missing attributes and events
22061         
22062 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
22063
22064         * MenuItem.cs: Use SystemInformation and bug fixes
22065         * MenuAPI.cs: Use SystemInformation and bug fixes
22066
22067 2005-02-09  Jackson Harper  <jackson@ximian.com>
22068
22069         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
22070         their keystate otherwise things like VK_MENU get stuck "on".
22071
22072 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
22073
22074         * ListBox.cs: Fixes AddRange bug
22075         
22076 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
22077
22078         * ProgressBar.cs
22079                 - Add missing attributes
22080                 - Add missing method
22081                 
22082         * CheckedListBox.cs: Added missing attributes
22083                 - Add missing attributes
22084                 - Remove extra method
22085         
22086         * ComboBox.cs: Added missing attributes
22087         * VScrollBar.cs: Added missing attributes
22088         * ScrollBar.cs:  Added missing attributes
22089         * ListBox.cs: Fixes signature, add missing consts
22090         * LinkArea.cs:   Added missing attributes
22091         
22092
22093 2005-02-08  Peter Bartok  <pbartok@novell.com>
22094
22095         * Menu.cs: Added missing attributes
22096         * MainMenu.cs: Added missing attributes
22097         * GroupBox.cs: Added missing attributes
22098         * Label.cs: Added missing attributes
22099         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
22100         * ColorDialog.cs:
22101           - Added Instance and Options properties
22102           - Added missing attributes
22103         * Cursor.cs: Made Serializable
22104         * NotifyIcon: Added missing attributes
22105         * MenuItem.cs: Added missing attributes
22106         * TextBoxBase.cs: Implemented AppendText() and Select() methods
22107         * Panel.cs: Added Missing attributes
22108         * MonthCalendar.cs: Fixed CreateParams
22109
22110 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22111         
22112         * LinkLabel.cs:
22113                 - Fixes signature
22114                 - Fixes issues with links
22115                 - Adds the class attributes
22116
22117 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22118         
22119         * ComboBox.cs:
22120                 - Fixes button when no items available in dropdown
22121                 - Fixes repainting problems
22122                 - Adds the class attributes
22123                 
22124 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22125
22126         * XplatUIOSX.cs: Detect the menu bar and title bar height from
22127         the current theme.  Cache these on startup.
22128
22129 2005-02-07  Jackson Harper  <jackson@ximian.com>
22130
22131         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
22132         the scrollbar buttons when they are depressed.
22133
22134 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22135
22136         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
22137         Get the display size from the main displayid.  We currently dont
22138         support multiple display configurations.
22139
22140 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22141
22142         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
22143
22144 2005-02-07  Miguel de Icaza  <miguel@novell.com>
22145
22146         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
22147
22148 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
22149
22150         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
22151
22152 2005-02-04  Jackson Harper  <jackson@ximian.com>
22153
22154         * ThemeWin32Classic.cs: Respect the clipping rect when
22155         drawing. Only fill the intersection of clips and rects so there
22156         isn't a lot of large fills.
22157         * ScrollBar.cs: Pass the correct clipping rect to the theme
22158         engine. Remove some debug code.
22159
22160 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
22161         
22162         * DateTimePicker.cs:
22163                 - Fixed crash on DateTime.Parse, use Constructor instead
22164
22165 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22166         
22167         * MenuItem.cs:
22168         * MenuAPI.cs:
22169                 - Owner draw support (MeasureItem and DrawItem)
22170
22171 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22172         
22173         *  Menu.cs:
22174                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
22175                 - Fixes MenuItems.Add range
22176         * MenuItem.cs:
22177                 - MergeMenu and Clone and CloneMenu functions
22178
22179 2005-02-03  Jackson Harper  <jackson@ximian.com>
22180
22181         * ScrollBar.cs: Make abstract
22182         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
22183         is abstract.
22184
22185 2005-02-03  Jackson Harper  <jackson@ximian.com>
22186
22187         * ScrollBar.cs: First part of my scrollbar fixups. This removes
22188         all the unneeded refreshes and uses invalidates with properly
22189         computed rects.
22190
22191 2005-02-03  Peter Bartok  <pbartok@novell.com>
22192
22193         * ComponentModel.cs: Added
22194         * IDataGridEditingService.cs: Added
22195         * Timer.cs: Added missing attributes
22196         * ToolTip.cs: Added missing attributes
22197
22198 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22199
22200         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
22201
22202 2005-02-03  Peter Bartok  <pbartok@novell.com>
22203
22204         * ListBox.cs: Added missing attributes
22205
22206 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
22207         
22208         * ListBox.cs:
22209                 - Fixes font height after font change
22210                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
22211                 
22212 2005-02-02  Peter Bartok  <pbartok@novell.com>
22213
22214         * HandleData.cs: Introduced static methods to allow class
22215           to be more self-contained and track it's own HandleData objects
22216         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
22217           HandleData to use new static methods
22218
22219 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
22220
22221         * Combobox.cs:
22222                 - Fixes default size and PreferredHeight
22223                 - Missing events
22224                 - ObjectCollection.Insert implementation
22225                 
22226         * ListControl.cs
22227                 - Fixes signature
22228         * ListBox.cs:
22229                 - Several fixes
22230                 - ObjectCollection.Insert implementation
22231                 - No selection after clean
22232                 - Small fixes
22233
22234 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22235
22236         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
22237
22238 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
22239
22240         * Combobox.cs:
22241                 - Caches ItemHeight calculation for OwnerDrawVariable
22242                 - Handles dropdown properly
22243                 - Fixes several minor bugs
22244
22245 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22246
22247         * ListBox.cs:
22248                 - Fixes 71946 and 71950
22249                 - Fixes changing Multicolumn on the fly
22250                 - Fixes keyboard navigation on Multicolumn listboxes
22251
22252 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22253         
22254         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
22255         crash reporter log.
22256
22257 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22258
22259         * XplatUIOSX.cs: Allow applications to actually exit.
22260
22261 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22262
22263         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
22264         their parent at creation time rather than lazily later.  Fixes a major
22265         regression we were experiencing.
22266
22267 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22268
22269         * ThemeWin32Classic.cs: more date time picker painting fixes
22270         * DateTimePicker.cs: more monthcalendar drop down fixes
22271         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
22272
22273 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22274
22275         * ScrollBar.cs:
22276                 - When moving the thumb going outside the control should stop the moving
22277                 - Adds the firing of missing events
22278                 - Fixes no button show if Size is not specified
22279                 - End / Home keys for keyboard navigation
22280
22281 2005-01-30  Peter Bartok  <pbartok@novell.com>
22282
22283         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
22284           sanity check to prevent theoretical loop
22285         * XplatUIWin32.cs (SetVisible): Removed debug output
22286         * XplatUIX11.cs (SystrayChange): Added sanity check
22287         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
22288         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
22289           behaviour, valid until the X11 client window rewrite is done
22290         * TextBox.cs (ctor): Setting proper default foreground and background
22291           colors
22292
22293 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
22294
22295         * Theme: Added DrawDateTimePicker to interface
22296         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
22297         * DateTimePicker.cs: Created (still needs keys and painting code)
22298         * DateTimePickerFormat.cs: added
22299         * MonthCalendar.cs: fixed CreateParams for popup window mode
22300           
22301 2005-01-29  Peter Bartok  <pbartok@novell.com>
22302
22303         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
22304           this should also the calculations for ligher/darker
22305         * Theme.cs: Fixed defaults for ScrollBar widths/heights
22306
22307 2005-01-29  Peter Bartok  <pbartok@novell.com>
22308
22309         * ArrangeDirection.cs: Added
22310         * ArrangeStartingPositon.cs: Added
22311         * SystemInformation.cs: Implemented
22312         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22313           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
22314           used by SystemInformation class
22315         * X11Strucs.cs: Added XSizeHints structure
22316         * MenuAPI.cs:
22317           - Fixed CreateParams to make sure the menu window is always visible
22318           - TrackPopupMenu: Added check to make sure we don't draw the
22319             menu offscreen
22320
22321 2005-01-29  Peter Bartok  <pbartok@novell.com>
22322
22323         * HandleData.cs: Added method for altering invalid area
22324         * TextBoxBase.cs: Implemented TextLength
22325
22326 2005-01-28  Peter Bartok  <pbartok@novell.com>
22327
22328         * XplatUIX11.cs: Improvement over last patch, not sending
22329           the WM_PAINT directly anymore, instead we scroll any pending
22330           exposed areas and let the system pick out the WM_PAINT later
22331
22332 2005-01-28  Peter Bartok  <pbartok@novell.com>
22333
22334         * SWF.csproj: Deleted, no longer used. Instead,
22335           Managed.Windows.Forms/SWF.csproj should be used
22336         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
22337           directly, to avoid a potential race condition with the next
22338           scroll
22339
22340 2005-01-28  Peter Bartok  <pbartok@novell.com>
22341
22342         * XplatUI.cs: Made class internal
22343
22344 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
22345
22346         * CheckedListBox.cs:
22347                 - Draw focus
22348                 - Fixed Drawing
22349                 - Missing methods and events
22350
22351 2005-01-27  Peter Bartok  <pbartok@novell.com>
22352
22353         * Application.cs (Run): Don't use form if we don't have one
22354
22355 2005-01-27  Peter Bartok  <pbartok@novell.com>
22356
22357         * TextBoxBase.cs (get_Lines): Fixed index off by one error
22358
22359 2005-01-27  Peter Bartok  <pbartok@novell.com>
22360
22361         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
22362         * GridItem.cs: Added; Patch by Jonathan S. Chambers
22363         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
22364         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
22365         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
22366         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
22367         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22368         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22369         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22370         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22371         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22372         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22373
22374 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22375
22376         * Combobox.cs:
22377                 - Draw focus on Simple Combobox
22378                 - Fixes drawing issues
22379                 - fixes 71834
22380
22381 2005-01-27  Peter Bartok  <pbartok@novell.com>
22382
22383         * Form.cs:
22384           - Place window in default location, instead of hardcoded 0/0
22385           - Send initial LocationChanged event
22386         * Control.cs:
22387           - UpdateBounds after creation to find out where the WM placed us
22388           - Make sure that if the ParentForm changes location the Form
22389             is notified
22390         * XplatUIX11.cs: XGetGeometry will not return the coords relative
22391             to the root, but to whatever the WM placed around us.
22392             Translate to root coordinates before returning toplevel
22393             coordinates
22394         * XplatUIWin32.cs: Removed debug output
22395         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
22396           flag to GetWindowPos, to allow translation of coordinates on X11
22397
22398 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22399
22400         * ListBox.cs: connect LostFocus Event
22401
22402 2005-01-27  Peter Bartok  <pbartok@novell.com>
22403
22404         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22405           XplatUIX11.cs: Extended the Systray API
22406         * Form.cs: Removed debug output
22407         * Application.cs: Fixed focus assignment, always need to call
22408           XplatUI.Activate() since Form.Activate() has rules that may
22409           prevent activation
22410         * NotifyIcon.cs: Should be complete now
22411         * ToolTip.cs: Worked around possible timer bug
22412
22413 2005-01-27  Jackson Harper  <jackson@ximian.com>
22414
22415         * TabControl.cs:
22416         - Only invalidate the effected tabs when the
22417         selected index changes. This reduces drawing and gets rid of some
22418         flicker.
22419         - Only refresh if the tabs need to be shifted, otherwise only
22420         invalidate the slider button.
22421         - On windows the tabs are not filled to right if the slider is
22422         visible.
22423         
22424 2005-01-27  Jackson Harper  <jackson@ximian.com>
22425
22426         * TabControl.cs: Only refresh on mouseup if we are showing the
22427         slider. Also only invalidate the button whose state has changed.
22428
22429 2005-01-26  Peter Bartok  <pbartok@novell.com>
22430
22431         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
22432         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
22433           and SystrayRemove() methods
22434         * XplatUIOSX.cs: Stubbed Systray methods
22435         * XplatUIX11.cs:
22436           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
22437             methods
22438           - Fixed broken XChangeProperty calls (marshalling messed up things)
22439         * X11Structs.cs: Added enums and structs required for Size hinting
22440         * NotifyIcon.cs: Added & implemented
22441
22442 2005-01-26  Jackson Harper  <jackson@ximian.com>
22443
22444         * TabControl.cs: Space vertically layed out tabs properly.
22445
22446 2005-01-26  Peter Bartok  <pbartok@novell.com>
22447
22448         * Form.cs (CreateClientParams): Always set the location to 0,0
22449           since we're a child window.
22450
22451         * Control.cs (SetVisibleCore): Always explicitly setting the location
22452           of a toplevel window, apparently X11 doesn't like to move windows
22453           while they're not mapped.
22454
22455 2005-01-26  Jackson Harper  <jackson@ximian.com>
22456
22457         * TabControl.cs: Implement FillToRight size mode with vertically
22458         rendered tabs.
22459
22460 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22461
22462         * ControlPaint.cs, ThemeWin32Classic.cs
22463                 - Fixes DrawFocusRectangle
22464
22465 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22466
22467         * MenuAPI.cs:
22468                 - MenuBar tracking only starts when item is first clicked
22469                 - Fixes menu hidding for multiple subitems
22470                 - Unselect item in MenuBar when item Executed
22471                 - Fixes bug 71495
22472
22473 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
22474
22475         * ListControl.cs:
22476                 - IsInputKey for ListBox
22477         * ListBox.cs:
22478                 - Focus item
22479                 - Shift and Control item selection
22480                 - Implement SelectionMode.MultiExtended
22481                 - Fixes RightToLeft
22482         * ComboBox.cs:
22483                 - IsInputKey implemented
22484                 - Do not generate OnTextChangedEdit on internal txt changes
22485                 
22486 2005-01-23  Peter Bartok  <pbartok@novell.com>
22487
22488         * AccessibleObject.cs: Partially implemented Select()
22489         * MonthCalendar.cs: Added missing attributes and events
22490         * Form.cs: Fixed CreateParams behaviour, now controls derived from
22491           form can properly override CreateParams.
22492         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22493           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
22494           Control performs Invalidate & Update
22495         * NativeWindow (CreateHandle): Added special handling for Form
22496           and Form.FormParent classes to allow overriding of From.CreateParams
22497         * Control.cs:
22498           - ControlNativeWindow: Renamed 'control' variable to more intuitive
22499             name 'owner'
22500           - ControlNativeWindow: Added Owner property
22501           - Removed usage of Refresh() on property changes, changed into
22502             Invalidate(), we need to wait until the queue is processed for
22503             updates, direct calls might cause problems if not all vars for
22504             Paint are initialized
22505           - Added call to UpdateStyles() when creating the window, to set any
22506             styles that CreateWindow might have ignored.
22507           - Added support for Form CreateParent overrides to UpdateStyles()
22508         * MessageBox.cs: Removed no longer needed FormParent override stuff,
22509           CreateParams are now properly overridable
22510         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
22511           CreateParams are now properly overridable
22512
22513 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
22514
22515         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
22516         OnTextBoxChanged.
22517
22518         Capture LostFocus and OnTextBoxChanged.  The later introduces a
22519         recursive invocation that I have not figured out yet.
22520
22521         Reset the timer when not using (it was accumulating).
22522
22523
22524         (OnTextBoxChanged): Set UserEdit to true here to track whether the
22525         user has made changes that require validation.
22526
22527         Reset changing to avoid loops.
22528
22529 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
22530
22531         * NumericUpDown.cs: Display value at startup.
22532
22533         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
22534         ValidateEditText.
22535
22536         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
22537         filled in.  Added some basic parsing of text.
22538
22539         Still missing the OnXXX method overrides, and figuring out the
22540         events that must be emitted.
22541
22542         * UpDownBase.cs: Handle UserEdit on the Text property.
22543         
22544 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
22545
22546         * ComboBox.cs:
22547           - Fixes IntegralHeight
22548           - ToString method
22549
22550 2005-01-21  Jackson Harper  <jackson@ximian.com>
22551
22552         * TabControl.cs: Set the SelectedIndex property when SelectedTab
22553         is set so that the page visibility is updated and the tabs are
22554         sized correctly.
22555
22556 2005-01-21  Jackson Harper  <jackson@ximian.com>
22557
22558         * TabControl.cs: Use cliping rectangle for blitting. Give the
22559         theme the clipping rect so we can do clipping while
22560         drawing. Remove some debug code.
22561
22562 2005-01-21  Jackson Harper  <jackson@ximian.com>
22563
22564         * TabPage.cs: Add a new method so tab pages can force the tab
22565         control to recalculate the tab page sizes.
22566         * TabControl.cs: UpdateOwner needs to make the tab control recalc
22567         sizes.
22568
22569 2005-01-20  Jackson Harper  <jackson@ximian.com>
22570
22571         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
22572
22573 2005-01-20  Jackson Harper  <jackson@ximian.com>
22574
22575         * TreeView.cs: Set the bounds for nodes properly. They were
22576         getting screwed up when checkboxes were not enabled, but images
22577         were.
22578
22579 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
22580
22581         * ListBox.cs:
22582                 - Owner draw support
22583                 - Fixes
22584                 
22585 2005-01-20  Jackson Harper  <jackson@ximian.com>
22586
22587         * XplatUIStructs.cs: More misc keys
22588         * X11Keyboard.cs: Ignore some control keys.
22589
22590 2005-01-20  Jackson Harper  <jackson@ximian.com>
22591
22592         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
22593         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
22594
22595 2005-01-19  Peter Bartok  <pbartok@novell.com>
22596
22597         * Control.cs: Un-selecting the control when it is loosing focus
22598
22599 2005-01-19  Jackson Harper  <jackson@ximian.com>
22600
22601         * TreeView.cs: Hook up to the text controls leave event so we can
22602         end editing when the users clicks outside the text box.
22603         
22604 2005-01-19  Jackson Harper  <jackson@ximian.com>
22605
22606         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
22607         get set in the conversion array.
22608
22609 2005-01-19  Peter Bartok  <pbartok@novell.com>
22610
22611         * Application.cs (ModalRun): Added a call to CreateControl to ensure
22612           focus is properly set
22613         * Button.cs:
22614           - Added missing attributes
22615           - removed styles, those are already set in the base class
22616         * ButtonBase.cs:
22617           - Added missing attributes
22618           - Added clip window styles
22619         * CheckBox.cs: Added missing attributes
22620         * CommonDialog.cs:
22621           - FormParentWindow.CreateParams: Added required clip styles
22622         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
22623           also filters modifier keys
22624         * MessageBox.cs:
22625           - Added assignment of Accept and Cancel button to enable Enter
22626             and Esc keys in MessageBox dialogs
22627           - FormParentWindow.CreateParams: Added required clip styles
22628         * RadioButton.cs: Added missing attributes
22629         * TextControl.cs: No longer draws selection if control does not
22630           have focus
22631         * TextBoxBase.cs:
22632           - Now draws simple rectangle around test area to make it obvious
22633             there's a control. This is a hack until we properly support borders
22634           - A few simple fixes to support selections better, now erases selected
22635             text when typing, and resets selection when using movement keys
22636
22637 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
22638
22639         * UpDownBase.cs: Added some new properties.
22640
22641         * DomainUpDown.cs: Implement a lot to get my test working.
22642
22643 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22644
22645         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
22646
22647 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22648
22649         * OSXStructs (WindowAttributes): Fixed csc complaints
22650
22651 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22652
22653         * XplayUIOSX.cs:
22654           OSXStructs.cs: Initial refactor to move enums and consts into
22655           OSXStructs and use them in the driver for greater readability.
22656
22657 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22658
22659         * XplatUIOSX.cs: Initial support for Standard Cursors.
22660         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
22661
22662 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
22663
22664         * ComboBox.cs: ability to change style when the ctrl is already
22665         created, missing methods and events, bug fixes, signature fixes
22666
22667 2005-01-19  Peter Bartok  <pbartok@novell.com>
22668
22669         * Cursors.cs (ctor): Added ctor to fix signature
22670
22671 2005-01-18  Peter Bartok  <pbartok@novell.com>
22672
22673         * Button.cs: Implemented DoubleClick event
22674         * ButtonBase.cs:
22675           - Fixed keyboard handling to behave like MS, where the press of
22676             Spacebar is equivalent to a mousedown, and the key release is
22677             equivalent to mouseup. Now a spacebar push will give the same
22678             visual feedback like a mouse click.
22679           - Added missing attributes
22680           - Added ImeModeChanged event
22681           - Added support for generating DoubleClick event for derived classes
22682         * CheckBox.cs:
22683           - Implemented DoubleClick event
22684           - Added missing attributes
22685         * CommonDialog.cs: Added missing attribute
22686         * ContextMenu.cs: Added missing attributes
22687         * RadioButton.cs:
22688           - AutoChecked buttons do not allow to be unselected when clicked
22689             (otherwise we might end up with no selected buttons in a group)
22690           - Added missing attributes
22691           - Implemented DoubleClickEvent
22692         * ThreadExceptionDialog.cs: Enabled TextBox code
22693
22694 2005-01-18  Peter Bartok  <pbartok@novell.com>
22695
22696         * Form.cs: Removed debug output
22697         * Button.cs: Added support for DoubleClick method
22698
22699 2005-01-18  Peter Bartok  <pbartok@novell.com>
22700
22701         * Form.cs:
22702           - Added method to parent window that allows triggering size
22703             calculations when a menu is added/removed
22704           - set_Menu: Cleaned up mess from early days of Form and Control,
22705             now properly triggers a recalc when a menu is added/removed
22706           - Added case to select form itself as focused form if no child
22707             controls exist
22708           - Added PerformLayout call when showing dialog, to ensure properly
22709             placed controls
22710         * Control.cs:
22711           - Select(): Made internal so Form can access it
22712           - Focus(): Only call Xplat layer if required (avoids loop), and sets
22713             status
22714         * Application.cs (Run): Removed hack and calls PerformLayout instead
22715           to trigger calculation when Form becomes visible
22716
22717 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
22718
22719         * ComboBox.cs: fixes for ownerdraw
22720
22721 2005-01-18  Peter Bartok  <pbartok@novell.com>
22722
22723         * TextControl.cs:
22724           - Sentinel is no longer static, each Document gets it's own, this
22725             avoids locking or alternatively overwrite problems when more
22726             than one text control is used simultaneously.
22727           - Switched to use Hilight and HilightText brushes for text selection
22728
22729         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
22730
22731 2005-01-18  Peter Bartok  <pbartok@novell.com>
22732
22733         * Control.cs:
22734           - Hooked up the following events:
22735                 o ControlAdded
22736                 o ControlRemoved
22737                 o HandleDestroyed
22738                 o ImeModeChanged
22739                 o ParentChanged
22740                 o TabStopChanged
22741                 o Invalidated
22742                 o SystemColorsChanged
22743                 o ParentFontChanged
22744                 o Move
22745           - Removed debug output
22746           - Added a call to the current theme's ResetDefaults when a color change
22747             is detected
22748         * Form.cs: Now setting the proper ImeMode
22749         * Theme.cs: Defined a method to force recreation of cached resources
22750           and rereading of system defaults (ResetDefaults())
22751         * ThemeWin32Classic.cs: Added ResetDefaults() stub
22752
22753 2005-01-17  Peter Bartok  <pbartok@novell.com>
22754
22755         * Control.cs: Added missing attributes
22756
22757 2005-01-17  Jackson Harper  <jackson@ximian.com>
22758
22759         * TreeNode.cs: Implement editing. Add missing properties selected
22760         and visible.
22761         * TreeView.cs: Implement node editing. Also some fixes to use
22762         Invalidate (invalid area) instead of Refresh when selecting.
22763
22764 2005-01-17  Peter Bartok  <pbartok@novell.com>
22765
22766         * Control.cs:
22767           - Implemented InvokeGotFocus() method
22768           - Implemented InvokeLostFocus() method
22769           - Implemented InvokePaint() method
22770           - Implemented InvokePaintBackground() method
22771           - Implemented InvokeClick() method
22772           - Implemented FindForm() method
22773           - Implemented RectangleToClient() method
22774           - Implemented ClientToRectangle() method
22775           - Implemented ResetBackColor() method
22776           - Implemented ResetCursor() method
22777           - Implemented ResetFont() method
22778           - Implemented ResteForeColor() method
22779           - Implemented ResetImeMode() method
22780           - Implemented ResetLeftToRight() method
22781           - Implemented ResetText() method
22782           - Implemented Scale() methods
22783           - Implemented ScaleCore() method
22784           - Implemented Update() method
22785           - Removed unused variables
22786           - Stubbed AccessibilityNotifyClients and
22787             ControlAccessibleObject.NotifyClients() methods (dunno what to do
22788             with those yet)
22789           - Now setting proper default for RightToLeft property
22790           - Fixed bug in SetClientSizeCore that would cause windows to get
22791             really big
22792           - Now sending Click/DoubleClick events
22793           - Now selecting controls when left mouse button is clicked on
22794             selectable control
22795         * AccessibleEvents.cs: Added
22796         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
22797         * XplatUIOSX.cs: Stubbed UpdateWindow() method
22798         * XplatUIWin32.cs: Implemented UpdateWindow() method
22799         * XplatUIX11.cs: Implemented UpdateWindow() method
22800         * Form.cs: Removed stray semicolon causing CS0162 warning
22801         * ThemeWin32Classic.cs: Fixed unused variable warnings
22802         * ScrollableControl.cs: Now calls base method for ScaleCore
22803         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
22804           style to avoid interference with internal click handler (which is
22805           different than standard Control click handling)
22806         * RadioButton.cs:
22807           - Now unchecks all sibling radio buttons when control is
22808             selected (Fixes #68756)
22809           - Removed internal tabstop variable, using the one inherited from
22810             Control
22811
22812 2005-01-17  Jackson Harper  <jackson@ximian.com>
22813
22814         * NavigateEventArgs.cs: Fix base type.
22815         * LinkLabel.cs: Sig fix
22816         
22817 2005-01-17  Jackson Harper  <jackson@ximian.com>
22818
22819         * TreeView.cs: Only invalidate the effected nodes bounds when
22820         selecting nodes.
22821
22822 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22823
22824         * XplatUIWin32.cs: fixes Win32 marshaling
22825         * XplatUIX11.cs: fixes method signature
22826
22827 2005-01-17  Peter Bartok  <pbartok@novell.com>
22828
22829         * XplatUIX11.cs: Clean up resources when we no longer need them
22830
22831 2005-01-17  Peter Bartok  <pbartok@novell.com>
22832
22833         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
22834           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
22835           and DestroyCursor() methods.
22836         * Cursor.cs: Partially implemented, now supports standard cursors;
22837           still contains some debug code
22838         * Cursors.cs: Implemented class
22839         * Control.cs:
22840           - WndProc(): Added handling of WM_SETCURSOR message, setting the
22841             appropriate cursor
22842           - Implemented Cursor property
22843           - Replaced break; with return; more straightforwar and possibly
22844             faster
22845           - Now properly setting the result for WM_HELP
22846         * X11Structs.cs: Added CursorFontShape enum
22847         * XplatUIStructs.cs:
22848           - Added StdCursor enum (to support DefineStdCursor() method)
22849           - Added HitTest enum (to support sending WM_SETCURSOR message)
22850         * XplatUIX11.cs:
22851           - Now sends the WM_SETCURSOR message
22852           - Implemented new cursor methods
22853         * XplatUIOSX.cs: Stubbed new cursor methods
22854         * XplatUIWin32.cs:
22855           - Implemented new cursor methods
22856           - Added GetSystemMetrics function and associated enumeration
22857
22858 2005-01-15  Peter Bartok  <pbartok@novell.com>
22859
22860         * Control.cs:
22861           - WndProc(): Now handles EnableNotifyMessage
22862           - SelectNextControl(): Fixed bug where if no child or sibling
22863             controls exist we looped endlessly
22864
22865 2005-01-14  Jackson Harper  <jackson@ximian.com>
22866
22867         * TreeView.cs: Recalculate the tab pages when a new one is added
22868         so that the proper bounding rects are created.
22869
22870 2005-01-14  Jackson Harper  <jackson@ximian.com>
22871
22872         * TreeView.cs: Draw a gray box instead of a grip in the lower
22873         right hand corner when there are both horizontal and vertical
22874         scroll bars.
22875
22876 2005-01-14  Jackson Harper  <jackson@ximian.com>
22877
22878         * Control.cs: When erasing backgrounds use FromHwnd instead of
22879         FromHdc when there is a NULL wparam. This occurs on the X driver.
22880         * XplatUIX11.cs: Set the wparam to NULL.
22881
22882 2005-01-13  Jackson Harper  <jackson@ximian.com>
22883
22884         * PictureBox.cs: Implement missing methods (except ToString, need
22885         to test that on windows) and events. When visibility is changed we
22886         need to redraw the image because the buffers are killed. When size
22887         is changed refresh if the sizemode needs it.
22888
22889 2005-01-13  Peter Bartok  <pbartok@novell.com>
22890
22891         * Control.cs (SelectNextControl): Was using wrong method to select
22892           a control
22893
22894 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22895
22896         * ComboBox.cs: fixes dropstyle
22897
22898 2005-01-13  Peter Bartok  <pbartok@novell.com>
22899
22900         * Form.cs:
22901           - Implemented Select() override
22902           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
22903           - Now sets keyboard focus on startup
22904         * Control.cs (SelectNextControl): Now properly handles directed=true
22905         * TextBoxBase.cs:
22906           - WndProc: Now passes tab key on to base if AcceptTabChar=false
22907           - Added (really bad) focus rectangle (mostly for testing)
22908         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
22909           to enforce redraw on focus changes
22910         * ContainerControl.cs:
22911           - Fixed detection of Shift-Tab key presses
22912           - Fixed traversal with arrow keys
22913         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
22914           gonna keep this or if it's complete yet
22915         
22916 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22917
22918         * ComboBox.cs: missing properties, fixes
22919
22920 2005-01-13  Peter Bartok  <pbartok@novell.com>
22921
22922         * Panel.cs (ctor): Setting Selectable window style to off
22923         * Splitter.cs (ctor): Setting Selectable window style to off
22924         * GroupBox.cs (ctor): Setting Selectable window style to off
22925         * Label.cs (ctor): Setting Selectable window style to off
22926
22927 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
22928
22929         * UpDownBase.cs (InitTimer): If the timer has been already
22930         created, enable it.
22931
22932         Use a TextBox instead of a Label.
22933
22934 2005-01-12  Jackson Harper  <jackson@ximian.com>
22935
22936         * TreeView.cs: Refresh the tree after sorting the nodes. Always
22937         draw the connecting node lines (when ShowLines is true).
22938         * TreeNode.cs: The nodes index can now be updated. This is used
22939         when a node collection is sorted.
22940         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
22941         insert or an existing unsorted node collection can be sorted.
22942         
22943 2005-01-12  Peter Bartok  <pbartok@novell.com>
22944
22945         * ContainerControl.cs: Implemented ProcessDialogKeys()
22946
22947 2005-01-12  Peter Bartok  <pbartok@novell.com>
22948
22949         * Control.cs:
22950           - Implemented SelectNextControl() method
22951           - Several focus related bug fixes
22952           - Fixed Docking calculations to match MS documentation and
22953             behaviour
22954
22955 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
22956
22957         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
22958         bug fixes
22959
22960 2005-01-12  Peter Bartok  <pbartok@novell.com>
22961
22962         * Control.cs:
22963           - Fixed broken Contains() method
22964           - Implemented GetNextControl() method. Finally. This is the pre-
22965             requisite for focus handling.
22966
22967 2005-01-12  Peter Bartok  <pbartok@novell.com>
22968
22969         * OSXStrucs.cs: Added
22970
22971 2005-01-12  Peter Bartok  <pbartok@novell.com>
22972
22973         * XplatUIWin32.cs:
22974           - Removed PeekMessageFlags
22975           - Implemented SetWindowStyle() method
22976         * XplatUIStructs.cs: Added PeekMessageFlags
22977         * X11Structs: Added missing border_width field to XWindowChanges struct
22978         * XplatUIX11.cs:
22979           - PeekMessage: Now throws exception if flags which are not yet
22980             supported are passed
22981           - Implemented SetWindowStyle() method
22982           - Fixed SetZOrder to handle AfterHwnd properly
22983         * XplatUI.cs: Added SetWindowStyle() method
22984         * XplatUIDriver.cs: Added SetWindowStyle() abstract
22985         * Control.cs:
22986           - Implemented UpdateStyles() method
22987           - Implemented UpdateZOrder() method
22988         * XplatUIOSX.cs: Added SetWindowStyle() stub
22989
22990 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
22991
22992         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
22993         button mouse).
22994
22995
22996 2005-01-11  Jackson Harper  <jackson@ximian.com>
22997
22998         * TreeView.cs: Still need to draw lines to siblings even if out of
22999         the current node is out of the clip.
23000
23001 2005-01-11  Jackson Harper  <jackson@ximian.com>
23002
23003         * TreeView.cs: When setting the hbar/vbar/grip position use
23004         SetBounds so that perform layout is only called once. Also suspend
23005         and resume layout so layout is only done once for all controls.
23006         - Removed some debug fluff
23007         * SizeGrip.cs: Call base implmentation in overriding methods.
23008         - When visibility is changed the drawing buffers are killed so we
23009         need to redraw.
23010
23011 2005-01-11  Jackson Harper  <jackson@ximian.com>
23012
23013         * TreeView.cs: Calculate the open node count while drawing. This
23014         saves us an entire tree traversal for every paint operation. Use
23015         a member var for the open node count so less vars are passed around.
23016
23017 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
23018
23019         * MonthCalendar.cs:
23020         - fixed selection to use mousemove, not mouse polling on timer
23021         * ThemeWin32Classic.cs
23022         - removed redundant unused variable "no_more_content"
23023         
23024 2005-01-11  Peter Bartok  <pbartok@novell.com>
23025
23026         * XplatUIX11.cs (DoEvents): Needs to return when no more events
23027           are pending, so it now calls PeekMessage instead of GetMessage;
23028           implemented a incomplete version of PeekMessage
23029         
23030 2005-01-11  Peter Bartok  <pbartok@novell.com>
23031
23032         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
23033           I18n issues
23034         * TextBoxBase.cs: Added sending of TextChanged event
23035
23036 2005-01-10  Jackson Harper  <jackson@ximian.com>
23037
23038         * TreeView.cs: Try not to draw outside the clipping rectangle on
23039         each node element.
23040
23041 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
23042
23043         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
23044
23045 2005-01-10  Jackson Harper  <jackson@ximian.com>
23046
23047         * TreeView.cs:
23048         - Implement fast scrolling. Now only the newly
23049         exposed nodes are drawn and the old image is moved using the
23050         XplatUI::ScrollWindow method.
23051         - Factor in height of nodes when calculating whether or not the
23052         node is in the clipping rect.
23053
23054 2005-01-10  Jackson Harper  <jackson@ximian.com>
23055
23056         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
23057
23058 2005-01-10  Peter Bartok  <pbartok@novell.com>
23059
23060         * Application.cs: Added temporary hack to resolve all our resize
23061           required issues on startup. This will get fixed properly at
23062           some point in the future
23063
23064 2005-01-10  Jackson Harper  <jackson@ximian.com>
23065
23066         * SizeGrip.cs: New internal class that is used as a sizing
23067         grip control...hence the name.
23068
23069 2005-01-10  Peter Bartok  <pbartok@novell.com>
23070
23071         * Control.cs: Implemented proper TabIndex handling, now assigning
23072           a tabindex when a control is added to a container
23073         * GroupBox.cs (ctor): Now sets the Container style bit, required
23074           for Control.GetNextControl()
23075
23076 2005-01-09  Jackson Harper  <jackson@ximian.com>
23077
23078         * TextBoxBase.cs: Clear window when scrolling (fixes build).
23079
23080 2005-01-09  Peter Bartok <pbartok@novell.com>
23081
23082         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
23083           XplatUIX11.cs: Added ability to control ScrollWindow expose and
23084           an overload for ScrollWindow to allow only scrolling a rectangle
23085
23086 2005-01-09  Peter Bartok <pbartok@novell.com>
23087
23088         * Form.cs:
23089           - Implemented SetDesktopBounds method
23090           - Implemented SetDesktopLocation method
23091
23092 2005-01-08  Jackson Harper  <jackson@ximian.com>
23093
23094         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
23095         the node count has changed, this removes to VScroll::Refresh calls
23096         when drawing.
23097
23098 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
23099
23100         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
23101
23102 2005-01-07  Jackson Harper  <jackson@ximian.com>
23103
23104         * TreeNode.cs: Just update the single node when it is
23105         checked. Don't refresh after toggling, the Expand/Collapse already
23106         handles this.
23107         * TreeView.cs: Respect clipping a little more when drawing. Try
23108         not to redraw things that don't need to be redrawn. Just hide the
23109         scrollbars when they are no longer needed instead of removing
23110         them, so they don't have to be created again and again.
23111         
23112 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
23113
23114         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
23115         coordinates to window space to place the caret properly, FIXED.
23116         Implement GetWindowState & SetWindowState
23117
23118 2005-01-06  Peter Bartok <pbartok@novell.com>
23119
23120         * Form.cs:
23121           - Implemented ClientSize property
23122           - Implemented DesktopBounds property
23123           - Implemented DesktopLocation property
23124           - Implemented IsRestrictedWindow property
23125           - Implemented Size property
23126           - Implemented TopLevel property
23127           - Implemented FormWindowState property
23128         * Control.cs:
23129           - Implemented GetTopLevel() method
23130           - Implemented SetTopLevel() method
23131         * X11Structs.cs (Atom):
23132           - Added AnyPropertyType definition
23133           - Added MapState definiton and updated XWindowAttribute struct
23134         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
23135         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
23136         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
23137         * XplatUIWin32.cs:
23138           - Implemented GetWindowState() and SetWindowState() methods
23139           - Fixed Win32GetWindowLong return type
23140         * XplatUIX11.cs:
23141           - Introduced central function for sending NET_WM messages
23142           - Implemented GetWindowState() and SetWindowState() methods
23143         * TextBoxBase.cs (set_Lines):
23144           - Now uses Foreground color for text added via Text property (Duh!)
23145           - Added code to remember programmatically requested size (fixes
23146             behaviour when Multiline is set after Size)
23147           - Added AutoSize logic
23148
23149 2005-01-06  Jackson Harper  <jackson@ximian.com>
23150
23151         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
23152
23153 2005-01-06  Jackson Harper  <jackson@ximian.com>
23154
23155         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
23156         set to less then 0.
23157
23158 2005-01-06  Jackson Harper  <jackson@ximian.com>
23159
23160         * ScrollableControl.cs: Lazy init the scrollbars.
23161         
23162 2005-01-06  Jackson Harper  <jackson@ximian.com>
23163
23164         * Theme.cs: Speed up getting pens and solid brushes, by using
23165         their ARGB as a hash instead of tostring and not calling Contains.
23166
23167 2005-01-06  Peter Bartok <pbartok@novell.com>
23168
23169         * Form.cs:
23170           - Implemented OnActivated and OnDeactivate event trigger
23171           - Implemented Activate() method
23172           - Fixed ShowDialog() to activate the form that was active before
23173             the dialog was shown
23174         * XplatUIX11.cs:
23175           - Added global active_window var that tracks the currently active
23176             X11 window
23177           - Now always grabs Property changes from the root window to always
23178             catch changes on the active window property
23179           - Added code to PropertyNotify handler to send Active/Inactive
23180             messages when state changes. This puts X11 and Win32 en par on
23181             WM_ACTIVATE notifications (except for double notifications when
23182             the user clicks away from our modal window to another one of our
23183             windows)
23184
23185 2005-01-05  Jackson Harper  <jackson@ximian.com>
23186
23187         * ImageList.cs: Implment ctor
23188
23189 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23190
23191         * XplatUIOSX.cs: Implement Activate/SetTopmost
23192
23193 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23194
23195         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
23196
23197 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23198
23199         * XplatUIOSX.cs: Implement GetActive/SetFocus.
23200
23201 2005-01-05  Peter Bartok <pbartok@novell.com>
23202
23203         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
23204           XplatUIOSX.cs: Added GetActive method to return the currently
23205           active window for the application (or null, if none is active)
23206         * Form.cs:
23207           - Implemented ActiveForm
23208           - Commented out owner assignment for modal dialogs (causes problems
23209             on Win32, since the owner will be disabled)
23210           - Reworked some Active/Focus handling (still incomplete)
23211         * CommonDialog.cs: Commented out owner assignment for modal dialogs
23212           (causes problems on Win32, since the owner will be disabled)
23213         * IWin32Window: Added ComVisible attribute
23214
23215 2005-01-05  Peter Bartok <pbartok@novell.com>
23216
23217         * ToolTip.cs (WndProc): Enable setting focus now that we have the
23218           required XplatUI functions.
23219
23220 2005-01-05  Peter Bartok <pbartok@novell.com>
23221
23222         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
23223           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
23224           to implement focus and activation handling; still incomplete and
23225           with debug output
23226
23227 2005-01-04  Peter Bartok <pbartok@novell.com>
23228
23229         * TextBoxBase.cs: Changed access level for Document property to
23230           match switch to internal for TextControl
23231
23232 2005-01-04  Peter Bartok <pbartok@novell.com>
23233
23234         * AccessibleObject: Added ComVisible attribute
23235
23236 2005-01-04  Jackson Harper  <jackson@ximian.com>
23237
23238         * X11Keyboard.cs: Remove unneeded var.
23239
23240 2005-01-04  Jackson Harper  <jackson@ximian.com>
23241
23242         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
23243         but PAINT.
23244         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
23245         ClientMessage. This makes apps exit cleanly (more often).
23246         
23247 2005-01-04  Jackson Harper  <jackson@ximian.com>
23248
23249         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
23250         handling focus, return correct colors and fonts,
23251         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
23252         handle selection, horizontal scrolling, and mouse interaction.
23253
23254 2005-01-04  Peter Bartok <pbartok@novell.com>
23255
23256         * ICommandExecutor.cs: Added
23257         * IDataGridColumnStyleEditingNotificationService.cs: Added
23258         * IFeatureSupport.cs: Added
23259         * IFileReaderService.cs: Added
23260         * IDataObject.cs: Added ComVisible attribute
23261         * AmbientProperties.cs: Added
23262         * BaseCollection.cs: Added missing attributes
23263         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
23264         * BaseCollection.cs: Added missing attributes
23265         * Binding.cs: Added TypeConverter attribute
23266         * BindingContext.cs: Added DefaultEvent attribute
23267         * BindingsCollection.cs: Added DefaultEvent attribute
23268         * Button.cs: Added DefaultValue attribute
23269         * DragEventArgs.cs: Added ComVisible attribute
23270         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
23271         * KeyEventArgs.cs: Added ComVisible attribute
23272         * KeyPressEventArgs.cs: Added ComVisible attribute
23273         * MouseEventArgs.cs: Added ComVisible attribute
23274         * NavigateEventArgs.cs: Added
23275         * NavigateEventHandler.cs: Added
23276         * FeatureSupport.cs: Added
23277         * OSFeature.cs: Added
23278         * Theme.cs: Added abstract Version property to support OSFeature
23279         * ThemeWin32Classic.cs: Added Version property to
23280           support OSFeature.Themes
23281         * ProgressBar.cs: Removed OnPaintBackground override, not required since
23282           the proper styles to avoid background drawing are set, also doesn't
23283           match MS signature
23284         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
23285         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
23286         * ScrollEventArgs.cs: Added ComVisible attribute
23287         * SplitterEventArgs.cs: Added ComVisible attribute
23288         * AccessibleSelection.cs: Added Flags attribute
23289         * Appearance.cs: Added ComVisible attribute
23290         * Border3DSide.cs: Added ComVisible attribute
23291         * Border3DStyle.cs: Added ComVisible attribute
23292         * BorderStyle.cs: Added ComVisible attribute
23293         * DragAction.cs: Added ComVisible attribute
23294         * ErrorBlinkStyle.cs: Added
23295         * ScrollEventType.cs: Added ComVisible attribute
23296         * AnchorStyles.cs: Added Editor attribute
23297         * DockStyle.cs: Added Editor attribute
23298         * HorizontalAlignment.cs: Added ComVisible attribute
23299         * HelpEventArgs.cs: Added ComVisible attribute
23300         * PaintEventArgs.cs: Added IDisposable
23301
23302 2005-01-04  Peter Bartok <pbartok@novell.com>
23303
23304         * TextControl.cs: Switched Line, LineTag and Document classes to
23305           internal
23306
23307 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23308
23309         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
23310         Simple mode, fixes, IntegralHeight, etc.
23311
23312 2005-01-04  Peter Bartok <pbartok@novell.com>
23313
23314         * TextBoxBase.cs: Using proper font variable now
23315
23316 2005-01-04  Peter Bartok <pbartok@novell.com>
23317
23318         * Form.cs (ShowDialog): Set parent to owner, if provided
23319         * GroupBox.cs: Removed unused vars
23320         * TextControl.cs:
23321           - Added GetHashCode() for Document and LineTag classes
23322           - Removed unused variables
23323           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
23324             to allow translation between continuous char position and line/pos
23325         * CheckBox.cs: Removed vars that are provided by base class
23326         * RadioButton.cs: Removed vars that are provided by base class, added
23327           new keyword where required
23328         * LinkLabel.cs: Added new keyword where required
23329         * Control.cs (WndProc): Removed unused variable
23330         * TextBoxBase.cs:
23331           - Finished SelectionLength property
23332           - Implemented SelectionStart property
23333           - Implemented Text property
23334           - Removed unused vars
23335         * MessageBox.cs: Added new keyword where required
23336         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
23337           WndProc signature
23338         * MenuAPI.cs: Added new keyword where required
23339         * ButtonBase.cs: Removed vars that are provided by base class, added
23340           new keyword where required
23341         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
23342           argument to double, to allow compiling with csc 2.0 (Atsushi ran
23343           into this)
23344         * Application.cs (Run): Now triggers the ThreadExit event
23345         * CommonDialog.cs: Added new keyword where required; now properly sets
23346           parent (owner) for dialog
23347         * XplatUIX11.cs: Commented out unused vars
23348         * StatusBar.cs: Fixed signature for Text property
23349         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
23350
23351 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23352
23353         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
23354         TrackBar.cs, MonthCalendar.cs: remove unused vars
23355
23356 2005-01-03  Jackson Harper  <jackson@ximian.com>
23357
23358         * ThemeWin32Classic.cs:
23359         * X11Keyboard.cs: Remove unused vars.
23360
23361 2005-01-03  Peter Bartok  <pbartok@novell.com>
23362
23363         * TextBox.cs:
23364           - set_Text: Tied into TextControl
23365           - set_TextAlignment: Tied into TextControl
23366         * TextControl.cs:
23367           - Added alignment properties and implemented alignment handling
23368             and drawing (still has a bug, not generating proper expose events)
23369           - Added new Line() constructor to allow passing the line alignment
23370           - Fixed selection setting, properly handling end<start now
23371           - Added aligment considerations to RecalculateDocument()
23372         * TextBoxBase.cs:
23373           - Now properly enforces control height for single line controls
23374           - Added support for CharacterCasing
23375           - Added IsInputKey override
23376           - Fixed Keys.Enter logic
23377           - Added SetBoundsCore override
23378           - Fixed mouse selection handling
23379
23380 2005-01-03  Jackson Harper  <jackson@ximian.com>
23381
23382         * TreeView.cs:
23383           - Collapse and uncheck all nodes when CheckBoxes is disabled.
23384           - Checkboxes are always aligned to the bottom of the node,
23385           regardless of item height.
23386           - Use the node bounds to draw the text so we can center it when
23387           the item height is greater then the font height.
23388           - Node::Bounds are only the text part of the node.
23389         * TreeNode.cs: New method to combine collapsing and unchecking all
23390           nodes recursively.
23391
23392 2005-01-02  Jackson Harper  <jackson@ximian.com>
23393
23394         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
23395         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
23396         tree when a check is changed. TODO: Only refresh the checked node.
23397
23398 2004-12-30  Jackson Harper  <jackson@ximian.com>
23399
23400         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
23401         * TreeNode.cs: When collapsing make sure to never collapse the
23402         root node.
23403
23404 2004-12-29  Jackson Harper  <jackson@ximian.com>
23405
23406         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
23407         
23408 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
23409
23410         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
23411
23412 2004-12-28  Peter Bartok  <pbartok@novell.com>
23413
23414         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
23415           not yet assigned
23416
23417 2004-12-28  Peter Bartok  <pbartok@novell.com>
23418
23419         * Control.cs (WndProc): Added WM_HELP handler, now generates
23420           HelpRequested event
23421         * Form.cs: Added HelpButton property and required support code
23422         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
23423
23424 2004-12-28  Peter Bartok  <pbartok@novell.com>
23425
23426         * CommonDialog.cs:
23427           - Made DialogForm.owner variable internal
23428           - Added check to ensure owner form is set before setting
23429             owner properties in CreateParams
23430
23431 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
23432
23433         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
23434           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
23435           GetCursorPos.  Fix major visibility issues.  Rework the windowing
23436           system to support borderless/titleless windows (implements menus).
23437           Fix GetWindowPos.  Implement initial background color support for
23438           views.
23439
23440 2004-12-28  Peter Bartok  <pbartok@novell.com>
23441
23442         * Form.cs (get_CreateParams): Make sure we have an owner before using
23443           the owner variable. Implement proper default if no owner exists
23444
23445 2004-12-28  Peter Bartok  <pbartok@novell.com>
23446
23447         * In preparation for making Managed.Windows.Forms the default build target
23448           for System.Windows.Forms, the following stubbed files were added.
23449           Dialogs are currently being implemented by contributors and are only
23450           short-term place holders.
23451         * ColorDialog.cs: Initial check-in (minmal stub)
23452         * DataGrid.cs: Initial check-in (minimal stub)
23453         * DataGridLineStyle.cs: Initial check-in (minimal stub)
23454         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
23455         * DataGridTableStyle.cs: Initial check-in (minimal stub)
23456         * FontDialog.cs: Initial check-in (minimal stub)
23457         * FileDialog.cs: Initial check-in (minimal stub)
23458         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
23459         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
23460         * OpenFileDialog: Initial check-in (minimal stub)
23461         * IComponentEditorPageSite.cs: Initial check-in
23462         * Splitter.cs: Initial check-in (for Jackson)
23463         * SplitterEventArgs.cs: Initial check-in (for Jackson)
23464         * SplitterEventHandler.cs: Initial check-in (for Jackson)
23465         * TextBox.cs: Initial check-in; still needs some wiring to
23466           TextControl backend
23467         * Form.cs: Implemented ControlBox property
23468         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
23469         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
23470         * TextControl.cs: Added selection functionality; added todo header
23471         * TextBoxBase.cs:
23472           - Implemented Lines property
23473           - Implemented TextHeight property
23474           - Implemented SelectedText property
23475           - Implemented SelectionLength property
23476           - Implemented SelectAll method
23477           - Implemented ToString method
23478           - Removed and cleaned up some debug code
23479           - Implemented (still buggy) mouse text selection
23480
23481 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
23482
23483         * ComboBox.cs: Complete DropDownList implementation, fixes.
23484
23485 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
23486
23487         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
23488         * ComboBoxStyle.cs: ComboBoxStyle enum
23489         * ComboBox.cs: Initial work on ComboBox control
23490
23491 2004-12-21  Peter Bartok  <pbartok@novell.com>
23492
23493         * Control.cs (ctor, CreateParams): Moved setting of is_visible
23494           forward so that anything that creates a window gets the default,
23495           also no longer uses Visible property in CreateParams to avoid
23496           walking up the parent chain and possibly get the wrong visible
23497           status. Fixed IsVisible to no longer walk up to the parent.
23498
23499 2004-12-21  Peter Bartok  <pbartok@novell.com>
23500
23501         * Form.cs (ShowDialog): Unset modality for the proper window
23502  
23503 2004-12-20  Peter Bartok  <pbartok@novell.com>
23504
23505         * CommonDialog.cs: Initial check-in
23506
23507 2004-12-20  Peter Bartok  <pbartok@novell.com>
23508
23509         * Control.cs (Visible): Now uses the parent window instead of the
23510           client area window for the property
23511
23512         * Form.cs
23513           - ShowDialog(): Now uses the proper window for modality
23514           - The default visibility state for the form parent is now false. This
23515             will prevent the user from seeing all the changes to the form and
23516             its controls before the application hits Application.Run()
23517           - Removed some stale commented out code
23518
23519         * NativeWindow.cs:
23520           - Added FindWindow() method to have a method to check for existence
23521             of a window handle
23522           - Added ability to override default exception handling (for example
23523             when debugging with VS.Net; to do this the ExternalExceptionHandler
23524             define must be set
23525           - Removed some useless debug output
23526
23527         * XplatUIX11.cs:
23528           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
23529             not working as expected
23530           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
23531             property to allow switching back to the modal window if focus is
23532             given to another one of our windows (Application Modal)
23533           - Now only sets override_redirect if we create a window
23534             without WS_CAPTION
23535           - Moved EventMask selection before mapping of newly created window
23536             so we can catch the map event as well
23537           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
23538           - Added various Atom related DllImports
23539           - Implemented Exit() method
23540           - .ctor() : No longer shows window if WS_VISIBLE is not defined
23541             in the CreateParams
23542
23543         * MessageBox.cs: Now properly deals with the FormParent window by
23544           providing an override the FormParent CreateParams property to
23545           set as POPUP instead of OVERLAPPED window.
23546
23547 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23548
23549         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
23550         Minor code cleanup.
23551
23552 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23553         
23554         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
23555
23556 2004-12-18  Peter Bartok  <pbartok@novell.com>
23557
23558         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
23559           implementing SetModal() method
23560
23561 2004-12-18  Peter Bartok  <pbartok@novell.com>
23562
23563         * X11Structs.cs (XGCValues): Fixed type of function element
23564         * XplatUI.cs: Added ScrollWindow() method
23565         * XplatUIDriver.cs: Added ScrollWindow() abstract
23566         * XplatUIWin32.cs: Implemented ScrollWindow() method
23567         * XplatUIX11.cs: Implemented ScrollWindow() method
23568         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
23569
23570 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23571
23572         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
23573         Some more keyboard support (INCOMPLETE)
23574
23575 2004-12-17  Peter Bartok  <pbartok@novell.com>
23576
23577         * TextControl.cs:
23578         - Added color attribute to line tags.
23579         - Added color argument to all functions dealing with tags
23580         - Added color argument support to various functions
23581         - Fixed miss-calculation of baseline/shift in certain circumstances
23582
23583         * TextBoxBase.cs: Added new color option to test code
23584
23585 2004-12-17  Jackson Harper  <jackson@ximian.com>
23586
23587         * TreeNode.cs:
23588         * MonthCalendar.cs: Signature fixes
23589
23590 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23591
23592         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
23593         keyboard event moved it.  Create a new graphics context for each paint resolves this
23594
23595 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23596
23597         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
23598         Make caret exist and go blink blink.  Initial keyboard support.
23599         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
23600         works.
23601
23602 2004-12-17  Jackson Harper  <jackson@ximian.com>
23603
23604         * XplatUIStructs.cs: Updated set of virtual keycodes.
23605         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
23606
23607 2004-12-17  Jackson Harper  <jackson@ximian.com>
23608
23609         * XplatUIX11.cs: Prune old keyboard code.
23610
23611 2004-12-17  Jackson Harper  <jackson@ximian.com>
23612
23613         * XplatUIX11.cs: When generating mouse wparams get the modifier
23614         keys from the ModifierKeys property.
23615
23616 2004-12-17  Jackson Harper  <jackson@ximian.com>
23617
23618         * X11Keyboard.cs: Send up/down input when generating
23619         messages. Remove some unused vars.
23620
23621 2004-12-17  Jackson Harper  <jackson@ximian.com>
23622
23623         * TabControl.cs:
23624         * TreeView.cs: get rid of warnings.
23625
23626 2004-12-17  Jackson Harper  <jackson@ximian.com>
23627
23628         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
23629
23630 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
23631
23632         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
23633           CheckedListBox.cs: Implementation
23634
23635 2004-12-17  Peter Bartok  <pbartok@novell.com>
23636
23637         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
23638
23639 2004-12-16  Peter Bartok  <pbartok@novell.com>
23640
23641         * TextControl.cs:
23642           - InsertCharAtCaret(): Fixed start pos fixup
23643           - CaretLine_get: No longer derives the line from the tag, the tag
23644             could be stale if lines in the document have been added or deleted
23645           - RebalanceAfterDelete(): Fixed bug in balancing code
23646           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
23647           - Line.Streamline(): Now can also elminate leading empty tags
23648           - DumpTree(): Added a few more tests and prevented exception on
23649             uninitialized data
23650           - Added Debug section for Combining lines
23651           - Delete(): Now copies all remaining properties of a line
23652           
23653         * TextBoxBase.cs:
23654           - Left mousebutton now sets the caret (and middle button still acts
23655             as formatting tester, which must go away soon)
23656           - Added Debug section for Deleting/Combining lines
23657           - Fixed calculations for UpdateView after Combining lines
23658
23659 2004-12-16  Peter Bartok  <pbartok@novell.com>
23660
23661         * TextControl.cs: Now properly aligns text on a baseline, using the
23662           new XplatUI.GetFontMetrics() method. Simplified several calculations
23663         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
23664           defined
23665
23666 2004-12-16  Peter Bartok  <pbartok@novell.com>
23667
23668         * XplatUI.cs: Added GetFontMetrics() method
23669         * XplatUIDriver.cs: Added GetFontMetrics() abstract
23670         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
23671           into libgdiplus, our private GetFontMetrics function
23672         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
23673         * XplatUIWin32.cs: Implemented GetFontMetrics() method
23674
23675 2004-12-16  Jackson Harper  <jackson@ximain.com>
23676
23677         * XplatUIStruct.cs: Add enum for dead keys
23678         * X11Keyboard.cs: Map and unmap dead keys.
23679
23680 2004-12-16  Jackson Harper  <jackson@ximian.com>
23681
23682         * X11Keyboard.cs: Detect and use the num lock mask.
23683
23684 2004-12-16  Peter Bartok  <pbartok@novell.com>
23685
23686         * Control.cs (CreateGraphics): Added check to make sure the
23687           handle of the window exists before calling Graphics.FromHwnd()
23688
23689 2004-12-16  Peter Bartok  <pbartok@novell.com>
23690
23691         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
23692           contains a lot of code that's not supposed to be there for the
23693           real thing, but required for developing/testing the textbox
23694           backend.
23695
23696 2004-12-16  Peter Bartok  <pbartok@novell.com>
23697
23698         * TextControl.cs:
23699         - Fixed Streamline method
23700         - Added FindTag method to Line
23701         - Added DumpTree method for debugging
23702         - Added DecrementLines() method for deleting lines
23703         - Fixed UpdateView to update the cursor to end-of-line on single-line
23704           updates
23705         - Added PositionCaret() method
23706         - Fixed MoveCaret(LineDown) to move into the last line, too
23707         - Added InsertChar overload
23708         - Fixed InsertChar tag offset calculations
23709         - Added DeleteChar() method
23710         - Added Combine() method for folding lines
23711         - Fixed Delete() method, no longer allocates wasted Line object and
23712           now copies all properties when swapping nodes
23713         - Delete() method now updates document line counter
23714
23715 2004-12-15  Jackson Harper  <jackson@ximian.com>
23716
23717         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
23718         * X11Keyboard.cs: Expose the currently selected modifier keys
23719         through a property.
23720
23721 2004-12-15  Peter Bartok  <pbartok@novell.com>
23722
23723         * TextControl.cs: Initial check-in. Still incomplete
23724
23725 2004-12-15  Jackson Harper  <jackson@ximian.com>
23726
23727         * TreeNode.cs:
23728         * TreeView.cs: Fix build on csc (second time today ;-))
23729
23730 2004-12-15  Jackson Harper  <jackson@ximian.com>
23731
23732         * TreeView.cs: Store the treenodes plus/minus box bounds when it
23733         is calculated and use this for click testing.
23734         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
23735
23736 2004-12-15  Jackson Harper  <jackson@ximian.com>
23737
23738         * TreeView.cs: Pass the nodes image index to the image list when
23739         drawing that image.
23740
23741 2004-12-15  Jackson Harper  <jackson@ximian.com>
23742
23743         * X11Keyboard.cs: Set messages hwnd.
23744         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
23745         post_message calls.
23746
23747 2004-12-15  Jackson Harper  <jackson@ximian.com>
23748
23749         * X11Keyboard.cs: Fix to compile with csc.
23750         
23751 2004-12-15  Jackson Harper  <jackson@ximian.com>
23752
23753         * X11Structs.cs: Add key mask values
23754         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
23755         * X11Keyboard.cs: New file - Extrapolates and interpolates key
23756         down/up foo into WM_CHAR foo
23757         * KeyboardLayouts.cs: Common keyboard layouts
23758         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
23759         post messages into the main queue.
23760
23761 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
23762
23763         * Button.cs: implement ProcessMnemonic
23764         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
23765           brushes everytime
23766         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
23767         * ButtonBase.cs: Show HotkeyPrefix (not the &)
23768
23769 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
23770         
23771         * MonthCalendar.cs: Implemented click-hold for next/previous month
23772           and date selection
23773           
23774 2004-12-11  Peter Bartok  <pbartok@novell.com>
23775
23776         * X11Structs.cs:
23777           - Added XKeyboardState (moved from XplatUIX11.cs)
23778           - Added XCreateGC related enums and structures
23779           - Added GXFunction for XSetFunction
23780
23781         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
23782
23783         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
23784           CaretVisible() calls
23785
23786         * ToolTip.cs: Added code to prevent stealing focus from app windows
23787
23788         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
23789           DestroyCaret, SetCaretPos and CaretVisible)
23790
23791         * XplatUIX11.cs:
23792           - Added implementation for caret functions
23793           - Moved hover variables into a struct, to make it a bit easier
23794             on the eyes and to debug
23795           - Removed XKeyboardState (moved to XplatUIX11.cs)
23796           - Moved Keyboard properties into the properties region
23797
23798         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
23799           call to get a graphics context for our control
23800
23801         * XplatUIOSX.cs: Added empty overrides for the new caret functions
23802
23803         * TreeView.cs: Fixed bug. No matter what color was set it would always
23804           return SystemColors.Window
23805
23806         * XplatUIWin32.cs: Implemented caret overrides
23807
23808 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
23809
23810         * ListBox.cs: fire events, implement missing methods and properties,
23811         sorting.
23812
23813 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
23814
23815         * MonthCalendar.cs: invalidation bug fixing
23816         * ThemeWin32Classic.cs: paint fixing
23817
23818 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
23819
23820         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
23821         prepare the CGContextRef there now.
23822
23823 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
23824
23825         * MonthCalendar.cs:
23826           - optimisationL only invalidate areas that have changed
23827         * ThemeWin32Classic.cs:
23828           - only paint parts that intersect with clip_area
23829
23830 2004-12-09  Peter Bartok  <pbartok@novell.com>
23831
23832         * Application.cs: Undid changes from r37004 which cause problems
23833         on X11
23834
23835 2004-12-09  Ravindra  <rkumar@novell.com>
23836
23837         * ToolBar.cs: Added support for displaying ContextMenu
23838         attached to a button on ToolBar.
23839         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
23840         property.
23841
23842 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
23843
23844         * Label.cs: autosize works in text change and removes unnecessary
23845         invalidate
23846
23847 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
23848
23849         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
23850         remove warnings
23851
23852 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
23853
23854         * XplatUIOSX.cs: Added mouse move/click/grab support
23855         Remove some debugging WriteLines not needed anymore.
23856         Add window resizing/positioning.
23857         Fix visibility on reparenting.
23858
23859 2004-12-08  Peter Bartok  <pbartok@novell.com>
23860
23861         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
23862
23863 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
23864
23865         * XplatUIOSX.cs: Initial checkin
23866         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
23867
23868 2004-12-03  Ravindra <rkumar@novell.com>
23869
23870         * ListView.cs: Added some keybindings and fixed scrolling.
23871         ScrollBars listen to ValueChanged event instead of Scroll
23872         Event. This would let us take care of all changes being
23873         done in the scrollbars' values programmatically or manually.
23874         * ListView.cs (CanMultiselect): Added a check for shift key.
23875         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
23876         * ListViewItem.cs (Clone): Fixed. We need to make a copy
23877         of ListViewSubItemCollection as well.
23878
23879 2004-12-06  Peter Bartok <pbartok@novell.com>
23880
23881         * Control.cs (Parent): Added check and exception to prevent
23882         circular parenting
23883
23884 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
23885
23886         * ListBox.cs: implemented clipping, selection single and multiple,
23887         bug fixing
23888
23889 2004-12-03  Ravindra <rkumar@novell.com>
23890
23891         * ListView.cs (ListView_KeyDown):
23892         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
23893         when CTRL key is pressed.
23894         * ListViewItem.cs (Selected): Fixed setting the property.
23895
23896 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
23897
23898         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
23899
23900         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
23901         MinimizeBox, ShowInTaskbar, TopMost properties.
23902
23903         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
23904         will be implemented).
23905
23906 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
23907
23908         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
23909
23910         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
23911         tests.
23912         
23913         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
23914         
23915         * TreeView.cs: BackColor is Colors.Window.
23916
23917 2004-12-01  Jackson Harper  <jackson@ximian.com>
23918
23919         * TreeView.cs: When resizing the tree if the user is making it
23920         smaller we don't get expose events, so we need to handle adding
23921         the horizontal scrollbar in the size changed handler as well as
23922         the expose handler.
23923
23924 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
23925
23926         * DrawItemState.cs: fixes wrong enum values
23927
23928 2004-12-01  Jackson Harper  <jackson@ximian.com>
23929
23930         * TreeView.cs: Resize the hbar as well as the vbar on resize.
23931
23932 2004-12-01  Jackson Harper  <jackson@ximian.com>
23933
23934         * NodeLabelEditEventArgs.cs:
23935         * NodeLabelEditEventHandler.cs:
23936         * OpenTreeNodeEnumerator.cs:
23937         * TreeNode.cs:
23938         * TreeNodeCollection.cs:
23939         * TreeView.cs:
23940         * TreeViewAction.cs:
23941         * TreeViewCancelEventArgs.cs:
23942         * TreeViewCancelEventHandler.cs:
23943         * TreeViewEventArgs.cs:
23944         * TreeViewEventHandler.cs: Initial implementation.
23945
23946 2004-12-01  Ravindra <rkumar@novell.com>
23947
23948         * ListView.cs (CalculateListView): Fixed scrolling related
23949         calculations. Also, removed some debug statements from other
23950         places.
23951         * ListViewItem.cs: Changed access to 'selected' instance variable
23952         from private to internal.
23953         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
23954
23955 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
23956
23957         * ThemeWin32Classic.cs: remove cache of brush and pens for
23958         specific controls and use the global system, fixes scrollbutton
23959         bugs (for small sizes, disabled, etc)
23960         
23961         * ScrollBar.cs: does not show the thumb for very small controls
23962         (as MS) and allow smaller buttons that the regular size
23963
23964 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
23965
23966         * UpDownBase.cs: Add abstract methods for the interface.
23967         Add new virtual methods (need to be hooked up to TextEntry when it
23968         exists).
23969         Add override methods for most features.
23970         Computes the size, forces the height of the text entry.
23971
23972         * NumericUpDown.cs: Put here the current testing code.
23973
23974         * Set eol-style property on all files that do not have mixed line
23975         endings, to minimize the future problems.  There are still a few
23976         files with mixed endings, and someone should choose whether they
23977         want to move it or not.
23978
23979 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
23980
23981         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
23982         System.Colors
23983         
23984 2004-11-30  Ravindra <rkumar@novell.com>
23985
23986         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
23987         drawing and replaced use of SystemColors by theme colors.
23988         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
23989         * ListView.cs (ListViewItemCollection.Add): Throw exception when
23990         same ListViewItem is being added more than once.
23991
23992 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
23993
23994         * MonthCalendar.cs:
23995           - ControlStyles love to make the control not flicker
23996           
23997 2004-11-30  Peter Bartok  <pbartok@novell.com>
23998
23999         * CharacterCasing.cs: Added
24000
24001 2004-11-29  Peter Bartok  <pbartok@novell.com>
24002
24003         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24004           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
24005           I am removing these files as they conflict with already completed
24006           work. While it is fantastic to get contributions to MWF, I
24007           respectfully ask that everyone please coordinate their contributions
24008           through mono-winforms-list or #mono-winforms at this time. We're
24009           explicitly avoiding stubbing and don't want controls that don't have
24010           their basic functionality implemented in svn. Please also see
24011           http://www.mono-project.com/contributing/winforms.html
24012
24013
24014 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
24015
24016         * Application.cs (ModalRun): Don't hang after exit.
24017
24018         * Theme.cs: New TreeViewDefaultSize property.
24019
24020         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
24021         with less hardcoded SystemColors constant.
24022         Implemented TreeViewDefaultSize.
24023
24024         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24025         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
24026
24027
24028 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
24029
24030         * MonthCalendar.cs:
24031           - Fix NextMonthDate and PrevMonthDate click moving calendar
24032
24033 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
24034
24035         * MonthCalendar.cs:
24036           - Fix usage of ScrollChange Property when scrolling months
24037
24038 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
24039
24040         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
24041          - Fixes menu destroying
24042          - Support adding and removing items on already created menus
24043
24044 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
24045
24046         * MonthCalendar.cs:
24047           - Re-worked all bolded dates handling to match win32
24048         * ThemeWin32Classic.cs:
24049           - Fixed rendering with bolded dates
24050
24051 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
24052
24053         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
24054         - Horizontal scroolbar
24055         - Multicolumn
24056         - Fixes
24057
24058
24059 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
24060
24061         * MonthCalendar.cs:
24062           - Fix Usage of MaxSelectionCount from SelectionRange
24063           - Fixed Shift + Cursor Selection
24064           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
24065           - Fixed normal cursor selection to be compat with win32
24066           - Fixed Shift + Mouse Click selection
24067
24068 2004-11-24  Peter Bartok <pbartok@novell.com>
24069
24070         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
24071         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
24072         * XplatUIX11.cs:
24073           - CreatedKeyBoardMsg now updates keystate with Alt key
24074           - Added workaround for timer crash to CheckTimers, Jackson will
24075             develop a proper fix and check in later
24076           - Implemented DispatchMessage
24077           - Removed calling the native window proc from GetMessage (call
24078             now moved to DispatchMessage)
24079
24080         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
24081           the keydata (Fixes bug #69831)
24082
24083         * XplatUIWin32.cs:
24084           - (DispatchMessage): Switched to return IntPtr
24085           - Added DllImport for SetFocus
24086
24087 2004-11-24  Ravindra <rkumar@novell.com>
24088
24089         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
24090         background drawing.
24091         * ListViewItem.cs: Fixed various properties, calculations
24092         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
24093         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
24094         and some internal properties. Fixed MouseDown handler and Paint
24095         method.
24096
24097 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24098
24099         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
24100
24101 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24102
24103         * ContainerControl.cs: correct accidental check in of local changes
24104
24105 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24106
24107         * ThemeWin32Classic.cs:
24108                 - Fixed Drawing Last month in grid (sometimes not showing)
24109         * MonthCalendar.cs:
24110                 - Fixed title width calculation bug (makeing title small)
24111
24112 2004-11-23  Peter Bartok <pbartok@novell.com>
24113
24114         * XplatUIX11.cs:
24115           - Added generation of WM_MOUSEHOVER event
24116           - Added missing assignment of async_method atom
24117           - Fixed WM_ERASEBKGND; now only redraws the exposed area
24118
24119 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24120
24121         * ThemeWin32Classic.cs:
24122                 - Fixed Drawing of today circle when showtodaycircle not set
24123                 - fixed drawing of first and last month in the grid (gay dates)
24124         * MonthCalendar.cs:
24125                 - Fixed Drawing of today circle
24126                 - Fixed drawing of grady dates
24127                 - Fixed HitTest for today link when ShowToday set to false
24128                 - Fixed DefaultSize to obey ShowToday
24129
24130 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24131
24132         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
24133         * System.Windows.Forms/Theme.cs
24134         * MonthCalendar.cs: added for MonthCalendar
24135         * SelectionRange.cs: added for MonthCalendar
24136         * Day.cs: added for MonthCalendar: added for MonthCalendar
24137         * DateRangeEventArgs.cs: added for MonthCalendar
24138         * DateRangeEventHandler.cs: added for MonthCalendar
24139
24140 2004-11-22  Ravindra <rkumar@novell.com>
24141
24142         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
24143         property.
24144
24145 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
24146
24147         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
24148         event handler.
24149         
24150         * NumericUpDown.cs: Added new implementation.
24151         * UpDownBase.cs: Added new implementation.
24152
24153         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
24154         implementations.
24155         
24156         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
24157         implementations.
24158
24159         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
24160         methods.
24161
24162 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
24163
24164         * Timer.cs  (Dispose): Should call the base dispose when
24165         overriding.
24166
24167 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24168
24169         * ScrollBar.cs: updates thumb position when max, min or increment
24170         is changed
24171
24172 2004-11-21  Ravindra <rkumar@novell.com>
24173
24174         * ListView.cs: Implemented item selection, activation and
24175         column header style. Fixed properties to do a redraw, if
24176         required. Added support for MouseHover, DoubleClick, KeyDown
24177         and KeyUp event handling and some minor fixes.
24178         * ListViewItem.cs: Fixed constructor.
24179         * ThemeWin32Classic.cs: Improved drawing for ListView.
24180
24181 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24182
24183         * ThemeWin32Classic.cs: initial listbox drawing code
24184         * DrawMode.cs: new enumerator
24185         * ListControl.cs: stubbed class
24186         * ListBox.cs: initial implementation
24187         * Theme.cs: new methods definitions
24188         * SelectionMode.cs: new enumerator
24189
24190 2004-11-17  Peter Bartok  <pbartok@novell.com>
24191
24192         * XplatUIWin32.cs: Added double-click events to the class style
24193         * Control.cs (WndProc):
24194           - Added handling of click-count to MouseDown/ MouseUp events.
24195           - Added handling of middle and right mouse buttons
24196           - Removed old debug code
24197
24198 2004-11-17  Jackson Harper  <jackson@ximian.com>
24199
24200         * XplatUIX11.cs: Use the new Mono.Unix namespace.
24201
24202 2004-11-17  Ravindra <rkumar@novell.com>
24203
24204         * ListView.cs: Added event handling for MouseMove/Up/Down.
24205         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
24206         * ThemeWin32Classic.cs: We need to clear the graphics context and
24207         draw column header in a proper state.
24208
24209
24210 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
24211
24212         *  Menu.cs: fixes signature
24213
24214 2004-11-16  Peter Bartok  <pbartok@novell.com>
24215
24216         * XplatUIX11.cs (GetMessage): Implemented generation of
24217           double click mouse messages
24218
24219 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
24220
24221         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
24222         not by menu
24223
24224 2004-11-11  Peter Bartok  <pbartok@novell.com>
24225
24226         * HandleData.cs: Added Visible property
24227         * XplatUIX11.cs (IsVisible): Now uses Visible property from
24228           HandleData
24229         * XplatUIX11.cs: Removed old debug leftovers
24230         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
24231         * Control.cs (WndProc): Removed old debug leftovers,
24232           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
24233           needed WM_SIZE handling
24234
24235 2004-11-11  Jackson Harper  <jackson@ximian.com>
24236
24237         * OwnerDrawPropertyBag.cs:
24238         * TreeViewImageIndexConverter.cs: Initial implementation
24239
24240 2004-11-10  Jackson Harper  <jackson@ximian.com>
24241
24242         * ThemeWin32Classic.cs:
24243         * TabControl.cs: instead of moving tabs by the slider pos just
24244         start drawing at the tab that is offset by the slider. This way
24245         scrolling always moves by exactly one tab.
24246
24247 2004-11-10  Jackson Harper  <jackson@ximian.com>
24248
24249         * TabControl.cs: You can only scroll left when the slider has
24250         already ben moved right.
24251         
24252 2004-11-10  Jackson Harper  <jackson@ximian.com>
24253
24254         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
24255         the clip area.
24256         
24257 2004-11-10  Jackson Harper  <jackson@ximian.com>
24258
24259         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
24260         clip area.
24261         
24262 2004-11-09  Jackson Harper  <jackson@ximian.com>
24263
24264         * TabControl.cs (CalcXPos): New helper method so we can determine
24265         the proper place to start drawing vertical tabs.
24266         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
24267         
24268 2004-11-09  Jackson Harper  <jackson@ximian.com>
24269
24270         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
24271         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
24272         and Bottom, left and right are illegal values for this and
24273         multiline is enabled when the alignment is set to left or right.
24274         (DrawTab): Each alignment block should draw the text itself now
24275         because Left requires special love. Also add rendering for Left
24276         aligned tabs.
24277         
24278 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
24279
24280         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
24281         does not destroy the windows, removes debugging messages
24282
24283 2004-11-09  jba  <jba-mono@optusnet.com.au>
24284
24285         * ThemeWin32Classic.cs
24286         (DrawButtonBase): Fix verticle text rect clipping in windows
24287         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24288         rendering and incorrect text rect clipping
24289         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24290         rendering and incorrect text rect clipping
24291         
24292 2004-11-08  Jackson Harper  <jackson@ximian.com>
24293
24294         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
24295         bottom when they are bottom aligned so the bottoms of the tabs get
24296         displayed.
24297         * TabControl.cs (DropRow): Move rows up instead of down when the
24298         tab control is bottom aligned.
24299
24300 2004-11-08 13:59  pbartok
24301
24302         * XplatUIX11.cs:
24303           - Added handling for various window styles
24304           - Added handling for popup windows
24305           - Added SetTopmost handling
24306
24307 2004-11-08 13:55  pbartok
24308
24309         * XplatUIWin32.cs:
24310           - Added argument to SetTopmost method
24311           - Fixed broken ClientToScreen function
24312
24313 2004-11-08 13:53  pbartok
24314
24315         * XplatUIStructs.cs:
24316           - Added missing WS_EX styles
24317
24318 2004-11-08 13:53  pbartok
24319
24320         * XplatUI.cs, XplatUIDriver.cs:
24321           - Added argument to SetTopmost
24322
24323 2004-11-08 13:52  pbartok
24324
24325         * X11Structs.cs:
24326           - Added XSetWindowAttributes structure
24327           - Improved XWindowAttributes structure
24328           - Added SetWindowValuemask enum
24329           - Added window creation arguments enum
24330           - Added gravity enum
24331           - Added Motif hints structure
24332           - Added various Motif flags and enums
24333           - Added PropertyMode enum for property functions
24334
24335 2004-11-08 13:50  pbartok
24336
24337         * Form.cs:
24338           - Fixed arguments for updated SetTopmost method
24339
24340 2004-11-08 13:49  pbartok
24341
24342         * ToolTip.cs:
24343           - Fixed arguments for updated SetTopmost function
24344           - Fixed usage of PointToClient
24345
24346 2004-11-08 13:44  pbartok
24347
24348         * MenuAPI.cs:
24349           - Added Clipping of children and siblings
24350
24351 2004-11-08 13:41  pbartok
24352
24353         * MainMenu.cs:
24354           - Removed SetMenuBarWindow call. We do this in Form.cs
24355
24356 2004-11-08 13:40  jackson
24357
24358         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
24359           scrolling jimmi in the correct location with bottom aligned tabs
24360
24361 2004-11-08 13:36  pbartok
24362
24363         * ContainerControl.cs:
24364           - Implemented BindingContext
24365           - Implemented ParentForm
24366
24367 2004-11-08 12:46  jackson
24368
24369         * TabControl.cs: Put bottom rendered tabs in the right location
24370
24371 2004-11-08 07:15  jordi
24372
24373         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
24374           removes dead code
24375
24376 2004-11-05 17:30  jackson
24377
24378         * TabControl.cs: When selected tabs are expanded make sure they
24379           don't go beyond the edges of the tab control
24380
24381 2004-11-05 14:57  jackson
24382
24383         * TabControl.cs: Reset show_slider so if the control is resized to
24384           a size where it is no longer needed it's not displayed anymore
24385
24386 2004-11-05 13:16  jackson
24387
24388         * TabControl.cs: Make tab pages non visible when added to the
24389           control
24390
24391 2004-11-05 12:42  jackson
24392
24393         * TabControl.cs: Implement SizeMode.FillToRight
24394
24395 2004-11-05 12:16  jackson
24396
24397         * Control.cs: Do not call CreateHandle if the handle is already
24398           created
24399
24400 2004-11-05 11:46  jackson
24401
24402         * TabControl.cs: Remove superflous call to CalcTabRows
24403
24404 2004-11-05 09:07  jackson
24405
24406         * XplatUIX11.cs: Update for Mono.Posix changes
24407
24408 2004-11-05 07:00  ravindra
24409
24410         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
24411           scrolling.
24412
24413 2004-11-04 22:47  jba
24414
24415         * ThemeWin32Classic.cs:
24416           - Fix Button rendering for FlatStyle = Flat or Popup
24417           - Fix RadioButton and CheckBox rendering when Appearance = Button
24418             (normal and flatstyle).
24419           - Correct outer rectangle color when drawing focus rectangle
24420           - Adjust button bounds to be 1 px smaller when focused
24421           - Make button not draw sunken 3d border when pushed (windows compat)
24422           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
24423           - Offset the text in RadioButton and Checkbox when being rendered as
24424           a button.
24425           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
24426           radiobuttons
24427           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
24428           - Fixed disabled text rendering for normally rendered radiobuttons
24429
24430 2004-11-04 10:26  jackson
24431
24432         * TabControl.cs: Recalculate tab rows when resizing
24433
24434 2004-11-04 07:47  jordi
24435
24436         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
24437           collection completion, drawing issues, missing features
24438
24439 2004-11-04 05:03  ravindra
24440
24441         * ScrollBar.cs:
24442                 - We need to recalculate the Thumb area when
24443                 LargeChange/maximum/minimum values are changed.
24444           - We set the 'pos' in UpdatePos() method to minimum, if it's less
24445                 than minimum. This is required to handle the case if large_change is
24446                 more than max, and use LargeChange property instead of large_change
24447                 variable.
24448           - We return max+1 when large_change is more than max, like MS does.
24449
24450 2004-11-04 04:29  ravindra
24451
24452         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
24453                 - Changed default value signatures (prefixed all with ListView).
24454                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
24455                 ListView.
24456           - Fixed calculations for ListViewItem and implemented Clone()
24457           method.
24458
24459 2004-11-04 04:26  ravindra
24460
24461         * Theme.cs, ThemeWin32Classic.cs:
24462                 - Changed default ListView values signatures (prefixed all with
24463                 ListView).
24464           - Fixed default size values for VScrollBar and HScrollBar.
24465                 - Fixed DrawListViewItem method.
24466
24467 2004-11-04 04:05  ravindra
24468
24469         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
24470
24471 2004-11-04 04:04  ravindra
24472
24473         * ImageList.cs: Implemented the missing overload for Draw method.
24474
24475 2004-11-03 19:29  jackson
24476
24477         * TabControl.cs: Handle dropping rows on selection properly
24478
24479 2004-11-03 11:59  jackson
24480
24481         * TabControl.cs: remove debug code
24482
24483 2004-11-03 11:52  jackson
24484
24485         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
24486           the scrolly widgerywoo
24487
24488 2004-11-02 13:52  jackson
24489
24490         * TabControl.cs: Resize the tab pages and tabs when the tab control
24491           is resized
24492
24493 2004-11-02 13:40  jackson
24494
24495         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
24496           selected tab to the bottom
24497
24498 2004-11-02 13:39  jackson
24499
24500         * TabPage.cs: Store the tab pages row
24501
24502 2004-11-02 12:33  jordi
24503
24504         * MenuItem.cs: fixes handle creation
24505
24506 2004-11-02 11:42  jackson
24507
24508         * TabControl.cs: signature fix
24509
24510 2004-11-02 08:56  jackson
24511
24512         * TabControl.cs: Calculate whether the tab is on an edge properly.
24513           Remove top secret debugging code
24514
24515 2004-11-01 19:57  jackson
24516
24517         * TabControl.cs: Add click handling, and proper sizing
24518
24519 2004-11-01 19:47  jackson
24520
24521         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
24522           tab controls
24523
24524 2004-11-01 19:39  jackson
24525
24526         * TabPage.cs: add internal property to store the bounds of a tab
24527           page
24528
24529 2004-10-30 04:23  ravindra
24530
24531         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
24532           values.
24533
24534 2004-10-30 04:21  ravindra
24535
24536         * ListView.cs, ListViewItem.cs: Added support for scrolling and
24537           fixed calculations.
24538
24539 2004-10-30 03:06  pbartok
24540
24541         * XplatUIX11.cs:
24542           - Removed extension of DllImported libs
24543
24544 2004-10-29 09:55  jordi
24545
24546         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
24547           navigation, itemcollection completion, menu fixes
24548
24549 2004-10-27 22:58  pbartok
24550
24551         * XplatUIX11.cs:
24552           - Now throws a nice error message when no X display could be opened
24553
24554 2004-10-26 13:51  jordi
24555
24556         * ListView.cs: removes warning
24557
24558 2004-10-26 03:55  ravindra
24559
24560         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
24561           ThemeWin32Classic.cs: Some formatting for my last checkins.
24562
24563 2004-10-26 03:36  ravindra
24564
24565         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
24566           control and default values.
24567
24568 2004-10-26 03:35  ravindra
24569
24570         * Theme.cs: Added some default values for ListView control.
24571
24572 2004-10-26 03:33  ravindra
24573
24574         * ToolBar.cs: ToolBar should use the user specified button size, if
24575           there is any. Added a size_specified flag for the same.
24576
24577 2004-10-26 03:33  ravindra
24578
24579         * ColumnHeader.cs: Added some internal members and calculations for
24580           ColumnHeader.
24581
24582 2004-10-26 03:32  ravindra
24583
24584         * ListViewItem.cs: Calculations for ListViewItem.
24585
24586 2004-10-26 03:31  ravindra
24587
24588         * ListView.cs: Added some internal members and calculations for
24589           ListView.
24590
24591 2004-10-22 13:31  jordi
24592
24593         * MenuAPI.cs: speedup menus drawing
24594
24595 2004-10-22 13:16  jackson
24596
24597         * XplatUIX11.cs: Make sure to update exposed regions when adding an
24598           expose event
24599
24600 2004-10-22 11:49  jackson
24601
24602         * Control.cs: oops
24603
24604 2004-10-22 11:41  jackson
24605
24606         * Control.cs: Check to see if the window should have its background
24607           repainted by X when drawing.
24608
24609 2004-10-22 11:31  jackson
24610
24611         * XplatUIX11.cs: When invalidating areas only use XClearArea if
24612           clear is true, this way we do not get flicker from X repainting the
24613           background
24614
24615 2004-10-22 11:28  jackson
24616
24617         * XEventQueue.cs: Queue properly
24618
24619 2004-10-21 09:38  jackson
24620
24621         * XEventQueue.cs: Fix access modifier
24622
24623 2004-10-21 09:36  jackson
24624
24625         * XEventQueue.cs: Don't loose messages
24626
24627 2004-10-21 09:22  jackson
24628
24629         * XEventQueue.cs: Don't loose messages
24630
24631 2004-10-20 04:15  jordi
24632
24633         * BootMode.cs: enum need it by SystemInfo
24634
24635 2004-10-19 21:58  pbartok
24636
24637         * XplatUIWin32.cs:
24638           - Small sanity check
24639
24640 2004-10-19 21:56  pbartok
24641
24642         * Form.cs:
24643           - Added private FormParentWindow class which acts as the container
24644             for our form and as the non-client area where menus are drawn
24645           - Added/Moved required tie-ins to Jordi's menus
24646           - Fixed/Implemented the FormStartPosition functionality
24647
24648 2004-10-19 21:52  pbartok
24649
24650         * Control.cs:
24651           - Removed unneeded locals
24652           - Added code to all size and location properties to understand and
24653             deal with the parent container of Form
24654
24655 2004-10-19 21:33  pbartok
24656
24657         * Application.cs:
24658           - Fixed to deal with new Form subclasses for menus
24659
24660 2004-10-19 17:48  jackson
24661
24662         * XEventQueue.cs: commit correct version of file
24663
24664 2004-10-19 16:50  jackson
24665
24666         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
24667
24668 2004-10-19 16:15  jordi
24669
24670         * MenuAPI.cs: MenuBarCalcSize returns the height
24671
24672 2004-10-19 08:31  pbartok
24673
24674         * Control.cs:
24675           - Added missing call to PreProcessMessage before calling OnXXXKey
24676           methods
24677
24678 2004-10-19 00:04  ravindra
24679
24680         * ToolTip.cs: Fixed constructor.
24681
24682 2004-10-18 09:31  jordi
24683
24684         * MenuAPI.cs: menuitems in menubars do not have shortcuts
24685
24686 2004-10-18 09:26  jordi
24687
24688         * MenuItem.cs: fixes MenuItem class signature
24689
24690 2004-10-18 08:56  jordi
24691
24692         * MenuAPI.cs: prevents windows from showing in the taskbar
24693
24694 2004-10-18 00:28  ravindra
24695
24696         * ToolTip.cs: Suppressed a warning message.
24697
24698 2004-10-18 00:27  ravindra
24699
24700         * Control.cs: Default value of visible property must be true.
24701
24702 2004-10-17 23:19  pbartok
24703
24704         * ToolTip.cs:
24705           - Complete implementation
24706
24707 2004-10-17 23:19  pbartok
24708
24709         * XplatUIX11.cs:
24710           - Added EnableWindow method
24711           - Added SetModal stub
24712           - Added generation of WM_ACTIVATE message (still needs testing)
24713           - Added SetTopMost stub
24714           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
24715
24716 2004-10-17 23:17  pbartok
24717
24718         * XplatUIWin32.cs:
24719           - Removed VirtualKeys to XplatUIStructs
24720           - Implemented SetTopMost method
24721           - Implemented EnableWindow method
24722           - Bugfix in ScreenToClient()
24723           - Bugfixes in ClientToScreen()
24724
24725 2004-10-17 22:51  pbartok
24726
24727         * XplatUIStructs.cs:
24728           - Added WS_EX styles to WindowStyles enumeration
24729
24730 2004-10-17 22:50  pbartok
24731
24732         * XplatUI.cs, XplatUIDriver.cs:
24733           - Added method for enabling/disabling windows
24734           - Added method for setting window modality
24735           - Added method for setting topmost window
24736
24737 2004-10-17 22:49  pbartok
24738
24739         * ThemeWin32Classic.cs:
24740           - Added ToolTip drawing code
24741
24742 2004-10-17 22:49  pbartok
24743
24744         * Theme.cs:
24745           - Added ToolTip abstracts
24746
24747 2004-10-17 22:47  pbartok
24748
24749         * Form.cs:
24750           - Fixed Form.ControlCollection to handle owner relations
24751           - Added Owner/OwnedForms handling
24752           - Implemented Z-Ordering for owned forms
24753           - Removed unneeded private overload of ShowDialog
24754           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
24755             so I hope)
24756           - Fixed Close(), had wrong default
24757           - Added firing of OnLoad event
24758           - Added some commented out debug code for Ownership handling
24759
24760 2004-10-17 22:16  pbartok
24761
24762         * Control.cs:
24763           - Fixed/implemented flat list of controls
24764
24765 2004-10-17 22:14  pbartok
24766
24767         * Application.cs:
24768           - Added code to simulate modal dialogs on Win32
24769
24770 2004-10-17 16:11  jordi
24771
24772         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
24773           mouse event
24774
24775 2004-10-17 13:39  jordi
24776
24777         * MenuAPI.cs: menu drawing fixes
24778
24779 2004-10-15 09:10  ravindra
24780
24781         * StructFormat.cs: General Enum.
24782
24783 2004-10-15 09:09  ravindra
24784
24785         * SizeGripStyle.cs: Enum for Form.
24786
24787 2004-10-15 09:08  ravindra
24788
24789         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
24790           in Theme for ListView.
24791
24792 2004-10-15 09:06  ravindra
24793
24794         * ColumnHeader.cs: Flushing some formatting changes.
24795
24796 2004-10-15 09:05  ravindra
24797
24798         * ListViewItem.cs: Implemented GetBounds method and fixed coding
24799           style.
24800
24801 2004-10-15 09:03  ravindra
24802
24803         * ListView.cs: Implemented Paint method and fixed coding style.
24804
24805 2004-10-15 07:34  jordi
24806
24807         * MenuAPI.cs: fix for X11
24808
24809 2004-10-15 07:32  ravindra
24810
24811         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
24812                 - Renamed Paint() method to Draw() for clarity. Also, moved
24813                 DrawImage() to OnPaint().
24814
24815 2004-10-15 07:25  ravindra
24816
24817         * CheckBox.cs, RadioButton.cs:
24818                 - Removed Redraw (), we get it from ButtonBase.
24819                 - Implemented Paint (), to do class specific painting.
24820
24821 2004-10-15 07:16  ravindra
24822
24823         * ButtonBase.cs:
24824                 - Redraw () is not virtual now.
24825                 - Added an internal virtual method Paint (), so that
24826                 derived classes can do their painting on their own.
24827                 - Modified OnPaint () to call Paint ().
24828
24829 2004-10-15 06:43  jordi
24830
24831         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
24832           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
24833
24834 2004-10-15 00:30  ravindra
24835
24836         * MessageBox.cs:
24837                 - MessageBox on windows does not have min/max buttons.
24838                 This change in CreateParams fixes this on Windows. We
24839                 still need to implement this windowstyle behavior in
24840                 our X11 driver.
24841
24842 2004-10-14 05:14  ravindra
24843
24844         * ToolBar.cs:
24845                 - Changed Redraw () to do a Refresh () always.
24846                 - Fixed the MouseMove event handling when mouse is pressed,
24847                 ie drag event handling.
24848                 - Replaced the usage of ToolBarButton.Pressed property to
24849                 ToolBarButton.pressed internal variable.
24850
24851 2004-10-14 05:10  ravindra
24852
24853         * ToolBarButton.cs:
24854                 - Added an internal member 'inside' to handle mouse move
24855                 with mouse pressed ie mouse drag event.
24856                 - Changed 'Pressed' property to return true only when
24857                 'inside' and 'pressed' are both true.
24858                 - Some coding style love.
24859
24860 2004-10-14 00:17  ravindra
24861
24862         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
24863           public method.
24864
24865 2004-10-14 00:15  ravindra
24866
24867         * ButtonBase.cs: Redraw () related improvements.
24868
24869 2004-10-14 00:14  ravindra
24870
24871         * MessageBox.cs: Moved InitFormSize () out of Paint method and
24872           removed unnecessary calls to Button.Show () method.
24873
24874 2004-10-13 17:50  pbartok
24875
24876         * XplatUIX11.cs:
24877           - Formatting fix
24878           - Removed destroying of window until we solve the problem of X
24879             destroying the window before us on shutdown
24880
24881 2004-10-13 16:32  pbartok
24882
24883         * ButtonBase.cs:
24884           - Now Redraws on MouseUp for FlatStyle Flat and Popup
24885
24886 2004-10-13 14:18  pbartok
24887
24888         * XplatUIX11.cs:
24889           - Added code to destroy the X window
24890
24891 2004-10-13 14:18  pbartok
24892
24893         * XplatUIWin32.cs:
24894           - Added code to destroy a window
24895
24896 2004-10-13 14:12  pbartok
24897
24898         * ButtonBase.cs:
24899           - Added the Redraw on Resize that got dropped in the last rev
24900
24901 2004-10-13 09:06  pbartok
24902
24903         * ThemeWin32Classic.cs:
24904           - Path from John BouAntoun:
24905             * Fix check rendering (centre correctly for normal style, offset
24906               correctly for FlatStyle).
24907             * Fix border color usage (use backcolor) for FlatStyle.Popup
24908             * Use checkbox.Capture instead of checkbox.is_pressed when
24909               rendering flatstyle states.
24910
24911 2004-10-12 21:48  pbartok
24912
24913         * ThemeWin32Classic.cs:
24914           - Removed all occurences of SystemColors and replaced them with the
24915             matching theme color
24916
24917 2004-10-12 21:41  pbartok
24918
24919         * ThemeWin32Classic.cs:
24920           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
24921             him using the function for flatstyle drawing
24922           - Changed functions to use the new version of CPDrawBorder3D
24923
24924 2004-10-12 21:15  pbartok
24925
24926         * ControlPaint.cs:
24927           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
24928             match MS documentation. They need to return defined colors if the
24929             passed color matches the configured control color. Thanks to John
24930             BouAntoun for pointing this out.
24931
24932 2004-10-12 20:57  pbartok
24933
24934         * Control.cs:
24935           - Fix from John BouAntoun: Raise ForeColorChanged event when text
24936             color is changed
24937
24938 2004-10-12 20:46  pbartok
24939
24940         * CheckBox.cs:
24941           - Fix from John BouAntoun: Now properly sets the Appearance property
24942
24943 2004-10-12 20:45  pbartok
24944
24945         * ThemeWin32Classic.cs:
24946           - Fixes from John BouAntoun: now handles forecolors and backcolors
24947             for flatstyle rendered controls much better; It also fixes normal
24948             checkbox rendering when pushed or disabled.
24949
24950 2004-10-08 02:50  jordi
24951
24952         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
24953           work
24954
24955 2004-10-07 08:56  jordi
24956
24957         * ThemeWin32Classic.cs: Removes deletion of cached brushes
24958
24959 2004-10-06 03:59  jordi
24960
24961         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
24962           XplatUIWin32.cs: removes warnings from compilation
24963
24964 2004-10-05 12:23  jackson
24965
24966         * RadioButton.cs: Fix ctor
24967
24968 2004-10-05 11:10  pbartok
24969
24970         * MessageBox.cs:
24971           - Partial implementation by Benjamin Dasnois
24972
24973 2004-10-05 10:15  jackson
24974
24975         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
24976           by John BouAntoun
24977
24978 2004-10-05 03:07  ravindra
24979
24980         * ToolBar.cs:
24981                 - Removed a private method, Draw ().
24982                 - Fixed the ButtonDropDown event handling.
24983                 - Fixed MouseMove event handling.
24984
24985 2004-10-05 03:04  ravindra
24986
24987         * ThemeWin32Classic.cs:
24988                 - Added DrawListView method and ListViewDefaultSize property.
24989                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
24990                 - Changed DOS style CRLF to Unix format (dos2unix).
24991
24992 2004-10-05 03:03  ravindra
24993
24994         * Theme.cs:
24995                 - Added DrawListView method and ListViewDefaultSize property.
24996
24997 2004-10-05 02:42  ravindra
24998
24999         * ToolBarButton.cs: Added an internal member dd_pressed to handle
25000           clicks on DropDown arrow.
25001
25002 2004-10-04 22:56  jackson
25003
25004         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
25005           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
25006           Control handle the buffers, derived classes should not have to
25007           CreateBuffers themselves.
25008
25009 2004-10-04 21:20  jackson
25010
25011         * StatusBar.cs: The control handles resizing the buffers now.
25012
25013 2004-10-04 21:18  jackson
25014
25015         * Control.cs: When resizing the buffers should be invalidated. This
25016           should be handled in Control not in derived classes.
25017
25018 2004-10-04 14:45  jackson
25019
25020         * TabPage.cs: oops
25021
25022 2004-10-04 02:14  pbartok
25023
25024         * LeftRightAlignment.cs:
25025           - Initial check-in
25026
25027 2004-10-04 01:09  jordi
25028
25029         * ThemeWin32Classic.cs: fixes right button position causing right
25030           button not showing on horizontal scrollbars
25031
25032 2004-10-02 13:12  pbartok
25033
25034         * XplatUIX11.cs:
25035           - Simplified the Invalidate method by using an X call instead of
25036             generating the expose ourselves
25037           - Added an expose when the window background is changed
25038           - Implemented ClientToScreen method
25039
25040 2004-10-02 13:08  pbartok
25041
25042         * XplatUIWin32.cs:
25043           - Added Win32EnableWindow method (test for implementing modal
25044           dialogs)
25045           - Added ClientToScreen method and imports
25046
25047 2004-10-02 13:07  pbartok
25048
25049         * XplatUI.cs, XplatUIDriver.cs:
25050           - Added ClientToScreen coordinate translation method
25051
25052 2004-10-02 13:06  pbartok
25053
25054         * KeyPressEventArgs.cs:
25055           - Fixed access level for constructor
25056
25057 2004-10-02 13:06  pbartok
25058
25059         * NativeWindow.cs:
25060           - Changed access level for the window_collection hash table
25061
25062 2004-10-02 13:05  pbartok
25063
25064         * Form.cs:
25065           - Added KeyPreview property
25066           - Added Menu property (still incomplete, pending Jordi's menu work)
25067           - Implemented ProcessCmdKey
25068           - Implemented ProcessDialogKey
25069           - Implemented ProcessKeyPreview
25070
25071 2004-10-02 13:02  pbartok
25072
25073         * Control.cs:
25074           - Added private method to get the Control object from the window
25075           handle
25076           - Implemented ContextMenu property
25077           - Implemented PointToScreen
25078           - Implemented PreProcessMessage
25079           - Implemented IsInputChar
25080           - Implemented IsInputKey
25081           - Implemented ProcessCmdKey
25082           - Completed ProcessKeyEventArgs
25083           - Fixed message loop to call the proper chain of functions on key
25084           events
25085           - Implemented ProcessDialogChar
25086           - Implemented ProcessDialogKey
25087           - Implemented ProcessKeyMessage
25088           - Implemented ProcessKeyPreview
25089           - Added RaiseDragEvent stub (MS internal method)
25090           - Added RaiseKeyEvent stub (MS internal method)
25091           - Added RaiseMouseEvent stub (MS Internal method)
25092           - Added RaisePaintEvent stub (MS Internal method)
25093           - Added ResetMouseEventArgs stub (MS Internal method)
25094           - Implemented RtlTranslateAlignment
25095           - Implemented RtlTranslateContent
25096           - Implemented RtlTranslateHorizontal
25097           - Implemented RtlTranslateLeftRight
25098           - Added generation of KeyPress event
25099
25100 2004-10-02 05:57  ravindra
25101
25102         * ListViewItem.cs: Added attributes.
25103
25104 2004-10-02 05:32  ravindra
25105
25106         * ListView.cs: Added attributes.
25107
25108 2004-10-01 11:53  jackson
25109
25110         * Form.cs: Implement the Close method so work on MessageBox can
25111           continue.
25112
25113 2004-09-30 14:06  pbartok
25114
25115         * XplatUIX11.cs:
25116           - Bug fixes
25117
25118 2004-09-30 11:34  jackson
25119
25120         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
25121
25122 2004-09-30 07:26  ravindra
25123
25124         * ListViewItemConverter.cs: Converter for ListViewItem.
25125
25126 2004-09-30 07:26  ravindra
25127
25128         * SortOrder.cs: Enum for ListView control.
25129
25130 2004-09-30 07:25  ravindra
25131
25132         * ColumnHeader.cs: Supporting class for ListView control.
25133
25134 2004-09-30 07:24  ravindra
25135
25136         * ListView.cs, ListViewItem.cs: Initial implementation.
25137
25138 2004-09-30 07:20  ravindra
25139
25140         * ItemActivation.cs: Enum for ListView Control.
25141
25142 2004-09-29 20:29  pbartok
25143
25144         * XplatUIX11.cs:
25145           - Added lookup of pixel value for background color; tries to get a
25146             color 'close' to the requested color, it avoids having to create a
25147             colormap.  Depending on the display this could mean the used color
25148             is slightly off the desired color. Might have to change it to a more
25149             resource intensive colormap approach, but it will work as a
25150           workaround to avoid red screens.
25151
25152 2004-09-29 14:27  jackson
25153
25154         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
25155
25156 2004-09-28 12:44  pbartok
25157
25158         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
25159           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
25160           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
25161           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
25162           TrackBar.cs, VScrollBar.cs:
25163           - Streamlined Theme interfaces:
25164             * Each DrawXXX method for a control now is passed the object for
25165               the control to be drawn in order to allow accessing any state the
25166               theme might require
25167
25168             * ControlPaint methods for the theme now have a CP prefix to avoid
25169               name clashes with the Draw methods for controls
25170
25171             * Every control now retrieves it's DefaultSize from the current
25172             theme
25173
25174 2004-09-28 12:17  jackson
25175
25176         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
25177           drawing
25178
25179 2004-09-24 14:57  jackson
25180
25181         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
25182           Gives us a nice little performance boost.
25183
25184 2004-09-24 12:02  jackson
25185
25186         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
25187           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
25188           Control and supporting classes. Initial checkin
25189
25190 2004-09-23 13:08  jackson
25191
25192         * Form.cs: Temp build fixage
25193
25194 2004-09-23 01:39  ravindra
25195
25196         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
25197           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
25198           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
25199           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
25200           EventHandlers needed by ListView Control.
25201
25202 2004-09-22 14:12  pbartok
25203
25204         * ScrollableControl.cs:
25205           - Implemented DockPadding property
25206           - Implemented AutoScroll property
25207           - Implemented AutoScrollMargin property
25208           - Implemented AutoScrollMinSize property
25209           - Implemented AutoScrollPosition property
25210           - Implemented DisplayRectangle property (still incomplete)
25211           - Implemented CreateParams property
25212           - Implemented HScroll property
25213           - Implemented VScroll property
25214           - Implemented OnVisibleChanged property
25215
25216 2004-09-22 14:09  pbartok
25217
25218         * Form.cs:
25219           - Added Form.ControllCollection class
25220           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
25221             RemoveOwnedForm (still incomplete, missing on-top and common
25222             minimize/maximize behaviour)
25223           - Added StartPosition property (still incomplete, does not use when
25224             creating the form)
25225           - Added ShowDialog() methods (still incomplete, missing forcing the
25226             dialog modal)
25227
25228 2004-09-22 14:05  pbartok
25229
25230         * Application.cs:
25231           - Added message loop for modal dialogs
25232
25233 2004-09-22 14:02  pbartok
25234
25235         * GroupBox.cs:
25236           - Fixed wrong types for events
25237
25238 2004-09-22 14:00  pbartok
25239
25240         * Shortcut.cs, FormWindowState.cs:
25241           - Fixed wrong values
25242
25243 2004-09-22 12:01  jackson
25244
25245         * Control.cs: Text is never null
25246
25247 2004-09-20 22:14  pbartok
25248
25249         * XplatUIWin32.cs:
25250           - Fixed accessibility level for Idle handler
25251
25252 2004-09-20 18:54  jackson
25253
25254         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25255           XplatUIX11.cs: New message loop that uses poll so we don't get a
25256           busy loop
25257
25258 2004-09-17 10:43  pbartok
25259
25260         * ScrollBar.cs:
25261           - Fixed behaviour of arrow buttons. Now properly behaves like
25262             Buttons (and like Microsoft's scrollbar arrow buttons)
25263
25264 2004-09-17 10:14  pbartok
25265
25266         * ScrollBar.cs:
25267           - Added missing release of keyboard/mouse capture
25268
25269 2004-09-17 06:18  jordi
25270
25271         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
25272           Theme.cs: Very early menu support
25273
25274 2004-09-16 17:45  pbartok
25275
25276         * XplatUIWin32.cs:
25277           - Fixed sending a window to the front
25278           - Added overload for SetWindowPos to avoid casting
25279
25280 2004-09-16 17:44  pbartok
25281
25282         * Control.cs:
25283           - Added SendToBack and BringToFront methods
25284
25285 2004-09-16 07:00  ravindra
25286
25287         * Copyright: Added Novell URL.
25288
25289 2004-09-16 07:00  ravindra
25290
25291         * ToolBar.cs: Invalidate should be done before redrawing.
25292
25293 2004-09-15 21:19  ravindra
25294
25295         * ColumnHeaderStyle.cs: Enum for ListView Control.
25296
25297 2004-09-15 21:18  ravindra
25298
25299         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
25300           ListView Control.
25301
25302 2004-09-13 18:26  jackson
25303
25304         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
25305           properly
25306
25307 2004-09-13 18:13  jackson
25308
25309         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
25310           a second thread and post messages into the main threads message
25311           queue. This makes timing much more consistent. Both win2K and XP
25312           have a minimum timer value of 15 milliseconds, so we now do this
25313           too.
25314
25315 2004-09-13 15:18  pbartok
25316
25317         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25318           XplatUIX11.cs:
25319           - Added Z-Ordering methods
25320
25321 2004-09-13 10:56  pbartok
25322
25323         * Form.cs:
25324           - Fixed #region names
25325           - Moved properties and methods into their proper #regions
25326
25327 2004-09-13 10:51  pbartok
25328
25329         * Form.cs:
25330           - Added Accept and CancelButton properties
25331           - Added ProcessDialogKey() method
25332
25333 2004-09-13 08:18  pbartok
25334
25335         * IWindowTarget.cs:
25336           - Initial check-in
25337
25338 2004-09-10 21:50  pbartok
25339
25340         * Control.cs:
25341           - Added DoDragDrop() [incomplete]
25342           - Properly implemented 'Visible' handling
25343           - Added SetVisibleCore()
25344           - Implemented FindChildAtPoint()
25345           - Implemented GetContainerControl()
25346           - Implemented Hide()
25347
25348 2004-09-10 19:28  pbartok
25349
25350         * Control.cs:
25351           - Moved methods into their appropriate #regions
25352           - Reordered methods within regions alphabetically
25353
25354 2004-09-10 18:57  pbartok
25355
25356         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25357           - Added method to retrieve text from window
25358
25359 2004-09-10 18:56  pbartok
25360
25361         * Control.cs:
25362           - Moved some internal functions into the internal region
25363           - Implemented FontHeight
25364           - Implemented RenderRightToLeft
25365           - Implemented ResizeRedraw
25366           - Implemented ShowFocusCues
25367           - Implemented ShowKeyboardCues
25368           - Implemented FromChildHandle
25369           - Implemented FromHandle
25370           - Implemented IsMnemonic
25371           - Implemented ReflectMessage
25372           - All public and protected Static Methods are now complete
25373
25374 2004-09-10 16:54  pbartok
25375
25376         * Control.cs:
25377           - Implemented remaining missing public instance properties
25378           - Alphabetized some out of order properties
25379
25380 2004-09-10 05:51  ravindra
25381
25382         * PictureBox.cs: Added a check for null image.
25383
25384 2004-09-10 00:59  jordi
25385
25386         * GroupBox.cs: remove cvs tag
25387
25388 2004-09-09 05:25  ravindra
25389
25390         * ToolBar.cs: Make redraw accessible from ToolBarButton.
25391
25392 2004-09-09 05:23  ravindra
25393
25394         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
25395           parent redraw.
25396
25397 2004-09-09 02:28  pbartok
25398
25399         * ThemeWin32Classic.cs:
25400           - Improve disabled string look
25401
25402 2004-09-09 01:15  jordi
25403
25404         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
25405           args and handler
25406
25407 2004-09-08 23:56  ravindra
25408
25409         * ItemBoundsPortion.cs: It's enum, not a class!
25410
25411 2004-09-08 23:47  ravindra
25412
25413         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
25414           Enums for Form.
25415
25416 2004-09-08 21:13  ravindra
25417
25418         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
25419           ListView control.
25420
25421 2004-09-08 21:03  ravindra
25422
25423         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
25424           avoid crash.
25425
25426 2004-09-08 21:01  ravindra
25427
25428         * ScrollableControl.cs: Removed unreachable code.
25429
25430 2004-09-08 06:45  jordi
25431
25432         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
25433
25434 2004-09-08 01:00  jackson
25435
25436         * XplatUIX11.cs: Only run the timers when updating the message
25437           queue. This effectively gives X messages a higher priority then
25438           timer messages. Timers still need love though
25439
25440 2004-09-07 14:01  jackson
25441
25442         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
25443           this for us and the handle is no longer valid.
25444
25445 2004-09-07 13:59  jackson
25446
25447         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
25448           loop that manages to not crash. TODO: Add poll and cleanup timers
25449
25450 2004-09-07 11:12  jordi
25451
25452         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
25453
25454 2004-09-07 03:40  jordi
25455
25456         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
25457           fixes, methods, multiple links
25458
25459 2004-09-06 06:55  jordi
25460
25461         * Control.cs: Caches ClientRectangle rectangle value
25462
25463 2004-09-05 02:03  jordi
25464
25465         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
25466           certain situations
25467
25468 2004-09-04 11:10  jordi
25469
25470         * Label.cs: Refresh when font changed
25471
25472 2004-09-02 16:24  pbartok
25473
25474         * Control.cs:
25475           - Added sanity check to creation of double buffer bitmap
25476
25477 2004-09-02 16:24  pbartok
25478
25479         * ButtonBase.cs:
25480           - Fixed selection of text color
25481           - Fixed handling of resize event; now properly recreates double
25482             buffering bitmap
25483           - Added missing assignment of TextAlignment
25484           - Added proper default for TextAlignment
25485
25486 2004-09-02 14:26  pbartok
25487
25488         * RadioButton.cs:
25489           - Added missing RadioButton.RadioButtonAccessibleObject class
25490
25491 2004-09-02 14:26  pbartok
25492
25493         * Control.cs:
25494           - Added missing Control.ControlAccessibleObject class
25495           - Started to implement Select()ion mechanisms, still very incomplete
25496
25497 2004-09-02 14:25  pbartok
25498
25499         * AccessibleObject.cs:
25500           - Added missing methods
25501
25502 2004-09-02 14:23  pbartok
25503
25504         * AccessibleNavigation.cs, AccessibleSelection.cs:
25505           - Initial check-in
25506
25507 2004-09-02 10:32  jordi
25508
25509         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
25510           pool for pens, brushes, and hatchbruses
25511
25512 2004-09-01 15:30  jackson
25513
25514         * StatusBar.cs: Fix typo
25515
25516 2004-09-01 14:44  pbartok
25517
25518         * RadioButton.cs:
25519           - Fixed state
25520
25521 2004-09-01 14:39  pbartok
25522
25523         * Button.cs, RadioButton.cs:
25524           - Functional initial check-in
25525
25526 2004-09-01 14:01  pbartok
25527
25528         * CheckBox.cs:
25529           - Added missing default
25530           - Added missing region mark
25531
25532 2004-09-01 09:10  jordi
25533
25534         * Label.cs: fixes method signatures, new methods, events, fixes
25535           autosize
25536
25537 2004-09-01 07:19  jordi
25538
25539         * Control.cs: Init string variables with an empty object
25540
25541 2004-09-01 04:20  jordi
25542
25543         * Control.cs: fires OnFontChanged event
25544
25545 2004-08-31 20:07  pbartok
25546
25547         * ButtonBase.cs:
25548           - Enabled display of strings
25549
25550 2004-08-31 20:05  pbartok
25551
25552         * Form.cs:
25553           - Added (partial) implementation of DialogResult; rest needs to be
25554             implemented when the modal loop code is done
25555
25556 2004-08-31 19:55  pbartok
25557
25558         * CheckBox.cs:
25559           - Fixed to match the removal of the needs_redraw concept
25560
25561 2004-08-31 19:55  pbartok
25562
25563         * ButtonBase.cs:
25564           - Removed the rather odd split between 'needs redraw' and redrawing
25565           - Now handles the events that require regeneration (ambient
25566             properties and size)
25567
25568 2004-08-31 19:41  pbartok
25569
25570         * Control.cs:
25571           - Added firing of BackColorChanged event
25572           - Added TopLevelControl property
25573           - Fixed handling of WM_ERASEBKGRND message
25574
25575 2004-08-31 12:49  pbartok
25576
25577         * ButtonBase.cs:
25578           - Removed debug
25579           - Minor fixes
25580
25581 2004-08-31 12:48  pbartok
25582
25583         * CheckBox.cs:
25584           - Finished (famous last words)
25585
25586 2004-08-31 04:35  jordi
25587
25588         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
25589           scrolling bugs, adds new methods
25590
25591 2004-08-30 14:42  pbartok
25592
25593         * CheckBox.cs:
25594           - Implemented CheckBox drawing code
25595
25596 2004-08-30 14:42  pbartok
25597
25598         * ButtonBase.cs:
25599           - Made Redraw() and CheckRedraw() virtual
25600           - Improved mouse up/down/move logic to properly track buttons
25601
25602 2004-08-30 09:44  pbartok
25603
25604         * CheckBox.cs:
25605           - Updated to fix broken build. Not complete yet.
25606
25607 2004-08-30 09:28  pbartok
25608
25609         * CheckState.cs:
25610           - Initial checkin
25611
25612 2004-08-30 09:17  pbartok
25613
25614         * Appearance.cs:
25615           - Initial check-in
25616
25617 2004-08-27 16:12  ravindra
25618
25619         * ToolBarButton.cs: Added TypeConverter attribute.
25620
25621 2004-08-27 16:07  ravindra
25622
25623         * ImageIndexConverter.cs: Implemented.
25624
25625 2004-08-27 14:17  pbartok
25626
25627         * Control.cs:
25628           - Removed unneeded stack vars
25629           - First attempt to fix sizing issues when layout is suspended
25630
25631 2004-08-25 15:35  jordi
25632
25633         * ScrollBar.cs: more fixes to scrollbar
25634
25635 2004-08-25 14:04  ravindra
25636
25637         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
25638           Added the missing divider code and grip for ToolBar Control.
25639
25640 2004-08-25 13:20  pbartok
25641
25642         * Control.cs:
25643           - Control now properly passes the ambient background color to child
25644             controls
25645
25646 2004-08-25 13:20  jordi
25647
25648         * ScrollBar.cs: small bug fix regarding bar position
25649
25650 2004-08-25 12:33  pbartok
25651
25652         * Timer.cs:
25653           - Now only calls SetTimer or KillTimer if the enabled state has
25654           changed
25655
25656 2004-08-25 12:33  pbartok
25657
25658         * XplatUIWin32.cs:
25659           - Fixed timer handling, now seems to work
25660           - Improved error message for window creation
25661
25662 2004-08-25 12:32  pbartok
25663
25664         * Control.cs:
25665           - Fixed generation of MouseUp message
25666
25667 2004-08-25 12:29  jordi
25668
25669         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
25670           and fixes for progressbar
25671
25672 2004-08-24 18:43  ravindra
25673
25674         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
25675           in ToolBar control.
25676
25677 2004-08-24 17:15  pbartok
25678
25679         * Panel.cs:
25680           - Added #region
25681           - Added missing events
25682           - Alphabetized
25683
25684 2004-08-24 17:14  pbartok
25685
25686         * StatusBar.cs, PictureBox.cs:
25687           - Now uses Control's CreateParams
25688
25689 2004-08-24 16:36  pbartok
25690
25691         * XplatUIX11.cs:
25692           - Fixed background color handling
25693           - Fixed sending of enter/leave events on a grab
25694
25695 2004-08-24 16:35  pbartok
25696
25697         * X11Structs.cs:
25698           - Refined definitions for CrossingEvent
25699
25700 2004-08-24 12:37  jordi
25701
25702         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
25703           formmating, methods signature, and adds missing events
25704
25705 2004-08-24 12:24  jordi
25706
25707         * Control.cs: fire OnEnabledChanged event
25708
25709 2004-08-24 11:17  pbartok
25710
25711         * XplatUIWin32.cs:
25712           - Implemented SetTimer() and KillTimer()
25713
25714 2004-08-24 11:16  pbartok
25715
25716         * XplatUIX11.cs:
25717           - Now uses Remove instead of Add to kill the timer
25718
25719 2004-08-24 10:16  jackson
25720
25721         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
25722           picture boxes in the theme now. Draw picture box borders and obey
25723           sizing modes
25724
25725 2004-08-24 05:49  jackson
25726
25727         * Timer.cs: Remove top secret debugging code
25728
25729 2004-08-24 05:34  jackson
25730
25731         * PictureBox.cs: Temp hack to make picture boxes draw their full
25732           image
25733
25734 2004-08-24 05:29  jackson
25735
25736         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25737           XplatUIX11.cs: Move timers to the driver level. On X they are
25738           queued by the driver and checked on idle.
25739
25740 2004-08-24 01:07  jackson
25741
25742         * XplatUIX11.cs: Use a queue for async messages instead of passing
25743           them as ClientMessages since that was totally broken. Also simply
25744           check for events and return an idle message if none are found. This
25745           gives us an idle handler, and prevents deadlocking when no messages
25746           are in the queue.
25747
25748 2004-08-23 18:19  ravindra
25749
25750         * XplatUIWin32.cs: Removed the unwanted destructor.
25751
25752 2004-08-23 17:27  pbartok
25753
25754         * ButtonBase.cs:
25755           - Finishing touches. Works now, just needs some optimizations.
25756
25757 2004-08-23 16:53  jordi
25758
25759         * ScrollBar.cs: small fix
25760
25761 2004-08-23 16:45  pbartok
25762
25763         * Application.cs:
25764           - Removed debug output
25765           - Simplifications
25766
25767 2004-08-23 16:43  jordi
25768
25769         * ScrollBar.cs: [no log message]
25770
25771 2004-08-23 16:10  pbartok
25772
25773         * Form.cs:
25774           - Fixed handling of WM_CLOSE message
25775           - Removed debug output
25776
25777 2004-08-23 16:09  pbartok
25778
25779         * Application.cs:
25780           - Added handling of Idle event
25781           - Added handling of form closing
25782           - Fixed reporting of MessageLoop property
25783           - Removed some unneeded code, should provide a bit of a speedup
25784
25785 2004-08-23 15:22  pbartok
25786
25787         * Control.cs:
25788           - Added InitLayout() method
25789           - Added code to properly perform layout when Anchor or Dock property
25790             is changed
25791           - Changed 'interpretation' of ResumeLayout. MS seems to have a
25792             LAMESPEC, tried to do it in a way that makes sense
25793
25794 2004-08-23 14:10  jordi
25795
25796         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
25797           properties and methods
25798
25799 2004-08-23 13:55  pbartok
25800
25801         * Control.cs:
25802           - Properly fixed Jordi's last fix
25803           - Now uses Cursor's Position property instead of calling XplatUI
25804           directly
25805
25806 2004-08-23 13:44  jordi
25807
25808         * PaintEventHandler.cs: Adding missing attribute
25809
25810 2004-08-23 13:39  pbartok
25811
25812         * Cursor.cs:
25813           - Implemented Position property
25814
25815 2004-08-23 13:39  pbartok
25816
25817         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25818           - Added method to move mouse cursor
25819
25820 2004-08-23 13:39  pbartok
25821
25822         * XplatUIX11.cs:
25823           - Fixed setting of background color
25824           - Added method to move mouse cursor
25825
25826 2004-08-23 13:16  jordi
25827
25828         * Control.cs: avoids null exception
25829
25830 2004-08-22 17:46  jackson
25831
25832         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
25833           PictureBox
25834
25835 2004-08-22 17:40  jackson
25836
25837         * XplatUIX11.cs: Add some missing locks
25838
25839 2004-08-22 15:10  pbartok
25840
25841         * Control.cs, Form.cs:
25842           - Removed OverlappedWindow style from Control, instead it's default
25843             now is child
25844           - Made form windows OverlappedWindow by default
25845
25846 2004-08-22 13:34  jackson
25847
25848         * ScrollBar.cs: Update the position through the Value property so
25849           the OnValueChanged event is raised.
25850
25851 2004-08-22 12:04  pbartok
25852
25853         * SWF.csproj:
25854           - Added Cursor.cs and UserControl.cs
25855
25856 2004-08-22 12:03  pbartok
25857
25858         * Cursor.cs:
25859           - Started implementation, not usable yet
25860
25861 2004-08-22 12:00  pbartok
25862
25863         * UserControl.cs:
25864           - Implemented UserControl (complete)
25865
25866 2004-08-21 19:20  ravindra
25867
25868         * ToolBar.cs: Correcting the formatting mess of VS.NET.
25869
25870 2004-08-21 18:49  ravindra
25871
25872         * ToolBar.cs: Probably this completes the missing attributes in
25873           toolbar control.
25874
25875 2004-08-21 18:03  ravindra
25876
25877         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
25878           Fixed toolbar control signatures.
25879
25880 2004-08-21 16:32  pbartok
25881
25882         * LinkLabel.cs:
25883           - Signature Fixes
25884
25885 2004-08-21 16:30  pbartok
25886
25887         * Label.cs:
25888           - Signature fixes
25889
25890 2004-08-21 16:19  pbartok
25891
25892         * Control.cs, Label.cs:
25893           - Signature fixes
25894
25895 2004-08-21 15:57  pbartok
25896
25897         * ButtonBase.cs:
25898           - Added loads of debug output for development
25899           - Fixed typo in method name
25900
25901 2004-08-21 15:52  pbartok
25902
25903         * ToolBarButtonClickEventArgs.cs:
25904           - Added missing base class
25905
25906 2004-08-21 14:53  pbartok
25907
25908         * Control.cs:
25909           - Updated to match new GrabWindow signature
25910
25911 2004-08-21 14:51  pbartok
25912
25913         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25914           - Added method to get default display size
25915
25916 2004-08-21 14:23  pbartok
25917
25918         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25919           - Added method to query current grab state
25920           - Added argument to allow confining a grab to a window
25921
25922 2004-08-21 14:22  pbartok
25923
25924         * Keys.cs:
25925           - Added [Flags] attribute so that modifiers can be used in bitwise
25926           ops
25927
25928 2004-08-21 14:21  pbartok
25929
25930         * TrackBar.cs, ScrollBar.cs:
25931           - Replaced direct XplatUI calls with their Control counterpart
25932
25933 2004-08-21 13:32  pbartok
25934
25935         * Control.cs:
25936           - Implemented Created property
25937
25938 2004-08-21 13:28  pbartok
25939
25940         * Control.cs:
25941           - Implemented ContainsFocus
25942
25943 2004-08-21 13:26  pbartok
25944
25945         * Control.cs:
25946           - Implemented CausesValidation
25947
25948 2004-08-21 13:21  pbartok
25949
25950         * Control.cs:
25951           - Implemented CanFocus
25952           - Implemented CanSelect
25953           - Implemented Capture
25954
25955 2004-08-21 12:35  pbartok
25956
25957         * XplatUIWin32.cs:
25958           - Fixed bug with Async message handling
25959           - Implemented getting the ModifierKeys
25960
25961 2004-08-21 12:32  jackson
25962
25963         * AsyncMethodResult.cs: Make sure we have the mutex before we
25964           release it. Fixes BeginInvoke on windows
25965
25966 2004-08-21 11:31  pbartok
25967
25968         * XplatUIWin32.cs, XplatUIX11.cs:
25969           - Drivers now return proper mouse state
25970
25971 2004-08-21 10:54  jackson
25972
25973         * Control.cs: Implement EndInvoke
25974
25975 2004-08-21 10:48  jackson
25976
25977         * Timer.cs: Remove unneeded finalizer
25978
25979 2004-08-20 19:52  ravindra
25980
25981         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
25982           in mouse event handling in the ToolBar control.
25983
25984 2004-08-20 19:50  ravindra
25985
25986         * ImageList.cs: Changed draw method to use the arguments passed in
25987           to draw the image.
25988
25989 2004-08-20 18:58  pbartok
25990
25991         * XplatUIStructs.cs:
25992           - Added private message for async communication
25993
25994 2004-08-20 17:38  ravindra
25995
25996         * Control.cs: Made RightToLeft property virtual and removed a
25997           Console.WriteLine.
25998
25999 2004-08-20 14:39  jordi
26000
26001         * ThemeGtk.cs: use style_attach
26002
26003 2004-08-20 14:39  pbartok
26004
26005         * XplatUIWin32.cs:
26006           - Added jackson's Async code from X11 to Win32
26007
26008 2004-08-20 14:09  pbartok
26009
26010         * SWF.csproj:
26011           - Added all new files
26012
26013 2004-08-20 14:09  pbartok
26014
26015         * Control.cs:
26016           - Added call to set window background color
26017
26018 2004-08-20 14:03  pbartok
26019
26020         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26021           - Added method for setting the window background
26022
26023 2004-08-20 14:02  pbartok
26024
26025         * XplatUIWin32.cs:
26026           - Added method for setting the background color
26027           - Added handling for erasing the window background
26028
26029 2004-08-20 13:45  jordi
26030
26031         * TrackBar.cs: fixes timer, new properties and methods
26032
26033 2004-08-20 13:34  jackson
26034
26035         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
26036           correct thread
26037
26038 2004-08-20 13:22  jackson
26039
26040         * Timer.cs: Timer Tick events are now handed through Controls Async
26041           mechanism so the callbacks are executed in the same thread as X
26042
26043 2004-08-20 13:19  jackson
26044
26045         * XplatUIDriver.cs: Expose functionality to send async messages
26046           through the driver
26047
26048 2004-08-20 13:18  jackson
26049
26050         * Control.cs: Implement Begininvoke
26051
26052 2004-08-20 13:14  jackson
26053
26054         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
26055           messages through the driver
26056
26057 2004-08-20 13:12  jackson
26058
26059         * XplatUIX11.cs: Lock before all X operations. Also added Async
26060           method functionality through XSendEvent
26061
26062 2004-08-20 13:11  jackson
26063
26064         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
26065           This will screw up on 64 bit systems)
26066
26067 2004-08-20 13:10  jackson
26068
26069         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
26070           Async messages through X/Win32
26071
26072 2004-08-19 19:39  pbartok
26073
26074         * XplatUIX11.cs:
26075           - Updated code to match new HandleData.DeviceContext type
26076
26077 2004-08-19 19:38  pbartok
26078
26079         * HandleData.cs:
26080           - Made DeviceContext a generic object to allow usage from various
26081           drivers
26082           - Added support for queueing Windows messages
26083
26084 2004-08-19 19:37  pbartok
26085
26086         * XplatUIWin32.cs:
26087           - Added generation of MouseEnter, MouseLeave and MouseHover events
26088           - Added cleanup on EndPaint
26089
26090 2004-08-19 19:17  pbartok
26091
26092         * Control.cs:
26093           - Added handling of WM_MOUSEHOVER
26094           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
26095           code
26096
26097 2004-08-19 18:55  jordi
26098
26099         * ThemeGtk.cs: fixes button order
26100
26101 2004-08-19 18:12  jordi
26102
26103         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
26104
26105 2004-08-19 17:09  pbartok
26106
26107         * Control.cs:
26108           - Added Right property
26109           - Added RightToLeft property
26110
26111 2004-08-19 16:27  jordi
26112
26113         * ThemeGtk.cs: experimental GTK theme support
26114
26115 2004-08-19 16:26  jordi
26116
26117         * ITheme.cs, Theme.cs: move themes from an interface to a class
26118
26119 2004-08-19 16:25  jordi
26120
26121         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
26122           theme enhancaments
26123
26124 2004-08-19 16:04  pbartok
26125
26126         * XplatUIX11.cs:
26127           - Added colormap basics
26128           - Added a way to re-initialize with a different display handle
26129           - Fixed setting of the window background color
26130           - Added various X11 imports related to colors and colormaps
26131
26132 2004-08-19 15:51  pbartok
26133
26134         * X11Structs.cs:
26135           - Removed packing hints (Paolo suggested this a while back)
26136           - fixed colormap type
26137           - Added default Atom types
26138           - Added Screen and color structs and enums
26139
26140 2004-08-19 15:39  pbartok
26141
26142         * ImageList.cs:
26143           - Added missing Draw() method
26144           - Added missing RecreateHandle event
26145
26146 2004-08-19 15:30  pbartok
26147
26148         * Form.cs:
26149           - Added handling of WM_CLOSE
26150
26151 2004-08-18 13:16  jordi
26152
26153         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
26154           a table
26155
26156 2004-08-18 09:56  jordi
26157
26158         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
26159
26160 2004-08-17 15:31  ravindra
26161
26162         * SWF.csproj: Updated project.
26163
26164 2004-08-17 15:25  pbartok
26165
26166         * Control.cs:
26167           - Drawing improvement; don't call UpdateBounds if we are not visible
26168             (or have been minimized)
26169
26170 2004-08-17 15:24  pbartok
26171
26172         * XplatUIWin32.cs:
26173           - Finished IsVisible
26174           - Added Win32GetWindowPlacement
26175
26176 2004-08-17 15:08  jackson
26177
26178         * Panel.cs: Initial checkin of the Panel
26179
26180 2004-08-17 14:25  pbartok
26181
26182         * Control.cs:
26183           - Fixed broken handling of default window sizes
26184
26185 2004-08-17 13:29  jackson
26186
26187         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
26188           has a large startup time.
26189
26190 2004-08-17 10:25  jackson
26191
26192         * HandleData.cs: union areas properly
26193
26194 2004-08-17 10:12  jackson
26195
26196         * HandleData.cs: union areas properly
26197
26198 2004-08-16 20:00  ravindra
26199
26200         * ToolBar.cs, ToolBarButton.cs: Added attributes.
26201
26202 2004-08-16 18:48  ravindra
26203
26204         * ToolBar.cs: Added attributes.
26205
26206 2004-08-16 17:17  ravindra
26207
26208         * SWF.csproj: Updated project.
26209
26210 2004-08-16 17:16  jackson
26211
26212         * XplatUIX11.cs: Check for more expose events before sending a
26213           WM_PAINT so they can all be grouped together. This makes dragging a
26214           window across another window redraw in a sane way.
26215
26216 2004-08-16 15:47  pbartok
26217
26218         * Control.cs:
26219           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
26220             support OnMouseEnter/Leave()
26221           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
26222             exposure handling
26223
26224 2004-08-16 15:46  pbartok
26225
26226         * XplatUIStructs.cs, XplatUIX11.cs:
26227           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
26228           OnMouseEnter/Leave()
26229
26230 2004-08-16 15:34  jackson
26231
26232         * XplatUIX11.cs: Group multiple expose events in HandleData, make
26233           sure messages get the message field set to WM_NULL if they are not
26234           handled.
26235
26236 2004-08-16 15:24  jackson
26237
26238         * HandleData.cs: HandleData is used for storing message information
26239           for window handles
26240
26241 2004-08-15 17:23  ravindra
26242
26243         * ColorDepth.cs: Added attribute.
26244
26245 2004-08-15 17:23  ravindra
26246
26247         * SWF.csproj: Updated project for ToolBar Control.
26248
26249 2004-08-15 17:20  ravindra
26250
26251         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
26252           control and also dos2unix format.
26253
26254 2004-08-15 17:13  ravindra
26255
26256         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
26257           ToolBarButtonClickEventArgs.cs,
26258           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
26259           ToolBarTextAlign.cs: First Implementation of ToolBar control.
26260
26261 2004-08-15 15:31  pbartok
26262
26263         * ButtonBase.cs:
26264           - First (mostly) working version
26265
26266 2004-08-13 16:15  pbartok
26267
26268         * Control.cs:
26269           - Fixed Anchor default
26270
26271 2004-08-13 15:43  pbartok
26272
26273         * Control.cs:
26274           - Changed GetCursorPos signature
26275
26276 2004-08-13 15:42  pbartok
26277
26278         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26279           - Changed signature for GetCursorPos
26280
26281 2004-08-13 15:25  pbartok
26282
26283         * XplatUIX11.cs:
26284           - Cleanup
26285           - Fixed resizing/exposure handling
26286
26287 2004-08-13 15:22  jordi
26288
26289         * ThemeWin32Classic.cs: removes redundant code and fixes issues
26290           with tickposition
26291
26292 2004-08-13 14:55  jordi
26293
26294         * TrackBar.cs: change from wndproc to events
26295
26296 2004-08-13 13:00  jordi
26297
26298         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26299           XplatUIX11.cs: implements PointToClient (ScreenToClient)
26300
26301 2004-08-13 12:53  pbartok
26302
26303         * XplatUIWin32.cs:
26304           - Changed GetWindowPos to also provide client area size
26305           - Fixed broken prototypes for several win32 functions
26306
26307 2004-08-13 12:53  pbartok
26308
26309         * XplatUI.cs, XplatUIDriver.cs:
26310           - Changed GetWindowPos to also provide client area size
26311
26312 2004-08-13 12:52  pbartok
26313
26314         * XplatUIX11.cs:
26315           - Added generation of WM_POSCHANGED
26316           - Changed GetWindowPos to also provide client area size
26317
26318 2004-08-13 12:52  pbartok
26319
26320         * Control.cs:
26321           - Added Dispose() and destructor
26322           - Fixed resizing and bounds calculation
26323           - Fixed Layout
26324           - Added memory savings for invisible windows
26325
26326 2004-08-13 12:46  jordi
26327
26328         * TrackBar.cs: adds timer and grap window
26329
26330 2004-08-13 10:25  jackson
26331
26332         * Timer.cs: SWF Timer
26333
26334 2004-08-12 16:59  pbartok
26335
26336         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26337           - Implemented method to get current mouse position
26338
26339 2004-08-12 14:29  jordi
26340
26341         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
26342           enhancement, fix mouse problems, highli thumb, etc
26343
26344 2004-08-12 13:31  pbartok
26345
26346         * Control.cs:
26347           - Fixed Anchoring bugs
26348
26349 2004-08-12 13:01  jackson
26350
26351         * StatusBar.cs: Don't forget things
26352
26353 2004-08-12 12:54  jackson
26354
26355         * ThemeWin32Classic.cs: Handle owner draw status bars
26356
26357 2004-08-12 12:54  jackson
26358
26359         * StatusBar.cs: Implement missing properties, events, and methods.
26360           Handle mouse clicking
26361
26362 2004-08-12 10:19  jackson
26363
26364         * StatusBarPanelClickEventArgs.cs,
26365           StatusBarPanelClickEventHandler.cs: Classes for handling status
26366           bar panel click events
26367
26368 2004-08-12 10:10  jackson
26369
26370         * Control.cs: Add missing properties
26371
26372 2004-08-12 09:46  pbartok
26373
26374         * BindingsManagerBase.cs:
26375           - Name changed to BindingManagerBase.cs
26376
26377 2004-08-12 09:25  jordi
26378
26379         * ScrollableControl.cs: calls ctrlbase instead of exeception
26380
26381 2004-08-11 16:28  pbartok
26382
26383         * InputLanguageChangingEventArgs.cs:
26384           - Never check in before compiling. Fixes the last check-in
26385
26386 2004-08-11 16:26  pbartok
26387
26388         * InputLanguageChangingEventArgs.cs:
26389           - More signature fixes
26390
26391 2004-08-11 16:20  pbartok
26392
26393         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
26394           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
26395           ImageListStreamer.cs, InputLanguage.cs,
26396           InputLanguageChangedEventArgs.cs,
26397           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
26398           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
26399           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
26400           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26401           - Signature fixes
26402
26403 2004-08-11 16:16  pbartok
26404
26405         * Application.cs:
26406           - Fixed Signature
26407           - Added .Net 1.1 method
26408
26409 2004-08-11 15:25  pbartok
26410
26411         * SWF.csproj:
26412           - Fixed BindingManagerBase.cs filename
26413
26414 2004-08-11 15:22  pbartok
26415
26416         * BindingManagerBase.cs:
26417           - Was checked in with wrong filename
26418
26419 2004-08-11 14:50  pbartok
26420
26421         * SWF.csproj:
26422           - Updated
26423
26424 2004-08-11 13:41  jordi
26425
26426         * XplatUIWin32.cs: Fixes ClientRect
26427
26428 2004-08-11 13:19  pbartok
26429
26430         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26431           XplatUIX11.cs:
26432           - We had SetWindowPos and MoveWindow to set window positions and
26433             size, removed MoveWindow. We have GetWindowPos, so it made sense to
26434             keep SetWindowPos as matching counterpart
26435           - Added some X11 sanity checking
26436
26437 2004-08-11 12:59  pbartok
26438
26439         * Control.cs:
26440           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
26441             (It seems that SetBounds is just a front for SetBoundsCore and
26442              SetBoundsCore updates the underlying window system and
26443              UpdateBounds is responsible for updating the variables associated
26444              with the Control and sending the events)
26445           - Major cleanup of Size handling; we now have two sizes, client_size
26446             and bounds. Bounds defines the window with decorations, client_size
26447             without them.
26448
26449 2004-08-11 12:55  pbartok
26450
26451         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26452           - Added method to calculate difference between decorated window and
26453             raw client area
26454
26455 2004-08-11 12:54  pbartok
26456
26457         * Label.cs:
26458           - Forcing redraw on resize
26459
26460 2004-08-11 11:43  pbartok
26461
26462         * ImageList.cs:
26463           - Removed disposing of the actual images when the list is disposed
26464
26465 2004-08-11 09:13  pbartok
26466
26467         * Control.cs:
26468           - Now properly reparents windows
26469
26470 2004-08-11 08:37  pbartok
26471
26472         * Control.cs:
26473           - Duh!
26474
26475 2004-08-11 07:47  pbartok
26476
26477         * Control.cs:
26478           - Rewrote the collection stuff. Might not be as fast now, not
26479             keeping the number of children around and accessible directly, but
26480             it's more straightforward
26481
26482 2004-08-11 07:44  pbartok
26483
26484         * AccessibleObject.cs:
26485           - Fixed to match ControlCollection rewrite
26486
26487 2004-08-11 07:43  pbartok
26488
26489         * ImageList.cs:
26490           - Added missing creation of the collection list
26491
26492 2004-08-10 20:08  jackson
26493
26494         * StatusBar.cs: Get the paint message from WndProc
26495
26496 2004-08-10 19:31  jackson
26497
26498         * ThemeWin32Classic.cs: Create Brushes as little as possible
26499
26500 2004-08-10 19:20  jackson
26501
26502         * UICues.cs: Add Flags attribute
26503
26504 2004-08-10 19:19  jackson
26505
26506         * StatusBarPanel.cs: Signature cleanup
26507
26508 2004-08-10 19:10  jackson
26509
26510         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
26511           Initial implementation of status bar item drawing
26512
26513 2004-08-10 17:27  jordi
26514
26515         * TrackBar.cs: add missing methods, properties, and restructure to
26516           hide extra ones
26517
26518 2004-08-10 16:24  jackson
26519
26520         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
26521           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
26522           attribute
26523
26524 2004-08-10 13:21  jordi
26525
26526         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
26527           enhancements and standarize on win colors defaults
26528
26529 2004-08-10 12:52  jackson
26530
26531         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
26532           ThemeWin32Classic.cs: Implement DrawItem functionality
26533
26534 2004-08-10 12:47  jordi
26535
26536         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
26537
26538 2004-08-10 12:32  jordi
26539
26540         * Control.cs: throw ontextchange event
26541
26542 2004-08-10 11:43  pbartok
26543
26544         * Control.cs:
26545           - Added more to the still unfinished Dock/Anchor layout code
26546
26547 2004-08-10 11:39  pbartok
26548
26549         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26550           - Added GetWindowPos method
26551
26552 2004-08-10 11:36  pbartok
26553
26554         * XplatUIWin32.cs:
26555           - Implemented several methods
26556
26557 2004-08-10 09:47  jackson
26558
26559         * TrackBar.cs: Allow control to handle buffering
26560
26561 2004-08-10 09:41  jackson
26562
26563         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
26564
26565 2004-08-10 09:24  jackson
26566
26567         * Label.cs, LinkLabel.cs: Let Control handle buffering.
26568
26569 2004-08-10 09:09  jackson
26570
26571         * StatusBar.cs: Let Control handle all the buffering.
26572
26573 2004-08-10 09:08  jackson
26574
26575         * Control.cs: Control will now handle the buffering code, so each
26576           control does not have to implement this.
26577
26578 2004-08-10 08:34  jackson
26579
26580         * XplatUIDriver.cs: Use default colors from the theme
26581
26582 2004-08-09 17:12  pbartok
26583
26584         * ImageList.cs:
26585           - Fixed several bugs Ravindra pointed out
26586
26587 2004-08-09 16:11  pbartok
26588
26589         * Control.cs:
26590           - Added incomplete dock layout code
26591           - Added support for mouse wheel
26592
26593 2004-08-09 16:09  pbartok
26594
26595         * XplatUIX11.cs:
26596           - Added handling for middle and right mousebutton
26597           - Added handling for mouse wheel
26598           - Added handling for key state and mouse state and position
26599           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
26600           messages
26601
26602 2004-08-09 15:40  jackson
26603
26604         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
26605           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
26606           checkin
26607
26608 2004-08-09 15:37  jackson
26609
26610         * StatusBar.cs: Initial implementation of StatusBar
26611
26612 2004-08-09 15:36  jackson
26613
26614         * ITheme.cs: Add support for drawing status bar and getting status
26615           bar item sizes
26616
26617 2004-08-09 15:35  pbartok
26618
26619         * MouseButtons.cs:
26620           - Fixed values
26621
26622 2004-08-09 15:34  jackson
26623
26624         * ThemeWin32Classic.cs: Add support for drawing status bar and get
26625           status bar item sizes
26626
26627 2004-08-09 15:21  jackson
26628
26629         * ThemeWin32Classic.cs: Use known colors for default control
26630           colours
26631
26632 2004-08-09 15:12  jackson
26633
26634         * ThemeWin32Classic.cs: Make the default font static, it is static
26635           in control so this doesn't change functionality and creating fonts
26636           is sloooooow.
26637
26638 2004-08-09 14:56  pbartok
26639
26640         * X11Structs.cs:
26641           - Added GrabMode enum
26642
26643 2004-08-09 14:55  pbartok
26644
26645         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26646           - Removed Run method, was only required for initial development
26647
26648 2004-08-09 14:51  pbartok
26649
26650         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26651           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
26652           capture
26653
26654 2004-08-09 13:48  pbartok
26655
26656         * XplatUIX11.cs:
26657           - Fixed default sizing for child windows
26658
26659 2004-08-09 12:56  pbartok
26660
26661         * XplatUIX11.cs:
26662           - Added generation of WM_DESTROY message
26663           - Added handling of window manager induced shutdown
26664
26665 2004-08-09 11:31  jackson
26666
26667         * ThemeWin32Classic.cs: New names for control properties
26668
26669 2004-08-09 11:25  jackson
26670
26671         * Control.cs: Use new color names
26672
26673 2004-08-09 11:02  jackson
26674
26675         * XplatUI.cs: Get default window properties from the theme
26676
26677 2004-08-09 11:01  jackson
26678
26679         * ITheme.cs: The theme engine now controls default window
26680           properties
26681
26682 2004-08-09 11:00  jackson
26683
26684         * ThemeWin32Classic.cs: Add default window color properties
26685
26686 2004-08-09 10:17  jackson
26687
26688         * ThemeWin32Classic.cs: Use correct default back color
26689
26690 2004-08-09 10:05  jackson
26691
26692         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
26693           the theme now.
26694
26695 2004-08-09 09:56  jackson
26696
26697         * XplatUI.cs: Remove defaults, these are handled by the theme now.
26698
26699 2004-08-09 09:54  jackson
26700
26701         * Control.cs: Get default properties from the theme.
26702
26703 2004-08-09 09:53  jackson
26704
26705         * ITheme.cs: Themes now handle default control properties
26706
26707 2004-08-09 09:53  jackson
26708
26709         * ThemeWin32Classic.cs: Themes now handle default control
26710           properties so coloring will be consistent
26711
26712 2004-08-08 16:54  jordi
26713
26714         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
26715
26716 2004-08-08 15:08  jordi
26717
26718         * XplatUIX11.cs: fixes keyboard crash
26719
26720 2004-08-08 13:47  jordi
26721
26722         * Label.cs: add cvs header info
26723
26724 2004-08-08 12:09  jackson
26725
26726         * ThemeWin32Classic.cs: Add pen_buttonface
26727
26728 2004-08-08 11:52  jordi
26729
26730         * Label.cs, LinkLabel.cs: [no log message]
26731
26732 2004-08-08 11:34  jordi
26733
26734         * ThemeWin32Classic.cs: Use Windows Standard Colours
26735
26736 2004-08-07 17:32  jordi
26737
26738         * TrackBar.cs: throw exceptions of invalid enums values
26739
26740 2004-08-07 17:31  jordi
26741
26742         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
26743           draw method name
26744
26745 2004-08-07 16:56  jackson
26746
26747         * HorizontalAlignment.cs: Initial checkin
26748
26749 2004-08-07 13:16  jordi
26750
26751         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
26752           methods
26753
26754 2004-08-07 13:05  jordi
26755
26756         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
26757           GetSysColor defines
26758
26759 2004-08-06 18:01  pbartok
26760
26761         * ThemeWin32Classic.cs:
26762           - Fixed some rounding issues with float/int
26763
26764 2004-08-06 18:00  jackson
26765
26766         * DockStyle.cs, AnchorStyles.cs:
26767
26768                   Add flags and serializable attributes.
26769
26770 2004-08-06 17:46  pbartok
26771
26772         * XplatUIX11.cs:
26773           - Implemented GetParent
26774
26775 2004-08-06 17:18  pbartok
26776
26777         * TrackBar.cs:
26778           - Fixed some rounding issues with float/int
26779
26780 2004-08-06 17:17  pbartok
26781
26782         * X11Structs.cs, XplatUIX11.cs:
26783           - Fixed Refresh and Invalidate
26784
26785 2004-08-06 15:30  pbartok
26786
26787         * Control.cs, X11Structs.cs, XplatUIX11.cs:
26788           - Fixed recursive loop when resizing
26789           - Improved/fixed redrawing on expose messages
26790
26791 2004-08-06 09:53  jordi
26792
26793         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
26794           keyboard navigation
26795
26796 2004-08-06 08:02  pbartok
26797
26798         * X11Structs.cs, XplatUIX11.cs:
26799           - Fixed reparenting
26800           - Fixed window border creation
26801
26802 2004-08-05 15:38  pbartok
26803
26804         * XplatUIX11.cs:
26805           - Attempted fix for reparenting problems
26806
26807 2004-08-04 15:14  pbartok
26808
26809         * Control.cs:
26810           - Fixed Invalidation bug (calculated wrong client area)
26811           - Added ClientSize setter
26812
26813 2004-08-04 15:13  pbartok
26814
26815         * Form.cs:
26816           - Added AutoScale properties
26817
26818 2004-08-04 15:13  pbartok
26819
26820         * SWF.csproj:
26821           - Added latest files
26822
26823 2004-08-04 14:11  pbartok
26824
26825         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26826           XplatUIX11.cs:
26827           - Added Invalidate handling
26828
26829 2004-08-03 17:09  jordi
26830
26831         * XplatUIDriver.cs: fixes spelling mistake
26832
26833 2004-07-27 09:53  jordi
26834
26835         * TrackBar.cs: fixes trackbar events, def classname, methods
26836           signature
26837
26838 2004-07-27 09:29  jordi
26839
26840         * ScrollBar.cs: fixes scrollbar events
26841
26842 2004-07-27 04:38  jordi
26843
26844         * Control.cs: changes to be able to run winforms samples
26845
26846 2004-07-26 11:42  jordi
26847
26848         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
26849           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
26850
26851 2004-07-26 05:41  jordi
26852
26853         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
26854           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
26855           implementation
26856
26857 2004-07-22 09:22  jordi
26858
26859         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
26860           check link overlapping, implement events, and fixes
26861
26862 2004-07-21 10:28  jordi
26863
26864         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
26865
26866 2004-07-21 10:19  jordi
26867
26868         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
26869           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
26870           LinkLabelLinkClickedEventArgs.cs,
26871           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
26872           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
26873           implementation
26874
26875 2004-07-19 13:09  jordi
26876
26877         * Control.cs, Label.cs: label control re-written: added missing
26878           functionlity, events, and properties
26879
26880 2004-07-19 10:49  jordi
26881
26882         * Control.cs: fixes SetBounds logic
26883
26884 2004-07-19 01:29  jordi
26885
26886         * Control.cs: Call RefreshWindow only if the window has created
26887
26888 2004-07-15 14:05  pbartok
26889
26890         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
26891           - Implemented ImageList and ImageList.ImageCollection classes
26892           - Added ColorDepth enumeration
26893           - Updated SWF VS.Net project
26894
26895 2004-07-15 11:06  jordi
26896
26897         * XplatUIStructs.cs: added MsgButons enum
26898
26899 2004-07-15 11:03  jordi
26900
26901         * Control.cs: added basic mouse handeling events
26902
26903 2004-07-15 03:38  jordi
26904
26905         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
26906           Vertical TrackBar control implementation
26907
26908 2004-07-13 09:33  jordi
26909
26910         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
26911
26912 2004-07-13 09:31  jordi
26913
26914         * Control.cs, Form.cs: commit: new properties and fixes form size
26915           problems
26916
26917 2004-07-09 14:13  miguel
26918
26919         * ProgressBar.cs: Spelling
26920
26921 2004-07-09 11:25  pbartok
26922
26923         * ProgressBar.cs:
26924           - Removed usage of Rectangle for drawing. Miguel pointed out it's
26925           faster
26926
26927 2004-07-09 11:17  miguel
26928
26929         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
26930
26931                 * ProgressBar.cs: Fixed spelling for `block'
26932
26933                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
26934                 style guidelines.
26935
26936                 Avoid using the += on rect.X, that exposed a bug in the compiler.
26937
26938 2004-07-08 23:21  pbartok
26939
26940         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
26941           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
26942           BaseCollection.cs, Binding.cs, BindingContext.cs,
26943           BindingMemberInfo.cs, BindingsCollection.cs,
26944           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
26945           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
26946           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
26947           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
26948           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
26949           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
26950           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
26951           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
26952           FrameStyle.cs, GiveFeedbackEventArgs.cs,
26953           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
26954           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
26955           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
26956           InputLanguageChangedEventArgs.cs,
26957           InputLanguageChangedEventHandler.cs,
26958           InputLanguageChangingEventArgs.cs,
26959           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
26960           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
26961           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
26962           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
26963           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
26964           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
26965           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
26966           QueryAccessibilityHelpEventArgs.cs,
26967           QueryAccessibilityHelpEventHandler.cs,
26968           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
26969           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
26970           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
26971           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
26972           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
26973           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
26974           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
26975           XplatUIX11.cs, lang.cs:
26976           - Initial check-in
26977
26978