* RichTextBox.cs: Set the line endings correctly, when flushing
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-05-22  Jackson Harper  <jackson@ximian.com>
2
3         * RichTextBox.cs: Set the line endings correctly, when flushing
4         RTF text.
5
6 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
7
8         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
9          {Width=0,Height=0}.
10
11 2007-05-22  Jackson Harper  <jackson@ximian.com>
12
13         * TreeView.cs: Setting top with a null node should set to the very
14         top.
15
16 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17
18         * Form.cs: ShowDialog: destroy the handle when message loop is
19           finished, matches MS behaviour. Refactor parts of WmClose into
20           RaiseCloseEvents, that only raises events if they haven't already
21           been raised. Fixes #81688 and #81521.
22         * Application.cs: Don't call close on the form when exiting a modal
23           loop, it will raise all the (Form)Closed/Closing events again if
24           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
25           which doesn'r raise any events it they have been raised before.
26
27 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
28
29         * Control.cs: Add OnPrint.
30         * ToolStrip.cs: Add GetChildAtPoint.
31         * ToolStripContainer.cs: Add OnRightToLeftChanged.
32         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
33
34 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
35
36         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
37
38 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
39
40         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
41           isn't visible anymore. Fixes #81651.
42
43 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
44
45         * Control.cs: WmShowWindow: Update children's z-order after setting
46           their parent. SetParent may show the window, thereby corrupting
47           z-order, since the window will be shown on top.
48         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
49           multiple (and redundant) WM_SHOWWINDOW messages.
50         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
51           event has already been raised.
52         * Form.cs: Change is_changing_visible_state to a counter, since
53           SetVisibleCore can be called recursively. CreateHandle: when
54           creating mdi children, send (De)Activated events.
55         * MdiClient.cs: Update use of is_changing_visible_state.
56         * Application.cs: OnThreadException: Surround exception handling with
57           try/finally to ensure we always reset the error-handling state
58           before leaving.
59
60 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
61
62         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
63           (#81704).
64
65 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
66
67         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
68         SmallIcon views, now that we have a standarized horizontal spacing.
69
70         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
71         4, just like the other views (Match .Net).
72
73 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
74
75         * Control.cs: Delay calculating anchor distances until we actually layout.
76         Always query the WM for the actual size and location it put us at instead of
77         only when we send negative values.
78         [Fixes bugs #81694, 81695]
79
80 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
81
82         * Application.cs: Avoid a possible stack overflow when trying to exit
83           the application.
84
85 2007-05-19  Marek Safar  <marek.safar@gmail.com>
86
87         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
88         enum value.
89
90 2007-05-19  Andreia Gaita  <avidigal@novell.com>
91
92         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
93         * NumericUpDownAcceleration.cs, 
94           NumericUpDownAccelerationCollection.cs: Added 2.0
95           implementation.
96
97 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
98
99         * RichTextBox.cs: Recalculate the document after the ScrollBars
100         property is changed. Fixes bug #81681.
101
102 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
103
104         * DataObject.cs: Implement 2.0 methods.
105
106 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
107
108         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
109         in the center of the checkbox, not in the left-top corner. 
110         Fixes #80037.
111
112 2007-05-18  Jackson Harper  <jackson@ximian.com>
113
114         * RichTextBox.cs: Recalculate the document after the scrollbars
115         property is changed.
116         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
117         81486.
118
119 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
120
121         * CreateParams.cs: Make HasWindowManager marginally faster.
122         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
123           into Hwnd so that other drivers can use it as well.
124         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
125           the default location from Hwnd. Fixes MDI client windows always
126           showing up at (0,0) in Windows (Win32 won't set the default
127           location since the window styles aren't correct).
128
129 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
130
131         * TreeView.cs: Modified DoubleBuffered to just use the base
132         implementation.
133
134 2007-05-18  Jackson Harper  <jackson@ximian.com>
135
136         * TreeView.cs: Set the top node to the last child node when
137         expanding all
138         - When we get focus, if there is no selected node, use the top
139         node.
140
141 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
142
143         * KeysConverter.cs: Add CanConvertTo.
144         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
145         * LinkConverter.cs: Added.
146
147 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
148
149         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
150         it prevents error when file dont have write access. Fixes #81669 and #81667.  
151
152 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
153
154         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
155         button text. Fixes #79640.  
156
157 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
158
159         * Control.cs: According to MSDN controls created in the designer theres 
160         keyboard accelerators visible by default. So included check for design
161         in ShowKeyboardCuesInternal.  
162
163 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
164
165         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
166         text. Fixes #81621.  
167
168 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
169
170         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
171         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
172
173 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
174
175         * Control.cs: Finish implementation of UI State using WmChangeUIState
176         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
177         in some controls to check for show_keyboard_cues to draw accell keys "_".  
178
179 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
180
181         * ListBox.cs: When calculating the horizontal scrollbar
182         in single column mode, don't use values less than 0 for
183         Maximum. Fixes #81474.
184
185 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
186
187         * ListBox.cs: Throw the some missing exceptions in
188         ListBox.ObjectCollection methods.
189
190 2007-05-17  Jackson Harper  <jackson@ximian.com>
191
192         * TextBoxBase.cs: Recalculate the document when the word wrap
193         value has changed. This fixes 81488.
194
195 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
196
197         * Clipboard.cs: Implement missing GetText overload.
198
199 2007-05-17  Chris Toshok  <toshok@ximian.com>
200
201         * Control.cs (CheckDataBindings): remove the binding_context arg
202         to binding.Check.
203
204         * CurrencyManager.cs (OnItemChanged): fix this now that
205         BindingManagerBase is fixed. also remove the comment telling where
206         the fix should go.  We set transfering_data to true/false around
207         the call to PushData to keep UpdateIsBinding from being called.
208         (ListChangedHandler): remove the extra OnMetaDataChanged call for
209         PropertyDescriptorAdded in the 1.1 case.  The extra call is
210         actually generated by System.Data generating 2 metadata changed
211         events of its own per column add.  The fix should go there.  Add a
212         comment to that affect in our test's Assert.Ignore.
213
214         * BindingManagerBase.cs: Rework PullData and PushData slightly.
215         we keep a boolean flag (transfering_data) that keeps us from
216         calling UpdateIsBinding multiple times if we re-enter either of
217         them.
218
219         * ControlBindingsCollection.cs (AddCore): remove the
220         binding_context arg to binding.Check.
221
222         * Binding.cs (IsBinding): don't check if we're binding here, just
223         return our cached value.  we update it in UpdateIsBinding.
224         (Check): don't take the binding_context arg, we'll just use our
225         control's.  Also, for some reason MS doesn't use the data member
226         field when getting the bindingmanager for this binding.  it just
227         uses the datasource.  Make this method callable multiple times,
228         and only do the is_null_desc stuff if manager.Position != -1 (so
229         we don't get an exception accessing manager.Current).
230         (UpdateIsBinding): move the code from IsBinding here.
231         (PositionChangedHandler): call Check here to we can initialize
232         things that require a non- -1 position.
233
234 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
235
236         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
237         control.
238
239 2007-05-17  Andreia Gaita  <avidigal@novell.com>
240
241         * TabControl.cs: Add 2.0 methods and events, including
242         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
243         * TabPage.cs: Add 2.0 methods
244
245 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
246
247         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
248         keyboard_cues is properly handled by message method.  
249
250 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
251
252         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
253
254 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
255
256         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
257
258 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
259
260         * Control.cs: 
261         - WmUpdateUIState added to handle state changes, it make call to
262         OnChangeUICues event.
263         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
264         SystemInformation.
265
266 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
267
268         * ImageKeyConverter.cs: Added.
269         * TreeViewImageKeyConverter.cs: Added.
270
271 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
272         
273         * ToolTips.cs: Update Text if SetToolTip is called for a control
274         already showing the tooltip, as well as restarting its timer; show
275         tooltip if we are inside the control bounds by the time of calling
276         SetToolTip. Inside ShowTooltip remove the check to not show the 
277         tooltip again for the active control (it is allowed by .Net to 
278         show the tooltip on the same control multiple times).
279
280 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
281
282         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
283
284 2007-05-16  Andreia Gaita <avidigal@novell.com> 
285
286         * ContainerControl.cs: only process tab key if there are no 
287         modifier keys present, otherwise the control does the 
288         tab processing, if it needs to. Fixes #81622
289         * TabControl.cs: Fixes calculation for which tab to select on
290         shift+ctrl+tab.
291
292 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
293
294         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
295
296 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
297
298         * Control.cs: Make IsInputCharInternal to allow controls to
299         override it and still match MS API.
300         * TextBoxBase.cs: Override IsInputCharInternal and always
301         return true.
302         [Fixes bug #81616]
303
304 2007-05-15  Jackson Harper  <jackson@ximian.com>
305
306         * TextBox.cs: Disable some of the menu options when using a
307         readonly textbox.
308
309 2007-05-15  Jackson Harper  <jackson@ximian.com>
310
311         * TextBox.cs:
312         * TextBoxBase.cs:
313         * RichTextBox.cs: Some new 2.0 methods
314
315 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
316
317         * FileDialog.cs: On 1.0 profile, do not support multidotted 
318         extensions.
319
320 2007-05-14  Jackson Harper  <jackson@ximian.com>
321
322         * TextBoxBase.cs: Implement some of the new 2.0 methods.
323         * RichTextBox.cs: We need to override these methods on 2.0.
324         * MaskedTextBox.cs: These are implemented now
325         * TextControl.cs: This was off by one.
326
327 2007-05-14  Jackson Harper  <jackson@ximian.com>
328
329         * TextControl.cs: Because the line endings are including in the
330         text, we don't need to add them in anymore.
331
332 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
333
334         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
335         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
336
337 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
338
339         * ToolBar.cs: Adjust size to default size when button theres no text and
340         image, it fixes remaining issues from #81524.
341
342 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
343
344         * ToolBar.cs: 
345         - When not flat call redraw to recalculate sizes on creare handle to match
346         win32 behavior.
347         - Revert 77220 because it causes some regressions in toobar
348         button.
349
350 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
351
352         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
353           now actually enters a usable state.
354
355 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
356
357         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
358         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
359         3 buttons.
360
361 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
362
363         * ToolBar.cs: Save default_size on create handle to use later for buttons
364         without text, needed to mimic win32 behavior.
365
366 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
367
368         * ToolBar.cs: Fix button layour to best fit width or height according to
369         vertical or not. Fixes #81524.
370
371 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
372
373         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
374         toolbar size info because different styles theres different sizes.
375         Fixes #81522.
376
377 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
378
379         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
380         if we are using checkboxes, checked is true, and we have less
381         than two images in StateImageList; for the 1.1 in the same scenario
382         draw the first image if we have at least one image in StateImageList.
383         Fixes part of #81191.
384
385 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
386
387         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
388         the owner's Items collection on merge.
389
390 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
391
392         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
393         * ToolStripItemCollection.cs: Lots of fixes to when events get called
394         and parent/owner gets changed based on gert's unit tests.
395
396 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
397
398         * MaskedTextBox.cs: Started implementing parts of it.
399
400 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
401
402         * ListView.cs: When clicking the checkbox on the items
403         take into account the double clicks even if we have only
404         one image in StateImageList (only for 1.0/1.1). Also 
405         generate an extra change of checked state when we receive
406         the second click on checkbox (match .Net behaviour). 
407         Fixes part of #81191.
408
409 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
410
411         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
412
413 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
414
415         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
416         even if OnLoad is overriden and base.OnLoad is not called.
417         [Fixes bug #81582]
418
419 2007-05-10  Andreia Gaita  <avidigal@novell.com>
420
421         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
422         shame. (I blame my ever-persisting and annoying cold)
423
424 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
425
426         * ListView.cs: Don't eat navigation keys.  Let them flow through to
427         KeyDown/KeyPress routines.  [Fixes bug #81569]
428
429 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
430
431         * ListView.cs: When handling keys for selecting the item based off
432         keyboard input, do not consider keys pressed with Alt or Control.  Also,
433         correctly handle keys when the Shift key is down. [Fixes bug #81578]
434
435 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
436
437         * Control.cs: When using UseWaitCursor, we have to store the requested
438         Cursor to use when UseWaitCursor is turned off.
439
440 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
441
442         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
443         to false.
444         * Application.cs: Use PreProcessControlMessage instead of
445         PreProcessMessage.
446         * PreProcessControlMessage.cs: Make internal for 1.1.
447
448 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
449
450         * Control.cs: Add InternalContains focus property, which hast the same
451         functionality of ContainsFocus, but also including implicit controls.
452         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
453         since we need to know if the focus is contained in our implicit
454         ItemControl when calculating Layout. Fixes part of #80888.
455
456 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
457
458         * ToolTip.cs: Remove center form string alignment as it must be align to
459         left.
460
461 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
462
463         * ToolStripItemCollection.cs: Set the new item's parent and owner
464         in Insert like we do in Add.  [Fixes bug #81568]
465
466 2007-05-08  Jackson Harper  <jackson@ximian.com>
467
468         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
469         - Off by one error in SetTop
470         - Disable DoubeBuffering
471         
472 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
473
474         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
475           control as much as necessary in order to make it entirely visible,
476           instead of centering the control in the container (matches MS
477           behaviour). CalculateCanvasSize: we need to take the current scroll
478           position into account when calculating the maximum canvas,
479           otherwise the following scenario will fail: resize so that the
480           scrollbars appear, use the scrollbars to scroll, resize again
481           smaller, and now the canvas size is too small. Recalculate: when
482           showing scrollbars make sure they start off at 0, and try to scroll
483           the active control into view. Fixes #79540. HandleScrollBar: don't
484           scroll anywhere if the scrollbar isn't visible.
485
486 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
487
488         * ListView.cs: When focus changed, call Layout/Invalidate
489         in the focused item to update the selected state (should show
490         entire label when ListView is focused, and a part of it if is not).
491         * ListViewItem.cs: When doing layout for LargeIcon, take into account
492         for displaying the entire label not only the Focused state of the
493         item, but also the Focused state of the ListView (match .Net
494         behaviour).
495
496 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
497
498         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
499         Implement UseWaitCursor. 
500
501 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
502         Applying contributed patch from Sergey Volk.
503
504         * Clipboard.cs: Implement SetDataObject retry logic and new overload
505         of SetDataObject.
506         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
507
508 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
509
510         * Control.cs: Implement DrawToBitmap.
511
512 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
513         Applying contributed patch from Stefan Noack.
514         
515         * Control.cs: Add [Get|Set]AutoSizeMode.
516
517 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
518
519         * MdiClient.cs: Unmerge menus when the last child is closed.
520
521 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
522
523         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
524         * ToolStripManager.cs: Call Merge on DropDowns.
525         [Fixes bug #81477]
526
527 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
528
529         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
530           uints.
531         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
532           visibility. We can't create forms visible, since we have to set the
533           owner before making the form visible (otherwise Win32 will do
534           strange things with task bar icons). The problem is that we set the
535           internal is_visible to true before creating the control, so
536           is_changing_visible_state is the only way of determining if we're
537           in the process of creating the form due to setting Visible=true -
538           this works because SetVisibleCore explicitly makes the form
539           visibile afterwards anyways. Fixes #80775.
540
541 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
542
543         * ThemeWin32Classic.cs: When drawing ListViewItems,
544         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
545         or LargeIcon _and_ item is not focused (match .Net behaviour).
546
547 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
548
549         * Control.cs, Form.cs: Fix some obsolete method warnings.
550
551 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
552
553         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
554         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
555
556 2007-05-04  Andreia Gaita  <avidigal@novell.com>
557
558         * ContainerControl.cs: Fix active_control attribution when going
559         up the parent chain so that the first parent container gets the control
560         and the rest of the parent containers get the child containers (skips
561         non-containers). Fixes #80729
562
563 2007-05-04  Randolph Chung  <tausq@debian.org>
564
565         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
566         [Fixes bug #81499]
567
568 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
569
570         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
571           takes a size parameter, since the CreateParam's size isn't true for
572           minimized forms. Fixes #81518,
573
574 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
575
576         * Form.cs: Add OnDeactivateInternal.
577         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
578
579 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
580
581         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
582           accessing the parent. Fixes #81508.
583
584 2007-05-03  Chris Toshok  <toshok@ximian.com>
585
586         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
587         2.0 block, pass listposition + 1 to ChangeRecordState when a row
588         was added before the current listposition.  Fixes the
589         TestInsertRowBeforeCurrent unit test.
590
591 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
592
593         * Application.cs: Add RaiseIdle.
594         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
595         XplatUIX11.cs: Implement RaiseIdle.
596
597 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
598         corcompare work: N - Z
599         * NotifyIcon.cs
600         * ProgressBar.cs
601         * RadionButton.cs
602         * ScrollableControl.cs
603         * SplitContainer.cs
604         * SplitterPanel.cs
605         * StatusBar.cs
606         * SystemInformation.cs
607         * TabControl.cs
608         * TableLayoutControlCollection.cs
609         * TableLayoutPanel.cs
610         * TabPage.cs
611         * ToolBar.cs
612         * ToolBarButton.cs
613         * ToolStrip.cs
614         * ToolStripComboBox.cs
615         * ToolStripContainer.cs
616         * ToolStripContentPanel.cs
617         * ToolStripDropDown.cs
618         * ToolStripDropDownItem.cs
619         * ToolStripDropDownMenu.cs
620         * ToolStripItem.cs
621         * ToolStripItemCollection.cs
622         * ToolStripMenuItem.cs
623         * ToolStripPanel.cs
624         * ToolStripSplitButton.cs
625         * ToolTip.cs
626         * TreeNode.cs
627         * TreeNodeCollection.cs
628         * TreeNodeMouseHoverEventArgs.cs
629         * TreeView.cs
630
631 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
632
633         * ContextMenu.cs: Add public method Show with alignment property to 2.0
634         stuff. Thanks aatdark for the patch. 
635
636 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
637
638         * GridItem.cs: Implement 2.0 Tag property.
639
640 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
641
642         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
643         count instead of Nodes.Length.  [Fixes bug #81448]
644
645 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
646
647         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
648         [Fixes bug #81506]
649
650 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
651         corcompare work: A - M
652         * BindingNavigator.cs
653         * Button.cs
654         * ButtonBase.cs
655         * CheckBox.cs
656         * Control.cs
657         * FlowLayoutPanel.cs
658         * Form.cs
659         * Label.cs
660         * LinkLabel.cs
661         * ListView.cs
662
663 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
664
665         * Application.cs: Give toolstrips a chance to process mnemonics.
666         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
667         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
668         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
669
670 2007-05-01  Jackson Harper  <jackson@ximian.com>
671
672         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
673         wider area too.
674         - Don't set the BoundsSpecified
675
676 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
677
678         * Application.cs: When using the toolstrip shortcut mechanism, allow the
679         message to pass through to a regular control if it hosted by a toolstrip.
680         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
681         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
682
683 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
684
685         * TextRenderer.cs: Use the flags argument when using the MeasureString
686         fallback algorithm.
687
688 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
689
690         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
691         the MDI menu item.  [Fixes bug #81483]
692
693 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
694
695         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
696         string. When setting Name to null, use zero-length string instead.
697
698 2007-04-29  Andreia Gaita  <avidigal@novell.com>
699
700         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
701         DeselectTab). Implement missing 2.0 TabPageCollection methods
702         (Add, ContainsKey, RemoveByKey, IndexOfKey)
703
704 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
705
706         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
707
708 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
709
710         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
711         Fixes bug #81479. Include details of exception when LoadFile fails.
712
713 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
714
715         * DrawListViewSubItemEventArgs.cs: Added missing setter
716
717 2007-04-27  Andreia Gaita  <avidigal@novell.com>
718
719         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
720         Hide methods (not complete). Implement missing 2.0 OnPopup event.
721
722 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
723
724         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
725         removed in ly last commit (it was breaking the Label edit feature).
726
727         * ThemeWin32Classic.cs: When drawing a ListViewItem use
728         StringAlignment.Near for LineAlignment (match .Net).
729
730 2007-04-27  Andreia Gaita  <avidigal@novell.com>
731
732         * TabControl.cs: Change SetTab so it adds the tabpage to the list
733         of controls if it isn't already there - was blowing up when doing
734         tabcontrol.TabPages[i]=new TabPage(). 
735         SetTab now does a replace by removing the page at the index. 
736         Add a new InsertTab method that inserts a page in a given index 
737         instead of replacing. 
738         Implements TabPageCollection.Insert(int, TabPage).
739
740 2007-04-27  Chris Toshok  <toshok@ximian.com>
741
742         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
743         internal handler that can be invoked from our subclasses.)  Also,
744         add a comment to PushData about how we need to fix it.
745
746         * CurrencyManager.cs: tons of changes here.  trying to get things
747         matching the behavior of .net wrt event orders (ItemChanged,
748         CurrentChanged, PositionChanged.)  I've implemented a private .net
749         symbol (ChangeRecordState) that appears in stack traces because
750         it's actually easier to do this than to effective inline all its
751         various behaviors at every call site.
752
753         * RelatedPropertyManager.cs: guard against an exception here by
754         not using parent.Current if the position is set to -1 (if the
755         parent datasource is cleared, for instance).
756
757         * Binding.cs: don't parse data in PushData (this might be wrong,
758         but it jives with MS's behavior.)  Also, don't call PushData when
759         we get a CurrentChanged event.
760
761 2007-04-27  Andreia Gaita  <avidigal@novell.com>
762
763         * WebBrowser.cs,
764           WebBrowserBase.cs,
765           WebBrowserSiteBase.cs,
766           HtmlDocument.cs: Added stubbed out classes, no real implementations 
767           yet.
768
769 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
770
771         * MainMenu.cs: In draw method without parameters call draw method with 
772         PaintEvent, another one (just rect) adjust rectangle and we dont need it
773         as Rect property is already adjusted. Fixes #80694.
774
775 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
776
777         * Application.cs: Need to handle keyboard menu deselection here.
778         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
779         navigation, allowing keyboard to work on X11.
780         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
781
782 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
783
784         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
785         menu bar. It fixes some drawing issues in menu bar.
786
787 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
788
789         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
790         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
791         when <alt> key is pressed.
792
793 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
794
795         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
796         example just set visible to false and make this prevent from other problems.
797         In SystrayAdd always remove pending expose. Fixes #81072.
798
799 2007-04-26  Marek Safar  <marek.safar@gmail.com>
800
801         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
802         value is set.
803
804 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
805
806         * ListView.cs: Added three missing 2.0 events and corresponding
807         EventHandlers. Added the OwnerDraw property.
808         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
809
810 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
811
812         * DrawListViewItemEventArgs.cs
813         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
814
815 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
816
817         * TextControl.cs: Fixed typo in constructor
818
819 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
820
821         * Application.cs: Create a shortcut path so that currently selected
822         MenuStrips can intercept keyboard events without having focus.
823         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
824         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
825         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
826         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
827         generate WM_SYSCOMMAND message in X11 for other platforms.
828         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
829         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
830         * ToolStripSplitButton.cs: Add DefaultItem property.
831         
832 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
833
834         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
835         fixes some menu draw problem on Windows with border diferent from default
836         it also fixes #81403.
837
838 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
839
840         * Form.cs: Refactor WndProc into separate methods, just like Control is
841           doing it.
842
843 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
844
845         * Control.cs: set_Text: move the call to the driver into a seperate
846           virtual method so that Form can override it.
847         * MaskedTextBox.cs: Corcompare fixes.
848         * Form.cs: Override UpdateWindowText and only update the styles if the
849           form has been shown (fixes #81405).
850
851 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
852
853         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
854         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
855         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
856         the form lost focus or another control was clicked.
857
858 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
859
860         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
861         fixed.
862
863 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
864
865         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
866           DrawListViewItemEventHandler.cs,
867           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
868           Added.
869         * X11Structs.cs: More ToString implementation.
870
871 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
872
873         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
874         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
875
876 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
877
878         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
879           handle.
880         * FormCollection.cs: Don't add a form if it's already in the
881           collection.
882         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
883           according to behaviour and MSDN. The ownerWin32 is the active
884           window at the moment when we call ShowDialog, not the context's
885           main form (the context's main form may open another form that opens
886           a form with ShowDialog, the win32 owner is the second form). Add
887           and remove forms to the Application.OpenForms in other places to
888           better match MS behaviour. Add an IsActive property that raises
889           On(de)Activated only if the active state has changed (we were
890           raising OnDeactivated before OnActivated while creating forms).
891         * Application.cs: Refactor Enabling/Disabling of windows for modal
892           dialog loops out to separate methods, and restore the thread
893           context when we quit the method. Fixes #81407.
894
895 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
896
897         * ListView.cs: In ItemControl.HandleClicks, also fire 
898         2.0 MouseClick or MouseDoubleClick events on the parent,
899         not only the Click/DoubleClick events.
900
901 2007-04-24  Andreia Gaita  <avidigal@novell.com>
902
903         * TableLayoutSettings.cs: 
904         - Added a GetControls method and a support structure to help the 
905         TypeConverter to enumerate the controls for     serialization. 
906         - Added a new serialization constructor. 
907         - Added a isSerialized flag initialized to true on the 
908         serialization constructor so that the TableLayoutPanel.LayoutSettings 
909         setter does not throw the designed NotSupportedOperation exception
910         when the object is built through deserialization.
911         - Implemented GetObjectData
912         
913         * TableLayoutPanel.cs: Added check on LayoutSettings.
914
915 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
916
917         * ListView.cs: Report Click and DoubleClick events to the parent
918         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
919         from breaking the click count state when using dialog forms (Control
920         reports the clicks in a similar fashion). In the previous behaviour
921         the last WM_LBUTTONUP message in a  double click was sent to the
922         ListView's form, instead of the ListView, which was breaking the click
923         count for it. Fixes #80387.
924
925 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
926
927         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
928
929 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
930
931         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
932         us from created dropdowns for menu items that do not have subitems.
933         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
934         Check HasDropDownItems before calling DropDown so a dropdown will not be
935         created if it isn't needed.
936
937 2007-04-24  Jackson Harper  <jackson@ximian.com>
938
939         * TreeView.cs: Set the first node to the selected node when we get
940         focus if there is no selected node.
941
942 2007-04-24  Andreia Gaita  <avidigal@novell.com>
943
944         * MimeIcon.cs: remove using blocks so that image streams are
945         not disposed of. Fixes #80151
946
947 2007-04-24  Jackson Harper  <jackson@ximian.com>
948
949         * TextBoxBase.cs: Fixup the height of textboxes when the control
950         is created.
951
952 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
953
954         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
955         for each ToolStripItem when the parent's RightToLeftChanged is called.
956
957 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
958
959         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
960           Fixes #80163.
961         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
962           property, so that the setter can be overriden too.
963         * TextBox.cs: Change GetContextMenuInternal() to use
964           ContextMenuInternal.
965
966 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
967
968         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
969           #81406.
970
971 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
972
973         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
974           #81406.
975
976 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
977
978         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
979           avoid duplicate work. Mostily skeleton code, it's not working at
980           all yet.
981
982 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
983
984         * NotifyIcon.cs : stub for MouseClick event
985         * Application.cs: stub for SetUnhandledExceptionMode
986
987 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
988
989         * BindingNavigator.cs : Initial (partial) implementation
990
991 2007-04-23  Jackson Harper  <jackson@ximian.com>
992
993         * TreeView.cs: Do not create the treeview's handle when setting
994         the scroll position.
995         - ExpandAll needs to compute the scrollbars so it knows which
996         position to set the bar too.
997         * TreeNode.cs: 
998         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
999
1000 2007-04-23  Jackson Harper  <jackson@ximian.com>
1001
1002         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
1003         key. Fixes #81408.
1004
1005 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
1006
1007         * ToolStripItem.cs: Make GetImageSize internal.
1008         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
1009         need to draw an item.  Fixes a reported issue where images on menus
1010         that were not 16x16 were drawing incorrectly.
1011
1012 2007-04-21  Miguel de Icaza  <miguel@novell.com>
1013
1014         * Padding.cs: Use the converter, fixes the resgen2 issue with
1015         XMLNotePad. 
1016
1017 2007-04-21  Jackson Harper  <jackson@ximian.com>
1018
1019         * TreeView.cs: Dont try to unhighlight the selected node if there
1020         isn't a selected node.
1021
1022 2007-04-21  Jackson Harper  <jackson@ximian.com>
1023
1024         * UpDownBase.cs:
1025         * TextBoxBase.cs:
1026         * ListView.cs:
1027         * ListBox.cs:
1028         * TreeView.cs: Use the InternalBorderStyle property to set the
1029         initial border style, this forces the client rectangle to be sized
1030         correctly.
1031
1032 2007-04-20  Jackson Harper  <jackson@ximian.com>
1033
1034         * TreeView.cs: Simplify scrolling to the last node after expanding
1035         all.
1036         - Fix some off by ones with setting the bottom.
1037
1038 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1039
1040         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
1041         that.  We were incorrectly doing it the other way around.  Also,
1042         update ClientSize if we change the BorderStyle before the control
1043         is created.
1044
1045 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1046
1047         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1048         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1049         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
1050         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1051         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1052         Caption to CaptionHeight.
1053         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
1054         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
1055         and FixedFrameBorderSize to return value from current XplatUI driver.
1056         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
1057         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
1058         and FixedFrameBorderSize using win32 API. Renamed Caption to
1059         CaptionHeight.
1060         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
1061         * SystemInformation.cs: Fixed typo in BorderSize.
1062
1063 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1064
1065         * XplatUI.cs: Added MenuAccessKeysUnderlined.
1066         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
1067         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
1068         returning false.
1069         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
1070         value from XplatUI driver.
1071         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
1072         SystemParametersInfo.
1073         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
1074         override.
1075         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
1076         returning false.
1077
1078 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1079
1080         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
1081
1082 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1083
1084         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
1085
1086 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1087
1088         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
1089         MenuStrips that contain ToolStripSeparators.
1090
1091 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1092
1093         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
1094           DefineStdCursorBitmap.
1095         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
1096           has been created off a standard cursor. This is used to get a
1097           bitmap of the standard cursor when Draw or DrawStretched is called
1098           in order to draw the cursor.
1099         * X11Structs.cs: Added XcursorImage and XcursorImages.
1100         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
1101           DefineStdCursorBitmap.
1102         * Cursors.cs: Update all relevant creations of Cursor to use the new
1103           internal constructor.
1104
1105 2007-04-19  Jackson Harper  <jackson@ximian.com>
1106
1107         * TextBox.cs: Move the has_been_focused into the base control, so
1108         some of the text adding methods can manipulate it (probably time
1109         for a better name for this flag too).
1110         - Call a new version of selectall that doesn't scroll
1111         * TextBoxBase.cs: When we append text, if the document is empty,
1112         don't scroll.  If the document has text already, we scroll to the
1113         end of the appended text.
1114         - When the text is changed, we reset the has_been_focused, so the
1115         next time the control gets focused, all the text is selected.
1116
1117 2007-04-19  Jackson Harper  <jackson@ximian.com>
1118
1119         * TextControl.cs: Move the margins to the document, add a method
1120         so the margin sizes can be updated.
1121         * TextBoxBase.cs: When the border style is changed, update the
1122         border sizes.
1123
1124 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
1125
1126         * Control.cs: Respect DefaultPadding.
1127         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
1128         padding into account.
1129         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
1130
1131 2007-04-19  Jackson Harper  <jackson@ximian.com>
1132
1133         * TextControl.cs: Oops, we need to use the ClientRect not the
1134         bounds here.
1135
1136 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1137
1138         * ListView.cs: In ItemControl.ItemsMouseDown, take into
1139         account the double clicks when CheckBoxes are used and
1140         the pointer is inside the checkbox. Fixes part of #81191.
1141
1142 2007-04-18  Jackson Harper  <jackson@ximian.com>
1143
1144         * TextControl.cs: Pressing the end key shouldn't move the caret
1145         past the line ending.
1146         * TextBoxBase.cs: We can still delete if we are in the line
1147         ending and the combine will just kill the existing line ending.
1148
1149 2007-04-18  Jackson Harper  <jackson@ximian.com>
1150
1151         * TextControl.cs: We can't move lines, then invalidate their
1152         bounds, we need to get the old bounds and combine that with the
1153         new bounds.
1154         * TextBoxBase.cs: Before combining two lines for a delete, we need
1155         to invalidate the area of the old line, since that will be moved
1156         in the combine operation.
1157
1158 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
1159
1160         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
1161         with transparent background. Fixes #80482.
1162
1163 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
1164
1165         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
1166         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
1167         [Fixes bug #81391]
1168
1169 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1170
1171         * CreateParams.cs: Add a couple of helper methods and do a less string
1172           concatenation in ToString.
1173         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
1174           overload that takes a Control parameter, since this method may be
1175           called before a control is assigned to the hwnd (from
1176           CreateWindow), and update CreateWindow to use the new overload. In
1177           GetMenuOrigin subtract the title bar from the y position if the
1178           form has a window manager (since we're painting it and not X).
1179         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
1180           CreateParams to calculate the origin (since border sizes may vary).
1181           In ScreenToMenu only subtract the title height if we actually have
1182           a title.
1183         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
1184           mdi children never have menus of themselves.
1185         * InternalWindowManager.cs: Implement menu handling like form does.
1186           Added GetMenuOrigin to calculate the menu origin, can't use the
1187           CreateParams from the form like normally since it's lying.
1188         * Hwnd.cs: Implement GetBorderSize better (in the sense more
1189           windows-like) and add Inflate and comparison operators to the
1190           Borders type. When calculating MenuOrigin and it's a form with a
1191           window manager, use the window manager to calculate it.
1192
1193 2007-04-17  Chris Toshok  <toshok@ximian.com>
1194
1195         * Control.cs (CreateControl): turns out in 2.0 we don't need this
1196         OnBindingContextChanged thing here.  It's only generated from
1197         ContainerControl.OnCreateControl.  Fixes a newly written unit test
1198         - BindingTest.BindingContextChangedTest4.
1199         
1200 2007-04-17  Jackson Harper  <jackson@ximian.com>
1201
1202         * ScrollBar.cs: When setting values, make sure the current
1203         position stays within the new values range.
1204
1205 2007-04-17  Chris Toshok  <toshok@ximian.com>
1206
1207         * Control.cs (CreateControl): talk about a bizarre corner case.
1208         Don't emit OnBindingContextChanged here if we're a parentless
1209         control (i.e. if we're a form.).  Fixes
1210         BindingTest.BindingContextChangedTest2.
1211
1212 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1213
1214         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
1215         from win32. Fixes #81255.
1216
1217 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1218
1219         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
1220         already present in CalculateButtonTextAndImageLayout.
1221
1222 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1223
1224         * XplatUIX11.cs: When setting min/max size for a window we need to
1225           translate the coordinates to x coordinates. Create an overload of
1226           SetWindowMinMax that takes a CreateParams handling this, and change
1227           SetWMStyles to call this function (can't use Control.FromHandle in
1228           the SetWindowMinMax to get the control/CreateParams from the handle
1229           because the handle might not have been assigned to the control
1230           yet). Fixes #81371.
1231
1232 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1233
1234         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
1235         if StateImageList is non-null and it has less than two items (match MS
1236         behaviour). Also, in HandleNavKeys handle the Space key, calling
1237         the new ToggleItemsCheckState method, which tries to change the
1238         checked state of the selected items. Fixes part of #81191.
1239
1240 2007-04-16  Jackson Harper  <jackson@ximian.com>
1241
1242         * RichTextBox.cs: namespace cleanup.
1243
1244 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1245
1246         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
1247
1248 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1249
1250         [Fixes #79447]
1251         * Control.cs: Call invalidate in set_Region.
1252
1253         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
1254         it dont works here.
1255
1256 2007-04-16  Jackson Harper  <jackson@ximian.com>
1257
1258         * TextBoxBase.cs: When enter is pressed, we need to update all
1259         lines below the current.
1260
1261 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
1262
1263         * MdiClient.cs: Implement implicit menu merging for MDI
1264         children.  When a child form is active, if it has a menustrip
1265         and the parent form has a MainMenuStrip, automatically merge
1266         the menus.
1267
1268 2007-04-15  Andreia Gaita  <avidigal@novell.com>
1269
1270         * TabControl.cs: Refactored sizing methods to not repeat
1271         code all over the place. Tab bounds are now calculated
1272         as if alignment is top and single line, and only when 
1273         setting the bounds are the positions adjusted according
1274         to alignment. Replaced hardcoded positions, spacings and
1275         paddings by getting the values the ThemeEngine. 
1276         Fixes #79619.
1277         
1278         * Theme.cs: Change TabControl properties and methods so
1279         that all start with TabControl*. Added more properties
1280         to help remove hardcoded values on tabcontrol.
1281         Add CPDrawBorder3D declaration so the Theming classes
1282         can access it.
1283         
1284         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
1285
1286         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
1287         on the Theming namespace, and call the appropriate methods here.
1288         Change CPDrawBorder3D to public.
1289
1290 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1291
1292         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
1293         the control after firing the OnMouseUp event, instead of sending
1294         the message before the mentioned event. This is so we can match the
1295         MS behaviour. Fixes part of #80385.
1296
1297 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
1300         RightToLeft property.
1301
1302 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1303
1304         * ToolStrip.cs: Add properties and internal methods to support merging.
1305         * ToolStripItem.cs: Add MergeAction and MergeIndex.
1306         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
1307         not trigger reparenting or layouts.
1308         * ToolStripManager.cs: Add Merge and RevertMerge methods.
1309         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
1310         is hosting the overflow menu.
1311
1312 2007-04-13  Jackson Harper  <jackson@ximian.com>
1313
1314         * TextControl.cs: Set the line ending correctly for the first
1315         inserted line.
1316
1317 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
1318
1319         * Theme.cs: Update GetMethod to get the new definition for 
1320         KnownColors.Update (and fix theme color updates).
1321
1322 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
1323
1324         * MessageBox.cs: Fix some test and button position.
1325
1326 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327
1328         * Form.cs: Consider the implicit controls in
1329         GetRealChildAtPoint. We need it since this method
1330         is called on Form when handling the some messages in
1331         WndProc, and need to consider those implicit ones too.
1332         Fixes #80385.
1333
1334 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
1335
1336         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
1337         if there are no ShortcutKeys set.
1338         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
1339         set, use it when painting.
1340
1341 2007-04-12  Jackson Harper  <jackson@ximian.com>
1342
1343         * TextControl.cs: Fix some off-by-one issues in line duplication
1344         and insertion in the undo manager. Also, overwrite the first tag
1345         of a line on insert, if it is just a zero lengthed tag. This
1346         prevents us from getting an extra stranded tag at the beginning of
1347         the first line.
1348
1349 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
1350
1351         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
1352         to calculated proper size including when handle was not created yet.
1353
1354 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1355
1356         * MdiWindowManager.cs: When moving a form, allow the form to be moved
1357           when the mouse is outside of it's parent's client rectangle. Fixes
1358           #79982 (take 3, part 2).
1359
1360 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1361
1362         * X11Structs.cs: Add a few ToString() overrides.
1363         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
1364           the window location in a window-manager independent way. Reworked
1365           FrameExtents, it now actually works. Reworked AddConfigureNotify
1366           and ReparentNotify handling to use GetTopLevelWindowLocation
1367           instead of the earlier, more hacky solution. Reworked SetWMStyles,
1368           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
1369           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
1370           for all other windows (fixes #81281 part 1), a toolwindow is hidden
1371           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
1372           and generally refactored to do as few calculations as possible
1373           inside the lock.
1374
1375 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
1376
1377         * Theme.cs: Change "reflective-contract" between MWF and SD to 
1378         minimize # of calls, avoid Color serialization and avoid updating 
1379         every "known colors" each time a single one is updated.
1380
1381 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1382
1383         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
1384         when not readonly and the text is explicitly set. Code style updates.
1385         * DataGridTableStyle.cs: Removed extra line.
1386         * DataGrid.cs: Code style updates. Removed extra whitespace.
1387         * DataGridColumnStyle.cs: Code style updates. Removed extra 
1388         whitespace.
1389
1390 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1391
1392         * XplatUIX11.cs: Added comment that "fixes" #80021.
1393
1394 2007-04-09  Jackson Harper  <jackson@ximian.com>
1395
1396         * TextControl.cs: We don't need this -1 on the line count anymore.
1397
1398 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1399
1400         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
1401         entered value to underlying type, and convert it back to a string to
1402         apply formatting. Modified GetFormattedValue to use TypeConverter
1403         if available.
1404
1405 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
1406
1407         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
1408         Use SubItems property when we want to ensure there's at least one
1409         subitem. Modified SubItems property to ensure there's always at least
1410         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
1411         the NRE's reported by MS.
1412
1413 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
1414
1415         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
1416         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
1417         Spaces to tabs. Removed extra tabs.
1418
1419 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
1420
1421         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1422         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
1423
1424 2007-04-06  Jackson Harper  <jackson@ximian.com>
1425
1426         * TextBoxBase.cs: When a delete removes a line, recalculate all
1427         lines below that line (they need to get offsets setup correctly)
1428         and invalidate.
1429
1430 2007-04-05  Jackson Harper  <jackson@ximian.com>
1431
1432         * TextControl.cs: We need to invalidate across the width of the
1433         document when we are invalidating multiple lines.
1434         * TextBoxBase.cs: Don't delete into the line ending.
1435
1436 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1437
1438         * ListView.cs: Restore the check for the MouseHover event
1439         in ListView. It looks like the ListView fires more than one MouseHover
1440         event when HoverSelection is true  _only_ in weird-corner scenarios, but
1441         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
1442         event.
1443
1444 2007-04-05  Mike Kestner  <mkestner@novell.com>
1445
1446         * ListView.cs : raise MouseDown before updating selection.
1447         [Fixes #80373 tab 1&3]
1448
1449 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1450
1451         * ToolStripRenderer.cs: Add static method to mirror image.
1452         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
1453         and RightToLeftAutoMirrorImage.
1454         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
1455
1456 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1457
1458         * ToolStripSplitStackLayout.cs: Support Alignment property.
1459         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
1460
1461 2007-04-05  Jackson Harper  <jackson@ximian.com>
1462
1463         * TextControl.cs: Move around the line endings when crossing line
1464         boundaries.
1465         - When combining lines, strip the ending text off the first line.
1466
1467 2007-04-05  Jackson Harper  <jackson@ximian.com>
1468
1469         * TextControl.cs:
1470         * TextBoxBase.cs: Try to never move the cursor into the line
1471         ending.
1472         
1473 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1474
1475         * ToolStripItem.cs: Make sure we aren't firing mouse events when
1476         the item is disabled.  Also add a few missing methods.
1477
1478 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1479
1480         * ListView.cs: We don't need the MouseEnter/MouseLeave check
1481         to fire just one MouseHover event when HoverSelection is true, since
1482         .Net does fire more than one MouseHover event in that scenario. Also,
1483         fix the selection in HoverSelection, by invoking UpdateMultiSelect
1484         if MultiSelect is true, instead of only setting ListViewItem.Selected.
1485         Finally, we need to reset the Hover logic in MouseMove, even when we
1486         don't have a selected item.
1487
1488 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1489
1490         * ToolStrip.cs: Add several missing methods, properties, and events.
1491
1492 2007-04-04  Chris Toshok  <toshok@ximian.com>
1493
1494         * DataGridTextBoxColumn.cs: set the bounds of the text box to
1495         (0,0,0,0) in Commit, as MS does.
1496
1497         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
1498         make sure we set CurrentRow on a row header click *before* calling
1499         Select.  This moves the current cell (and the textbox) to the new
1500         row.  The call to Select then hides the textbox, giving us the
1501         correct behavior.  Fixes #80362.
1502
1503         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
1504         (ListChangedHandler): reorder the position/current changed events,
1505         and call UpdateIsBinding in the ItemAdded case.
1506
1507         * GridColumnStylesCollection.cs: add some columns events, one of
1508         which raises the CollectionChanged event.
1509
1510 2007-04-04  Jackson Harper  <jackson@ximian.com>
1511
1512         * TextControl.cs: When we delete multiple selection lines
1513         invalidate the selection area, don't need to do that for single
1514         lines because the final update view will handle it.
1515
1516 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1517
1518         * Control.cs: When we CreateControl, we need to also create all of the
1519         control's children.  The child's OnLoad must also fire before the parent's
1520         OnLoad.  Fixes the toolbox size in PDN.
1521
1522 2007-04-04  Jackson Harper  <jackson@ximian.com>
1523
1524         * TextBoxBase.cs: When the user presses enter, insert a line
1525         ending into the text. (Maybe this would be a good spot for
1526         Environment.NewLine).
1527         * TextControl.cs: Remove undo manager hack, line endings get
1528         inserted properly now.
1529         
1530 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1531
1532         * MenuAPI.cs: 
1533         - Remove unneeded parameters in UpdateCursor.
1534         - Fix UpdateCursor to check if menu is active.
1535         - Call UpdateCursor when menu deactivate my click.
1536         [Fixes remaining issues from #80410]
1537
1538 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1539
1540         * Control.cs: GetRealChildAtPoint method added, it make an
1541         recursive child control search for the point. 
1542
1543         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
1544         menu.
1545
1546         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
1547
1548 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1549
1550         * Form.cs: Fix mouse position when send back mouse event after closes
1551         menu.
1552
1553 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1554
1555         * Form.cs: Simplify the BUTTONDOWN for active tracker.
1556
1557 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1558
1559         * Control.cs: Fix an issue where if a user resized a control inside
1560         a sizing method like OnResize, we would overwrite their explicit
1561         value.  Also, only call DefaultSize once in the constructor instead
1562         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
1563         nothing actually changed.
1564
1565 2007-04-03  Jackson Harper  <jackson@ximian.com>
1566
1567         * TextControl.cs: Don't attempt to copy text for lines with no
1568         text in them (technically this shouldn't happen, but we aren't
1569         always inserting line endings when we should be).
1570
1571 2007-04-03  Jackson Harper  <jackson@ximian.com>
1572
1573         * TextBoxBase.cs: Calculate the scrollbars before calculating the
1574         document, because this sets some of the document size properties
1575         that are needed.
1576
1577 2007-04-03  Jackson Harper  <jackson@ximian.com>
1578
1579         * TextBoxBase.cs: We need to calculate maximums even if this is
1580         not a multiline control, because the maxs are used for scrolling.
1581         - Display the caret after doing a page up/down, we need to
1582         manually display it because a proper CaretMoved event isn't
1583         triggered (this is because of the way the math is done to
1584         determine how far to scroll).
1585
1586 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1587
1588         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
1589         (ToolBar was relying on SetBoundsCore to default the values sent 
1590         base off of BoundsSpecified.)
1591
1592 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1593
1594         * DateTimePicker.cs: Change Text so that when a null value or empty
1595           string is assigned to the test we always raise ValueChanged and
1596           TextChanged (earlier implementation would only raise ValueChanged
1597           if the current date value was different from DateTime.Now).
1598
1599 2007-04-03  Andreia Gaita <avidigal@novell.com> 
1600
1601         * ButtonBase: Call update after invalidation, fixes #80194
1602
1603 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1604
1605         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
1606           #79335.
1607
1608 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1609
1610         * XplatUIX11.cs: SetWMStyles: If the control is a form with
1611           FormBorderStyle = None, don't give the window any decorations.
1612           Fixes #81276.
1613
1614 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1615
1616         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1617         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
1618           to check for is a mix of several styles (such as WS_CAPTION for
1619           instance).
1620         * Control.cs: Don't paint an area bigger than the client area when
1621           painting the background colour. Add an internal GetCreateParams.
1622           Update calls to XplatUI.CalculateWindowRect due to API change.
1623         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
1624           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
1625           the size if it hasn't been handled by any windows. When creating
1626           and moving windows, X wants the location of the entire window, but
1627           the size of the client window, so add
1628           TranslateClientRectangleToXClientRectangle,
1629           TranslateWindowSizeToXWindowSIze and
1630           TranslatedXWindowSizeToWindowSize to cope with this, and call them
1631           before every window creation and move. Update CalculateWIndowRect
1632           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
1633           In AddConfigureNotify don't do anything if the hwnd is a zombie
1634           (fixes the BadWindow we were getting while running the tests),
1635           always calculate the offsets when it's a parentless window, not
1636           only when reparented, and translate the window size, since we're
1637           getting the client size of the whole window, excluding entire
1638           window.
1639         * Theme.cs: Added BorderSizableSize.
1640         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1641           anymore. Update calls to XplatUI.CalculateWindowRect due to API
1642           chang
1643         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
1644           change. Fake the window styles here instead of in XplatUIWin32 so
1645           that all back-ends get the same window styles (and it's Form that's
1646           deciding when to use wm, not the Win32 backend anyways)
1647         * Hwnd.cs: Completely reworked GetWindowRectangle and
1648           GetClientRectangle - they are now passed a CreateParams and they
1649           only use Style and ExStyle to determine the rectangles (they should
1650           now work just like Win32AdjustWindowRectEx - though quite a few
1651           special cases are probably missing). They should also be 100%
1652           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
1653           == rect), and all numbers (borders, menu sizes) are taken from the
1654           current theme. Added a GetBorders helper function that will return
1655           the borders for any given CreateParams (including captions and
1656           menus), and GetBorderSize that returns the given border size only.
1657         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1658           Hwnd.GetClientRectangle.
1659
1660 2007-04-02  Chris Toshok  <toshok@ximian.com>
1661
1662         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
1663         logic between the values we present to the user and the values
1664         which are stored in the column's property.  Also, don't call
1665         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
1666
1667 2007-04-02  Jackson Harper  <jackson@ximian.com>
1668
1669         * TextBoxBase.cs: Scroll faster!
1670
1671 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1672
1673         * StatusStrip.cs: Layout fixes for PDN.
1674         * ToolStrip.cs: Set item's available to true, and placement to main when
1675         added.
1676         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
1677         changing in setter before doing any work, add InternalVisible.
1678         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
1679         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1680         infinite loop.
1681
1682 2007-04-02  Jackson Harper  <jackson@ximian.com>
1683
1684         * TextBox.cs: LBUTTON does not make the textbox select all of it's
1685         text on focus.
1686
1687 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1688
1689         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
1690           Makes ToolStripComboBoxes show up again.
1691
1692 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1693
1694         * ListView.cs: Add a hover_pending field in ListView
1695         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
1696         cycle (we are resetting the MouseHover logic in XplatUI
1697         to handle HoverSelection). Fixes #80429.
1698
1699 2007-04-02  Jackson Harper  <jackson@ximian.com>
1700
1701         * TextControl.cs: Make sure the attributes get set on the last
1702         tag.
1703         - Still have to do the end tag if we have stepped all the ways to
1704         the end.
1705
1706 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
1707
1708         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
1709         on an internal libgdiplus call when the information is already 
1710         available via the public API.
1711
1712 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1713
1714         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
1715           control is removed from a control collecftion.
1716         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
1717           Fixes FormPropertyTest (failed on rare occasions).
1718         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
1719           of Win32SetParent (when changing from no parent to a parent it
1720           might add the new parent's location in screen coordinates to this
1721           window's location).
1722         * Form.cs: Rework ChangingParent once again, now the handle is
1723           recreated whenever a FormWindowManager is added or removed (that is
1724           whenever a normal form is parented or abandoned). Also change
1725           CreateParams so that all non-toplevel windows always get the
1726           specified sice (StartupPosition is never considered for
1727           non-TopLevel forms).
1728         * ContainerControl.cs: Add ChildControlRemoved, the container control
1729           needs to be notified when a control is removed from it's
1730           collection, in the case the removed control is the active control.
1731
1732 2007-04-02  Jackson Harper  <jackson@ximian.com>
1733
1734         * RichTextBox.cs: Use the new methods for setting the font and
1735         color, these methods set the specified attribute without
1736         overriding the other attributes.
1737
1738 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1739
1740         * ToolStripPanel.cs: Fixes for better layouts in PDN.
1741
1742 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
1743
1744         * TextBox.cs: Added internal ChangeBackColor method to special-case
1745         Color.Empty. Added check for invalid ScrollBars value.
1746         * TextBoxBase.cs: Added internal ChangeBackColor method.
1747         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
1748         internal ChangeBackColor method to special-case Color.Empty. Added
1749         check for invalid ScrollBars value.
1750
1751 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
1752
1753         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
1754
1755 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
1756
1757         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
1758         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
1759         [Based on submitted patch from Olivier Duff.]
1760
1761 2007-03-30  Jackson Harper  <jackson@ximian.com>
1762
1763         * TextBox.cs: Only select all on initial focus if the user has not
1764         specified a selection area.
1765
1766 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
1767
1768         * UserControl.cs: Override CreateParams.
1769
1770 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1771
1772         [ Fixes #80995 ]
1773
1774         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1775         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
1776           check for is a mix of several styles (such as WS_CAPTION for instance).
1777         * Control.cs: Don't paint an area bigger than the client area when painting
1778           the background colour. Add an internal GetCreateParams. Update calls to
1779           XplatUI.CalculateWindowRect due to API change.
1780         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
1781           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
1782           hasn't been handled by any windows. When creating and moving windows, X
1783           wants the location of the entire window, but the size of the client
1784           window, so add TranslateClientRectangleToXClientRectangle,
1785           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
1786           to cope with this, and call them before every window creation and move.
1787           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
1788           removing DeriveStyles). In AddConfigureNotify don't do anything if the
1789           hwnd is a zombie (fixes the BadWindow we were getting while running the
1790           tests), always calculate the offsets when it's a parentless window, not
1791           only when reparented, and translate the window size, since we're getting
1792           the client size of the whole window, excluding entire window.
1793         * Theme.cs: Added BorderSizableSize.
1794         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1795           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
1796         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
1797           Fake the window styles here instead of in XplatUIWin32 so that all
1798           back-ends get the same window styles (and it's Form that's deciding when
1799           to use wm, not the Win32 backend anyways)
1800         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
1801           they are now passed a CreateParams and they only use Style and ExStyle
1802           to determine the rectangles (they should now work just like
1803           Win32AdjustWindowRectEx - though quite a few special cases are probably
1804           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
1805           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
1806           sizes) are taken from the current theme. Added a GetBorders helper
1807           function that will return the borders for any given CreateParams
1808           (including captions and menus), and GetBorderSize that returns the given
1809           border size only.
1810         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1811           Hwnd.GetClientRectangle.
1812
1813 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1814
1815         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
1816           layout of the mdi children is handled by CreateParams. Fixes
1817           #79964,
1818
1819 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1820
1821         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
1822         processed.
1823
1824         * Form.cs: When active tracker mouse down is not processed, send event 
1825         back to control inside mouse position. [Fixes #81227]
1826
1827 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
1828
1829         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
1830         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
1831         stealing focus from the active form on Windows.  (Control will be made
1832         visible in ShowWindow.)
1833
1834 2007-03-29  Mike Kestner  <mkestner@novell.com>
1835
1836         * ImageList.cs : add internal Changed event.
1837         * ListView.cs : hook up to StateImageList.Changed to perform
1838         invalidations when the the state icon list changes. [Fixes #81191]
1839
1840 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
1841
1842         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
1843         to prevent tooltips from stealing focus from the active form on Windows.
1844
1845 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1846
1847         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
1848
1849         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
1850
1851 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1852
1853         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
1854         balloons.
1855
1856 2007-03-29  Jackson Harper  <jackson@ximian.com>
1857
1858         * TextControl.cs: When deleting text from non multiline textboxes,
1859         we need to update the entire document, because line offsets will
1860         be shifting.
1861
1862 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
1863
1864         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
1865         added to theme, now we can create themes that uses diferent notify engines
1866         like notification-daemon from galago project or growl for Mac OS.
1867
1868 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
1869
1870         * NotifyIcon.cs: Prevent Balloon to show in task bar.
1871
1872 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
1873
1874         * XplatUIX11.cs: Prevent system to open more than one balloon.
1875
1876         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
1877         some compiler warning messages.
1878
1879 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
1880
1881         [Fixes #79149]
1882
1883         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
1884
1885         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
1886         implemented, this methods is used by NotifyIcon.BalloonWindow class.
1887
1888         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
1889         systems.
1890
1891 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1892
1893         * ListViewItem.cs: Forgot to make Invalidate internal.
1894
1895 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1896
1897         * ListView.cs: Add a InvalidateSelection method to
1898         invalidate methods which are currently selected, and call
1899         it when setting FullRowSelect and HideSelection, instead of
1900         calling Redraw.
1901
1902 2007-03-28  Chris Toshok  <toshok@ximian.com>
1903
1904         * XplatUIX11.cs (UnmapWindow): reindent this block.
1905
1906         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
1907         the selection_start if we're moving the selection (that is, not
1908         extending it). Fixes bug #80461.
1909
1910 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1911
1912         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
1913         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
1914         create private ControlCollection.
1915
1916 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1917
1918         * Control.cs: We need to call OnVisibleChanged for our implicit
1919         children as well as our normal children.  Fixes scrollbars in
1920         comboboxes not showing up.
1921
1922 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1923
1924         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
1925         the check for IsHandleCreated first.  The check in CreateHandle is not
1926         good enough because CreateHandle can be overriden, and the override 
1927         should not be called if the handle is already created.
1928
1929 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
1930
1931         * ToolStrip.cs: Remove MonoTODO for tooltips.
1932         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
1933         * ToolStripContainer.cs: Add custom ControlCollection class.
1934         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
1935         * ToolStripDropDown.cs: Add some missing properties/methods.
1936         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
1937         * ToolStripItem.cs: Remove MonoTODO for tooltips.
1938         * ToolStripManager.cs: Add IsShortcutDefined.
1939         * ToolStripOverflow.cs: Override LayoutEngine.
1940         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
1941         * ToolStripSeparator.cs: Add ImageKey.
1942
1943 2007-03-28  Jackson Harper  <jackson@ximian.com>
1944
1945         * TextControl.cs: If a char delete removes a line ending, we need
1946         to update the ending style.
1947         - Make sure the line ending calcs get called.
1948
1949 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1950
1951         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
1952           it was making the new code not work. Fixed a typo in the new code
1953           as well. Fixes #79826.
1954
1955 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1956
1957         * XplatUIWin32.cs:
1958         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
1959         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
1960         - SystrayBalloon method implemented.
1961         [Add support for notifyicon balloon on win32, #79149]
1962
1963 2007-03-27  Mike Kestner  <mkestner@novell.com>
1964
1965         * ThemeWin32Classic.cs : update StateImageList selection to mirror
1966         the ms behavior when only one image is added to the list.
1967         [Fixes #81191]
1968
1969 2007-03-27  Jackson Harper  <jackson@ximian.com>
1970
1971         * TextControl.cs: Improvements to non multiline line ending
1972         drawing/measuing.
1973
1974 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1975
1976         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
1977
1978 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1979
1980         * NotifyIcon.cs: 
1981         - Balloon message handling added.
1982         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
1983
1984         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1985         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
1986         to SystrayBalloon to me like other Systray method, also a
1987         handle parameter added.
1988
1989 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1990
1991         * ListView.cs: Show scrollbars even when items.Count == 0
1992         but the columns Width is bigger than the ListView.Width.
1993         Also, when columns.Count == 0 set layout_wd and layout_ht
1994         to the ClientRectangle values, so we don't show any scrollbar
1995         in that case.
1996
1997 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
1998
1999         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
2000
2001 2007-03-27  Jackson Harper  <jackson@ximian.com>
2002
2003         * RichTextBox.cs: The RTF library decodes the text properly for us
2004         now.
2005
2006 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2007
2008         * ListView.cs: Display HeaderControl even when columns.Count == 0.
2009         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
2010         ListView header (HeaderControl), instead of Control.BackColor.
2011
2012 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2013
2014         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
2015         Fixes tab control issues where controls would not show up because they
2016         never received their OnVisibleChanged call.
2017
2018 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2019
2020         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
2021         BalloonTipShown).
2022
2023 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2024
2025         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
2026         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
2027         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
2028         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
2029         the handle.  Fix WindowState by using the internal variable until we are 
2030         sure that we've been shown.
2031         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
2032         max or min.
2033         [Fixes bug #81198]
2034
2035 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2036
2037         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
2038           (at least borders). Fixes #79386 on Linux (with a small difference
2039           in behaviour: when trying to resize a caption-less window metacity
2040           shows the sysmenu. Resizing is still possible though).
2041         * XplatUIWin32.cs: When setting window styles send request an extra
2042           WM_NCCALCSIZE when it's a form without title (due to no text and no
2043           caption), since Win32 seems to calculate it wrong the first time we
2044           get the message, though the second time things work as they should.
2045         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
2046           newly reparented window might show up unparented. Update
2047           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
2048           there's no title text. Fixes #79386.
2049
2050 2007-03-27  Mike Kestner  <mkestner@novell.com>
2051
2052         * ListBox.cs : don't perform invalidations if the handle hasn't been
2053         created.  [Fixes #80753]
2054
2055 2007-03-27  Mike Kestner  <mkestner@novell.com>
2056
2057         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
2058         [Fixes #80428]
2059
2060 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2061
2062         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
2063         needed to implement Balloon.
2064
2065 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2066
2067         * ListViewItem.cs: In the constructors that take
2068         an array of strings, don't use ListViewSubItemCollection.AddRange
2069         method to add items, since we need to have a different behaviour (in
2070         the constructors we add an item for each null string, opposed to
2071         the behaviour of AddRange, which adds nothing).
2072
2073 2007-03-26  Andreia Gaita  <avidigal@novell.com>
2074
2075         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
2076
2077 2007-03-26  Jackson Harper  <jackson@ximian.com>
2078
2079         * TextControl.cs: Draw and measure line endings when in non
2080         multiline mode.
2081         - When searching the text, count the end of the last line as a
2082         word boundary.
2083
2084 2007-03-26  Jackson Harper  <jackson@ximian.com>
2085
2086         * RichTextBox.cs: The selection_start and selection_end don't
2087         really track the correct tags for the selection. So we'll manually
2088         compute the correct tag here.
2089
2090 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2091
2092         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
2093           and Continuous styles. Fixes #79469.
2094
2095 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2096
2097         * ToolStrip.cs: Implement Tooltips.
2098         * ToolStripItem.cs: Create internal method for determining tooltip.
2099
2100 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2101
2102         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
2103
2104 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2105
2106         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
2107         it prevents a problem thak keeps icon visible after application 
2108         closes on win32.
2109
2110 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2111
2112         * NotifyIcon.cs: Balloon properties and methods created.
2113
2114         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2115         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
2116
2117 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
2118
2119         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
2120
2121 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2122
2123         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
2124         parameter indicates which aspects were explicit/user-set.
2125         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
2126
2127 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2128
2129         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
2130         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
2131         SmallChange, and Value (2.0).
2132         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
2133
2134 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2135
2136         * ListView.cs: Always set item_control.Width in LayoutDetails
2137         if View is Details. Setting it later in CalculateScrollBars
2138         in a not-so-corner scenario (the sum of columns width is
2139         not bigger than the ListView width when handle is created, and then
2140         that sum gets bigger by increasing the width of the columns)
2141         causes a very weird recursion path (which shouldn't be happening,
2142         since header_control sets it in CalculateScrollBars too). This bug
2143         appeared after Chris' fixes for handle created issues, so probably
2144         it's related to some handle-creation time.
2145
2146 2007-03-23  Chris Toshok  <toshok@ximian.com>
2147
2148         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
2149         case where there's an add row, just so we don't end up in a case
2150         where it's not displayed (this happens when the row is partially
2151         obscured).  Fixes bug #79574.
2152
2153 2007-03-23  Jackson Harper  <jackson@ximian.com>
2154
2155         * TextControl.cs:
2156         * TextBoxBase.cs:
2157         * RichTextBox.cs: Preserve line endings in the lines text buffer,
2158         also added an enum that represents the line ending type. 
2159
2160 2007-03-23  Andreia Gaita  <avidigal@novell.com>
2161
2162         * NumericUpDown.cs: Fix logic so Text and Value properties are not
2163         messed with in every method call, but only from DownButton, 
2164         UpButton, UpdateEditText() and ValidateText. Fixes #80346
2165
2166 2007-03-23  Chris Toshok  <toshok@ximian.com>
2167
2168         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
2169         format objects if the format spec is "".  Fixes bug #80889.
2170
2171 2007-03-22  Miguel de Icaza  <miguel@novell.com>
2172
2173         * ToolStripPanel.cs (Join): added stubs to build PDN3
2174
2175         * Control.cs (AutoScrollOffset): Add.
2176
2177         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
2178         property, its only implemented for Win32, on X11 it defaults to
2179         some hardcoded value.
2180
2181         * ToolStripItem.cs (AllowDrop): Add property
2182
2183 2007-03-22  Mike Kestner  <mkestner@novell.com>
2184
2185         * ListView.cs : in FullRowSelect Details mode, only enable box
2186         selection if the user clicks over the "item" column outside of the
2187         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
2188
2189 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2190
2191         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
2192           handle is not created yet.
2193         * Form.cs: Select: Don't call CreateHandle if the handle is already
2194           created, avoids a stack overflow on Windows when we are recreating
2195           controls.
2196         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
2197           they are made visible, and override AfterTopMostControl to keep
2198           them on top when other controls are brought to front.
2199           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
2200           or force_*scroll_visible is true (old implementation always shows
2201           scrollbars when needed, no matter what auto_scroll was set to).
2202         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
2203           IsHandleCreated check.
2204
2205 2007-03-22  Andreia Gaita  <avidigal@novell.com>
2206
2207         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
2208         row or col separator.
2209         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
2210
2211 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2212
2213         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
2214
2215 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2216
2217         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
2218         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
2219         every time. Fixes #80410.
2220
2221 2007-03-22  Chris Toshok  <toshok@ximian.com>
2222
2223         * BindingSource.cs (AddNew): partially implement.
2224
2225         remove a couple of NotImplementedException's
2226         to get bug #81148 closed.
2227
2228 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2229
2230         [Fixes #80380]
2231         
2232         * Control.cs:
2233         - UpdateCursor method added to update the screen cursor.
2234         - GetAvailableCursor method added to return cursor for enabled tree,
2235         it searches for cursor on control and it's parent's for enabled control.
2236         - Call UpdateCursor method on setter of Cursor property.
2237         - On setter of Enabled call UpdateCursor when it is false, we need to
2238         change cursor to normal (or to this parent cursor) because cursor 
2239         setting theres no effect to disabled controls.
2240         - Some minor source changes to follow the coding style guidelines.
2241
2242         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
2243         controls.
2244
2245 2007-03-22  Chris Toshok  <toshok@ximian.com>
2246
2247         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
2248         generates.
2249
2250 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2251
2252         * XplatUIX11.cs: Implement default locations for forms.
2253         * Form.cs: Completely rework startup location for forms. Fixes #79964.
2254         * Hwnd.cs: Add previous_child_startup_location (to track the current
2255           startup location for any child forms of the current form) and
2256           previous_main_startup_location (to track the startup location for
2257           the current toplevel form).
2258
2259 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2260
2261         * Control.cs: Don't trigger a layout if an implicit control is added
2262         that isn't visible.  Also, don't notify the owner when an implicit control
2263         is added.  (Owners shouldn't even know about their implicit controls.)
2264
2265 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2266
2267         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
2268         to save some re-layouts.
2269
2270 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
2271
2272         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
2273         [Fixes #81203]
2274
2275 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2276
2277         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
2278         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
2279
2280 2007-03-21  Mike Kestner  <mkestner@novell.com>
2281
2282         * ListView.cs : disable selection update for non-left button clicks
2283         with mods and over selected items.  [Fixes #80524]
2284
2285 2007-03-20  Jackson Harper  <jackson@ximian.com>
2286
2287         * TextControl.cs:
2288         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
2289         \r\r\n, \n.
2290
2291 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2292
2293         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
2294           very probably a more complicated calculation there. Update the
2295           textbox' ForeColor and BackColor when the ComboBox' colors are
2296           changed. Change the border change in LayoutComboBox to only affect
2297           the textbox, not all the calculations there. Seems to fix most of
2298           #79436.
2299
2300 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2301
2302         * ComboBox.cs: Handle Home and End keys as well as all combinations of
2303           modifiers + navigation keys as input keys, enables advanced text
2304           selection in the combobox (like Shift+Left Arrow for instance).
2305           ComboTextBox now overrides Focused and returns whatever
2306           ComboBox.Focused returns, since it really should be focused
2307           whenever the ComboBox is. Fixes #80795. Also make the border around
2308           the text box one pixel bigger, as mentioned in #79436.
2309
2310 2007-03-20  Jackson Harper  <jackson@ximian.com>
2311
2312         * TreeView.cs: Don't offset the images, this was causing some
2313         artifacts when expanding/collapsing with images that were the
2314         exact height of the treenode.
2315
2316 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2317
2318         * TrackBar.cs: Query the theme for the correct value when the mouse
2319           moves and the thumb is pressed. 
2320         * Theme.cs: Added TrackBarValueFromMousePosition
2321         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
2322           implementation was updating the trackbar value when drawing, now
2323           the drawing methods only draw. Fixes #80900. Refactored the
2324           calculations out to TrackBarValueFromMousePosition and
2325           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
2326           according to the mouse position whenever it wants to. Changed the
2327           light coloured pen when drawing the thumb from ControlLight to
2328           ControlLightLight, because the ControlLight is the same colour as
2329           the background so the 3D effect is lost. 
2330
2331 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2332
2333         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
2334         defined. Fixes #80784.
2335
2336 2007-03-20  Marek Habersack  <mhabersack@novell.com>
2337
2338         * ContextMenuStrip.cs: align with the change introduced in
2339         revision 74664.
2340
2341 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2342
2343         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
2344         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
2345         in SetTopmost.
2346
2347 2007-03-19  Chris Toshok  <toshok@ximian.com>
2348
2349         * Control.cs (WmPaint): don't make use of the Handle property
2350         after an event is emitted, as the user could have closed the
2351         form/destroyed the control.  Store the Handle in a local variable
2352         and make use of that.  Fixes bug #80768.
2353
2354 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2355
2356         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
2357         behavior in X11 environments.
2358
2359 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2360
2361         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
2362         because on setter of topmost we dont call SetTopmost when handle is not
2363         created.
2364
2365 2007-03-20  Jackson Harper  <jackson@ximian.com>
2366
2367         * TextControl.cs: Need to use SelectionLength () not
2368         selection_length, since that var is reset to -1.
2369         - Draw the caret when we don't have focus.
2370         * TextBox.cs: The selectall actually doesn't occur until the first
2371         focus.
2372         * TextBoxBase.cs: Need to update the caret position after a
2373         selectall.
2374         
2375 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376
2377         * ListView.cs: Enable scrolling when using Tile view.
2378
2379 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2380
2381         [Fixes #80902]
2382
2383         * XplatUIDriver.cs: Abstract SetOwner method created.
2384
2385         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
2386         must be implemented and was masked as todo.
2387
2388         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
2389         GWL_HWNDPARENT.
2390
2391         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
2392         cheking for null owner to remove transient. The SetTopmost will be change
2393         on a decond step.
2394
2395         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
2396         SetTopmost. Now owned forms will work properly in win32 and X11.
2397
2398 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2399
2400         * MdiWindowManager.cs: Update function name.
2401         * Form.cs: After closing a form MdiParent is always null.
2402         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
2403           better what it should do: necessary book-keeping when the form is
2404           closed, it should not close the form itself.
2405
2406 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2407
2408         * ListViewItem.cs: Fix back and fore color. The subitems only
2409         use their own colors if they are set, otherwise use the listview's
2410         colors. Don't set default colors on constructor for subitem.
2411         Fixes #79315.
2412
2413 2007-03-19  Mike Kestner  <mkestner@novell.com>
2414
2415         * ListView.cs : make box selection for Details views with 
2416         FullRowSelect conform to MS behavior when clicking in the "item" 
2417         column and clicking outside the defined columns.
2418         [Fixes case 5-6 of #80374]
2419
2420 2007-03-19  Chris Toshok  <toshok@ximian.com>
2421
2422         * ScrollableControl.cs: create the controls from within the ctor,
2423         but don't actually add them until our handle is created.  this
2424         fixes a NRE possibility jpobst found (if you override OnLayout in
2425         a subclass, it's called before your ctor).  Also, add a
2426         IsHandleCreated guard to UpdateSizeGripVisibility as well.
2427
2428 2007-03-19  Jackson Harper  <jackson@ximian.com>
2429
2430         * TextBox.cs: Reduce the amount of invalidation we do.
2431         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
2432         some of them are true by default on MS.
2433         - Add some functions to reduce the amount of invalidates we do.
2434         * TextControl.cs: Less invalidation.
2435
2436 2007-03-19  Chris Toshok  <toshok@ximian.com>
2437
2438         [ Fixes #81773, and *seems* to fix #81553 as well ]
2439
2440         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
2441         AccumulateDestroyedHandles.  We need to do it *after* we send
2442         WM_DESTROY, as the user's code can access Control.Handle in
2443         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
2444         move the WM_DESTROY/zombie handling to before the call to
2445         XDestroyWindow.  For some reason without this ordering
2446         FormTest.RecreateHandle hangs.  This ordering is semantically
2447         equivalent, however, as XDestroyWindow is async anyway.
2448
2449 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
2450
2451         * RichTextBox.cs: Reset backcolor_set after setting default.
2452
2453 2007-03-19  Chris Toshok  <toshok@ximian.com>
2454
2455         * ScrollableControl.cs: the scroll position should not effect the
2456         canvas size.  commit patch from georgegiolfan@yahoo.com, which
2457         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
2458         
2459 2007-03-19  Chris Toshok  <toshok@ximian.com>
2460
2461         * ScrollableControl.cs: clean this up a bit.  create the
2462         scrollbars in the ctor and just show/hide them as needed.  Also,
2463         make hscroll_visible/vscroll_visible internal to Recalculate, and
2464         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
2465         everywhere else.  This seems to fix the scrollbars appearing
2466         beneath the content for me (i have *no* idea why that is,
2467         however.)
2468
2469 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2470
2471         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
2472         some redundacy for stuff in Anchor and Dock that base will take care of.
2473         [Fixes #80762]
2474
2475 2007-03-19  Mike Kestner  <mkestner@novell.com>
2476
2477         * ListView.cs : make box selection for Details views without 
2478         FullRowSelect dependent on the text bounds, not item bounds.
2479         * ListViewItem.cs : add an internal property to obtain the TextBounds
2480         in Details view.  [Fixes case 1-4 of #80374]
2481
2482 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2483
2484         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
2485         we're < 2.0. #78448 && #80316
2486
2487 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2488
2489         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
2490         have the same style available as the previously selected one.  Also,
2491         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
2492
2493 2007-03-19  Jackson Harper  <jackson@ximian.com>
2494
2495         * TextControl.cs: Add an alignment property that all new lines
2496         will be given.
2497         - Make sure to use the align shift when calculating the line's X
2498         position.
2499         * TextBox.cs: Set the alignment on the document as well as on all
2500         the document lines.
2501
2502 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2503
2504         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
2505           throw if setting the parent of an mdichild that already has an
2506           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
2507           AssemblyProductAttribute in the assembly, use the type's namespace (as
2508           MS seems to do). CreateControl: don't create the handle if the control
2509           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
2510           create handle if the control is not a form. Change FocusInternal to
2511           virtual so that it can be overriden by Form.
2512         * TextBox.cs: Update call to FocusInternal.
2513         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
2514           form is not a toplevel form when it's a mdi child, so update is_toplevel
2515           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
2516           hasn't been created. Show (IWin32Window): Don't allow this overload for
2517           toplevel windows. CenterToParent/CenterToScreen/Select: create the
2518           handle as MS does. SetVisibleCore: if called on a MdiChild and the
2519           parent isn't visible yet, save the visibility and restore it when the
2520           parent is made visible.
2521         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
2522           methods, since the visibility of the scrollbars can be changed from
2523           several places, not only from AutoScroll.
2524           [Fixes #81179]
2525
2526 2007-03-19  Jackson Harper  <jackson@ximian.com>
2527
2528         * RichTextBox.cs: Enable shortcuts by default.
2529         * TextBoxBase.cs: Add conditional shortcuts.  
2530
2531 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2532
2533         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
2534
2535 2007-03-19  Chris Toshok  <toshok@ximian.com>
2536
2537         [ Fixes bug #80604]
2538         
2539         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
2540         swallow the message we're waiting on, instead of delivering it, as
2541         this is only used for the WM_SHOWWINDOW raised from
2542         MapWindow/UnmapWindow, and the message needs to be generated
2543         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
2544         before doing the Map/Unmap.  Also make sure that the Hwnd is still
2545         alive after the message has been handled.
2546
2547         *before* the window is shown.
2548
2549         * Control.cs (CreateControl): guard a few more things inside the
2550         if (!is_created) block, as we might end up being called again -
2551         yay .net.
2552         (WmShowWindow): call CreateControl if we're showing the control.
2553
2554 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2555
2556         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
2557           controls without a handle if they have any parent with a handle. In
2558           Dispose add a check whether the handle is created or not before
2559           calling BeginInvoke, this removes the need of the extra disposing
2560           parameter (which was bogus anyway since it didn't prevent the
2561           invoke from happening, it only skipped the check for an existing
2562           handle, meaning that the invoke would call on an inexistent
2563           handle).
2564
2565 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2566
2567         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
2568         appears in taskbar.
2569
2570 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2571
2572         * MessageBox.cs:
2573         - Fixed a problem that dont show help button for messages with 3 buttons.
2574         - Refactory button size and position calculations, now dont use fixed 
2575         values, also fixed button sizes (#80043) and form's border space.
2576         - AddButton method created, now all other AddButton methods call this one.
2577         - Some other source code cosmetic changes.
2578
2579 2007-03-18  Jackson Harper  <jackson@ximian.com>
2580
2581         * RichTextBox.cs: Don't do this all fonts must match check if
2582         there is only one char selected.
2583
2584 2007-03-18  Jackson Harper  <jackson@ximian.com>
2585
2586         * TreeView.cs: ScrollWindow works properly now, so we don't need
2587         to screw around with the scroll area.  This fixes some artifacts
2588         when expanding and collapsing.
2589
2590 2007-03-18  Jackson Harper  <jackson@ximian.com>
2591
2592         * TextBoxBase.cs: Allow updating the selection position when the
2593         cursor is outside the textarea, but we have a capture.
2594         * TextControl.cs: A special case for when the cursor is outside
2595         the bounds of the TB.
2596         
2597 2007-03-18  Jackson Harper  <jackson@ximian.com>
2598
2599         * TextBoxBase.cs: Remove image pasting code for now.  There is no
2600         way to get an image on the clipboard right now anyways.
2601         * TextControl.cs:
2602         * RichTextBox.cs: Use the new RTF Picture class for pictures.
2603
2604 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2605
2606         * MessageBox.cs:
2607         - Set window properties in constructor intead of on CreateParams.
2608         - Remove topmost from Window ExStyle.
2609         - Set ShowInTaskbar to false.
2610         - Set form border to FixedDialog.
2611         - Some cosmetic changes and remove unneeded comments.
2612         - It fixes itens 2,3 and 4 of bug #80043.
2613
2614 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
2615
2616         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
2617         none was explicitly set. Fixes part of bug #79949.
2618
2619 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2620
2621         * ToolStripComboBox.cs: Add AutoComplete*.
2622
2623 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2624
2625         * ToolStripComboBox.cs: Add FlatStyle.
2626
2627 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
2630         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
2631
2632 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2633
2634         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
2635           CheckBox.cs, RadioButton.cs, BindingSource.cs,
2636           DataGridColumnStyle.cs: Remove warnings.
2637
2638 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2639
2640         * Menu.cs: MergeMenu: Check menu argument for null before looping over
2641           it.
2642         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
2643           visibility of mdi child forms. FormSizeChangedHandler: update the
2644           maximized size if size has changed while maximized.
2645         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
2646           creating the handle.
2647         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
2648           avoid creating the handle if not created.
2649         * XplatUI.cs: Update debug output.
2650         * XplatUIStructs.cs: Added ToString's for a couple of structs.
2651
2652 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
2653
2654         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
2655         ProcessCmdKey().
2656         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
2657         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
2658         Implement keyboard shortcuts.
2659
2660 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2661
2662         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
2663         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
2664         ColorDialog and all derived classes.
2665
2666 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2667
2668         [ Fixes bug #79828 ]
2669
2670         * ToolBar.cs:
2671         - Rename ToolBarButtonInfor to ToolBarItem.
2672         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
2673         - Maintain an array of ToolBarItem, used instead of ToolBarButton
2674         collection to be able add same button more than one time on a toolbar.
2675         - Refactory all properties and methods to use ToolBarItem. 
2676
2677         * ToolBarButton.cs: 
2678         - Remove all propeties and methods that is now in ToolBarItem.
2679         - Rectangle propery now gets the rectangle from first ToolBarItem to
2680         mimic win32 behavior.
2681         - Size calculation and layout methods also removed.
2682
2683         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
2684         ToolBarItem instead of ToolBarButton to right drawing buttons when
2685         same button/separator was added more than one time to ToolBar.
2686
2687         * ThemeNice.cs: Same as above. 
2688
2689 2007-03-15  Andreia Gaita  <avidigal@novell.com>
2690
2691         * XplatUIX11.cs: Fire extra MouseMove events right after
2692         MouseDown and MouseUp, emulating win32's <censored> behaviour
2693         for apps that rely on it.
2694
2695 2007-03-15  Jackson Harper  <jackson@ximian.com>
2696
2697         * TextControl.cs:
2698         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
2699         it is drawn on the controls client window and there is no NC
2700         area.
2701         - Set the background color to gray on 2.0 when we are readonly.
2702
2703 2007-03-15  Chris Toshok  <toshok@ximian.com>
2704
2705         [ Fixes bug #81144 ]
2706         
2707         * XplatUIX11.cs: implement VirtualScreen independently of
2708         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
2709         property.
2710
2711 2007-03-15  Chris Toshok  <toshok@ximian.com>
2712
2713         * Hwnd.cs: add an internal field for the cached_window_state.
2714
2715         * XplatUIX11.cs: cache the window state, invalidating the cache
2716         (and thus re-querying the X server) only when we see an update to
2717         the _NET_WM_STATE property.
2718
2719 2007-03-15  Chris Toshok  <toshok@ximian.com>
2720
2721         * BindingSource.cs: get a lot of the unit tests working.
2722
2723 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
2724
2725         * Control.cs: Modify UpdateStyles to store distances when bounds >=
2726         0 instead of just bounds > 0.  [Fixes bug #80912]
2727
2728 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
2729
2730         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
2731         and methods.
2732
2733 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
2734         
2735         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
2736         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
2737         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
2738         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
2739
2740 2007-03-15  Chris Toshok  <toshok@ximian.com>
2741
2742         [ Fixes #81101 ]
2743         
2744         * Control.cs: add Ivan's fix for 81101, with a slight modification
2745         - you can set control.Target to null.
2746
2747 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
2748
2749         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
2750         HideDropDown, use Hide instead to prevent an NRE.
2751         [Fixes bug #81147]
2752
2753 2007-03-14  Jackson Harper  <jackson@ximian.com>
2754
2755         * TextBoxBase.cs: Mess with the creation stuff a little. We need
2756         to calculate the document before the handle is created, in some
2757         cases. (Actually just one case).
2758
2759 2007-03-14  Jackson Harper  <jackson@ximian.com>
2760
2761         * TextBoxBase.cs: Need to display the caret after letting the base
2762         wndproc handle the focus methods, because the caret display
2763         methods check the focus state.
2764         - Try to display the caret after updating it's position with SelectWord.
2765         - Don't need to do an immediate update on this recalc, since there
2766         will be an invalidate anyways.
2767
2768 2007-03-14  Jackson Harper  <jackson@ximian.com>
2769
2770         * TreeView.cs: Some workarounds so that we can match event order a
2771         little better.
2772
2773 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
2774
2775         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
2776         #80803. Avoid NullReferenceException when Control does not have
2777         parent. Fixed different blinkstyle issues. Only subscribe to Tick
2778         event a single time. Only draw error icon when control is created and
2779         visible. Fixes failing unit tests.
2780
2781 2007-03-14  Andreia Gaita  <avidigal@novell.com>
2782
2783         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
2784         Selecting events. Fire Leave and Enter events when changing tabs.
2785
2786 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
2787
2788         * TreeView.cs: Add TreeViewNodeSorter.
2789         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
2790
2791 2007-03-14  Chris Toshok  <toshok@ximian.com>
2792
2793         * Form.cs: go ahead and remove the RecreateHandles that jpobst
2794         removed earlier and I had him add back it.  It turns out metacity
2795         *does* in fact handle the MOTIF_WM_HINTS property changing, it
2796         just doesn't redraw the window titlebar until you resize the
2797         window.  This also means we aren't recreating the entire window
2798         hierarchy on X when you change this property.  And it looks better
2799         on windows, too.
2800
2801 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2802
2803         * ListViewItem.cs:
2804         * ListView.cs: Collecting selection information
2805         is now done in SelectedIndexCollection rather than in
2806         SelectedListViewItemCollection. This is done so we can
2807         have the selection information code in one single place
2808         (virtual mode selection information entirely depends on
2809         SelectedIndexCollection).
2810
2811 2007-03-13  Miguel de Icaza  <miguel@novell.com>
2812
2813         * ErrorProvider.cs: Add stubs for ISupportInitialize
2814
2815 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2816
2817         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
2818         in the right order with the right values, from the Checked property, 
2819         just as MS does (instead of triggering them from ListView).
2820
2821         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
2822
2823 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2824
2825         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
2826         the correct handler in OnItemCheck method (ItemCheckEventHandler 
2827         instead of EventHandler). This used to throw an InvalidCastException.
2828
2829 2007-03-13  Jackson Harper  <jackson@ximian.com>
2830
2831         * TextBoxBase.cs: Calculate the document before the handle is
2832         created, so there isn't an extra invalidate called.
2833
2834 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
2835
2836         * Form.cs: Don't set owner in ShowDialog until we are sure
2837         that we aren't going to throw an exception.  [Fixes bug #80773]
2838
2839 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
2840
2841         * TreeView.cs: Make it compile.
2842
2843 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2844
2845         * Control.cs: Another place we don't call SizeFromClientSize.
2846         * Form.cs: Another place we don't call SizeFromClientSize.
2847         [Fixes bug #81125]
2848
2849 2007-03-12  Jackson Harper  <jackson@ximian.com>
2850
2851         * TreeView.cs: Basically emulating some strangness here with
2852         exanding nodes and setting node positions when windows aren't
2853         created.
2854         - Also attempting to walk the node tree less than previously, and
2855         just use visible order calculations for determining offsets.
2856         - oops made scrolling backwards.
2857         * TreeNode.cs: We need to start nodes with a zero visible order,
2858         because the order calcs are based on the first nodes order.
2859
2860 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2861
2862         * Form.cs: Don't exit the program if RecreateHandle is called on
2863         the main form.
2864
2865 2007-03-12  Chris Toshok  <toshok@ximian.com>
2866
2867         * XEventQueue.cs: remove the use of PostQuitState.
2868
2869         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
2870         WM_QUIT message in GetMessage, return false (and if we're in the
2871         nested WaitForHwndMessage, repost the WM_QUIT message).
2872
2873 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
2876         or the MaximizeBox properties.  [Part of bug #80640]
2877
2878 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
2879
2880         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
2881         no links.
2882
2883 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2884
2885         * ToolStripItem.cs: Fix some tests I broke by checking Visible
2886         instead of visible.
2887
2888 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
2889
2890         * FileDialog.cs: Use text of File name combobox to determine what
2891         files the user selected. Added tokenizer to parse the file names.
2892         Fixes bug #81123.
2893
2894 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
2895
2896         * Control.cs: We can't call SizeFromClientSize in the constructor,
2897         but we still need to do the same work, so make an internal version.
2898         [Fixes bug #80621]
2899
2900 2007-03-12  Jackson Harper  <jackson@ximian.com>
2901
2902         * TreeView.cs:
2903         * TreeNode.cs:
2904         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
2905         IsExpanded.
2906
2907 2007-03-12  Jackson Harper  <jackson@ximian.com>
2908
2909         * TextBoxBase.cs: Now that the handles are being created a little
2910         later, we need to make sure that the document is recalculated when
2911         the handle is created.
2912
2913 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
2914
2915         * Theme.cs: GetLinkFont abstract method added.
2916         
2917         * LinkLabel.cs: 
2918         - Remove CalcTrimRectangle, no longer needed.
2919         - Factor also remove, position issues must be fixed in libgdiplus.
2920         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
2921         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
2922         care about font used to draw links.
2923         - Set TabStop to true when control is "Selectable", control is selectable
2924         when have one or more links. Fixes #80501 (test case is also added).
2925         - Set the LinkArea values after links change, LinkArea values must be
2926         based in first link position and size, a test case was created.
2927         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
2928         the attribute must be true LinkArea.Length > 0. The same was applied to
2929         TabStop.
2930         
2931         * ThemeWin32Classic.cs: 
2932         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
2933         in draw method.
2934         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
2935         color change.
2936         - Draw focus rectangle for every parts focused, including parts that 
2937         is on another line, its because regions returns various rectangles
2938         and not only one. Needed to mimic W32 look.
2939         - Uses Graphics.Clip to delimite region painted, it mean that now 
2940         complete text is passed to DrawString, with this we solve layout
2941         issues without create another text renderer.
2942         - Uses Region.Intersect to fix some flickers problems, now only needed
2943         parts will redrawed.
2944         - This changes fixes #79614 and some other unreported issues, on Linux 
2945         some layout problems still remain, the problem is under 
2946         MeasureCharacterRanges but it is an libgdiplus bug.
2947
2948 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
2949
2950         * TextBox.cs: Set for foreground color.
2951         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
2952         this is already done in Control.
2953
2954 2007-03-10  Jackson Harper  <jackson@ximian.com>
2955
2956         * TextBox.cs: Set the background color, but reset the
2957         backcolor_set flag which is just for the user setting the
2958         background color.
2959
2960 2007-03-09  Chris Toshok  <toshok@ximian.com>
2961
2962         * Control.cs: really remove the call to XplatUI.SetVisible from
2963         CreateHandle(), like I said I did when I merged the branch.
2964
2965         * BindingSource.cs: implement some more of this stuff.
2966
2967 2007-03-09  Jackson Harper  <jackson@ximian.com>
2968
2969         * TextBox.cs: Don't explicitly set our background colors.
2970         * TextControl.cs:
2971         * TextBoxBase.cs: Draw readonly text.
2972         - Need to invalidate when backcolor or readonly are changed.
2973         
2974 2007-03-09  Jackson Harper  <jackson@ximian.com>
2975
2976         * TextBoxBase.cs: Don't set the forecolor until the handle is
2977         created.
2978         - Do not raise OnPaint, and removed some old debug code.
2979
2980 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
2981
2982         * ScrollableControl.cs: Fix mouse wheel scrolling.
2983
2984 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
2985
2986         * Control.cs: Wire up MouseDoubleClick event.
2987
2988 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
2989
2990         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
2991         top or bottom.
2992         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
2993         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
2994         item is added.  This logic was moved to ToolStrip.OnItemAdded.
2995         [Fixes bug #81090]
2996
2997 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2998
2999         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
3000
3001 2007-03-08  Jackson Harper  <jackson@ximian.com>
3002
3003         * TreeView.cs: Show the correct image for selected node (this used
3004         to work, not sure how the code got deleted). Also implemented 2.0 feature
3005         SelectedImageKey.
3006
3007 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3008
3009         * ListView.cs:
3010         * ListViewItem.cs: Cache index in items when retrieving them
3011         in VirtualMode.
3012
3013 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3014
3015         * ToolStripItem.cs: Don't return the explicit_size if we are using 
3016         AutoSize.  Fixes invalidation issue when user has explicitly set a
3017         size and has AutoSize = true.
3018
3019 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3020
3021         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
3022
3023 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3024
3025         * DataGridView.cs: Remove event handler from DataView when a
3026         DataTable is used as DataSource.
3027
3028 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3029
3030         * Control.cs: Create internal setter for client_size to allow it to be
3031         set without triggering resizing code.
3032         * Form.cs: Calculate client_size in constructor, only change client_size
3033         in FormBorderStyle property if Handle has been created.
3034         [Fixes #80574, #80791]
3035
3036 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
3037
3038         * SystemInformation.cs: Add TerminalServerSession.
3039
3040 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3041
3042         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
3043         TreeView code.
3044
3045 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3046
3047         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
3048         Handle before we were supposed to.  Now checks ActivateOnShow property
3049         in Control.
3050         * Control.cs: Add internal ActivateOnShow property.
3051         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
3052         for ActivateOnShow.
3053         * Hwnd.cs Remove no longer needed no_activate field.
3054
3055 2007-03-07  Jackson Harper  <jackson@ximian.com>
3056
3057         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
3058         2.0 properties
3059         * DrawTreeNodeEventHandler.cs: Add
3060         * DrawTreeNodeEventArgs.cs: Correct default value.
3061         
3062 2007-03-07  Chris Toshok  <toshok@ximian.com>
3063
3064         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
3065         to be called before NativeWindow.WndProc.  Put the HwndCreating
3066         magic there to hook up our Hwnd's to handles.
3067
3068 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
3069
3070         * DataGridView.cs: Comment out debug code.
3071
3072 2007-03-07  Chris Toshok  <toshok@ximian.com>
3073
3074         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
3075         to make the rest of the world happy]
3076
3077         * Control.cs (CreateHandle): there's no need to call
3078         XplatUI.SetVisible here, it's effectively done by
3079         XplatUI.CreateWindow on X now, and always was on windows.
3080
3081         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
3082         shortcircuit out of the loop if we have a message loop running on
3083         this thread.
3084
3085         [Changelog from merge]
3086
3087         2007-03-05  Chris Toshok  <toshok@ximian.com>
3088
3089                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
3090                 causes handle creation.
3091
3092         2007-02-28  Chris Toshok  <toshok@ximian.com>
3093
3094                 * ApplicationContext.cs: Add a flag to make sure we only raise the
3095                 ThreadExit event once (ExitThreadCore can be indirectly called
3096                 from a few places.)  I don't like the additional flag, but it
3097                 makes the event ordering/count correct.
3098
3099                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
3100                 without locking the collection.  An enumerator doesn't give us any
3101                 protection from modification anyway.  Lock the thread hash and
3102                 replace the complicated enumerator loop with a foreach.
3103                 (Application.CloseForms): make internal so it can be called from
3104                 ApplicationContext.  This should probably be moved to MWFThread.
3105                 (Application.ExitThread): don't call MWFThread.Current.Exit()
3106                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
3107                 when the runloop exits (in response to WM_QUIT.)
3108                 (Application.RunLoop): add a comment (and check) for
3109                 context.MainForm being null after setting context.MainForm.Visible
3110                 = true.  This is because you're perfectly free to dispose of a
3111                 form in VisibilityChanged.  Chalk this up to another case where we
3112                 need to synchronously generate WM_ACTIVATE from Control.Show.
3113                 Also, add handling for WM_QUIT here so we'll exit the loop.
3114                 
3115                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
3116                 fact that we don't wait if we're only unmapping the whole_window
3117                 makes me a bit nervous, but it doesn't seem to cause any problems
3118                 yet.
3119
3120                 also, add a comment about the stupid, broken and wrong resetting
3121                 of PostQuitState to false in GetMessage().
3122
3123                 In PostQuitMessage, we need to add a WM_QUIT message to the
3124                 thread's queue.  We use the FosterParent to get the right
3125                 handle/hwnd/queue.
3126
3127                 Lastly, in SetVisible, we need to unmap both windows, since the
3128                 waiting only happens when we're unmapping the client window.  So
3129                 now, the *only* time we unmap just the whole_window is in the hack
3130                 for resizing a control to 0,0.
3131                 
3132         2007-02-21  Chris Toshok  <toshok@ximian.com>
3133
3134                 * Application.cs (CloseForms): rewrite this so that we don't
3135                 modify the list while we're traversing it.
3136
3137         2007-02-20  Chris Toshok  <toshok@ximian.com>
3138
3139                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
3140                 of OnHandleCreated.
3141                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
3142                 handle is created.  otherwise we'll create it here.
3143                 (VerticalScrollEvent): same here.
3144
3145                 * Application.cs (CloseForms): call Form.Dispose, don't post
3146                 WM_CLOSE_INTERNAL.
3147
3148                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
3149                 here. Application should Dispose() of the Form's.
3150
3151                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
3152                 WM_DESTROY as well.
3153                 (MapWindow,UnmapWindow): only actually do the waiting for
3154                 SHOWWINDOW if the control we're dealing with is a Form.
3155                 (CreateWindow): if the control isn't a form, SendMessage
3156                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
3157
3158                 * Control.cs (SetVisibleCore): always use is_visible here, not
3159                 value.  If we use value, we can end up re-setting something
3160                 visible if, for instance, you do Control.Hide() in a delegate
3161                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
3162
3163         2007-02-20  Chris Toshok  <toshok@ximian.com>
3164
3165                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
3166                 the message we need.  PeekMessage returning false should not be a
3167                 condition under which we exit the loop.
3168
3169         2007-02-15  Chris Toshok  <toshok@ximian.com>
3170
3171                 * Control.cs (Refresh): only refresh if we've got a handle and are
3172                 visible.
3173                 (CreateAccessibilityInstance): CreateControl() here.
3174                 (UpdateChildrenZOrder): complicate the code loop even more by
3175                 taking into account controls that haven't had their handle
3176                 created, and those that aren't visible.  But on the flip side,
3177                 simplify the code by splitting it into two loops.  one which
3178                 builds up the list of child controls we're interested in, and the
3179                 other that sets the z order of those children.
3180
3181         2007-02-14  Chris Toshok  <toshok@ximian.com>
3182
3183                 * Control.cs: Control.AccessibilityObject causes the control to be
3184                 created, not just the handle.
3185
3186         2007-02-14  Chris Toshok  <toshok@ximian.com>
3187
3188                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
3189                 problem on X where a window might have its handle created (and be
3190                 visible) while the window is unmapped.  calling XConfigureWindow
3191                 on an unmapped window is bad, and generates X errors.
3192
3193         2007-02-13  Chris Toshok  <toshok@ximian.com>
3194
3195                 * Control.cs (CreateHandle): don't loop over our children setting
3196                 their parent here.  do it when in WndProc when we're shown.
3197                 (UpdateChildrenZOrder): make this internal so we can call it from
3198                 ScrollableControl.
3199                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
3200                 creating its handle.  Also, remove the calls to PerformLayout from
3201                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
3202                 OnVisibleChanged only seems to be called directly here for the
3203                 toplevel control.  It's propagated down the window hierarchy by
3204                 calls to child.OnParentVisibleChanged.
3205                 (OnVisibleChanged): don't do layout here - it's done (oddly
3206                 enough, according to a glance at stack traces on ms.net..) in
3207                 ScrollableControl.
3208                 
3209                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
3210                 z order of our children before calling PerformLayout.
3211
3212         2007-02-12  Chris Toshok  <toshok@ximian.com>
3213
3214                 [big change, fixes #80020]
3215                 
3216                 * AccessibleObject.cs: we need to make owner internal again to fix
3217                 some of ControlAccessibleObject.
3218
3219                 * Control.cs: lots of changes here.  add support for WM_CREATE,
3220                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
3221                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
3222                 we create child controls.  leave the MonoTODO's for the
3223                 accessibility calls, but fix the exceptions so the tests pass.
3224
3225                 Add the InvalidOperationExceptions to Invoke methods, and remove a
3226                 couple of InvokeInternal methods we aren't using.
3227                 
3228                 Also, add a couple of CreateHandle calls in places where we know
3229                 the handles are being created but our code doesn't reference
3230                 .Handle.
3231
3232                 Make SetVisibleCore call OnVisibleChange if the handle isn't
3233                 created.  If the handle is created, we rely on XplatUI.SetVisible
3234                 generating the event synchronously.
3235                 
3236                 Lastly, make sure we don't use this.Handle inside CreateHandle,
3237                 because we can call back into client (and that code can dispose of
3238                 the control).
3239
3240                 * XplatUIStructs.cs: misc/cleanup.
3241
3242                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
3243                 although we don't populate the wParam properly.
3244                 (CreateWindow): generate WM_CREATE.
3245                 (MapWindow,UnmapWindow): make these calls synchronous, at great
3246                 performance expense (particularly in the unmap case), to match
3247                 win32 behavior.
3248
3249                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
3250                 to call it.
3251                 (set_MdiParent): don't recreate the handle unless it's been
3252                 created already.
3253                 
3254                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
3255                 it's created.
3256
3257                 * NativeWindow.cs: this is probably the weirdest part of the
3258                 patch.  We need a way to link up the window being created to the
3259                 WM_CREATE message.  Since we can only be creating one window at a
3260                 time on a given thread, we keep track of a per-thread reference so
3261                 we can dispatch it properly.  We also need to keep track of the
3262                 Hwnd currently being created so that the win32 backend doesn't
3263                 have problems.
3264                 
3265                 * XplatUIWin32.cs: a similar change to the one we made in
3266                 NativeWindow.cs.
3267
3268 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3269
3270         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
3271         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
3272         to draw the menu shortcut string.
3273
3274 2007-03-07  Jackson Harper  <jackson@ximian.com>
3275
3276         * TreeNode.cs: Add the 2.0 collapse method.
3277
3278 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3279
3280         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
3281
3282 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3283
3284         * DataGridView.cs: Change DataSource will clear column and row
3285         lists. Call Invalidate() to reflect DataSource change.
3286
3287 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3288
3289         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
3290         and a new row is added to it.
3291
3292 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3293
3294         * DataGridView.cs: Add columns when DataSource is en empty list but
3295         is a System.Data.DataView (from a System.Data.DataTable).
3296
3297 2007-03-06  Andreia Gaita  <avidigal@novell.com>
3298
3299         * Label.cs: Implement AutoEllipsis (2.0)
3300
3301 2007-03-06  Jackson Harper  <jackson@ximian.com>
3302
3303         * TreeView.cs: Implement 2.0 TopNode setter property.
3304         - Use a local var instead of the skipped_nodes field for computing
3305         how many nodes to skip.  Otherwise we won't scroll because the
3306         valuechanged handler checks if skipped_nodes is equal to the new
3307         value.
3308         - Implement 2.0 Sort method.
3309         - Add useless 2.0 DoubleBuffer property
3310         - Implement 2.0 LineColors property.  Lets you change the color of
3311         the lines in the tree. Terribly useful for creating non cohesive
3312         desktops.
3313         - Implement 2.0 image key feature.
3314
3315 2007-03-06  Jackson Harper  <jackson@ximian.com>
3316
3317         * TreeView.cs: We can't get the bounds of the nodes before raising
3318         the AfterSelect event, because that event could change the node's
3319         bounds (scrolling, font change, etc).
3320
3321 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3322
3323         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
3324         * Form.cs: Don't recreate handle when creating FormWindowManager, just
3325           update window styles. In CreateParams us VisibleInternal instead of
3326           VIsible to get the actual visible flag set for this form.
3327         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
3328           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
3329           handle the case when the form is already maximized, in which case
3330           it should be restored. Fixes #81043.
3331
3332 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3333
3334         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
3335
3336 2007-03-05  Jackson Harper  <jackson@ximian.com>
3337
3338         * TreeViewHitTestInfo.cs: implement.
3339
3340 2007-03-05  Jackson Harper  <jackson@ximian.com>
3341
3342         * InternalWindowManager.cs: class status fix.
3343
3344 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3345
3346         * InternalWindowManager.cs: All windows that have a parent
3347         are confined to their parent when they're being moved.
3348         Fixes #80822.
3349
3350 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
3351
3352         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
3353         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
3354
3355 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3356
3357         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
3358           buttons invisible before deciding which ones should be visible
3359           (fixes minimize/maximize buttons showing up in toolwindows). Remove
3360           an unused variable.
3361         * InternalWindowManager.cs: Remove warning.
3362
3363 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3364
3365         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
3366         to throw an InvalidOperationException is virtual mode is being used.
3367
3368 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3369
3370         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
3371         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
3372         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
3373         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
3374         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
3375         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
3376
3377 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3378
3379         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
3380           driver.KeyboardDelay from XplatUI.KeyboardDelay 
3381         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
3382           (patch by Sergey Volk)
3383
3384 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3385
3386         * ToolWindowManager.cs: Added, contains logic for
3387           tool windows.
3388         * CreateParams.cs: Add a few helper methods and an
3389           internal variable to know which control the CreateParams belongs
3390           to.
3391         * Control.cs: Call Form.ChangingParent when the
3392           parent is about to be changed.
3393         * XplatUIX11.cs: DeriveStyles (): Set
3394           caption_height for all windows that have captions and are children.
3395           Update to use ToolWindowManager instead of InternalWindowManager
3396           for ToolWindows.
3397         * XplatUIWin32.cs: Set fake window styles for all
3398           windows that have window managers.
3399         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
3400           now duplicated for mdi windows when they are
3401           maximized, first for the buttons the window itself has, then for
3402           the buttons that appear in the menu bar. Makes things a little
3403           easier). Updated UpdateWindowDecorations, SetWindowState and the
3404           mouse eventhandlers accordingly.
3405         * Form.cs: Add ChangingParent (), contains the
3406           logic of what should happen when the parent changes. In MdiParent
3407           don't set things that ChangingParent () is doing. When handling
3408           WM_CLOSE, we can close the form if there are any other modal forms
3409           and the current form is a descendent of the modal form.
3410         * InternalWindowManager.cs: A lot of refactoring,
3411           the title buttons are now extracted to a separate container class
3412           that takes care of all button code (clicks, tooltips, etc). Moved
3413           Iconic|Maximized|Normal Bounds properties to this class from
3414           MdiWindowManager, so that the window state logic can succeed for
3415           other than mdi wm's. Implemented general window state change logic.
3416           Moved CreateButtons to ThemeWin32Classic, since the theme might
3417           override which buttons are available when as well as the exact
3418           location.
3419         * FormWindowManager.cs: Added, contains logic for
3420           normal forms.
3421         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
3422           which buttons go where (and if they are at all visible). 
3423           Removed special handling of maximized windows, since they aren't special. 
3424           In DrawManagedWindowDecorations don't try to draw the text if it is
3425           empty.
3426         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
3427           use whatever the wm gives us.
3428
3429 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3430
3431         * ButtonBase.cs: Add 2.0 properties.
3432         * Button.cs: Override Draw for 2.0.
3433         * Control.cs: Add Entered and Selected properties.
3434         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
3435         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
3436         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
3437         buttons.
3438         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
3439
3440 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3441
3442         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
3443
3444 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3445
3446         * XplatUIWin32.cs: Register a new class with Windows each time we get
3447         a new ClassStyle.  [Fixes bugs #79432, #80817]
3448         * Controls.cs: Set the correct ClassStyle in CreateParams.
3449         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
3450
3451 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
3452
3453         * ListView.cs: Add fireEvent argument to ReorderColumn since the
3454         ColumnReordered event must not be signaled when modifying DisplayIndex
3455         of a ColumnHeader. Added internal ReorderColumns method which takes
3456         care of drawing, and updating the internal DisplayIndex of the
3457         ColumnHeader. Added AddColumn method which is invoked from
3458         ColumnHeaderCollection when adding or inserting columns, and which
3459         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
3460         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
3461         Recalculated dispay indices after removing a ColumnHeader.
3462         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
3463         match MS. Allows last display index to be returned after ListView
3464         is disposed. Update actual location of ColumnHeader when DisplayIndex
3465         is modified.
3466
3467 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
3468
3469         * LinkLabel.cs: Improve CalcTrimRectangle.
3470         
3471         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
3472
3473 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3474
3475         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
3476         get rectangle as a result value.
3477
3478 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3479
3480         * LinkLabel.cs: Theres some diferences between rectangle return from 
3481         MeasureCharacterRanges and the area used for DrawString to fix this 
3482         CalcMeasurementFactor method was created, it calcules the diferences
3483         to be use later to adjust rectangle in draw operations. Fixes #80473.
3484         
3485         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
3486         to adjust draw rectangle.
3487
3488 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3489
3490         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
3491         text and some other changes to reduce and optimize source code.
3492
3493 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3494
3495         * RadioButton.cs: Implement 2.0 event.
3496         * RelatedImageListAttribute.cs: Implement new class.
3497
3498 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3499
3500         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
3501
3502 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3503
3504         * CheckBox.cs: Implement 2.0 functionality.
3505
3506 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3507
3508         * ListView.cs: Refactor Add and AddRange methods of
3509         ListViewItemCollection, to not update the ListView
3510         everytime an item is added in AddRange. Also move the update
3511         code to a new CollectionChanged method, and call it
3512         from other methods that need it as well (this should also fix some
3513         bugs when Sorting is used).
3514
3515 2007-02-27  Jackson Harper  <jackson@ximian.com>
3516
3517         * TextControl.cs: Try to never let the caret stay in a non-text
3518         tag.
3519         * TextBoxBase.cs: Update the caret.
3520
3521 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
3522
3523         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
3524         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
3525         delete POINT structure, duplicate of one in XplatUIStructs.
3526         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
3527
3528 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
3529
3530         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
3531         edit box since otherwise the Label would immediately be set (even if
3532         the user did not modify the label). In OnKeyDown set Handled to true
3533         if Return or Escape was pressed. In ColumnHeaderCollection unlink
3534         columns that are to be removed. In ListViewItemCollection unlink items
3535         that are to be removed.
3536
3537 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
3538
3539         * TextRenderer.cs: If we set a GDI clip region, we need to clear
3540         it when we are done.  [Fixes bug #80949]
3541
3542 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3543
3544         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
3545
3546 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3547
3548         * ListView.cs: I forgot to commit the changes for ListView 
3549         in my previous patch.
3550
3551 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3552
3553         * Clipboard.cs: Partially implement an overload of SetDataObject.
3554         * Form.cs: Implement ShowWithoutActivation.
3555         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
3556
3557 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3558
3559         This is a first set of changes to make the Virtual mode works,
3560         by avoiding the retrieval of ListViewItem instances until
3561         draw time.
3562
3563         * ListView.cs: Store item position in the ListView instead of the
3564         ListViewItem, this way we don't request the Bounds property of
3565         ListViewItem inside the ListView calculations, as well as cache the item
3566         size in item_size field. Store indexes instead of ListViewItem
3567         instances in the matrix used by icon view. Add a ItemMatrixLocation
3568         struct to hold the row and col info of the matrix info.
3569
3570         * ListViewItem.cs: Don't store the location anymore, and only cache
3571         the rectangles for GetBounds. Use the ListView.GetItemLocation
3572         method to retrieve the actual location.
3573
3574 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3575
3576         * TextRenderer.cs: Add clipping support, thanks to George.
3577         [Fixes bug #80949]
3578
3579 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3580
3581         * ListViewItem.cs: Cancel label edit when item is removed from 
3582         ListView.
3583         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
3584         event before the edit textbox is displayed.  Added CancelEdit method
3585         which is used end to editing while ignoring the value set by the
3586         user. In EndEdit, set focus to ListView to avoid losing focus to
3587         other controls. In ListViewItemCollection.Clear, cancel editing of
3588         any of the items.  In Remove, cancel editing of item being removed.
3589         Avoid udplicate code by modifing RemoveAt to invoke Remove.
3590
3591 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3592
3593         * FileDialog.cs: Update FSEntry when move is successful. Fixes
3594         bug #80948.  
3595
3596 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3597
3598         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
3599         compatible with non X11 systems. Fixes #80901.
3600
3601 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3602
3603         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
3604         whether the item should be unselected and reselect. We do no want this
3605         when we're starting to edit the label. Do not fire the 
3606         SelectedIndexChanged event from ListView when its already been fired
3607         by modifying ListViewItem.Selected. Fixes bug #80943.
3608
3609 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3610
3611         * TextRenderer.cs: Previos commit logic was backwards.
3612
3613 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3614
3615         * TextRenderer.cs: Don't add padding on MeasureText if we were
3616         sent the NoPadding flag.
3617
3618 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3619
3620         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
3621         after DrawButton. To prevent image overlaps button borders SetClip and 
3622         ResetClip added before and after draw image. Fixes #79129.
3623
3624 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3625
3626         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
3627         window size, it fix problem when you run under win32 that theres
3628         Size diferent than ClientSize. Also fix controls size and positions
3629         to mimic Win32. Fixes #80837.
3630
3631 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
3632
3633         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
3634         menu area to fix some problems for non X11 systems. Fixes #80613.
3635
3636 2007-02-22  Jackson Harper  <jackson@ximian.com>
3637
3638         * TreeNode.cs: When a node is expanded, set its is_expanded flag
3639         even if it doesn't have any children.
3640
3641 2007-02-22  Jackson Harper  <jackson@ximian.com>
3642
3643         * TreeView.cs: Calculate the top node 'on the fly', this
3644         eliminates issues where you need to click on the tree before
3645         scrolling it to get the top node computed correctly.
3646         * TreeNodeCollection.cs: We don't need to mess with the top node
3647         anymore.
3648
3649 2007-02-22  Jackson Harper  <jackson@ximian.com>
3650
3651         * DataGridViewRow.cs: Fix typo so height can actually be set.
3652         Patch by Peter Grimm.
3653
3654 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3655
3656         * FileDialog.cs: Fixed support for renaming files and directories.
3657         * ListView.cs: Do not lose focus when edit is canceled. Process
3658         Escape as regular key (to prevent closing of dialogs).
3659
3660 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3661
3662         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
3663         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
3664
3665 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3666
3667         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
3668         did not modify label.
3669         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
3670         modified the text. Reset Label when user presses Escape in edit mode.
3671         Move focus to ListView after having cancelled or finished editing the
3672         label.
3673
3674 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
3675
3676         * ComboBox.cs: Removed unnecessary initializations. Marked items field
3677         private. Clear textbox when Text is set to null and SelectedIndex is
3678         already -1.
3679         * FileDialog.cs: Removed unnecessary initializations. Removed 
3680         workarounds for ComboBox bugs that are now fixed. Modified
3681         DefaultExt, InitialDirectory and Title property to change null to
3682         zero-length string in getters. Avoid directly accessing fields.
3683
3684 2007-02-20  Jackson Harper  <jackson@ximian.com>
3685
3686         * TextControl.cs: Remove RecalAlignments call, that was some
3687         debugging leftovers.
3688         - Don't use the line indent when we shouldn't.
3689         * RichTextBox.cs: Add support for paragraph left indents.
3690
3691 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3692
3693         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
3694         Seems like the class status pages doesn't catch params differences.
3695
3696 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
3697
3698         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
3699
3700 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
3701
3702         * ComboBox.cs: Setting Text should have no effect if item text of
3703         selected item exactly matches value. First lookup text using
3704         case-sensitive comparison, and fallback to case-insensitive comparison.
3705         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
3706         allow startIndex to be last index. Changed ArgumentOutOfRangeException
3707         paramname to match MS. Restart from first item if string is not found
3708         after startIndex. Fixed paramname of ArgumentNullException that is
3709         thrown for null value in ObjectCollection.Contains.
3710
3711 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
3712
3713         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
3714
3715 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3716
3717         * ListControl.cs: In SelectedValue use value.Equals to compare for
3718         equality instead of ==, otherwise it will fail for strings.
3719         Fixes #80794.
3720
3721 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3722         
3723         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
3724         since the caret won't show up unless ShowSelection is true. 
3725         Fixes #80795.
3726
3727 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3728
3729         * Application.cs: When disabling all forms but the main form, do not
3730           disable any descendants of the main form (such as mdi children or
3731           other parented forms). Fixes #80822 on Windows.
3732         * Form.cs: If we have a parent, set the WS_CHILD style.
3733         * Control.cs: Update the window styles if the control whose parent has
3734           changed is a form (the WS_CHILD style has to be switched).
3735
3736 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
3737
3738         * XplatUIStructs.cs: MsgUIState structure added.
3739
3740 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
3741
3742         * FileDialog.cs: Removed need for separate fileName field. On 2.0
3743         profile, do not check filename(s) for illegal character if filename(s)
3744         were set non-interactively but always check on 1.0 profile. Fixed NRE
3745          in DefaultExt and only strip off first leading dot. Improve exception
3746         message when invalid Filter is set. Do not ignore InitialDirectory if
3747         it does no exist. Store specified Title, and if empty use default
3748         title (depending on type of dialog). Added an internal DialogTitle 
3749         property for retrieving dialog title. Fixed logic of displayed dir to
3750         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
3751         string as its buggy.
3752         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
3753         FileName is a zero-length string (it can never be null). Override 
3754         DialogTitle property to set default title of dialog box.
3755         * SaveFileDialog.cs: Override DialogTitle property to set default
3756         title of dialog box.
3757
3758 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
3759
3760         * FileDialog.cs: Modify default text of filename and filetype labels
3761         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
3762         after we've updated the SelectedIndex. Fixes part of bug #80887.
3763         * SaveFileDialog.cs: Set text of filetype label.
3764
3765 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3766
3767         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
3768         label field. Needed by latest Jackson's fixes for ListView.
3769
3770 2007-02-16  Andreia Gaita  <avidigal@novell.com>
3771
3772         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
3773         print preview images.
3774
3775 2007-02-16  Jackson Harper  <jackson@ximian.com>
3776
3777         * ListView.cs: Make AfterLabelEdit work correctly.
3778         * FileDialog.cs: After changing the name of the folder, we have to
3779         make sure that it is created, or that we pop up an error because
3780         it already exists.
3781
3782 2007-02-16  Jackson Harper  <jackson@ximian.com>
3783
3784         * X11Dnd.cs: Implement aliases on mime handlers, so things like
3785         System.String are mapped to text.
3786         - Handle dataobjects, getting all the possible formats out of them
3787         - We dont need the drag event args before we give feedback. This
3788         allows feedback cursors to be immediate before selections have
3789         been converted.
3790
3791 2007-02-16  Jackson Harper  <jackson@ximian.com>
3792
3793         * TextBoxBase.cs: Modified the method for inserting images to
3794         taking a line and position instead of tag and position.
3795         * RichTextBox.cs: Handle PngBlip data by inserting the png image
3796         into the RTF file.
3797         * TextControl.cs: Allow images to be inserted as the first tag of
3798         a line.
3799         - Fix some off by one issues when we assume the first tag is a
3800         text tag, not an image tag.
3801
3802 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3803
3804         * ListView.cs: Set focus to ListView when ItemControl gets a
3805         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
3806         Fixes part of #80467.
3807
3808 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3809
3810         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
3811           validate Text input (if null or empty string reset Value to default
3812           value). Fixes #80830.
3813
3814 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3815
3816         * ListView.cs: Set owner as null for columns and items when
3817         Dispose is invoked. Fixes #80607.
3818
3819 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
3820
3821         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
3822         showing DropDowns, don't show a Grip when doing Flow layout.
3823         [This fixes the toolbox in PDN 2.72.]
3824         * ToolStripItem.cs: Add Anchor property and some internal properties to
3825         reduces needed changes to FlowLayout.
3826         * ToolStripOverflow.cs: Remove unused variable.
3827         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
3828         use it in the layout calculations.
3829
3830 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3831
3832         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
3833         reported in #79640.
3834         
3835         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
3836         size calculation.
3837
3838 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3839
3840         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
3841         MeasureString format, it can make button very large in some cases, it is
3842         strange but is what win32 do.
3843
3844 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3845
3846         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
3847         size calculation.
3848
3849         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
3850         rendering, the value is based on MenuAccessKeysUnderlined.
3851
3852 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
3853
3854         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
3855         for most themes.
3856         
3857         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
3858         
3859         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
3860         and use MenuAccessKeysUnderlined instead.
3861
3862 2007-02-13  Andreia Gaita  <avidigal@novell.com>
3863
3864         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
3865         A selected control would not get a Focus call if:
3866                 - the default active control of the container is the same as
3867                   the one that was selected
3868                 - we are switching from one container to another
3869         Under these conditions, the container being selected already has
3870         an active_control, which is the same as the one being activated, 
3871         so set_ActiveControl would always return and not send the Focus
3872         call. Fix to check if the currently active control of the container
3873         is actually focused.
3874
3875 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
3876
3877         * StatusStrip.cs: Implement the spring layout.
3878         * ToolStripControlHost.cs: Make sure the hosted control's visibility
3879         always matches the host.
3880         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
3881         and TextAfterImage.
3882
3883 2007-02-13  Andreia Gaita  <avidigal@novell.com>
3884
3885         * Control.cs: Code reorganization only.
3886           - Reorganize the WndProc cases so that each case has it's own handling method, 
3887           to help with the no-line-numbering stack traces.
3888           - Formatting changes (it's vstudio's fault, really :p)
3889
3890 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3891
3892         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
3893           Thread.CurrentUICulture to match DateTimePicker's (and MS)
3894           behaviour.
3895
3896 2007-02-12  Jackson Harper  <jackson@ximian.com>
3897
3898         * RichTextBox.cs:
3899         * TextBox.cs: By default we have a non multiline document
3900         - use the multiline property instead of the internal variable
3901         * TextBoxBase.cs: Treat multiline and non multiline the same in
3902         most places.
3903         - Use the documents multiline flag instead of tracking it ourself
3904         * TextControl.cs: Attempt at getting multiline to match MS
3905         behavior.  Lines now track an offset, which is either their X or Y
3906         offset depending on whether or not we are in multiline mode.
3907         - Update all the methods to understand that lines have an X value.
3908         - Fix crash in Undo::Duplicate when empty lines are deleted.
3909
3910 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
3911
3912         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
3913         code moved to properties PreferredHeight and PreferredWidth. It solve the
3914         all problems when preferred sizes must be recalculated. Fixes #80801.
3915
3916 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
3917
3918         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
3919         font height when compatible_text_rendering is false. Partially fix #80801.
3920
3921 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3922
3923         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
3924
3925 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3926
3927         * Form.cs: Improved exception messages in ShowDialog.
3928
3929 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
3930
3931         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
3932         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
3933         if not set. Fixes bug #80764. Avoid accessing current_settings field
3934         directly.
3935
3936 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
3937
3938         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
3939         false.
3940
3941         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
3942         public in 2.0 and for easy maintenance and dont break compatibility it is 
3943         internal in 1.1.
3944         
3945 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
3946
3947         * ToolStripItem.cs: Implement using images from ImageList.
3948
3949 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3950
3951         * DateTimePicker.cs: Change default date-formatting culture from
3952           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
3953           seems to be the way MS does it.
3954
3955 2007-02-08  Andreia Gaita  <avidigal@novell.com>
3956
3957         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
3958         (the 6 was cut off on the right side)
3959
3960 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
3961
3962         * Form.cs: Tell MenuStrips to close when the form is clicked.
3963         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
3964         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
3965         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
3966         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
3967         support for Overflow, where items that do not fit are automatically
3968         reparented to a drop down menu.
3969         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
3970         Also: fixes bug #80747.
3971
3972 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3973
3974         * ComboBox.cs: Remove warning (unused code).
3975         * ScrollableControl.cs: Remove warning for 1.1 profile.
3976
3977 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3978
3979         * Form.cs: Remove a warning.
3980
3981 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3982
3983         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
3984           'g' specifier, not documented anywhere, but seems to always show up
3985           as a single space (might have something to do with the DateTime 'g'
3986           specifier, which is the era format, but since DateTimePicker can't
3987           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
3988           won't crash if the format has an unmatched quote. Now shows
3989           single-character formats correctly. Fixes #80744.
3990
3991 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
3992
3993         * StatusStrip.cs: Stretch property needs to call base.Stretch,
3994         not this.Stretch to fix stack overflow. [Fixes bug #80760]
3995
3996 2007-02-07  Chris Toshok  <toshok@ximian.com>
3997
3998         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
3999         background color.  it overwrites the background image we've
4000         already painted.  Fixes #80599.
4001
4002 2007-02-07  Chris Toshok  <toshok@ximian.com>
4003
4004         * DataGrid.cs: return immediately from Edit() when there are no
4005         columns.  Fixes #80662.
4006
4007 2007-02-07  Chris Toshok  <toshok@ximian.com>
4008
4009         * MessageBox.cs: fix #80625.  don't always show the Help button in
4010         2.0.  use the displayHelpButton parameter to determine if we
4011         should show it. Also, make the internal show_help field private.
4012
4013 2007-02-07  Chris Toshok  <toshok@ximian.com>
4014
4015         * Control.cs (SetVisibleCore): check in the proposed patch for
4016         80604, and set is_visible before calling CreateControl.
4017
4018 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
4019
4020         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
4021         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
4022         on it.
4023
4024 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
4025
4026         * MenuAPI.cs: hotkey_active internal field added, it is required because
4027         we need to know when hotkeys must be draw, before this change a keystate
4028         Navigating was used but we can have menu in navigating state without
4029         hotkeys. Fixes #80694.
4030         
4031         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
4032
4033 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4034
4035         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
4036           corresponding events and methods to be internal for 1.1 profile and
4037           public for 2.0 profile (required by SizeGrip).
4038         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
4039           implicit control list). Don't set the size nor the location of the
4040           SizeGrip anymore as it's not needed.
4041         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
4042           draw directly on the captured control (fixes #80656). Removed
4043           ShowGrip (it wasn't used anywhere), redraw (always true), added
4044           GetDefaultSize and GetDefaultRectangle to calculate defaults.
4045         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
4046           be called from SizeGrip.
4047
4048 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4049
4050         * Timer.cs: Throw ArgumentException if Interval <= 0.
4051
4052 2007-02-05  Jackson Harper  <jackson@ximian.com>
4053
4054         * TreeView.cs: We need to check scrollbar visibility when window
4055         visibility is updated, because non visible trees don't ever add
4056         scrollbars.
4057         * Cursor.cs: We want the override cursor to be reset to NULL when
4058         we set current cursor to the default cursor.
4059
4060 2007-02-05  Jackson Harper  <jackson@ximian.com>
4061
4062         * TextControl.cs: Don't have crlfs when we are non multiline.
4063         - Consolidate the line position.
4064
4065 2007-02-05  Jackson Harper  <jackson@ximian.com>
4066
4067         * X11Keyboard.cs: BACK+CTRL gets a special char code.
4068
4069 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4070
4071         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
4072           handling LeaveNotify->NotifyUngrab in order to send
4073           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
4074           after calling XUngrabPointer, so we call WindowUngrabbed directly
4075           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
4076         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
4077           MouseCaptureChanged correctly. Also create handles if changing
4078           Capture (matches MS behaviour).
4079
4080 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4081
4082         * SizeGrip.cs: Make the last change 2.0 only.
4083
4084 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4085
4086         * SizeGrip.cs: If resizing and the capture is lost, revert any size
4087           changes to initial size (fixes #80597).
4088
4089 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4090
4091         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
4092
4093 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4094
4095         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
4096           background) and only allow dragging if enabled. This way the
4097           sizegrip can be used to fill the open square that otherwise would
4098           have been shown in the bottom right corner of ScrollableControl
4099           when ScrollableControl is not suppose to support sizing.
4100         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
4101           sizegrip is shown and enabled, and hook up with necessary events.
4102
4103 2007-02-01  Chris Toshok  <toshok@ximian.com>
4104
4105         * DataGridTextBoxColumn.cs: clean up the
4106         GetFormattedString/GetColumnValueAtRow combination of functions.
4107         Also fix UpdateUI, and the initial state of
4108         IsInEditOrNavigateMode.
4109
4110         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
4111         aren't supposed to scroll the textbox here, we're supposed to
4112         scroll the datagrid.
4113
4114 2007-02-01  Chris Toshok  <toshok@ximian.com>
4115
4116         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
4117         setting the position.
4118
4119 2007-02-01  Chris Toshok  <toshok@ximian.com>
4120
4121         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
4122         here, since the most recent focus fixes keep us from generating
4123         the Leave event when our textbox gets focus.
4124         (Edit): we should be passing null for the column style's
4125         instantText parameter.
4126         
4127 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
4128
4129         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
4130         raised.  Fixes menu text/icons not showing up in PDN.
4131
4132 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4133
4134         * Control.cs: Remove code in constructor that makes every
4135         control with WS_CHILD set have initial location -1, -1.
4136
4137 2007-01-31  Jackson Harper  <jackson@ximian.com>
4138
4139         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
4140         XplatUIX11.
4141         * XplatUIX11.cs: Give teh keyboard to teh dnd.
4142
4143 2007-01-31  Jackson Harper  <jackson@ximian.com>
4144
4145         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
4146         - Remove some debug code.
4147
4148 2007-01-31  Jackson Harper  <jackson@ximian.com>
4149
4150         * XplatUIX11.cs: If you set the override cursor during a grab, it
4151         should actually override the grab cursor.  This comes into play
4152         when you are setting custom cursors in a DND feedback method.
4153
4154 2007-01-31  Jackson Harper  <jackson@ximian.com>
4155
4156         * X11Dnd.cs: Add support for handling the QueryContinue and
4157         GiveFeedback events.
4158         - Cancel drag and drop actions when the escape key is clicked.
4159         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
4160         can handle the ESCAPE key.
4161         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
4162         done when dnd events are continued after the button is released.
4163         - Add a new helper method so that dnd can translate key events.
4164
4165 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
4166
4167         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
4168         make it more obvious what is happening.
4169
4170 2007-01-30  Jackson Harper  <jackson@ximian.com>
4171
4172         * XplatUIX11.cs: Don't break when handling button release in drag
4173         and drop operations. We need that BUTTONUP message to get through
4174         so capture is released.
4175         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
4176         this is handled automatically when the mouse is down.
4177
4178 2007-01-30  Jackson Harper  <jackson@ximian.com>
4179
4180         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
4181         is closed, so we need to make sure that we aren't changing the
4182         dialog result when the OK (Open or Save) button has been clicked
4183         and we are closing the window ourselves.  Note we don't need to
4184         worry about the cache being written in this case, because it was
4185         already done in the previous FilOk call.
4186
4187 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4188         
4189         * DateTimePicker.cs: Remove a warning.
4190         * ComboBox.cs: Remove a couple of warnings.
4191
4192 2007-01-29  Chris Toshok  <toshok@ximian.com>
4193
4194         * XplatUIX11.cs: don't crash, and remove the icon if the user has
4195         set one, if SetIcon is passed a null icon.
4196
4197 2007-01-29  Andreia Gaita  <avidigal@novell.com>
4198
4199         * TextBox.cs: Redraw when the password characters changes
4200         * TextControl.cs: Check if textbox has a password char and draw 
4201         a line of password chars instead of the text in the line. LineTag gets 
4202         an extra Draw() method which allows document.Draw to override the text 
4203         that will be drawn. Removes 1024 char limitation on length of passworded 
4204         lines.
4205
4206 2007-01-29  Jackson Harper  <jackson@ximian.com>
4207
4208         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
4209         single chars is not.
4210
4211 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
4212
4213         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
4214         one pixel.  Fix a StackOverflowException caused by an overload wrongly
4215         calling itself.
4216
4217 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
4218
4219         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
4220         also remove ProcessArrowKey and put the code inside ProcessKeys.
4221
4222 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
4223
4224         * PaddingConverter.cs: Added.
4225
4226 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4227         
4228         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
4229         ShowPanels is false (fixes #80600). Only draw up to 127 characters
4230         of text (fixes #80601). For panels clip the text to draw to the
4231         panel (fixes #80603).
4232
4233 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4234
4235         * ComboBox.cs: Fixed implementation of ResetText.
4236
4237 2007-01-25  Jackson Harper  <jackson@ximian.com>
4238
4239         * TextControl.cs: For the last char of a line we need to use the
4240         line size, not that chars width, since it won't actually be
4241         computed since the right side of a char is based on the start of
4242         the left side of the next char, and the next char does not exist.
4243
4244 2007-01-25  Chris Toshok  <toshok@ximian.com>
4245
4246         * Splitter.cs: fix the new unit tests, and reindent some switch
4247         statements.
4248
4249 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4250
4251         * ComboBox.cs: Implemented 2.0 methods and events.
4252         * TextBoxBase.cs: Added OnTextUpdate, so that
4253         ComboBox.ComboTextBox can inform ComboBox of it.
4254
4255 2007-01-25  Jackson Harper  <jackson@ximian.com>
4256
4257         * TextControl.cs: Respect ShowSelection when deciding whether or
4258         not to display the caret, this allows comboboxes to have carets
4259         when the combotextbox does not have focus.
4260
4261 2007-01-25  Jackson Harper  <jackson@ximian.com>
4262
4263         * TextControl.cs: Add a Suspend/Resume for updating, basically the
4264         same as the Suspend/Resume for recalc, except this will do actual
4265         Invalidates.
4266         - New Undo manager, works much like the MS version.
4267         - Implemented Redo
4268         * TextBoxBase.cs: The Cut operation is undoable.
4269
4270 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4271         
4272         * TextBoxBase.cs: Don't antialias text. Makes it look way better
4273         on Windows (no difference on Linux).    
4274
4275 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4276
4277         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
4278         we don't want to activate any windows. Fixes #79433.
4279
4280 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
4281
4282         - ButtonBase.cs: Fix capitalization of parameter: disposing.
4283         [Fixes bug #80609]
4284
4285 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
4286
4287         * FileDialog.cs:
4288         - Move to using System.ComponentModel.EventHandlerList
4289         - Replace Refresh with Invalidate
4290         - Clear the mime filecache on closing
4291         - Some other memory reducing work. After beeing closed FD now uses
4292           only about 300 KB for the fdo mime stuff plus the memory of the
4293           cached icons.
4294         * Mime.cs: Changed coding style and removed unnecessary commented
4295         code. Some more memory memory reducing work.
4296
4297 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4298
4299         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
4300         a few other missing 2.0 properties.
4301         * Theme.cs: Added DrawFlatStyleComboBox.
4302         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
4303
4304 2007-01-24  Chris Toshok  <toshok@ximian.com>
4305
4306         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
4307         wake_waiting flag, not just when there's data to be read.  if we
4308         don't, then future wakeup's won't reach us and we'll be doomed to
4309         wait for the entire 1 second timeout forever (unless there are X
4310         events to be had).
4311
4312 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4313
4314         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
4315         until you pass Items.Count, not Items.Count - 1 like 1.1.
4316
4317 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
4318
4319         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
4320
4321 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4322
4323         * ToolStripContainer.cs: The recent Dock fix exposed that I was
4324         adding the panels in the wrong order.
4325
4326 2007-01-24  Jackson Harper  <jackson@ximian.com>
4327
4328         * TextBoxBase.cs: When we move the caret we also need to move the
4329         selection, this fixes some random crashing after doing select
4330         text, unselect, delete a char, paste.
4331
4332 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4333
4334         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
4335
4336 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4337
4338         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
4339         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
4340         * ToolBar.cs: Force redraw in BackgroundImageChanged.
4341
4342 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4343
4344         * ToolBar.cs:
4345         - Implement support for vertical toolbars. Fixes #80539;
4346         - Call LayoutToolBar when resize, it fix some other problems in layout.
4347         - Rename requested_height to requested_size, as we can have width on it
4348         when toolbar is vertical.
4349         - Create a private property "Vertical" that uses Dock to verify when 
4350         toolbar is vertical or not.
4351         - Set ControlStyles when change Dock property.
4352         - Refactory in LayoutToolBar to have better variables names and to support
4353         vertical toolbars.
4354         - Fixes default value for ButtonSize when button count is equal zero, size
4355         must be (39, 36) test case writed.
4356
4357 2007-01-23  Chris Toshok  <toshok@ximian.com>
4358
4359         * Control.cs: fix the checks so that they work correctly for mdi
4360         parents/children.
4361
4362 2007-01-23  Chris Toshok  <toshok@ximian.com>
4363
4364         * Control.cs: ControlCollection seems to have super-secret
4365         abstraction breaking knowledge of Mdi containers.  allow MdiClient
4366         to add toplevel controls.
4367
4368 2007-01-23  Chris Toshok  <toshok@ximian.com>
4369
4370         * Control.cs: throw an ArgumentException if a toplevel control is
4371         added to our control collection from ControlCollection.Add, as
4372         well as from ControlCollection.IList.Add.  This fixes the
4373         ControlSetTopLevelTest.TestTopLevelAdd unit test.
4374
4375         Also, in ControlCollection.IList.Add, don't through an
4376         ArgumentNullException, throw an ArgumentException, when value ==
4377         null.  This matches MS.
4378
4379 2007-01-23  Chris Toshok  <toshok@ximian.com>
4380
4381         * BindingSource.cs: initial, incomplete, implementation of
4382         BindingSource.
4383
4384 2007-01-23  Jackson Harper  <jackson@ximian.com>
4385
4386         * TextControl.cs:
4387         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
4388         that I can fix a broken unit test (TextBoxTest::ClearUndo)
4389         
4390 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4391
4392         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
4393
4394 2007-01-23  Andreia Gaita  <avidigal@novell.com>
4395
4396         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
4397         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
4398         IndexOfKey() for 2.0
4399
4400 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4401
4402         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
4403         to prevent it from changing z-order.
4404         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
4405         leave UI updates in MdiWindowManager.
4406         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
4407         1 sized (NC handling goes weird on Linux otherwise).
4408         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
4409         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
4410         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
4411         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
4412         and SetWindowState(s) to allow for changing the size of an activated child
4413         before activating it (reduces a lot of flicker).
4414
4415 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4416
4417         * Form.cs: Changing FormBorderStyle has different semantics based
4418         on whether the Form is visible or not.  If not visible, don't change
4419         the Size.  But InvalidateNC needs to be called to force the window
4420         to pick up the changes and redraw itself.  [Fixes bug #80574]
4421
4422 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4423
4424         [Moma work]
4425         * ContainerControl.cs: ProcessCmdKey.
4426         * ErrorProvider.cs: new constructor.
4427         * Form.cs: fix AutoValidateEvent compiler warning.
4428         * Label.cs: fix OnAutoSizeChanged compiler warning.
4429         * MenuStrip.cs: fix CanOverflow compiler warning.
4430         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
4431         * TextBox.cs: Dispose.
4432         * ToolStrip.cs: CanOverflow, re-enable double buffering.
4433         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
4434         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
4435         * ToolStripItem.cs: Overflow, RightToLeft properties.
4436
4437 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4438
4439         * Form.cs: Move the layout of the main form to MdiWindowManager.
4440         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
4441         do a layout of the main window to update MdiClient's client area to
4442         the right area. Fixes #80533. Remove the calculation of nc size, 
4443         it was just wrong and the correct one is the same as for 
4444         InternalWindowManager. 
4445
4446 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
4447
4448         * Control.cs: Setting Anchor or Dock needs to reset the other
4449         to its default.  [Fixes bug #80556]
4450
4451 2007-01-20  Chris Toshok  <toshok@ximian.com>
4452
4453         * CheckedListBox.cs: class status changes.
4454
4455         * ScrollableControl.cs: same.
4456
4457         * RichTextBox.cs: same.
4458
4459         * ContainerControl.cs: same.
4460
4461         * ListView.cs: same.
4462
4463         * NotifyIcon.cs: same.
4464
4465         * MenuStrip.cs: same.
4466
4467         * RadioButton.cs: same.
4468
4469         * CheckBox.cs: same.
4470
4471         * PrintPreviewDialog.cs: same.
4472
4473         * Form.cs: same.
4474
4475 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
4476
4477         * TreeNode.cs: Apply Alan's patch for Name property.
4478
4479 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4480         
4481         * Form.cs: Implemented SizeGripStyle.
4482         * SizeGrip.cs: Check for minimum and maximum size for the
4483         control being resized and only resize if size has actually
4484         changed.
4485
4486 2007-01-19  Chris Toshok  <toshok@ximian.com>
4487
4488         * DataGridColumnStyle.cs: stop setting _readonly in the
4489         PropertyDescriptor setter.  fixes a unit test failure.
4490
4491         also, rename ParentReadOnly to TableStyleReadOnly, and have it
4492         just consult our table style (if we have one).  We don't need to
4493         consult the datagrid readonly attribute because that's passed in
4494         as the _ro arg to Edit.  this simplifies things a little.
4495         
4496         * DataGrid.cs: use CurrentColumn instead of
4497         current_cell.ColumnNumber just to simplify some of the code.
4498
4499         switch the order of some things in the CurrentCell setter to keep
4500         the previous cell from getting a textbox again -
4501         EnsureCellVisibility causes scrolling to happen, which calls Edit.
4502         So we need to set the new cell before calling it.
4503         
4504         call Edit in OnEnter, as does Microsoft.
4505         
4506         also, make sure the current table style isn't the one we create
4507         initially when checking to see if it's different than the one
4508         we're setting it to in BindColumns (this fixes #80421).
4509
4510         * GridTableStylesCollection.cs: table styles can have "" for a
4511         mapping name.  part of the fix for #80421.
4512
4513         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
4514         Edit significantly.
4515
4516 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4517
4518         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
4519         and less GDI object leaky-er.
4520
4521 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4522
4523         * LinkLabel.cs: Add opaque control style
4524
4525 2007-01-18  Jackson Harper  <jackson@ximian.com>
4526
4527         * TextControl.cs: Calculate width properly.
4528         - Don't store the tag's X offset, this can be figured out very
4529         easily.
4530         - When getting the caret tag make sure to get the last empty tag.
4531
4532 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4533
4534         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
4535         [Fixes bug #79959]
4536
4537         * Control.cs: Color.Empty shouldn't count for previous transparent
4538         redraw changes.
4539
4540 2007-01-18  Jackson Harper  <jackson@ximian.com>
4541
4542         * TextBox.cs:
4543         * RichTextBox.cs:
4544         * TextControl.cs: Starting to merge in some pieces of my older
4545         undo work.  Basically just some slight cleanup of the undo API.
4546
4547 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4548
4549         * TrackBar.cs: Fix signature of RightToLeftLayout.
4550         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
4551         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
4552         * Application.cs: Implemented UseWaitCursor.
4553
4554 2007-01-18  Jackson Harper  <jackson@ximian.com>
4555
4556         * TextControl.cs: We can't skip tags if any part of the tag is
4557         visible.
4558
4559 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4560
4561         * ContainerControl.cs: Override OnLayout.
4562
4563 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4564
4565         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
4566
4567         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
4568         everything else.
4569
4570 2007-01-18  Chris Toshok  <toshok@ximian.com>
4571
4572         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
4573         (leftover from the container_selected days, I'd wager).  fixes bug
4574         #80546.
4575
4576 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4577
4578         * Control.cs: Apply patch from George to fix the new testcase on
4579         bug #80451.  We can't just check for Color.Transparent, we need 
4580         to check if the back color's alpha channel is < 255.
4581
4582 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4583
4584         * Form.cs: Move setting show_icon = true to before the constructor
4585         so that the base constructor has that information when it calculates
4586         the form's size.  Was causing forms to be (6, 6) bigger than they
4587         were supposed to be.  Thanks for catching this Rolf!
4588
4589 2007-01-18  Jackson Harper  <jackson@ximian.com>
4590
4591         * TextControl.cs: When replacing a selection we need to invalidate
4592         from the initial selection start, because selection start is moved
4593         to the end of the replacement.
4594
4595 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4596
4597         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
4598
4599 2007-01-18  Chris Toshok  <toshok@ximian.com>
4600
4601         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
4602         I just added.
4603
4604 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
4605
4606         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
4607         layout methods and properties from ToolBarButton must be available
4608         into ToolBarButtonInfo.
4609
4610 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4611
4612         * Control.cs: If the control has a transparent background, we
4613         need to refresh it when it moves and when it's parent's background
4614         image changes.  [Fixes bug #80451]
4615
4616 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
4619
4620 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4621
4622         * XplatUIWin32.cs: Implement proper double buffering for Windows.
4623         [Fixes bug #80447, and probably speeds up things as well]
4624
4625 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4626
4627         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
4628         * XplatUIWin32.cs: We need to recalculate NC size after changing 
4629         window style to toolwindow (otherwise the client rectangle will be
4630         3 pixels to small for some reason).
4631         * MdiWindowManager.cs: Revert NC size calculations to match how
4632         they are calculated only based on window styles (to match
4633         Win32AdjustWindowRectEx, since otherwise when setting size or 
4634         location, Control will call Win32AdjustWindowRectEx to update client 
4635         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
4636         calculate a different value of client size causing another paint 
4637         (and flickering))
4638         * InternalWindowManager.cs: When moving or resizing a window only
4639         update size or location if they actually changed.
4640         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
4641         (seems to match Windows behaviour better). Cleaned up 
4642         ManagedWindowDecorations to draw what's needed and nothing else
4643         (was drawing borders and lines where they shouldn't be)
4644         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
4645         (style = 0xFFFF) and takes into account caption height when 
4646         calculating window rectangle.   
4647
4648 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4649
4650         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
4651         can be added to toolbar multiple times, we need to maintain a list of 
4652         button information for each positions.
4653
4654 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4655
4656         * ToolBar.cs: Some small stetic changes.
4657
4658 2007-01-16  Jackson Harper  <jackson@ximian.com>
4659
4660         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
4661         that allow us to have nested recalc = false blocks.
4662         - Add paste support for images in the RichTextBox
4663         * RichTextBox.cs: flush the text after the color is changed, so
4664         the change takes effect.
4665         - Use SuspendRecalc
4666         - Some extra debugging info
4667         * TextControl.cs: Tags no longer track their length, it is just
4668         computed from the next tags length, this makes things a little
4669         simpler and reduces places that we have to track length changes.
4670         - Refactored the linetag class a little so we could make it
4671         a base class for different kinds of tags
4672         - Created a image tag, a tag that can have a single image inserted
4673         into it
4674         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
4675         that we can call suspend multiple times.
4676         - Add some debugging methods
4677
4678 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4679
4680         * MdiClient.cs: Add ActivatePreviousChild for 
4681         mdi child window navigation.
4682         * Form.cs: Use MdiClient.ActivateNextChild/
4683         ActivatePreviousChild instead of Form.SelectNextControl
4684         to select the next/previous child since 
4685         SelectNextControl doesn't do it in the same order
4686         as mdi children should do it.
4687
4688 2007-01-16  Chris Toshok  <toshok@ximian.com>
4689
4690         * Control.cs: remove container_selected field.
4691
4692 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4693
4694         * MdiClient.cs: Update main form's ActiveChild when
4695         updating keyboard focus for the mdi child.
4696
4697 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
4698
4699         * Control.cs: PreferredSize fix.
4700
4701         * Form.cs: Add several 2.0 events, properties, and methods.
4702
4703 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
4704
4705         * Form.cs: Provide meaningful message when MdiParent is assigned a
4706         Form that is not an MdiContainer.
4707
4708 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4709
4710         * MdiClient.cs: Update main form's ActiveChild when
4711         activating a mdi child.
4712
4713 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4714
4715         * MdiWindowManager.cs: Fix NRE when merging menus and main form
4716         doesn't have a menu.
4717
4718         * Form.cs: Request NCRecalc after creating a mdi child window.
4719         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
4720         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
4721         
4722         * MdiClient.cs: Add new method SendFocusToActiveChild that either
4723         sends keyboard focus to the active child, or to the MdiClient
4724         if there are no child forms.
4725         
4726 2007-01-15  Chris Toshok  <toshok@ximian.com>
4727
4728         * ListView.cs: drop the *Internal overrides, just do our work in
4729         ItemControl's WndProc instead.
4730
4731         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
4732         of the various controls, and forward the events properly (in the
4733         same manner as MS) from the textbox to the UpDown.  Also the
4734         ActiveControl of the UpDownBase gets set properly now.  Finally,
4735         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
4736
4737         * NumericUpDown.cs: set Text in the ctor.
4738
4739         * DomainUpDown.cs: call UpdateEditText in the ctor.
4740         
4741         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
4742         so even a Selectable = false textbox can be focused if you click
4743         in it.  Go figure.
4744
4745         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
4746         just add their handling in their respective WndProc's.  Also add
4747         an explicit FocusInternal method that doesn't consult CanFocus
4748         before calling Select(this).
4749
4750         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
4751         do our work in WndProc instead.
4752
4753         * TabControl.cs: same.
4754
4755         * ComboBox.cs: same.
4756
4757 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4758
4759         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
4760         Fixes #80006.
4761
4762 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4763
4764         * ListViewItem.cs:
4765         * ThemeWin32Classic.cs: Don't draw the item text outside
4766         item bounds in Details view, as well as use trimming.
4767         Fixes bug #80376.
4768
4769 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
4770
4771         * Form.cs: Implement Form.ShowIcon.
4772         
4773         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
4774         null, which when combined with the DlgModalFrame window style removes
4775         the icon from the title bar.
4776
4777 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
4778
4779         * Control.cs: Call OnMouseClick after OnClick. (2.0)
4780
4781 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4782
4783         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
4784         menu when mdi child windows theres a menu, uses insert to get icon
4785         at first position. Partially fix #80006.
4786
4787 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
4788
4789         * Clipboard.cs: Implement 2.0 methods.
4790
4791 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4792
4793         * Menu.cs: Implement Insert method of MenuItemCollection class
4794         to fix MenuMerge.
4795
4796 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4797
4798         * ListView.cs: Implement 2.0 FindItemWithText method.
4799
4800 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
4801
4802         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
4803         to calculate menu bar size. Fixes #80290.
4804
4805 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
4806
4807         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
4808
4809 2007-01-11  Chris Toshok  <toshok@ximian.com>
4810
4811         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
4812         initial form.
4813
4814 2007-01-11  Chris Toshok  <toshok@ximian.com>
4815
4816         * LinkLabel.cs: make sure to call base.Select in our Select method
4817         if it turns out we're going to be selected (i.e. if we have a link
4818         that is going to receive focus).  That way our container's
4819         ActiveControl is updated properly.
4820
4821 2007-01-11  Chris Toshok  <toshok@ximian.com>
4822
4823         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
4824         they have 1 or more links.  this fixes the crash gert reported.
4825
4826 2007-01-11  Andreia Gaita  <avidigal@novell.com>
4827
4828         * ContainerControl.cs: Remove ContainerSelected flag, not needed
4829         anymore.
4830
4831         * Control.cs (Controls.Add): Check if control to be added to the collection
4832         is a top level control, and throw an ArgumentException if it is.
4833         Remove ContainerSelectedFlag, not needed anymore.
4834
4835         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
4836         top most control doesn't activate the form. This fixes a problem in the
4837         MessageBox, where the default button wouldn't get focus because the form
4838         was activated before being Loaded - when the Owner is set, SetTopMost is
4839         called, and it would activate it.
4840
4841 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
4842
4843         * Button.cs: When clicked and setting the parent form's DialogResult,
4844         use FindForm instead of Parent, since parent could be a container
4845         control and not the Form.  Fixes bug #80495.
4846
4847 2007-01-10  Chris Toshok  <toshok@ximian.com>
4848
4849         * Form.cs: move the call to SendControlFocus into the same
4850         is_loaded check.
4851
4852 2007-01-10  Chris Toshok  <toshok@ximian.com>
4853
4854         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
4855         It breaks in the face of the new ActiveControl stuff, and should
4856         be unnecessary.
4857
4858         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
4859         activecontrol's focus if it's not already set, after we set
4860         ActiveControl, but before we call OnActivated.  Re-fixes #79667
4861         after the previous focus/active control fixes regressed it.
4862
4863         * Control.cs: reindent some code.
4864         
4865 2007-01-10  Chris Toshok  <toshok@ximian.com>
4866
4867         * Splitter.cs: clearing some outstanding changes from my tree.
4868         Replace all accesses (not writes) to the internal dock_style field
4869         with the Dock property.
4870
4871 2007-01-10  Chris Toshok  <toshok@ximian.com>
4872
4873         * Control.cs: make FireEnter, FireLeave, FireValidating, and
4874         FireValidated virtual.
4875
4876         * Form.cs: override and don't chain up calls to FireEnter and
4877         FireLeave.
4878
4879 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4880
4881         * ListView.cs: Add more text padding space when using
4882         auto resize for columns (the previous value didn't work fine).
4883
4884         * ThemeWin32Classic.cs: Update text position inside columns,
4885         to match the appeareance of .Net.
4886
4887         * ColumnHeader.cs: When using auto resize, only the Width should
4888         depend on the sub items, not the Height. Also, set width after
4889         auto resizing (the value of Width should never remain as -1 or -2).
4890
4891 2007-01-10  Chris Toshok  <toshok@ximian.com>
4892
4893         * Application.cs: fix compilation errors when debug is enabled.
4894
4895 2007-01-10  Chris Toshok  <toshok@ximian.com>
4896
4897         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
4898         add some nice ascii art pictures and explanation of the process).
4899         (GetMostDeeplyNestedActiveControl): new utility function we need
4900         because our ActiveControl can refer to a child container with its
4901         own ActiveControl.
4902
4903         * Form.cs (OnActivated): remove the call to SelectActiveControl
4904         from here, since you can override this method and not chain up,
4905         and winforms still sets the active control.
4906         (OnCreateControl): also remove the unnecessary SelectActiveControl
4907         call from here.
4908         (WndProc): it's actually called from the WM_ACTIVATE block, just
4909         before calling OnActivated.
4910
4911         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
4912         inside the else.  the ActiveControl setter will end up setting
4913         focus on @control.  This keeps us from setting it again (and
4914         generating an extra LostFocus/GotFocus pair).
4915         (Select (bool, bool)): reindent.
4916
4917 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
4918
4919         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
4920         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
4921         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
4922         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
4923         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
4924         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
4925         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
4926         ToolStripTextBox.cs: Another wave of corcompare work.
4927
4928 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4929
4930         * ColumnHeader.cs: Implement 2.0 AutoResize method using
4931         the Width property.
4932
4933         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
4934         methods by callling Column.AutoResize method on columns.
4935
4936 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
4937
4938         * Control.cs: Provide proper implementations of PreferredSize
4939         and GetPreferredSize (2.0).
4940
4941 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
4942
4943         * Form.cs: Remove one character (!) to make my previous OnClosing
4944         stuff work for modal windows like MessageBox.
4945
4946 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4947
4948         * ListView.cs:
4949         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
4950         ListView.Columns to get the last displayed column. Fixes #80452.
4951
4952 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
4953
4954         * Label.cs, LinkLabel.cs: Source code identation fixes.
4955
4956 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
4957
4958         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
4959         we dont need to invalidate only borders because when we invalidate four
4960         border lines the invalidate's generates a complete redraw of button, 
4961         because it now invalidate a complete rect some other redraws operations
4962         are fixed. Fixes #80196.
4963         
4964         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
4965         Remove ToolBarInvalidateEntireButton as it is not used.
4966
4967 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
4968         
4969         * Form.cs: Make sure that both OnClosing and OnFormClosing are
4970         called for 2.0 profile.
4971         * CloseReason.cs: Make class internal for 1.1.
4972
4973 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
4974
4975         * ToolStripManager.cs: Implement FindToolStrip functionality.
4976         * ToolStrip.cs: Register and unregister with ToolStripManager.
4977
4978 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
4979
4980         * Control.cs: This was messy.  2.0 moves much of ControlCollection
4981         to ArrangedElementCollection.  Implemented this with as few #if's as 
4982         possible (which is still too many).
4983
4984 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
4985
4986         * Control.cs: Implement SizeFromClientSize() [2.0].
4987
4988 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
4989
4990         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
4991         use Theme.BorderSize to calculate area instead of static value 1, 
4992         by the way use new BorderStaticSize instead     Border3DSize when 
4993         border_static is true. Fixes #79537.
4994         
4995         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
4996         
4997         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
4998         it is not needed.
4999
5000 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5001
5002         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
5003
5004 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5005
5006         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
5007         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
5008         
5009         * Hwnd.cs: 
5010         - border_static field added, it will used to define when a control 
5011         theres 3D border but it must be static (thin).
5012         - In GetWindowRectangle use Theme.BorderSize to calculate area 
5013         instead of static value 1, by the way use new BorderStaticSize instead
5014         Border3DSize when border_static is true.
5015
5016         * XplatUIX11.cs, XplatUIOSX.cs: 
5017         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
5018         
5019         * Theme.cs: BorderStaticSize field added.
5020
5021 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5022
5023         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
5024
5025 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5026
5027         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
5028         mimic same behavior than win32 that set border only in CreateParams,
5029         it fix problems under CreateParams overrides. Fix #79442 and partial
5030         fix #79537.
5031         
5032         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
5033         of thi control you must call recreate handle. 
5034         
5035         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
5036         need to do anything as RecreateHangle will take care about borders.
5037
5038 2007-01-05  Mike Kestner  <mkestner@novell.com>
5039
5040         * ListView.cs: hack to eliminate Lost/Got focus notifications on
5041         cycles between the ItemControl and parent.  Fixes #80388.
5042
5043 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
5044
5045         * Control.cs: Lazy init layout engine. Do not directly use 
5046         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
5047
5048 2007-01-05  Chris Toshok  <toshok@ximian.com>
5049
5050         * DataGrid.cs: don't forceably rebind columns in SetDataSource
5051         unless our list manager has changed (i.e. unless we have reason to
5052         believe our columns have changed).  Fixes #80422.
5053         
5054         also, disable the call do BindColumns in
5055         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
5056         1.1 the event isn't raised in response to a column addition on a
5057         table.)
5058
5059 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5060
5061         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
5062         that inheritors can not call it if they choose.  Fixes bug #80456.
5063
5064 2007-01-05  Andreia Gaita  <avidigal@novell.com>
5065
5066         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
5067         doesn't blow up with a null exception on marshalling.
5068         
5069 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5070
5071         * Control.cs: Implement several 2.0 protected properties and methods.
5072         Ensure that all necessary events are being called when properties
5073         are set.
5074
5075 2007-01-05  Mike Kestner  <mkestner@novell.com>
5076
5077         * ListView.cs: implement PgUp/PgDn for Details view.  Also
5078         fixes First/LastVisibleIndex to use the item_control.ClientRect 
5079         instead of the parent control.  Fixes #80378.
5080
5081 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
5082
5083         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
5084           determine whether to use yard-pound or not (bug #78399).
5085
5086 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5087
5088         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
5089         problems. So it is time to bring back the old popupbutton colors.
5090
5091 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5092
5093         * ColumnHeader.cs:
5094         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
5095         property by using the internal information of the
5096         columns order in ListView.
5097
5098 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
5099
5100         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
5101         Add 2.0 Tag properties.
5102
5103         * LinkArea.cs: Add 2.0 ToString method.
5104
5105 2007-01-03  Chris Toshok  <toshok@ximian.com>
5106
5107         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
5108         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
5109         when we're editing, which fixes #80047.
5110
5111 2007-01-03  Chris Toshok  <toshok@ximian.com>
5112
5113         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
5114         #80404.
5115
5116 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
5117
5118         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
5119         property and implementation.
5120
5121         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
5122         for MdiWindowListItem property.
5123
5124         * ToolStripDropDown.cs: Don't consider hidden menu items while
5125         laying out the menu.
5126
5127 2007-01-03  Andreia Gaita  <avidigal@novell.com>
5128
5129         * SendKeys.cs: window handle is not needed in win32, so just
5130         get the active window for X after parsing keys and don't use
5131         it when building the message; it is passed by parameter to the 
5132         Xplat method and used there to build the message instead. Also,
5133         wait for events to be processed on SendWait, as opposed to Send,
5134         which doesn't wait :) Playing with threads and Send() completely 
5135         hangs on ms.net, only SendWait() works.
5136         
5137         XplatUIX11.cs
5138         X11Display.cs: Check for valid window handle.
5139
5140 2007-01-03  Jackson Harper  <jackson@ximian.com>
5141
5142         * TextControl.cs: Need to prevent wrap calculations when replacing
5143         text (this was there before i removed it accidently).
5144         - Don't update the cursor during the positioning, just set it to
5145         selection_start at the end of the operaion.
5146
5147 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5148
5149         * Control.cs:
5150         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
5151         
5152 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5153
5154         * MonthCalendar.cs: Added Click and DoubleClick events again,
5155         but this time they only hide Control's Click and DoubleClick.
5156         
5157 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
5158
5159         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
5160         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
5161
5162 2007-01-02  Jackson Harper  <jackson@ximian.com>
5163
5164         * TextBoxBase.cs: We move the caret with the split now, so we
5165         don't need to explicitly move the caret after splitting.  This
5166         fixes the caret bumping down an extra line on Enter.
5167
5168 2007-01-02  Miguel de Icaza  <miguel@novell.com>
5169
5170         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
5171         2.72). 
5172
5173         * ScrollableControl.cs: Add Scroll event.
5174
5175 2007-01-02  Mike Kestner  <mkestner@novell.com>
5176
5177         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
5178         to fix all hdr height padding codepaths.  Fixes #80207.
5179
5180 2007-01-02  Chris Toshok  <toshok@ximian.com>
5181
5182         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
5183         setting it to the Control defaults anyway, and it being after the
5184         Dock set was screwing up layout.
5185         (set_Dock): don't short circuit out of setting base.Dock.  Also,
5186         no need to call UpdateStatusBar here, as it'll be re-layed out if
5187         it needs to be.
5188
5189 2007-01-02  Mike Kestner  <mkestner@novell.com>
5190
5191         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
5192         to header height for width == -1. Fixes the rest of #80207.
5193
5194 2007-01-02  Mike Kestner  <mkestner@novell.com>
5195
5196         * ListView.cs: rework the mouse event forwarding everaldo added
5197         to translate the coordinates to the parent control not
5198         raise the parent events until after we've done our work. Hover
5199         needs more work, in the case where HoverSelection is on, because
5200         the item control receives more than one MouseHover per Enter
5201         event, so we need to ensure only the "first" hover gets forwarded.
5202         Opening a minor bug for that.
5203
5204 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
5205
5206         * CheckedListBox.cs: Fixed SelectionMode to match MS.
5207         * ListControl.cs: Implemented AllowSelection property. Removed extra
5208         tabs.
5209         * ListBox.cs: Implemented AllowSelection property.
5210
5211 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5212
5213         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
5214         SelectedItem, it prevent for errors when you must disable item
5215         before perform click. Fixes #80409.
5216
5217 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5218
5219         * MenuAPI.cs: Prevent second level and beyond submenus to close
5220         until first level when move out side of popup.
5221         
5222 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5223
5224         * MenuAPI.cs:
5225         - Down submenu positin in three pixels.
5226         - Closes sub menu when mouse leaves from menu. Fixes #80402.
5227
5228 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5229
5230         * ThemeWin32Classic.cs:
5231         - Fix popup menu size adding one pixel on the top.
5232         - Down menu item border from two to one to mimic Win32.
5233         - Some source identation fixes. 
5234
5235 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5236
5237         * ThemeWin32Classic.cs: Use float numbers to calculate size and
5238         position of menu arrows, it fix wrong arrow size.
5239
5240 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5241
5242         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
5243         instead of line, it simplify draw operation and fix it using 3D
5244         borders to mimic Win32.
5245
5246 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
5247
5248         * StatusStrip.cs: Add implementation of the sizing grip.
5249
5250         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
5251         StatusStrip rendering.
5252
5253 2006-12-31  Chris Toshok  <toshok@ximian.com>
5254
5255         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
5256         override the layout style (anchor/dock) of the control.  assign to
5257         Dock instead.  Fixes bug #80416.
5258
5259         * ToolStrip.cs: same.
5260
5261 2006-12-31  Andreia Gaita  <avidigal@novell.com>
5262
5263         * ContainerControl.cs: Use ContainerSelected flag to check if 
5264         a Container is directly selected, or if Select is called on a 
5265         non-container. If a container is directly selected, focus events 
5266         should not be raised.
5267         Apply #80411 patch to throw exception on set_ActiveControl if 
5268         control is the same as the current one.
5269         
5270         * Control.cs: Use ContainerSelected flag (see above).
5271         Add invalidation check to raise event but not invalidate if 
5272         dimensions are 0.       
5273         Apply #80411 patch.
5274         
5275
5276 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
5277
5278         * MenuAPI.cs: After click, dont close popup menu when menu is
5279         ContextMenu. Fixes #80399.
5280
5281 2006-12-30  Chris Toshok  <toshok@ximian.com>
5282
5283         * ContainerControl.cs: make sure we throw the exception if the
5284         container control doesn't contain the control we're setting
5285         ActiveControl to.
5286
5287 2006-12-30  Chris Toshok  <toshok@ximian.com>
5288
5289         * Control.cs (SetTopLevel): fix the exception raised by
5290         SetTopLevel for child controls.
5291         (set_Anchor): call UpdateDistances when setting the anchor type.
5292         This fixes bug #80336.
5293
5294 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5295
5296         * Theme.cs: For now, revert back to 8pt font.
5297
5298 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
5299
5300         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
5301         Fixes #80395.
5302
5303 2006-12-29  Chris Toshok  <toshok@ximian.com>
5304
5305         * Control.cs: reorder the code in OnResize to give the same event
5306         ordering as MS.
5307
5308 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5309
5310         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
5311         TileHorizontally and TileVertically.
5312         
5313 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
5314
5315         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
5316         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
5317         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
5318         Corrected copyright and email adress.
5319
5320 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5321
5322         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
5323         of Exception in FullPath property if no TreeView is associated with
5324         the TreeNode.
5325
5326 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5327
5328         * Theme.cs: Marked default_font as private, and initialize it in ctor
5329         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
5330         on 2.0 profile.
5331         * ThemeGtk.cs: Removed default_font intialization.
5332         * ThemeWin32Classic.cs: Removed default_font initialization.
5333
5334 2006-12-28  Chris Toshok  <toshok@ximian.com>
5335
5336         * Control.cs: fix a couple of place where we were creating handles
5337         more aggressively than we should be.  Fixes ControlRefresh unit
5338         tests.
5339
5340 2006-12-28  Chris Toshok  <toshok@ximian.com>
5341
5342         * Control.cs: contrary to what the comment said, Control.Dock does
5343         not supercede Control.Anchor - the last one you assign to decides
5344         the layout behavior.  so we need to keep track of which was the
5345         last set.  Also, fix some of the affected property arguments in
5346         PerformLayout calls, and remove an redundant parent.PerformLayout
5347         call in OnResized.
5348
5349         Add a VisibleInternal property, which returns is_visible.  We
5350         can/should get rid of all the usage of this field elsewhere.
5351
5352 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5353         
5354         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
5355         control style, not DoubleBuffer. Added UseDoubleBuffering property
5356         that indicates whether doublebuffering is enabled and supported.
5357         (comment from and code based on Gert Driesen's patch in #80324).
5358         Fixes #80324.
5359
5360 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5361         
5362         * Control.cs: Fixed a NRE.
5363
5364 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5365
5366         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
5367         for 2.0.
5368
5369 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5370
5371         * Control.cs: Rewrote double buffering, now a seperate
5372         class handles all the buffering, no Graphics is disposed of
5373         until the painting is finished (earlier implementation 
5374         would crash if the control was resized in the OnPaint, 
5375         since it would cause the double buffer to be recreated
5376         and the old one disposed), a separate Graphics is 
5377         created for every paint (MS behaviour and anyways the state
5378         of the Graphics would have to be saved and restored otherwise)
5379         
5380         * XplatUIDriver.cs: 
5381         * XplatUIX11.cs:
5382         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
5383         so that we can get the graphics for the back buffer without
5384         having to create a new one and remove the offscreen_dc parameter
5385         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
5386         
5387 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5388
5389         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
5390         Also make virtual all the key-related methods.
5391
5392         * ListViewItem.cs: Make virtual the key related methods for
5393         ListViewSubItemCollection.
5394
5395 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5396
5397         * ListView.cs:
5398         * ListViewItem.cs:
5399         * ThemeWin32Classic.cs:
5400         * Theme.cs: Initial support for Tile view in ListView,
5401         as well as the implementation of the required bits for it (Item
5402         and Subitem).
5403
5404 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5405
5406         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
5407         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
5408         Provide useful exception messages.
5409
5410 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5411
5412         * TrackBar.cs: Remove a warning.
5413         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
5414         when used by DateTimePicker, fixes #80287. This also requires that 
5415         MonthCalendar implements it's own drawing for the yearly updown control,
5416         otherwise the Capture tracking would be too complicated. Removed the Click 
5417         and DoubleClick events (according to comments they were hiding the base class
5418         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
5419         raise these events, not that they cannot be raised. It is possible to raise 
5420         them by calling OnClick and OnDoubleClick). Added two internal fields in 
5421         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
5422         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
5423         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
5424         event, no longer needed.
5425         
5426 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5427
5428         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
5429         true if new value differs from current value.
5430
5431 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5432
5433         * Control.cs: ControlCollection.Count must be public. Fixed build of
5434         unit tests.
5435
5436 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5437
5438         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
5439
5440 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5441
5442         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
5443
5444 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5445
5446         * Control.cs: Invalidates control including when Width and Height is 
5447         equal zero or is not visible, only Paint event must be care about 
5448         this. Fixes #79913.
5449
5450 2006-12-26  Chris Toshok  <toshok@ximian.com>
5451
5452         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
5453         more corcompare work.
5454
5455         * DataGridView.cs: fix compiler warning.
5456
5457         * ColumnHeader.cs: some corcompare work, and also take the
5458         opportunity to make the internal fields private.
5459
5460         * ListView.cs: fix the fallout from the above field change.
5461
5462 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5463
5464         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
5465         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
5466         ToolStripTextBox.cs: Fixes to events and corcompare.
5467
5468 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5469
5470         * ListView.cs: Call owner.OnMousexx event to propagate events from
5471         item to ListView. Fixes #80367.
5472
5473 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5474
5475         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
5476         if value is less than one. ItemHeight should not be set to a value
5477         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
5478         Removed extra tabs.
5479
5480 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5481
5482         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
5483         * ToolStripStatusLabel.cs: Add Spring for Moma.
5484
5485 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5486
5487         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
5488         Fixed code formatting. Removed debug code.
5489         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
5490
5491 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5492
5493         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
5494         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
5495         ArgumentOutOfRangeException if ColumnCount is negative. In 
5496         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
5497         less than 4 or higher than 32768.
5498         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
5499         Fixed FormatProvider to return CurrentCulture unless explicitly set.
5500         Fixed IsFormatProviderDefault to return true if FormatProvider has
5501         not been explicitly set.
5502
5503 2006-12-25  Chris Toshok  <toshok@ximian.com>
5504
5505         * Application.cs: add a couple of 2.0 events.
5506
5507 2006-12-25  Chris Toshok  <toshok@ximian.com>
5508
5509         * Control.cs: fix compiler warning.
5510
5511         * AxHost.cs: corcompare fixes.
5512
5513         * ApplicationContext.cs: corcompare fixes.
5514
5515 2006-12-25  Chris Toshok  <toshok@ximian.com>
5516
5517         * Control.cs: only update dist_right/dist_bottom if the
5518         width/height is > 0.  this fixes anchored controls being resized
5519         smaller until they disappear and then resized larger again.
5520
5521 2006-12-25  Chris Toshok  <toshok@ximian.com>
5522
5523         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
5524         since they're nothing more than X/Left and Y/Top, respectively.
5525
5526         Also, move back to a per-control Bitmap/Graphics for
5527         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
5528         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
5529         Height.
5530
5531 2006-12-25  Miguel de Icaza  <miguel@novell.com>
5532
5533         * MessageBox.cs: Implemented overload that takes a new "bool
5534         displayHelpButton" by adding a new internal field "show_help".
5535         When clicked this will raise the HelpRequested on the owner or the
5536         main form. 
5537
5538         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
5539         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
5540
5541         * ListView.cs: Add support ColumnWidthChanged and
5542         ColumnWidthChanging. 
5543
5544         Add support for ColumnReordered event.
5545         (ReorderColumn): Add NET_2_0 specific support for cancelling the
5546         reorder.
5547
5548         Very nice codebase!
5549
5550         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
5551
5552         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
5553
5554 2006-12-24  Chris Toshok  <toshok@ximian.com>
5555
5556         * GridTablesFactory.cs: 2.0 corcompare work.
5557
5558         * ToolStripContainer.cs: add "override" to
5559         ContextMenuStripChanged, and remove the local event object.
5560
5561         * ToolStripDropDown.cs: same with a couple properties.
5562
5563         * ToolStripPanel.cs: same with AutoSizeChanged event.
5564
5565         * TextBoxBase.cs: add "override" to AutoSizeChanged.
5566
5567         * Form.cs: add the remaining 2.0 events, and do some corcompare
5568         attribute work.
5569
5570         * DateTimePicker.cs: add "new" to padding.
5571
5572         * ButtonBase.cs: use Control's use_compatible_text_rendering.
5573
5574         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
5575
5576         * DataGridView.cs: PaddingChanged is overridden.
5577
5578 2006-12-24  Chris Toshok  <toshok@ximian.com>
5579
5580         * Control.cs: corecompare work here too.
5581
5582         * DataGridViewElement.cs, DataGridView.cs,
5583         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
5584         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
5585         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
5586         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
5587         work.
5588
5589 2006-12-24  Miguel de Icaza  <miguel@novell.com>
5590
5591         * Control.cs: Switched the error message on the console for a
5592         todo.  A review of the code will have to cope with this anyways
5593         (since its a large feature, it is in our radar) and it was
5594         producing too much output when running PDN.
5595
5596         * ToolStripComboBox.cs: Set the text when the SelectedIndex
5597         changes.  Applications depend on this (PDN 2.72)
5598
5599 2006-12-23  Chris Toshok  <toshok@ximian.com>
5600
5601         * TableLayoutSettings.cs: finish up the corcompare work for this
5602         class.
5603
5604 2006-12-23  Chris Toshok  <toshok@ximian.com>
5605
5606         * Control.cs: make SetImplicitBounds internal, do some futzing
5607         with LayoutEngine so that it's available in 1.1, and remove the
5608         entire duplicated code mess from PerformLayout.  Use
5609         System.Windows.Forms.Layout.DefaultLayout instead.
5610
5611         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
5612
5613 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5614
5615         * Form.cs: Add MainMenuStrip property.
5616
5617 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5618
5619         * Control.cs: Add ContextMenuStrip property and implementation.
5620         Fix ContextMenu implementation to show menu centered on control when
5621         activated using the keyboard instead of showing at screen (0,0).
5622
5623         * ToolStripDropDown.cs: Fix needed overload of Show ().
5624
5625 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5626
5627         * Menu.cs: Name property added for 2.0 profile.
5628         
5629 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5630
5631         * Menu.cs: Update information about FindMenuItem, method to be
5632         implemented soon.
5633
5634 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5635
5636         * MenuAPI.cs: When deselect items deselect also selected subitems.
5637         
5638 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5639
5640         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
5641         FindSubItemByCoord to found itens that is not active, also an
5642         cheking added to FindSubItemByCoord to search for items only 
5643         in visible popup windows. Fixes #80274.
5644
5645 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
5646
5647         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
5648         internal property, it be care about change ExStyle. 
5649
5650 2006-12-22  Andreia Gaita  <avidigal@novell.com>
5651
5652         * ContainerControl.cs: set activeControl for parent forms up the 
5653         tree when the new activecontrol is a container.
5654         When validating the active control, if it is a container, also
5655         raise up the validation for it's active control. Fixes #80280
5656         
5657         * Control.cs: Add internal property flag and check to prevent
5658         Focus events from getting raised when Select() is called for
5659         a ContainerControl. There are still too many focus events being
5660         raised at the moment though.
5661         Cleaned up the code a bit.
5662
5663 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5664
5665         * Control.cs: Added all missing 2.0 events.and
5666         fixed a couple of corcompare issues.
5667         * TrackBar.cs: Implemented missing 2.0 bits.
5668         * MonthCalendar.cs, 
5669         * DateTimePicker.cs, 
5670         * MdiClient.cs: Fixed some corcompare issues.
5671
5672 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5673
5674         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
5675         SplitterPanel.cs: corecompare work.
5676
5677 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5678
5679         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
5680         Clean up warnings for BackgroundImageChanged and PaddingChanged
5681         events now that they are implemented in Control.cs.
5682
5683 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5684
5685         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
5686         
5687         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
5688         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
5689         of TableLayoutPanel and supporting cast.
5690
5691 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5692
5693         * XplatUIWin32.cs: 
5694         - GrabWindow now confines the mouse pointer to the confine window.
5695         - Added Win32ClipCursor and Win32GetClipCursor.
5696
5697         * Control.cs: 
5698         - Added CaptureWithConfine to be able to capture and confine 
5699         mouse pointer.
5700         
5701         * InternalWindowManager.cs: 
5702         - Call CaptureWithConfine instead of Capture if we're an
5703         MdiChild (fixes #79982).
5704
5705 2006-12-21  Chris Toshok  <toshok@ximian.com>
5706
5707         * DataGrid.cs: guard against the initial state of selection, where
5708         selection_start == -1.  make sure we only select from index >= 0.
5709         Fixes bug #80291.
5710
5711 2006-12-21  Chris Toshok  <toshok@ximian.com>
5712
5713         * Control.cs: we don't need to be so draconian with
5714         UpdateDistances, and we thusly don't need to call it before
5715         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
5716
5717 2006-12-21  Daniel Nauck  <dna@mono-project.de>
5718
5719         * ComboBox.cs,
5720         TextBox.cs: Implemented AutoComplete properties.
5721
5722 2006-12-20  Chris Toshok  <toshok@ximian.com>
5723
5724         * DataGridView*.cs: some corecompare work.
5725
5726 2006-12-20  Jackson Harper  <jackson@ximian.com>
5727
5728         * XplatUIX11.cs: We need to hide the caret when deleting it,
5729         otherwise you get carets left lying around everywhere.
5730         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
5731         prevents getting some weird half drawn caret tracers when
5732         scrolling.
5733         * TextControl.cs: Attempt to reduce the number of times we need to
5734         recreate the caret.
5735
5736 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
5737
5738         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
5739
5740 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5741
5742         * DateTimePicker.cs:
5743         - Implemented missing 2.0 bits.
5744         - Changed some default values to match MS.
5745         
5746 2006-12-20  Jackson Harper  <jackson@ximian.com>
5747
5748         * TextBoxBase.cs: When changing the font across the document we
5749         can't recalculate after changing each line, since that will cahnge
5750         the line count.
5751         - PreferredHeight is a little different than i thought.
5752         - When backspacing, move the caret before we do the actual char
5753         delete, because when that delete crosses a wrap boundary the
5754         positional information will change.
5755
5756 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5757
5758         * Control.cs: Added some missing 2.0 bits: 
5759         BackgroundImageLayout, BackgroundImageLayoutChanged, 
5760         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
5761         add IBindableComponent and IDropTarget implementation.
5762         
5763         * MonthCalendar.cs: 
5764         - Added all missing 2.0 features:
5765         BackgroundImageLayout, RightToLeftLayout, 
5766         OnHandleDestroyed, RightToLeftLayoutChanged, 
5767         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
5768         PaddingChanged.
5769         - Rewrote all the BoldDate code, it was completely broken.
5770         - Fixed all the tests (the tests can now be re-enabled, the
5771         problems were not with the tests, but with the control, it was
5772         mostly broken).
5773         
5774         * DateTimePicker.cs: Changed the location where the 
5775         MonthCalendar is shown.
5776         
5777 2006-12-19  Chris Toshok  <toshok@ximian.com>
5778
5779         * DataGridView.cs: add IDropTarget implementation.
5780
5781         * ToolStripPanel.cs: add IDropTarget implementation.
5782
5783 2006-12-19  Jackson Harper  <jackson@ximian.com>
5784
5785         * TextControl.cs: soft now means something different than what it
5786         used to mean, we want to move the caret regardless of whether or
5787         not this break was soft (would we really have wanted the caret
5788         to not move with the break in the old context?)
5789         * TreeView.cs: Make sure we factor in the vert scrollbar when
5790         calculating the horizontal scrollbar's maximum.
5791
5792 2006-12-19  Andreia Gaita  <avidigal@novell.org>
5793
5794         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
5795         check for keywords in alternate casing, close bug #80049.
5796
5797 2006-12-19  Chris Toshok  <toshok@ximian.com>
5798
5799         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
5800         methods (which all do nothing).
5801
5802         * IDropTarget.cs: add the 4 missing methods.
5803
5804 2006-12-19  Chris Toshok  <toshok@ximian.com>
5805
5806         * TableLayoutRowStyleCollection.cs: corcompare work.
5807         
5808         * TableLayoutSettings.cs: same.
5809
5810         * TableLayoutStyle.cs: same.
5811
5812         * TableLayoutColumnStyleCollection.cs: same.
5813
5814 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
5815
5816         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
5817         TableLayoutPanel I've had in my local tree for way too long.
5818
5819 2006-12-19  Miguel de Icaza  <miguel@novell.com>
5820
5821         * TableLayoutSettings.cs: Finish the public API (still needs all
5822         the logic to update on changes). 
5823
5824         * TableLayoutPanelCellPosition.cs: new file.
5825         
5826         * TableLayoutRowStyleCollection.cs,
5827         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
5828         TableLayoutSettings.cs: Track the final 2.0 table api.
5829
5830 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5831
5832         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
5833         and Image List 2.0 members for ColummnHeader.
5834         * ListView.cs: Add key-related 2.0 methods for
5835         ColumnHeaderCollection.
5836
5837 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
5838
5839         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
5840         ArgumentNullException if items argument is null. Ignore null item in
5841         arrays. Removed extra tabs.
5842
5843 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
5844
5845         * MonthCalendar.cs: Fixed InvalidCastException.
5846
5847 2006-12-19  Jackson Harper  <jackson@ximian.com>
5848
5849         * TextControl.cs: Don't increment the position here.
5850         - When calculating char positions only add in the line break size
5851         for hard line breaks.
5852
5853 2006-12-19  Andreia Gaita  <avidigal@novell.org>
5854
5855         * SendKeys.cs: Changed some things to match ms.net behaviour
5856         when parsing shifted capital letters.
5857         
5858         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
5859         Add window handle as parameter to SendInput. X11 needs the 
5860         window handle, and the handle being passed      to it in the keys 
5861         queue is the active control handle (which windows needs), not 
5862         the window handle.
5863         
5864         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
5865         to support SendKeys on X.       
5866         
5867         * X11Keyboard: Implement helper method to lookup a linux keycode
5868         given the virtual keycode. Added table of keycode-2-virtualkey
5869         values to support this.
5870
5871 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5872
5873         * ListView.cs: Add support for SelectedIndexCollection
5874         and SelectedItemCollection 2.0 methods. Implement support
5875         for ImageKey too.
5876         * ListViewItem.cs: Add support for ListViewSubItemCollection
5877         2.0 methods. Also, fix an incorrect behavior of AddRange method
5878         (it shouldn't call Clear).
5879         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
5880
5881 2006-12-19  Jackson Harper  <jackson@ximian.com>
5882
5883         * RichTextBox.cs: 
5884         * TextBoxBase.cs: New args for FormatText
5885         * TextControl.cs: Rewrote the main drawing method, this version
5886         feels a little easier to understand and debug to me.  Hopefully it
5887         does to others also
5888         - Fix FormatText to OR in the new formating values.  Added
5889         FormatSpecified param, basically this works in the same way as
5890         BoundsSpecified in Control.
5891         - Set the caret properties when the caret is positioned.
5892         - When wrapping text make sure that we calculate the width of the
5893         last character
5894         - when calculating alignments we might have wrapped down to the
5895         next line, so don't search for an individual tag, search for the
5896         end of the line
5897         - We need to invalidate the selection area when we replace the
5898         selection.
5899         
5900 2006-12-19  Daniel Nauck  <dna@mono-project.de>
5901
5902         * Application.cs: add Restart () 2.0 support
5903
5904 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5905
5906         * MenuItem.cs: Invalidate menu item rectangle after change Enable
5907         property. Fixes #80268.
5908         
5909 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5910
5911         * MenuAPI.cs: Dont trigger select event when closes top menu
5912         item. Fixes #80270.
5913
5914 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5915
5916         * MenuAPI.cs: When you click on menuitem only trigger onselect
5917         event for top menu itens. Fixes #80271.
5918         
5919 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5920
5921         * MdiWindowManager.cs: Make IconicBounds depend on
5922         the bottom of MdiClient, not the top (fixes #80267)
5923         
5924 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5925
5926         * MdiClient.cs: Added missing 2.0 attribute
5927
5928 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5929
5930         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
5931         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
5932
5933 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
5934
5935         * MenuAPI.cs: Fix click when menuitem is not popup,
5936         this regression was caused by last commit (#80272).
5937
5938 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
5939
5940         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
5941         fire click event or close menu. Fixes #80272.
5942
5943 2006-12-17  Daniel Nauck  <dna@mono-project.de>
5944
5945         * ListViewHitTestInfo.cs: add
5946
5947 2006-12-17  Daniel Nauck  <dna@mono-project.de>
5948
5949         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
5950         * FlatButtonAppearance.cs: add
5951         * DockingAttribute.cs: add
5952
5953 2006-12-17  Chris Toshok  <toshok@ximian.com>
5954
5955         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
5956         and rebind our columns when it does - this way, if you make
5957         changes to the DataTable (or set the Table attribute on a DataView
5958         after setting it as the DataGrid's DataSource, the changes are
5959         made visible.)  Fixes bug #80107.
5960
5961 2006-12-17  Daniel Nauck  <dna@mono-project.de>
5962
5963         * ListViewGroup.cs: add internal Location property for layouting.
5964         * Theme.cs: add abstract ListViewGroupHeight function.
5965         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
5966
5967 2006-12-16  Andreia Gaita  <avidigal@novell.com>
5968
5969         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
5970         Added reset of selected index to 0 when adding first tab page.
5971         Fixes #80264
5972         
5973         * NumericUpDown.cs: Fix NET_2_0 check
5974
5975 2006-12-16  Daniel Nauck  <dna@mono-project.de>
5976
5977         * ListViewGroup.cs: fixed DefaultValueAttribute value
5978
5979 2006-12-16  Daniel Nauck  <dna@mono-project.de>
5980
5981         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
5982
5983 2006-12-15  Miguel de Icaza  <miguel@novell.com>
5984
5985         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
5986         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
5987         ScrollableControl.cs: Add a handful of methods that are
5988         overwritten in 2.0 
5989
5990 2006-12-15  Chris Toshok  <toshok@ximian.com>
5991
5992         * XplatUIWin32.cs: initial implementation of the Reversible
5993         drawing functions.  there are some problems.  DrawReversibleFrame
5994         doesn't seem to work at all for Dashed FrameStyle, and in the
5995         Thick case there are drawing errors at the corners (we probably
5996         need to bind Rectangle instead of doing moveto/lineto's.)
5997
5998 2006-12-16  Andreia Gaita  <avidigal@novell.com>
5999         
6000         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
6001         to send blocks of key messages. Send accumulates keys to send with Flush, 
6002         while SendWait sends all keys immediately.
6003                 
6004         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
6005         XplatUIX11.cs,  XplatUIX11-new.cs:
6006         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
6007         to Win32 SendInput.
6008         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
6009         
6010         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
6011         testing for ms.net on this class is very tricky, as the tests run too fast 
6012         to allow the hook to release, essentially freezing the keyboard and the 
6013         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
6014         category :p
6015
6016 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6017
6018         * Padding.cs: fixed serialization compability to MS ("_var" field names),
6019                         added missing attributes.
6020  
6021 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6022
6023         * ListViewGroup.cs: Added missing attributes.
6024         * ListViewGroupCollection.cs: Added missing attributes.
6025
6026 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6027
6028         * ListViewItem.cs: fixed ListViewSubItem text property.
6029
6030 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6031         
6032         * Control.cs: Added missing 2.0 attributes
6033         
6034 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6035         
6036         * MdiClient.cs: Added missing 2.0 attribute.
6037         * MonthCalendar.cs: Added some missing 2.0 attributes 
6038         and properties.
6039         
6040 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6041
6042         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
6043
6044 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
6045
6046         * MainMenu.cs: Add the new 2.0 constructor to help out people
6047         using the MainMenu in VS2005.
6048
6049 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6050         
6051         * MdiChildContext.cs: Removed it, no longer used.
6052         * MdiClient.cs: Added missing 2.0 attributes.
6053         
6054 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6055         
6056         * InternalWindowManager.cs: Fix a NullRef with previous 
6057         changes for toolwindows.
6058         
6059 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6060
6061         * Control.cs: 
6062         - Added AfterTopMostControl to allow for certain controls 
6063         to always stay on top when normal controls are brought to 
6064         front.
6065         
6066         * XplatUIWin32.cs: 
6067         - (DrawInversibleRectangle): Get window rectangle from Win32 
6068         in stead of from control, since Win32 doesn't calculate
6069         screen coords correctly from control's Location if it 
6070         have docked siblings.
6071         
6072         * MdiWindowManager.cs:
6073         - Correct the control menu popup location when clicked on
6074         the maximized form icon. (fixes #80223.1)
6075         - Don't show moving rectangle if mouse hasn't moved from
6076         the original clicked point.
6077         - Removed FormGotFocus handler (not used).
6078         - Calculate the control buttons location from the main
6079         window's size and not client size (fixes #79770).
6080         - Form is now closed when the form icon is double-clicked
6081         (fixes #79775). 
6082         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
6083         
6084         * InternalWindowManager.cs:
6085         - Moved some MDI-only methods to MdiWindowManager.
6086         - Removed unused properties and methods.
6087         - Unified method naming for methods handling wm messages.
6088         - Moved all message handling to seperate methods for
6089         each message.
6090         
6091         * ThemeWin32Classic.cs:
6092         - DrawManagedWindowDecorations now draws the title bar 
6093         with a gradient brush.
6094         - Add a CPDrawButtonInternal that allows us to specify
6095         light, normal and dark colors for the buttons (control 
6096         buttons for MDI children were drawn with the same light
6097         color as the background, therefore loosing the 3D effect).
6098         
6099         * SizeGrip.cs:
6100         - Add a CapturedControl property that is used to 
6101         determine the control to resize (defaults to parent). 
6102         Needed for MdiClient, since its SizeGrip's parent is
6103         MdiClient, but the control to resize is the main form.
6104         
6105         * MdiClient.cs:
6106         - Set SizeGrip's CapturedControl to the main form in order
6107         to resize the main form and not the MdiClient.
6108         - Override AfterTopMostControl to leave the scrollbars 
6109         always on top.
6110
6111 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6112
6113         * ListView.cs: fixed ListViewItemCollection AddRange and
6114                         implemented ListViewItemCollection AddRange 2.0 support.
6115
6116 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6117
6118         * ListViewGroup.cs: Add.
6119         * ListViewGroupCollection.cs: Add
6120         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
6121         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
6122                                 stub for ImageKey 2.0 support.
6123
6124 2006-12-14  Mike Kestner  <mkestner@novell.com>
6125
6126         * ListView.cs: add text padding to the autocalculation for columns
6127         of width -2.  Fixes #80207.
6128  
6129 2006-12-14  Mike Kestner  <mkestner@novell.com>
6130
6131         * ListView.cs: add some index guarding for partial row navigation 
6132         logic.  Fixes #80250.
6133
6134 2006-12-14  Mike Kestner  <mkestner@novell.com>
6135
6136         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
6137         are added or inserted to the collection.  Fixes #81099.
6138
6139 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
6140
6141         * MenuAPI.cs: Closes menu when right click out side of popup
6142         it fix problem in ContextMenu and MainMenu. Fixes #80252.
6143
6144 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6145
6146         * ListViewItem.cs: Fix dumb error.
6147
6148         * ListView.cs: Add Find and ContainsKey methods in 
6149         ListViewItemCollection, and also return true for IsReadOnly
6150         and IsFixedSize (changes for 2.0). 
6151
6152 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
6153
6154         * Control.cs: Allow Region to be set to null.
6155
6156 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6157
6158         * MdiWindowManager.cs: Remove unused (commented out) code.
6159         * Form.cs: When the MdiChild is maximized, the form needs 
6160         WM_NCMOUSELEAVE, so request it.
6161         * InternalWindowManager.cs: 
6162         - Added tooltips to control buttons.
6163         - Removed duplicated control button handling code.
6164         - Removed unused (commented out) code.
6165         
6166 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
6167
6168         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
6169         was used because we must set cursor without trigger ChangeCursor event
6170         and without change Cursor control property. Fixes #79963.
6171
6172 2006-12-12  Andreia Gaita  <avidigal@novell.com>
6173         
6174         * Control.cs: Check if Region setter value is null, and ignore
6175
6176 2006-12-12  Jackson Harper  <jackson@ximian.com>
6177
6178         * TextControl.cs: We were almost always drawing one more line then
6179         needed, since the GetLineByPixel will return the last line found
6180         at that pixel. In most cases though, we were invalidating up to
6181         the junction between two lines.
6182         - Improve debug code.
6183
6184 2006-12-12  Chris Toshok  <toshok@ximian.com>
6185
6186         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
6187         and FillReversibleRectangle.
6188
6189         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
6190         and FillReversibleRectangle.
6191
6192         * XplatUIWin32.cs: add stubs which do nothing for
6193         DrawReversibleFrame, DrawReversibleLine, and
6194         FillReversibleRectangle.
6195
6196         * XplatUIOSX.cs: add stubs which raise NIE for
6197         DrawReversibleFrame, DrawReversibleLine, and
6198         FillReversibleRectangle.
6199
6200         * XplatUIX11.cs: add working implementation for
6201         DrawReversibleFrame, DrawReversibleLine, and
6202         FillReversibleRectangle.
6203         
6204         * ControlPaint.cs: implement DrawReversibleFrame,
6205         DrawReversibleLine, and FillReversibleRectangle, by calling into
6206         the appropriate XplatUI method.
6207
6208 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6209
6210         * Form.cs: Make MdiClient have the focus even if it's
6211         not selectable, since it should receive WM_KEY* and WM_MOUSE 
6212         messages. Fixes #79907.
6213         
6214 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6215
6216         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
6217         queried after the window is created.
6218         
6219         * XplatUIX11.cs: Added SendParentNotify to implement 
6220         WM_PARENTNOTIFY logic. Fixes #79965.
6221         
6222         * Control.cs: Added MakeParam.
6223         
6224 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6225
6226         * MdiClient.cs: Resume Layout before setting window
6227         states (fixes #80201).
6228
6229 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6230
6231         * MenuAPI.cs: Deselect a menu item after performing
6232         the click (fixes #80197).
6233
6234 2006-12-11  Jackson Harper  <jackson@ximian.com>
6235
6236         * TextBoxBase.cs: We need to cap this value, since Maximum -
6237         ViewPortHeight can be less than zero.
6238         - Only do selection with the left mouse button.
6239         * TextBox.cs: Don't tell the world that we have a context menu.
6240         * Control.cs: New method so that we can control whether or not the
6241         context menu is visible outside MWF.
6242
6243 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6244
6245         * ToolBarButton.cs: Fix text positon. 
6246
6247 2006-12-11  Miguel de Icaza  <miguel@novell.com>
6248
6249         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
6250
6251         * Control.cs (DoubleBuffered): Add implementation.
6252
6253         * Application.cs (OpenForms): Add.
6254
6255 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6256
6257         * Form.cs: Use opacity instead of Opactiy to determine if we need
6258         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
6259
6260 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6261
6262         * Control.cs: Fix NRE if Control.Site was set to null.
6263
6264 2006-12-11  Chris Toshok  <toshok@ximian.com>
6265
6266         * Control.cs: ControlCollection.Remove should return if the arg is
6267         null, and ControlCollection.SetChildIndex should raise a ANE.
6268
6269 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
6270
6271         * Control.cs: Verify value set for Dock property. Code formatting
6272         updates.
6273
6274 2006-12-11  Jackson Harper  <jackson@ximian.com>
6275
6276         * TextControl.cs: Draw the caret and the selection when a flag is
6277         set on the owner.
6278         * TextBoxBase.cs: We want to draw the caret and the selection for
6279         TextBox but not for TextBoxBase.
6280         - If the window is resized and scrolling is no longer needed (the
6281         whole doc is visible) set the scroll position to zero.
6282         - The default SelectWord (the one TextBox uses) should move the
6283         caret to the end of the word.
6284         - SelectAll moves the caret to the end of the selection.
6285         * TextBox.cs: We don't selectall on focus, we just do it when the
6286         control is created.
6287         
6288 2006-12-11  Mike Kestner  <mkestner@novell.com>
6289
6290         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
6291
6292 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6293
6294         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
6295         2.0 support.
6296         * ListViewItem.cs: Add Name 2.0 property.
6297
6298 2006-12-11  Andreia Gaita  <avidigal@novell.com>
6299
6300         * TabControl.cs: Set visibility on selected or default tab 
6301         when tabcontrol handle is created, so that it's contents
6302         actually show up (duh). Fixes #80193
6303         Don't redraw the control if there is no handle created, as
6304         the selected index might be completely invalid. Added some tests
6305         to check for this.
6306
6307 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6308
6309         * ToolBar.cs: Uses maximun width and height of all buttons as 
6310         button rectangle when ButtonSize specified, it looks strange but
6311         is what happens in Win32. Fixes #80189.
6312
6313 2006-12-11  Jackson Harper  <jackson@ximian.com>
6314
6315         * TextControl.cs: Need to track undo levels ourself, since
6316         compound actions will mess them up.
6317
6318 2006-12-10  Andreia Gaita  <avidigal@novell.com>
6319
6320         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
6321         SelectedIndex value is changed (even if it's not valid).
6322         Reset SelectedIndex to 0 when the handle is created and if
6323         the current index is invalid.
6324         Fixes SelectdeIndex unit tests and #80128
6325
6326 2006-12-08  Chris Toshok  <toshok@ximian.com>
6327
6328         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
6329         calls EndEdit, it needs to be called before we set current_cell to
6330         its new value.  Otherwise, we end up committing the value in the
6331         textbox to the new cell as well.  Fixes bug #80160.
6332
6333 2006-12-08  Chris Toshok  <toshok@ximian.com>
6334
6335         * Form.cs (set_CancelButton): if the button's DialogResult is
6336         None, set it to Cancel.  Fixes bug 80180.
6337
6338 2006-12-08  Jackson Harper  <jackson@ximian.com>
6339
6340         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
6341         to watch ourselves when setting the canvas size and setting the
6342         scrollbar values.
6343
6344 2006-12-08  Chris Toshok  <toshok@ximian.com>
6345
6346         * DataGrid.cs: comment out the two MakeTransparent calls for the
6347         time being so people using trunk (and not 1.2.2) on windows can
6348         actually use the datagrid.  This deals with bug #80151.
6349
6350 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6351
6352         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
6353         Graphics.DrawImage (image, int, int, int, int) overload instead
6354         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
6355         the dpi difference and was blurring images it drew.
6356         [Fixes bug #79960]
6357
6358 2006-12-08  Chris Toshok  <toshok@ximian.com>
6359
6360         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
6361         rowcnt is 0 (such as with an empty datasource), and make sure we
6362         initialize not_usedarea.Y to cells.Y, so we don't draw over the
6363         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
6364
6365 2006-12-08  Chris Toshok  <toshok@ximian.com>
6366
6367         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
6368         grid.
6369
6370 2006-12-08  Chris Toshok  <toshok@ximian.com>
6371
6372         [ Fixes bug #80167 ]
6373         
6374         * ThemeWin32Classic.cs: don't draw the image if the button's flat
6375         style is FlatStyle.System.
6376
6377         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
6378         ButtonBase.flat_style private, and switch uses of it to the public
6379         property.
6380         
6381 2006-12-08  Chris Toshok  <toshok@ximian.com>
6382
6383         [ Fixes bug #80121 ]
6384         
6385         * ThemeWin32Classic.cs: center the caption text in the datagrid
6386         when we draw it.
6387
6388         * DataGrid.cs: lessen the amount we add to the caption height from
6389         6 to 2.  6 was making it huge.
6390
6391 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6392
6393         * UpDownBase: Handle MouseWheel call directly instead of capturing
6394         the inner textbox's OnMouseWheel. Fixes #80166
6395
6396 2006-12-08  Jackson Harper  <jackson@ximian.com>
6397
6398         * TextControl.cs: We need to invalidate the textbox when we empty
6399         it (how had this not been discovered before?)
6400
6401 2006-12-08  Jackson Harper  <jackson@ximian.com>
6402
6403         * TextBoxBase.cs: Reworked the mouse down code so I could get it
6404         to behave like MS, we now ignore the eventargs.Click and just
6405         track state ourself, which we were already doing anyways.
6406         - Constrain the double click handler to the double click size.
6407         
6408 2006-12-08  Chris Toshok  <toshok@ximian.com>
6409
6410         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
6411         direction if that scrollbar isn't shown.  fixes bug #80158.
6412
6413 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6414
6415         * NumericUpDown.cs: Update value on getter. Fixes #79950
6416
6417 2006-12-08  Chris Toshok  <toshok@ximian.com>
6418
6419         * MenuItem.cs: add back in the event cloning code.  I didn't know
6420         how to do it in the face of the EventHandlerList work i'd done
6421         last week.  Fixes bug #80183.
6422
6423 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6424
6425         * Control.cs: Add an invalidate to the BackgroundImage setter.
6426         [Fixes 80184]
6427
6428 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6429
6430         * ToolStrip*: Add some small properties reported by MoMA, fix event
6431         firing and default properties based off of unit tests, and add some
6432         attributes based off of the class status page.
6433
6434 2006-12-07  Jackson Harper  <jackson@ximian.com>
6435
6436         * TextBoxBase.cs: Take HideSelection into account when determining
6437         whether or not to show the selection.
6438         * RichTextBox.cs: After inserting the RTF into the document move
6439         the cursor to the beginning of the document.
6440
6441 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6442
6443         * Control.cs: Remove static ArrayList "controls" which maintained
6444         a reference to every control created.
6445         * Application.cs: Create a static FormCollection to maintain a reference
6446         to every form created.  Use it in places that formerly enumerated through
6447         the controls one looking for forms.
6448         * Form.cs: Add and remove self from above FormCollection.
6449
6450 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
6451
6452         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
6453           not libgdk (though it makes me wonder why I didn't have any
6454           problems)
6455
6456 2006-12-07  Chris Toshok  <toshok@ximian.com>
6457
6458         [ you had to know this was coming after that last commit...]
6459         
6460         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
6461         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
6462         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
6463         XCopyArea).
6464
6465 2006-12-07  Chris Toshok  <toshok@ximian.com>
6466
6467         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
6468         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
6469         all the behavior we need for double buffering.
6470
6471         * XplatUIDriver.cs: implement the 3 double buffer methods using a
6472         client side Bitmap, just like the old Control-based double buffer
6473         code did.  The methods are virtual, so each XplatUI driver
6474         subclass can replace the implementation to use a faster, platform
6475         specific approach.
6476
6477         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
6478         double buffer code, and clean things up a bit in the process.
6479
6480 2006-12-06  Chris Toshok  <toshok@ximian.com>
6481
6482         * Control.cs: reindent WndProc.
6483
6484 2006-12-06  Chris Toshok  <toshok@ximian.com>
6485
6486         [ I wanna be like BenM when I grow up ]
6487         
6488         * Hwnd.cs: create a single static Graphics object on the static
6489         Bitmap we create.  use this for our text measurements.
6490
6491         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
6492         This was causing us to allocate a backbuffer for every control,
6493         even when it wasn't flagged as double buffered.  Instead use the
6494         single graphics instance.  This might have implications for
6495         multithreaded applications.  If we run into problems we can switch
6496         to creating 1 Graphics per control, on the static Hwnd bitmap.
6497
6498         this change nets us a 7M savings in private dirty mappings when
6499         running FormsTest.exe.
6500
6501 2006-12-06  Chris Toshok  <toshok@ximian.com>
6502
6503         * ListView.cs: the BackgroundImage override is just to set
6504         attributes.  chain up to base.BackgroundImage.
6505
6506         * RichTextBox.cs: same.
6507
6508         * ToolBar.cs: same, but we need to also redraw the toolbar when it
6509         changes, so instead a handler for BackgroundImageChanged.
6510         
6511         * Control.cs: make background_image private.
6512
6513 2006-12-06  Chris Toshok  <toshok@ximian.com>
6514
6515         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
6516         sure we even need this assignment, but roll with it for now.
6517
6518         * Control.cs: make the cursor field private.
6519
6520 2006-12-06  Chris Toshok  <toshok@ximian.com>
6521
6522         * Form.cs: we don't need to explicitly set ImeMode to
6523         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
6524         behavior in the face of ImeMode.Inherit.
6525
6526         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
6527         change the ctor's assignment to use ImeMode instead of ime_mode.
6528
6529         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
6530         ImeModeInherit.  Only check for the parent's imemode (and return
6531         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
6532         This fixes the button unit test, which sets both ImeMode and
6533         DefaultImeMode to ImeMode.Disable.
6534
6535         also make the ime_mode field private.
6536
6537 2006-12-06  Chris Toshok  <toshok@ximian.com>
6538
6539         * Control.cs: make control_style private.
6540
6541         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
6542         setting the styles to true, then setting them to false instead of
6543         reverting to their previous values.
6544
6545         also, call SetStyle on the scrollbars instead of using
6546         control_style directly.
6547
6548 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
6549
6550         * FormCollection.cs: Implement. [2.0]
6551
6552 2006-12-06  Chris Toshok  <toshok@ximian.com>
6553
6554         * Control.cs: make tab_stop private.
6555
6556         * Label.cs: set TabStop, not tab_stop.  reformat some event
6557         add/remove methods to make them more compact.
6558
6559 2006-12-06  Chris Toshok  <toshok@ximian.com>
6560
6561         * RadioButton.cs: fix TabStop handling.
6562
6563 2006-12-06  Chris Toshok  <toshok@ximian.com>
6564
6565         * TextBox.cs: remove the explicit assignments to has_focus.
6566         Control does that.
6567
6568         * ButtonBase.cs: remove the assignment to has_focus.  Control will
6569         manage that.
6570         
6571 2006-12-06  Chris Toshok  <toshok@ximian.com>
6572
6573         * ButtonBase.cs: remove all uses of is_enabled from this code.
6574         it's always true when any of the code containing the checks is
6575         executed.
6576
6577 2006-12-06  Chris Toshok  <toshok@ximian.com>
6578
6579         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
6580         with different semantics (some are present in both 1.1 and 2.0
6581         profiles) so that we match MS's behavior in our unit tests.
6582
6583 2006-12-06  Jackson Harper  <jackson@ximian.com>
6584
6585         * TextControl.cs: Make this operation undoable.
6586         * TextBoxBase.cs: Factor the border width into the preferred
6587         height.
6588         - implement Modified as per the spec.
6589
6590 2006-12-06  Chris Toshok  <toshok@ximian.com>
6591
6592         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
6593
6594 2006-12-06  Chris Toshok  <toshok@ximian.com>
6595
6596         * Control.cs: make right_to_left and context_menu fields private.
6597
6598 2006-12-06  Chris Toshok  <toshok@ximian.com>
6599
6600         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
6601         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
6602         Control.child_controls private.  switch all uses over to
6603         Control.Controls.
6604
6605 2006-12-06  Chris Toshok  <toshok@ximian.com>
6606
6607         * System.Windows.Forms/GroupBox.cs,
6608         System.Windows.Forms/AccessibleObject.cs,
6609         System.Windows.Forms/ErrorProvider.cs,
6610         System.Windows.Forms/Control.cs,
6611         System.Windows.Forms/UpDownBase.cs,
6612         System.Windows.Forms/ScrollBar.cs,
6613         System.Windows.Forms/DateTimePicker.cs,
6614         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
6615         System.Windows.Forms/ToolTip.cs,
6616         System.Windows.Forms/RadioButton.cs,
6617         System.Windows.Forms/LinkLabel.cs,
6618         System.Windows.Forms/Splitter.cs,
6619         System.Windows.Forms/TextBoxBase.cs,
6620         System.Windows.Forms/ToolStripTextBox.cs,
6621         System.Windows.Forms/ContainerControl.cs,
6622         System.Windows.Forms/ThemeWin32Classic.cs,
6623         System.Windows.Forms/SizeGrip.cs,
6624         System.Windows.Forms/ToolStripDropDown.cs,
6625         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
6626         private.  switch all uses over to Control.Parent.
6627
6628 2006-12-06  Chris Toshok  <toshok@ximian.com>
6629
6630         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
6631         Control does this before calling emitting these events.
6632
6633         * TabControl.cs: same.
6634
6635         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
6636         Control.client_rect.
6637
6638         * ButtonBase.cs: use the ClientSize property instead of the
6639         client_size field.
6640
6641         * ScrollableControl.cs: same.
6642
6643         * Control.cs: another pass at making properties private.  also,
6644         move the initialization of tab_stop to the ctor.
6645
6646 2006-12-05  Andreia Gaita <avidigal@novell.com>
6647
6648         * TabControl.cs: Let the selected index be set freely if the 
6649         control handle is not yet created.
6650
6651 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6652
6653         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
6654         internal until I can rewrite DefaultLayout.
6655         * ToolStrip.cs: Fix build error and some general cleaning.
6656         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
6657         Fix build errors caused by making some of Control's fields private.
6658
6659 2006-12-05  Jackson Harper  <jackson@ximian.com>
6660
6661         * TextControl.cs: Redo Insert a little so that it use IndexOf
6662         instead of Split, this prevents it from messing up on things like
6663         \n\n\n. Also more effecient since the split array doesn't need to
6664         be created.
6665         * TextBoxBase.cs: AppendText doesnt handle multiline and non
6666         multiline text differently, this is the first of many fixes that
6667         will make multiline/non-multiline the same thing as far as the
6668         TextBoxBase is concerned.
6669         - Don't split the text and insert lines, this can lose some line
6670         endings (like is the last line a soft or hard break). Instead use
6671         the new Insert.
6672         - Fix an off by one when combining all the lines in the Text
6673         getter.
6674         - Remove separate multiline handling from the Text getter/setter.
6675
6676 2006-12-05  Chris Toshok  <toshok@ximian.com>
6677
6678         * ButtonBase.cs: a few changes:
6679
6680         - don't reinitialize internal Control fields in the ctor when they
6681         have the same values as Control sets them.
6682
6683         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
6684         this before calling those methods.
6685
6686         - we don't need to call Refresh for anything.  use Invalidate
6687         instead.
6688
6689         - OnEnabledChanged doesn't need to redraw at all - Control.cs
6690         calls Refresh in its OnEnabledChanged.
6691         
6692         - several of the events we were registered for in the ctor to
6693         redraw ourselves already include calls to Invalidate in the
6694         property setters that raise the events.  remove the extra
6695         invalidation.
6696
6697         - reformat a switch statement that was 83274658 columns wide.
6698         
6699 2006-12-05  Mike Kestner  <mkestner@novell.com>
6700
6701         * ComboBox.cs: fix a unit test regression from a TextBox
6702         SelectionLength return of -1 when there's no selection.  
6703
6704 2006-12-05  Chris Toshok  <toshok@ximian.com>
6705
6706         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
6707         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
6708         cleaning up some of the internal Control fields being used by
6709         subclasses.
6710
6711 2006-12-05  Mike Kestner  <mkestner@novell.com>
6712
6713         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
6714         listbox after AddImplicit calls since it defaults to hidden. Add a 
6715         hack to preserve requested heights across DropDownStyle changes.
6716
6717 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6718
6719         * PropertyGrid.cs: Hide FindFirstItem method from public API.
6720
6721 2006-12-05  Chris Toshok  <toshok@ximian.com>
6722
6723         * DataGridView.cs: fix compiler warnings.
6724
6725         * PrintControllerWithStatusDialog.cs: same.
6726
6727         * ToolBar.cs: same.
6728
6729         * FolderBrowserDialog.cs: same.
6730
6731         * Splitter.cs: same.
6732
6733         * DataGridViewComboBoxCell.cs: same.
6734
6735         * XplatUIWin32.cs: same.
6736
6737         * PictureBox.cs: same.
6738
6739         * Win32DnD.cs: same.
6740
6741         * PageSetupDialog.cs: same.
6742
6743         * FileDialog.cs: same.
6744
6745         * PrintDialog.cs: same.
6746
6747         * DataGridTextBoxColumn.cs: same.
6748
6749         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
6750
6751 2006-12-05  Chris Toshok  <toshok@ximian.com>
6752
6753         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
6754         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
6755         System.ComponentModel.EventHandlerList work.
6756
6757 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
6758
6759         * DrawTreeNodeEventArgs.cs: Added.
6760
6761 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6762         
6763         * InternalWindowManager.cs: Remove an unused field.
6764         
6765 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6766
6767         * InternalWindowManager.cs:
6768         - Save the point where the title bar is clicked.
6769         
6770         * MdiWindowManager.cs:
6771         - Only allow moving of the window as long as the 
6772         clicked point on the title bar does not get out of
6773         MdiClient's rectangle. Fixes #79982.
6774         
6775         * MdiClient.cs:
6776         - Added Horizontal/VerticalScrollbarVisible.
6777         - Simplified the scrollbar sizing algorithm.
6778         - Cache the difference in scrolled value in
6779         H/VBarValueChanged and move the calculation out
6780         of the for loop.
6781
6782 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6783
6784         * Control.cs: Make the Console.WriteLine in WndProc 
6785         write more info.
6786
6787 2006-12-05  Chris Toshok  <toshok@ximian.com>
6788
6789         * ToolStripManager.cs, ToolStripButton.cs,
6790         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
6791         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
6792         ToolStripSplitButton.cs, ToolStripSeparator.cs,
6793         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
6794         ToolStripProgressBar.cs, ToolStripContainer.cs,
6795         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
6796         to using System.ComponentModel.EventHandlerList.
6797
6798 2006-12-04  Chris Toshok  <toshok@ximian.com>
6799
6800         * LinkLabel.cs: fix up compiler warnings.
6801
6802         * TableLayoutSettings.cs: same.
6803
6804         * TreeView.cs: same.
6805
6806         * ToolBar.cs: same.
6807
6808         * TabControl.cs: same.
6809
6810         * RichTextBox.cs: same.
6811
6812         * ListViewItem.cs: same.
6813
6814         * PropertyGrid.cs: same.
6815
6816         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
6817
6818         * ToolTip.cs same.
6819
6820         * TextRenderer.cs: fix up compiler warnings.
6821
6822         * Label.cs: same.
6823
6824         * Form.cs: corcompare fixes.
6825
6826         * PictureBox.cs: fix up compiler warnings.
6827
6828         * ImageListStreamer.cs: same.
6829
6830         * TrackBar.cs: corcompare fix.
6831
6832         * Control.cs: fix up compiler warnings.
6833
6834         * SplitterPanel.cs: same.
6835
6836         * NumericTextBox.cs: same.
6837
6838         * ImageList.cs: same.
6839
6840         * StatusStrip.cs: same.
6841
6842         * ProgressBar.cs: corcompare fix.
6843
6844         * ToolStripButton.cs: fix up compiler warnings.
6845
6846         * ToolStripStatusLabel.cs: same.
6847
6848         * ToolStripSplitButton.cs: same.
6849
6850         * ToolStripSeparator.cs: same.
6851
6852         * ToolStripProgressBar.cs: same.
6853
6854         * ToolStripDropDownMenu.cs: same
6855
6856         * ToolStripDropDown.cs: same.
6857
6858         * ToolStripDropDownButton.cs: same.
6859
6860         * ToolStrip.cs: same.
6861
6862         * ToolStripControlHost.cs: same.
6863
6864         * ToolStripContentPanel.cs: same.
6865
6866         * ToolStripDropDown.cs: same.
6867
6868         * ToolStripContainer.cs: same.
6869
6870         * ToolStripPanel.cs: same, and add "new" where we need it to work
6871         with the new ArrangedElementCollection.
6872
6873         * ToolStripItemCollection.cs: add "new" where we need it to work
6874         with the new ArrangedElementCollection.
6875
6876 2006-12-04  Andreia Gaita <avidigal@novell.com>
6877
6878         * TabControl.cs: Fix default tab selection to after TabControl
6879         gets focus and not before. Fixes #80128
6880
6881 2006-12-04  Chris Toshok  <toshok@ximian.com>
6882
6883         * DataGridTableStyle.cs: remove the gross calling of
6884         datagrid.Refresh from here.  It's a broken idea and it doesn't
6885         work anyway.
6886
6887         * DataGrid.cs: instead, just register/unregister from the
6888         DataGridTableStyle events in CurrentTableStyle.  we play it
6889         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
6890         even though some would most likely not require it.  Fixes bug
6891         #80115 (and one portion of #80117 as a side effect).
6892
6893 2006-12-04  Chris Toshok  <toshok@ximian.com>
6894
6895         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
6896         so the textbox (if any) goes away.  Fixes bug #80117.
6897
6898 2006-12-04  Chris Toshok  <toshok@ximian.com>
6899
6900         * DataGridColumnStyle.cs: set the column's readonly property
6901         initially based on the property descriptor's IsReadOnly.  Fixes
6902         bug #80044.
6903
6904 2006-12-04  Chris Toshok  <toshok@ximian.com>
6905
6906         * ComboBox.cs: wrap the dropdown style changing work in
6907         SuspendLayout/ResumeLayout.  Fixes bug #79968.
6908
6909 2006-12-04  Jackson Harper  <jackson@ximian.com>
6910
6911         * TextBoxBase.cs: Fix off by one, since these are one-based.
6912         * TextBox.cs: Select all the text when we get focus.  The TextBox
6913         does this but the RTB does not.
6914
6915 2006-12-04  Chris Toshok  <toshok@ximian.com>
6916
6917         * DataGridTextBoxColumn.cs: remove some spew.
6918
6919         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
6920         but some part of me is saying "it shouldn't be here.."  At any
6921         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
6922         setting the value.
6923
6924 2006-12-04  Chris Toshok  <toshok@ximian.com>
6925
6926         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
6927         to reassign the propertydescriptor.
6928
6929 2006-12-04  Jackson Harper  <jackson@ximian.com>
6930
6931         * TextBoxBase.cs:
6932         * TextControl.cs: Remove some unused variables.  Maybe this will
6933         patch things up between mike and I.
6934         - don't split lines less then one char wide, if the viewport is
6935         that small text won't be visible anyways.
6936         
6937 2006-12-04  Jackson Harper  <jackson@ximian.com>
6938
6939         * TextBoxBase.cs: Default selection length is -1, need to do some
6940         more testing on windows to see when this is used for the property.
6941         - Redid the Lines [] property to that we properly remove soft line
6942         breaks
6943         - added support for preserving carriage returns
6944         -  CanUndo is not a variable like 'is undo enabled' it just returns
6945         true if there is undo operations available.
6946         - AppendText doesn't need to grab the last tag itself anymore,
6947         this happens automatically when we move the cursor.
6948         * TextControl.cs: Add CompoundActions to the undo class. This
6949         allows combining the other operations into one big option.  ie a
6950         paste will combine { delete old, insert new, move cursor }
6951         - Add InsertString undo operation
6952         - New method for deleting multiline text
6953         - Add carriage returns to lines. So we can preserve carriage
6954         returns when text is 'roundtripped'
6955
6956 2006-12-04  Chris Toshok  <toshok@ximian.com>
6957
6958         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
6959         minimum 0.  Fixes the scrollbar exception in bug #80136.
6960
6961 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6962
6963         * MdiClient.cs: 
6964         * MdiWindowManager: Removed unused fields and methods.
6965         
6966 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6967         
6968         * StatusBar.cs: Update all panels when a AutoSize=Contents
6969         panel needs updating.
6970         
6971         * StatusBarPanel.cs: Remove twidth and only use initialize.
6972         Fixes #80031.
6973                 
6974 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6975
6976         * Form.cs: When a form's MdiParent is set add it directly
6977         on top of the z-order in stead of relying on MdiClient's
6978         ActivateChild to do it. Fixes #80135.
6979         
6980         * MdiClient.cs: 
6981         - Remove original_order, mdi_child_list is already doing
6982         the same thing.
6983         - Create mdi_child_list on construction in
6984         stead of first use (avoids a few null checks).
6985
6986         * MenuItem.cs: Use an already existing list of mdi children
6987         to get the correct order of children and remove the other
6988         redundant list.
6989
6990 2006-12-04  Chris Toshok  <toshok@ximian.com>
6991
6992         * PropertyGridView.cs: cached_splitter_location is only used in
6993         !DOUBLEBUFFER code.
6994
6995         * PropertyGrid.cs: implement the ComComponentNameChanged event
6996         using Events, hoping that would fix the warning.  Looks like a
6997         compiler bug instead (#80144).
6998
6999         * PropertyManager.cs: remove unused method.
7000
7001 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
7002
7003         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
7004         include parentesis to fix expression evaluation. Fixes #79634.
7005
7006 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
7007         
7008         * MenuAPI.cs:
7009         - Changes to fix behavior in Menu control, some reported in #80097
7010         and other detected during behavior refactory like a select event
7011         problems.
7012         - Remove unneded "if's" conditions.
7013         - Created an internal to flag when popup is active in control, we need 
7014         it because in .NET you can have menu active but without popup active
7015         when you active menu using popup without visible items.
7016         - Mimic win32 behavior for Select and Popup events.  
7017         - Dont open popup menu when you dont have visible subitems.
7018         - Do nothing when click on disabled menu item.
7019         - Some small changes to follow the coding style guidelines.
7020         - Unselect menu only when another control gives focus. Fixes #80097.
7021         - Remove unused code.
7022         
7023         * MenuItem.cs: internal VisibleItems method to check if menu
7024         theres visible subitems, it will be usefull to fix some 
7025         behavior in Menu control.
7026         
7027 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7028         
7029         * Timer.cs: Tag property for 2.0 profile.
7030         
7031 2006-12-01  Chris Toshok  <toshok@ximian.com>
7032
7033         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
7034         
7035         * Win32DnD.cs: comment out some unused fields.
7036
7037         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
7038         some unused properties/methods.
7039
7040         * XplatUIX11.cs: fix MousePosition so we override the base class's
7041         property instead of conflicting with it.
7042
7043         * PictureBox.cs: comment out some unused fields
7044
7045         * OSXStructs.cs: make some struct fields public.
7046
7047         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
7048         MousePosition so we override the base class's property instead of
7049         conflicting with it.
7050
7051         * X11Dnd.cs: comment out some unused fields
7052
7053         * X11DesktopColors.cs: fix some struct field visibility to quiet
7054         the compiler.
7055
7056         * X11Dnd.cs: remove some debug code.
7057
7058         * ThemeClearlooks.cs: comment out unused field.
7059
7060         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
7061
7062         * ThemeGtk.cs: comment out some unused pinvokes.
7063
7064         * Timer.cs: remove some unused fields.
7065
7066         * ThemeClearlooks.cs: comment out unused field.
7067
7068         * UpDownBase.cs: comment out unused field.
7069
7070         * DataObject.cs: comment out unused field.
7071
7072         * DataGridBoolColumn.cs: reomve unused field.
7073
7074         * DataGrid.cs: remove unused field.
7075
7076         * Cursor.cs: remove old ToBitmap code.
7077
7078         * ControlPaint.cs: remove unused method.
7079
7080         * ScrollBar.cs: remove unused fields.
7081
7082         * ComboBox.cs: remove unused field, and chain up to
7083         AccessibleObject ctor.
7084
7085         * ListBox.cs: remove unused field.
7086
7087         * ButtonBase.cs: wrap a couple fields in NET_2_0.
7088
7089         * GridEntry.cs: remove unused fields.
7090
7091         * Binding.cs: remove unused fields.
7092
7093         * AxHost.cs: remove unused method.
7094
7095         * ContainerControl.cs: remove unused field.
7096
7097         * ScrollableControl.cs: remove unused fields.
7098
7099 2006-12-01  Chris Toshok  <toshok@ximian.com>
7100
7101         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
7102         the Where/WhereString stuff.  it's easy enough to CWL
7103         Environment.StackTrace.
7104
7105         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
7106         unused private fields.
7107
7108 2006-12-01  Jackson Harper  <jackson@ximian.com>
7109
7110         * TextControl.cs: Do not update the view while inserting multiline
7111         text. If we update the view we might wrap lines, before entering
7112         the new lines, which causes the new line insertion calculations to
7113         be totally fubared.
7114         - Remove an old TODO
7115         - Make debug output a little nicer
7116         
7117 2006-12-01  Chris Toshok  <toshok@ximian.com>
7118
7119         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
7120
7121 2006-12-01  Chris Toshok  <toshok@ximian.com>
7122
7123         [ fix the majority of the CS0108 warnings we've been suppressing ]
7124         
7125         * TreeView.cs: mark BackgroundImageChanged as 'new'.
7126
7127         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
7128         to "LayoutToolBar" to quiet mcs.
7129         
7130         * TabControl.cs: mark our ControlCollection class as 'new'.
7131
7132         * TextBoxBase.cs: mark some events as 'new'.
7133
7134         * Splitter.cs: TabStop is 'new'.
7135
7136         * ControlBindingsCollection.cs: mark a few methods as new since
7137         they change the visibility from protected to public.
7138
7139         * RadioButton.cs: DoubleClick -> base class, and remove unused
7140         HaveDoubleClick.
7141
7142         * MonthCalendar.cs: ImeMode property -> base class, and mark many
7143         events as new.
7144
7145         * NumericUpDown.cs: TextChanged -> base class.
7146
7147         * CheckedListBox.cs: mark our ObjectCollection class as new to
7148         quiet mcs.
7149
7150         * FolderBrowserDialog.cs: make HelpRequest event new and have it
7151         muck with the base class.
7152
7153         * StatusBar.cs: fix some mcs warnings about Update being the same
7154         name as a base class method.
7155
7156         * RichTextBox.cs: mark some events as new, and make them do things
7157         to the base class impl.
7158
7159         * UserControl.cs: mark TextChanged as new, and have it manipulate
7160         base.TextChanged.
7161
7162         * UpDownBase.cs: mark some things new.
7163
7164         * CheckBox.cs: mark DoubleClick "new", and add some text about
7165         what we need to look at.
7166
7167         * Panel.cs: make the events "new", and manipulate the base
7168         version.  these are just here for attributes.
7169
7170         * AccessibleObject.cs: make owner private.
7171
7172         * Control.cs: deal with AccessibleObject.owner being private.
7173         cache our own copy if we need it.
7174
7175         * Button.cs: add "new" to the DoubleClickEvent.
7176
7177         * ListBox.cs: no need to track our own has_focus here.  let
7178         Control.has_focus do it for us.  Also some other work to clear up
7179         warnings about not overriding base class methods of the same name.
7180         
7181         * ComboBox.cs: clear up some warnings about not override base
7182         class methods of the same name.
7183
7184 2006-12-01  Chris Toshok  <toshok@ximian.com>
7185
7186         * Form.cs: flag a few things as "new" to quiet some of the mcs
7187         warnings.
7188
7189         * AxHost.cs: same.
7190
7191         * PrintPreviewDialog.cs: same.
7192
7193         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
7194         now DGV isn't so horrible on the class status page.  also, move
7195         all events to using System.ComponentModel.EventHandlerList.  my
7196         wrists hurt.
7197
7198 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7199
7200         * MdiWindowManager.cs:
7201         - Set form to active mdi child if shown,
7202         and update the active mdi child to the next 
7203         remaining child in the z-order if the form is hidden.
7204
7205         * Form.cs: 
7206         - Track if the form has been visible and if its 
7207         visibility is beeing changed, so that the MdiClient
7208         can properly decide the ActiveMdiChild. The MdiClient 
7209         cannot track this since the form can change visibility 
7210         before MdiClient is created.
7211
7212         * MdiClient.cs:
7213         - Don't activate anything of the parent form is changing
7214         its visibility.
7215         - Rework ActiveMdiChild to only return visible mdi 
7216         children and take into account several other corner 
7217         cases.
7218
7219 2006-12-01  Chris Toshok  <toshok@ximian.com>
7220
7221         * IBindableComponent.cs: new 2.0 interface.
7222
7223 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
7224
7225         * DataGrid.cs: Font for caption area is bold by default.
7226
7227 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
7228
7229         * Menu.cs: Tag property for 2.0.
7230         
7231 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7232
7233         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
7234         
7235 2006-12-01  Chris Toshok  <toshok@ximian.com>
7236
7237         * TreeView.cs: doh, the Begin* events should be
7238         TreeViewCancelEventHandler.
7239
7240 2006-12-01  Chris Toshok  <toshok@ximian.com>
7241
7242         * Form.cs: Form.ControlCollection already stores off the
7243         form_owner field.  don't access the base class's internal "owner"
7244         field.
7245
7246         * Control.cs: make all the fields in Control.ControlCollection
7247         private.  there's no need for any internal fields here.
7248
7249 2006-12-01  Chris Toshok  <toshok@ximian.com>
7250
7251         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
7252         OnHandleCreated.  Fixes bug #80109.
7253
7254 2006-12-01  Chris Toshok  <toshok@ximian.com>
7255
7256         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
7257         SplitContainer.cs, Control.cs, StatusStrip.cs,
7258         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
7259         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
7260         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
7261         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
7262         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
7263         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
7264         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
7265         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
7266         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
7267         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
7268
7269         do most of the work to convert our code over to use
7270         System.ComponentModel.Component.Events for
7271         adding/removing/dispatching events.
7272
7273
7274 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7275
7276         * DataGridView.cs: Fix an ArgumentNullException reported 
7277         twice today in IRC.
7278
7279 2006-11-30  Mike Kestner  <mkestner@novell.com>
7280
7281         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
7282         grabbed listbox.  Fixes #80036 and #80101.
7283
7284 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7285
7286         * Message.cs: Changed ToString() to match MS.
7287         
7288 2006-11-30  Jackson Harper  <jackson@ximian.com>
7289
7290         * TextBoxBase.cs: You can still change the selected text on a read
7291         only textbox.
7292         * TextControl.cs: Lower magic number for wrap calculations. This
7293         lets text get closer to the right (far) edge.
7294
7295 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7296
7297         * Control.cs: Tweak 2.0 layout properties.
7298         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
7299         * TextRenderer.cs: Add a new overload.
7300         * ToolStrip*: Huge amount of changes and new features.
7301
7302 2006-11-30  Mike Kestner  <mkestner@novell.com>
7303
7304         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
7305         scroll range correct.  Fixes #79994.
7306
7307 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7308
7309         * MdiWindowManager.cs: Update main form's text when
7310         a form is closed. (fixes #80038)
7311         
7312 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
7313
7314         * ToolBar.cs:
7315         - Fix an regression in ButtonSize.
7316         - Get ImeMode default value change to "Disable".
7317         - Get ShowTooltips default value change to true, default value is 
7318         "false" but after make a test in .NET we get "true" result as default.
7319         
7320 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
7321
7322         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
7323
7324 2006-11-29  Chris Toshok  <toshok@ximian.com>
7325
7326         * XplatUIWin32.cs (GetWindowTransparency): check return value of
7327         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
7328         SetWindowTransparency hasn't been called.
7329
7330 2006-11-29  Chris Toshok  <toshok@ximian.com>
7331
7332         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
7333         if it's supported.
7334         (set_AllowTransparency): reorder things a little so that the
7335         WS_EX_LAYERED style is removed properly.
7336
7337 2006-11-29  Chris Toshok  <toshok@ximian.com>
7338
7339         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
7340         
7341         * Form.cs: only call the XplatUI transparency method (get/set) if
7342         SupportsTransparency says it's supported. Otherwise fallback to
7343         doing nothing (in the set case) or returning the instance field we
7344         cache (in the get case).
7345
7346         * XplatUIStructs.cs: add TransparencySupport flag enum.
7347         
7348         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
7349         change to SupportsTransparency.
7350
7351         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
7352         TransparencySupport.None from SupportsTransparency.
7353
7354         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
7355         TransparencySupport.Set from SupportsTransparency.
7356
7357         * XplatUIWin32.cs: implement GetWindowTransparency calling
7358         GetLayeredWindowAttributes, and implement SupportsTransparency by
7359         checking whether or not both
7360         GetWindowTransparency/SetWindowTransparency are available
7361         entrypoints.  We need to do this since SetWindowTransparency is
7362         available as of win2k, but GetWindowTransparency requires winxp.
7363         yay win32 api.
7364
7365         * XplatUI.cs: Add GetWindowTransparency, and change
7366         SupportsTransparency to allow for either/both Get/Set.
7367
7368 2006-11-29  Chris Toshok  <toshok@ximian.com>
7369
7370         * DataGrid.cs: keep from going into an infinite loop redrawing a
7371         datagrid that has no datasource.  Fixes bug #80033.
7372
7373 2006-11-29  Chris Toshok  <toshok@ximian.com>
7374
7375         * MenuItem.cs: fix the NRE when we assign text (and therefore call
7376         Invalidate) before the mainmenu has been assigned to a control.
7377
7378 2006-11-29  Chris Toshok  <toshok@ximian.com>
7379
7380         * DataGrid.cs: detect when we should be double the double click
7381         row/column autosize stuff, although that codepath has yet to be
7382         written.  part of the work for bug #79891.
7383
7384 2006-11-29  Chris Toshok  <toshok@ximian.com>
7385
7386         * Binding.cs (SetControl): fix unit test.
7387
7388 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7389
7390         * PageSetupDialog.cs: Validate the margins and set them in
7391         PageSettings. 
7392         * NumericTextBox.cs: New class to mimic the behavior of the
7393         textboxes used in the printing dialogs.
7394
7395 2006-11-29  Andreia Gaita  <avidigal@novell.com>
7396         
7397         * Form.cs: Revert previous change (remove call UpdateBounds
7398         from form constructor), because it messes with the handle creation
7399         order, and that one needs lots and lots of love.
7400         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
7401         for valid printer and throw InvalidPrinterException if document
7402         is set but printer not valid), adding a MonoTODO. Once 
7403         handle creation is done properly, we can put this back in.
7404
7405 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7406
7407         * MenuItem.cs: Create a invalidate method for menu item, to be
7408         calling from set text, it make text changes to imadiate update
7409         on screen. Fixes #80013. 
7410         
7411 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7412
7413         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
7414         fixes bug #80070 and some other problem on toolbar buttons
7415         layout.
7416
7417 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7418
7419         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
7420         with dotted brush.      Fixes #79564
7421         
7422 2006-11-28  Andreia Gaita  <avidigal@novell.com>
7423
7424         * Form.cs: Removed call to UpdateBounds on Form
7425         constructor, it was causing a call to CreateHandle
7426         before it was supposed to.
7427         * PrintControllerWithStatusDialog: Applied patch
7428         by Chris Toshok to hide controller when there are
7429         no printers available.
7430         PrintDialog.cs: initialize printer settings to 
7431         null - correct DefaultValues test #5
7432         * PrintPreviewControl.cs: Move PrintController
7433         initialization to GeneratePreview
7434         * PrintPreviewDialog.cs: 
7435         - Remove Preview generation     from Document_set(). It is 
7436         called on OnPaint
7437         - Throw InvalidPrinterException on CreateHandle if
7438         a Document is set but there are no printers or 
7439         printer is not valid.
7440         * ThemeWin32Classic: don't paint PrintPreviewControl
7441         if there is nothing to paint    
7442
7443 2006-11-28  Miguel de Icaza  <miguel@novell.com>
7444
7445         * Form.cs: Add another popular method.
7446
7447         * TabPage.cs: ditto.
7448
7449 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7450
7451         * MenuItem.cs: Fixed a warning.
7452         * InternalWindowManager: Fixed a warning.
7453
7454 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7455
7456         * MenuItem.cs:
7457         - When cloning a menu also clone MdiList and clone the 
7458           window menu items properly (as the forms and menuitems
7459           are kept in an internal hashtable, these need updating 
7460           as well)
7461         - Rewrote the window menu code, menu items are added in the
7462           order the forms were added to their parent, and they are
7463           updated every time the window menu is shown (before the
7464           list was only generated once, in the current order of the
7465           forms, and would never be updated). A checkmark is shown
7466           next to the item corresponding to the active mdi child.
7467
7468 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7469
7470         * XplatUIStructs.cs: 
7471         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
7472         
7473         * XplatUIWin32.cs: 
7474         - Added TME_NONCLIENT to TMEFlags.
7475         - Handles WM_NCMOUSEMOVE in GetMessage to 
7476           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
7477
7478         * MdiWindowManager:
7479         - Now merges mdi child menu to parent menu when maximized.
7480         - Recalculate NC areas of both mdi child and mdi parent. 
7481           Fixes #79757 (4).
7482           on window state and size changes.Fixes #79844 (3).
7483         - Handle WM_NCCALCSIZE to properly calculate borders.
7484
7485         * Form.cs:
7486         - Add/remove to the mdi containers list of mdi children 
7487           in the order they are added.
7488         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
7489           to the maximized mdi child.
7490         
7491         * InternalWindowManager.cs:
7492         - Only execute a click on the control buttons on the mouse up,
7493           not on the mouse down. Show the state of the button 
7494           (was only showing Normal state, never Pressed state). The
7495           pressed button now follows the mouse (if you click the Close 
7496           button and move the mouse over the Maximize button, the 
7497           Maximize button will be shown as pressed). Since Win32 does
7498           not generate WM_NCLBUTTONUP if you release the button outside
7499           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
7500           it as a mouse up.
7501         
7502         * ThemeWin32Classic.cs:
7503         - Draw a missing border around mdi child forms. Fixes #79844 (2).
7504
7505         * MdiClient.cs:
7506         - Added a list of forms which contains the order the forms are
7507           added to the mdi parent.
7508         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
7509         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
7510         - If the active form changes set the scrollbars to the top
7511           of the Z order, otherwise the form could hide them.
7512         - Scrollbars are now sized according to ClientSize, not 
7513           to Size, and they take into account the other scrollbar
7514           to determine maximum.
7515         
7516 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
7517         
7518         * XplatUI.cs:
7519         * XplatUIDriver.cs:
7520         * XplatUIX11.cs:
7521         * XplatUIWin32.cs:
7522         * XplatUIOSX.cs:
7523         - Added RequestAdditionalWM_NCMessages for windows to 
7524           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
7525           Currently only implemented in XplatUIWin32.
7526
7527 2006-11-27  Chris Toshok  <toshok@ximian.com>
7528
7529         * Hwnd.cs: only add the hwnd to the windows hash in
7530         set_WholeWindow and set_ClientWindow if whole_window/client_window
7531         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
7532
7533 2006-11-27  Mike Kestner  <mkestner@novell.com>
7534
7535         * ComboBox.cs: remove redundant OnDropDown call.  It is called
7536         from the ComboListBox.ShowWindow code. Fixes #79969.
7537
7538 2006-11-27  Chris Toshok  <toshok@ximian.com>
7539
7540         * Hwnd.cs: remove the setters for ExposePending and
7541         NCExposePending - noone uses them.
7542
7543 2006-11-27  Jackson Harper  <jackson@ximian.com>
7544
7545         * TextControl.cs: new param for ReplaceSelection which determines
7546         whether we select the new selection, or set the cursor to the end
7547         of the new selection.
7548         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
7549         pasting, select the new text.
7550         * RichTextBox.cs: Use new param for ReplaceSelection.
7551
7552 2006-11-27  Jackson Harper  <jackson@ximian.com>
7553
7554         * TextBoxBase.cs: Set the selection to the caret after the caret
7555         is moved, otherwise they get out of sync.
7556
7557 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7558
7559         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
7560         it fixes #80015
7561
7562 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7563
7564         * ThemeWin32Classic.cs: 
7565         - Fix toolbar drop down arrow position.
7566         - Fix drop down appearance when ToolBar.Appearance is normal,
7567         it fixes #80018.
7568         
7569 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
7570
7571         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
7572         * Control.cs: Same.
7573         * UpDownBase.cs: Same.
7574         * ButtonBase.cs: Same.
7575         * ScrollBar.cs: Same.
7576         * TrackBar.cs: Same.
7577         * PictureBox.cs: Same.
7578         * UserControl.cs: Same.
7579         * Label.cs: Same.
7580         * ListControl.cs: Same.
7581         * TextBoxBase.cs: Same.
7582         * ListView.cs: Same.
7583         * RichTextBox.cs: Same.
7584         * TreeView.cs: Same.
7585
7586 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
7587
7588         * PrintDialog.cs:
7589         - Text label for where 
7590         - Text label comment was not shown
7591
7592 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
7593
7594         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
7595
7596 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7597
7598         * InternalWindowManager.cs: 
7599         - Handle WM_PARENTNOTIFY to activate the form
7600         if any child control is clicked.
7601         - The form is only sizable if not minimized.
7602
7603         * MdiWindowManager.cs:
7604         - Save the IconicBounds if the form is moved.
7605         - Rework SetWindowState, now the window bounds 
7606         are stored only if the old window state is Normal.
7607         
7608         * MdiClient.cs:
7609         - In SetWindowStates store the old window state if 
7610         the window is maximized and restore window state if
7611         the window looses focus.
7612         - Don't handle any scrollbar value changes if 
7613         initializing the scroll bars. Fixes #79771.
7614         - Reworked ArrangeIconicWindows. Current algorithm
7615         tests bounds agains all other minimized windows, if
7616         any intersections create new bounds (going left to 
7617         right, bottom to top) and then test again. When 
7618         successful the bounds are saved and never computed
7619         again. Fixes #79774.
7620
7621 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7622
7623         * InternalWindowManager.cs: Added HandleTitleBarUp.
7624
7625 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7626
7627         * NumericUpDown.cs: In .NET 1.1, user entered text is still
7628         hexadecimal in ParseUserEdit.
7629
7630         
7631 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7632
7633         * MdiWindowManager.cs: 
7634         - Handle a click on the form's icon to show the 
7635         system menu (when maximized). Fixes #79775.
7636         - Change the existing click handler for the form's
7637         icon when not maximized to show on MouseUp.
7638         Fixes #79776.
7639
7640         * Form.cs: In OnResize only layout the mdi child's
7641         parent if it actually has a parent. Might not if
7642         the window is closing.
7643
7644
7645 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7646
7647         * MdiClient.cs: Ignore active MDI client for text of parent, if
7648         child has no text set.
7649
7650 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7651
7652         * ToolBar.cs: Fixed ToString to match MS.
7653
7654 2006-11-22  Andreia Gaita  <avidigal@novell.com>
7655
7656         * NumericUpDown: 
7657         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
7658         update inner values on set. Fixes #79966.
7659         - Override OnLostFocus to update value on NET 2. Fixes #79950.
7660         - Fix hexadecimal parsing.
7661         
7662         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
7663         parent. Fixes #79957
7664
7665 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7666
7667         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
7668         the actual size has to be queried, since if height /
7669         width is negative Win32 changes it to 0. 
7670         Fixes #79999 on Windows.
7671         
7672         * XplatUIX11.cs: Set height / width to 0 if negative
7673         in SetWindowPos. Fixes #79999 on Linux.
7674         
7675 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7676
7677         * ThemeWin32Classic.cs: Fix text redenring when button is
7678         pressed.
7679
7680 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7681
7682         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
7683         and later navigate by mouse. Fixes #79528.
7684
7685 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7686
7687         * ToolBar.cs: Set default value for TabStop to false in
7688         constructor, it fixes remaining behavior of bug #79863.
7689
7690 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7691
7692         * MdiWindowManager.cs:
7693         * InternalWindowManager.cs:
7694         - Moved a few methods specific to Mdi from 
7695         InternalWindowManager to MdiWindowManager.
7696         Fixes #79996.
7697         
7698 2006-11-21  Chris Toshok  <toshok@ximian.com>
7699
7700         * XplatUIOSX.cs: stub out InvalidateNC.
7701
7702         * XplatUIWin32.cs: implement InvalidateNC using the call I found
7703         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
7704
7705         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
7706
7707         * XplatUIDriver.cs: add InvalidateNC abstract method.
7708
7709         * XplatUI.cs: add InvalidateNC.
7710
7711 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7712
7713         * ToolBar.cs: Invalidate complete button area when pressed status 
7714         was changed.
7715         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
7716         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
7717         by 1 when button is pressed.
7718
7719 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7720
7721         * ToolButton.cs: Invalidate middle of DropDown button when
7722         ToolBar theres DropDownArrows.
7723         * ThemeWin32Classic.cs: Change position of DropDown arrow and
7724         fix DropDown drawing operations.
7725
7726 2006-11-20  Chris Toshok  <toshok@ximian.com>
7727
7728         * NativeWindow.cs: fix the formatting of functions ('{' on the
7729         following line), and enable the thread exception dialog.
7730
7731         * Application.cs: remove the duplicate exception catching from
7732         here.
7733
7734 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7735
7736         * Toolbar.cs: Triggers button click event when click on icon
7737         of dropdown ToolBarButton. Fixes #79912.
7738         
7739 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7740
7741         * Theme.cs:
7742         * ThemeWin32Classic.cs:
7743         - Added a property WindowBorderFont to enable themeing
7744           of mdi child windows' Text.
7745           
7746 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7747
7748         * InternalWindowManager.cs:
7749         * Form.cs:
7750         * MdiClient.cs:
7751         * MdiWindowManager.cs: 
7752         - If mdi child is maximized, set mdi parent's
7753           text to "Parent - [Child]". Fixes #79770.
7754         - If there is any maximized mdi child windows, only the active 
7755           window (and any new windows) is maximized, the rest are normal.
7756         - On a WindowState change only save mdi child's window bounds 
7757           if the old window state was normal. Fixes #79774.
7758         - The scroll bars are now calculated on hopefully all
7759           necessary events. Fixed #79771 / #79844->6 / #79906.
7760         - MdiClient.SizeScrollBars() now takes into account docked 
7761           controls in the parent when calculating available space.
7762         - InternalWindowManager now always repaints the entire title
7763           area. Fixes #79844->1/4/5.
7764         - Added RequestNCRecalc on mdi child windowstate changes.
7765           Fixes #79772.
7766
7767 2006-11-20  Mike Kestner  <mkestner@novell.com>
7768
7769         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
7770         in the MouseUp handler of the listbox and move the return handling
7771         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
7772
7773 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7774
7775         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
7776
7777 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
7778
7779         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
7780           working in 1.2.x anymore. So, updated.
7781
7782 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
7783
7784         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
7785         NumberGroupSeparator of current culture instead of assuming en-US.
7786         Fixed bug #79967.
7787
7788 2006-11-17  Mike Kestner  <mkestner@novell.com>
7789
7790         * Control.cs: Add the concept of implicit bounds setting so that
7791         dock/undock round trips preserve explicitly set size/locations.
7792         Fixes #79313.
7793
7794 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
7795
7796         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
7797           can't handle those filters. (Fixes bug #79961)
7798
7799 2006-11-17  Chris Toshok  <toshok@ximian.com>
7800
7801         [ fixes the exit/crashes associated with #79835.  it's clearly
7802         suboptimal though, we need to figure out a better way to solve
7803         this. ]
7804         
7805         * PrintPreviewControl.cs: deal with the new invalid printer
7806         exceptions.
7807
7808         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
7809         and return false (so CommonDialog.ShowDialog doesn't actually show
7810         the form.)
7811
7812         * PrintDialog.cs: enable/disable the Ok button depending on
7813         whether or not the printer is valid.
7814
7815         * CommonDialog.cs (ShowDialog): only actually show the form if
7816         RunDialog returns true.
7817
7818 2006-11-17  Jackson Harper  <jackson@ximian.com>
7819
7820         * TextControl.cs: When soft splitting a line, mark it as a soft
7821         split line. Also carry over the current line break to the next
7822         line.
7823
7824 2006-11-17  Chris Toshok  <toshok@ximian.com>
7825
7826         * XplatUIX11.cs: when scrolling a window with an invalid area, we
7827         only want to shift the part of the invalid area that overlaps the
7828         area we're scrolling.  we also don't want to clear the invalid
7829         area unless the invalid area was entirely contained within the
7830         scrolling area.
7831
7832 2006-11-16  Chris Toshok  <toshok@ximian.com>
7833
7834         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
7835         also make sure to free the memory returned by XGetWindowProperty
7836         in GetText().
7837
7838         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
7839
7840 2006-11-16  Chris Toshok  <toshok@ximian.com>
7841
7842         * XplatUI.cs: add a new super secret way to get at the totally
7843         unsupported X11 backend.
7844
7845 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
7846
7847         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
7848
7849 2006-11-16  Jackson Harper  <jackson@ximian.com>
7850
7851         * TreeView.cs: Allow more explicit setting of top node position
7852         for scrollbars. Slower algo, but more accurate.
7853         - CollapseAll should maintain the current top node.
7854         * TextBoxBase.cs: When positioning the caret, use the line, pos
7855         method, since the x, y method does not grab the correct tag, and
7856         the caret height never gets set correctly. (Maybe I should just do
7857         away with the caret having its own height, and always use the
7858         carets current tag for height).
7859
7860 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
7861
7862         [Fixes 79778, 79923]
7863
7864         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
7865         Parent to the FosterParent instead.
7866
7867 2006-11-16  Jackson Harper  <jackson@ximian.com>
7868
7869         * TreeView.cs: Need to recalc the topnode when we expand or
7870         collapse. The scrolling methods can't handle this on their own,
7871         since they use differences between the last scroll position, and
7872         those difference get completely messed up since we are expanding
7873         nodes.  This problem should probably be fixed in the scrolling
7874         methods, so they can figure out exactly where they are, but this
7875         will slow things down a little.
7876         * ThemeWin32Classic.cs: Special case for groupboxes with empty
7877         strings, makes nunit-gui look a lot nicer.
7878
7879 2006-11-16  Chris Toshok  <toshok@ximian.com>
7880
7881         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
7882         the broken multithreaded event handling we have in here.  File
7883         this entry under "Why we should move to the new X11 backend".
7884
7885         Any thread can make it into UpdateMessageQueue, which gets events
7886         from the X socket - some of which could belong to hwnds being
7887         managed by a different thread.  We can also have multiple threads
7888         in UpdateMessageQueue at the same time, with each one reading from
7889         the X socket.  This leads to many problems, with the following
7890         solutions:
7891
7892         We can't use hwnd.Queue.Enqueue anywhere in here and must use
7893         EnqueueLocked.
7894
7895         The MotionNotify compression we do can't work across threads
7896         (without locking the entire queue, perhaps) since we call
7897         hwnd.Queue.Peek, so we just punt and don't compress motion events
7898         unless the owning thread is the one which got the X event.
7899
7900         ConfigureNotify is another fun one, since it modifies the hwnd's
7901         bounds and then enqueues the event.  We add a lock to Hwnd which
7902         is held when setting configure_pending to true (and enqueuing the
7903         event).
7904
7905         There is a race wrt the wake socket.  we need to make sure that
7906         only 1 thread is waiting on that socket, or else a thread could
7907         sleep waiting for data that never comes.  It's difficult (but not
7908         impossible) to make happen, because it seems to require something
7909         like the following:
7910
7911             1. Thread 1 polls on wake_receive
7912         
7913             2. poll returns saying there's data to be read on
7914                wake_receive.
7915         
7916             3. Thread 2 polls on wake_receive and immediately returns
7917                saying there's data to be read.
7918
7919             4. Thread 2 reads the wakeup byte from wake_receive
7920
7921             5. Thread 1 attempts to read the wakeup byte from
7922                wake_receive.
7923
7924             6. Thread 2 exits (due to a form closing, perhaps).
7925
7926             7. Thread 1 blocks forever.
7927         
7928         Fun, eh?
7929
7930         Fixing the Expose handling isn't done yet, and the races inherent
7931         in that piece of code are responsible for the drawing mistakes you
7932         see when generating expose events in a MT app (like NPlot).  This
7933         one is the likely to be the hardest to bandaid, and it doesn't
7934         appear to cause anything but drawing problems.  The other issues
7935         caused apps to exit or hang.
7936
7937         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
7938         called from a different thread than the one that should be calling
7939         these functions.
7940
7941         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
7942
7943 2006-11-15  Chris Toshok  <toshok@ximian.com>
7944
7945         * Application.cs: null out the context's MainForm when we exit
7946         RunLoop.  Fixes a newly checked in unit test as well as the last
7947         ODE from bug #79933.
7948
7949 2006-11-15  Chris Toshok  <toshok@ximian.com>
7950
7951         * Form.cs (set_Owner): allow a null value so we can clear the
7952         form's owner.
7953         (Dispose): set all our owned_form's Owner properties to null, and
7954         clear the owned_forms collection.
7955         (WM_CLOSE): clean up this a little bit.. still not right though.
7956
7957         * ApplicationContext.cs: OnMainFormClosed should only call
7958         ExitThreadCore if the main form isn't recreating.  Fixes unit
7959         test.
7960
7961 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
7962
7963         [Fixes 78346]
7964
7965         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
7966
7967 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
7968
7969         [Fixes 79433]
7970
7971         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
7972         keep popup window types from stealing focus from the main form
7973         on Windows.
7974
7975         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
7976
7977         * MenuAPI.cs: Set above flag to true.
7978
7979 2006-11-15  Chris Toshok  <toshok@ximian.com>
7980
7981         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
7982         the button being released is not in wParam.
7983
7984 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
7985
7986         * Form.cs: Add the released button to MouseEventArgs.Button
7987         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
7988         on Win32.
7989
7990 2006-11-15  Chris Toshok  <toshok@ximian.com>
7991
7992         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
7993         GetText().  untested because it's unused in our implementation.
7994         Control.Text always caches the text, even if
7995         ControlStyles.CacheText is not set.
7996
7997         fixes bug #79939.
7998
7999 2006-11-15  Chris Toshok  <toshok@ximian.com>
8000
8001         [ fixes #79933 ]
8002         
8003         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
8004         message.  no hiding, no disposing.
8005
8006         in the WM_CLOSE handler, hide the form if it's modal.
8007
8008 2006-11-15  Chris Toshok  <toshok@ximian.com>
8009
8010         * XplatUIX11.cs: use AddExpose instead of sending a message.
8011         fixes textbox border drawing.
8012
8013 2006-11-15  Chris Toshok  <toshok@ximian.com>
8014
8015         * PropertyGridView.cs: keep from crashing on mouse move/down when
8016         the property grid is empty.
8017
8018 2006-11-14  Jackson Harper  <jackson@ximian.com>
8019
8020         * TextControl.cs: Make PageUp and PageDown more like the MS
8021         versions.
8022         * TextBoxBase.cs: When we set the text property position the
8023         cursor at the beginning of the document.
8024
8025 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8026
8027         * Form.cs: if a mdi child's WindowState has changed
8028         before it's creation, it would display wrong control
8029         buttons.
8030         
8031 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
8032
8033         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
8034           (Fixes bug #79927)
8035
8036 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8037
8038         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
8039         the window gets to paint its borders even if the window is
8040         getting smaller.
8041         
8042         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
8043         otherwise the old control buttons would still be painted 
8044         if the window gets bigger.
8045         
8046         * PaintEventArgs.cs: add an internal method so that the clip 
8047         rectangle can be changed.
8048         
8049 2006-11-13  Chris Toshok  <toshok@ximian.com>
8050
8051         [ fixes bug #79745 ]
8052         
8053         * NotifyIcon.cs: lots of cleanup.
8054
8055         * X11Structs.cs: add an enum for XEMBED messages.
8056
8057         * XplatUIX11.cs: reindent one of the giant switch statements, it
8058         was taking up an additional tab stop, and this file is already way
8059         too wide for my laptop's screen.
8060
8061         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
8062         we get it, resize the hwnd to the WMNormalHints max_width/height.
8063
8064 2006-11-13  Jackson Harper  <jackson@ximian.com>
8065
8066         * TextBoxBase.cs: Compute the value changes for the mouse wheel
8067         teh simple way.
8068
8069 2006-11-13  Chris Toshok  <toshok@ximian.com>
8070
8071         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
8072         #79898.  force a reference to the Region to stick around so the
8073         unmanaged object isn't collected (rendering our handle in the MSG
8074         stale).
8075
8076 2006-11-13  Chris Toshok  <toshok@ximian.com>
8077
8078         * XplatUIX11.cs: fix #79917 for window managers which support
8079
8080         using XStoreName on the raw utf8, and we need to convert to
8081         COMPOUND_TEXT if it's non-latin1.
8082
8083 2006-11-13  Chris Toshok  <toshok@ximian.com>
8084
8085         * Form.cs (set_DialogResult): we need to set closing to false if
8086         we're setting our result to None.  fixes bug #79908.
8087
8088 2006-11-13  Jackson Harper  <jackson@ximian.com>
8089
8090         * TextControl.cs: When formatting text, compute the adjusted tag
8091         lengths correctly, using FindTag for the end tag instead of trying
8092         to figure it out outselves.
8093         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
8094         the item, ItemHeight doesn't work, because trees with large
8095         imagelists use those for their height
8096         * TreeView.cs: ActualItemHeight factors in the image height
8097         - compute left edge of checkboxes correctly
8098         - when expanding/collapsing move the bottom down one pixel, so we
8099         aren't moving part of the node
8100
8101 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8102
8103         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
8104         stack in PaintEventStart so that it won't get disposed by the gc
8105         before reaching PaintEventEnd.
8106
8107 2006-11-13  Jackson Harper  <jackson@ximian.com>
8108
8109         * TextBoxBase.cs: Don't select the word if we are on a line with
8110         no text.
8111         - We don't need to position the caret on mouse up, since the mouse
8112         move handler should be doing this
8113         - When double clicking a blank line, the caret is advanced to the
8114         next line.
8115
8116 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
8117
8118         * TreeNodeCollection.cs: Avoid duplicating indexer code.
8119
8120 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
8121
8122         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
8123         Fixes part of bug #79910.
8124
8125 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
8126
8127         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
8128           (bug #79903). Some minor string updates to match ms.
8129
8130 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8131
8132         * FileDialog.cs: Don't add an extension if the filename
8133           already ends with that extension.
8134
8135 2006-11-10  Jackson Harper  <jackson@ximian.com>
8136
8137         * TreeView.cs: Use the currently highlighted node for the
8138         BeforeSelect event.
8139         * TextBoxBase.cs: There is no need to expand selection on
8140         MouseMove.
8141         - CanUndo means 'is there any undo operations', not 'is undo
8142         allowed on this textcontrol. Fixed ClearUndo unit test.
8143
8144 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
8145
8146         * Button.cs: only perform click when button is Selectable (so as 
8147         not to activate default buttons when they're disabled)
8148         
8149         * Control.cs: Rewrite of the SelectNextControl and related 
8150         methods. HandleClick now selects next control if the current one
8151         is being disabled.
8152         
8153         * Form.cs: OnActivated selects next active control only if Load 
8154         has already occurred. If Load hasn't run, there's no point in 
8155         selecting here, Load might change the state of controls.
8156         
8157         * FocusTest.cs: Tests marked as working again for these fixes
8158
8159 2006-11-10  Chris Toshok  <toshok@ximian.com>
8160
8161         * XplatUIX11.cs: a couple of fixes.
8162
8163         - use XInternAtoms with almost all the atoms we need to register,
8164         instead of many, many calls to XInternAtom.  should help a bit on
8165         startup time, at the expense of making the code look a little
8166         worse.
8167
8168         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
8169         isn't reparented (which seems to be a clue that we're running fon
8170         compiz) and they have an Owner form.  This fixes the tool windows
8171         in paint.net when running under compiz.
8172
8173         - when setting the opacity of a window, support both the case
8174         where the window has been reparented and also when it hasn't been.
8175         Since compiz/beryl doesn't seem to reparent windows, and these are
8176         the only window managers which support translucency, I'm not sure
8177         why we need the hwnd.reparented case at all.. but leave it in.
8178         now we get translucent windows in paint.net under compiz/beryl.
8179
8180 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8181
8182         * FileDialog.cs: Always return the value for FilterIndex that
8183           was set. Internally convert it to values that make sense.
8184
8185 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8186         
8187         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
8188
8189 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8190
8191         * Toolbar.cs: Change default value of DropDownArrows to true, the 
8192         signature still using false to make it compatible with MS but the 
8193         initial value is true. Fixes #79855.
8194
8195 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8196
8197         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
8198           only available on Linux.
8199
8200 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
8201
8202         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
8203         reduce number of calls to redraw method during toolbar creation.
8204
8205 2006-11-09  Mike Kestner  <mkestner@novell.com>
8206
8207         * ListView.cs : raise SelectedIndexChanged when an item is selected
8208         programmatically via the Item.Selected property.  Gert's nice 
8209         ListViewSelectedIndexChanged test fixture now runs clean.
8210
8211 2006-11-09  Mike Kestner  <mkestner@novell.com>
8212
8213         * ListView.cs : raise SelectedIndexChanged when a selected item is
8214         removed from the item collection using Remove or RemoveAt.
8215
8216 2006-11-09  Mike Kestner  <mkestner@novell.com>
8217
8218         * ListView.cs : raise SelectedIndexChanged once per selected item
8219         for compat with MS.  Fixes #79849+.
8220
8221 2006-11-09  Chris Toshok  <toshok@ximian.com>
8222
8223         * TabControl.cs: initialize row_count to 0, and set it to 1 when
8224         we need to (if we have any tab pages).  Fixes unit test.
8225
8226 2006-11-09  Chris Toshok  <toshok@ximian.com>
8227
8228         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
8229         width is 0, not 3.  Fixes a unit test.
8230
8231 2006-11-09  Mike Kestner  <mkestner@novell.com>
8232
8233         * ListView.cs : use Implicit scrollbars so that focus isn't 
8234         stolen from the listview when they are clicked. Fixes #79850.
8235
8236 2006-11-09  Chris Toshok  <toshok@ximian.com>
8237
8238         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
8239         have a root item.  Fixes #79879.
8240
8241 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
8242
8243         * FileDialog.cs:
8244           - Fix ToString ()
8245           - An ArgumentException is now thrown if a wrong filter
8246             is applied (matches ms). The previous filter doesn't change
8247             anymore if an exception is thrown.
8248           - Changing the FileName property also affects FileNames
8249         * ColorDialog.cs: The length of the CustomColors array is always
8250           16. It doesn't matter if we use a smaller array or null to update
8251           or change the custom colors property.
8252         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
8253           for RootFolder if we get a undefined value.
8254
8255 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8256
8257         * StatusBarPanel.cs: 
8258         - Width is set to MinWidth if Width is smaller than
8259         MinWidth. Fixes #79842.
8260         - MinWidth now always overrides Width (MSDN says MinWidth
8261         is set to Width when AutoSize = None, but they do not 
8262         behave like that).
8263         - Style has now the the correct default value.
8264         
8265 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8266  
8267         * TrackBar.cs: 
8268         - The control is completely invalidated on 
8269         Got/LostFocus to draw the focus rectangle correctly.
8270         - When AutoSize then height is always 45 (width for 
8271         vertical controls).
8272         
8273         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
8274         on the mouse when moved and it doesn't move when grabbed
8275         until the mouse moves as well. Also fixed some wrong 
8276         calculations when clicking on the thumb (control thought
8277         click was outside of thumb and didn't grab it).
8278         Fixes some of the issues in #79718.
8279
8280 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
8281
8282         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
8283
8284 2006-11-08  Chris Toshok  <toshok@ximian.com>
8285
8286         * PropertyGridView.cs: only call ToggleValue if the item is not
8287         readonly.
8288
8289 2006-11-08  Jackson Harper  <jackson@ximian.com>
8290
8291         * TextBoxBase.cs: The RichTextBox and textbox have very different
8292         word selection methods.  Implement the textbox's simple word
8293         selection here, and let the RichTextBox override and provide it's
8294         own.
8295         - Don't do extra selection on mouseup
8296         * RichTextBox.cs: Use the documents word selection algorithm, I
8297         think ideally, this function will be pulled into the
8298         RichTextBox.cs code someday.
8299
8300 2006-11-08  Chris Toshok  <toshok@ximian.com>
8301
8302         * RootGridEntry.cs: new class to represent GridItemType.Root.
8303
8304         * CategoryGridEntry.cs: reformat, and add boilerplate.
8305         
8306         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
8307         returns the UI parent anyway, and we need special handling to
8308         implement the GetTarget method in the face of it.  Also, implement
8309         Select().
8310
8311         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
8312         a root grid item, and use that instead of PropertyGrid.grid_items.
8313         Also, make use of TypeConverters (and add limitted support for
8314         ICustomTypeDescriptors) when initially populating the grid.
8315         Arrays now show up more or less properly.
8316
8317 2006-11-08  Chris Toshok  <toshok@ximian.com>
8318
8319         * Application.cs: set the modal dialog to non modal after we close
8320         it.  Fixes bug #79866.
8321
8322 2006-11-08  Jackson Harper  <jackson@ximian.com>
8323
8324         * TextControl.cs: When combining lines carry over the line end
8325         style from the end line.
8326         - Invalidate the selected area when setting it, if it is visible.
8327         * TextBoxBase.cs: Only rich text box can do full line selects.
8328         - Make sure to set the cursor position when there is a click,
8329         otherwise two clicks in separate areas could cause a large chunk
8330         to be selected.
8331
8332 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8333
8334         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
8335         Fixes #79863.
8336
8337 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8338
8339         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
8340         time. Remove tooltips when ToolButton click events.  Fixes #79856.
8341
8342 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8343
8344         * MenuAPI.cs: Ignore right click for menu actions and fixes
8345         menu border when clicked.  Fixes #79846.
8346
8347 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8348
8349         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
8350         MouseState after create wParam for message, this fixes mouse button 
8351         equal none in mouse up events.
8352         
8353 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
8354
8355         * Control.cs : Focus() now calls Select to set the Container's
8356         Active Control and to give it focus. To avoid infinite recursion
8357         (because ActiveControl also calls Focus at one point), a check 
8358         is made in Focus with the help of a new internal variable
8359         is_focusing.
8360
8361 2006-11-07  Mike Kestner  <mkestner@novell.com>
8362
8363         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
8364         if there's a selection.  Fixes #79849.
8365
8366 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
8367
8368         * PropertyGrid.cs: Avoid fixed height of help description label.
8369         Fixes part of bug #79829.
8370
8371 2006-11-07  Chris Toshok  <toshok@ximian.com>
8372
8373         * XplatUIX11.cs: fix #79790 again, by using the
8374         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
8375
8376 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8377
8378         * ToolBar.cs: Fix left click checking.
8379
8380 2006-11-07  Chris Toshok  <toshok@ximian.com>
8381
8382         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
8383
8384 2006-11-07  Chris Toshok  <toshok@ximian.com>
8385
8386         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
8387         PropertyManager unit tests.
8388
8389         * PropertyManager.cs: make property_name internal.
8390
8391 2006-11-07  Chris Toshok  <toshok@ximian.com>
8392
8393         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
8394         pass a unit test.  Also, don't set image_index to anything in
8395         response to setting the ImageList property.
8396
8397 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8398
8399         * ToolBar.cs: Ignore click events when mouse button is not a
8400         left button, only accepts other button for dropdown menus.  
8401         Fixes #79854.
8402
8403 2006-11-07  Chris Toshok  <toshok@ximian.com>
8404
8405         * DataGrid.cs: make the back and parent row buttons a little less
8406         ugly.
8407
8408 2006-11-07  Jackson Harper  <jackson@ximian.com>
8409
8410         * TextBoxBase.cs: When converting to Text don't put line breaks in
8411         for soft line breaks.
8412         * TextControl.cs: There is an initial "fake" line in the document,
8413         this is now a soft break line, so that an extra line feed doesn't
8414         get added to the end of documents.
8415
8416 2006-11-07  Chris Toshok  <toshok@ximian.com>
8417
8418         [ fix bug #79778 ]
8419         
8420         * CurrencyManager.cs: if the list is readonly, don't bother
8421         checking if IBindingList.AllowNew is true.
8422
8423         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
8424         for non-DataRowView datasources..  or rather, make it not crash.
8425         (DataGridPaintRelationRow): make sure we limit the row painting to
8426         the area not covered by the row header, and make our cell width at
8427         least large enough to cover the relation area.  This allows grids
8428         that have relations but no rows to render correctly.
8429         (DataGridPaintRowContents): same type of changes here.
8430         (SetDataSource): move back to always calling
8431         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
8432         navigating back through relations.
8433         (HitTest): handle the case where we have no cells but have
8434         relations.  Right now we generate a hit in cell 0 of whatever the
8435         row is, not sure if this is strictly correct, but it works for our
8436         purposes.
8437         
8438         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
8439         bother doing anything.
8440
8441 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
8442
8443         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
8444         early version of StatusStrip.  Not responsible for eaten
8445         application or firstborn children.
8446
8447 2006-11-06  Chris Toshok  <toshok@ximian.com>
8448
8449         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
8450         call GetTabRect with a -1 index.  Fixes #79847.
8451
8452 2006-11-06  Jackson Harper  <jackson@ximian.com>
8453
8454         * TreeNodeCollection.cs: Update scrollbars after clearing.
8455
8456 2006-11-06  Chris Toshok  <toshok@ximian.com>
8457
8458         * NumericUpDown.cs: fix the ToString method for some unit test
8459         love.
8460
8461 2006-11-06  Chris Toshok  <toshok@ximian.com>
8462
8463         * PropertyGrid.cs:
8464         - set the initial SelectedGridItem if we can.
8465
8466         - Exclude non-mergable properties only if we're merging > 1
8467         object.  Merging 1 object isn't really merging, obviously.
8468
8469         - Handle PropertySort.NoSort just like Alphabetical, which is
8470         wrong of course, but at least gets things on the screen.
8471         
8472         * PropertyGridView.cs:
8473         - Add method "FindFirstItem" which finds the first property grid
8474         item, so we can select it by default.
8475
8476         - make use of GridEntry.CanResetValue.
8477
8478         - Don't call RedrawBelowItemOnExpansion here anymore, the
8479         individual GridEntry's will do that.
8480
8481         - Remove the ITypeDescriptorContextImpl internal class.
8482         
8483         * GridEntry.cs:
8484         - this class needs to implement ITypeDescriptorContext, as it's
8485         what MS's PropertyDescriptorGridEntry does, which means we can
8486         remove the ITypeDescriptorContextImpl internal class from
8487         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
8488
8489         - keep a reference to our PropertyGridView, and move the call to
8490         RedrawBelowItemOnExpansion here from PGV.  This means
8491         programmaticly setting Expanded actually does something visible.
8492
8493         - add a CanResetValue() function which takes into account our
8494         possibly multiple "selected_objects" in the merged case.  Shifting
8495         PropertyGridView to use this method fixes another unreported
8496         crasher found running the test for #79829.
8497
8498         - when Top or Bounds is updated, make sure the PropertyGridTextBox
8499         is updated to reflect this.
8500
8501         * CategoryGridEntry.cs: the ctor takes the PGV now.
8502         
8503 2006-11-06  Jackson Harper  <jackson@ximian.com>
8504
8505         * TextControl.cs: These are 1 based.
8506         * TextBoxBase.cs: When setting the selected text, don't change the
8507         selected text tags, this is done by ReplaceText, just position the
8508         cursor at the end of the new text.
8509
8510 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8511
8512         * ListView.cs: Allow label edit only when, when LabelEdit is
8513           set to true.
8514
8515 2006-11-06  Jackson Harper  <jackson@ximian.com>
8516
8517         * TextControl.cs: If a suitable wrapping position isn't found,
8518         just wrap right in the middle of a word.
8519
8520 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8521
8522         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
8523           bug #79820.
8524
8525 2006-11-06  Jackson Harper  <jackson@ximian.com>
8526
8527         * TreeView.cs: Can't use the VisibleCount property when setting
8528         scrollbar heights, because this doesn't take into account whether
8529         or not the horz scrollbar just came visible.
8530
8531 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
8532
8533         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
8534         activated.  Fixes #79369, #79832.
8535
8536 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
8537
8538         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
8539           had to remove support for links that point to a directory. FileInfo
8540           returns no usefull information (means, the directory they point to)
8541           for such links. Replaced some empty string ("") with String.Empty.
8542
8543 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8544
8545         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
8546         NullReferenceException when attempting to remove node that is not in
8547         collection. Throw NullReferenceException when null is passed to 
8548         Remove. Allow first element of the collection to be removed. Fixes
8549         bug #79831.  In GetEnumerator ().Current return null if positioned 
8550         before the first element of the collection. In GetEnumerator ().Reset,
8551         position before first element of the collection.
8552
8553 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8554
8555         * PropertyGrid.cs: To match MS, remove default title and description
8556         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
8557         buttons.
8558
8559 2006-11-04  Chris Toshok  <toshok@ximian.com>
8560
8561         * Theme.cs: add a Clamp method, just for kicks.
8562
8563         * ThemeWin32Classic.cs: clamp all color components to [0..255].
8564
8565 2006-11-04  Chris Toshok  <toshok@ximian.com>
8566
8567         * Form.cs: if the form isn't visible, Close() does nothing.
8568
8569 2006-11-03  Chris Toshok  <toshok@ximian.com>
8570
8571         * Form.cs (Close): if the form is modal, don't Dispose of it, only
8572         Hide it.
8573         (WndProc): don't Dispose after handling the WM_CLOSE message.
8574
8575         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
8576         them as such, instead of using casts from Control to Form.  Also,
8577         don't Dispose of the modal dialog when we fall out of the loop -
8578         Close() it instead.
8579
8580         fixes bug #79813.
8581
8582 2006-11-03  Chris Toshok  <toshok@ximian.com>
8583
8584         * Control.cs (Dispose): only go through the dispose thing if we're
8585         @disposing, and we haven't already been disposed.  Fixes bug
8586         #79814.
8587
8588         * Form.cs: no reason to call "base.Dispose()" here instead of
8589         "Dispose()".
8590
8591 2006-11-03  Mike Kestner  <mkestner@novell.com>
8592
8593         * ComboBox.cs : use ToString instead of casts in AddItem for
8594         sorting functionality.  Fixes #79812.
8595
8596 2006-11-03  Chris Toshok  <toshok@ximian.com>
8597
8598         * Application.cs: pave the way for actually using the thread
8599         exception dialog.  it's ifdefed out at the moment.
8600
8601 2006-11-03  Chris Toshok  <toshok@ximian.com>
8602
8603         * ThreadExceptionDialog.cs: until we get a better layout, actually
8604         hide the details textbox and label when we shouldn't see them.
8605
8606 2006-11-03  Jackson Harper  <jackson@ximian.com>
8607
8608         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
8609         multiline textboxes anymore.  This method also determines the
8610         width/height of a textboxes canvas area.
8611         - Sorta a revert of the last patch.  For multiline just position
8612         the controls, then bail.  This way the scrollbar width won't be
8613         altered.
8614
8615 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
8616
8617         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
8618         it dont need.  Fixes #79537.
8619
8620 2006-11-02  Jackson Harper  <jackson@ximian.com>
8621
8622         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
8623         send the status after firing the DndOver event.
8624
8625 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8626
8627         * TrackBar.cs: Now orientation only switches height / width if
8628         the control's handle is created (Win32 does it like this). Also 
8629         fixed a typo in ToString() for a test to pass, changed the 
8630         exception thrown in set_LargeChange and set_SmallChange to 
8631         match Win32 behaviour, and added TrackBar tests to the unit 
8632         tests.
8633
8634 2006-11-02  Chris Toshok  <toshok@ximian.com>
8635
8636         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
8637         not _NET_WM_STATE_NO_TASKBAR.
8638
8639 2006-11-02  Jackson Harper  <jackson@ximian.com>
8640
8641         * TextControl.cs: Increment count by one, since in the update view
8642         count - 1 is used.
8643
8644 2006-11-02  Jackson Harper  <jackson@ximian.com>
8645
8646         * TextBoxBase.cs: Use client rectangle not bounds for checking if
8647         the mouse is in the client rectangle (duh).
8648
8649 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8650         
8651         * TrackBar.cs: Fixed trackbar jumping around when clicking
8652         on it - the trackbar was not detecting correctly at which
8653         side of the thumb the click was done. (fixes #79718)
8654
8655 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
8656
8657         * ListBox.cs: scroll visible area when change SelectedIndex to
8658         a non visible area.  Fixes #79481.
8659
8660 2006-11-01  Jackson Harper  <jackson@ximian.com>
8661
8662         * TextControl.cs: When replacing the selection move the selection
8663         start/end/anchor to the end of the new text.
8664
8665 2006-11-01  Jackson Harper  <jackson@ximian.com>
8666
8667         * XplatUIWin32.cs: When setting the parent change the controls
8668         visibility to it's visibility flag, not to it's old parents
8669         visibility (.Visible walks the parent chain).
8670
8671 2006-11-01  Chris Toshok  <toshok@ximian.com>
8672
8673         * XplatUIX11.cs: revert the #79790 fix, as the simple.
8674         XSetTransientForHint fix breaks paint .net's tool windows.  more
8675         work needed for that one.
8676
8677 2006-11-01  Chris Toshok  <toshok@ximian.com>
8678
8679         * ScrollBar.cs: throw ArgumentException instead of Exception in
8680         LargeChange/SmallChange setters.  fixes unit tests.
8681
8682 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8683
8684         * ContainerControl.cs: reverted rev.67183 (which was itself
8685         a reversion of rev.66853... eh).
8686         
8687         * Control.cs: Fixes Reflector hang by changing Focus() call
8688         to what it was before rev.66643 (calling Select() here sets 
8689         ActiveControl, which in some situations calls back Focus and 
8690         eventually does a stack overflow). Temp fix.    
8691         Changes to GetNextControl() to not look for children to select when
8692         parent cannot be selectable (so it looks for siblings instead)  
8693         
8694 2006-10-31  Mike Kestner  <mkestner@novell.com>
8695
8696         * CheckedListBox.cs : off by one error in returned index from
8697         ObjectCollection.Add.  Fixes #79758.
8698
8699 2006-10-31  Chris Toshok  <toshok@ximian.com>
8700
8701         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
8702         calls for the textbox/spinner, to keep from recursing to the point
8703         where we crash.  Fixes #79760.
8704
8705 2006-10-31  Chris Toshok  <toshok@ximian.com>
8706
8707         * ListControl.cs (set_SelectedValue): don't throw exceptions on
8708         null/"" value, just return.  matches ms's behavior and fixes some
8709         failing tests.
8710
8711 2006-10-31  Chris Toshok  <toshok@ximian.com>
8712
8713         * Control.cs (set_Capture): make a logic a little easier to
8714         follow.
8715
8716         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
8717         if it's being destroyed.  A necessary fix surely, but a bandaid
8718         also, to fix the stuck capture problem in bug #78413.
8719
8720 2006-10-31  Chris Toshok  <toshok@ximian.com>
8721
8722         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
8723         convention of clearing hwnd.ClientRect when we set the
8724         width/height (so it'll be recalculated by Hwnd).
8725
8726 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8727
8728         * ContainerControl.cs: reversed Contains check from
8729         ActiveControl due to hanging problems. This fix
8730         partly regresses #79667 (button does not have
8731         initial focus), so this might be a symptom for 
8732         a larger parenting problem (set_ActiveControl
8733         is being called but the child control does
8734         not have the parent set yet?)   
8735         
8736 2006-10-31  Mike Kestner  <mkestner@novell.com>
8737
8738         * MenuAPI.cs : fix keynav when menu is click activated.
8739
8740 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
8741
8742         * ToolStrip*: Version 0.2.
8743
8744         * MenuStrip.cs: Version 0.1.
8745
8746         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
8747
8748 2006-10-30  Chris Toshok  <toshok@ximian.com>
8749
8750         [ fixes the oversized notify icon issue in bug #79745 ]
8751         
8752         * NotifyIcon.cs: scale the icon down to the size we're given by
8753         the XplatUI layer (this would be faster if we did it once instead
8754         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
8755         since it's never invoked.
8756
8757         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
8758         pixels high by default, so let's hardcode our systray icon to that
8759         size.  The SYSTEM_TRAY protocol should really have a way for
8760         client apps to query for the correct icon size.. but oh well.  A
8761         couple of patches to deal with the screwy client_window ==
8762         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
8763         instance, and also make sure we don't XSelectInput twice).
8764
8765 2006-10-30  Chris Toshok  <toshok@ximian.com>
8766
8767         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
8768         recreating forms.  Control recreation is the bane of my existence.
8769         Fix it in a way that keeps everyone happy.
8770
8771 2006-10-30  Chris Toshok  <toshok@ximian.com>
8772
8773         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
8774         just non-CHILD ones.  otherwise sometimes scrollbars end up with
8775         client_windows not being resized to the proper size (ReportBuilder
8776         shows this extremely well).
8777
8778 2006-10-30  Chris Toshok  <toshok@ximian.com>
8779
8780         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
8781         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
8782         showing up in the gnome taskbar.  Fixes bug #79790.
8783
8784 2006-10-30  Chris Toshok  <toshok@ximian.com>
8785
8786         * ApplicationContext.cs: guard against a NRE.
8787
8788         * Application.cs: null out the old MainForm for the context, so we
8789         don't try to use it again once it's disposed.  Fixes bug #79783.
8790
8791 2006-10-30  Chris Toshok  <toshok@ximian.com>
8792
8793         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
8794         BindingContext, set the data source directly, otherwise do the
8795         lazy approach - the actual ListManager will be created when we get
8796         a BindingContext. Fixes bug #79700.
8797
8798 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
8799
8800         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8801           XplatUIX11.cs: Remove old 2 parameter SetVisible.
8802
8803         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
8804
8805 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
8806
8807         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
8808         of SetVisible that allows a window to be shown, but not activated.
8809         This is needed on Windows for MenuStrip, and can probably be used
8810         with MainMenu and ComboBox to fix the focus stealing issues on
8811         Windows.
8812
8813         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
8814
8815 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
8816
8817         * PictureBox.cs: Fix the output of the ToString method.
8818
8819 2006-10-29  Chris Toshok  <toshok@ximian.com>
8820
8821         * Control.cs (get_TopLevelControl): fix bug #79781.
8822
8823 2006-10-29  Chris Toshok  <toshok@ximian.com>
8824
8825         * ListControl.cs (set_DataSource): throw Exception here, not
8826         ArgumentException, to match MS behavior.
8827
8828 2006-10-29  Chris Toshok  <toshok@ximian.com>
8829
8830         * Form.cs: remove the try-catch's around calls to GetWindowState.
8831         We can just check the return value.
8832
8833         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
8834         Instead return -1.
8835
8836         * XplatUI.cs: Add note about additional return value for
8837         GetWindowState.
8838
8839 2006-10-29  Chris Toshok  <toshok@ximian.com>
8840
8841         * Control.cs (CreateHandle): when we create our handle, we also
8842         create the handles of our child controls.  Fixes one of the
8843         Control unit tests (CH11).
8844
8845 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
8846
8847         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
8848
8849 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
8850
8851         * ThemeClearlooks.cs: A little speedup.
8852
8853 2006-10-27  Chris Toshok  <toshok@ximian.com>
8854
8855         * Control.cs: implement Control.FromChildHandle in a way that
8856         matches the docs (and fixes the failed test.)
8857
8858 2006-10-27  Chris Toshok  <toshok@ximian.com>
8859
8860         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
8861         comments).
8862
8863         * DataGrid.cs: implement ResetForeColor such that the tests
8864         succeed.
8865         
8866 2006-10-27  Chris Toshok  <toshok@ximian.com>
8867
8868         * ToolBarButton.cs: setting text/tooltiptext to null results in it
8869         being set to "".  Fixes bug #79759.
8870
8871 2006-10-27  Jackson Harper  <jackson@ximian.com>
8872
8873         * TextControl.cs: We need to clear the entire selection area when
8874         setting the start, otherwise multiline selections are still
8875         visible.
8876
8877 2006-10-26  Chris Toshok  <toshok@ximian.com>
8878
8879         * PropertyGridView.cs: 
8880
8881         - ifdef all the code specific to the double
8882         buffer case, and provide some alternatives in the non-doublebuffer
8883         code, which makes heavy use of XplatUI.ScrollWindow to move things
8884         around without having to invalidate (and cause flicker).  There
8885         are still some drawing problems in the non-doublebuffered case, so
8886         DOUBLEBUFFER is defined by default.
8887
8888         - Fix the way dropdowns are handled.  now we explicitly watch for
8889         the events which might cause the dropdown to close, and break out
8890         of the nested event loop there.  This gets rid of all Capture
8891         code, at the expense of the Msg special casing.  Seems to work,
8892         though, and fixes bug #79743.
8893
8894 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
8895         * Control.cs: SetIsRecreating now recreates implicitly added
8896         child controls as well. Finally fixes #79629. The flag passed to 
8897         SetIsRecreating has also been removed since it wasn't used.
8898         
8899 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8900
8901         * PageSetupDialog.cs: Clean some code, fix some bits, 
8902         add some checks, and add a printer sub-dialog.
8903
8904 2006-10-26  Chris Toshok  <toshok@ximian.com>
8905
8906         * PropertyGrid.cs: make set_SelectedObject call
8907         set_SelectedObjects, and move the duplicate logic to the
8908         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
8909
8910         * PropertyGridView.cs: hide the textbox when we get a
8911         SelectedObjectsChanged event.
8912
8913         Fixes bug #79748.
8914
8915 2006-10-26  Chris Toshok  <toshok@ximian.com>
8916
8917         * PropertyGridView.cs: deal with the type converter not supporting
8918         GetStandardValues() or GetStandardValues() returning null, which
8919         is does in the default case.  Fixes #79742.
8920
8921 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
8922
8923         * CheckedListBox.cs: nunit no longer crashes when selecting 
8924         Project/Edit menu option
8925         
8926 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
8927
8928         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
8929         is no menu selected. fixes #79739
8930
8931 2006-10-25  Chris Toshok  <toshok@ximian.com>
8932
8933         * PropertyGridView.cs: factor out the splitter invalidation code
8934         into the SplitterPercent setter, and for kicks implement the
8935         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
8936         amount in either direction.
8937
8938 2006-10-25  Chris Toshok  <toshok@ximian.com>
8939
8940         * PropertyGridView.cs: do some cleanup of the brush used to draw
8941         text - read only fields should be grayed out.  not sure how to do
8942         this with the textbox, though.  but the textbox's should also be
8943         readonly now at least.  Also, hide/show the textbox when resizing
8944         the control.
8945         
8946         * CursorConverter.cs: use System.Reflection when getting the
8947         properties of Cursors, as TypeDescriptor.GetProperties isn't
8948         returning static properties.
8949
8950 2006-10-25  Chris Toshok  <toshok@ximian.com>
8951
8952         * PropertyGridView.cs: factor out the up/down handling, and reuse
8953         it for page up/down.  also add End/Home support.
8954
8955 2006-10-25  Chris Toshok  <toshok@ximian.com>
8956
8957         * PropertyGridView.cs:
8958
8959         - ensure the selected grid item is visible in the scrolled area,
8960         fixes bug #79572.
8961
8962         - fix Keys.Down handling when you're on the last item in the
8963         propertygrid.
8964
8965 2006-10-25  Mike Kestner  <mkestner@novell.com>
8966
8967         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
8968         clicks too.  Fixes #79725.
8969
8970 2006-10-24  Chris Toshok  <toshok@ximian.com>
8971
8972         * PropertyGrid.cs: use property.Converter instead of
8973         TypeDescriptor.GetConverter(property.PropertyType), so we catch
8974         TypeConverters declared on the property as well as on the
8975         PropertyType.  Fixes bug #79678.
8976
8977 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
8978
8979         * MimeIcon.cs, Mime.cs:
8980           Fallback to the default platform handler if no shared mime info
8981           stuff exists (fixes #79693).
8982
8983 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
8984         * ContainerControl.cs: Incorrect contains check in ActiveControl 
8985         from previous fix (duh).
8986
8987 2006-10-20  Chris Toshok  <toshok@ximian.com>
8988
8989         * PropertyGridView.cs: the dropdown should be MIN(number of items
8990         in list, 15).  Fixes #79551.
8991
8992 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
8993         Fixes #79384, #79394, #79652, #79667
8994         * Application.cs: 
8995         
8996         - Modal windows are now destroyed in the proper order for windows
8997         
8998         * ContainerControl.cs:
8999         
9000         - ActiveControl setter has more conditions on when to return:
9001                 - if we're reselecting the active control, but it actually
9002                 didn't have focus (window hidden or some such), it runs
9003                 - if the active control being selected doesn't actually 
9004                 exist in the container, it returns
9005         
9006         * Form.cs
9007         
9008         - The ShowDialog now gets the current form as the owner when
9009         invoking without parameters, and correctly activates the owner 
9010         when returning
9011         
9012         * MessageBox.cs
9013         
9014         - MessageBox now catches the Escape key to exit
9015
9016 2006-10-20  Chris Toshok  <toshok@ximian.com>
9017
9018         * PropertyGridView.cs: fix a number of issues (bug #78565, and
9019         most of bug #79676):
9020
9021         - you can navigate around the property grid with the arrow keys.
9022
9023         - the dropdown is sized properly when the pg has a vertical
9024         scrollbar.
9025
9026         - fix the indentation for subentries, and properly select the
9027         entire label rect.
9028
9029         - fix the gray bar's drawing (only draw it to the last element,
9030         not for the height of the control.  Also make sure we draw that
9031         last horizontal grid line.
9032
9033         - use the same mechanism the datagrid uses wrt the editing textbox
9034         when scrolling/resizing/etc.  Namely, we hide it first, do the
9035         operation, then show it again (if it's still visible).
9036         
9037         - aggressively remove a lot of unnecessary refreshes (and also
9038         calls to Invalidate(). call more limited variants, and only redraw
9039         what we need.)
9040         
9041         * PropertyGrid.cs:
9042
9043         - when we're populating the merged collection, fill in the UI
9044         parent with either the passed in item, or the category item we
9045         create.
9046
9047         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
9048
9049         * GridItem.cs: drop some fully qualified names.
9050         
9051         * GridEntry.cs: add a "UIParent", which is basically the parent
9052         treenode.
9053
9054         * GridItemCollection.cs: add an IndexOf method.
9055
9056 2006-10-20  Mike Kestner  <mkestner@novell.com>
9057
9058         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
9059         a working win32 NC invalidation mechanism, we can't invalidate
9060         menus.  [Fixes #79705]
9061
9062 2006-10-20  Mike Kestner  <mkestner@novell.com>
9063
9064         * ListBox.cs : don't update the VScrollbar if the list is empty,
9065         just hide it.  [Fixes #79692]
9066
9067 2006-10-20  Jackson Harper  <jackson@ximian.com>
9068
9069         * RichTextBox.cs: Handle some special chars better, and don't skip
9070         the entire group when we encounter a special char that we don't
9071         handle correctly.
9072
9073 2006-10-18  Chris Toshok  <toshok@ximian.com>
9074
9075         * PropertyGridView.cs: address a number of issues from bug #79676,
9076         mostly of the cosmetic variety.
9077
9078         - The highlight rectangle for indented items not extends all the
9079         way to the left.
9080
9081         - Indented items aren't indented so much.
9082
9083         - the dropdown is properly sized width-wise if the pg has a
9084         vertical scrollbar.
9085
9086 2006-10-18  Chris Toshok  <toshok@ximian.com>
9087
9088         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
9089         systray stuff is rather convoluted to begin with.
9090
9091         systray icons are a single window for some reason (that I haven't
9092         figured out yet), and for them, client_window == whole_window.
9093         Given the way the tests are structured elsewhere to determine
9094         which paints are pending (client vs. nc), that situation will
9095         always yield PAINT, not NCPAINT.  So, if we have a pending
9096         nc_expose and no pending expose, remove the hwnd from the paint
9097         queue, and also set nc_expose_pending to false, to keep us from
9098         blocking further expose's adding the hwnd to the paint queue.
9099
9100         phew.  like i said, a rather convoluted change.  Fixes the
9101         notifyicon repaint issues in bug #79645.
9102
9103 2006-10-18  Chris Toshok  <toshok@ximian.com>
9104
9105         * Form.cs: when getting the backcolor of the form, don't get
9106         base.BackColor, as this allows parents to influence the background
9107         color.  This breaks mdi forms.  Instead, if the background_color
9108         is empty, return the default.
9109
9110 2006-10-18  Chris Toshok  <toshok@ximian.com>
9111
9112         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
9113         to being private instead of internal static.
9114
9115         * Control.cs: remove all the stupid ParentWaitingOnRecreation
9116         crap, it wasn't working for more deeply nested controls anyway,
9117         and we already have the is_recreating flag - use that instead.
9118         Before calling DestroyHandle in RecreateHandle, recurse through
9119         the control tree setting it to true.  this returns the recreate
9120         code to much of its original simplicity, while now guaranteeing we
9121         actually recreate everything we're supposed to.  This change gets
9122         fyireporting actually showing mdi children.
9123
9124 2006-10-17  Chris Toshok  <toshok@ximian.com>
9125
9126         * Form.cs: remove some debug spew, and collapse some duplicate
9127         code at the end of SetClientSizeCore.
9128
9129         * XplatUIX11.cs: 
9130         - add some more debug spew here too wrt Destroy handling.
9131         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
9132         in Control's handling of WM_DESTROY.
9133         - Remove the handling of zombie window DestroyNotifies from the
9134         event loop - we don't need it.  Now the only DestroyNotifies we
9135         actually handle are ones generated by X.
9136         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
9137         match gtk's (functioning) handling of this. This keep metacity
9138         from leaving droppings in the form of wm borders with no window
9139         contents all over the place.
9140
9141         * Control.cs:
9142         - add a bunch of debug spew wrt control recreation.
9143         - fix a bug where we weren't tracking Visible properly on
9144         recreated hwnds.
9145         - fixed the WM_PAINT double buffer handling to support re-entrant
9146         calls (yes, i know it's gross, but it's happening to us).
9147
9148 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9149         * ThemeWin32Classic.cs: changed drawing of selected days
9150         to make them look better.
9151
9152 2006-10-16  Chris Toshok  <toshok@ximian.com>
9153
9154         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
9155         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
9156
9157         * XplatUIX11.cs: move away from using hwnd.client_dc and
9158         hwnd.non_client_dc and on to a stack of dc's (and in window's
9159         case, PAINTSTRUCT's), so we can deal with nested Paint calls
9160         without puking or not disposing of Graphics objects.
9161
9162         * XplatUIOSX.cs: same.
9163
9164         * XplatUIWin32.cs: same.
9165
9166 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9167
9168         * FileDialog.cs: Don't call on_directory_changed inside
9169           OnSelectedIndexChanged (it changes the SelectedIndex too).
9170           Instead move it to OnSelectionChangeCommitted.
9171
9172 2006-10-13  Chris Toshok  <toshok@ximian.com>
9173
9174         * XplatUIX11.cs: more Destroy work.  the current code does the
9175         following things, in order:
9176
9177         1. Enumerates all handles of all controls at or below the one
9178         being destroyed, in pre-order.  As it is doing this, it marks the
9179         handles as zombie and clears all references to them.
9180         
9181         2. calls XDestroyWindow on the window passed in.
9182
9183         3. SendMessage's WM_DESTROY to all he handles in the accumulated
9184         list.
9185
9186 2006-10-13  Chris Toshok  <toshok@ximian.com>
9187
9188         * XplatUIX11.cs: set hwnd.zombie to true before calling
9189         SendMessage (WM_DESTROY).  this keeps us from marking the new
9190         window a zombie, and also keeps us from calling sendmessage at
9191         all.
9192
9193 2006-10-13  Jackson Harper  <jackson@ximian.com>
9194
9195         * TextControl.cs: Do not show the caret and selection at the same
9196         time.  Reduces ugliness by 35%.
9197
9198 2006-10-13  Chris Toshok  <toshok@ximian.com>
9199
9200         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
9201         zombie after we do the recursive call, so we actually do call
9202         SendMessage on the children controls.
9203         (GetMessage): if we find a pending paint event for a zombie hwnd,
9204         remove the hwnd from the paint queue, or else it will always be
9205         there (and we'll effectively loop infinitely)
9206
9207 2006-10-13  Mike Kestner  <mkestner@novell.com>
9208
9209         * MenuItem.cs : add Selected format under keynav too.
9210         Fixes #79528.
9211
9212 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9213
9214         * PropertyGrid.cs: Fixed some NRE's and small difference between our
9215         implementation and that of MS.
9216
9217 2006-10-13  Chris Toshok  <toshok@ximian.com>
9218
9219         * Control.cs (OnInvalidated) only futz with the invalid_region if
9220         the control is double buffered.  this fixes the apparent hang in
9221         the ListView unit tests.  Someone needs to make the
9222         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
9223
9224 2006-10-13  Chris Toshok  <toshok@ximian.com>
9225
9226         * PropertyGridView.cs:
9227
9228         - do a little refactoring so that only one place calls
9229         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
9230         else call that.  Also make it Refresh, since there are redraw bugs
9231         otherwise (we should take a look at that...)
9232
9233         - do a little more refactoring work to share the body of code
9234         involved with the drop down.  it was duplicated in the code
9235         dealing with the listbox handling and in the code dealing with the
9236         UITypeEditors.
9237
9238         - add a Capture to the dropdown form's control once it's
9239         displayed, and add a MouseDown handler that checks to make sure
9240         the position is inside the control.  If it's not, close the
9241         dropdown.  This fixes #78190.
9242
9243         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
9244         if the value is different than the initial value.
9245         
9246 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
9247
9248         * Control.cs: see #78650
9249         - Fixed GetNextControl for several cases:
9250                 - Changed FindFlatForward to return 
9251                 correct sibling control when more than one
9252                 control has same TabIndex as the currently 
9253                 focused one.
9254                 - Changed FindFlatBackward to loop children
9255                 from last to first and apply same logic as in
9256                 FindFlatForward
9257                 - Changed FindControlForward to search for
9258                 children when control is not a container
9259                 but has children, or search for siblings if
9260                 control is a container...
9261                 - Changed FindControlBackward   to continue
9262                 searching for child controls when hitting 
9263                 Panel-like parents
9264                 
9265         - Fixed Focus method to update ActiveControl
9266         (FocusTest.FocusSetsActive failure)
9267         
9268         * TabControl.cs:
9269         - Focus rectangle now refreshes when gaining
9270         or losing focus
9271         - Removed grab for Tab key on IsInputKey that 
9272         was keeping tab navigation from working (#78650)
9273
9274 2006-10-13  Chris Toshok  <toshok@ximian.com>
9275
9276         * PropertyGridView.cs:
9277         - Rewrite SetPropertyValue to loop over SelectedGridItem's
9278         SelectedObjects.
9279
9280         - Deal with GridItem.Value == null a few places.
9281
9282         * PropertyGrid.cs: 
9283         - replace the PopulateGridItemCollection with a pair of methods
9284         which compute the intersection of all the properties in the
9285         SelectedObjects array.  Fixes #79615.
9286
9287         - Throw ArgumentException from set_SelectedObjects if there's a
9288         null in the array.
9289
9290         - Add GetTarget method which can be used to traverse up the
9291         GridItem.Parent chain.  It depends on the assumption that
9292         selected_objects for different GridEntries are always in the same
9293         order (a safe assumption).  Use this method and loop over all the
9294         selected objects in the entry when calling RemoveValueChanged and
9295         AddValueChanged.
9296         
9297         * GridEntry.cs: Make this handle multiple selected objects.
9298         .Value returns null if not all the selected objects share the same
9299         value.
9300
9301 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
9302         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
9303           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
9304           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
9305           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
9306           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
9307         add additional functionality.
9308
9309 2006-10-12  Mike Kestner  <mkestner@novell.com>
9310
9311         * ErrorProvider.cs : new ToolTipWindow ctor sig.
9312         * HelpProvider.cs : new ToolTipWindow ctor sig.
9313         * ToolTip.cs : remove ToolTip param from Window sig since it is
9314         not used.
9315         * ToolBar.cs : add tooltip support.  Fixes #79565.
9316
9317 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9318
9319         * ComboBox.cs: move the events in set_SelectedIndex to 
9320         after the call to HighlightIndex in order to avoid 
9321         possible recursion and subsequent problems with the call
9322         to HighlightIndex and include a range check in 
9323         set_HighlightIndex. Fixes #79588
9324         
9325 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9326
9327         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
9328         to ui thread's settings instead of sunday. 
9329         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
9330
9331 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9332
9333         * DateTimePicker.cs
9334         * MonthCalendar.cs
9335         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
9336         and implement missing functionality (selecting different parts 
9337         of the date and edit them individually with the keyboard).
9338         
9339 2006-10-11  Chris Toshok  <toshok@ximian.com>
9340
9341         * Control.cs (OnInvalidated): fix NRE relating to last change.
9342
9343 2006-10-11  Chris Toshok  <toshok@ximian.com>
9344
9345         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
9346         atoms in _NET_WM_STATE here if the window is maximized.  We need
9347         to do this because we're *replacing* the existing _NET_WM_STATE
9348         property, so those atoms will be lost otherwise, and any further
9349         call to GetWindowState will return Normal for a window which is
9350         actually maximized.  Fixes #79338.
9351
9352 2006-10-11  Jackson Harper  <jackson@ximian.com>
9353
9354         * TextControl.cs: Special case for setting selection end to
9355         selection start, we basically kill the anchor.
9356         - some todo comments.
9357
9358 2006-10-11  Chris Toshok  <toshok@ximian.com>
9359
9360         * Control.cs: switch to using an "invalid_region" to track which
9361         parts of the image buffer need updating.  This is more code than
9362         the simple fix from r66532.  That version just attempted to always
9363         fill the entire buffer on redraw, which turns out to be
9364         inefficient when invalidating small rectangles.  This version
9365         simply adds the invalid rectangle to the invalid region.  When we
9366         get any WM_PAINT message we see if it can be filled using the
9367         image buffer, and if it can't (if the paint event's clip rectangle
9368         is visible in the invalid region) we first fill the image buffer.
9369         So, the image buffer is still a cache, we just fill it lazily.
9370
9371         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
9372         need it any longer.
9373
9374 2006-10-11  Chris Toshok  <toshok@ximian.com>
9375
9376         * XplatUIX11.cs (SetWindowPos): we need to update both position as
9377         well as size after calling XMoveResizeWindow.  This keeps us from
9378         ignoring future SetWindowPos calls.  Fixes the disappearing
9379         DateTimePicker in the ToolBarDockExample from bug #72499.
9380
9381 2006-10-11  Chris Toshok  <toshok@ximian.com>
9382
9383         * TextBoxBase.cs: reorder things a bit when it comes to
9384         resizing-causing-recalculation.  we were recalculating the
9385         document when our position was changed, which shouldn't happen.
9386         We only care about size changes.  Clear up some more redundant
9387         recalculation calls while I'm at it.  This makes the toolbar dock
9388         example snappy when you're just dragging toolbars around (since it
9389         causes a relayout whenever you move one.)
9390
9391 2006-10-11  Chris Toshok  <toshok@ximian.com>
9392
9393         * ToolBarButton.cs (get_Rectangle): this only returns
9394         Rectangle.Empty if Visible == false, or Parent == null.
9395         Parent.Visible doesn't matter.
9396
9397 2006-10-10  Chris Toshok  <toshok@ximian.com>
9398
9399         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
9400         by .net 1.1, so switch to an internal method instead.
9401
9402 2006-10-10  Chris Toshok  <toshok@ximian.com>
9403
9404         * Control.cs (WM_PAINT): when a control is double buffered we draw
9405         initially to the ImageBuffer and then copy from there.  But when a
9406         parent control which has child controls is double buffered, the
9407         initial drawing doesn't encompass the entire ClientRectangle of
9408         the parent control, so we end up with uninitialized bits (this is
9409         easily seen by dragging the top toolbar in
9410         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
9411         manually set the ClipRectangle of the paint_event (only the one we
9412         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
9413         of the nastiness in bug #72499.
9414
9415         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
9416         which we use in Control.cs's WM_PAINT handling.
9417
9418 2006-10-10  Jackson Harper  <jackson@ximian.com>
9419
9420         * TextBoxBase.cs: Finish off the autoscrolling stuff.
9421
9422 2006-10-10  Chris Toshok  <toshok@ximian.com>
9423
9424         * Cursor.cs: Apply a slightly different patch to the one suggested
9425         in #79609.
9426
9427 2006-10-10  Jackson Harper  <jackson@ximian.com>
9428
9429         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
9430         not the parent form.
9431         * TextControl.cs: use difference in old line count vs new count to
9432         calculate how many lines were added, this takes into account soft
9433         line breaks properly.
9434
9435 2006-10-10  Chris Toshok  <toshok@ximian.com>
9436
9437         * LinkLabel.cs: don't call MeasureCharacterRanges against a
9438         rectangle located at 0,0 and the size of the text.  Use
9439         ClientRectangle instead.  This fixes rendering of non-left aligned
9440         link labels.
9441
9442 2006-10-10  Jackson Harper  <jackson@ximian.com>
9443
9444         * TextBoxBase.cs: When we set the selection start position the
9445         caret.
9446         * TextControl.cs: Need to update the caret when we decrement it to
9447         zero.
9448         - Make sure that the selection_visible flag gets reset to false if
9449         the selection isn't visible.  Before this you could get it set to
9450         visible by changing the selection start, then changing the end to
9451         equal the start.
9452
9453 2006-10-09  Jackson Harper  <jackson@ximian.com>
9454
9455         * TreeView.cs: Don't update scrollbars when we aren't visible.
9456         * TreeNodeCollection.cs: Only need to update scrollbars if being
9457         added to an expanded visible node or the root node.
9458
9459 2006-10-09  Chris Toshok  <toshok@ximian.com>
9460
9461         * XplatUIX11.cs (SendMessage): fix NRE.
9462
9463 2006-10-09  Jackson Harper  <jackson@ximian.com>
9464
9465         * TextBoxBase.cs: Implement horizontal autoscrolling.
9466         * TextControl.cs: Add a movement types that allows moving forward
9467         and backwards without wrapping.
9468
9469 2006-10-09  Mike Kestner  <mkestner@novell.com>
9470
9471         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
9472         with focus "expansion" of labels.  Fixes #79532 and then some.
9473         * ThemeWin32Classic.cs : add LineLimit to ListView label format
9474         when wrapping.
9475
9476 2006-10-09  Jackson Harper  <jackson@ximian.com>
9477
9478         * TextBoxBase.cs: Set the default max values to MaxValue since
9479         we use the scrollbar for autoscrolling and the default value is
9480         100.  If we don't do this the caret won't keep up with typing
9481         after about 18 characters.
9482         * TextControl.cs: Make sure the selection is offset by the
9483         viewport x.  This fixes selection when using auto scrolling.
9484
9485 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
9486         
9487         * Form.cs: The active control should be selected after the 
9488         OnLoad so that any child control initialization that affects
9489         the selection is done. Fixes #79406
9490
9491 2006-10-06  Chris Toshok  <toshok@ximian.com>
9492
9493         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
9494         to have no evil effects.
9495
9496         - Stop selecting StructureNotifyMask on non-toplevel windows.
9497
9498           The only way children should be resized is by using the SWF api,
9499           and we already send WM_WINDOWPOSCHANGED messages in those cases.
9500           Toplevel windows can be interacted with via the window manager,
9501           and so we keep the input mask there.
9502
9503           The other event StructureNotifyMask gives us (that we care
9504           about) is DestroyNotify.  The code is already structured such
9505           that it assumes we won't be getting a DestroyNotify event for
9506           the window we pass to XDestroyWindow (which is what
9507           StructureNotifyMask is supposed to guarantee.)  So, that code
9508           shouldn't be affected by this either.
9509
9510         - Stop selecting VisibilityChangeMask altogether.
9511
9512           We weren't doing anything with the resulting events anyway.
9513         
9514         This vastly reduces the number of X requests and events we see
9515         when resizing/laying out a large ui.
9516
9517 2006-10-06  Chris Toshok  <toshok@ximian.com>
9518
9519         * ScrollableControl.cs (DisplayRectangle): we need to take into
9520         account the DockPadding regardless of whether or not auto_scroll
9521         == true.  rework this slightly to this effect, and fix bug #79606,
9522         and part of #72499 (you can now see the drag handles and drag
9523         toolbars around).
9524
9525 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
9526
9527         * ListViewItem.cs: Collections of selected and checked items are now
9528         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
9529         we mark the collection "dirty".
9530         * ListView.cs: Marked collections readonly. Modified UpdateSelection
9531         to only clear SelectedItems when a new item is selected and MultiSelect
9532         is enabled. CheckedItems and SelectedItems now subscribe to Changed
9533         event of ListViewItemCollection, and mark its list dirty whenever
9534         that event is fire. This allows us to return selected/checked items 
9535         in the same order as they are in the Items collection. This matches
9536         the MS behavior.
9537
9538 2006-10-06  Chris Toshok  <toshok@ximian.com>
9539
9540         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
9541         right mouse clicks.  Fixes bug #79593.
9542
9543 2006-10-06  Chris Toshok  <toshok@ximian.com>
9544
9545         * Splitter.cs: doh, fix splitters that don't want to cancel the
9546         movement when you drag them.  Also, impose the limits on the
9547         values we send to the SplitterMovingEvent.  Fixes #79598.
9548
9549 2006-10-06  Jackson Harper  <jackson@ximian.com>
9550
9551         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
9552         since we use this for auto scrolling also.
9553
9554 2006-10-05  Chris Toshok  <toshok@ximian.com>
9555
9556         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
9557         beginning to think that most datagrid column types don't need this
9558         method.  Fixes bug #79392.
9559
9560 2006-10-05  Chris Toshok  <toshok@ximian.com>
9561
9562         * DataGrid.cs: move back to a more lazy scheme for creating the
9563         CurrencyManager, so we aren't updating it every time you set
9564         either DataSource or DataMember.  Also, don't call
9565         RecreateDataGridRows if the currency manager hasn't changed.
9566
9567 2006-10-05  Chris Toshok  <toshok@ximian.com>
9568
9569         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
9570         emitted, SelectedIndex should already be updated.  Fixes bug
9571         #78929.
9572
9573 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
9574
9575         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
9576           ToolStripTextBox.cs: Initial commit.
9577         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
9578
9579 2006-10-05  Jackson Harper  <jackson@ximian.com>
9580
9581         * TabControl.cs: We need to invalidate the tab control area when
9582         new ones are added (duh).
9583
9584 2006-10-03  Chris Toshok  <toshok@ximian.com>
9585
9586         * Form.cs (ProcessDialogKey): if the focused control is in this
9587         form and is a button, call its PerformClick method here.  Fixes
9588         #79534.
9589
9590 2006-10-04  Jackson Harper  <jackson@ximian.com>
9591
9592         * TabPage.cs: Ignore setting of Visible, and add an internal
9593         method for setting the controls visibility.  TabPage's Visible
9594         property is a little strange on MS, this seems to make us
9595         compatible, and fixes cases where people set all the tab pages to
9596         visible.
9597         * TabControl.cs: Use the new internal setting on tab pages
9598         visibility.
9599
9600 2006-10-03  Mike Kestner  <mkestner@novell.com>
9601
9602         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
9603
9604 2006-10-03  Mike Kestner  <mkestner@novell.com>
9605
9606         * ListView.cs : use is_visible instead of Visible to check if 
9607         scrollbars should be placed/sized.  Also some max_wrap_width
9608         love for LargeIcon view.  [Fixes #79533]
9609
9610 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
9611
9612         * TextControl.cs :
9613           Make set_TextAlign() do actually update the align. Fixed #78403.
9614
9615 2006-10-03  Chris Toshok  <toshok@ximian.com>
9616
9617         * DataGrid.cs: fix a crash when switching datasources if the
9618         vertical scrollbar is at someplace other than Value = 0.  Also,
9619         reduce the number of recalculation passes we do in SetDataSource
9620         from 2 to 1.
9621
9622 2006-10-03  Jackson Harper  <jackson@ximian.com>
9623
9624         * TextBoxBase.cs: Move the if value the same bail check up, we
9625         don't want to empty the document if it is already empty, this
9626         seems to severly mess up the caret.  TODO: I should probably fix
9627         the empty statement to update teh caret somehow.
9628
9629 2006-10-03  Chris Toshok  <toshok@ximian.com>
9630
9631         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
9632         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
9633         reflection, an internal row type, properties on said type, etc.)
9634         will work with our datagrid.  Fixes #79531.
9635
9636 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9637
9638         * FileDialog.cs: Don't crash if a path is not accessible
9639           (System.UnauthorizedAccessException). Fixes #79569.
9640         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
9641           a ':' too. Return unknown icon for those paths/files.
9642
9643 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
9644
9645         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
9646         GetContainerControl returns null.
9647
9648 2006-10-02  Chris Toshok  <toshok@ximian.com>
9649
9650         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
9651         call to XGetWindowAttributes instead of "handle".  fixes an X
9652         error using notifyicon after the NotifyIconWindow to Form base
9653         class switch.
9654
9655 2006-10-02  Chris Toshok  <toshok@ximian.com>
9656
9657         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
9658         server grab and looping we need to do to get down to the most
9659         deeply nested child window.
9660         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
9661         QueryPointer again after the WarpPointer so we can generate a
9662         proper (fake) MotionNotify event to be enqueued in the destination
9663         window's queue.
9664         (GetCursorPos): call QueryPointer.
9665
9666         Fixes #79556.
9667
9668 2006-10-02  Jackson Harper  <jackson@ximian.com>
9669
9670         * NotifyIcon.cs: Derive the notify icon from a form, so things
9671         like FindForm work on it.
9672         - Swallow the WM_CONTEXTMENU message, since that is generated on
9673         mouse down, and context menu is a mouse up kinda guy.  I believe
9674         the correct fix here is probably to make the notify icon entirely
9675         NC area, but this seems to work fine for anyone not manipulating
9676         WndProc.
9677
9678 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
9679
9680         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
9681           ToolStripItemCollection.cs, ToolStripLabel.cs,
9682           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
9683           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
9684           Initial implementation.
9685         * TextRenderer.cs: Provide padding to MeasureText.
9686
9687 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
9688
9689         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
9690         of ButtonBaseAccessibleObject. Fix bug #79552.
9691
9692 2006-10-02  Jackson Harper  <jackson@ximian.com>
9693
9694         * MdiWindowManager.cs: When maximizing use the containers client
9695         rect, not it's bounds, so nc area is accounted correctly.
9696         - Use the parent form's size for the menu position, since the
9697         client isn't always the full form size.
9698
9699 2006-10-01  Chris Toshok  <toshok@ximian.com>
9700
9701         * ScrollableControl.cs: make sure neither right_edge or
9702         bottom_edge are < 0, since they're used as LargeChange for the
9703         horiz/vert scrollbars respectively.  Fixes #79539.
9704
9705 2006-10-01  Chris Toshok  <toshok@ximian.com>
9706
9707         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
9708         the xplatuix11 code can cause us to destroy/recreate our handle.
9709
9710         * XplatUIX11.cs
9711         (SystrayAdd):
9712         - this code can be invoked many times for the same Hwnd.  Make
9713           sure we only destroy the client window once (the first time this
9714           method is called).  This fixes bug #79544.
9715         - Remove the call to the improperly bound XSync.  why we had two
9716           bindings to this, I will never know, but this call resulted in
9717           events being discarded from the queue(!).
9718         - correct a misunderstanding of _XEMBED_INFO - the second atom is
9719           not our current state but the state we wish to be in.  So, 0 if
9720           we don't want to be mapped.  Change it to 1.
9721         (SystrayRemove): The XEMBED spec makes mention of the fact that
9722         gtk doesn't support the reparent of client windows away from the
9723         embedder.  Looking at gtksocket-x11.c seems to agree with this.
9724         The only avenue we have for removing systray icons is to destroy
9725         them.  We don't want the handle to go away for good, though, so
9726         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
9727         #79545.
9728         
9729 2006-10-01  Chris Toshok  <toshok@ximian.com>
9730
9731         * Form.cs (WndProc): inline the native_enabled variable usage into
9732         the cases in which it's used.  Fixes #79536.
9733
9734 2006-09-29  Mike Kestner  <mkestner@novell.com>
9735
9736         * ListView.cs : toggle the selection state for ctrl clicks in 
9737         multiselect mode. [Fixes #79417]
9738
9739 2006-09-29  Mike Kestner  <mkestner@novell.com>
9740
9741         * ListView.cs : kill CanMultiSelect and refactor the selection
9742         code to support multiselection in the absence of mod keys. Steal
9743         arrow/home/end keys by overriding InternalPreProcessMessage to
9744         restore regressed keynav behavior.
9745         [Fixes #79416]
9746
9747 2006-09-29  Jackson Harper  <jackson@ximian.com>
9748
9749         * MdiClient.cs: Repaint the titlebars when the active window is
9750         changed.
9751
9752 2006-09-29  Chris Toshok  <toshok@ximian.com>
9753
9754         * Application.cs: when entering a runloop with a modal, make sure
9755         the hwnd is enabled.  Fixes #79480.
9756
9757 2006-09-29  Chris Toshok  <toshok@ximian.com>
9758
9759         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
9760         when ListManager.CanAddRows == false, bump us back one.
9761
9762         * DataGridColumnStyle.cs (ParentReadOnly): remove the
9763         listmanager.CanAddRows check.  This makes ArrayLists uneditable
9764         using a datagrid, which is not right.
9765         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
9766         is an IEditable, but call property_descriptor.SetValue regardless.
9767         fixes #79435.
9768
9769 2006-09-29  Chris Toshok  <toshok@ximian.com>
9770
9771         * DataGridBoolColumn.cs: we need to test equality in the face of
9772         possible null values (as is the case with the default NullValue).
9773         This patch keeps us from crashing in that case.
9774
9775 2006-09-29  Jackson Harper  <jackson@ximian.com>
9776
9777         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
9778         here, since it will get called for every node collection in the
9779         tree. This is now done in the treeview once the sorting is
9780         finished.
9781         * TreeView.cs: Recalculate the visible order, and update the
9782         scrollbars after sorting, set the top nope to the root so that the
9783         recalc actually works.
9784
9785 2006-09-29  Chris Toshok  <toshok@ximian.com>
9786
9787         * LinkLabel.cs: more handling of the default link collection in
9788         the face of LinkArea manipulation.  The default link collection
9789         contains 1 element (start=0,length=-1).  If the user sets LinkArea
9790         to anything and the links collection is the default, clear it.
9791         Then only add the link if its nonempty.  Fixes #79518.
9792
9793 2006-09-29  Chris Toshok  <toshok@ximian.com>
9794
9795         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
9796         piece correctly when we hit a '\n'.  Fixes #79517.
9797
9798 2006-09-29  Chris Toshok  <toshok@ximian.com>
9799
9800         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
9801         change the binding of gdk_init_check to take two IntPtr's, and
9802         pass IntPtr.Zero for both of them.  Fixes #79520.
9803
9804 2006-09-29  Mike Kestner  <mkestner@novell.com>
9805
9806         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
9807         [Fixes #78779]
9808
9809 2006-09-28  Jackson Harper  <jackson@ximian.com>
9810
9811         * XplatUIX11.cs: When translating NC messages make sure we go from
9812         whole window to screen, not client window to screen.
9813         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
9814         method doesn't exist
9815         - Skip over controls that aren't forms when arranging.
9816
9817 2006-09-28  Jackson Harper  <jackson@ximian.com>
9818
9819         * XplatUIWin32.cs: Clip the rect to the parent window.
9820         * XplatUIStructs.cs: Add clipping modes struct.
9821         * InternalWindowManager.cs: New private method that factors title
9822         bar heights in when calculating the pos of an NC mouse message.
9823         - Use SendMessage to force a paint when the form's size is changed
9824         instead of painting the decorations immediately.
9825         - Don't let the NC button click messages get to DefWndProc,
9826         because they will attempt to handle windowing themself, and this
9827         messes up z-order (it will put them in front of the scrollbars).
9828         * XplatUIX11.cs: Make sure that we don't reset window managers if
9829         we already have one (ie the window is an MDI window).
9830
9831 2006-09-28  Chris Toshok  <toshok@ximian.com>
9832
9833         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
9834         menu code really needs going over.
9835
9836 2006-09-27  Chris Toshok  <toshok@ximian.com>
9837
9838         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
9839         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
9840         window is maximizable.  So, we need to make sure that even if we
9841         clear the border/wm frame of those functions, they're still
9842         available (basically, we remove the decoration without removing
9843         the function).  Half the fix for #79338.
9844
9845 2006-09-27  Chris Toshok  <toshok@ximian.com>
9846
9847         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
9848         Fixes bug #79515.
9849
9850 2006-09-27  Chris Toshok  <toshok@ximian.com>
9851
9852         * Splitter.cs: reorder things a bit so that we don't actually
9853         draw/move the splitter until after calling OnSplitterMoving.  This
9854         lets users cancel/disallow the movement by explicitly setting
9855         event.SplitX/SplitY.  Fixes #79372.
9856
9857 2006-09-27  Jackson Harper  <jackson@ximian.com>
9858
9859         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
9860         because it is most likely on a window being destroyed, and that
9861         will give us an X11 error.
9862
9863 2006-09-27  Chris Toshok  <toshok@ximian.com>
9864
9865         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
9866         the dropdown button now toggles between showing and hiding the
9867         dropdown.  Also, get rid of dropdown_form_showing and just use
9868         dropdown_form.Visible.  We still don't do a grab, but I'll leave
9869         that part to someone who has handled Capture-fu before.
9870
9871 2006-09-27  Chris Toshok  <toshok@ximian.com>
9872
9873         * DataGrid.cs: return false if alt isn't pressed when '0' is
9874         pressed.  this keeps the '0' key from being swallowed, and fixes
9875         bug #79350.
9876
9877 2006-09-27  Chris Toshok  <toshok@ximian.com>
9878
9879         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
9880         Calling Refresh (in response to a scrollbar event) screws up the
9881         scrollbar painting.  Fixes bug #78923.
9882
9883 2006-09-27  Chris Toshok  <toshok@ximian.com>
9884
9885         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
9886         then insert into hashtable" blocks threadsafe.
9887
9888 2006-09-27  Chris Toshok  <toshok@ximian.com>
9889
9890         * MessageBox.cs (CreateParams): the styles should be |'ed with our
9891         baseclass's, since otherwise the
9892         ControlBox/MinimizeBox/MaximizeBox assignments above have no
9893         effect.  This gets the close button back in messageboxes.
9894
9895 2006-09-27  Chris Toshok  <toshok@ximian.com>
9896
9897         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
9898         flag, not just != 0.  this makes flags that are actually multiple
9899         bits (like WS_CAPTION) work.  fixes bug #79508.
9900
9901 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
9902
9903         * PageSetupDialog.cs: add support for getting and settings the 
9904         paper size, source and orientation.
9905
9906 2006-09-26  Chris Toshok  <toshok@ximian.com>
9907
9908         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
9909         and caption == "", we need to remove the resize handles as well as
9910         the title bar.
9911
9912         * Control.cs (set_Text): turns out that setting Text on a form
9913         should change the WM styles on the window, since if ControlBox ==
9914         false, the only way to get a window border is to have a non-""
9915         Text property.  check winforms/forms/text.cs for an example.  so,
9916         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
9917         update both window styles and title.  This fixes a lot of dialogs
9918         (including the preferences dialog in MonoCalendar.)
9919
9920 2006-09-26  Chris Toshok  <toshok@ximian.com>
9921
9922         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
9923         control isn't a Form), call Win32ShowWindow to hide the window,
9924         but don't update the control Visible property.  When we reparent
9925         back to a parent control, call SetVisible in order for the
9926         window's visibility to be reinstated.
9927
9928         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
9929         the FosterParent.
9930
9931         * Control.cs (ControlCollection.Remove): remove that value.Hide()
9932         call for good, since it breaks MonoCalendar (and other things I'm
9933         sure.) Also, set all_controls to null *after* the owner calls,
9934         which end up regenerating it.
9935         (ChangeParent): allow new_parent to be == null, passing
9936         IntPtr.Zero down to XplatUI.
9937
9938         this fixes #79294 the right way.
9939
9940 2006-09-26  Mike Kestner  <mkestner@novell.com>
9941
9942         * GridEntry.cs : internal SetParent method.
9943         * PropertyGrid.cs : attach to property changed on the proper
9944         target if we have a hierarchical grid with subobjects. Setup
9945         GridItem.Parent for hierarchical items.
9946         * PropertyGridView.cs : Set value on the correct target for
9947         hierarchical grids. [Fixes #78903]
9948
9949 2006-09-26  Chris Toshok  <toshok@ximian.com>
9950
9951         * Control.cs (ChildNeedsRecreating): this should return true if
9952         either we're being recreated and the child is in our list, or our
9953         parent is waiting for our recreation.
9954
9955 2006-09-26  Chris Toshok  <toshok@ximian.com>
9956
9957         * Control.cs (ControlCollection.Remove): reinstate the
9958         value.Hide() call as suggested in bug #79294.
9959
9960 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
9961
9962         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
9963         coordinates (versus a relative move).
9964
9965 2006-09-26  Chris Toshok  <toshok@ximian.com>
9966
9967         * Control.cs: rework child recreation a little bit.  It turns out
9968         that we race between the DestroyNotify the WM_DESTROY message.  If
9969         the parent gets its DestroyNotify before the child gets the
9970         WM_DESTROY message, the child ends up not recreating (since the
9971         parent finishes its recreation on DestroyNotify, and the child
9972         checks ParentIsRecreating.)
9973
9974         So, instead we store off a list of all the child controls which
9975         need to be recreated when the parent control starts to recreate
9976         itself.  Then, when child controls get their WM_DESTROY message we
9977         check to see if they're in the parent's pending recreation list,
9978         and if so, we recreate.  This removes all dependency on ordering
9979         from the code and fixes the initial MonoCalendar upgrade dialog.
9980         
9981 2006-09-26  Jackson Harper  <jackson@ximian.com>
9982
9983         * TextControl.cs: Use the Line to get the length of the line,
9984         since soft line breaks can change the end line.
9985
9986 2006-09-26  Chris Toshok  <toshok@ximian.com>
9987
9988         * Control.cs (ControlCollection.AddImplicit): don't add the
9989         control again if it's already in one of our lists.  This keeps us
9990         from adding controls over and over again for comboboxes when their
9991         handle gets recreated (as the combobox adds implicit controls in
9992         OnHandleCreated).  Fixes the X11 errors in bug #79480.
9993
9994 2006-09-26  Jackson Harper  <jackson@ximian.com>
9995
9996         * TextControl.cs: When deleting characters make sure that any
9997         orphaned zero lengthed tags get deleted.
9998         - Fix ToString for zero lengthed tags.
9999
10000 2006-09-25  Jackson Harper  <jackson@ximian.com>
10001
10002         * TextControl.cs: When getting a tag at the location there can be
10003         multiple tags at the same spot, these are 0-lengthed tags that
10004         appear when extra formatting has been stuck in a location.  We
10005         need to pull out the last of these 0 lengthed tags.
10006
10007 2006-09-25  Jackson Harper  <jackson@ximian.com>
10008
10009         * TextControl.cs: Fix print out in debug method.
10010         * TextBoxBase.cs: When text is set bail if we are setting to the
10011         previous value.
10012         
10013 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
10014
10015         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
10016           It is now possible to change the selected index in a FontXXXListBox
10017           with the up and down arrow keys from the FontXXXTextBoxes.
10018           Also, send the FontXXXTextBox mouse wheel event to the corresponding
10019           FontXXXListBoxes to match ms.
10020
10021 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
10022
10023         * SystemInformation.cs: Return a clone of the theme's MenuFont because
10024         anyone can dispose it, anytime. All other properties returns enums, 
10025         structs or basic types so they don't need such tricks.
10026
10027 2006-09-22  Jackson Harper  <jackson@ximian.com>
10028
10029         * XplatUI.cs:
10030         * XplatUIWin32.cs:
10031         * Clipboard.cs:
10032         * DataFormats.cs:
10033         * XplatUIOSX.cs:
10034         * XplatUIDriver.cs: Update interface to add a primary selection
10035         flag, so the driver can use the primary selection buffer if
10036         needed.
10037         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
10038
10039         * RichTextBox.cs: We need to supply the data object to paste now
10040         (so we can choose to supply CLIPBOARD or PRIMARY).
10041         * TextBoxBase.cs: Supply data object to paste (see above).
10042         - Middle click uses the primary selection data object.
10043         
10044 2006-09-21  Chris Toshok  <toshok@ximian.com>
10045
10046         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
10047         of SetWMStyles.  It's still a rat's nest and is largely
10048         order-dependent which I dislike immensely.  This also fixes the X
10049         button disappearing from toplevel forms.
10050
10051 2006-09-21  Mike Kestner <mkestner@novell.com>
10052
10053         * ListBox.cs: move Jordi's click/dblclick raising code to the
10054         mouse up handler.
10055
10056 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
10057
10058         * ListBox.cs: Fixes 79450
10059
10060 2006-09-21  Mike Kestner <mkestner@novell.com>
10061
10062         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
10063         to deal with people updating the TreeNodeCollection after the tree
10064         is disposed.  "Fixes" 79330.
10065
10066 2006-09-20  Jackson Harper <jackson@ximian.com>
10067
10068         * TextControl.cs: Push the cursor record onto the undo stack
10069         before the delete action. This fixes 78651.
10070
10071 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
10072
10073         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
10074         CreateParams. Fixes 79329.
10075
10076 2006-09-19  Chris Toshok  <toshok@ximian.com>
10077
10078         * XplatUIX11.cs: a couple of blanket code massage passes to clean
10079         things up a bit.  First, get rid of the NetAtoms array (and the NA
10080         enum), and just embed the atoms as static fields.  Also, add a
10081         couple of functions (StyleSet and ExStyleSet) to clean up all the
10082         bitmask testing of styles.
10083
10084         * X11Structs.cs: remove the NA enum, not needed anymore.
10085         
10086 2006-09-19  Chris Toshok  <toshok@ximian.com>
10087
10088         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
10089         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
10090         added cleanup to get MessageBox titles appearing again, which were
10091         broken by my earlier fix for caption-less/ControlBox-less windows.
10092
10093 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
10094
10095         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
10096           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
10097           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
10098           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
10099           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
10100           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
10101           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
10102           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
10103           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
10104           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
10105           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
10106             Inital import.
10107         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
10108           ToolStripButton.cs: Stubs needed for above.
10109         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
10110
10111 2006-09-15  Chris Toshok  <toshok@ximian.com>
10112
10113         * XplatUIX11.cs:
10114         - make the MessageQueues hashtable Synchronized.
10115         
10116         - SendMessage: if the Hwnd is owned by a different thread, use the
10117         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
10118         thread.  Fixes bug #79201.
10119
10120 2006-09-15  Chris Toshok  <toshok@ximian.com>
10121
10122         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
10123         ControlBox == false, we disallow maximize/minimize/close.  If the
10124         form Caption is "" we also disallow move (and get rid of the Title
10125         decoration).  Unfortunately, regardless of how things are set,
10126         we're stuck with the Title and WM menu.
10127
10128 2006-09-15  Chris Toshok  <toshok@ximian.com>
10129
10130         * Application.cs: add locking around the static message_filters
10131         ArrayList, part of #79196.
10132
10133 2006-09-15  Chris Toshok  <toshok@ximian.com>
10134
10135         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
10136         Form.ControlBox == false, the window has no titlebar nor resize
10137         handles.  fixes bug #79368.
10138
10139 2006-09-15  Chris Toshok  <toshok@ximian.com>
10140
10141         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
10142         >= 0.  Fixes bug #79370.
10143
10144 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
10145         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
10146         * Control.cs:
10147             Add properties: LayoutEngine, Margin, DefaultMargin.
10148             Add method: GetPreferredSize.
10149             Move layout logic from PerformLayout to layout engines. 
10150
10151 2006-09-13  Chris Toshok  <toshok@ximian.com>
10152
10153         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
10154         fix for #79326 broke #78718, so this change addresses that.
10155
10156         - in SendWMDestroyMessages remove the call to
10157         CleanupCachedWindows, since we might be recreating the control and
10158         need to maintain the references to right Hwnd handles.  Also, set
10159         the zombie flag to true for each of the children in the hierarchy
10160         instead of calling hwnd.Dispose.  This will cause GetMessage to
10161         ignore all events for the window except for DestroyNotify.
10162
10163         - In GetMessage, ignore messages except for DestroyNotify for
10164         zombie hwnds.
10165         
10166         * Control.cs: revert the is_recreating fix from the last
10167         ChangeLog.  It's definitely "right", but it breaks switching from
10168         an MDI form to a non-MDI form.  Will need to revisit that.
10169
10170         * Hwnd.cs: add a zombie flag, which means "the
10171         client_window/whole_window handles are invalid, but we're waiting
10172         for the DestroyNotify event to come in for them".  Set the flag to
10173         false explicitly if setting WholeWindow/ClientWindow, and also
10174         when Disposing.
10175         
10176 2006-09-13  Chris Toshok  <toshok@ximian.com>
10177
10178         * XplatUIX11.cs: rework window destruction slightly.
10179
10180         - when destroying the windows associated with a control, we don't
10181         need 2 separate XDestroyWindow calls.  Just the one for the
10182         whole_window (or for client_window if whole_window is somehow
10183         IntPtr.Zero -- can this happen?) is enough.
10184
10185         - reworked SendWMDestroyMessages slightly, so we always dispose
10186         the child control hwnd's after sending the messages.
10187         
10188         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
10189         the two places it was used (one was even using hwnd.Handle and the
10190         other hwnd.client_window.  ugh), adding another call in
10191         SendWMDestroyMessages.  We need this new call because now the
10192         DestroyNotify events in the queue will be ignored for the child
10193         controls (as their hwnd's were disposed, and the window id's
10194         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
10195
10196         - this fixes bug #79326.
10197
10198 2006-09-13  Chris Toshok  <toshok@ximian.com>
10199
10200         * Control.cs: don't always set is_recreating to false at the end
10201         of RecreateHandle, since sometimes we're not done (and won't be
10202         until WndProc handles the WM_DESTROY message).  Also, set
10203         is_recreating to false in the WM_DESTROY handling code.  Part of
10204         the fix for bug #79326.
10205
10206 2006-09-13  Miguel de Icaza  <miguel@novell.com>
10207
10208         * X11DesktopColors.cs: Start the droppage of debugging messages.
10209
10210         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
10211
10212 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
10213
10214         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
10215
10216 2006-09-12  Chris Toshok  <toshok@ximian.com>
10217
10218         * DataGrid.cs (get_ListManager): if the list_manager is null, try
10219         to create it using SetDataSource.  Fixes bug #79151.
10220
10221 2006-09-11  Chris Toshok  <toshok@ximian.com>
10222
10223         * XEventQueue.cs: add a DispatchIdle property.
10224
10225         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
10226         either the queue is null, or the queue has DispatchIdle set to
10227         true.
10228         (DoEvents): set queue.DispatchIdle to false around the
10229         peek/translate/dispatch message loop in this method.  This keeps
10230         Application.Doevents from emitting idle events.  Part of the fix
10231         for #78823.
10232
10233 2006-09-11  Chris Toshok  <toshok@ximian.com>
10234
10235         * DataGrid.cs (set_DataSource): make this work for both the
10236         winforms/datagrid test and ReportBuilder.  It seems as though when
10237         we've created a ListManager (or maybe it's if we have a
10238         BindingContext?), when we set the DataSource it clears the
10239         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
10240         #79333.
10241
10242 2006-09-11  Chris Toshok  <toshok@ximian.com>
10243
10244         * XplatUIX11.cs: deal with queue being null, which happens in all
10245         the Clipboard functions.  Fixes one of the two problems mentioned
10246         in #78612.
10247
10248 2006-09-11  Chris Toshok  <toshok@ximian.com>
10249
10250         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
10251         button on various spots (including outside the menu) works closer
10252         to MS, and doesn't crash.  Fixes #79343.
10253
10254 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
10255
10256         * ListView.cs: Do not initialize item_sorter in init. To match MS,
10257         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
10258         and the internal comparer is set. When a new ListViewItemSorter is set,
10259         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
10260         was specified. No further processing is necessary if SortOrder is set
10261         to it's current value. If Sorting is modified to None, and View is
10262         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
10263         (either custom or our internal ItemComparer) to null, on 1.0 profile
10264         only set item_sorter to null if its our internal IComparer. If Sorting
10265         is modified to Ascending or Descending, then use our internal IComparer
10266         if none is set, and if the current IComparer is our internal one then:
10267         on 2.0 profile always replace it with one for new Sorting, and on 1.0
10268         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
10269         Enum.IsDefined to verify whether a valid View value is specified in
10270         its setter. Automatically sort listview items when listview is
10271         created. In Sort, do nothing if ListView is not yet created, or if
10272         no item_sorter is set (no Sorting was set, Sorting was explicitly set
10273         to None or ListViewItemSorter was set to null). Added Sort overload
10274         taking a bool to indicate whether the ListView should be redrawn when
10275         items are sorted (we use this in ListViewItemCollection to avoid double
10276         redraws). Modified our internal IComparer to take the sort order into
10277         account. In Add and AddRange methods of ListViewItemCollection, also
10278         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
10279         view), but use overload with noredraw option to avoid double redraw.
10280         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
10281         true when View is Tile, and do the same when attempting to set View to
10282         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
10283         for selected/checked indices, as it involves overhead when sorting is
10284         done while these collections are not used all that often. Instead
10285         we'll build the indices on demand. Modified IList implementation of
10286         CheckedIndexCollection to use public methods if object is int.
10287         Modified CheckedListViewItemCollection to hide checked items if
10288         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
10289         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
10290         IList implementation in SelectedIndexCollection to use public methods
10291         if object is int. Modified SelectedListViewItemCollection to hide
10292         selected items if listview is not yet created.
10293         * ListViewItem.cs: CheckedIndices list no longer needs to be
10294         maintained separately (see ListView changes). Also clone font, fixes
10295         test failure.
10296
10297 2006-09-11  Mike Kestner  <mkestner@novell.com>
10298
10299         * ComboBox.cs: if we are updating the contents of the currently
10300         selected index, refresh the control or the textbox selection.
10301         [Fixes #79066]
10302
10303 2006-09-11  Mike Kestner  <mkestner@novell.com>
10304
10305         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
10306         the 'specified' logic has been moved there.  This seems like a bug 
10307         in Control.cs, since our current SetBoundsCore completely ignores 
10308         the specified parameter.  Peter's commit seems to indicate that is 
10309         the way the MS control implementation works.  [Fixes #79325]
10310
10311 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
10312
10313         * XplatUI.cs: Set default_class_name to be composed
10314         of current domain id. This allows MWF to be loaded in multiple
10315         domains on Win32.
10316
10317 2006-09-09  Miguel de Icaza  <miguel@novell.com>
10318
10319         * X11Keyboard.cs: If we are unable to obtain the input method, do
10320         not call CreateXic to create the input context.   Should fix
10321         #78944/79276.
10322
10323 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
10324
10325         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
10326           Simplified gnome support by adding more pinvokes to get the
10327           icon for a file or mime type.
10328
10329 2006-09-08  Jackson Harper  <jackson@ximian.com>
10330
10331         * MenuAPI.cs: Deslect popup context menu items before closing the
10332         window, so that you don't see the previously selected item
10333         selected when you reopen the menu.
10334         * TextControl.cs: Update the cursor position even if we don't have
10335         focus.  This fixes typing in things like the ComboBox.  I'm not
10336         totally sure we should always set the visibility if we don't have
10337         focus, but couldn't find any corner cases where the cursor showed
10338         up when it shouldn't.
10339
10340 2006-09-08  Chris Toshok  <toshok@ximian.com>
10341
10342         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
10343         our arrays are length 256.  & 0xff before indexing.  Fixes the
10344         crash in bug #78077.
10345         
10346 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10347
10348         * ThemeWin32Classic.cs: 
10349         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
10350         is true. Handle that check box too.
10351
10352 2006-09-07  Chris Toshok  <toshok@ximian.com>
10353
10354         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
10355         79244.
10356
10357 2006-09-07  Chris Toshok  <toshok@ximian.com>
10358
10359         * Control.cs: in set_BackColor only do the work if
10360         background_color != value.
10361
10362         * XplatUIX11.cs: move the clearing of invalid areas (both client
10363         and nc) to the same block of code where we set (nc_)expose_pending
10364         to false.  That is, move it from PaintEventEnd to PaintEventStart,
10365         so things that cause invalidates from within OnPaint will trigger
10366         another call to OnPaint.  Fixes bug #79262.
10367
10368 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
10369
10370         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
10371         * FileDialog.cs: Fix typo
10372
10373 2006-09-07  Jackson Harper  <jackson@ximian.com>
10374
10375         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
10376         for tab pages if they have any.
10377
10378 2006-09-06  Mike Kestner  <mkestner@novell.com>
10379
10380         * Splitter.cs: use the "current" rect when finishing drag handle
10381         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
10382
10383 2006-09-06  Mike Kestner  <mkestner@novell.com>
10384
10385         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
10386         support offset splitters. [Fixes #79298]
10387
10388 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
10389
10390         * Mime.cs: Fixed a bug that could override the global mime type
10391           result.
10392
10393 2006-09-05  Jackson Harper  <jackson@ximian.com>
10394
10395         * TabControl.cs: Better calculation method for setting the slider
10396         pos. Prevents crashes on really wide tabs.
10397         - Draw Image on tab pages if an image list is used.
10398
10399 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10400
10401         * MonthCalendar.cs: When Font changes, the Size should be
10402         updated to fit the new font's space requirements.
10403
10404 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
10405
10406         * ListBox.cs: If the items are cleared with Items.Clear set
10407           top_index to 0.
10408
10409 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10410
10411         * MonthCalendar.cs: Handle arrow keys as input keys. Also
10412         fire DateChanged event instead of DateSelected event when
10413         the date was changed by keyboard interaction.
10414
10415 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10416
10417         * DateTimePicker.cs: Handle DateChanged for the associated
10418         month_calendar control, and set month_calendar.Font from 
10419         OnFontChanged method, as well as resize the height of the
10420         control when needed. Make PreferredHeight proportional.
10421
10422 2006-09-01  Chris Toshok  <toshok@ximian.com>
10423
10424         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
10425         properties.
10426
10427         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
10428
10429 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
10430
10431         * FileDialog.cs: Set ClientSize instead of window size, to allow space
10432           for decorations (Fixes #79219)
10433
10434 2006-09-01  Mike Kestner  <mkestner@novell.com>
10435
10436         * ComboBox.cs: first stab at sorting plus some selection handling
10437         fixes to bring us more in line with MS behavior.  Also switches back
10438         to index based selection.  Alternative patches for index-based 
10439         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
10440         and latency@gmx.de on bug 78848.  I assume they were similar to this
10441         code I've had simmering in my tree forever.
10442         [Fixes #78848]
10443
10444 2006-09-01  Chris Toshok  <toshok@ximian.com>
10445
10446         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
10447         when setting list position guard against ending up with a -1 index
10448         (the other part of the fix for #78812).  Should probably make sure
10449         we don't need the analogous fix in the ItemDeleted case.
10450
10451         * DataGrid.cs:
10452         - in SetDataSource, work around the fact that the way
10453         OnBindingContextChanged is invoked will cause us to re-enter this
10454         method.  I'll remove the hack once I investigate
10455         OnBindingContextChanged.
10456
10457         - fix the logic in set_DataSource and set_DataMember (basically
10458         what to do if the other of the two is null.)
10459         
10460         - in OnListManagerItemChanged, we need to take into account the
10461         edit row when deciding whether or not to call RecreateDataGridRows
10462         (part of the fix for #78812).
10463
10464 2006-09-01  Jackson Harper  <jackson@ximian.com>
10465
10466         * Splitter.cs: Don't do anything if there is no control to affect
10467         (prevents us from crashing in weird tet cases).
10468         * TreeView.cs: Bounding box for the mouse movement reverting
10469         focus/selection back to previously selected node.  This matches
10470         MS, and makes the tree a lot more useable.
10471         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
10472         use clipping so they are not drawn.  This fixes when the control
10473         is set to have a transparent background, or if it was over an
10474         image.
10475
10476 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
10477
10478         * MimeIcon.cs: Improved handling for reading default icons when
10479           using gnome (2.16 made it necessary). Check and read svg icons
10480           first, then 48x48 and then 32x32 icons.
10481
10482 2006-08-31  Chris Toshok  <toshok@ximian.com>
10483
10484         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
10485         visible.
10486
10487         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
10488         ProcessKeyPreview.  Fixes part of #77806.
10489
10490         * DataGrid.cs: big patch.
10491
10492         - revert the queueing up of DataSource/DataMember if inside
10493         BeginInit/EndInit calls.  That's not the way the datagrid achieves
10494         its delayed databinding.  Instead, call SetDataSource in
10495         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
10496         #78811.
10497
10498         - Also, it wasn't mentioned in #78811, but the test case exhibits
10499         behavior that was lacking in our datagrid implementation - Columns
10500         that have mapping names that don't exist in the datasource's
10501         properties aren't shown.  Yuck.  To fix this I added the bound
10502         field to the column style, and basically any calculation to figure
10503         out anything about columns uses a loop to find the bound columns.
10504         still need to investigate if I can cache an array of the bound
10505         columns or if the indices must be the same.
10506
10507         - When setting CurrentCell, we no longer abort if the cell being
10508         edited was in the add row.  This fixes the other part of #77806.
10509
10510         - The new code also fixes #78807.
10511         
10512         * ThemeWin32Classic.cs: perpetrate the same disgusting
10513         column.bound field hack, and only render bound fields.
10514
10515 2006-08-31  Chris Toshok  <toshok@ximian.com>
10516
10517         * DataGridColumnStyle.cs: add bound field.  this field is true if
10518         the datasource has a property corresponding to the mapping name.
10519
10520         * DataGridTableStyle.cs: set the bound field on the column styles
10521         depending on whether or not we have a column for that property.
10522
10523 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
10524
10525         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
10526           splitter control (fixes #79228)
10527
10528 2006-08-31  Chris Toshok  <toshok@ximian.com>
10529
10530         * DataGridColumnStyle.cs: we need to delay the assignment of
10531         property descriptor until the last possible moment due to the lazy
10532         databinding stuff in the datagrid.  Also, fix the exceptions
10533         thrown by CheckValidDataSource to match MS.
10534
10535 2006-08-31  Jackson Harper  <jackson@ximian.com>
10536
10537         * Form.cs: When activated select the active control, if there is
10538         no active control, we select the first control.
10539         * XplatUIX11.cs: If there is no focus control when we get a
10540         FocusIn event, find the toplevel form and activate it.  This
10541         occurs when you popup a window, it becomes the focus window, then
10542         you close that window, giving focus back to the main window.
10543
10544 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10545
10546         * MonthCalendar.cs: 
10547         * ThemeWin32Classic.cs: Cache Font in bold style, as well
10548         as StringFormat with Center alignments in MonthCalendar,
10549         instead of creating new ones when drawing the control. 
10550         Also, draw the month name in bold style.
10551
10552 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10553
10554         * Control.cs:
10555           - PerformLayout(): It would seem MS performs the fill even if the 
10556             control is not visible (part of #79218 fix)
10557           - ResetBackColor(): Use the setter to reset the color, to allow
10558             overriders to catch the change.
10559         * Form.cs:
10560           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
10561           - CreateHandle(): dito (part of $79218 fix)
10562           - Don't set an icon if we have a dialog
10563         * ScrollableControl.cs:
10564           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
10565           - ScrollIntoView(): No need to scroll if control is already visible
10566             (resolves fixme and fixes #79218)
10567
10568 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10569
10570         * MonthCalendar.cs: Change proportions in SingleMonthSize
10571         to match the aspect of the original control.
10572
10573 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
10574
10575         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
10576           get updated when they get maximized.
10577
10578 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10579
10580         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
10581
10582 2006-08-29  Chris Toshok  <toshok@ximian.com>
10583
10584         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
10585
10586 2006-08-29  Jackson Harper  <jackson@ximian.com>
10587
10588         * TreeView.cs: Need to track selected node and highlighted node,
10589         they aren't always the same thing, when the mouse is down on a
10590         node it is hilighted, but not selected yet.
10591         - Do the HideSelection stuff right
10592         - Need to focus on rbutton mouse down. And redraw selection when
10593         right click is mouse upped.
10594
10595 2006-08-29  Mike Kestner  <mkestner@novell.com>
10596
10597         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
10598         when SubItems.Count < Columns.Count.  [Fixes #79167]
10599
10600 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
10601
10602         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
10603
10604 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
10605
10606         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
10607           from X. Only send based on ConfigureNotify if we don't have the
10608           correct location in hwnd (if the window manager moved us)
10609
10610 2006-08-28  Mike Kestner  <mkestner@novell.com>
10611
10612         * ListView.cs: remove a TODO. 
10613         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
10614         [Fixes ListView part of #79166]
10615
10616 2006-08-28  Mike Kestner  <mkestner@novell.com>
10617
10618         * ListView.cs: move wheel handler to parent since it is focused
10619         instead of the item_control now.  [Fixes #79177]
10620
10621 2006-08-28  Mike Kestner  <mkestner@novell.com>
10622
10623         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
10624         when the control is focused. [Fixes #79171]
10625
10626 2006-08-28  Mike Kestner  <mkestner@novell.com>
10627
10628         * ListView.cs: size the item and header controls for empty and
10629         unscrollable views.
10630         * ThemeWin32Classic.cs: draw disabled backgrounds.
10631         [Fixes #79187]
10632
10633 2006-08-28  Chris Toshok  <toshok@ximian.com>
10634
10635         * Form.cs: remove unused "active_form" static field.
10636
10637         * Hwnd.cs: lock around accesses to static windows collection.
10638
10639         * Application.cs: lock threads in Exit ().
10640
10641 2006-08-28  Chris Toshok  <toshok@ximian.com>
10642
10643         * NativeWindow.cs: lock around accesses to window_collection.
10644         
10645 2006-08-28  Chris Toshok  <toshok@ximian.com>
10646
10647         * Control.cs: err, fix this the right way, by locking on controls
10648         when using it.  not by making it synchronized.
10649
10650 2006-08-28  Chris Toshok  <toshok@ximian.com>
10651
10652         * Control.cs: make the static "controls" field synchronized, as it
10653         gets updated from multiple threads.
10654
10655 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10656
10657         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
10658           Prevent other threads from exiting when calling thread sets quit state.
10659         * XEventQueue.cs: Added PostQuitState property
10660
10661 2006-08-27  Chris Toshok  <toshok@ximian.com>
10662
10663         * AsyncMethodData.cs: add a slot for the window handle.
10664
10665         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
10666         window (the destination control's window, not the foster window).
10667
10668         * Control.cs (BeginInvokeInternal): store the window's handle in
10669         the AsyncMethodData.
10670         
10671
10672 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10673
10674         * XplatUIX11.cs:
10675           - PostQuitMessage: Removed resetting S.D display handle, we might have
10676             another loop started after calling PostQuitMessage (Fixes #79119)
10677           - Created destructor to reset S.D handle
10678
10679 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
10680
10681         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
10682
10683 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10684
10685         * TextControl.cs (Insert): Update the caret position even if we don't
10686           have a handle yet, just don't call the driver in that case.
10687         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
10688           to the end of the new selection text (Fixes #79184)
10689
10690 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10691
10692         * Form.cs (Activate): Only activate if the handle is created)
10693         * Control.c:
10694           - Mark window as invisible when it's disposed
10695           - Check if window handle is created when setting window visible, 
10696             instead of relying just on the is_created variable
10697           - Check if object is disposed when creating the control (Fixes #79155)
10698
10699 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10700
10701         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
10702           when allowing layout again. Otherwise we re-generate the anchoring 
10703           distance to the border again and actually alter what the user wanted
10704           This is ugly, it'd be better if we used DisplayRectangle instead of
10705           ClientRectangle for Control.UpdateDistances, but that causes us to
10706           have other problems (initial anchoring positons would be wrong)
10707           (Fixes #78835)
10708
10709 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10710
10711         * Control.cs:
10712           - The size and location setters shouldn't go directly to 
10713             SetBoundsCore, but to SetBounds, which triggers layout on the
10714             parent, then calls SetBoundsCore. (Related to fix for #78835)
10715           - SetBounds: Moved actual location update code into this function
10716             from SetBoundsCore, to match MS. Added call to PerformLayout if
10717             we have a parent (to trigger resizing of anchored parents if the 
10718             child size has changed (see testcase for #78835) 
10719         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
10720           new control code
10721         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
10722
10723 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10724
10725         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
10726           System.Drawing when a toplevel window gets closed; there might
10727           be other toplevel windows belonging to the same app (Fixes #78052)
10728
10729 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
10730
10731         * FileDialog.cs: After reading FileDialog settings from mwf_config
10732           use Desktop prefix only if a real folder doesn't exist anymore.
10733         * FontDialog.cs: Added char sets.
10734           It is now possible to select the font, size or style with the
10735           textboxes.
10736
10737 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
10738
10739         * PrintPreviewDialog.cs: Use assembly name constants.
10740
10741 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10742
10743         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
10744           scrollbar from whacking it's buttons)
10745
10746 2006-08-24  Chris Toshok  <toshok@ximian.com>
10747
10748         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
10749         in this patch (aggregating setting Left/Top/Width/Height to
10750         setting Bounds on the scrollbars), but the crux of the fix is in
10751         Recalculate, where we scroll by the remaining scroll_position if
10752         we're hiding a scrollbar.  The 2*$5 reward in the comment is
10753         serious.
10754
10755 2006-08-24  Jackson Harper  <jackson@ximian.com>
10756
10757         * MdiClient.cs:
10758         * MdiWindowManager.cs: If the form is made a non-mdi window we
10759         need to remove the form closed event so that closing forms works
10760         correctly.
10761
10762 2006-08-24  Jackson Harper  <jackson@ximian.com>
10763
10764         * Control.cs: Make IsRecreating internal so that the driver can
10765         check it
10766         - Temporarily remove the Hide when controls are removed, its
10767         making a whole bunch of things not work because visibility isn't
10768         getting reset elsewhere correctly
10769         * Form.cs: Need to do a full handle recreation when the mdi parent
10770         is set.
10771         * XplatUIX11.cs: If we are recreating handles don't dispose the
10772         HWNDs.  What was happening is the handles were being recreated in
10773         SendWMDestroyMessages, but then flow continued on in that method
10774         and destroyed the new handles.
10775
10776 2006-08-23  Jackson Harper  <jackson@ximian.com>
10777
10778         * Form.cs: MdiClient is always at the back of the bus
10779         * Control.cs: When the order of items in the collection is changed
10780         we need to reset the all_controls array
10781         - do the same sorta setup thats done when adding a control when a
10782         control is set on the collection.
10783
10784 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10785
10786         * TextBoxBase.cs (get_Text): Return an empty array if our document
10787           is empty (fixes #79052)
10788
10789 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10790
10791         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
10792           on WM_SYSCHAR messages (fixes #79053)
10793
10794 2006-08-23  Chris Toshok  <toshok@ximian.com>
10795
10796         * DataGrid.cs: fix flickering when scrolling vertically.
10797
10798 2006-08-23  Chris Toshok  <toshok@ximian.com>
10799
10800         * DataGrid.cs (EndEdit): only invalidate the row header when we
10801         need to.
10802
10803 2006-08-23  Chris Toshok  <toshok@ximian.com>
10804
10805         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
10806         methods.  fixes the flicker when scrolling around.
10807
10808 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10809
10810         * FileDialog.cs: Making sure the control is created before we get a 
10811           chance to use it with BeginInvoke (Fixes #79096)
10812
10813 2006-08-23  Chris Toshok  <toshok@ximian.com>
10814
10815         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
10816         width to use when painting the rows.
10817
10818 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10819
10820         * TextBoxBase.cs:
10821           - Throw ArgumentException if a negative value is passed to SelectionLength
10822           - Update the selection end if start is moved. end needs to be always
10823             after start. (Fixes #79095)
10824           - Track selection length; MS keeps the selection length even if start
10825             is changed; reset on all other operations affection selection
10826
10827 2006-08-22  Jackson Harper  <jackson@ximian.com>
10828
10829         * TreeView.cs: Make sure both scrollbars get displayed and sized
10830         correctly when the other bar is visible.
10831         - Use the original clip rectangle for checking if the area between
10832         the two scrollbars is visible, not the viewport adjusted clipping
10833         rectangle.
10834
10835 2006-08-22  Jackson Harper  <jackson@ximian.com>
10836
10837         * Binding.cs: We don't use IsBinding because it requires the
10838         control to be created, which really shouldn't be necessary just to
10839         set a property on the control.
10840
10841 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10842
10843         * ComboBox.cs: Some CB.ObjectCollection methods must throw
10844         ArgumentNullReferenceException when the argument is null.
10845
10846 2006-08-21  Jackson Harper  <jackson@ximian.com>
10847
10848         * Timer.cs: Track the thread that the timer is started in (NOT
10849         CREATED), this way messages for it will only be triggered on its
10850         queue.
10851         * XEventQueue.cs: Track the timers here, this makes timers per
10852         thread, like MS.
10853         * XplatUIX11.cs: The timers are moved to the XEventQueue.
10854
10855 2006-08-19  Chris Toshok  <toshok@ximian.com>
10856
10857         * XplatUIX11.cs: after further communication with pdb, we get the
10858         best of both worlds.  SetZOrder working for un-Mapped windows, and
10859         no X errors for un-mapped windows.
10860
10861 2006-08-19  Chris Toshok  <toshok@ximian.com>
10862
10863         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
10864         as it was causing pdn toolbars to not have the correct stacking.
10865
10866 2006-08-18  Mike Kestner  <mkestner@novell.com> 
10867
10868         * ListView.cs : guard against negative ClientArea.Width in scrollbar
10869         calculation.  Not sure why control should ever be setting a negative
10870         width though.  Fixes #78931.
10871
10872 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10873
10874         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
10875         null items in ObjectCollection class.
10876         * ListBox.cs.: Likewise.
10877
10878 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
10879
10880         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
10881           as the base method in ThemeWin32Classic should work fine.
10882           Fixed bug #78607.
10883
10884 2006-08-18  Jackson Harper  <jackson@ximian.com>
10885
10886         * Binding.cs: When validating if the value entered doesn't convert
10887         properly reset to the old value.
10888         * RadioButton.cs: Don't fire click when we get focus.
10889
10890 2006-08-18  Jackson Harper  <jackson@ximian.com>
10891
10892         * FileDialog.cs: Paint the selection on the directory combobox the
10893         same way as on MS. 
10894
10895 2006-08-17  Jackson Harper  <jackson@ximian.com>
10896
10897         * ErrorProvider.cs: Don't allow the error control to be selected.
10898         * Control.cs: Don't send the SetFocus messages, the control
10899         activation will do this, and if we do it blindly here validation
10900         does not work.
10901
10902 2006-08-17  Jackson Harper  <jackson@ximian.com>
10903
10904         * Control.cs:
10905         * ContainerControl.cs: Make validation events fire in the correct
10906         order.  TODO: For some reason the first validation event is not
10907         getting fired.
10908
10909 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10910
10911         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
10912
10913 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10914
10915         * ComboBox.cs : implement scroll wheel support for popped-down
10916         state. Fixes #78945. 
10917
10918 2006-08-17  Jackson Harper  <jackson@ximian.com>
10919
10920         * TreeView.cs: Specify treeview actions (old patch that didn't get
10921         committed for some reason).
10922         - Don't let the mouse wheel scroll us too far.  Just want to make
10923         the bottom node visible, not scroll it all the ways to the top.
10924
10925 2006-08-17  Jackson Harper  <jackson@ximian.com>
10926
10927         * XplatUIX11.cs: Mouse wheel events go to the focused window.
10928
10929 2006-08-17  Mike Kestner  <mkestner@novell.com> 
10930
10931         * ComboBox.cs : don't do mouseover selection in simple mode.
10932
10933 2006-08-16  Jackson Harper  <jackson@ximian.com>
10934
10935         * Form.cs: Fire the closing events for all the mdi child windows
10936         when a window is closed.  If the cancel args are set to true, the
10937         main window still gets the event fired, but it doesn't not close.
10938         * MdiWindowManager.cs: Do this closing cleanup in a Closed
10939         handler, instead of when the button is clicked, so cancelling the
10940         close works correctly.
10941         * ComboBox.cs: Send the mouse down to the scrollbar.
10942
10943 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10944
10945         * ListBox.cs: When passing 'null' to SelectedItem,
10946         set SelectedIndex to -1, to unselect items. This is the
10947         observed behaviour in .Net.
10948
10949 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
10950
10951         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
10952           MS flags saying there won't be any. (fixes #78800)
10953         * Control.cs (HandleClick): Made virtual
10954
10955 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
10956
10957         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
10958           cultures. Fixed bug #78399.
10959
10960 2006-08-16  Jackson Harper  <jackson@ximian.com>
10961
10962         * Form.cs: Use the MdiClients MdiChildren property to access
10963         MdiChildren instead of creating the array from the child controls.
10964         * MdiClient.cs: Maintain a separate array of the mdi children, so
10965         that insertion order is maintained when the Z-order is changed.
10966
10967 2006-08-16  Mike Kestner  <mkestner@novell.com> 
10968
10969         * ListView.cs : add an ItemComparer and default to it for sorting.
10970         Fixes #79076, but sorting needs a complete overhaul to be compat with
10971         MS.
10972
10973 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
10974
10975         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
10976
10977 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
10978
10979         * Hwnd.cs (Mapped): Properly traverse the tree
10980
10981 2006-08-15  Chris Toshok  <toshok@ximian.com>
10982
10983         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
10984         pass manager.Current.GetType() to ParseData.  It has to be the
10985         property type.  So, hold off doing the ParseData until we're in
10986         SetPropertyValue where we know the type.  This fixes the crash in
10987         #78821 but the textbox is still empty.
10988
10989 2006-08-15  Chris Toshok  <toshok@ximian.com>
10990
10991         * DataGrid.cs:
10992         - when we're scrolling, only call Edit() again if the
10993         current cell is still unobscured. Fixes bug #78927.
10994         - when handling mousedown on a cell, ensure the cell is visible
10995         before calling Edit.
10996         - remove the properties from DataGridRow, and remove the
10997         DataGridParentRow class altogether.
10998         
10999
11000 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11001
11002         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
11003           fire OnTextChanged by ourselves. There's no point calling base,
11004           we don't set the base value anywhere else. Fixes #78773.
11005
11006 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11007
11008         * ListBox.cs: Call CollectionChanged when modifying
11009         an item from Items indexer, to update the actual items
11010         in the list box.
11011
11012 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11013
11014         * PrintDialog.cs: Small fixes for focus and a pair of checks,
11015         to match .Net behaviour.
11016
11017 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11018
11019         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
11020
11021 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11022
11023         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
11024
11025 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11026
11027         * MessageBox.cs: Prevent potential NRE exception.
11028         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
11029
11030 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11031
11032         * MessageBox.cs: Calculate the owner of a messagebox, also make
11033           it topmost. Fixes #78753
11034
11035 2006-08-14  Chris Toshok  <toshok@ximian.com>
11036
11037         * XplatUIX11.cs: A couple of fixes so that metacity will let us
11038         programmatically move windows.  first, set the PPosition hint as
11039         well as the USPosition hint.  Second include some code from pdb
11040         that sets the window type to NORMAL when we set the transient for
11041         hint.  This is because, in the absence of a window type, metacity
11042         thinks any window with TransientFor set is a dialog, and refuses
11043         to let us move it programmatically.  fascists.
11044
11045 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11046
11047         * XplatUIX11.cs: When setting normal hints, take into consideration
11048           an different hints previously set so we don't delete them (fixes #78866)
11049
11050 2006-08-12  Chris Toshok  <toshok@ximian.com>
11051
11052         * ToolBarButton.cs: make Layout return a boolean, if something to
11053         do with the button's layout changed.
11054
11055         * ToolBar.cs:
11056         - add another parameter to Redraw, @force, which all existing
11057           calls set to true.
11058         - make the Layout function return a boolean which is true if the
11059           layout has actually changed.  Redraw now uses this (and @force)
11060           to determine when to invalidate.  At present the only place
11061           where @force can be false is the call from OnResize, when
11062           background_image == null.  So, resizing a toolbar when the
11063           layout doesn't change results in no drawing.
11064
11065 2006-08-12  Chris Toshok  <toshok@ximian.com>
11066
11067         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
11068         the VScrollBar and HScrollbar reversed.  oops.
11069
11070         * DataGrid.cs: fix the logic that assigns sizes to the implicit
11071         scrollbars.  we were assigning them twice (once in
11072         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
11073         therefore causing two scrollbar resizes (and redraws?) to happen
11074         per grid resize.
11075
11076 2006-08-12  Chris Toshok  <toshok@ximian.com>
11077
11078         * ToolBarButton.cs: redraw the entire button if the theme tells us
11079         to.
11080
11081         * Theme.cs: add ToolBarInvalidateEntireButton.
11082
11083         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
11084         buttons, just the border.
11085
11086         * ThemeNice.cs: redraw the entire toolbar button since we need to
11087         draw the highlight image.
11088
11089         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
11090         we need to redraw the entire button (not just the border).
11091
11092 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11093
11094         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
11095           for vertical bars. Fixes the mismatches shown by #78513
11096
11097 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
11098
11099         * FileDialog.cs: If a saved/remembered path doesn't exist
11100           anymore, fall back to "Desktop".
11101
11102 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11103
11104         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
11105           parent. It's apparently legal to not have one
11106         * XplatUIX11.cs:
11107           - SetZOrder: Don't try to set Z-Order on an unmapped window
11108           - CreateWindow: 0,0 are legal coordinates for a window. don't move
11109             it unless the coordinates are negative
11110
11111 2006-08-10  Mike Kestner  <mkestner@novell.com>
11112
11113         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
11114         when setting to null per msdn docs.  Fixes #78854.
11115
11116 2006-08-10  Chris Toshok  <toshok@ximian.com>
11117
11118         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
11119         flickering by setting a clip rectangle on the Graphics when we
11120         need to redraw just a particular menuitem.  Also, rename "OnClick"
11121         to "OnMouseDown" to reflect what it actually is.
11122         
11123         * Form.cs: track the OnMouseDown change.
11124
11125 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
11126
11127         * CommonDialog.cs: Properly inherit the CreateParams from the form
11128           and only change what we need. Fixes #78865
11129
11130 2006-08-10  Chris Toshok  <toshok@ximian.com>
11131
11132         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
11133         flickering in flat mode (and most of the flickering in general) by
11134         only invalidating the button border (and not the entire rectangle)
11135         when the state changes.  A couple of cases still flicker:
11136         ToggleButtons, and the dropdown arrow case when the user mouse
11137         ups.
11138
11139 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
11140
11141         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
11142           for german keyboards. Numlock state shouldn't affect the behaviour
11143           of the Del key. Fixes bug #78291.
11144
11145 2006-08-10  Chris Toshok  <toshok@ximian.com>
11146
11147         * ListControl.cs: remove the items.Clear line from BindDataItems,
11148         as this is the first thing done by both subclasses in their
11149         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
11150         passed -1, refresh the list.  This gets databinding working when
11151         the datasource is set on the list before the datasource is
11152         populated (as in wf-apps/ReportBuilder.)
11153
11154         * ComboBox.cs: remove the argument to BindDataItems.  This call
11155         should really go away, and be initiated by the ListControl code.
11156
11157         * ListBox.cs: same.
11158
11159 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11160
11161         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
11162           if no data is in the document when the control is displayed
11163
11164 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
11165
11166         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
11167           yes (fixes #78806)
11168         * TextControl.cs: 
11169           - PositionCaret: Allow positioning of caret but don't call methods 
11170             requiring a handle if the window isn't created yet
11171           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
11172           - owner_HandleCreated: Don't position the caret, just update it's 
11173             location. User might have already set a different position
11174
11175 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11176
11177         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
11178           windows. Screws up the returned coordinates for child windows. 
11179           Fixes #78825. I'm hoping this doesn't break something, since the
11180           code was explicitly put in 8 months ago, but no bug was attached.
11181           Menus still seem to work properly.
11182
11183 2006-08-08  Chris Toshok  <toshok@ximian.com>
11184
11185         * DataGrid.cs: make BeginInit/EndInit actually do what they're
11186         supposed to do - delay data binding until the EndInit call.  Also,
11187         make the table style collection's CollectionChangeAction.Refresh
11188         work properly.
11189
11190         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
11191         (with action = Refresh) when a consituent table's MappingName is
11192         changed.
11193
11194 2006-08-08  Chris Toshok  <toshok@ximian.com>
11195
11196         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
11197         Invalidate, since changing the text can change the size of the all
11198         toolbar buttons.
11199
11200 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11201
11202         * Form.cs (AddOwnedForm): Still need to add the form to our listif
11203           we don't have it yet
11204
11205 2006-08-08  Chris Toshok  <toshok@ximian.com>
11206
11207         * PrintControllerWithStatusDialog.cs: don't .Close() the status
11208         dialog, as this causes X errors later on, since we actually
11209         destroy the window.  Instead, .Hide() it.
11210
11211 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11212
11213         * ComboBox.cs: Added focus reflection for popup window
11214         * XplatUIX11.cs: 
11215           - Removed transient setting for non-app windows for now, not sure it
11216             was needed
11217           - Fixed logic checking if we have captions when deciding 
11218             override_redirect, WS_CAPTION is two bits and a 0 check was not
11219             sufficient
11220           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
11221             complicated
11222         * Form.cs: 
11223           - AddOwnedForm: Don't just add the form to the list, call the property
11224             to ensure the driver is informed about the ownership as well
11225           - CreateHandle: Set the TopMost status in the driver if we have an owner
11226         * XplatUI.cs: Fixed debug statement
11227
11228 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
11229         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11230           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
11231           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
11232           TrackBarRenderer.cs: Make constructor private.
11233         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
11234         * ProfessionalColorTable.cs: Make properties virtual.
11235
11236 2006-08-06  Duncan Mak  <duncan@novell.com>
11237
11238         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
11239         is not changing.
11240
11241 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11242         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11243           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
11244           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
11245           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
11246           Initial import of new 2.0 classes.
11247
11248 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11249         * Application.cs: Add 2.0 VisualStyles properties.
11250
11251 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11252         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11253           XplatUIX11.cs: Create property to allow access to existing private
11254           variable "themes_enabled"
11255
11256 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11257
11258         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
11259         file size, as otherwise our class libraries fail using windows. Fixes
11260         bug #78759.
11261
11262 2006-08-04  Jackson Harper  <jackson@ximian.com>
11263
11264         * Form.cs:
11265         * XplatUIX11.cs: Move the toolwindow window manager creation into
11266         the X11 driver, this way on win32 we can let windows create/handle
11267         the toolwindows.
11268
11269 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11270
11271         * PrintDialog.cs: Remove some redundant checks, add some others,
11272         clean some code, and move the focus to the text boxes when the
11273         values are incorrect.
11274
11275 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
11276
11277         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
11278
11279 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11280
11281         * NumericUpDown.cs: Setting the Minimum and Maximum is now
11282           handled correctly. Fixes bug #79001.
11283
11284 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11285
11286         * PrintDialog.cs: The "Copies" numeric up down must have
11287         set the Minimum property to 1; only if the value is bigger
11288         than 1, activate "Collate" check box. This is the behaviour of .Net.
11289         Also modify the Document elements only if it is not null.
11290
11291 2006-08-03  Jackson Harper  <jackson@ximian.com>
11292
11293         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
11294         length. (We have a larger array then actual node count).
11295                 
11296 2006-08-03  Jackson Harper  <jackson@ximian.com>
11297
11298         * ComboBox.cs: Don't show selection by default.
11299         - The SelectAll isn't needed here, since the focus code should do
11300         that
11301         - DDL style lists to manual selection drawing, so when they
11302         get/lose focus they have to invalidate.
11303
11304 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
11305
11306         * TextBoxBase.cs: Don't always show all selections by default.
11307
11308 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
11309         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
11310           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
11311           Fixed various typos.
11312
11313 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11314
11315         * Control.cs: Removing the controls in a ControlCollection with
11316           Clear now hides the controls as expected. Fixes bug #78804. 
11317
11318 2006-08-03  Jackson Harper  <jackson@ximian.com>
11319
11320         * Control.cs: Revert previous focus patch, it breaks reflector.
11321
11322 2006-08-03  Jackson Harper  <jackson@ximian.com>
11323
11324         * ComboBox.cs: Cleanup selection and focus with the combobox.
11325         This also eliminates some duplicated keyboard code, since now
11326         everything is handled by the main class.
11327         - Make list selection work on mouse up instead of down, to match
11328         MS.
11329
11330 2006-08-02  Jackson Harper  <jackson@ximian.com>
11331
11332         * Control.cs: Setting focus needs to go through the whole
11333         selection mechanism.
11334
11335 2006-08-02  Chris Toshok  <toshok@ximian.com>
11336
11337         * PrintPreviewDialog.cs: change MinimumSize to use
11338         base.MinimumSize so it works.
11339
11340 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
11341
11342         * TextControl.cs:
11343           - UpdateCaret: Added sanity check in case caret isn't defined yet
11344           - Line.Delete: Now updating selection and caret markers if we're
11345             transfering a node (Properly fixes #78323)
11346           - SetSelectionEnd: Added sanity check
11347         * TextBoxBase.cs: Removed broken attempt to fix #78323
11348
11349 2006-08-01  Chris Toshok  <toshok@ximian.com>
11350
11351         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
11352         Close() call is handled in Form, not here.
11353
11354 2006-08-01  Chris Toshok  <toshok@ximian.com>
11355
11356         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
11357         layout/rendering.
11358
11359         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
11360         for sizes < 100% zoom.  The code now aggressively attempts to keep
11361         from calling document.Print (), and tries not to use the scaling
11362         g.DrawImage whenever possible (it still does if you scale to >
11363         100%, since usually that involves huge images).
11364
11365         * PrintPreviewControl.cs: hook up the close button.
11366
11367 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
11368         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
11369           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
11370           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
11371           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
11372           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
11373           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
11374           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
11375           Removed [Serializable] for 2.0 Event Handlers.
11376
11377 2006-07-31  Jackson Harper  <jackson@ximian.com>
11378
11379         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
11380         * TextControl.cs: Uncomment out the body of this method.
11381
11382 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
11383
11384         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
11385           standard cursors.
11386
11387 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11388
11389         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
11390           that embed TextBox and need selections visible even if textbox is not
11391           focused to enforce that behaviour.
11392         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
11393           selection drawing
11394
11395 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11396
11397         * TextControl.cs:
11398           - Added new SetSelectionStart/SetSelectionEnd overloads
11399           - Fixed viewport width assignment to be accurate
11400           - Adjusted alignment line shift calculations to allow cursor on right
11401             aligned lines to be always visible at the right border (like MS)
11402         * TextBoxBase.cs:
11403           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
11404           - TextBoxBase_SizeChanged: recalculating canvas on size changes
11405           - CalculateScrollBars: Use ViewPort size instead of window size, to
11406             properly consider space occupied by the border and scrollbars 
11407             (Fixes #78661)
11408           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
11409             calculations; no longer leaves artifacts
11410           - CaretMoved: Adjusted window scrolling to match MS and fixed several
11411             calculation bugs (Still missing right/center align calculations)
11412
11413 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
11414
11415         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
11416           use of both scroll rect and clip rect, as they do the same.
11417
11418 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11419
11420         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
11421           in the event handler (fixes #78912)
11422
11423 2006-07-31  Chris Toshok  <toshok@ximian.com>
11424
11425         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
11426         grid.ListManager.Count, since grid.ListManager might be null.
11427         This of course begs the question "why are we drawing rows for a
11428         grid with no list manager (and therefor no rows)?"  Fixes the
11429         crash in bug #78929.
11430
11431 2006-07-31  Chris Toshok  <toshok@ximian.com>
11432
11433         * RelatedPropertyManager.cs: Don't always chain up to the parent
11434         ctor.  instead, call SetDataSource if the parent's position is !=
11435         -1.  Fixes the crash in #78822.
11436
11437 2006-07-31  Chris Toshok  <toshok@ximian.com>
11438
11439         * DataGrid.cs (get_ListManager): use field instead of property
11440         accessors for datasource and datamember.
11441         (RowsCount): make internal again.
11442         (OnMouseDown): end edits before resizing columns/rows.
11443         (OnMouseUp): restart edits after resizing columns/rows.
11444
11445 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
11446
11447         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
11448           This fixes the situation where the last set cursor is displayed
11449           whenever the mouse is over scrollbars.
11450
11451 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11452
11453         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
11454         Document properties, as well as initial values.
11455
11456 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
11457
11458         * XplatUIWin32.cs (SetBorderStyle): Setting both border
11459           and ClientEdge results in a 3-pixel border, which is
11460           wrong.
11461
11462 2006-07-28  Jackson Harper  <jackson@ximian.com>
11463
11464         * TreeNodeCollection.cs: Fix the clear method.
11465         - Fix the Shrink also
11466
11467 2006-07-27  Jackson Harper  <jackson@ximian.com>
11468
11469         * TreeView.cs: Make sure the visible order is computed when we
11470         attempt to size the scrollbars (for trees that mess with the
11471         scrolling when they shouldn't.
11472         - Make sure to give the scrollbars valid values.
11473
11474 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11475
11476         * XplatUIX11.cs: Move motion compression code to where it
11477           has less performance impact
11478
11479 2006-07-26  Jackson Harper  <jackson@ximian.com>
11480
11481         * UpDownBase.cs: When the control is selected make the child
11482         controls non selectable, so that a click on them won't do a
11483         focus/unfocus cycle.
11484         - Don't give focus to the text box when the spinner is selected.
11485         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
11486
11487 2006-07-26  Chris Toshok  <toshok@ximian.com>
11488
11489         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
11490         satisfied with this solution.  If the bitmaps are small, we should
11491         just cache them in the PrintPreviewDialog and draw them here.
11492         Also, the layout is broken for the 2-up and 3-up cases.
11493
11494         * Theme.cs: add PrintPReviewControlPaint.
11495
11496         * PrintPreviewDialog.cs: first pass implementation.
11497
11498         * PrintPreviewControl.cs: first pass implementation.  No
11499         scrollbars yet.
11500
11501         * PrintDialog.cs: only validate fields if that particular portion
11502         of the UI is enabled.  Also, set the document's controller to a
11503         PrintControllerWithStatusDialog wrapping the document's print
11504         controller.
11505
11506         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
11507         bring up a SaveFileDialog (i hope we don't want to match the
11508         behavior of the crappy windows file entry) and set the
11509         PrinterSettings.PrintFileName accordingly.
11510
11511 2006-07-26  Jackson Harper  <jackson@ximian.com>
11512
11513         * ContainerControl.cs: Add a field that disables auto selecting
11514         the next control in a container when the container is activated.
11515         * UpDownBase.cs: Don't select the text box when the up down is
11516         selected.
11517
11518 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11519
11520         * XEventQueue.cs: Added methods for peeking (used for compression
11521           of successive events)
11522         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
11523           mouse move events (fixes #78732)
11524
11525 2006-07-25  Jackson Harper  <jackson@ximian.com>
11526
11527         * UpDownBase.cs: Use an internal class for the textbox so that we
11528         can control focus.  the updown control should always have focus,
11529         if either the text area or the buttons are clicked.
11530         - Send the key messages to the textbox, since it never actually
11531         has focus
11532         - Activate and decativate the textbox caret.
11533
11534 2006-07-24  Jackson Harper  <jackson@ximian.com>
11535
11536         * Control.cs: Use the directed select when selecting a control,
11537         this way the container controls override will get called and the
11538         whole ActiveControl chain will get triggered.  TODO: probably need
11539         to make sure this gets done everywhere instead of the old
11540         Select(Control).
11541         * ContainerControl.cs: Implement the directed Select method to
11542         find and activate the correct child control.    
11543         
11544 2006-07-22  Mike Kestner  <mkestner@novell.com>
11545
11546         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
11547         menu handling code so that clicks without a grab work too.
11548         [Fixes #78914]
11549
11550 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
11551
11552         * FileDialog.cs: Enable the BackButton when dirstack has one element.
11553           Added some small optimizations.
11554
11555 2006-07-21  Matt Hargett  <matt@use.net>
11556
11557         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
11558
11559 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
11560
11561         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
11562           tests pass and match MS in some strange border cases.
11563
11564 2006-07-21  Chris Toshok  <toshok@ximian.com>
11565
11566         * ThemeWin32Classic.cs: handle drawing of the relation links and
11567         parent row buttons.
11568
11569         * Theme.cs: change args to DataGridPaintParentRow.
11570
11571         * DataGrid.cs: Don't use controls for the relation links and
11572         parent buttons, so we have to handle all their interactions in
11573         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
11574         when we're navigating through child tables, so we can reinstate
11575         selection, expanded state, current cell, etc.
11576
11577 2006-07-20  Chris Toshok  <toshok@ximian.com>
11578
11579         * ToolBar.cs: When we redraw a button, for whatever reason,
11580         there's no reason to redraw the entire toolbar.  Also, don't call
11581         Control.Refresh from within Redraw, as it's much heavier than
11582         Invalidate (which is really what we want).
11583
11584 2006-07-20  Chris Toshok  <toshok@ximian.com>
11585
11586         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
11587         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
11588         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
11589         traces from within a debug IBindingList datasource
11590         (in mono/winforms/datagrid) for *days*, I've finally gotten things
11591         to work in a similar fashion.
11592
11593 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11594
11595         * ListBox.cs: Don't call Sort () when setting 
11596         the Sorted property to false (avoid an unnecessary sort).
11597
11598 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11599
11600         * ListControl.cs: DataSource should throw an ArgumentException
11601         instead of a normal exception when the argument is not of the 
11602         correct type.
11603
11604 2006-07-20  Mike Kestner  <mkestner@novell.com>
11605
11606         * Control.cs: add InternalPreProcessMessage to allow us to steal
11607         key events before MWF gets its paws on them.  Adapted from a
11608         suggestion by eno.
11609         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
11610         up/down/left/right navigation. Override the new internal control
11611         method to steal the events since they never make it to WndProc.
11612         * ToolBarButton.cs: don't worry about pushed when setting hilight
11613         since the drawing code prefers pushed to hilight. Invalidate on 
11614         Hilight changes. Fixes #78547 and #78525.
11615
11616 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11617
11618         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
11619           the canvas size. Fixes #78868
11620
11621 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
11622
11623         * Splitter.cs: Track requested split position until first layout
11624           is performed. Fixes #78871
11625
11626 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11627
11628         * Application.cs: Removed code that forces 1.x for the version
11629           number if the version started with 0. Not sure why that code was
11630           there and I couldn't find any bugs that indicated we needed it.
11631           Fixes #78869
11632
11633 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
11634
11635         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
11636           ResetDefaults(), just write some output to the console until it's
11637           implemented. Fixes bug #78907 for now. Eliminated two warnings.
11638
11639 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
11640
11641         * PropertyGridView.cs: set StartPosition of drop down forms
11642         so they appear in correct initial spot.  Fixes #78190.
11643
11644 2006-07-19  Mike Kestner  <mkestner@novell.com>
11645
11646         * ThemeWin32Classic.cs: use parent background color when drawing
11647         flat toolbars.  Restructure the conditionals to make sure non-flat
11648         non-Divider toolbars are filled too.  Fixes #78837.
11649
11650 2006-07-19  Mike Kestner  <mkestner@novell.com>
11651
11652         * ListBox.cs: Sort on collection changes even if the handle
11653         isn't created yet.  Fixes #78813.
11654
11655 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11656
11657         * ListControl.cs: DisplayMember should never be null,
11658         and now we assign String.Empty when null is passed to it (this
11659         is the .Net way).
11660
11661 2006-07-17  Mike Kestner  <mkestner@novell.com>
11662
11663         * ListViewItem.cs: restructure Font and subitem Font handling 
11664         to hold a specific font and refer back to owner on null.
11665         Fixes #78761.
11666
11667 2006-07-17  Mike Kestner  <mkestner@novell.com>
11668
11669         * ToolBar.cs: bandaid for side-effect of previous patch which was
11670         discarding explicit heights for non-AutoSize toolbars.  Need to
11671         extend my format tester to deal with AutoSize=false. Fixes #78864.
11672
11673 2006-07-15  Jackson Harper  <jackson@ximian.com>
11674
11675         * LabelEditTextBox.cs:
11676         * TreeView.cs: Use a new LabelEdit class for node editing, this
11677         class automatically 'closes' itself when it gets the enter key or
11678         loses focus.
11679         - Use the client rectangle when setting the trees scrollbars, so
11680         border style is taken into account.
11681         
11682 2006-07-14  Jackson Harper  <jackson@ximian.com>
11683
11684         * TreeNode.cs:
11685         * TreeView.cs: Make the editing work similar to MSs, firing the
11686         events correctly and ending edits correctly.
11687
11688 2006-07-14  Mike Kestner  <mkestner@novell.com>
11689
11690         * ToolBarButton.cs:
11691         * ToolBar.cs: layout restructuring and redraw enhancements to support
11692         formatting changes gracefully, like setting TextAlign, ImageList, 
11693         ButtonSize, and Appearance.  Handles explicit button sizing quirks
11694         of the MS controls.  Things like flat toolbars ignoring button size
11695         but becoming constant sized at the largest button's size.  Normal
11696         toolbars with an image set cannot be shrunk smaller than the image,
11697         but text can be clipped/ignored.
11698         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
11699         is zero.  Seems like DrawString should be smart enough to not put
11700         anything on screen though. Also trim labels and ellipsize at the char
11701         boundary, not word.
11702         Fixes #78711 and #78483.
11703
11704 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11705
11706         * FolderBrowserDialog.cs: Disable "New Folder" button and
11707           "New Folder" contextmenu menuitem if a folder like "My Computer"
11708           is selected.
11709
11710 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11711
11712         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
11713         * FolderBrowserDialog.cs:
11714           - Use MWFConfig to store and read size and position settings
11715           - Added code to create a new folder (button or context menu).
11716             Use TreeView labeledit to change the name of the new folder.
11717
11718 2006-07-14  Jackson Harper  <jackson@ximian.com>
11719
11720         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
11721         when the tree is scrolled we end editing.
11722
11723 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11724
11725         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
11726           Down arrows
11727
11728 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
11729
11730         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
11731         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
11732         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
11733         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
11734         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
11735         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
11736         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
11737         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
11738         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
11739         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
11740         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
11741         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
11742         ListViewItemSelectionChangedEventHandler.cs,
11743         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
11744         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
11745         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
11746         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
11747         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
11748         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
11749         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
11750         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
11751         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
11752         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
11753         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
11754         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
11755         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
11756         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
11757         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
11758         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
11759         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
11760         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
11761         WebBrowserNavigatingEventHandler.cs, 
11762         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
11763
11764 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
11765
11766         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
11767         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
11768         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
11769         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
11770         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
11771         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
11772         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
11773         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
11774         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
11775         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
11776         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
11777         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
11778         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
11779         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
11780         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
11781         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
11782         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
11783         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
11784         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
11785         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
11786         ListViewItemStates.cs, MaskFormat.cs: Added
11787
11788 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
11789
11790         * PropertyGridView.cs: Fix keyboard navigation of drop down.
11791         Patch from eno for bug 78558.
11792         
11793 2006-07-13  Jackson Harper  <jackson@ximian.com>
11794
11795         * TreeView.cs: When an edit is finished make sure that the
11796         selected node is visible.
11797         - When setting the top/bottom use the scrollbars is_visible, so
11798         everything will be set correctly even if the tree isn't visible
11799         yet.
11800
11801 2006-07-13  Jackson Harper  <jackson@ximian.com>
11802
11803         * ComboBox.cs: Revert the item->index part of my previous patch.
11804         * TreeView.cs: Use LostFocus instead of Leave for detecting when
11805         the edit box has lost focus (duh).
11806         - Just make the edit box not visible when we get return, that will
11807         take the focus, which will call EndEdit
11808         * TreeNode.cs When we start editing, notify the treeview.
11809
11810 2006-07-12  Jackson Harper  <jackson@ximian.com>
11811
11812         * ComboBox.cs: Clear out old items before setting the item list.
11813         This prevents databound controls from having their items added
11814         twice.
11815         - Switch the combobox to use indices whereever possible instead of
11816         using Item's.  This allows usto navigate through lists that have
11817         more then one item with the same string value (ie a, b, b, a).
11818         - Scroll the listboxes scrollbar when a non visible item is
11819         highlighted
11820         - Allow keypress to cycle through all the possible values. For
11821         example if you have b1, b2, b3 and hold down the B key all the
11822         values will be cycled through.
11823         
11824 2006-07-12  Jackson Harper  <jackson@ximian.com>
11825
11826         * TextBoxBase.cs:
11827         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
11828         this using the internal methods.
11829         * Control.cs: Add OnGotFocusInternal.  A new method that allows
11830         controls to "override" OnGotFocus and change focus behavior if
11831         needed.
11832         - Same thing for LostFocus
11833         * ComboBox.cs: Pass off focus to the text control properly.
11834
11835 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
11836
11837         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
11838         * FolderBrowserDialog.cs: Almost a complete rewrite.
11839           - Better support for Environment.Specialfolders
11840           - Added support for MWFVFS
11841           - Made setting SelectedPath work
11842
11843 2006-07-12  Jackson Harper  <jackson@ximian.com>
11844
11845         * Control.cs: Optimze getting all the controls.
11846
11847 2006-07-11  Jackson Harper  <jackson@ximian.com>
11848
11849         * ContainerControl.cs: Override SETFOCUS in the container control,
11850         so that it is not selected on mouse click.
11851
11852 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
11853
11854         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
11855           Hopefully we will have a better way once all of focus is complete.
11856
11857 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
11858
11859         * ThemeWin32Classic.cs: Commented out some debug code and fixed
11860           a compile error with csc.
11861
11862 2006-07-11  Jackson Harper  <jackson@ximian.com>
11863
11864         * Control.cs: When hiding a control only select the next control
11865         if the current control was focused.
11866         - Don't handle enter/leave when setting/killing focus, this is
11867         done by the container control.
11868         - Remove is_selected, it's not needed anymore.
11869         - Add utility methods for selecting a child control, and for
11870         firing the Enter/Leave events.
11871         * ContainerControl.cs: When a control is activated fire the
11872         enter/leave events.
11873         - Don't wrap when processing the tab key, so that focus can be
11874         moved outside of the container.
11875         - Use the correct active control
11876
11877 2006-07-11  Jackson Harper  <jackson@ximian.com>
11878
11879         * ComboBox.cs: Remove some debug code that was blinding me.
11880         * UpDownBase.cs: These controls actually aren't implicit, they are
11881         visible to the user.
11882
11883 2006-07-10  Chris Toshok  <toshok@ximian.com>
11884
11885         * DataGrid.cs: move back to the is_adding boolean field.  god i
11886         hate this is_editing/is_adding/is_changing stuff.
11887
11888 2006-07-10  Chris Toshok  <toshok@ximian.com>
11889
11890         * DataGridTableStyle.cs: just check if the property type is bool.
11891         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
11892         Don't use CanRenderType.
11893
11894         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
11895         if our text == NullText.  Remove CanRenderType.
11896
11897         * DataGridBoolColumn.cs: nuke CanRenderType.
11898
11899         * DataGrid.cs: reenable some code to end the current edit inside
11900         of set_CurrentCell.  This fixes the other 1.1.16 regression.
11901         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
11902         Also, remove the visible_row_count arg from CalcRowHeaders, since
11903         we don't need to worry about the actual height of the area.
11904
11905 2006-07-10  Chris Toshok  <toshok@ximian.com>
11906
11907         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
11908         mode, just return.
11909
11910         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
11911         the real sense of the IsInEditOrNavigateMode property (true =
11912         navigate, false = edit).  Also, update OnKeyPress to reflect this.
11913
11914         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
11915         column style exists, we still need to set its property descriptor
11916         to match up with our list manager.
11917
11918 2006-07-10  Chris Toshok  <toshok@ximian.com>
11919
11920         * ThemeWin32Classic.cs: implement the new row/header painting
11921         approach.  The parent row painting will likely go away and
11922         replaced with label controls, but the rest seems to work ok (and
11923         efficiently).
11924
11925         * Theme.cs: change the way we draw datagrid rows.  we don't draw
11926         the row headers as a block now.  Instead we draw them in the
11927         normal draw-row loop.  Add some calls for drawing parent rows and
11928         relation rows.
11929
11930         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
11931         a default table style.  Set the defaults from ThemeEngine.Current,
11932         not SystemColors.  Fix lots of misc issues with property setters.
11933
11934         * DataGrid.cs: move loads of style information out of this class
11935         as it's being duplicated with DataGridTableStyle.  keep track of a
11936         special DataGridTableStyle for the properties we used to mirror
11937         here.  Switch all the style properties to access this table style
11938         instead of instance fields of this class.  Also add a internal
11939         class to represent parent rows (more needs to be stored here, like
11940         the selection state from the parent table, as well as the
11941         expansion state.)  Also, for datasources with relations, do the
11942         right thing for collapse/expand, and add support for the
11943         navigation/parent row buttons.
11944
11945         Lastly, fix the crash in the 1.1.16 build.
11946
11947         * GridTableStylesCollection.cs: make the explicit interface
11948         implementations call the class's methods as opposed to duplicating
11949         them.
11950
11951         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
11952         0 so the text doesn't jump around when we move the cursor.
11953
11954 2006-07-10  Jackson Harper  <jackson@ximian.com>
11955
11956         * TextBoxBase.cs:
11957         * ListBox.cs: Match MS's ToString (this makes debugging focus
11958         stuff infinitely easier).
11959
11960 2006-07-10  Jackson Harper  <jackson@ximian.com>
11961
11962         * Control.cs (SelectNextControl): When checking the control's
11963         parent use this instead of ctrl.parent so that null can be passed
11964         to SelectNextControl. (I have unit tests for this).
11965         - Remove unused var.
11966
11967 2006-07-10  Chris Toshok  <toshok@ximian.com>
11968
11969         * CurrencyManager.cs: correct one regression, the removal of the
11970         finalType field.  Also, add a MonoTODO on CanAddRows, implement
11971         Refresh() correctly, and fix some event emission in
11972         ListChangedHandler.
11973
11974 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
11975
11976         * FileDialog.cs: Don't use brackets for new folders if they exist
11977           under *nix. Instead use -(number of existing folders +1).
11978
11979 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
11980
11981         * FileDialog.cs:
11982           - Fixed really nasty bug #78771
11983           - Don't block the whole GUI when reading directories with a lot of
11984             entries. Use an other thread instead and call BeginInvoke to
11985             update the ListView in MWFFileView
11986
11987 2006-07-07  Chris Toshok  <toshok@ximian.com>
11988
11989         * Control.cs (Dispose): release any Capture when disposing.
11990
11991 2006-07-07  Chris Toshok  <toshok@ximian.com>
11992
11993         * LinkLabel.cs (Select): if we chain up to the parent, set
11994         focused_index to -1 so we'll search for the first available link
11995         the next time the user tabs into us.  Also, if the direction is
11996         backward and focused_index == -1, start the search from the last
11997         element.
11998
11999 2006-07-07  Chris Toshok  <toshok@ximian.com>
12000
12001         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
12002         is beyond the end of the text, don't do anything.
12003         (CreateLinkPieces): set our ControlStyles.Selectable based on
12004         whether or not we have any links.
12005         (Link.Invalidate): use a loop instead of foreach.
12006         (Link.set_Start): null out owner.sorted_links so it'll be
12007         recreated by CreateLinkPieces.
12008
12009 2006-07-06  Chris Toshok  <toshok@ximian.com>
12010
12011         * LinkLabel.cs: revert the SetStyle change.
12012
12013 2006-07-06  Chris Toshok  <toshok@ximian.com>
12014
12015         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
12016         (OnEnableChanged): s/Refresh/Invalidate
12017         (OnGotFocus): if we have a focused index already, refocus it (so
12018         if we mouse out/in to the window it'll focus the right link).
12019         (OnKeyDown): move the tab handling out of here.
12020         (OnLostFocus): don't set focused_index to -1, so we can refocus it
12021         when we lose focus.
12022         (OnMouseDown): don't Capture here - Control handles it.  Also,
12023         focus the active link.
12024         (OnMouseUp): don't deal with Capture.
12025         (OnPaintBackgroundInternal): remove.
12026         (OnTextAlignChanged): CreateLinkPieces before calling the
12027         superclass's method.
12028         (OnTextChanged): call CreateLinkPieces before calling superclass's
12029         method.
12030         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
12031         move around.
12032         (Select): implement this, moving the selection between different
12033         links, and call parent.SelectNextControl if we don't have another
12034         link to focus in the given direction.
12035         (CreateLinkPieces): call Invalidate instead of Refresh.
12036         
12037 2006-07-06  Chris Toshok  <toshok@ximian.com>
12038
12039         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
12040         new LinkLabel internals.
12041
12042         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
12043         over pieces looking for active/focused/etc links.  also, deal with
12044         runs of text (and links) with embedded \n's in them, and use
12045         MeasureCharacterRanges instead of MeasureString to figure out the
12046         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
12047         two-step.
12048
12049 2006-07-04  Jackson Harper  <jackson@ximian.com>
12050
12051         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
12052         XKB or key auto repeat, do it manually.  Without key auto repeat,
12053         when a key is held down we get key press, key release, key press,
12054         key release, ... with auto repeat we get key press, key press, key
12055         press ..., and then a release when the key is actually released.
12056
12057 2006-07-03  Jackson Harper  <jackson@ximian.com>
12058
12059         * TabControl.cs:
12060         * ThemeWin32Classic.cs: Tabs do not obey normal background color
12061         rules, they are always control color regardless of the background
12062         color.
12063
12064 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
12065
12066         * FileDialog.cs: Added internal class MWFConfig.
12067           Removed Registry support and replaced it with support for the new
12068           MWFConfig class. See MWFConfig comments for more information.
12069
12070 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
12071
12072         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
12073           rectangle. Added some patches from eno from bug #78490 and fixed
12074           the arrow position for small up and down CPDrawScrollButtons.
12075
12076 2006-06-30  Jackson Harper  <jackson@ximian.com>
12077
12078         * InternalWindowManager.cs: Remove some debug code.
12079         * Form.cs: When an MdiParent is set to null, the window is
12080         "detatched" and becomes a normal window.
12081         * MdiClient.cs: Don't bring the new child form to the front until
12082         it is activated (setting it as active does this), this makes the
12083         previously active forms titlebar get redrawn as inactive.
12084
12085 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
12086
12087         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
12088           with later controls
12089
12090 2006-06-29  Mike Kestner  <mkestner@novell.com>
12091
12092         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
12093         arrow in keynav state.  Fixes #78682.
12094
12095 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12096
12097         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
12098           order (fixes #78393)
12099
12100 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
12101
12102         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
12103           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
12104           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
12105           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
12106           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
12107           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
12108           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
12109           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
12110           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
12111           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
12112           enumerations (FlagsAttribute, SerializableAttribute, added/removed
12113           values)
12114
12115 2006-06-28  Mike Kestner  <mkestner@novell.com>
12116
12117         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
12118
12119 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12120
12121         * PropertyGrid.cs,
12122           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
12123           item lines from other area (It also makes BackColor consistent and
12124           compatible with .NET). Fixed bug #78564.
12125
12126 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
12127
12128         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
12129         Patch from Eno for #78555.
12130
12131 2006-06-27  Chris Toshok  <toshok@ximian.com>
12132
12133         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
12134
12135         * DataGridColumnStyle.cs: same.
12136
12137         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
12138         
12139         * DataGridDrawingLogic.cs: nuke.
12140
12141 2006-06-27  Chris Toshok  <toshok@ximian.com>
12142
12143         * DataGridTableStyle.cs: clean up the constructors, and build the
12144         list of child relations for this table.  I have no idea if this is
12145         where we should be doing it (it probably isn't), but since we're
12146         already iterating over the properties..
12147
12148         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
12149         struct and array for keeping track of row information, similar to
12150         what's shown in a hack on
12151         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
12152
12153         * Theme.cs: be consistent about the naming of DataGrid methods,
12154         prefering ColumnWidths and RowHeights over columnsWidths and
12155         RowsHeights.
12156
12157         * ThemeWin32Classic.cs: same, and also add support for variable
12158         sized rows (and the +/- expansion icons for related rows).
12159
12160 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12161
12162         * TextBoxBase.cs: Applied Eno's patch from #78660
12163
12164 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12165
12166         * Form.cs (ScaleCore): We don't want to scale our form if it's
12167           state is minimized or maximized, but we still need to scale our
12168           child windows. Also, added try/finally block to ensure layout
12169           gets reset (Fixes #78697)
12170
12171 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12172
12173         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
12174
12175 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12176
12177         * Form.cs: Fixed c+p error and added check to resize form if minimum
12178           size is bigger than current size (Fixes #78709)
12179
12180 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
12181
12182         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
12183
12184 2006-06-26  Mike Kestner  <mkestner@novell.com>
12185
12186         * ComboBox.cs: only do Keypress handling in the combo when there  
12187         are items in the collection. Fixes #78710.
12188
12189 2006-06-26  Chris Toshok  <toshok@ximian.com>
12190
12191         * Binding.cs: make this work bi-directionally.  also, clear up
12192         other mixups between Push/Pull Data (e.g. we're supposed to pull
12193         data when validating).
12194
12195         * BindingManagerBase.cs: trim some fully qualified collection
12196         types.
12197
12198         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
12199
12200 2006-06-23  Chris Toshok  <toshok@ximian.com>
12201
12202         * PropertyManager.cs: It appears (according to the unit tests)
12203         that PropertyManager doesn't use
12204         PropertyDescriptor.AddValueChanged to track propery value changes
12205         in its datasource, but uses the same scheme as Binding, where it
12206         looks for a <Property>Changed event and binds to it.
12207
12208         Also, according to the docs, IsSuspended always returns false for
12209         a property manager with a non-null datasource.
12210
12211 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
12212
12213         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
12214           need to update the actual DialogResult. (Fixes #78613)
12215
12216 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
12217
12218         * Form.cs (ShowDialog): Release any captures before running the
12219           new message pump (fixes #78680)
12220
12221 2006-06-22  Mike Kestner  <mkestner@novell.com>
12222
12223         * ListView.cs: Layout column widths properly in details mode even 
12224         if HeaderStyle.None is set.  Fixes #78691.
12225
12226 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
12227
12228         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
12229
12230 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
12231
12232         * Control.cs (ContainsFocus): Using new driver method to get focused
12233           window, instead of trying to use internal tracking var, which can
12234           recursion issues (Fixes #78685)
12235         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
12236           XplatUIWin32.cs: Added GetFocus method to return focused window
12237
12238 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12239
12240         * ColorDialog.cs: when the mouse button is pressed inside the color
12241         matrix, don't let the cursor move out of it until the button is
12242         released, which is the behavior on windows. Changed 'colours' by
12243         'colors' to use the same word consistently.
12244
12245 2006-06-21  Chris Toshok  <toshok@ximian.com>
12246
12247         * DataGrid.cs: add in some basic navigation stuff (navigating to a
12248         child relation and back, using a stack).  Also, remove
12249         GetDataSource and the code that calls it - it's not needed.  Also,
12250         track CurrencyManager.ListName's removal.
12251
12252 2006-06-21  Chris Toshok  <toshok@ximian.com>
12253
12254         * CurrencyManager.cs: push some of the original type checking from
12255         BindingContext.CreateBindingManager to here, and remove some of
12256         the finalType stuff.  Need more tests to make sure I've got the
12257         ListName part right, and we might need more in SetDataSource.
12258
12259         * PropertyManager.cs: add a ctor that takes just the datasource,
12260         and no property name.  Make SetDataSource work with a null
12261         property_name, and make Current return the data_source if the
12262         property descriptor is null.  this makes 'string foo = "hi";
12263         BindingContext[foo].Current' return "hi" as it should.
12264
12265         * RelatedCurrencyManager.cs: make this code more generic - there's
12266         no reason the parent manager has to be CurrencyManager, and
12267         there's no reason to pass the DataRelation.  It suffices to use a
12268         BindingManagerBase and PropetyDescriptor.
12269
12270         * RelatedPropertyManager.cs: make a similar change here.
12271         
12272         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
12273         flower I knew it could be.
12274
12275 2006-06-20  Chris Toshok  <toshok@ximian.com>
12276
12277         * PropertyManager.cs: the PropertyChangedHandler is invoked when
12278         data in the source has changed and we need to update the control,
12279         so s/PullData/PushData.
12280
12281         * CurrencyManager.cs: Refresh is meant to update the control from
12282         data in the datasource.  So, s/PullData/PushData.
12283
12284         * BindingContext.cs: add more ugliness (we weren't handling the
12285         case where data_source = DataTable and data_member = column_name).
12286
12287         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
12288         from the perspective of the datasource.  PullData pulls from the
12289         control, PushData pushes to the control.
12290
12291 2006-06-20  Chris Toshok  <toshok@ximian.com>
12292
12293         * BindingContext.cs: rewrite the CreateBindingManager code to
12294         handle navigation paths more or less properly.  This could
12295         definitely stand some more work, in particular to push the
12296         recursion up to the toplevel.  But that relies on fixes in other
12297         places (System.Data comes to mind).
12298
12299         Also, move to a flat hashtable (and encode the twolevel nature of
12300         the dictionary into the hash key).  This lets us implement the
12301         IEnumerable.GetEnumerator method.
12302
12303         * RelatedCurrencyManager.cs: new class.  Update our view based on
12304         our relation and our parent CurrencyManager's position.
12305
12306         * CurrencyManager.cs: split out some logic from the ctor into
12307         SetView, so it can be called from the new RelatedCurrencyManager
12308         subclass.
12309
12310         * RelatedPropertyManager.cs: new class.  Update our datasource
12311         based on the position of our parent CurrencyManager.
12312
12313         * PropertyManager.cs: split out some logic from the ctor into
12314         SetDataSource, so it can be called from the new RelatedDataSource
12315         subclass.  Also, make the Current getter return the value
12316         of the PropertyDescriptor, not the data_source.
12317
12318         * Binding.cs: no need to duplicate the string splitting code here.
12319
12320 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12321
12322         * Control.cs:
12323           - set_Enabled: OnEnabledChanged is not called if the inherited state 
12324             of the control is not altered, even though  we might be changing the
12325             internal state of the control (#78458)
12326           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
12327             OnEnabledChanged, to allow easy altering of any child window state
12328           - OnEnabledChanged: Added code to enable/disable driver window state
12329           - OnParentEnabledChanged: Instead of firing the event, call 
12330             OnEnabledChanged, which will fire the event and also a) set driver
12331             window state and pass the enabled state to any grandchildren (#78458)
12332
12333 2006-06-19  Jackson Harper  <jackson@ximian.com>
12334
12335         * InternalWindowManager.cs: We don't set the cursor explicitly
12336         thats done via the response to NCHITTESTs.
12337         - Don't need to adjust for titlebar heights anymore, the
12338         coordinates are coming in the correct coordinates now (see peters
12339         last patch).
12340
12341
12342 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12343
12344         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
12345           being translated relative to whole window, instead of client window.
12346           That caused broken offsets on mouseclick (and caused gas for our
12347           InternalWindowManager)
12348
12349 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12350
12351         * TextControl.cs:
12352           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
12353           - Undo(): Added replay of cursor move on DeleteChars action; added
12354             calling Undo() again if a recorded cursor move is invalid (to
12355             ensure that some action is performed on Undo)
12356         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
12357
12358 2006-06-16  Jackson Harper  <jackson@ximian.com>
12359
12360         * MdiClient.cs: Instead of just sizing maximized windows when
12361         there is a resize we also have to adjust the Y of minimized
12362         windows, so they stay pinned to the bottom of the mdi container.
12363         - Eliminate separate tracking of the active control, we can just
12364         get this from the controls collection.
12365         - Paint the decorations for the newly activated titlebar so we get
12366         a pretty blue bar.
12367         * InternalWindowManager.cs:
12368         * ThemeWin32Classic.cs: Minimized windows get all three buttons
12369         even if they are a tool window.
12370         
12371 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12372
12373         * TextControl.cs (Undo): Handle non-existent cursor locations in the
12374           undo buffer, these can happen when text was deleted and the cursor
12375           was recorded first. Since we will also have a recorded cursor
12376           after the delete this is not an issue. (Fixes #78651)
12377
12378 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
12379
12380         * AccessibleObject.cs: Remove dependence on Control.is_selected;
12381           instead properly track control states internally (allows us to
12382           remove is_selected from Control)
12383
12384 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12385
12386         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
12387         whose width is not a multiple of 8.
12388
12389 2006-06-13  Jackson Harper  <jackson@ximian.com>
12390
12391         * MdiClient.cs:  Only maximize the next child if the current one
12392         is maximized.
12393
12394 2006-06-13  Chris Toshok  <toshok@ximian.com>
12395
12396         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
12397         modified.  Also, guard against grid or grid_drawing being null in
12398         Invalidate.
12399
12400         * DataGrid.cs: Reformat tons of getters/setters.  In the
12401         DataMember setter, just call SetNewDataSource instead of
12402         duplicating some of its functionality.  In SetNewDataSource, don't
12403         check ListManager for null, since the property getter creates the
12404         object if needed.
12405
12406         * DataGridTableStyle.cs: don't set TableStyle or call
12407         SetDataGridInternal on the column here, it's done in
12408         GridColumnStylesCollection.Add.
12409
12410         * GridColumnStylesCollection.cs: fix all the explicit interface
12411         implementations to just call our methods.  Nuke AddInternal() and
12412         move the body of it to Add().  Also, add a call to
12413         column.SetDataGridInternal to Add().
12414
12415         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
12416         base()+duplicate code.  Also, use the Format property instead of
12417         format to generate an Invalidate ala MS.  Lastly, create the
12418         textbox here, unconditionally.
12419         (set_Format): call Invalidate.
12420         (get_TextBox): no need to call EnsureTextBox.
12421         (Commit): remove the message box.
12422         (Edit) remove the call to EnsureTextBox.
12423         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
12424         (EnterNullValue): no need to check textbox for null.
12425         (HideEditBox): no need to check textbox for null.
12426         (SetDataGridInColumn): add the textbox to the grid's controls.
12427         (EnsureTextBox): nuke.
12428         
12429 2006-06-13  Jackson Harper  <jackson@ximian.com>
12430
12431         * MdiWindowManager.cs: Hook up to the maximized menus paint event
12432         and redraw the buttons when needed. Unhook when the window is
12433         unmaximized.
12434         * MainMenu.cs: Add an internal Paint event, the mdi window manager
12435         needs this so that it can redraw its buttons when the menu is
12436         repainted.
12437         * InternalWindowManager.cs:
12438         * Form.cs: The method order has changed for DrawMaximizedButtons,
12439         so that it can be a PaintEventHandler.
12440         
12441 2006-06-13  Jackson Harper  <jackson@ximian.com>
12442
12443         * MdiClient.cs: When we close a maximized mdi window, the next mdi
12444         window is activated and maximized, even if it wasn't before.
12445         - When  a new window is activated repaint the decorations of the
12446         old one, so that it no longer has the Active "look" (the blue
12447         titlebar).
12448         * InternalWindowManager.cs: Open up CreateButtons to base classes
12449         so they can recreate the buttons on state changes.
12450         - If a window is maximized give it all three buttons
12451         * MdiWindowManager.cs: Create the titlebar buttons when the state
12452         is changed, this is needed because a toolwindow will not have all
12453         three buttons until it is maximized.
12454
12455 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
12456
12457         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
12458           Fixed bug #78609.
12459
12460 2006-06-12  Jackson Harper  <jackson@ximian.com>
12461
12462         * KeysConverter.cs: Make sure we handle the Ctrl special case
12463         if its the only key.
12464         
12465 2006-06-12  Jackson Harper  <jackson@ximian.com>
12466
12467         * Theme.cs: Add a method to get the size of a managed window
12468         toolbar button.
12469         * InternalWindowManager.cs: Remove the ButtonSize property, this
12470         should be retrieved from the theme.
12471         * MdiWindowManager.cs: Get the button size from the theme
12472         * ThemeWin32Classic.cs: Make the method to get the managed window
12473         titlebar button size public.
12474         - Handle the different button sizes of maximized toolwindows
12475         (should match any maximized window).
12476         - Get the titlebar height from the theme, not the WM (which gets
12477         it from the theme).
12478
12479 2006-06-12  Jackson Harper  <jackson@ximian.com>
12480
12481         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
12482         event down to the mdi window manager.
12483         - Expose some extra stuff to base classes
12484         - Make sure to end the Capture on an NC Mouse up, so that we can
12485         get double clicks properly, and the sizing doens't stick.
12486         - When doing PointToClient contain it in the workable desktop
12487         area, this prevents windows from changing size when the cursor is
12488         pulled outside of the working area while sizing.
12489         * MdiWindowManager.cs: When we get a double click maximize the
12490         window.
12491         - Reset the cursor after handling mode changes.
12492
12493 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
12494
12495         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
12496           current desktop, instead of just assuming a 0, 0 origin. This
12497           is needed for our internal window manager, to know the top
12498           margin of the desktop
12499
12500 2006-06-12  Chris Toshok  <toshok@ximian.com>
12501
12502         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
12503         we need this to get rid of the selected background in the bool
12504         column.
12505         (CancelEditing): move the ConcedeFocus call to above the Abort
12506         call.  Also, set is_changing to false and invalidate the row
12507         header if we were changing before.
12508         (ProcessKeyPreviewInternal): remove, since noone outside this
12509         class calls it anymore.  Roll the code into ProcessKeyPreview.
12510         (EndEdit): remove the internal version.
12511         (InvalidateCurrentRowHeader): make private.
12512
12513         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
12514         Keys.Escape handling (and with it the last call to
12515         DataGrid.EndEdit from outside the class.)
12516
12517
12518 2006-06-12  Chris Toshok  <toshok@ximian.com>
12519
12520         * DataGridTextBox.cs (.ctor): isedit defaults to false.
12521         (OnKeyPress): set isedit to true.
12522         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
12523         already handled by the grid.
12524
12525         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
12526         right.  ugh.
12527         (set_DataSource): SetDataSource always returns true, so stop
12528         putting it in an if statement.
12529         (EndEdit): get rid of some {}'s
12530         (ProcessGridKey): return true in case Keys.Escape.
12531         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
12532         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
12533         PositionChanged, stopped connecting to CurrentChanged.
12534         (GetDataSource): simplify this a bunch.
12535         (SetDataSource): change return type from bool to void.
12536         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
12537         to this, and make sure we don't set ListManager.Position inside
12538         set_CurrentCell.
12539         (OnListManagerItemChanged): if we're passed an actual index,
12540         redraw that row.
12541
12542         * CurrencyManager.cs (set_Position): don't call PullData here.
12543
12544 2006-06-09  Jackson Harper  <jackson@ximian.com>
12545
12546         * TreeNode.cs:  Recalculate the visible order before doing the
12547         Expand/Collapse Below calls, because those calls generate an
12548         expose.
12549         - Reduce calls to the TreeView property, which is mildly expensive
12550         by using a local var.
12551         * Form.cs: Layout the MDI child windows when creating the parent
12552         form.
12553         - Don't use the internal constructor anymore
12554         * MdiClient.cs: use the parent form width/height (if available)
12555         when laying out the child windows, we do this because the
12556         mdiclient isn't docked yet when the initial layout is done.
12557         - Don't need an internal constructor anymore.
12558
12559 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12560
12561         * FileDialog.cs: handle access errors when trying to create a folder
12562         or changing to a directory. No need to initialize out parameters.
12563
12564 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12565
12566         * FileDialog.cs: Append a number when creating a new folder if the
12567           folder already exists (use parenthesis instead of square brackets)
12568
12569 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12570
12571         * FileDialog.cs:
12572           - Disabled registry support for windows and added better registry
12573             error checking for other systems (need to investigate why it
12574             works perfectly on my system)
12575           - If a folder already exist show an error MessageBox instead of
12576             trying to create an indexed name.
12577           - Fixed a non intentional typo.
12578
12579 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12580
12581         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
12582
12583 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12584
12585         * FileDialog.cs: When creating a new folder don't crash if the
12586           folder already exists.
12587
12588 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12589
12590         * FileDialog.cs: Allmost a complete rewrite.
12591           - added a "virtual" file system that handles the differences
12592             between unix and windows file systems (especially the directory
12593             structure). Moved most of the directory and file handling code
12594             into the vfs.
12595             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
12596             UnixFileSystem and FSEntry.
12597           - Recently used folder/directory, size, location and used file names
12598             (file name ComboBox) are now stored in the registry and get read
12599             before the dialog shows up (fixes part 6 of bug #78446).
12600           - Creation of new folders/directories is now possible (context menu
12601             or ToolBar). Added TextEntryDialog for this that fills in the gap
12602             until ListView.LabelEdit works.
12603           - Fixed cursor handling (bug #78527) and focus handling for
12604             PopupButtonPanel
12605           - Various "Search in" ComboBox enhancements. The content of the
12606             dropdown listbox now almost matches ms.
12607           - Changed the behaviour when the user switches to SpecialFolder
12608             Recent to show the ListView in View.Details.
12609           - Beside using the ToolBar to change the View property of the
12610             file ListView it is now possible to use the context menu too.
12611
12612 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12613
12614         * ComboBox.cs: Don't create a new ObjectCollection when an item
12615           gets inserted. Just insert the item in the existing object_items
12616           ArrayList.
12617
12618 2006-06-08  Jackson Harper  <jackson@ximian.com>
12619
12620         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
12621         that the treeview and root node checks are done also, this fixes a
12622         regression i caused in the unit tests.
12623
12624 2006-06-07  Wade Berrier <wberrier@novell.com> 
12625
12626         * RichTextBox.cs: More ISO8859-1 -> unicode
12627
12628 2006-06-07  Mike Kestner  <mkestner@novell.com>
12629
12630         * ComboBox.cs : use items to hold highlight/selection so that
12631         collection insertions don't require synchronization.
12632
12633 2006-06-07  Jackson Harper  <jackson@ximian.com>
12634
12635         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
12636         routine.  We now always keep the sized edge at the cursor instead
12637         of computing movement and adjusting rects.  There is one buglet
12638         with this method though when the cursor is moved over area that
12639         the window can not expand too (such as the toolbars on the desktop).
12640
12641 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12642
12643         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
12644         here. Fixes crash on startup in AlbumSurfer.
12645
12646 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
12647
12648         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
12649           values
12650
12651 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12652
12653         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
12654         statement to avoid calling XNextEvent which will block if another thread
12655         took the event that we were expecting. Fixes bug #78605.
12656
12657 2006-06-07  Mike Kestner  <mkestner@novell.com>
12658
12659         * ListView.cs : isolated checkbox clicking from the selection logic.
12660         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
12661
12662 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12663
12664         * Form.cs: Check that the value passed to Form.DialogResult
12665         is a valid enum value.
12666
12667 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12668
12669         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
12670         Computer'. Clicking it in the network view goes to 'My Computer'.
12671         Added CIFS filesystem type. Display the mount point of filesystems.
12672         Avoid duplicate mount points (happens for me with CIFS);
12673
12674 2006-06-06  Jackson Harper  <jackson@ximian.com>
12675
12676         * InternalWindowManager.cs: Draw the maximized windows buttons
12677         when resizing.
12678
12679 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12680
12681         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
12682         all other dialogs. Fixes bug #78585.
12683
12684 2006-06-06  Mike Kestner  <mkestner@novell.com>
12685
12686         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
12687         Only invalidate checkbox on checkstate changes to avoid flicker.
12688         * ListBox.cs : avoid unselect/select when clicking selected item.
12689         avoid reselection flicker for already multiselected items.
12690         Fixes #78382.
12691
12692 2006-06-06  Jackson Harper  <jackson@ximian.com>
12693
12694         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
12695         the parent form so that the menu is removed if needed.
12696
12697 2006-06-06  Mike Kestner  <mkestner@novell.com>
12698
12699         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
12700         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
12701
12702 2006-06-06  Mike Kestner  <mkestner@novell.com>
12703
12704         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
12705
12706
12707 2006-06-06  Jackson Harper  <jackson@ximian.com>
12708
12709         * Control.cs: Use the property (instead of the field) to get the
12710         default cursor so it is instantiated correctly.
12711         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
12712         resizes so we need to manually repaint the window decorations here.
12713         - Set the titlebar button locations as soon as they are created,
12714         otherwise they are not set correctly on win32.
12715         
12716 2006-06-06  Chris Toshok  <toshok@ximian.com>
12717
12718         * CurrencyManager.cs (set_Position): call PullData before
12719         OnCurrentChanged.
12720         (AddNew): after calling IBindingList.AddNew, update our
12721         listposition, and call OnCurrentChanged/OnPositionChanged (without
12722         calling PullData).
12723         (OnCurrentChanged): remove the call to PullData from here.
12724         (OnItemChanged): remove the call to PushData from here.
12725         (OnPositionChanged): change the test from == null to != null to
12726         match the other methods.
12727         (ListChangedHandler): the grossest part of the patch.  Implement
12728         this such that it passes the unit tests in CurrencyManagerTest and
12729         the output more or less matches that of MS's implementation.
12730  
12731 2006-06-06  Mike Kestner  <mkestner@novell.com>
12732
12733         * ListView.cs : only update check state on single click.
12734         * ThemeWin32Classic.cs : fix focus drawing for details view without
12735         fullrowselect.  Fixes #78454.
12736         * XplatUIX11.cs : fix for double click emission.
12737
12738 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
12739
12740         * PropertyGridView.cs : Applied Atsushi's patch to fix
12741         font dialog bug  (#78197).
12742
12743 2006-06-05  Jackson Harper  <jackson@ximian.com>
12744
12745         * TreeNode.cs: Compute the next node for expanding/collapsing
12746         correctly. We now factor in nodes without a NextNode
12747         correctly. (Fixes somes cases in nunit-gui).
12748         * InternalWindowManager.cs: Set the bounds when updating the
12749         virtual position of a tool window.
12750         
12751 2006-06-05  Chris Toshok  <toshok@ximian.com>
12752
12753         * DataGrid.cs: rename cached_currencymgr to list_manager.
12754         (set_CurrentCell): move SetCurrentCell code here, and clean it up
12755         some.
12756         (CurrentRow, CurrentColumn): single accessors so we can make the
12757         cursor movement code a lot easier to understand.
12758         (CurrentRowIndex): implement this in terms of CurrentRow.
12759         (BeginEdit): clean this up a bit.
12760         (CancelEditing): sort out the is_editing/is_changing/is_adding
12761         stuff a little.
12762         (EndEdit): minor changes.
12763         (OnKeyDown): add a comment about a (most likely) unnecessary
12764         check.
12765         (OnMouseDown): cancel editing when we click on a row header.  And
12766         use the CurrentRow setter, not CurrentCell.
12767         (ProcessDialogKey): directly call ProcessGridKey.
12768         (UpdateSelectionAfterCursorMove): factor out this common block of
12769         code (it's used everywhere that we move the cursor by updating row
12770         or column).
12771         (ProcessGridKey): pretty substantial overhaul.  Use the
12772         CurrentRow/CurrentColumn properties to make the code a lot more
12773         readable.  Only use the CurrentCell property when we have to
12774         modify both row and column at once.  Tab behavior is still broken,
12775         and Delete is untested.
12776         (Select): if we have no selected rows, set selection_start to
12777         @row.
12778         (EditCurrentCell): rename EditCell this.  It was only ever invoked
12779         with CurrentCell as the arg, so drop the arg and rename it.
12780
12781         * DataGridColumnStyle.cs: clean up the constructors a little, and
12782         drop CommonConstructor().
12783
12784         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
12785         actually get notified when the user hits it.
12786         (ProcessKeyMessage): *substantially* simplify this method.
12787         There's no reason (that I can see) for the textbox to be making
12788         calls into the datagrid at all.  Remove all of them but the ones
12789         for Enter handling.  those will take some more work.
12790
12791         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
12792         calling HideEditBox.
12793         (HideEditBox): if we have an active textbox, render it invisible
12794         without causing a re-layout of the datagrid.
12795
12796 2006-06-05  Mike Kestner  <mkestner@novell.com>
12797
12798         * ListView.cs : fix NRE crasher when focuseditem is cleared by
12799         collection changes by resetting it to Items[0].  Fixes #78587.
12800
12801 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12802
12803         * MessageBox.cs: if the height of the text is larger than the icon_size,
12804         use that. Fixes bug #78575.
12805
12806 2006-06-05  Jackson Harper  <jackson@ximian.com>
12807
12808         * TreeView.cs: Fix line drawing when scrolling.  To do this each
12809         node is basically responsible for drawing its entire horizontal
12810         area.  When drawing a node it draws its parent node lines if
12811         needed.
12812         - Adjust the clip area to the viewport rectangle
12813         - Fix Left/Right key handling to match MS. (It expand/collapses
12814         and moves to parents/first child but does not move selection to
12815         sibling nodes).
12816         - Fix SetTop to work with new bound calculation code
12817         - When scrollbars are no longer needed we need to reset scrolling
12818         vars and recalculate the visible order so the redraw is correct
12819         * TreeNode.cs: We can't expand/collapse nodes with no children.
12820
12821 2006-06-03  John Luke  <john.luke@gmail.com> 
12822
12823         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
12824         so the colors work without dev packages
12825         
12826 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
12827
12828         * Control.cs 
12829           - Select: Implemented to just use activate. Seems to match MS 
12830             behaviour closest. Documented to only do actual control walking 
12831             based on it's parameters if in a container control so I moved 
12832             the code there.
12833           - Removed selection check logic from our internal Select() method
12834         * ContainerControl.cs:
12835           - Select: Moved selection logic from Control here, since MS documents
12836             that containers obey the bool arguments. No longer calling base
12837
12838 2006-06-02  Jackson Harper  <jackson@ximian.com>
12839
12840         * TreeView.cs: If the selected node isn't changed when we get
12841         focus update the previously selected node so that we see the
12842         selection box.
12843
12844 2006-06-02  Mike Kestner  <mkestner@novell.com>
12845
12846         * ComboBox.cs: restructure grab and general mouse event handling.
12847         Make the composite control raise mouse events like it was a single
12848         control for leaves/enters/motion/up/down events.  fix dropdown list
12849         coordinate mangling and refactor it into the scrollbar subclass to
12850         reduce code duplication.  Fixes #78282 #78361 and #78457.
12851
12852 2006-06-02  Mike Kestner  <mkestner@novell.com>
12853
12854         * ScrollBar.cs: remove Capture setting/clearing, as it happens
12855         automatically in the Control.WndProc.
12856
12857 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12858
12859         * FileDialog.cs: fix crash when running SharpChess, which sets the
12860         FilterIndex to 2 with only one Filter.
12861
12862 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12863
12864         * ToolBar.cs: add SizeSpecified property.
12865         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
12866         try to figure out our real size, otherwise fallback to what the
12867         container says.
12868
12869 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
12870
12871         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
12872         * Control.cs (WndProc): MS always calls the DefWndProc to pass
12873           up the event
12874
12875 2006-06-01  Mike Kestner  <mkestner@novell.com>
12876
12877         * ListView.cs: revamp the focus management in ListView.  It still
12878         causes churn of LostFocus/GotFocus emissions on clicks, but it's
12879         better than not handling focus at all.  Will revisit when pdb feels
12880         the general focus handling is solid.  Fixes #78526.
12881
12882 2006-06-01  Jackson Harper  <jackson@ximian.com>
12883
12884         * TreeView.cs: Set the default border style in the constructor.
12885         - Move painting to use OnPaintInternal instead of capturing
12886         WM_PAINT, this is the correct way of doing things
12887         - UpdateBelow shouldn't invalidate the scrollbar area
12888         - Cap the top on update below in case the node was above the top
12889         of the viewport rectangle.
12890         - ExpandBelow and Collapse below need to obey Begin/End Update.
12891         * TreeNode.cs: Make is_expanded internal so the treenode
12892         collection can change it without firing the whole event chain.
12893         * TreeNodeCollection.cs: When clearing all the child nodes make
12894         sure to recalc the visible order.
12895         - Improve algo for remove the top node
12896
12897 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
12898
12899         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
12900           SendMessage directly calling window procedures, which in turn might
12901           call SetFocus()
12902
12903 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
12904
12905         * Control.cs: Don't handle WM_SETFOCUS if the same window already
12906           has focus (works around X11 sending a FocusIn after our SetFocus)
12907         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
12908
12909 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
12910
12911         * Mime.cs: Fix for the NET_2_0 build.
12912           NameValueCollection needs StringComparer now.
12913
12914 2006-05-31  Chris Toshok  <toshok@ximian.com>
12915
12916         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
12917         return (via an out parameter) the starting X of the column.
12918         (UpdateVisibleColumn): track change to FromPixelToColumn.
12919         (HitTest): add a ColumnResize case here.
12920         (DrawResizeLine): new function, probably poorly named.
12921
12922         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
12923         only need to keep one reference.
12924         (set_ListManager): same.
12925         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
12926         Also, add support for HitTestType.ColumnResize.
12927         (OnMouseMove): add column resize behavior here, and change the
12928         cursor to the correct one as we move around the datagrid.
12929         (OnMouseUp): terminate the column resize if we're resizing.
12930         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
12931         for the current cell.
12932         (ConnectListManagerEvents): use cached_currencymgr.
12933         (DisconnectListManagerEvents): fill this in, using
12934         cached_currencymgr.
12935         (SetCurrentCell): remove cached_currencymgr_events handling.
12936         (SetDataMember): only call DisconnectListManagerEvents if
12937         cached_currencymgr is != null.
12938         (SetDataSource): same.
12939         (OnListManagerCurrentChanged): cached_currencymgr_events ->
12940         cached_currencymgr.
12941
12942 2006-05-31  Jackson Harper  <jackson@ximian.com>
12943
12944         * BindingManagerBase.cs: Remove somedebug code that creeped into
12945         SVN.
12946         * TreeNode.cs: We get the indent level dynamically right now, so
12947         don't track it as a member.
12948         * TreeNodeCollection.cs: Make sure all nodes added to the list
12949         have parents, treeviews/topnodes setup properly.
12950         - Don't attempt to track indent level.
12951
12952 2006-05-30  Jackson Harper  <jackson@ximian.com>
12953
12954         * BindingContext.cs: Create the currency manager tables here.
12955         This allows us to more easily create null tables (when bad data
12956         members are used), and more easily create related currency
12957         managers.
12958         * CurrencyManager.cs: All the table creation stuff is done by the
12959         binding context now.
12960         - Current should throw an exception if listposition is -1.
12961         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
12962         been bound yet.
12963
12964 2006-05-30  Mike Kestner  <mkestner@novell.com>
12965
12966         * ListView.cs: allow reexpansion of zero-width column headers.
12967         Fixes #78528.
12968
12969 2006-05-28  Chris Toshok  <toshok@ximian.com>
12970
12971         * CurrencyManager.cs (get_Current): after the late binding
12972         listposition = -1 fix, we need to guard against it here and return
12973         null, otherwise we raise an exception (which is swallowed
12974         elsewhere, and breaks datagrid databinding.)
12975
12976 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
12977
12978         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
12979           than WM_SYSKEY, don't throw if get something unexpected (#78507)
12980
12981 2006-05-26  Jackson Harper  <jackson@ximian.com>
12982
12983         * ControlPaint.cs:
12984         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
12985         values, it's faster and it's all we care about (we don't care if
12986         the names aren't equal).
12987         * KeyboardLayouts.cs: Eliminate some dead code.
12988         - Lazy init things
12989         * X11Keyboard.cs: Lazy init keyboard detection.
12990         - Cleanup access modifiers a little.
12991
12992 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
12993
12994         * XplatUIX11.cs: Once again, attempting to get layout just right.
12995
12996 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
12997
12998         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
12999           the sizes of each link section, that will result in sizes that
13000           match DrawString's layout (Fixes #78391)
13001
13002 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
13003
13004         * FileDialog.cs: If AddExtension property is true autocomplete the
13005           extensions in SaveFileDialog correctly. Fixes bug #78453.
13006           Set MyNetwork and MyComputer to "C:\" for windows. This should
13007           fix part 8 of bug #78446 for now.
13008
13009 2006-05-26  Chris Toshok  <toshok@ximian.com>
13010
13011         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
13012         invalidate the current row header if we need to, but presumably
13013         we'll invalidate the row corrsponding to the bounds or
13014         editingControl.
13015         (GridHScrolled): switch back to this method, as it's part of the
13016         public api.  *sigh*.
13017         (GridVScrolled): same.
13018         (OnMouseWheel): hack up something that more or less works.  Call
13019         GridHScrolled/GridVScrolled directly, instead of duplicating much
13020         of their code here.
13021         (EnsureCellVisibility): reinstate a bunch of this code, since we
13022         can't just set the scrollbar Value and expect to do all the work
13023         in the ValueChanged handler.  Also, Call Update() after scrolling
13024         in one direction so the other XplatX11.ScrollWindow call has the
13025         proper stuff in the proper places.
13026         (EditCell): set is_editing to true before calling .Edit.
13027
13028         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
13029         don't bother comparing first.
13030         (OnKeyPress): call grid.ColumnStartedEditing before calling
13031         base.OnKeyPress.  this will set is_changing and invalidate the row
13032         header if necessary.
13033         (ProcessKeyMessage): for WM_CHAR messages, call
13034         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
13035         and WM_KEYDOWN.
13036         
13037         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
13038         it's done in the DataGrid.
13039         (NextState): call grid.ColumnStartedEditing, which takes care of
13040         invalidating the row header (and setting is_changing).
13041
13042         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
13043         here.  it's done in the DataGrid.
13044
13045 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13046
13047         * Control.cs: allow changing the cursor when the mouse position is
13048         out of bounds but Capture is set.
13049         * LinkLabel.cs: handle the case when the mouse button is pressed on the
13050         linklabel but released somewhere else.
13051
13052 2006-05-25  Jackson Harper  <jackson@ximian.com>
13053
13054         * TreeView.cs: When we get focus if there is no selected node make
13055         it the top node
13056         - Remove some uneeded setup code from Draw.
13057         * TreeNodeCollection.cs: If the tree doesn't have a top node when
13058         a new node is inserted make the new node the top.
13059         * XplatUIX11.cs:
13060         * Timer.cs: Use Utc time so that no local time zone stuff needs to
13061         be used (should be faster).
13062         
13063 2006-05-25  Chris Toshok  <toshok@ximian.com>
13064
13065         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
13066         problem with the last commit.
13067
13068 2006-05-25  Chris Toshok  <toshok@ximian.com>
13069
13070         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
13071         need the invalidate call here, while scrolling right-to-left via
13072         the left arrow key (i.e. moving the editing cell while scrolling).
13073
13074         * DataGrid.cs (.ctor): remove the initialization of
13075         ctrl_pressed/shift_pressed.  We no longer track them using key
13076         up/down handlers, but by using Control.ModifierKeys.  Also, switch
13077         to using ValueChanged handlers on the scrollbars instead of
13078         Scrolled event handlers.  This simplifies a bunch of the scrolling
13079         code.
13080         (GridHValueChanged): rename from GridHScrolled, and change it to
13081         work with the new event args.
13082         (GridVValueChanged): same.
13083         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
13084         (OnMouseWheel): actually scroll the datagrid.  Don't change the
13085         selected cell.
13086         (ProcessGridKey): correct all the keyboard navigation stuff I
13087         could find.  Ctrl up/down/left/right/home/end work now.
13088         (EnsureCellVisibility): correct method name spelling.  Also,
13089         simplify this a touch by not explicitly calling the
13090         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
13091         scrollbar value.
13092         (OnKeyUpDG): no need for this method now.
13093         
13094 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13095
13096         * LinkLabel.cs: display the OverrideCursor when hovering the label.
13097         Fixes bug #78392.
13098
13099 2006-05-25  Chris Toshok  <toshok@ximian.com>
13100
13101         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
13102         r61019.
13103
13104 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13105
13106         * Application.cs: Moved setting of is_modal and closing to before
13107           we create the control, to allow the event handlers called as a
13108           result of creation affect closing. Also removed Gonzalo's previous
13109           change to setting DialogResult, the behaviour has been moved to 
13110           Form.ShowDialog()
13111         * Form.cs: 
13112           - ShowDialog(): Removed explicit creation of the form, let RunLoop
13113             handle it instead
13114           - ShowDialog(): If no dialog result is set, we need to return Cancel
13115           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
13116             the close is cancelled
13117
13118 2006-05-25  Jackson Harper  <jackson@ximian.com>
13119
13120         * StatusBar.cs: We only need to update the sizes of the other
13121         panels when we have auto size contents.  Also we are only updating
13122         the contents of the panel, not the borders, so compensate for the
13123         border width (TODO: get this width from the theme somehow).
13124         * TreeView.cs: Scrollable is true by default
13125         - Use invalidate instead of refresh where needed
13126         - Factor the scrollable value into scrollbar updating
13127         - Update the scrollbars if the Scrollable property is altered
13128         - Update the selected node if its ImageIndex is changed
13129         - Handle null nodes in UpdateNode (mainly so we don't have to
13130         check if selected is null when updating it
13131         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
13132         are factored into the visible count
13133         - Use VisibleCount for clarity in the code
13134         - When the font is changed we need to recurse through all the
13135         nodes and invalidate their sizes
13136         
13137 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13138
13139         * Application.cs: set the DialogResult to fixed when the main form is
13140         hidden or destroyed while being modal.
13141
13142 2006-05-25  Miguel de Icaza  <miguel@novell.com>
13143
13144         * Theme.cs: Use Tangoified messagebox icons. 
13145
13146         (GetSizedResourceImage): Also cope with width = 0 and do not
13147         trigger a warning in that case (0 means "give me your icon from
13148         the resouce, no special size needed).
13149
13150 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13151
13152         * Application.cs: Leave runloop if the the main modal form is 
13153           hidden (fixes #78484)
13154
13155 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
13156
13157         * BindingContext.cs : reject null datasource in Contains() and
13158           Item[].
13159         * CurrencyManager.cs : check data_member validity when data_source
13160           is dataset. When it is late binding, the initial position is -1.
13161
13162 2006-05-24  Jackson Harper  <jackson@ximian.com>
13163
13164         * TreeNodeCollection.cs: Dont't recalculate the visible order on
13165         inserted nodes that aren't visible.  This changes the
13166         max_visible_order which confuses scrollbar settings.
13167         - Use the enumerator to get the prev node instead of duplicating
13168         code.
13169         * TreeView.cs: Use new method for setting scrollbar values
13170         - Don't set the bounds every time the scrollbar is updated
13171         - When updating below the root node use an invalidate instead of a
13172         refresh to prevent the child controls (scrollbars) from being
13173         refreshed. (UpdateBelow still needs to be reworked anyways).
13174         - Reenable SetBottom now that visible orders are set correctly,
13175         added some debug code incase we ever get bad values there again.
13176         - Set the scrollbar max to 2 less then the max value, this
13177         compensates for the max value being one above the node count, and
13178         for scrollbars adding one extra "notch".
13179         - When drawing image nodes if there is an imagelist we draw the
13180         first image in the list if the supplied image index is out of the
13181         image list's bounds.
13182         
13183 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13184
13185         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
13186           we receive a size change from the WM (Fixes #78503)
13187
13188 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
13189
13190         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
13191           rectangle (Fixes #78501)
13192
13193 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13194
13195         * ButtonBase.cs: 
13196           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
13197             as a bitfield.
13198           - Fixed MouseMove to no longer switch pressed state unless the left
13199             mouse button is pressed. Atsushi provided the original patch (#78485)
13200           
13201 2006-05-24  Jackson Harper  <jackson@ximian.com>
13202
13203         * ScrollBar.cs: New internal methods that allow us to change a
13204         couple values on the scrollbar (the most common case is maximum
13205         and large change) without getting multiple invalidates.
13206
13207 2006-05-24  Chris Toshok  <toshok@ximian.com>
13208
13209         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
13210         (Edit): save off the original state in oldState, and set
13211         grid.is_editing to true.
13212         (OnKeyDown): abort editing if escape is pressed.  also, call
13213         NextState if space is pressed.
13214         (OnMouseDown): call NextState.
13215         (NextState): factor out shared code from OnKeyDown and OnMouseDown
13216         here.  Also, only invalidate the row header once (on the initial
13217         is_changing switch) to save on redraws.
13218
13219 2006-05-24  Chris Toshok  <toshok@ximian.com>
13220
13221         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
13222         if the value in the cell is different than it was before.  This
13223         keeps us from triggering a layout when we move around a datarid
13224         with a highlighted cell.
13225         (Edit): suspend layout when creating/positining the text box, and
13226         resume passing false so we don't ever actually re-layout.
13227         (ReleaseHostedControl): same.
13228         (EnsureTextBox): reformat slightly, and set WordWrap to false.
13229
13230         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
13231         control-key sequences should go to the datagrid - remove that
13232         lock.  Also, modify the conditions under which we move between
13233         cells when moving the cursor within a cell, and remove the "this"
13234         and "base" from field accesses.  We weren't even consistent, given
13235         they all were in the base class.
13236
13237 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
13238
13239         * Binding.cs : (.ctor)
13240           An obvious NRE fix for BindingTest.CtorNullTest().
13241
13242 2006-05-23  Chris Toshok  <toshok@ximian.com>
13243
13244         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
13245         them between lines.  This fixes some quirks editing cells in the
13246         datagrid.
13247
13248 2006-05-23  Jackson Harper  <jackson@ximian.com>
13249
13250         * TreeView.cs: Use begin/end update when doing expand/collapse all
13251         so that we don't get flicker on the scrollbar.
13252
13253 2006-05-23  Jackson Harper  <jackson@ximian.com>
13254
13255         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
13256         treenode calculations to be independant of the painting code. To
13257         do this nodes track a visible order which is calculated by the
13258         treeview.
13259         - Call new methods for expanding/collapsing nodes.  These methods
13260         use scrollwindow so we don't have to update everything below the
13261         node.
13262         * TreeView.cs: Refactored drawing and scrolling code.  We don't
13263         need to update nodes when drawing anymore or calculate scrollbar
13264         stuff.
13265         - Added new methods for expanding/collapsing nodes. These methods
13266         use ScrollWindow so as to not have to redraw all the nodes below.
13267         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
13268         we add/remove nodes or sort.
13269         - Handle removing the selected and the top node properly.
13270
13271 2006-05-23  Chris Toshok  <toshok@ximian.com>
13272
13273         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
13274         maybe this should actually happen in the datagrid code?
13275         (EndEdit): no need to invalidate anything, given that
13276         ReleaseHostedControl causes the datagrid to relayout, which
13277         invalidates everything anyway.
13278
13279         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
13280         in SetCurrentCell).
13281         (set_SelectionBackColor): call InvalidateSelection instead of
13282         Refresh.
13283         (set_SelectionForeColor): same.
13284         (BeginEdit): Flesh this out a bit.
13285         (CancelEditing): only do any of this if we're editing/adding.
13286         (EndEdit): same.
13287         (OnMouseDown): there's no need to cancel editing here, it's done
13288         in SetCurrentCell.
13289         (SetCurrentCell): only invalidate the current row header if it's a
13290         different row than the new one.
13291         (ShiftSelection): fix this to work like MS does.
13292         (ResetSelection): factor out the invalidation of selected_rows to
13293         InvalidateSelection.
13294         (SetDataSource): cancel any editing that's going on.
13295
13296         * DataGridColumnStyle.cs
13297         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
13298         call the non-interface version.
13299
13300         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
13301         header rectangle with the clip rectangle so we don't redraw the
13302         entire header for just a small area.  Gets rid of the last flicker
13303         when horizontally scrolling.
13304         (DataGridPaintRow): same.
13305
13306 2006-05-23  Mike Kestner  <mkestner@novell.com>
13307
13308         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
13309         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
13310         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
13311         Critical bug report.
13312
13313 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13314
13315         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
13316           and this fixes #78493
13317
13318 2006-05-23  Miguel de Icaza  <miguel@novell.com>
13319
13320         * Theme.cs (GetSizedResourceImage): Scale images if the proper
13321         size is not found.  
13322         
13323         * FileDialog.cs: Do not change the background for the side bar as
13324         it wont work nicely with the theme, and also reduces the artifacts
13325         in rendering the icons (which I want to fix too).
13326
13327         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
13328         resources, not resgen resources. 
13329
13330         (PlatformDefaultHandler): Pull images using the new API.
13331
13332 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13333
13334         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
13335           a reference to the hwnd and will not remove it unless there are
13336           no pending exposures (fixes #78341)
13337         * XplatUI.cs: Improved debug
13338
13339 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
13340
13341         * MenuAPI.cs : don't handle OnClick event when it was not the left
13342           button. Fixed bug #78487.
13343
13344 2006-05-23  Mike Kestner  <mkestner@novell.com>
13345
13346         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
13347         prefer submenus to the top menu for item lookup, to avoid popping down
13348         top-row items.
13349
13350 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
13351
13352         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
13353           Graphics.FillRectangle as the visual results are really bad (even
13354           on win). We now draw perfect arrows (and perfect shadows when the
13355           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
13356           Pen.DashPattern to draw the dots of each line.
13357
13358 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
13359
13360         * FileDialog.cs: Update the filename combobox when navigating through
13361           the ListView with the cursor keys. Fixes part 7 of bug #78446.
13362
13363 2006-05-22  Mike Kestner  <mkestner@novell.com>
13364
13365         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
13366         Fixes #78463.
13367
13368 2006-05-22  Mike Kestner  <mkestner@novell.com>
13369
13370         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
13371         requests. Fix a misspelled parameter and a copy paste exception error
13372         in Select.
13373
13374 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
13375
13376         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
13377           to get the same width/height (5/13) on X11 as the default font has on
13378           win32. This means that our DefaultFont emSize is smaller than the 
13379           the MS SWF equivalent (even thought the width/height stays the same)
13380
13381 2006-05-20  Jackson Harper  <jackson@ximian.com>
13382
13383         * MdiClient.cs:
13384         * MdiWindowManager.cs:
13385         * InternalWindowManager.cs: Make sure to use the border width from
13386         the theme.
13387
13388 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
13389
13390         * PrintDialog.cs: Implements printer details
13391
13392 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
13393
13394         * FileDialog.cs: Added focus handling for PopupButtonPanel.
13395           Fixes part 1 and 2 of bug #78446
13396
13397 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
13398
13399         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
13400           instead of sticking to the first ever calculated value
13401
13402 2006-05-19  Mike Kestner  <mkestner@novell.com>
13403
13404         * ComboBox.cs: fix mouse motion selection to use MousePosition and
13405         PointToClient, since Capture is set. Fixes #78344.
13406
13407 2006-05-19  Mike Kestner  <mkestner@novell.com>
13408
13409         * ListView.cs: match MS behavior in Details view where items are not
13410         drawn if Columns.Count == 0. 
13411         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
13412         Use a separate pen to draw the check, since changing the width affects
13413         the box as well.  Fixes #78454.
13414
13415 2006-05-18  Miguel de Icaza  <miguel@novell.com>
13416
13417         * ListView.cs: ArgumentOutOfRangeException, single versions of the
13418         exception should throw the name of the invalid argument.
13419
13420         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
13421         there are no files listed. 
13422
13423 2006-05-18  Jackson Harper  <jackson@ximian.com>
13424
13425         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
13426         up.
13427
13428 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13429
13430         * Control.cs: Brought back our old UpdateZOrder method as a private
13431           function and switched our calls from UpdateZOrder to the new one.
13432           This fixes the Paint.Net canvas disappearing bug.
13433
13434 2006-05-18  Jackson Harper  <jackson@ximian.com>
13435
13436         * Theme.cs:
13437         * ThemeWin32Classic.cs:
13438         * InternalWindowManager.cs: Move the drawing into the theme,
13439         expose everything the theme should need from the window manager.
13440
13441 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13442
13443         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
13444           from the call to NativeWindow to avoid walking up the parent chain
13445           further than needed (speeds up setting cursors and avoids setting
13446           the wrong cursor if a parent has another cursor defined)
13447         * Cursor.cs: When loading an icon as cursor, MS uses the center of
13448           the icon as hotspot, not what's contained as hotspot in the icon
13449           file. This fixes the perceived drawing offset seen with Paint.Net
13450         
13451 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13452
13453         * XplatUIX11.cs: 
13454           - Store the calculated rectangle in Hwnd object and use it when 
13455             setting the client size
13456           - Force Toolwindows to always be type Dock, to ensure they're on top
13457
13458 2006-05-18  Mike Kestner  <mkestner@novell.com>
13459
13460         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
13461         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
13462         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
13463         Substantial refactoring to remove confusing nested classes. Coding
13464         standard and Get+Set->property refactorings.  Shift to index based
13465         highlighting in ComboListBox instead of constantly using IndexOf and
13466         Items[]. Add invalidations on resize for DropDownList to fix ugliness
13467         in FileDialog growth.  Draw borders manually since Simple mode needs
13468         to look like two independent controls.  Make listbox border
13469         conditional to DropDownStyle.  Improved OwnerDraw support.
13470
13471 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
13472
13473         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
13474         Don't set the disposed graphics to null, so we can throw the "right"
13475         exception if the graphics is reused later (added a flag to avoid 
13476         double disposing). Some behaviours are different under 2.0 and are
13477         filled under bug #78448.
13478
13479 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13480
13481         * Control.cs: When double-buffering is enabled, we need to reset
13482           our graphics context between paint calls. Otherwise, any 
13483           transformations and other alterations on the context will 
13484           become cumulative (#77734)
13485
13486 2006-05-18  Mike Kestner  <mkestner@novell.com>
13487
13488         * ListView.cs: do focused item selection like MS on clicks. 
13489         Rework focus handling for ItemControl so LostFocus invalidates as
13490         well.
13491         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
13492         the ListView ItemControl has focus.
13493
13494 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
13495
13496         * XplatUIX11.cs: If client_window ends up being width or height zero
13497           due to border settings, move it off window inside whole_window (#78433)
13498
13499 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13500
13501         * Mime.cs: Shrink the mime file cache correctly.
13502
13503 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13504
13505         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
13506
13507 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13508
13509         * XplatUIX11.cs (AddExpose): More sanity checks
13510
13511 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13512
13513         * XplatUIX11.cs:
13514           - AddExpose: Don't add expose ranges outside the size of our
13515             window
13516           - Cast opacity values to Int32 to avoid crashes with certain
13517             values
13518           - Added disabled code paths that protect against illegal cross-
13519             thread painting (Developers.exe)
13520
13521 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13522
13523         * ProgressBar.cs: Invalidate the control when it's resized
13524           since block size is based on control size. (#78388)
13525
13526 2006-05-16  Miguel de Icaza  <miguel@novell.com>
13527
13528         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
13529         of setting the incoming argument to the "reset" value, we set the
13530         this.datamember to string.empty (before we were invalidating the
13531         incoming data).   
13532
13533         Fixes 78420
13534
13535 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13536
13537         * Form.cs: Only apply transparency settings after the form
13538           is created. (Fixes #77800)
13539
13540 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13541
13542         * ApplicationContext.cs: Grab the HandleDestroyed event so
13543           we know when to fire OnMainFormClosed 
13544
13545 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13546
13547         * Application.cs: Introduced sub-class to allow tracking of
13548           threads and centralized triggering of the event mess for
13549           ThreadExit, AppExit, etc..  (#76156)
13550
13551 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
13552
13553         * MimeIcon.cs:
13554           - Do not return a null icon index value for a mime subclass.
13555             Instead try the main mime type class too.
13556           - Seems that some newer distributions don't have a link to some
13557             gnome default icons anymore. So check the default gnome dir too.
13558           
13559
13560 2006-05-16  Jackson Harper  <jackson@ximian.com>
13561
13562         * MdiClient.cs: Don't paint the parent background image if we have
13563         our own background image.
13564
13565 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13566
13567         * Control.cs:
13568           - PerformLayout: Do not shrink space filled by DockStyle.Fill
13569             controls, all filled controls are supposed to overlap (#78080)
13570           - UpdateZOrder is supposed to update the control's z-order in the
13571             parent's z-order chain. Fixed to behave like that
13572           - BringToFront: Removed obsolete code
13573           - SendToBack: Simplyfied
13574           - SetChildIndex: Trigger layout calculations when Z-order changes
13575             since layout is done by z-order
13576
13577 2006-05-16  Chris Toshok  <toshok@ximian.com>
13578
13579         [ fixes bug #78410 ]
13580         * DataGrid.cs (set_AlternatingBackColor): use
13581         grid_drawing.InvalidateCells instead of Refresh().
13582         (set_BackColor): call grid_drawing.InvalidateCells.
13583         (set_BackgroundColor): use Invalidate instead of Refresh.
13584
13585         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
13586         invalidate the cell area.
13587
13588 2006-05-15  Chris Toshok  <toshok@ximian.com>
13589
13590         [ fixes bug #78011 ]
13591         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
13592         on to DataGridPaintRow.
13593         (DataGridPaintRow): take a clip argument, and only draw the cells
13594         which intersect it.  same with the not_usedarea.
13595
13596         * Theme.cs (DataGridPaintRow) add @clip parameter.
13597
13598         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
13599         XplatUI.ScrollWindow.
13600         (ScrollToRow): same.
13601
13602         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
13603         with last column which was causing a gray swath to appear with the
13604         XplatUI.ScrollWindow code.
13605
13606 2006-05-15  Chris Toshok  <toshok@ximian.com>
13607
13608         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
13609         use XplatUI.ScrollWindow.
13610         (VerticalScrollEvent): use XplatUI.ScrollWindow.
13611
13612 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
13613
13614         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
13615
13616 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13617
13618         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
13619           file since there are no equivalent X11 cursors
13620
13621 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13622
13623         * MonthCalendar.cs : DateTimePicker should reflect selected date
13624           on mouse*up*, not mouse*down*. Fixed originally reported part of
13625           bug #76474.
13626
13627 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13628
13629         * TabControl.cs : When argument index is equal or more than tab
13630           count, just ignore. Fixed bug #78395.
13631
13632 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13633
13634         * Control.cs: Dispose all child controls when control is diposed (#78394)
13635
13636 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13637
13638         * ColorDialog.cs: Finally it is possible to select the color with
13639           the text boxes
13640
13641 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13642
13643         * PrintDialog.cs: Fix typo
13644
13645 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13646
13647         * PrintDialog.cs: PrintDialog is not resizable
13648         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
13649           color. Made some ToolBar drawing methods protected virtual.
13650
13651 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
13652
13653         * PrintDialog.cs: Implementation of the PrintDialog
13654
13655 2006-05-12  Chris Toshok  <toshok@ximian.com>
13656
13657         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
13658         thumb, instead use MoveThumb.  This has the side effect of making
13659         most of the other thumb moving machinery use MoveThumb as well.
13660         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
13661         need to actually invalidate the rectangle where the new thumb will
13662         go.
13663         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
13664         We force an Update() after, so it's not as fast as it could be,
13665         but at least there's zero flicker and no droppings.
13666         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
13667         (UpdateThumbPos): add another argument (dirty), which says whether
13668         or not to calculate/add dirty regions which we later invalidate.
13669         For cases where we know we're going to use MoveThumb, we pass
13670         false for this.  Otherwise, pass true.
13671
13672 2006-05-12  Jackson Harper  <jackson@ximian.com>
13673
13674         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
13675         the status bar.
13676         
13677 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
13678
13679         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
13680           and GetClipRegion methods and UserClipWontExposeParent property.
13681         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
13682           overriding UserClipWontExposeParent property, setting to false, since
13683           Win32 handles the required expose messages to draw our clipped parent
13684           areas internally
13685         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
13686           PaintEventStart to set the user clip region if set.
13687         * Control.cs: 
13688           - Now internally tracking the Region for the control since we need to
13689             store it if the handle is not yet created and only set it when it
13690             becomes created. Before setting the region forced handle creation
13691           - Added code to draw the parents underneath a user-clipped region
13692         * Hwnd.cs: Added UserClip property
13693
13694 2006-05-12  Chris Toshok  <toshok@ximian.com>
13695
13696         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
13697         (set_Maximum): same.
13698         (set_Minimum): same.
13699         (set_SmallChange): same.
13700         (OnMouseUpSB): remove the call to refresh when releasing the
13701         thumb.  We shouldn't need it.
13702         
13703 2006-05-12  Miguel de Icaza  <miguel@novell.com>
13704
13705         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
13706         AutoSize set to None, we do not need to relayout everything, we
13707         just need to invalidate the current region.
13708
13709         (Draw): Do not draw the entire ClientArea, just redraw the
13710         clip area being passed.
13711
13712         * MdiClient.cs: Make MdiClient constructor with the Form argument
13713         internal. 
13714
13715 2006-05-12  Jackson Harper  <jackson@ximian.com>
13716
13717         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
13718         parents background image,  but strangely not their own.
13719         - (DrawStatusBarPanel): Take into account horizontal alignment
13720         when drawing the strings and icons.
13721
13722 2006-05-12  Mike Kestner  <mkestner@novell.com>
13723
13724         * ListBox.cs: avoid invalidations for focus when the collection is
13725         empty. 
13726
13727 2006-05-12  Chris Toshok  <toshok@ximian.com>
13728
13729         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
13730         invalidate the entire thumb area.  Call InvalidateDirty which
13731         limits the redraw to the thumb itself and surrounding pixels.
13732
13733         * XplatUIX11.cs (ScrollWindow): optimize copying.
13734         
13735 2006-05-12  Chris Toshok  <toshok@ximian.com>
13736
13737         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
13738         Figure out the positioning/layout in a single pass instead of
13739         multiple recursive invocations.  Speeds up the initial display of
13740         the data grid.  Also, make many things private that were
13741         originally public but unused outside this class.
13742
13743 2006-05-11  Jackson Harper  <jackson@ximian.com>
13744
13745         * MdiClient.cs: Improved layout code.
13746
13747 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
13748
13749         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
13750           not SelectedObject.
13751
13752 2006-05-11  Chris Toshok  <toshok@ximian.com>
13753
13754         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
13755         union of that will always be {0,0,width,height}.
13756
13757 2006-05-11  Jackson Harper  <jackson@ximian.com>
13758
13759         * Form.cs: Match MS's DefaultSize for forms (they must have
13760         changed the size in sp2).
13761
13762 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
13763
13764         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
13765
13766 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
13767
13768         * TextControl.cs : Fixed bug #78109. This incorrect position
13769           comparison caused crash on automatic line split.
13770         * TextBoxBase.cs : reduce duplicate code.
13771
13772 2006-05-10  Jackson Harper  <jackson@ximian.com>
13773
13774         * MdiClient.cs: Active form is only sent to the back when using
13775         the Next form functionality, when a form is clicked the current
13776         active shouldn't be sent to the back.
13777         - Layout the mdi windows when the container is first made visible.
13778         * Form.cs: Give the MdiClient a ref to the containing form when we
13779         create it.
13780         
13781 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
13782
13783         * LinkLabel.cs : link_font could be uninitialized, so populate one
13784           before actual use. Fixed bug #78340.
13785
13786 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
13787
13788         * XplatUIX11.cs : clipboard format native value is IntPtr.
13789           Fixed bug #78283.
13790
13791 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
13792
13793         * Control.cs: 
13794           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
13795             which is passed up the parent chain by DefWndProc
13796           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
13797             to DefWndProc (#77956)
13798         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
13799
13800 2006-05-10  Jackson Harper  <jackson@ximian.com>
13801
13802         * MdiClient.cs: We need to remove the controls from the mdi
13803         collection, when we close the window.
13804         * MdiWindowManager.cs: Special handling of closing mdi windows.
13805         * InternalWindowManager.cs: Make the close method virtual so the
13806         mdi window manager can handle it specially.
13807
13808 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
13809
13810         * DataGrid.cs:
13811           - Recalculate grid when the data source has changed
13812           - Matches styles provided by user from all data sources types
13813         * DataGridTableStyle.cs: For columns that provided by the user set the
13814         with the preferred value is there was unassigned.
13815         * CurrencyManager.cs: throw OnItemChanged event
13816
13817 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
13818
13819         * PictureBox.cs: Don't animate until handle is created. Start animation
13820           when handle is created.
13821
13822 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
13823
13824         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
13825           current codebase.
13826         * XEventQueue.cs: We don't need to provide the extra info
13827
13828 2006-05-10  Jackson Harper  <jackson@ximian.com>
13829
13830         * MdiClient.cs: If the mdi clients parent form has a background
13831         image set, we draw that background image for the mdi area's
13832         background.
13833
13834 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
13835
13836         * TextBoxBase.cs: Set IBeam cursor (#78347)
13837
13838 2006-05-10  Mike Kestner  <mkestner@novell.com>
13839
13840         * ToolBar.cs: fix some text padding issues with ButtonSize
13841         calculation. Update the default size to match MS documentation.
13842         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
13843         button size. Fixes #78296.
13844
13845 2006-05-10  Mike Kestner  <mkestner@novell.com>
13846
13847         * ListBox.cs: use is_visible for scrollbar positioning in case the
13848         control isn't on screen yet.  Fix off by one with Right vs Width
13849         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
13850         
13851 2006-05-10  Jackson Harper  <jackson@ximian.com>
13852
13853         * X11Dnd.cs: Drop to a control with another control on top of it.
13854         * ToolBar.cs: Work on a copy of the buttons list, so that it can
13855         be modified in click handlers. TODO: Look for similar problems in
13856         other controls.
13857
13858 2006-05-09  Jackson Harper  <jackson@ximian.com>
13859
13860         * Form.cs: Window managers need the old window state when setting
13861         window state now.
13862         * InternalWindowManager.cs: Allow the base mdi window manager to
13863         handle more of the MDI only stuff (like maximize buttons).
13864         * MdiWindowManager.cs: Fix some snafus in changing the window
13865         state.  Add all the menu functionality, for both popup and
13866         maximized menus.
13867         * MdiClient.cs: When a new form is selected the currently
13868         activated form is sent to the back, this matches MS.
13869         - Implement a new method to activate the next mdi child window.
13870
13871 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
13872
13873         * Control.cs: 
13874           - Added new InternalCapture method to allow controls to prevent
13875             the capture behaviour on the click handlers
13876           - Switched to use InternalCapture
13877         * ComboBox.cs:
13878           - Using InternalCapture to prevent mouse captures from being released
13879             on mouse button release (Fixes #78100)
13880         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
13881           returns Form borders if a caption is present. (Fixes #78310)
13882
13883 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
13884
13885         * TreeNode.cs: Changed serialization .ctor to not require every field
13886           to be present. (#78265)
13887         * OwnerDrawPropertyBag.cs: Added serialization .ctor
13888
13889 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
13890
13891         * MimeIcon.cs: for is faster than foreach for strings.
13892
13893 2006-05-05  Mike Kestner  <mkestner@novell.com>
13894
13895         * CheckedListBox.cs: update check handling code to not use selected.
13896         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
13897         behavior for visual feedback, motion response, shift/ctrl handling,
13898         and properly deal with all 4 selection modes. Updates to bounds
13899         handling logic.  Add scroll wheel support. [Fixes #77842]
13900
13901 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
13902
13903         * ListView.cs:
13904           - Moved adding of Implicit controls into .ctor. That way, subsequent
13905             creation of the controls will not cause them to think they are 
13906             toplevel windows (fixes #78200 header problem)
13907           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
13908           - Switched visibility setting of header control to use internal field
13909             to avoid triggering handle creation
13910           - Now checking if handle is created before causing a refresh when items
13911             are added (This makes us now match handle creation time with MS)
13912         * Splitter.cs: Removed loading of private splitter cursor, switched to
13913           Cursors version now that that is loading the right ones
13914         * Cursors.cs: Load proper splitter cursors from resources
13915         * Cursor.cs: Added second method of loading resource cursors for the 
13916           VS.Net users amongst us
13917
13918 2006-05-05  Mike Kestner  <mkestner@novell.com>
13919
13920         * ListView.cs: give header_control a minimum size based on the
13921         ListView size.
13922
13923 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
13924
13925         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
13926           window seems to do that with metacity, so set that type. (#78120)
13927
13928 2006-05-05  Mike Kestner  <mkestner@novell.com>
13929
13930         * ListViewItem.cs: fix Details mode checkbox layout bug.
13931         * ThemeWin32Classic.cs: draw a ListView column header for unused space
13932         at the end of the header, if it exists. [Fixes for #78200]
13933
13934 2006-05-04  Jackson Harper  <jackson@ximian.com>
13935
13936         * MdiClient.cs: Add a helper property to get the container form.
13937         * MdiWindowManager.cs: We have to make sure to use the menu origin
13938         when drawing the icons and buttons, this fixes maximized window
13939         icons/buttons on win32.
13940         * InternalWindowManager.cs: Reset the restore captions when a
13941         window goes from Maximized to Minimized and vice versa. Move the
13942         DrawMaximizedButtons into the MdiWindowManager source, tool
13943         windows can't be maximized. NOTE: This could use a little
13944         refactoring if time ever permits.
13945         
13946 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
13947
13948         * TextBox.cs: Add MWFCategoryAttributes
13949         * TextBoxBase.cs: Add MWFCategoryAttributes
13950         * Form.cs: Add MWFCategoryAttributes
13951
13952 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
13953
13954         * Control.cs: Add MWFCategoryAttributes
13955         * ScrollableControl.cs: Add MWFCategoryAttributes
13956
13957 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
13958
13959         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
13960           Divider is true. Fix a little glitch in PropertyToolBar
13961           drawing code
13962
13963 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
13964
13965         * Control.cs:
13966           - Dispose: Call base.Dispose, this causes the disposed event
13967             to be fired (and probably other, more important stuff)
13968           - SetVisibleCore: Set is_visible to true after creating the
13969             window so that the window still gets created invisible (if
13970             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
13971             to generate a WM_ACTIVE message
13972         * Form.cs: Call Dispose when we want to destroy the window, instead of
13973           just destroying the handle (Dispose will do that for us)
13974         * XplatUIX11.cs:
13975           - RootWindow also needs a queue, so we can properly process the
13976             property change events from RootWindow (like Activate)
13977           - Generatic synthetic WM_ACTIVE message when the active window is
13978             being destroyed
13979
13980 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
13981
13982         * LinkLabel.cs: Trigger a recalc of our label dimensions when
13983           bounds are changed
13984
13985 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
13986
13987         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
13988           for determining width and height (image might not be assigned if
13989           we're drawing an imagelist)
13990
13991 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
13992
13993         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
13994         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
13995           height from system
13996         * Theme.cs: No longer returns hardcoded menu height, instead calls
13997           new driver method
13998         * Form.cs (OnLoad): Scaling happens before triggering Load events 
13999           on MS (# 78257)
14000
14001 2006-05-01  Mike Kestner  <mkestner@novell.com>
14002
14003         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
14004
14005 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
14006
14007         * TextBoxBase.cs: Removed Fixme
14008         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
14009
14010 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
14011
14012         * XplatUIX11.cs:
14013           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
14014             the rectangle relative to the parent, considering borders. We
14015             don't really want that.
14016           - ScrollWindow: Fixed warning to be more understandable
14017         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
14018           scrollbars and scroll only the visible area
14019         * RichTextBox.cs: Removed debug output
14020
14021 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14022
14023         * NumericUpDown.cs (Text): Just use base
14024         * UpDownBase.cs: Ensure txtView is created before using it
14025
14026 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14027
14028         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
14029           casting to IntPtr to avoid 64bit overflow errors
14030
14031 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14032
14033         * Control.cs:
14034           - AllowDrop: Don't force handle creation.
14035           - CreateHandle: Added call to tell driver if we're allowed to drop
14036
14037 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14038
14039         * FileDialog.cs: Remember the last directory not only for the
14040           current instance but also for new FileDialog instances.
14041
14042 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14043         
14044         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
14045           broke sending async messages
14046
14047 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14048
14049         * XplatUIX11.cs:
14050           - ScrollWindow: Fixed method. We finally generate expose events again
14051             for scrolled areas. This was causing 'garbage' when scrolling
14052             textbox and other controls that used ScrollWindow
14053           - Switched from using the regular queue for paint events to the MS 
14054             model of 'generating' paint events when the queue is empty.
14055             We use the new XQueueEvent.Paint subclass to store which windows
14056             need painting.
14057           - AddExpose now takes the x/y/width/height of the exposed area
14058             and inserts the window into the paint queue if not already there
14059           - InvalidateWholeWindow: Switched to use new AddExpose method
14060           - UpdateMessageQueue: Added which queue to monitor for paint events
14061           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
14062             the unlikely case nothing above handles it. We reset the expose
14063             pending states to get them off the queue.
14064           - GetMessage: Now pulls a paint event if no other events are in the
14065             queue
14066           - Invalidate: Switched to new AddExpose method
14067           - PeekMessage: Updated to understand pending paint events
14068           - UpdateWindow: Fixed logic bug. We were only updating if the window
14069             didn't need updating. Also switched to sending WM_PAINT directly,
14070             like MS does.
14071         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
14072           and random access Remove(). The random access is needed to handle
14073           UpdateWindow() where a WM_PAINT is sent directly without accessing
14074           the queue.
14075         * ScrollBar.cs: Added Update() calls to cause immediate updates to
14076           allow for better feedback when scrolling. Scrollbars are small and
14077           the immediate update should make it 'feel' more responsive without
14078           slowing things down. ScrollBar still needs it's invaliate logic
14079           updated to not always invalidate the whole bar on certain changes.
14080
14081 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14082
14083         * Control.cs:
14084         (BackColor): if the control does not support a transparent background,
14085         return the default backcolor when the parent backcolor is transparent.
14086
14087 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
14088
14089         * Application.cs: Updated to new StartLoop/GetMessage API
14090         * RichTextBox.cs: Provide some output on RTF parsing errors
14091         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
14092           new queue_id argument to GetMessage and PeekMessage to allow faster
14093           handling of per-thread queues in drivers.
14094         * Hwnd.cs: Added Queue tracking and property
14095         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
14096         * XEventQueue.cs: Added thread trackingA
14097         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
14098         * XplatUIX11.cs:
14099           - Implemented new per-thread queue
14100           - GetMessage: Fixed return/break behaviour on several cases. We were
14101             returning stale messages in some cases, instead of just processing
14102             the next message
14103
14104 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14105
14106         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
14107
14108 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
14109
14110         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
14111           fixed off-by-one comparisons between Width/Height and Right/Bottom.
14112
14113 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14114
14115         * PropertyGridView.cs: Fix drop down width.
14116
14117 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14118
14119         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
14120           a mess in DrawToolBar, so I removed one of them.
14121
14122 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14123
14124         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
14125           needed (clip). Otherwise we get artifacts.
14126
14127 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14128
14129         * FixedSizeTextBox.cs: Added constructor to allow specifying which
14130           dimension is fixed
14131         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
14132           and switched FixedSizeTextBox to only be fixed vertical (#78116)
14133         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
14134           if it matches the scale base font (avoids unneeded scaling)
14135
14136 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14137
14138         * X11DesktopColors.cs: One gtk_init_check should be enough
14139
14140 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
14141
14142         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
14143           match MS behaviour
14144
14145 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14146
14147         * TextBoxBase.cs: 
14148           - Generate OnTextChanged for Backspace even if we're only deleting
14149             the current selection
14150           - When setting the Text property, only select all text if the
14151             control does not have focus when it is being set. Otherwise
14152             just place the cursor at the beginning of the control
14153
14154 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14155
14156         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
14157           Added a little helper to draw PropertyGrid ToolBar with a different
14158           border and a different BackColor.
14159         * PropertyGrid.cs: Some background parts didn't get painted with the
14160           correct background color. Added a class that helps us to draw the
14161           correct border for PropertyGridView and a class that helps us to
14162           draw ToolBars with a different backcolor
14163         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
14164
14165 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
14166
14167         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
14168         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
14169
14170 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14171
14172         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
14173           into the palette entries. Also, since we're working on a copy
14174           we needed to copy the palette back onto the bitmap.
14175         * Cursor.cs: Same fix as XplatUIWin32.cs.
14176
14177 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
14178
14179         * ImageListStreamer.cs: Need to read the var (or we're off)
14180
14181 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14182
14183         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
14184           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
14185           TextBoxBase.cs: Unused var fixes
14186         * AxHost.cs: Small 2.0 fix
14187         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
14188           as it seems that is what at least Metacity expects. This will make
14189           icons show up on 64bit platforms. We still have some 64bit size
14190           issues, though, since the startup app window size still won't match.
14191
14192 2006-04-25  Mike Kestner  <mkestner@novell.com>
14193
14194         * *.cs: cleanup newly reported exception var unused warnings.
14195
14196 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14197
14198         * ThemeWin32Classic.cs: Button image alignment now matches exactly
14199           ms
14200
14201 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14202
14203         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
14204           image. The image position is always the same, no matter if the
14205           button is pressed or not.
14206
14207 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14208
14209         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
14210           selection and set the correct filename for SaveFileDialog.
14211           Patch by Emery Conrad.
14212
14213 2006-04-24  Mike Kestner  <mkestner@novell.com>
14214
14215         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
14216         check for item.X outside the ClientRect instead of item.Y. Fixes
14217         #78151.
14218
14219 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14220
14221         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
14222         trust that value blindly and do some sanity check. Fixes bug #77814.
14223
14224 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14225
14226         * ImageListStreamer.cs: save the mask as a 1bpp image.
14227
14228 2006-04-21  Mike Kestner  <mkestner@novell.com>
14229
14230         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
14231         pass Checked and Indeterminate to the Theme Engine. Improve
14232         encapsulation with ListBox.
14233         * ListBox.cs: Keep a StringFormat instead of calculating it every item
14234         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
14235         nested types.  Move all CheckState functionality to CheckedListBox.
14236         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
14237         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
14238         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
14239         single base list. Fix scrollbar sizing and placement to mirror MS.
14240         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
14241         used.
14242         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
14243         for CheckedListBox by using new DrawItemState info.  Center the
14244         checkboxes on the items. Use new StringFormat property.
14245
14246 2006-04-18  Jackson Harper  <jackson@ximian.com>
14247
14248         * Form.cs: MdiChildren don't do default locations the same way as
14249         regular forms.  This prevents a crash when trying to position the
14250         mdi windows.
14251
14252 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
14253
14254         * PropertyGridTextBox.cs: Formatting, copyright
14255         * PropertiesTab.cs: Formatting
14256         * PropertyGrid.cs: Formatting
14257         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
14258           click toggling of values
14259           
14260 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
14261
14262         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
14263         * Control.cs (.ctor): verify_thread_handle is static, don't reset
14264           every time a control is created
14265         * Application.cs: Removed obsolete EnableRTLMirroring method
14266
14267 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
14268
14269         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
14270         SelectedIndex to -1. Fixes bug #78121.
14271
14272 2006-04-17  Jackson Harper  <jackson@ximian.com>
14273
14274         * Binding.cs: Handle null values for Current and BindingContext.
14275         This occurs when binding is a little delayed.
14276         * CurrencyManager.cs: return null for Current when there are no
14277         items in the list.
14278         - Hookup to the listchanged event on the DataView and update
14279         bindings when the list is changed.  This fixes late binding of
14280         controls.
14281
14282 2006-04-17  Jackson Harper  <jackson@ximian.com>
14283
14284         * X11Dnd.cs:
14285         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
14286         Ringenbach.
14287
14288 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
14289
14290         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
14291           place
14292         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
14293           with the correct ButtonState
14294
14295 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
14296
14297         * XplatUIX11.cs: Improved distinguishing between window types to
14298           tell the WM a type closer to what the app wants (Fixes #78107)
14299
14300 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14301
14302         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
14303           GrabHandle
14304
14305 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14306
14307         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
14308           drawing code to reflect the size grip changes
14309
14310 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14311
14312         * ImageListStreamer.cs: fix handling of the mask that follows the main
14313         bitmap when deserializing and serialize it properly. The generated mask
14314         should better be a 1bpp image, but I'll do that later.
14315
14316 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14317
14318         * FileDialog.cs: Show something in the DirComboBox on *nix if the
14319           path doesn't fit into some of our Current.Places
14320
14321 2006-04-13  Jackson Harper  <jackson@ximian.com>
14322
14323         * ComboBox.cs: Use borders instead of drawing our own decorations,
14324         try to obey correct rules for heights.
14325         * Theme.cs:
14326         * ThemeNice.cs:
14327         * ThemeClearLooks.cs:
14328         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
14329         this is now handled by borders.
14330         - Remove unused DrawListBoxDecorationSize method.
14331         
14332 2006-04-13  Mike Kestner  <mkestner@novell.com>
14333
14334         * MenuAPI.cs: null guarding for the disbled click check fixes crash
14335         reported by Alex.
14336
14337 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14338
14339         * ThemeWin32Classic.cs: 
14340           - Fixed CPDrawStringDisabled
14341           - Corrected drawing of disabled menu items
14342           - Fixed drawing of disabled radio buttons (bug #78095)
14343           - Draw check in a disabled CheckBox with color ControlDark 
14344
14345 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14346
14347         * Form.cs: Use the provided width when calculating the menu size;
14348           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
14349           and ClientSize.Width won't be updated yet
14350         * Application.cs: Use Visible instead of Show() to make form visible,
14351           this way we create the handle later and menusize is considered
14352
14353 2006-04-12  Mike Kestner  <mkestner@novell.com>
14354
14355         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
14356         reporting.
14357
14358 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14359
14360         * TextBox.cs: Implemented context menu
14361
14362 2006-04-12  Mike Kestner  <mkestner@novell.com>
14363
14364         * ListView.cs: implement box selection. fixes #77838.
14365         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
14366
14367 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14368
14369         * XplatUIX11.cs: Added setting of window type when transient window
14370           is created (metacity would move it otherwise)
14371         * X11Structs.cs: Added WINDOW_TYPE atoms
14372         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
14373           background (the control is Opaque but still wants transparent
14374           backgrounds)
14375
14376 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14377
14378         * Control.cs: Added OnPaintBackgroundInternal to allow controls
14379           that set Opaque but don't mean it (like all ButtonBase-derived
14380           controls) to still draw their background
14381         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
14382           the background
14383
14384 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14385
14386         * Control.cs (PaintControlBackground): Set the graphics object
14387           on our PaintEvent to null to prevent it from being disposed
14388           when the PaintEvent gets disposed
14389
14390 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
14391
14392         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
14393         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
14394
14395 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14396
14397         * Control.cs: 
14398           - Added transparency check to BackColor property. Transparent
14399             backgrounds are only allowed if the control styles permit it
14400           - Added recursive painting of parent control background and
14401             foreground if a control with a transparent backcolor is drawn
14402             (Thanks to Tim Ringenback for providing his 'hack' as a base
14403              for this patch) Fixes #77985 and #78026.
14404           - Added Opaque style check before calling OnPaintBackground, no
14405             need to draw the background if the control is opaque
14406           - Removed ControlAccessibleObject owner variable (inherited from
14407             base, no need to define again)
14408           - Added some documentation links explaining the drawing events
14409             and styles
14410
14411 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14412
14413         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
14414           that the affected control is the located at the left border of our
14415           parent (Fixes #77936)
14416
14417 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14418
14419         * TextBoxBase.cs: When rendering disabled or readonly controls,
14420           draw the background with 'Control' instead of 'Window' color as
14421           long as the user hasn't specifically set a color
14422
14423 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14424
14425         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
14426           since that won't be updated if the user types text (only if it's
14427           programatically set)
14428
14429 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14430
14431         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
14432           layout changes do to app-triggered resizes will have the proper
14433           display rectangle for layout
14434
14435 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
14436
14437         * ThemeWin32Classic.cs:
14438           - Make use of the SystemBrushes and SystemPens wherever possible
14439           - Corrected some highlight colors
14440           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
14441             drawing
14442         * Theme.cs: Added Empty field to CPColor struct
14443
14444 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14445
14446         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
14447           is displayed when calculating the display rectangle. Thanks to Mike
14448           for teaching me the err of my ways.
14449
14450 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
14451
14452         * ScrollableControl.cs:
14453           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
14454             (instead of 0,0) and we now return the real width/height instead of
14455             just the clientrectangle, adjusted for padding. The rectangle is
14456             now cached and created by the new CalculateDisplayRectangle method.
14457           - Created new CalculateDisplayRectange method, which basically does
14458             what get_DisplayRectangle() did originally, but now using the 
14459             right edge instead of DisplayRectangle to determine the size of
14460             our scrollbars
14461           - get_Canvas(): Fixed it to properly calculate canvas for 
14462             right/bottom controls which seem to be placed to the right/bottom
14463             of any controls that have a fixed location
14464           - Removed TODO that's taken care of
14465           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
14466             and SetDisplayRectLocation according to new MSDN2 docs
14467           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
14468             event when that is called, this is added for compatibility
14469           - ScrollControlIntoView(): Implemented.
14470           - Switched scrollbars to be implicit, they shouldn't be selectable
14471         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
14472           call it when the active control is set/changed
14473         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
14474         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
14475           implicit_control variable (used for native Win32 message generation)
14476         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
14477           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
14478         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
14479         * XplatUIStructs.cs: Added ScrollBarCommands enum
14480
14481 2006-04-10  Jackson Harper  <jackson@ximian.com>
14482
14483         * ButtonBase.cs:
14484         * CheckedListBox.cs:
14485         * ComboBox.cs:
14486         * DataGrid.cs:
14487         * DataGridView.cs:
14488         * Form.cs:
14489         * GroupBox.cs:
14490         * ListBox.cs:
14491         * PrintPreviewControl.cs:
14492         * ProgressBar.cs:
14493         * PropertyGrid.cs:
14494         * Splitter.cs:
14495         * StatusBar.cs:
14496         * TrackBar.cs:
14497         * UpDownBase.cs: Fixup base event overrides.
14498         
14499 2006-04-06  Mike Kestner  <mkestner@novell.com>
14500
14501         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
14502         all user-initiated value changes to min <= value <= max-thumbsz+1.
14503         (set_Value): check for vert/horiz when calculating new thumb position.
14504         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
14505         like MS does.
14506         (OnMouseMoveSB): refactor the thumb dragging code and refine
14507         invalidation logic to reduce flicker.
14508         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
14509         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
14510         (UpdateThumbPosition): small code readability cleanup
14511
14512 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
14513
14514         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
14515           different
14516
14517 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14518
14519         * ThemeNice.cs: Use a better graphics effect when a button is pressed
14520
14521 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14522
14523         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
14524         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
14525           This dramatically reduces the number of Pen.Dispose calls. 
14526           Where possible call ResPool methods only once instead of calling it
14527           over and over again (for example for the same color).
14528
14529 2006-04-06  Mike Kestner  <mkestner@novell.com>
14530
14531         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
14532         Also remove an unused private field on the collection. Fixes #77972.
14533
14534 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14535
14536         * ThemeNice.cs: Added ToolBar drawing code
14537
14538 2006-04-06  Mike Kestner  <mkestner@novell.com>
14539
14540         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
14541         I'm assuming that means we need to look up the toplevel for the
14542         provided control. Fixes the crash trace in #77911 but exposes another
14543         crash in some strange reflection usage in NDocGui.
14544
14545 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14546
14547         * ThemeNice.cs: Gave it a little silver touch and added Images
14548           method
14549         * FontDialog.cs: FontDialog is not resizable
14550         * FileDialg.cs: Added SizeGripStyle.Show
14551
14552 2006-04-05  Jackson Harper  <jackson@ximian.com>
14553
14554         * KeyboardLayouts.cs: Remove warning.
14555
14556 2006-04-05  Jackson Harper  <jackson@ximian.com>
14557
14558         * Control.cs: Enable OnPaintInternal so we can use it for drawing
14559         all of our controls instead of Paint +=.
14560         * ListBox.cs:
14561         * ListView.cs:
14562         * MenuAPI.cs:
14563         * MessageBox.cs:
14564         * NotifyIcon.cs:
14565         * ProgressBar.cs:
14566         * ScrollBar.cs:
14567         * Splitter.cs:
14568         * StatusBar.cs:
14569         * TabControl.cs:
14570         * TextBoxBase.cs:
14571         * ToolBar.cs:
14572         * TrackBar.cs:
14573         * UpDownBase.cs:
14574         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
14575         use OnPaintInternal. Remove Width/Height and Visible checks in
14576         paint handler, this is done at a higher level now.
14577         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
14578         * PaintEventArgs.cs: Add a handled flag so controls that don't
14579         want anymore painting after OnPaintInternal can make sure OnPaint
14580         isn't called.
14581
14582 2006-04-05  Mike Kestner  <mkestner@novell.com>
14583
14584         * Form.cs: fix the menu WndProc hacks to respect the native enabled
14585         state of the form, so that we don't process events when Modal dialogs
14586         are up. Fixes #77922.
14587
14588 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
14589
14590         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
14591           checking is done.
14592
14593 2006-04-05  Mike Kestner  <mkestner@novell.com>
14594
14595         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
14596
14597 2006-04-05  Mike Kestner  <mkestner@novell.com>
14598
14599         * ListView.cs (HeaderMouseMove): null guarding for the over column
14600         when setting up the drag_to_index.  Fixes #78015.
14601
14602 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
14603
14604         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
14605           in the taskbar. Transient windows seem to accomplish that.
14606
14607 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
14608
14609         * Form.cs:
14610           - Re-enabled CreateParams.X/Y code for FormStartPosition
14611           - Added code for manual placement when creating the Control
14612           - Incomplete patch to treat MDI forms differently when
14613             setting the ClientSizeCore. (Still need to figure out handling
14614             x/y coords there)
14615         * XplatUIX11.cs:
14616           - When we're explicitly setting the X/Y position of a non-Child
14617             window, let the WM know. Metacity really wants this.
14618
14619 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14620
14621         * ThemeNice.cs: Added CPDrawButton
14622
14623 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14624
14625         * ThemeNice.cs: Changed the color for focused buttons and activated
14626           the arrows for small scroll buttons.
14627
14628 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14629
14630         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
14631           anymore. Changed some method modifiers to protected (virtual)
14632         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
14633           changes
14634         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
14635           Updated drawing of menus, buttons and progressbars; added
14636           CPDrawBorder3D 
14637
14638 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14639
14640         * ImageListStreamer.cs: implemented serialization/deserialization
14641         of the images.
14642
14643 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
14644
14645         * ThemeWin32Classic.cs:
14646           - Removed all the DrawFrameControl stuff; CPDrawButton,
14647             CPDrawCheckBox and CPDrawRadioButton are now handled directly
14648             inside the methods
14649           - Updated and corrected the drawing code of CPDrawButton,
14650             CPDrawCheckBox and CPDrawRadioButton to better match ms
14651           - Updated theme checkbox and radiobutton code to use the CP*
14652             methods
14653
14654 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14655
14656         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
14657           bug is fixed
14658
14659 2006-03-31  Jackson Harper  <jackson@ximian.com>
14660
14661         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
14662         sometimes.
14663         * UpDownBase.cs: Don't CreateGraphics manually, use a
14664         Refresh. Ideally we would invalidate the correct areas here.
14665
14666 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14667
14668         * XplatUIX11.cs: 
14669           - We now track the mapping state of windows. If a window (or 
14670             one of it's parents) is not mapped we no longer permit
14671             WM_PAINT messages to be generated since we'd otherwise get 
14672             lots of BadMatch X errors. Jackson did all the work figuring
14673             out the problem.
14674           - Destroying the caret if the window it's contained in is 
14675             destroyed. Can't use regular DestroyCaret method since it
14676             might fall into a drawing function (trying to remove the
14677             caret) and with that generate new BadMatch errors. Again,
14678             Jackson tracked this down.
14679           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
14680             make sure we send the messages to all windows. (The old code
14681             would send the WM_DESTROY to the window, and then all child
14682             windows would be 'gone' because the WM_DESTROY handle lookup
14683             would no longer find the destroyed window)
14684         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
14685         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
14686
14687 2006-03-31  Jackson Harper  <jackson@ximian.com>
14688
14689         * ScrollableControl.cs: Dont recalc if we are not visible.
14690
14691 2006-03-31  Mike Kestner  <mkestner@novell.com>
14692
14693         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
14694         the visibility branch.
14695
14696 2006-03-31  Jackson Harper  <jackson@ximian.com>
14697
14698         * ScrollBar.cs: Cap values when incrementing/decrementing.
14699
14700 2006-03-31  Mike Kestner  <mkestner@novell.com>
14701
14702         * MenuAPI.cs: setup menu.tracker for popup/context menus.
14703         * ToolTip.cs: guard against timer expirations with no active control.
14704         Not sure why it happened.
14705
14706 2006-03-31  Mike Kestner  <mkestner@novell.com>
14707
14708         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
14709         text.
14710         * ToolTip.cs: Position the tooltip based on where the cursor is at
14711         popup time, not at MouseEnter time.  Add a Down state so that we don't
14712         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
14713         positioning offset. Lookup DisplaySize at positioning time, since it
14714         can theoretically change during invocation.
14715         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
14716         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
14717
14718 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14719
14720         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
14721           Fixes behaviour when the Text property of the box is String.Empty
14722
14723 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
14724
14725         * XplatUIX11.cs: Only send mouseleave for our client windows, not
14726           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
14727           a window)
14728
14729 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14730
14731         * FileDialog.cs: Visual enhancement for the popup buttons in 
14732           PopupButtonPanel
14733
14734 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14735
14736         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
14737           code
14738
14739 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
14740
14741         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
14742           highlighted menu items to match ms
14743
14744 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
14745
14746         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
14747
14748 2006-03-30  Mike Kestner  <mkestner@novell.com>
14749
14750         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
14751         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
14752         go active to account for HotLight to Selected transition.
14753         * MenuItem.cs: add internal Selected prop. Fill out the Status
14754         property by calculating it from item info. Add HotLight,
14755         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
14756
14757 2006-03-30  Mike Kestner  <mkestner@novell.com>
14758
14759         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
14760
14761 2006-03-29  Jackson Harper  <jackson@ximian.com>
14762
14763         * Form.cs: Implement TODO.
14764
14765 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
14766
14767         * PrintPreviewDialog.cs: Implemented missing methods and events; still
14768           missing proper dialog setup in the constructor
14769
14770 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
14771
14772         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
14773         * Control.cs:
14774           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
14775           - Fixed ResetBindings and removed TODO
14776           - Added check for cross-thread calls to get_Handle()
14777           - Added Marshaller attribute for set_Font to satisfy class status
14778         * FontDialog.cs: Removed TODOs that seemed implemented
14779         * UpDownBase.cs: Removed unneeded TODO and Fixme
14780         * MessageBox.cs: Implemented support for Default button and removed TODO
14781         * FileDialog.cs: Removed obsolete TODO
14782         * DomainUpDown.cs: Removed obsolete TODO
14783         * ButtonBase.cs: Removed obsolete TODO
14784         * XplatUIWin32.cs: Removed obsolete TODO
14785         * Form.cs:
14786           - Removed obsolete TODO
14787           - Calling CheckAcceptButton when the acceptbutton is changed to allow
14788             internal status updates
14789           - Making sure the active control is selected when the control is created
14790         * CurrencyManager.cs: Removed obsolete TODO
14791
14792 2006-03-29  Mike Kestner  <mkestner@novell.com>
14793
14794         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
14795         of PrintPreviewDialog and RichTextBox.
14796
14797 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
14798
14799         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
14800           DarkDark, Light and LightLight colors for a specific color
14801         * ThemeWin32Classic.cs:
14802           - Use Button drawing code to draw RadioButtons and CheckBoxes with
14803             Appearance = Button 
14804           - Make use of the new ResPool helper CPColor
14805           - Draw ProgressBar and StatusBar with correct 3D borders
14806
14807 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
14808
14809         * ColorDialog.cs: Return selected color. Fixes bug #77940.
14810
14811 2006-03-28  Mike Kestner  <mkestner@novell.com>
14812
14813         * ListView.cs: fix Icon layout to plan for scrollbar widths when
14814         calculating col/row counts.
14815
14816 2006-03-28  Mike Kestner  <mkestner@novell.com>
14817
14818         * ColumnHeader.cs:
14819         * ListView.cs:
14820         * ListViewItem.cs:
14821         * Menu.cs: 
14822         switch to explicit interface method implementation for some methods
14823         corcompare identifies as inconsistent with MS.
14824
14825 2006-03-28  Mike Kestner  <mkestner@novell.com>
14826
14827         * MainMenu.cs: 
14828         * Menu.cs:
14829         add a few missing methods from the class status output.
14830
14831 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
14832
14833         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
14834           correct.
14835
14836 2006-03-28  Mike Kestner  <mkestner@novell.com>
14837
14838         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
14839
14840 2006-03-27  Mike Kestner  <mkestner@novell.com>
14841
14842         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
14843         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
14844
14845 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
14846
14847         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
14848
14849 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14850
14851         * ThemeWin32Classic.cs:
14852           - GroupBox: Inserted a little gap between the text and the lines
14853             on the right side
14854           - Made the code in CPDrawBorder3D more readable
14855           - Corrected the drawing location of the up and down arrows in 
14856             CPDrawScrollButton
14857
14858 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14859
14860         * ControlPaint.cs: Corrected line widths in DrawBorder for
14861           ButtonBorderStyle Inset and Outset
14862
14863 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14864
14865         * ThemeWin32Classic.cs:
14866           - Rewrote the totally broken CPDrawBorder3D method. That was
14867             one of the main problems for the terrific ThemeWin32Classic
14868             look
14869           - Updated and corrected Button drawing
14870           - Correct the dimensions of the SizeGrip to match ms ones
14871           - Removed a small drawing glitch in DrawComboBoxEditDecorations
14872         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
14873           Border3DStyle.Sunken to match ms.
14874
14875 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
14876
14877         * ThemeWin32Classic.cs: First small part of the "de-uglify
14878           ThemeWin32Classic" effort, SizeGrip
14879
14880 2006-03-24  Jackson Harper  <jackson@ximian.com>
14881
14882         * XplatUIX11.cs: Give a max idle time of one second, this matches
14883         MS and forces an Idle event every second when there are no other
14884         events in the queue.
14885
14886 2006-03-24  Mike Kestner  <mkestner@novell.com>
14887
14888         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
14889         * ListView.Item.cs: fix layout issues with null image lists and images
14890         smaller than checkbox size.
14891         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
14892         mode like MS does.  It's weird, but consistent.  ;-)
14893         Fixes #77890.
14894
14895 2006-03-24  Mike Kestner  <mkestner@novell.com>
14896
14897         * ListView.cs: Scroll wheel support for the item control.  Fixes
14898         #77839.
14899
14900 2006-03-23  Jackson Harper  <jackson@ximian.com>
14901
14902         * ScrollableControl.cs: Special case negative sized areas, not
14903         zero.
14904         * MonthCalendar.cs: Save the rect of the clicked date so we can
14905         use it for invalidation.
14906         - Try to cut down on the number of invalidates
14907         - Invalidate the rect the mouse is over and was over when moving
14908         the mouse, so we get the focus box following the cursor.
14909
14910 2006-03-23  Mike Kestner  <mkestner@novell.com>
14911
14912         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
14913         focus rectangle drawing. Fixes #77835.
14914
14915 2006-03-23  Mike Kestner  <mkestner@novell.com>
14916
14917         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
14918         the if and else if and reverting back to the original == check on the
14919         None conditional.
14920
14921 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
14922
14923         * FontDialog.cs: Update the example panel if the selected index of
14924           the fontListBox changes.
14925
14926 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
14927
14928         * FileDialog.cs: Make FileDialog remember which directory it was in
14929           last in the same execution.
14930
14931 2006-03-22  Mike Kestner  <mkestner@novell.com>
14932
14933         * FileDialog.cs: make the DropDownMenu on the toolbar display
14934         RadioChecks since they are mutually exclusive and that's what MS does.
14935
14936 2006-03-22  Mike Kestner  <mkestner@novell.com>
14937
14938         * Theme.cs: add Color param to CPDrawMenuGlyph.
14939         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
14940         checks and radio marks and arrows are visible on highlighted items.
14941         * ControlPaint.cs: update to use new Theme signature.
14942
14943 2006-03-22  Mike Kestner  <mkestner@novell.com>
14944
14945         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
14946         is active. Fixes #77870.
14947
14948 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
14949
14950         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
14951           to be focused/selected after startup
14952
14953 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
14954
14955         * ColorDialog.cs: 
14956           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
14957             CustomColors and ShowHelp properties
14958           - Some internal rewrites to get better results when using the
14959             ColorMatrix
14960
14961 2006-03-22  Mike Kestner  <mkestner@novell.com>
14962
14963         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
14964         HoverSelection.  Fixes #77836.
14965
14966 2006-03-22  Mike Kestner  <mkestner@novell.com>
14967
14968         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
14969         ToggleButtons.  (De)Sensitize the Back button around a stack count of
14970         1, not 0.  Update ButtonSize based on a pixel count of the win32
14971         control.  Adjust the toolbar size/location for new button size.
14972
14973 2006-03-22  Jackson Harper  <jackson@ximian.com>
14974
14975         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
14976         true.
14977         * ScrollBar.cs: When doing increments and decrements we need to
14978         set the Value property so that ValueChanged gets raised. A
14979         possible optimization here would be to make an internal SetValue
14980         that doesn't invalidate immediately.
14981         * ToolTip.cs: Tooltips get added to their container (when
14982         supplied) so they get disposed when the container is disposed.
14983         - Don't create tooltips for String.Empty. This prevents all these
14984         little 2-3 pixel windows from showing up when running nunit-gui
14985         and driving me mad.
14986         * Form.cs: Don't set topmost when setting the owner if the handles
14987         haven't been created yet.  The topmost set will happen when the
14988         handles are created.
14989
14990 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
14991
14992         * XplatUIX11.cs:
14993           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
14994           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
14995             visible (to allow them to recalculate their sizes)
14996
14997 2006-03-21  Mike Kestner  <mkestner@novell.com>
14998
14999         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
15000         methods. Removed a ton of redundant code.  Still not really happy with
15001         the border rendering, but I think that's mainly because of the
15002         ControlDarkDark being black instead of a dark grey. Depending on how 
15003         close we want to be, we might want to revisit those color choices.
15004         Among the new features added during the refactor were DropDownArrow
15005         pressed rendering, Disabled image rendering.  Proper flat appearance
15006         boundary rendering.  Removed the Divider and Wrapping dividers since I
15007         can't figure out any combination of themes and conditions to make the
15008         MS control draw a horizontal line on a toolbar despite what the
15009         Divider property docs indicate.
15010         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
15011         conditions and incorrect layout.  Updated to coding standard.
15012         * ToolBarButton.cs: refactored layout and positioning code from
15013         ToolBar to here.  Invalidate wherever possible instead of forcing
15014         redraws of the whole toolbar. 
15015         (Known remaining issues: explicit ButtonSize smaller than provided
15016         images.)
15017
15018 2006-03-21  Mike Kestner  <mkestner@novell.com>
15019
15020         * ContextMenu.cs (Show): use the position parameter instead of just
15021         showing at the MousePosition.
15022
15023 2006-03-21  Jackson Harper  <jackson@ximian.com>
15024
15025         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
15026         control handle this.
15027         * TreeNodeCollection.cs: If we are clearing the root node we need
15028         to reset top_node so calcs can still happen.
15029         * ThemeWin32Classic.cs: This is a Flags so we need to check
15030         properly.
15031         
15032 2006-03-21  Jackson Harper  <jackson@ximian.com>
15033
15034         * DataGrid.cs: Create columns when the binding context has been
15035         changed.
15036         * X11Structs.cs: Keysyms are uints.
15037         - Add size to fix build.
15038
15039 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
15040
15041         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15042           XplatUIOSX.cs: 
15043           - Added ResetMouseHover method to allow controls to retrigger
15044             hovering if they need it more than once
15045           - Implemented MouseHoverTime and MouseHoverSize properties
15046         * Timer.cs: Start() must reset the interval
15047         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
15048           properties
15049
15050 2006-03-21  Jackson Harper  <jackson@ximian.com>
15051
15052         * X11Keyboard.cs: improved layout detection. Move the nonchar
15053         tables into this file.
15054         * KeyboardLayouts.cs: Move the tables into resource files.
15055
15056 2006-03-21  Mike Kestner  <mkestner@novell.com>
15057
15058         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
15059
15060 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
15061
15062         * Mime.cs: Various speed optimizations. Looking up mime types
15063           is now 2 times faster than before
15064
15065 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
15066
15067         * CreateParams.cs: Added internal menu field
15068         * Control.cs: 
15069           - Switched call order for UpdateBounds; now we always call
15070             the one that also takes ClientSize, and we're calculating the 
15071             client size via driver method in the others. The previous
15072             method of tracking client size by difference wasn't working
15073             for forms where even the starting client size wouldn't match
15074             the overall form size (due to borders) (Part of fix for #77729)
15075           - CreateParams(): Do not use parent.Handle unless the handle is
15076             already created. Causes havoc with Nexxia and throws off our
15077             creation of controls
15078         * XplatUIX11.cs:
15079           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
15080           - Switched handling of ConfigureNotify over to new PerformNCCalc 
15081             method (consolidates code)
15082           - Changed RequestNCRecalc to use new PerformNCCalc method
15083           - Added calls to RequestNCRecalc when menus and borders are changed
15084             to allow app to set NC size. (Part of fix for #77729) This matches
15085             when MS send a WM_NCRECALC on Win32 windows.
15086           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
15087             (Part of fix for #77729). This matches what MS does, they also
15088             send that message when the form is made visible.
15089           - XException.GetMessage: Improved usability of X errors by including
15090             a translation of the window into Hwnd and Control class
15091           - Improved debug info for window creation, reparenting and destruction
15092           - Created helper method WindowIsMapped() [Currently not used]
15093         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
15094         * Form.cs:
15095           - CreateParams: Now setting our menu on the new internal menu field
15096           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
15097             avoid calculating the same property twice
15098         * Hwnd.cs:
15099           - Improved usability of ToString() for debugging purposes
15100           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
15101             determine the height of the menu, instead of just the font. This
15102             required to also create a graphics context and to keep a bmp 
15103             around (for performance reasons)
15104
15105 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
15106
15107         * MenuAPI.cs: Added OnMouseUp method
15108         * Form.cs:
15109           - Now remembering the requested client size, avoids size errors
15110           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
15111             instead of base if the menu is active. This is required due to
15112             control now capturing and releasing on down/up and it would
15113             prematurely release our menu capture
15114
15115 2006-03-17  Jackson Harper  <jackson@ximian.com>
15116
15117         * KeyboardLayouts.cs: Add the czech layouts.
15118
15119 2006-03-16  Jackson Harper  <jackson@ximian.com>
15120
15121         * Control.cs: Use the viewport space when sizing not the controls
15122         client size, so things like ScrollableControl that effect the
15123         viewport size (when scrollbars are added) are computed correctly.
15124         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
15125         of ManagerEntrys.
15126         - Handle creating BindingManagers for null data sources.
15127         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
15128         source, otherwise when rows are added they are added to the 'fake'
15129         datasource and we will crash when trying to set the position in
15130         those rows.
15131         - Use Implicit scrollbars on the datagrid so they arent
15132         selectable.
15133         
15134 2006-03-16  Jackson Harper  <jackson@ximian.com>
15135
15136         * Binding.cs:
15137         * InternalWindowManager.cs:
15138         * MdiWindowManager.cs:
15139         * X11Keyboard.cs: I really want Mike to love me again (fix
15140         compiler warnings).
15141
15142 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
15143
15144         * DataGrid.cs:
15145           - OnMouseDown: Switch to editing mode when clicking on the cell
15146                          even if we're clicking on the cell that's currently 
15147                          selected
15148           - ProcessGridKey: Left/Right now wrap like MS.Net does
15149           - ProcessGridKey: Tab now knows to add a new row when tab is
15150                             pressed in the cell of the last column of the 
15151                             last row
15152           - ProcessGridKey: Enter now adds another row  if pressed in the last
15153                             row and selectes the new row, same column cell
15154           - ProcessGridKey: Home/End navigate columns, not rows, like 
15155                             originally implemented
15156           - Broke ProcessKeyPreview code out into an extra Internal method
15157             so it can be called from the edit code
15158         * DataGridTextBox.cs (ProcessKeyMessage):
15159           - Switched to accept Tab keypresses
15160           - Added F2 handling to allow jumping to the end of the edited cell
15161           - Added logic to allow moving caret left/right inside edited cell
15162             and making the edited cell jump when the caret hits cell borders
15163           - Tab and Enter are now passed to the datagrid after being handled
15164         * TextBoxBase.cs:
15165           - Removed capture code now that Control handles it
15166           - set_SelectionStart now ensures caret is visible
15167
15168 2006-03-16  Jackson Harper  <jackson@ximian.com>
15169
15170         * TrackBar.cs: Debackwards the increment/decrement for handling
15171         mouse clicks on the bar with vertical trackbars.
15172         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
15173         bottom to match MS.
15174
15175 2006-03-16  Mike Kestner  <mkestner@novell.com>
15176
15177         * ListView.cs: make shift/ctrl keyboard and mouse selection 
15178         consistent with the MS control. Fix a bug in
15179         SelectedListViewItemCollection.Clear that was pissing me off for the
15180         better part of a day because the collection was being altered
15181         underneath us as we walked the list.
15182
15183 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
15184
15185         * Control.cs: Not sure how we could miss this so long, but it seems
15186           that MS.Net has Capture set all the way from before calling 
15187           OnMouseDown through sending the mouse events until after
15188           OnMouseUp. This will fix DataGrid's selection being set to end
15189           at the location of the MouseUp.
15190
15191 2006-03-15  Jackson Harper  <jackson@ximian.com>
15192
15193         * BindingContext.cs: Check the binding after its added so that it
15194           can initialize the binding managers and hookup to events.
15195         * Binding.cs: Data members seem to sometimes include rows/cols in
15196           the format Row.Column we now take this into account.
15197           - Hookup to the position changed event so we can update the
15198           control when the position has changed in the data set.
15199         * CurrencyManager.cs: Take into account the row/col naming
15200           convention when creating dataset tables.
15201         * BindingContext.cs: Using a newer better way of storing
15202           datasource/datamember pairs.  Hopefully this better matches MS for
15203           looking up binding managers.
15204
15205
15206 2006-03-15  Jackson Harper  <jackson@ximian.com>
15207
15208         * BindingContext.cs: The currency manager needs the data member
15209         name, if the member is a data set we use the name to find the
15210         correct table.
15211         * CurrencyManager.cs: When creating the list prefer an IList over
15212         an IListSource.
15213         - Attempt to create a DataTable from a DataSet (TODO: might need
15214         some better error checking here, although MS doesn't seem to have much)
15215         - If we have a DataTable create a view and use it as our list.
15216
15217 2006-03-15  Mike Kestner  <mkestner@novell.com>
15218
15219         * ListView.cs: keep a matrix of the icon mode layout to facilitate
15220         keyboard navigation. Support Up/Down/Left/Right selection correctly
15221         for all 4 View modes.
15222         * ListViewItem.cs: add internal row/col fields for icon layouts.
15223
15224 2006-03-15  Jackson Harper  <jackson@ximian.com>
15225
15226         * TabControl.cs: Redraw the tabs when we resize so their newly
15227         calculated sizes are drawn on screen.
15228         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
15229         composite characters.
15230         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
15231         - filter events so that composite characters can be created
15232         patches by peter
15233         * X11Structs.cs: Add XIMProperties enum.
15234
15235 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15236
15237         * Control.cs (BringToFront, SendToBack): Don't use window or handle
15238           unless it's created
15239
15240 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15241
15242         * Control.cs (PerformLayout): We don't need to consider visiblity
15243           for anchoring, only for docking. This fixes 'whacky' alignment
15244           in listbox and other controls that use implicit scrollbars after
15245           the previous PerformLayout patch
15246         * ListBox.cs: Switched to use implicit scrollbars
15247           
15248 2006-03-14  Mike Kestner  <mkestner@novell.com>
15249
15250         * ToolBar.cs: 
15251         * VScrollBar.cs:
15252         - chain up the "new event" overrides to base and use
15253         OnEvent to raise them.  Part of fix for bug #76509.
15254
15255 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
15256
15257         * FileDialog.cs: Do not select an item in the parent directory
15258           on backspace
15259
15260 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15261
15262         * Control.cs (PerformLayout): It would seem that we considered
15263           invisible windows for our layout. Not quite the right thing
15264           to do. Now we don't any longer, thereby fixing bug #76889.
15265
15266 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15267
15268         * Control.cs (CanFocus): I goofed. A control can have focus 
15269           even though it's not selectable. Made it match MS docs.
15270
15271 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15272
15273         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
15274           center by default (fixes #76895)
15275         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
15276           all uses of Border3DSides.All with the explicit ORd together
15277           Left|Right|Top|Bottom because I assume that nobody was aware 
15278           that All also implies a center fill. Most places I checked had
15279           a fill right above.
15280         * ProgressBarStyle.cs: Added
15281
15282 2006-03-13  Mike Kestner  <mkestner@novell.com>
15283
15284         * ListView.cs: fix breakage in drag shadow header positioning 
15285         from Peter's csc compilation fix.
15286
15287 2006-03-13  Mike Kestner  <mkestner@novell.com>
15288
15289         * ListView.cs: fix NRE produced by backspacing twice in a focused
15290         FileDialog.
15291
15292 2006-03-13  Mike Kestner  <mkestner@novell.com>
15293
15294         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
15295
15296 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15297
15298         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
15299           be changed
15300         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
15301           the allowed size before making programmatic size changes
15302
15303 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
15304
15305         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
15306           set, metacity is broken and will still use the emty sizes in 
15307           the struct. (Fix for #77089)
15308
15309 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15310
15311         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
15312           WindowExStyles and marked both enums as Flags
15313         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
15314           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
15315           to match WindowStyles split
15316         * XplatUIX11.cs:
15317           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
15318           - Updated to match WindowStyles split
15319         * XplatUIWin32.cs:
15320           - Fixed FosterParent creation, was using ExStyle on the Style field
15321             (This should help with Popup focus issues)
15322           - Updated to match WindowStyles split
15323
15324 2006-03-13  Jackson Harper  <jackson@ximian.com>
15325
15326         * MdiWindowManager.cs: Use the system menu height. Fixes some
15327         strange sizing issues.
15328
15329 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15330
15331         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
15332         * TextBoxBase.cs:
15333           - Scroll to caret after inserting text (#77672)
15334           - Make scroll range one pixel higher, fixes off-by-one error (and
15335             makes underlines visible on the last line)
15336
15337 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
15338
15339         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
15340           the keyboard state from being stuck with keys in 'pressed' state when
15341           focus is switched away via keyboard
15342         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
15343           reset the keyboard if no X11 KeyUp events are expected to come
15344         * X11Structs.cs: Switched type of Visible to bool to match driver
15345
15346 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15347
15348         * TextControl.cs:
15349           - Switched caret to be just 1 pixel wide, matches MS and looks less
15350             clunky
15351           - Moved caret display 1 pixel down from the top of the control
15352             to improve view
15353           - InsertCharAtCharet: Update the selection start if moving the caret
15354             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
15355           - No longer always creating the caret when the caret methods are
15356             called. Only the actual ShowCaret/HideCaret will do that now
15357           - Only setting caret visible if the owner control has focus
15358           - UpdateView: Added invalidation-shortcut logic for center and right 
15359             aligned text. Previously we'd update all according to the left
15360             logic which caused drawing errors. Also fixed height of invalidated
15361             areas, now properly invalidating the whole area (was off-by-one)
15362           - owner_HandleCreated: Always generate the document when the
15363             handle is created; this ensures that 
15364         * TextBoxBase.cs:
15365           - Fixed situation where caret would disappear under the right
15366             window border, also improved scrolling behaviour on left-
15367             aligned textboxes
15368           - Fixed right-aligned textboxes to have a border to the
15369             right instead of the caret being under the right border
15370         * XplatUIX11.cs:
15371           - Switched from 'nested' to simple visible/not visible tracking 
15372             for caret (part of fix for #77671)
15373           - No longer passing through translated FocusIn/FocusOut messages
15374             since we were notifying too often and the wrong windows. Instead
15375             we just notify our focussed window of receiving or loosing focus
15376         * XplatUIWin32.cs: Switched from 'nested' show/hide 
15377           counting for caret to simple visible yes/no behaviour (part of 
15378           fix for #77671)
15379
15380 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15381
15382         * Mime.cs: Remove debug code...
15383
15384 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15385
15386         * MimeGenerated.cs: Removed
15387         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
15388           and subclasses) from /usr/(local/)share/mime and
15389           $HOME/.local/share/mime.
15390
15391 2006-03-10  Jackson Harper  <jackson@ximian.com>
15392
15393         * MdiWindowManager.cs: Recalc the NC area when a window is
15394         maximized/restored so that the menu area is drawn on forms that
15395         don't have a menu.
15396
15397 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15398
15399         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15400           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
15401           us to force a WM_NCCALCRESIZE message being sent. This is needed
15402           for MDI maximizing.
15403
15404 2006-03-10  Jackson Harper  <jackson@ximian.com>
15405
15406         * Form.cs: We need to use the ActiveMenu when calculating menu
15407         height.
15408         - Fix nullref when the window manager hasn't been created yet.
15409         * Control.cs: Fix nullref when we try to bring a control to the
15410         front that has no parent.
15411         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
15412         height.
15413         - Add a dummy item to the maximized menu so it always has the
15414         correct height. Otherwise when there are no menus we don't get our
15415         icon and buttons.
15416         
15417
15418 2006-03-10  Jackson Harper  <jackson@ximian.com>
15419
15420         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
15421         stuff.
15422         * Form.cs: Make the window_state internal so the window managers
15423         can track it.
15424         - When an MDI child is maximized let its window manager create the
15425         main menu (so it can add its icon).
15426         - Notify the window managers of state changes
15427         - Let the window manager paint its buttons and handle button
15428         clicks on the menu when it is maximized.
15429         * InternalWindowManager.cs: Move the prev_bounds into the mdi
15430         window manager, since tool windows don't use it, only mdi windows.
15431         - Tell the main form that we don't want it to handle NCPAINT
15432         itself to avoid extra painting.
15433         - Handle clicks on a maximized windows menu.
15434         - Handle window state changes
15435         - Handle minimize/maximize clicks correctly by setting the window state.
15436         * MdiWindowManager.cs: Add an icon menu that (the menu you get
15437         when clicking on the forms icon).
15438         - New method to create a forms maximized menu. This is its normal
15439         menu + an icon.
15440         - Handle window state changes.
15441         - Handle sizing of maximized windows.  Maximized windows are just
15442         drawn bigger then the parent visible area. All controls are still
15443         there, they are just outside the visible area (this matches windows).
15444         * MdiClient.cs: No scrollbars when a child window is maximized.
15445         - Let the children windows figure out how big they should be when
15446         sizing maximized windows.
15447         - Implement a version of ArrangeIconicWindows somewhat similar to
15448         Windows version.  There are some little differences, but I don't
15449         think any app will rely on the layout of minimized mdi windows.
15450
15451 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15452
15453         * Padding.cs: Several fixes to allow compiling with csc 2.0
15454
15455 2006-03-09  Jackson Harper  <jackson@ximian.com>
15456
15457         * Menu.cs:
15458         * MenuItem.cs: Cheap hack so we can add items to the list without
15459         the events being raised.  This allows adding mdi items during
15460         drawing. TODO: Should probably find a better time to add the items.
15461
15462 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15463
15464         * ThemeWin32Classic.cs:
15465           - CheckBox_DrawText: Added logic to not wrap if not enough space
15466             is available (Fix for bug #77727)
15467           - RadioButton_DrawText: Added logic not to wrap if not enough
15468             space is available (Fix for bug #77727). Also removed some
15469             duplicate code, DrawString always drawing the regular text
15470             before hitting the if statement.
15471
15472 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
15473
15474         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
15475
15476 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15477
15478         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
15479         * ContainerControl.cs: Partial implementation of some 2.0 scaling
15480           methods. Moved the new 2.0 properties into alphabetical order with
15481           other properties and added MonoTODO tags
15482
15483 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15484
15485         * AutoScaleMode.cs: Added. Fix build.
15486
15487 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15488
15489         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15490           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
15491           and was requiring premature handle creation for calls from above
15492         * Form.cs, Control.cs: Removed handle arguments from calls to
15493           CalculateClientRect()
15494
15495 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15496
15497         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
15498           drag_column.column_rect is MarshalByRef and can't be used that way
15499
15500 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15501
15502         * AxHost.cs: Added deserialization constructor for 
15503           AxHost+State (fixes 77743)
15504
15505 2006-03-09  Mike Kestner  <mkestner@novell.com>
15506
15507         * ListView.cs: 
15508         - Added column drag reordering for details view.
15509         - fixed behavior when mouse is dragged off column and
15510         AllowColumnReorder is false.
15511         * ColumnHeader.cs: clone the format too in Clone.
15512         * Theme.cs: add DrawListViewHeaderDragDetails method.
15513         * ThemeWin32Classic.cs:
15514         - impl new method for drawing drag column shadows and targets.
15515         - support column offset for details mode in DrawListViewItem.
15516
15517 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15518
15519         * TextControl.cs: Reset the char_count when the document is cleared
15520           (Fixes bug reported on mono-winforms mailing list)
15521
15522 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15523
15524         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
15525           of calling base we simply process the key ourselves, since both
15526           DefWindowProc and the handled method would set m.Result. 
15527           (Fixes #77732)
15528
15529 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15530
15531         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
15532           method also moves the window; instead implemented a copy of
15533           Control.ScaleCore (Part of fix for #77456)
15534         * TextBoxBase.cs: 
15535           - Created new CreateGraphicsInternal method to allow providing
15536             a graphics context when no handle is created without triggering
15537             handle creation. (Part of fix for #77456)
15538           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15539         * TextControl.cs: 
15540           - Switched Constructor to require TextBoxBase instead of Control (to
15541             allow uncast access to CreateGraphicsInternal)
15542           - Safeguarded use of owner.Handle property. No longer accessing it
15543             unless the handle is already created.
15544           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15545           - Now triggering a recalc when owning control becomes visible
15546         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
15547           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
15548           premature handle creation (Part of fix for #77456)
15549         * Control.cs:
15550           - We now only destroy our double-buffering buffers when the
15551             control is resized or disposed, but not when visibility
15552             changes. (The code even re-created them twice every time)
15553           - Now requiring a redraw of the buffer on visibility changes
15554             (fixes bug 77654 part 2)
15555           - Not passing OnParentVisibleChanged up unless the control
15556             is visible
15557           - CanFocus: Fixed to match MS documentation
15558           - Focus: Fixed to return actual focus state and to check if
15559             setting focus is legal before setting it
15560
15561 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
15562
15563         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
15564           when to draw focus rectangle by looking at parent focus and
15565           selected state instead. This fixes TabPages on Linux sometimes
15566           having none or multiple focus rectangles.
15567         * XplatUIX11.cs (SetFocus): 
15568           - Don't set the focus if the same window already has focus
15569           - Use SendMessage instead of PostMessage (like it's Win32
15570             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
15571             to match MS behaviour
15572         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
15573           are not selectable.
15574
15575 2006-03-07  Jackson Harper  <jackson@ximian.com>
15576
15577         * PictureBox.cs: Revert line I accidently committed last week.
15578
15579 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
15580
15581         * Control.cs: 
15582           - Added new IsRecreating and ParentIsRecreating properties to
15583             allow testing if RecreateHandle has been called on ourselves
15584             or one of our parents
15585           - WndProc(WM_DESTROY): If our control handle is being recreated
15586             we immediately need to create the handle when receiving the
15587             destroy, that way our child windows find a valid parent handle
15588             when they themselves are being recreated upon WM_DESTROY receipt
15589             (fix for bug #77654 part 1)
15590         * XplatUIX11.cs:
15591           - DestroyWindow: WM_DESTROY must be sent to our own window before
15592             notifying any child windows. MS documents that child windows
15593             are still valid when WM_DESTROY is received. (Control now relies on
15594             this behaviour)
15595           - Added some fine-grain debug options
15596
15597 2006-03-06  Jackson Harper  <jackson@ximian.com>
15598
15599         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
15600         box and base calculations off this.
15601         * MdiChildContext.cs:
15602         * MdiWindowManager.cs: Don't need to ensure scrollbars here
15603         anymore.
15604         
15605 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
15606
15607         * Splitter.cs: In situations where the affected control is added
15608           to the parent's control list after the splitter, we would not
15609           populate affected. Now we try populating it on mousedown, if
15610           it's not already set, and force it to be re-set whenever our
15611           parent changes.
15612
15613 2006-03-03  Matt Hargett  <matt@use.net>
15614
15615         * Control.cs: implement Control.Padding
15616         * Padding.cs: -Padding.All returns -1 when constructing with the
15617         implicit default ctor
15618         -Padding.ToString() matches MS.NET
15619         * ContainerControl.cs: implement
15620         ContainerControl.AutoScaleDimensions
15621         * ListControl.cs: implement ListControl.FormattingEnabled
15622         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
15623         * ButtonBase.cs:
15624         * TabPage.cs: Implement UseVisualStyleBackColor.
15625         * PictureBox.cs: Implement PictureBox.InitialImage.
15626
15627 2006-03-03  Mike Kestner  <mkestner@novell.com>
15628
15629         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
15630         event declarations to proxy to base event.
15631         * ListViewItem.cs: update to use ItemControl.
15632         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
15633         * ThemeWin32Classic.cs: update to new ListView theme API and fix
15634         column header label rendering for 0 width columns.
15635
15636 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
15637
15638         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
15639           that causes the control to be created. Fixes #77476.
15640
15641 2006-03-02  Jackson Harper  <jackson@ximian.com>
15642
15643         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
15644         expose_pending.
15645
15646 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
15647
15648         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
15649           passed in for the EventArgs (fixes #77690)
15650
15651 2006-03-01  Jackson Harper  <jackson@ximian.com>
15652
15653         * ScrollBar.cs: Refresh afterbeing resized.
15654
15655 2006-02-28  Mike Kestner  <mkestner@novell.com>
15656
15657         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
15658         Clean up a tracker compile warning.
15659         * MenuItem.cs: add internal PerformPopup method.
15660         [Fixes #77457]
15661
15662 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15663
15664         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
15665           implicit expose) when the text is set to null
15666
15667 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
15668
15669         * RichTextBox.cs (FlushText): When newline is true, we always
15670           need to split the line, even if no text is on it and we may
15671           never eat newlines. (Fixes #77669)
15672
15673 2006-02-28  Mike Kestner  <mkestner@novell.com>
15674
15675         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
15676         and set Selected instead.
15677         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
15678         collections.
15679
15680 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15681
15682         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
15683
15684 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
15685
15686         * FontDialog.cs:
15687           - Got rid of the panel. All controls are now directly added to
15688             the dialog form
15689           - It is now possible to set a font with the Font property
15690           - MinSize and MaxSize property do now what they should
15691           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
15692           - Searching and selecting a font with the font textbox works now,
15693             the same applies to the style and size textbox
15694           - Draw the correct 3D border in the example panel
15695           - Fixed a little mem leak (unused fonts didn't get disposed)
15696           - Many other internal updates/rewrites...
15697           - Fix typo
15698
15699 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
15700
15701         * TextControl.cs: 
15702           - InsertRTFFromStream: Added 'number of characters inserted' argument
15703           - set_SelectedRTF: Now using the number of characters to calculate
15704             the new location for the selection and cursor (x/y cannot be used
15705             due to potentially already wrapped text)
15706
15707 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
15708
15709         * TextControl.cs: Added property and implemented means to allow 
15710           disabling recalculation of a document (can be used to speed up
15711           multiple inserts and is needed to make RTF inserts predictable, see
15712           bug #77659)
15713         * RichTextBox.cs: Using the new NoRecalc property of Document to
15714           keep x/y insert locations predictable. Also makes it faster inserting
15715           large chunks of RTF
15716
15717 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
15718
15719         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
15720           it's easier for a child control to handle the other messages without
15721           having to duplicate the special functionality
15722         * TextBoxBase.cs
15723           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
15724             code to handle processing the key ourselves, in order to get 
15725             access to the result of KeyEventArgs.Handled. We now only call 
15726             ProcessKey if they key hasn't been handled already. Fixes #77526.
15727           - set_Text: If null or empty string is given, just clear the 
15728             document. Fixes part of #77526
15729
15730 2006-02-27  Jackson Harper  <jackson@ximian.com>
15731
15732         * SizeGrip.cs: Paint the background color before painting the grip
15733         so things look right.
15734         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
15735
15736 2006-02-27  Mike Kestner  <mkestner@novell.com>
15737
15738         * ListView.cs:
15739           - Restructure layout and invalidation model to remove a ton of
15740           flicker from the control and speed up performance in general.
15741           - Add manual column resize, flickers like crazy, but I already have
15742           some ideas on how I'll fix that. (#76822)
15743           - Merge the three Icon-based views into a single layout method.
15744           - Move item selection interaction logic from the item since 
15745           interaction with the collections is more appropriate to the view.
15746           - Deselection on non-item clicks.
15747         * ListViewItem.cs:
15748           - Encapsulate most of the layout. Add some internal props to trigger
15749           layout.  Move to a model where Items invalidate themselves instead
15750           of just invalidating the whole control every time something changes.
15751           - Invalidate on Text/Caption changes.
15752           - switch to an offset based layout model to avoid having to absolute
15753           position every element on item moves.
15754           - correct checkbox layout to conform to MS layout.
15755         * ThemeWin32Classic.cs:
15756           - refactor some column header drawing code.
15757           - fix string justification for column headers (#76821)
15758           - make SmallIcon labels top justified for compat with MS impl.
15759         * ThemeClearlooks.cs:
15760           - adjust to new ListViewItem internal checkbox bounds api.
15761
15762 2006-02-27  Jackson Harper  <jackson@ximian.com>
15763
15764         * Control.cs:  Change where implicit controls fall in the zorder.
15765         They are now on top of all children.
15766         - Synced AddImplicit code with Add
15767         - Removed unused enumerator.
15768         * SizeGrip.cs: Remove the TODO as its been TODONE.
15769
15770 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
15771
15772         * TextControl.cs(Insert): Combine the last lines unless the insertion
15773           string ends with \n\n, otherwise we leave one line too many (Fixes
15774           something I noticed with the testapp for #77526; the bug itself was
15775           already fixed in the previous checkin)
15776
15777 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
15778
15779         * RichTextBox.cs:
15780           - SelectionColor and SelectionFont methods no longer set absolute
15781             styles. Instead, the keep font or color respectively (This 
15782             resolves a long-standing FIXME in the code)
15783           - When flushing RTF text, the insert code now considers text trailing
15784             behind the insertion point (Fixes the bug where when replacing
15785             the selected text via SelectedRTF the remainder of the line behind 
15786             the selection would stay on the first insertion line)
15787         * TextBoxBase.cs:
15788           - AppendText now updates the selection points after inserting text
15789           - AppendText now ensures that the last tag (sometimes 0-length) of
15790             the document is used for the style information (Fixes part of 
15791             bug #77220)
15792         * TextControl.cs:
15793           - Created new FontDefiniton class to allow describing partial style
15794             changes
15795           - StreamLine() now takes a lines argument, to allow it to decide
15796             whether an encountered zero-length tag is the last in the document
15797             (which must be kept to not loose the font/color contained in it,
15798             for later appends)
15799           - Created Combine() and Split() methods for Marker structs, to 
15800             support marker updates due to reformatted documents (soft line
15801             wraps)
15802           - Implemented Document.CaretTag setter
15803           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
15804             of the last line (Not the cause, but also exposed by bug #77220)
15805           - Added LineTag argument to InsertString method, to allow callers
15806             to force a certain tag to be used (required to force use of the
15807             trailing zero-length tag of a document)
15808           - Now updating markers in Combine(), to avoid stale tag markers
15809           - Added some method descriptions to aid maintenance
15810           - Implemented new FormatText concept, allowing additive/subtractive
15811             formatting by only specifying the components that are to be 
15812             changed. This was needed for resolving the RTB.SelectedColor/
15813             RTB.SelectedFont fixmes
15814           - Added Break() support method to allow breaking up linetags (used
15815             for partial formatting)
15816           - Added GenerateTextFormat() method. It is used for partial 
15817             formatting and allows to generate a full font/color from given
15818             attributes and an existing tag.
15819
15820 2006-02-26  Jackson Harper  <jackson@ximian.com>
15821
15822         * XplatUIX11.cs:  Use the correct caption height.
15823         - Translate hittest coordinates to screen coords to match MS.
15824         * XplatUIWin32.cs: When we create MDI windows we need to reset
15825         some of the style flags, so we get a nice blank window, and can
15826         draw all the decorations ourselves.
15827         - Set a clipping rectangle on the non client paint event, the
15828         window manager drawing code needs one.
15829         * Form.cs: The window manager needs to know when the window state
15830         has been updated.
15831         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
15832         don't need to factor in border and title sizes in these
15833         methods. TODO: Remove the args and fix the call points.
15834         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
15835         properly.
15836         - Let the driver set the cursors.
15837         - Improve active window handling
15838         - Correct sizes for title bars and buttons.
15839         - Match MS drawing better
15840         * MdiWindowManager.cs: We don't need to handle border style
15841         updates specially anymore.
15842         - Check for scrollbars when windows are done moving
15843         - Handle Active properly.
15844         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
15845         correctly. I am spewing the exception though, so we don't hide the
15846         bugs.
15847         
15848 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
15849
15850         * DataGridViewRowPostPaintEventArgs.cs,
15851           DataGridViewCellPaintingEventArgs.cs,
15852           DataGridViewRowCollection.cs,
15853           DataGridViewRowPrePaintEventArgs.cs,
15854           DataGridViewCell.cs: Clear a few warnings and implement a few
15855           exceptions that should be thrown.
15856
15857 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
15858
15859         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
15860           'inheriting' our parent's (non-default) cursor. (Part of
15861            the fix for #77479)
15862
15863 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
15864
15865         * XplatUIX11.cs: Fixed cast to make csc happy
15866
15867 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
15868
15869         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
15870           it's for the client area (part of fix for #77479 and needed
15871           for MDI window cursor handling)
15872         * XplatUIX11.cs
15873           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
15874             the appropriate default cursors and also passing the message
15875             up the parent chain 
15876           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
15877             for non-client areas
15878
15879 2006-02-15  Jackson Harper  <jackson@ximian.com>
15880
15881         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
15882         is a real MDI window
15883
15884 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
15885
15886         * X11DesktopColors.cs: Instead of checking the desktop session
15887           string for "KDE" check if it starts with "KDE"
15888
15889 2006-02-10  Jackson Harper  <jackson@ximian.com>
15890
15891         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
15892         systems).
15893
15894 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
15895
15896         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
15897           errors
15898         * ColorDialog.cs:
15899           - Got rid of the panel. All controls are now directly added to
15900             the dialog form
15901           - Changed to mono coding style
15902
15903 2006-02-10  Jackson Harper  <jackson@ximian.com>
15904
15905         * InternalWindowManager.cs: We don't need the set visibility to
15906         false hack anymore now that peter has written beautiful shutdown
15907         code.
15908
15909 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
15910
15911         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
15912           where already explicitly destroyed
15913
15914 2006-02-10  Jackson Harper  <jackson@ximian.com>
15915
15916         * MdiClient.cs: Handle the case where windows are too high or to
15917         the left and we need scrollbars.
15918
15919 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
15920
15921         * MimeIcon.cs: Added some icons
15922         * FileDialog.cs:
15923           - Fixed bug #77477
15924           - Got rid of the panel. All controls are now directly added to
15925             the dialog form
15926           - Changed to mono coding style
15927           - On Linux "My Computer" and "My Network" will now show some
15928             more usefull information. A new class, MasterMount, gathers
15929             this information from /proc/mount. Updated MWFFileView to make
15930             use of this information
15931           - Fixed a bug that caused FileDialog to crash when
15932             ".recently_used" file had a zero size
15933           - FilterIndex does now what it should
15934           - Some Refactoring
15935         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
15936             FileDialog changes
15937
15938 2006-02-09  Jackson Harper  <jackson@ximian.com>
15939
15940         * ComboBox.cs: Don't touch if null.
15941
15942 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
15943
15944         * Cursor.cs: 64bit safeness fix
15945         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
15946
15947 2006-02-09  Jackson Harper  <jackson@ximian.com>
15948
15949         * Form.cs: If a form is made into an MDI form update the styles so
15950         all the props can get set correctly.
15951         - Kill the mdi_container when we dont need it anymore.
15952         * InternalWindowManager.cs: Add missing NOT
15953
15954 2006-02-08  Jackson Harper  <jackson@ximian.com>
15955
15956         * InternalWindowManager.cs: Respek clipping when drawing MDi
15957         decorations.
15958
15959 2006-02-08  Jackson Harper  <jackson@ximian.com>
15960
15961         * Hwnd.cs: Add bits to track non client expose events.
15962         * XplatUIX11.cs: Track non client expose events on the hwnd. This
15963         gives us a proper invalid rect and will allow for some nice
15964         optimizations with NC client drawing
15965         - MDI windows are children windows, so move their style handling
15966         into the child window block.
15967         * InternalWindowManager.cs: Remove a state reset that was
15968         getting invoked at the wrong time. Fixes managed windows getting
15969         into a 'stuck' captured state.
15970
15971 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
15972
15973         * TextControl.cs (Document.ctor): Now initializing 
15974           selection_anchor. Fixes #77493
15975
15976 2006-02-07  Jackson Harper  <jackson@ximian.com>
15977
15978         * TrackBar.cs: The increment/decrements were backwards.
15979
15980 2006-02-07  Mike Kestner  <mkestner@novell.com>
15981
15982         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
15983         to the instance itself.
15984
15985 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
15986
15987         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
15988           on ulongs and pointers, the size differs between 32bit and 64bit
15989           systems. 
15990
15991 2006-02-07  Mike Kestner  <mkestner@novell.com>
15992
15993         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
15994         for 64 bit platforms to work around a metacity bug. 
15995
15996 2006-02-07  Jackson Harper  <jackson@ximian.com>
15997
15998         * TrackBar.cs: Process the input keys we need, and hookup to
15999         KeyDown instead of using WndProc, so we get key messages.
16000
16001 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
16002
16003         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
16004           machine we're on. 
16005         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
16006           we need to translate the XdndVersion atoms array before sending it
16007
16008 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
16009
16010         * XplatUIX11.cs: 
16011           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
16012             number of bits for the property, not the number of bytes. The
16013             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
16014             but would not crash since it specified 8 bits instead of 4 bits)
16015           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
16016             defined as XID -> long in the C headers)
16017           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
16018             references since those are now IntPtr to begin with
16019           - Switched all Atom.XXX 'int' casts to IntPtr casts
16020           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
16021           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
16022           - Added XChangeActivePointerGrab DllImport (for X11DnD)
16023         * X11Structs.cs:
16024           - Changed 'int' type for Atoms in XEvent structures to IntPtr
16025           - Changed atom in HoverStruct to be IntPtr
16026         * X11DnD.cs:
16027           - Removed local DllImports, switched code to use those from XplatUIX11
16028           - Removed/fixed casts related to the switch of Atom to be a IntPtr
16029
16030 2006-02-06  Mike Kestner  <mkestner@novell.com>
16031
16032         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
16033         method signatures in the import region.  There may still be some
16034         lingering struct marshaling issues, as I didn't drill down into those.
16035         Yet.
16036
16037 2006-02-06  Jackson Harper  <jackson@ximian.com>
16038
16039         * ComboBox.cs: Dont manually set the top_item, this is computed
16040         when the scrollbar position is set.
16041
16042 2006-02-06  Mike Kestner  <mkestner@novell.com>
16043
16044         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
16045         startup crashes on amd64.  There's other fixes needed.  All pinvoke
16046         usage of Atom needs to be mapped to IntPtr for example.  And there are
16047         likely other int/long issues to be addressed.
16048
16049 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
16050
16051         * FileDialog.cs: One more...
16052
16053 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16054
16055         * FileDialog.cs: Next try
16056
16057 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16058
16059         * FileDialog.cs: First part of fix for #77464
16060
16061 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16062
16063         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
16064           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
16065           AcceptButton border drawing.
16066
16067 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
16068
16069         * Form.cs: Moved positioning of form after auto scaling is applied,
16070           otherwise it would possibly use wrong form size.
16071
16072 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
16073
16074         * Control.cs (RecreateHandle): No need to re-create any child
16075           controls, the child windows will get destroyed automatically by
16076           the windowing system or driver, and re-created when the handle
16077           is being accessed the first time. Fixes #77456
16078         * Form.cs: No longer setting the form to closing if the handle is 
16079           being recreated. This seems like the right thing to do, don't
16080           have a bug or testcase for this, though.
16081
16082 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16083
16084         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
16085           controls to avoid unwanted side effects
16086
16087 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
16088
16089         * Control.cs: 
16090           - ScaleCore needs to scale the bounds, not the ClientSize of the 
16091             control. Fixes #77416.
16092           - DefaultSize is 0,0 for control
16093         * TextBoxBase.cs: 
16094           - DefaultSize is 100, 20
16095           - SetBoundsCore: Now enforcing the height, no matter if the provided
16096             height is more or less than the preferred one, as long as AutoSize
16097             is on
16098         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
16099
16100 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16101
16102         * Control.cs:
16103           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
16104             call unless both performLayout is true *and* we have a pending
16105             layout change
16106           - ResumeLayout: MS does not completely nest Suspend and Resume,
16107             they bottom out at 0, fixed our code to match that.
16108           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
16109             SetBoundsCore, we were updating even when we shouldn't. This fixes
16110             swf-anchors mis-anchoring when resizing the app fast and lots.
16111           - UpdateDistances: Now only setting the left and top distance if 
16112             we have a parent and are not suspended, this is based on
16113             a suggestion by Don Edvaldson in bug #77355.
16114           - OnVisibleChanged: Fixed logic when to create the control. We may
16115             not create the control if we have no parent or if it's not visible;
16116             switched to using Visible property instead of is_visible field 
16117             since the property also considers parent states. This fixes a bug
16118             when starting Paint.Net
16119
16120 2006-02-02  Jackson Harper  <jackson@ximian.com>
16121
16122         * Form.cs: If the forms handle hasn't been created yet don't call
16123         into xplatui to make it top most, just set the topmost flag on the
16124         form in CreateParams
16125         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
16126
16127 2006-02-01  Jackson Harper  <jackson@ximian.com>
16128
16129         * ScrollableControl.cs: Refactored the Recalculate method a
16130         little, this wasn't handling all the variants of bottom and right
16131         bars needed to be added and added/removed based on their
16132         counterparts being added/removed (which changes the drawable
16133         size). Also we special case client widths and heights of 0 and
16134         don't add the scrollbar for those.
16135
16136 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
16137
16138         * XplatUIX11.cs: 
16139           - Added method to get AbsoluteGeometry(); currently unused, but might
16140             be used in the future, if we try again to figure out toplevel
16141             coordinates with some more crappy window managers
16142           - Added FrameExtents() method to retrieve the WM set decoration size
16143           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
16144             to deal with at least KDE, FVWM and metacity (Fixes #77092)
16145         * Hwnd.cs: 
16146           - Added whacky_wm tracking var for metacity
16147           - Added logic to have default menu height if the actual menu height
16148             has not yet been calculated (part of fix for #77426)
16149         * Form.cs: Keep track whether client size has been set and re-set 
16150           it if a menu is added/removed afterwards (Fixes #77426)
16151
16152 2006-01-31  Jackson Harper  <jackson@ximian.com>
16153
16154         * Control.cs: When a new Site is set on the component attempt to
16155         pull the AmbientProperties from it.
16156
16157 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
16158
16159         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
16160           in the background of the owning form. Fixes #77332
16161
16162 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16163
16164         * MimeIcon.cs: Fix for #77409
16165
16166 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16167
16168         * XplatUIX11GTK.cs: Initial import
16169
16170 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
16171
16172         * FixedSizeTextBox: fixes class signature
16173
16174 2006-01-30  Jackson Harper  <jackson@ximian.com>
16175
16176         * FixedSizeTextBox.cs: New internal class that represents a
16177         textBox that will not be scaled.
16178         * TreeView.cs:
16179         * ComboBox.cs:
16180         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
16181         standard TextBox.
16182                 
16183 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
16184
16185         * XplatUIX11.cs: Retrieve default screen number instead of
16186           assuming 0. Attempted fix for #77318
16187
16188 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
16189
16190         * XplatUIWin32.cs: 
16191           - GetWindowPos: When a window is parented by FosterParent, use 
16192             the desktop instead of FosterParent as the base to get coordinates
16193           - CreateWindow: Don't make FosterParent the parent window for Popups
16194             if we don't want a taskbar entry, Popups automatically don't get one
16195         * Hwnd.cs: Need to call remove to actually remove the key from the
16196           hash table
16197
16198 2006-01-30  Mike Kestner  <mkestner@novell.com>
16199
16200         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
16201
16202 2006-01-30  Jackson Harper  <jackson@ximian.com>
16203
16204         * TreeView.cs:
16205         * TreeNode.cs: Raise events no matter how the treenode is
16206         checked. Patch by Don Edvalson.
16207
16208 2006-01-30  Jackson Harper  <jackson@ximian.com>
16209
16210         * TreeNode.cs: Signature fix.
16211
16212 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
16213
16214         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
16215
16216 2006-01-20  Mike Kestner  <mkestner@novell.com>
16217
16218         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
16219         event forwarding when menus are active.
16220         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
16221         Most of the patch is pdb's with a little rework.
16222
16223 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16224
16225         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
16226           Removed GetMenuDC and ReleaseMenuDC methods; replaced
16227           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
16228         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
16229         * InternalWindowManager.cs: Added use of PaintEventStart/End to
16230           handling of WM_NCPAINT message, now passing the PaintEventArgs to
16231           the PaintWindowDecorations method
16232         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
16233         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
16234         * MenuAPI.cs: Made tracker window invisible
16235         * XplatUIWin32.cs:
16236           - Removed GetMenuDC and ReleaseMenuDC methods
16237           - Implemented the client=false path for PaintEventStart and
16238             PaintEventEnd
16239
16240 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16241
16242         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
16243         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
16244           styles
16245         * Form.cs: 
16246           - MaximizeBox, MinimizeBox: Recreate the handle when setting
16247             the style
16248           - CreateParams: Reworked the styles to match MS look'n'feel,
16249             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
16250             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
16251
16252 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16253
16254         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
16255           window is not mapped, since otherwise every form that's being 
16256           created is considered minimized, which is wrong.
16257         * Form.cs: Catching the exception and returning our internal value
16258           instead
16259
16260 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16261
16262         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
16263           SetWindowMinMax() to have means to tell the driver about the minimum,
16264           maximum and maximized state window sizes. (Part of the fix for #76485)
16265         * Form.cs:
16266           - Implemented tracking of minimum and maximum window size, now calling
16267             new SetWindowMinMax() driver method to tell the driver (Part of the
16268             fix for #76485)
16269           - Finished handling of WM_GETMINMAXINFO method, now setting all values
16270             (Completes fix for #76485)
16271           - Calling new SetWindowMinMax driver method when the handle for a 
16272             form is created, to make sure the driver knows about it even if
16273             the values have been set before the window was created
16274           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
16275             to avoid messing up our anchoring calculations (partial fix
16276             for #77355)
16277         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
16278         * XplatUIX11.cs:
16279           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
16280           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
16281             (and presumably other freedesktop.org compliant WMs). Left the
16282             assumption unmapped=minimized, needed for SetVisible to work.
16283           - Now setting the window state when creating windows
16284           - Fixed SetVisible to consider/set the window state when mapping
16285             a Form. We cannot set the state before it's mapped, and we cannot
16286             use Form.WindowState once it's mapped (since it would ask the
16287             driver and get 'normal'. Therefore, we grab the state before
16288             mapping, map, and then set state.
16289           - Implmemented SetWindowMinMax method; Metacity does not seem to
16290             honor the ZoomHints, though.
16291         * XplatUIWin32.cs:
16292           - Removed MINMAXINFO (moved to XplatUIStructs)
16293           - Added SetWindowMinMax stub (on Win32 the only way to set that
16294             information is in response to the WM_GETMINMAXINFO message, which
16295             is handled in Form.cs)
16296           - Added logic to SetVisible to set the proper window state when a 
16297             form is made visible (fixes #75720)
16298
16299 2006-01-26  Jackson Harper  <jackson@ximian.com>
16300
16301         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
16302         same way we handle them with Invoke.
16303
16304 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
16305
16306         * Form.cs:
16307           - Added tracking of window state so CreateParams can return
16308             the appropriate style
16309           - Moved setting of WS_CAPTION style in CreateParams to allow
16310             styles without caption
16311         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
16312           control if the TextBox property is accessed. Fixes #77345
16313         * Control.cs:
16314           - get_Created: now uses is_disposed and is_created to determine
16315             return value (suggested by Jackson)
16316           - CreateHandle: No longer exits if the handle is being recreated
16317           - RecreateHandle: If the handle is not yet created call the 
16318             appropriate method to create either control or handle. If the
16319             control is already created CreateHandle will simply exit instead
16320             of just creating the handle
16321         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
16322           now SendMessage WM_DESTROY directly to the control when DestroyWindow
16323           is called.
16324         * XplatUIX11.cs: 
16325           - When DestroyWindow is called, instead of waiting for the 
16326             DestroyNotification from X11, we directly post it to the WndProc
16327             and immediately dispose the hwnd object.
16328             Same applies to DestroyChildWindows, and this obsoletes the
16329             expose_pending tracking. Contrary to Win32 behaviour we destroy our
16330             child windows before our own, to avoid X11 errors.
16331           - Removed the direct sending of WM_PAINT on UpdateWindow
16332         * XplatUIWin32.cs:
16333           - Reworked DoEvents and GetMessage to allow access to internal queue
16334             even when trying non-blocking access to the queue.  Fixes #77335. 
16335             Based on a patch suggestion by Don Edvalson. The new private
16336             GetMessage can now also be used as a backend for a PeekMessage
16337             frontend version.
16338         * XplatUI.cs: Improved debug output for CreateWindow
16339
16340 2006-01-25  Jackson Harper  <jackson@ximian.com>
16341
16342         * Help.cs: Allow param to be null. Patch by Don Edvalson.
16343
16344 2006-01-24  Jackson Harper  <jackson@ximian.com>
16345
16346         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
16347         when we have a MaxDropItems lower then the selected index.
16348
16349 2006-01-24  Jackson Harper  <jackson@ximian.com>
16350
16351         * Control.cs: Don't allow selection of non visible controls, allow
16352         selection of controls without parents.
16353
16354 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16355
16356         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
16357         * DataGridDrawingLogic.cs: Add editing row only when is necessary
16358
16359 2006-01-23  Jackson Harper  <jackson@ximian.com>
16360
16361         * UpDownBase.cs: Make the textbox handle all the selection and
16362         tabbing. This fixes tabing to updown controls.
16363
16364 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16365
16366         * TextBoxBase.cs: fixes exception thown the object was null
16367
16368 2006-01-23  Jackson Harper  <jackson@ximian.com>
16369
16370         * ButtonBase.cs: Just use the base CreateParams. They set
16371         visibility and enabled correctly.
16372         * ComboBox.cs:
16373         * TrackBar.cs:
16374         * MonthCalendar.cs: Lets let the base set as much of the
16375         createparams as possible so we don't have duplicate code all over
16376         the place.
16377
16378 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
16379
16380         * ThemeGtk.cs: Added TrackBar and some experimental code to
16381           get double buffering back
16382
16383 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
16384
16385         * DataGrid.cs: Allows row number set internally higher than the last
16386         when creating a new row. Restores the editing functionality.
16387
16388 2006-01-20  Mike Kestner  <mkestner@novell.com>
16389
16390         * MimeIcon.cs: delay Image creation until the icons are accessed
16391         instead of creating 190 scaled images on GnomeHandler startup.
16392
16393 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
16394
16395         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
16396           first call base before processing the event. Fixes #77279
16397
16398 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
16399
16400         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
16401           that the stride for the GDI bitmap would match the stride of
16402           a DIB or a Cursor.
16403
16404 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
16405
16406         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
16407
16408 2006-01-19  Jackson Harper  <jackson@ximian.com>
16409
16410         * ComboBox.cs: Hookup the text controls keydown event so we get
16411         those when the text control has the focus.
16412
16413 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16414
16415         * Label.cs: Now using the base events instead of defining new ones;
16416           this allows us to just call the base properties without having to
16417           duplicate all base property logic 
16418
16419 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16420
16421         * Label.cs: A label by default is not a tabstop (Fixes one of our
16422           failing nunit tests)
16423
16424 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16425
16426         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
16427         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
16428
16429 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16430
16431         * Cursor.cs: Reimplemented creating cursor bitmaps without using
16432           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
16433           This fixes #77218
16434         * XplatUIWin32.cs: 
16435           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
16436             constructor creates images that can't be saved. Part of the fix
16437             for #76103
16438           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
16439           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
16440             bug fix for handling window state in forms properly)
16441
16442 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16443
16444         * ThemeGtk.cs: Simplify ScrollBar drawing
16445
16446 2006-01-18  Jackson Harper  <jackson@ximian.com>
16447
16448         * Splitter.cs: Set the default dock style for the splitter control
16449         in the constructor.
16450
16451 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16452
16453         * ThemeGtk.cs: Corrected StateType and ShadowType for
16454           gtk_paint_box
16455
16456 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16457
16458         * Control.cs: Make use of Theme.DoubleBufferingSupported
16459         * ThemeGtk.cs:
16460           - Added drawing for flat style buttons
16461           - Added ScrollBar drawing
16462
16463 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16464
16465         * ThemeClearlooks.cs: Removed some unneeded code.
16466         * ThemeGtk.cs: First part of ThemeGtk enhancements.
16467
16468 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16469
16470         * LinkLabel.cs: We need to update the hover drawing when
16471           leaving the control as well.
16472
16473 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
16474
16475         * DataGrid.cs: Clicking on non empty areas in the columns
16476            area was giving an exception
16477
16478 2006-01-17  Jackson Harper  <jackson@ximian.com>
16479
16480         * ThemeWin32Classic.cs:
16481         * ListView.cs: Do not draw/clip the headers when the header style
16482         is None.
16483
16484 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16485
16486         * DataGrid.cs: Fixes 77260
16487         
16488 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16489
16490         * DataGrid.cs: Clicking on a column on a empty grid was giving
16491           an exception
16492
16493 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16494
16495         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
16496           or any keypress will crash the grid.
16497
16498 2006-01-17  Mike Kestner  <mkestner@novell.com>
16499
16500         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
16501         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
16502         invisible/previously-visible items.
16503         [Fixes #76909]
16504
16505 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
16506
16507         * ThemeClearlooks.cs:
16508         - Added CL_Draw_Button method; now other theme controls that are 
16509           not derived from button or do not have a button can draw buttons
16510           too
16511         - Updated ComboBox drawing
16512         - Beautified RadioButton drawing
16513         - Corrected drawing of bottom and left tabs
16514         - Beautified DateTimePicker and MonthCalendar
16515         - Added CPDrawButton and CPDrawRadioButton
16516
16517 2006-01-16  Jackson Harper  <jackson@ximian.com>
16518
16519         * ComboBox.cs: Set the initial value of the scrollbar to the
16520         current index. Reduce the numbers of refreshs and IndexOfs called.
16521
16522 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
16523
16524         * FileDialog.cs: When the file listview is focused hitting the
16525           backspace key moves the fileview to the parent directory
16526
16527 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16528
16529         * Form.cs: 
16530           - Added RecreateHandle call when changing taskbar visibility to 
16531             trigger reparenting in Win32 driver (Fixes #75719)
16532           - If a window has minimize or maximize buttons, it cannot have
16533             a help button
16534         * XplatUIWin32.cs:
16535           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
16536             the toplevel form with FosterParent (A toolwindow not on the
16537             taskbar) (Fixes #75719)
16538           - Made FosterParent a toolwindow
16539
16540 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16541
16542         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
16543
16544 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16545
16546         * ToolTip.cs: If SetToolTip is called from a control and the mouse
16547           is currently over that control, make sure that tooltip_window.Text
16548           gets updated
16549
16550 2006-01-13  Mike Kestner  <mkestner@novell.com>
16551
16552         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
16553
16554 2006-01-13  Jackson Harper  <jackson@ximian.com>
16555
16556         * TreeView.cs: On MS GetNodeAt never actually factors in the X
16557         value passed.  Also redraw the selected node when we recieve
16558         focus, so tabbing between trees works correctly.
16559
16560 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16561
16562         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
16563           ~/.gconf/%gconf-tree.xml, so use
16564           .gconf/desktop/gnome/interface/%gconf.xml
16565
16566 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16567
16568         * TextControl.cs: Draw text in gray if control is disabled
16569
16570 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16571
16572         * TreeView.cs: Draw the focus rectangle outside the highlight, to
16573           make sure it's always visible. Fixes #76680.
16574
16575 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16576
16577         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
16578
16579 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
16580
16581         * PageSetupDialog.cs: Added.
16582         * PrintDialog.cs: Attributes.
16583         * PrintPreviewControl.cs: Updates.
16584         * PrintPreviewDialog.cs: Updates.
16585         
16586 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16587
16588         * Control.cs: Undid my selection check fix, since it's not needed
16589         * TextBoxBase.cs:
16590           - Now considering the presence of hscroll/vscroll when sizing
16591             vscroll/hscroll respectively. Fixed bug #77077
16592           - Added Left/Up/Down/Right to IsInputKey list to prevent
16593             ContainerControl from stealing them. This fixes what I broke
16594             with my last checkin.
16595
16596 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
16597
16598         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
16599           I finally understand how the property can be set without a setter :-)
16600
16601 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16602
16603         * Application.cs:
16604           - Switched RunLoop to use static Message.Create to create a 
16605             Message object
16606           - Added PreProcessMessage call in runloop for keyboard events; this
16607             is part of the fix for #77219, I overlooked this originally in the
16608             MSDN doc for PreProcessMessage
16609         * Control.cs:
16610           - Removed call to PreProcessMessage from handling of keyboard 
16611             messages; it's supposed to be done in the message pump
16612           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
16613             per MSDN documentation.
16614           - IsInputChar: All chars are input chars by default; removed the 
16615             parent calling chain, MS does not document that
16616           - PreProcessMessage: If IsInputChar is true, we want to return false
16617             to allow dispatching of the message
16618           - When selecting the next control, now also check that we're not
16619             selecting ourselves again and therefore return a false positive.
16620         * TextBoxBase.cs:
16621           - Tried to match return values for IsInputKey and ProcessDialogKey
16622             to what MS returns; moved processing of our special keys outside
16623             ProcessDialogKey since MS does not seem to return true on those.
16624           - Moved code that previously was in ProcessDialogKey into new private
16625             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
16626           - Reworked handling of WM_CHAR to not have to duplicate code from
16627             Control.cs anymore, instead we simply call down to base.
16628            
16629 2006-01-12  Jackson Harper  <jackson@ximian.com>
16630
16631         * ComboBox.cs: We always need to refresh the text area when
16632         EndUpdate is called. Fixes the combobox in the file dialog.
16633         * Control.cs: Don't create the creator_thread until the controls
16634         handle is created.  Also in InvokeRequired we check if the
16635         creator_thread is null. This gives the effect of InvokeRequired
16636         returning true if the controls handle is not created yet, and
16637         matches MS.
16638
16639 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16640
16641         * XplatUI.cs:
16642           - Added StartLoop() driver method. This is used to allow drivers to
16643             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
16644             loop for a particular thread
16645           - Added EndLoop() driver method. This is called once the message
16646             pump for the thread is shut down
16647           - Added SupportsTransparency method to allow the driver to indicate
16648             opacity support for windows
16649         * Form.cs:
16650           - Removed TODO attribute, completed AllowTransparency property
16651           - Added documented logic to Opacity
16652         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
16653           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
16654           versions of CompatibleTextRendering
16655         * X11Structs.cs: Added opacity atom to our atom enumeration
16656         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
16657           of a form might be set before it's reparented by the WM, and we need
16658           the opacity value without calling up to Form)
16659         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
16660           SupportsTransparency() driver methods
16661         * Application.cs: Now calling StartLoop and EndLoop driver methods
16662         * XplatUIX11.cs:
16663           - Added opacity atom registration
16664           - Added StartLoop()/EndLoop() methods. They're empty right now but
16665             will need to get implemented when we switch to a per-thread queue
16666           - Implemented SupportsTransparency() method
16667           - Implemented SetWindowTransparency() method
16668           - Added support for setting the opacity value when a window is
16669             reparented (since the opacity needs to be set on the WM frame)
16670         * XplatUIOSX.cs, XplatUIWin32.cs:
16671           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
16672
16673 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16674
16675         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
16676
16677 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16678
16679         * FileDialog.cs: Added ToolTip for MWFFileView
16680         * MimeIcon.cs: Rewrote GnomeHandler.
16681           - Get currently used gnome icon theme from
16682             ($HOME)/.gconf/%gconf-tree.xml
16683           - Make use of inherited icon themes
16684           - Support SVG icon themes like Tango via librsvg
16685
16686 2006-01-12  Miguel de Icaza  <miguel@novell.com>
16687
16688         Revert's Jackson's revert which broke 2.0 builds.   Fix both
16689         builds. 
16690         
16691         * Application.cs: Move the use_compatible_text_rendering outside
16692         the NET_2_0 define.  If we ever need to use the
16693         use_compatible_text_rendering on the individual controls they will
16694         access the variable from the common shared code paths.
16695
16696 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16697
16698         * XplatUI.cs:
16699           - Added more granular debug options
16700           - Added method to print both window text and id
16701           - Switched debug output to use new Window() debug method
16702           - Added IsEnabled() driver method
16703           - Added EnableWindow() driver method
16704         * Form.cs:
16705           - Removed end_modal; no longer needed, new loop handles termination
16706             via 'closing' variable
16707           - If form is modal, setting DialogResult will now initiate loop
16708             termination via 'closing' variable
16709           - Added support for is_enabled/WS_DISABLED to CreateParams
16710           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
16711             does all the work
16712           - Removed code that's now in RunLoop from ShowDialog()
16713           - Added various documented sanity checks to ShowDialog()
16714           - Added handling of WM_DESTROY message; we set 'closing' on getting
16715             the message to indicate the message pump to terminate
16716           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
16717             send by the Application.ExitThread method. (We send the message
16718             to destroy the window after all other events have been
16719             processed through the queue, instead of destroying the handle 
16720             directly)
16721           - Moved code from Close() method to WM_CLOSE handler; added logic
16722             to only send close-related events if the form is not displayed
16723             modal
16724         * Splitter.cs (..ctor): Fixed typo in resource name
16725         * Control.cs:
16726           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
16727             brush now
16728           - set_Cursor: Now only setting calling into XplatUI if the handle for
16729             the control is already created; this avoids implict handle creation
16730             or crashes if it's not created
16731           - set_Enabled: Now setting the enabled state via the new driver method
16732             instead of just tracking it
16733           - CreateParams: Added logic to set WS_DISABLED based on enabled state
16734           - CreateControl: Reordered event firing and method calls to more
16735             closely fire events in the order MS does. Now setting the
16736             enabled state in the driver when creating the control.
16737           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
16738             match MS order
16739         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
16740           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
16741         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
16742         * Hwnd.cs:
16743           - Added tracking of window enabled state (get_Enabled/set_Enabled)
16744           - Added EnabledHwnd property to easily allow a driver to find the
16745             handle of the first enabled window in the parent chain (this is
16746             used by drivers to pass up input events of disabled windows)
16747         * XplatUIDriver.cs: Added IsEnabled() method
16748         * Application.cs:
16749           - Removed crude and obsolete exiting tracking variable
16750           - Removed internal ModalRun(); replaced by RunLoop()
16751           - Implemented private CloseForms() method to allow closing all 
16752             windows owned by a particular (or all) threads
16753           - Exit() now properly closes all windows without forcing the message
16754             pump to quit
16755           - Removed obsolete InternalExit() method
16756           - Changed Run() methods to use new RunLoop() message pump
16757           - Implemented new RunLoop() method for both modal and non-modal forms
16758         * CommonDialog.cs:
16759           - get_CreateParams: Added setting of WS_DISABLED
16760           - Simplified ShowDialog(); now all the work is done in RunLoop(),
16761             invoked via Form.ShowDialog()
16762         * NativeWindow.cs: We don't remove the window from the collection when
16763           the handle is destroyed; there might still be messages for it in the
16764           queue (mainly the resulting WM_DESTROY); instead it will be removed
16765           when Control calls InvalidateHandle in the WM_DESTROY handler
16766         * XplatUIX11.cs:
16767           - CreateWindow: Added logic to handle the WS_DISABLED window style
16768           - EnableWindow: Implemented based on Hwnd.Enabled
16769           - GetMessage: Reset PostQuitState so the method can be called again
16770           - Implemented support for disabled windows (passing messages to the
16771             first enabled parent) in handling all input messages
16772           - Added optimizations for handling Expose events
16773           - Implemeted new driver method IsEnabled()
16774           - Now always resetting paint pending tracking vars when we start paint
16775           - Re-implemented UpdateWindow via just sending a WM_PAINT message
16776         * XplatUIOSX.cs: Added IsEnabled method stub
16777         * XplatUIWin32.cs: Implemented new IsEnabled() method
16778
16779 2006-01-11  Jackson Harper  <jackson@ximian.com>
16780
16781         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
16782         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
16783         variables a little.
16784         * ColorDialog.cs: Clear out the old form before adding the new
16785         panel.  
16786
16787 2006-01-11  Jackson Harper  <jackson@ximian.com>
16788
16789         * X11Dnd.cs: Make sure to add all the text formats when adding
16790         strings to the data object.
16791         * TreeNodeCollection.cs: When adding to a sorted tree we need to
16792         do some redrawing too.  Also change the UpdateNode to an
16793         UpdateBelow so the newly added node gets painted.
16794         
16795 2006-01-11  Miguel de Icaza  <miguel@novell.com>
16796
16797         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
16798         LinkLabel.cs, PropertyGrid.cs: Implement the
16799         UseCompatibleTextRendering property for 2.x
16800
16801         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
16802
16803 2006-01-11  Jackson Harper  <jackson@ximian.com>
16804
16805         * TreeView.cs: Use the property for setting the selected node so
16806         the correct events get raised.
16807         * TreeNode.cs: Update the tree when the fore/back colours of a
16808         node are set.
16809
16810 2006-01-10  Jackson Harper  <jackson@ximian.com>
16811
16812         * TreeView.cs: Allow setting SelectedNode to null.
16813
16814 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16815
16816         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
16817
16818 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16819
16820         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
16821
16822 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16823
16824         * PrintDialog.cs: Added attributes and set default property values.
16825
16826 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16827
16828         * PrintControllerWithStatusDialog.cs: 
16829         Added PrintControllerWithStatusDialog.
16830
16831 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16832
16833         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
16834         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
16835
16836 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
16837
16838         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
16839
16840 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
16841
16842         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
16843         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
16844
16845 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
16846
16847         * MimeIcon.cs: Added internal class SVGUtil.
16848
16849 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
16850
16851         * FileDialog.cs: Don't crash if there are two files with the
16852           same name but different locations.
16853
16854 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
16855
16856         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
16857         dates across multiple month grids. Used to not highlight entire 
16858         month, but does now.
16859         
16860 2006-01-06  Jackson Harper  <jackson@ximian.com>
16861
16862         * MonthCalendar.cs: Removed DoEvents call to prevent a running
16863         message loop. Change timer intervals to numbers that seem more
16864         natural.
16865
16866 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
16867
16868         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
16869           object for location info since screen object is now implemented.
16870
16871 2006-01-05  Jackson Harper  <jackson@ximian.com>
16872
16873         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
16874         * AsyncMethodResult.cs: We no longer use a WeakReference for the
16875         AsyncMethodResult, this is because we ALWAYS want the
16876         ManualResetEvent to get set.
16877         * Control.cs: When disposing use an async invoke to call shutdown
16878         code, so that thigns don't block on the finalizer thread.  Also
16879         check if we even have a message loop before trying to send
16880         messages, if we don't then don't bother sending messages.
16881         - No more weak references for async methods
16882         * XplatUIDriver.cs: No more weak references for async methods.
16883
16884 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16885
16886         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
16887           returns two FontFamily with the same name
16888
16889 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
16890
16891         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
16892           drawing disabled text. Instead using the ColorGrayText color
16893
16894 2006-01-04  Jackson Harper  <jackson@ximian.com>
16895
16896         * TreeNode.cs: redraw the node when its image index is changed.
16897
16898 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
16899
16900         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
16901           time I checked there are no others like it.
16902
16903 2006-01-04  Jackson Harper  <jackson@ximian.com>
16904
16905         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
16906         this gives the behavoir I was looking for.
16907         * Control.cs: Special case Invoking EventHandlers, this matches MS
16908         and fixes part of bug #76326.
16909
16910 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16911
16912         * ThemeClearlooks.cs, FileDialog.cs:
16913           - Reflect the latest Theme class changes
16914           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
16915             with DateTime
16916             
16917 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
16918
16919         * Theme.cs: Cache UI resource images and resize them if needed
16920
16921 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
16922
16923         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
16924           is called. This fixes the crash in Nexxia when setting the font
16925           attributes in the chat. [However, RTF needs a look-over to make sure
16926           that all SelectionXXX methods handle the special case that selection
16927           is empty and therefore the change must be applied to all text starting
16928           at the cursor/selection start]
16929
16930 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
16931
16932         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
16933           XplatUIOSX.cs: Added SendMessage and PostMessage methods
16934         * X11Keyboard.cs: Switched to new way of calling PostMessage
16935
16936 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
16937
16938         * Theme.cs: Added theme interface for images to allow the theme to
16939           control what images are used for things like FileDialog, MessageBox
16940           icons, etc.
16941         * MessageBox.cs: Now uses the new Theme icon/image interfaces
16942
16943 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
16944
16945         * FileDialog.cs:
16946           - Removed some dead code
16947           - Opening a recently used file does work now
16948           - Small UI enhancements
16949           - Refactoring
16950
16951 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
16952
16953         * FileDialog.cs: Forgot too add __MonoCS__
16954
16955 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
16956
16957         * FileDialog.cs: We are able to read recently used files now let's
16958           go on and write them.
16959
16960 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
16961
16962         * FileDialog.cs: Breathe some life into "last open"/"recently used"
16963           button
16964         * MimeIcon.cs: Do a check for the top level media type also
16965
16966 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
16967
16968         * ThemeClearlooks.cs:
16969           - Added CPDrawStringDisabled
16970           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
16971             some chars if the text doesn't fit into text_rect
16972           - DrawListViewItem: If View = View.LargeIcon center the image;
16973             rewrote the drawing of ListViewItem.Text if View = 
16974             View.LargeIcon
16975
16976 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
16977
16978         * MimeIcon.cs: Use default KDE icon theme if there is no
16979           "48x48" directory for the current icon theme, fixes #77114
16980         * Mime.cs: Disable not working and actually not used code. 
16981         * ThemeWin32Classic.cs:
16982           - Replace "new SolidBrush" in GetControlBackBrush and
16983             GetControlForeBrush with ResPool.GetSolidBrush
16984           - Changed DrawListViewItem from private to protected virtual
16985         * FileDialog.cs:
16986           - Added form.MaximizeBox = true
16987           - Don't throw an exception if there is a broken symbolic link
16988
16989 2005-12-23  Jackson Harper  <jackson@ximian.com>
16990
16991         * TabControl.cs: Give the panels focus, keyboard navigation is
16992         fixed so this works correctly now.
16993         - We need these key events also.
16994         * ToolBar.cs: Remove some of the poor mans double buffering.
16995         
16996 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
16997
16998         * ComboBox.cs: The internal TextBox now returns the focus.
16999
17000 2005-12-23  Jackson Harper  <jackson@ximian.com>
17001
17002         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
17003
17004 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17005
17006         * Control.cs: Removed debug code
17007         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
17008           implicit children
17009
17010 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
17011
17012         * Control.cs: When creating the control, update the Z-order after
17013           all it's children are created, too. (Fixes nexxia not showing
17014           picturebox bug)
17015
17016 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17017
17018         * Control.cs: Do not update the anchoring distances if layout is
17019           suspended, instead do it once layout is resumed
17020
17021 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
17022
17023         * Control.cs: 
17024           - After many hours of debugging, for both Jackson and
17025             myself, it turns out that it helps to set the parent of a control
17026             if you want to actually see it onscreen. In the spirit of that
17027             discovery, we're now setting the parent of the control and
17028             it's children when the control's handle is created. This fix
17029             will make Lutz Roeder's Reflector run happily. 
17030           - now just creating the handle instead of the whole control when
17031             getting a graphics context for the control.
17032
17033 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17034
17035         * ScrollableControl.cs: When calculating the canvas, don't consider
17036           the scrollbar widths. Instead, predict if horizontal scrollbar
17037           will affect canvas when deciding on vertical display and vice versa.
17038
17039 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17040
17041         * RichTextBox.cs: Set default RTF font for documents that don't
17042           have a font table (Fixes #77076)
17043
17044 2005-12-22  Jackson Harper  <jackson@ximian.com>
17045
17046         * TextBoxBase.cs: It's difficult to do, but you can have an empty
17047         clipboard. This prevents a NullRef in that case.
17048         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
17049         clipboard. PRIMARY is for the currently selected text only. (We
17050         should implement PRIMARY at some point.
17051
17052 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17053
17054         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
17055           a Unicode function with a structure that was defined in Ansi way.
17056           This fixes #76942.
17057
17058 2005-12-21  Jackson Harper  <jackson@ximian.com>
17059
17060         * StatusBar.cs: Statusbar handles its fore/back colours on it's
17061         on. Because thats how it rolls. (and this avoids it using ambient
17062         colours).
17063         * ThemeWin32Classic.cs: Use the proper back color for filling.
17064         * Menu.cs: Use the system menu bar color for drawing menu
17065         bars. Using the window back color will bring ambient colours into
17066         the picture.
17067
17068 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
17069
17070         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
17071           Bitmaps were created and not disposed.
17072
17073 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17074
17075         * Control.cs (CreateControl): Don't do anything if the control is
17076           already created, otherwise we'd fire the OnCreated event more than
17077           once
17078
17079 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17080
17081         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
17082           will always match. Instead return -1. Fixes #76464.
17083
17084 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17085
17086         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
17087           neither the beginning nor the end of the line (Fixes bug #76479)
17088
17089 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17090
17091         * Control.cs:
17092           - ControlNativeWindow.ControlFromHandle(): Now handling situation
17093             where handle is invalid
17094           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
17095             instead of slower linear search
17096         * NativeWindow.cs: Don't remove the window from the hashtable until
17097           after the driver has destroyed it (since the driver might use
17098           Control.FromHandle to lookup the control object
17099         * Hwnd.cs: Added DestroyPending property to track if a window is 
17100           already destroyed as far as the driver is concerned and only hasn't
17101           yet notified the control
17102         * XplatUIX11.cs:
17103           - Activate(): Check if the window is still valid before using the 
17104             handle
17105           - Implemented DestroyChildWindow() method to mark child windows as
17106             destroyed when a window is destroyed. This prevents situations 
17107             where we might call an X method based on queued events for a
17108             window that already has been destroyed but we haven't yet pulled
17109             the destroy method from the queue.
17110           - Added a call to the new DestroyChildWindow() method to the drivers
17111             DestroyWindow code. Also now marking the destroyed window itself
17112             as pending
17113
17114 2005-12-20  Jackson Harper  <jackson@ximian.com>
17115
17116         * StatusBar.cs:
17117         * StatusBarPanel.cs: Don't calculate panel sizes on draw
17118         anymore. Just do them when needed, also track the rects of panels
17119         so that we can optimize refreshing more in the future.
17120
17121 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
17122
17123         * ColorDialog.cs: Fixed focus drawing in small color controls
17124
17125 2005-12-19  Jackson Harper  <jackson@ximian.com>
17126
17127         * InternalWindowManager.cs:
17128         * MdiWindowManager.cs: Cleanup some coordinate system changes so
17129         moving windows works properly.
17130
17131 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
17132
17133         * Control.cs: 
17134           - Removed call to InitLayout() from SetBoundsCore(); doc says
17135             it's only called when a control is added to a container
17136           - Split InitLayout logic, moved to separate UpdateDistances() method
17137             since we need to perform those calculations more often than just
17138             when adding the control to a container. (Needed to fix #77022)
17139           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
17140           - Reduced the OnBindingContextChanged events count, don't send them
17141             unless the control is created, we still aren't totally matching
17142             MS, but I can't quite figure out some of their rules
17143
17144 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17145
17146         * ThemeClearlooks.cs: Corrected distance between ProgressBar
17147           stripes
17148
17149 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17150
17151         * ThemeClearlooks.cs:
17152           - Updated ProgressBar drawing
17153           - Corrected drawing of ScrollBars and scroll buttons
17154           - Some temporary fixes for minor pixel artefacts
17155
17156 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
17157
17158         * Control.cs:
17159           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
17160             cause events to be sent in the same order as MS does.
17161           - Added ChangeParent() method to trigger various OnXXXChanged events
17162             that need to be fired when a parent changes (This is a reworking
17163             of the patch from r54254, with the X11 errors fixed)
17164           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
17165             since on MS we get OnLayoutChanged events when calling Clear()
17166           - Changed Enabled property to consider parent state as well, if a
17167             parent is not enabled, the control will not be either
17168           - Changed Parent property to simply call Controls.Add() since that
17169             now does all the work required, this way we avoid code duplication
17170           - Threw in a few OnBindingsContextChanged calls to try and match
17171             when MS sends them. We seem to send a few too many, though.
17172           - Added call to CreateControl when adding the control to a parent.
17173             We were never calling CreateControl. Still needs some work, in
17174             some places we treat HandleCreated and ControlCreated as equal, 
17175             which is wrong
17176           - Removed obsolete commented out code from UpdateZOrder()
17177
17178 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17179
17180         * ThemeClearlooks.cs: Updated TrackBar drawing.
17181
17182 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17183
17184         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
17185
17186 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17187
17188         * FileDialog.cs: Add the Help button and the open readonly
17189           checkbox only if needed
17190
17191 2005-12-16  Jackson Harper  <jackson@ximian.com>
17192
17193         * Control.cs: Make sure we have an active menu before trying to
17194         process commands on it. Prevents menu-less forms from crashing
17195         when Alt is pressed.
17196         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
17197         Dieter Bremes.
17198         * RichTextBox.cs: Expand statement to help out gmcs and fix the
17199         2.0 build.
17200
17201 2005-12-16  Jackson Harper  <jackson@ximian.com>
17202
17203         * InternalWindowManager.cs: Don't translate tool windows screen
17204         coordinates. This fixes windows 'bouncing' around when being moved.
17205
17206 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17207
17208         * TextBoxBase.cs:
17209           - MaxLength now treats 2^31-1 equal to unlimited length (this is
17210             not quite MS compatible, MS uses that number only for single line
17211             and 2^32-1 for multi-line, but I figure it won't hurt keeping
17212             the limit at 2GB)
17213           - Now enforcing the MaxLength limit when entering characters
17214           - Added argument to internal Paste() method to track if it's called
17215             from programatically or via keyboard, since keyboard driven pastes
17216             need to enforce max-length
17217           - Added logic to Paste to only paste as many chars as MaxLength 
17218             allows
17219         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
17220         * TextControl.cs:
17221           - Added Length property to return number of characters in document
17222           - Added private CharCount property which only tracks actual chars
17223             in the document (no linefeeds) and fires event when CharCount
17224             changes
17225           - Added tracking of character count to all methods that alter it
17226           - Added LengthChanged event to allow applications to subscribe
17227             to any changes to the document
17228
17229 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17230
17231         * TextBox.cs: 
17232           - Removed local password_char field (moved to TextBoxBase)
17233           - Now setting the document's password var when password is
17234             set
17235         * TextBoxBase.cs:
17236           - Added password_char field (needed here so MultiLine can
17237             access it)
17238           - Added logic to MultiLine property setter to set the document's
17239             variable when password display is allowed
17240           - Removed debug code and made some debug code conditional
17241         * TextControl.cs:
17242           - Added RecalculatePasswordLine() method to handle special password
17243             char only lines
17244           - Added PasswordChar property, also added related tracking vars
17245           - Draw() method now uses local text var for grabbing text to draw,
17246             this var is set to line.text unless we're doing password display,
17247             then it is set to the pre-generated all-password-chars line
17248           - Added calling RecalculatePasswordLine() method for password lines
17249
17250 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17251
17252         * Hwnd.cs: 
17253           - Added Reparented property to allow tracking of Window Manager
17254             reparenting actions (which affect X/Y calculations of toplevel 
17255             windows)
17256           - Made ToString() print window handles in hex
17257         * XplatUIX11.cs:
17258           - AddConfigureNotify(): Now uses reparented state off Hwnd to
17259             determine if X/Y needs offsetting
17260           - AddConfigureNotify(): Fixed offset calculations
17261           - Now adds ReparentNotify messages into the queue
17262           - Now processes ReparentNotify messages and causes a 
17263             WM_WINDOWPOSCHANGED message to be sent upstream if a window
17264             is reparented (as most likely it's X/Y coordinates are changed
17265             due to that)
17266
17267 2005-12-14  Jackson Harper  <jackson@ximian.com>
17268
17269         * XplatUIX11.cs: Tool windows still need to respek focus.
17270
17271 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17272
17273         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
17274           have a working release
17275
17276 2005-12-13  Jackson Harper  <jackson@ximian.com>
17277
17278         * Form.cs: Update styles after setting the border style regardless
17279         of whether or not the window is using a window manager.
17280
17281 2005-12-13  Jackson Harper  <jackson@ximian.com>
17282
17283         * Form.cs: We now hook into an internal window manager instead of just an
17284         MDI subsystem, this is so we can have properly behaving tool windows.
17285         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
17286         * InternalWindowManager.cs: New internal class that acts as a
17287         window manager for tool windows and as a base for mdi windows.
17288         * MdiWindowManager.cs: New class that acts as a window manager for
17289         mdi windows.
17290
17291 2005-12-12  Jackson Harper  <jackson@ximian.com>
17292
17293         * Control.cs: Updates so we match behavoir for for implicit
17294         controls. Fixes explosions in MDI.
17295
17296 2005-12-12  Jackson Harper  <jackson@ximian.com>
17297
17298         * Control.cs: Implement Invalidate (Region).
17299
17300 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
17301
17302         * Control.cs: 
17303           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
17304             the same events as MS does. MS fires events for each property 
17305             except, for unknown reasons, Cursor, when the control is reparented. 
17306             I can't seem to totally match add/remove since MS also fires some 
17307             VisibleChanged events, which makes no sense. Consolidated the
17308             parenting code into a separate method so it can be called from
17309             both Add and Remove. set_Parent no longer needs any special logic
17310             as it calls the parent's add method which implicitly fires
17311             all events
17312           - Removed some obsolete code and debug output
17313           - Enabled state is inherited from parents, if this is enabled
17314
17315 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
17316
17317         * Form.cs: Removed commented out code
17318
17319 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
17320
17321         * Control.cs:
17322           - Added internal version of Invoke, with additional argument 
17323             indicating if we're calling it from a Dispose() handler. That
17324             way we can avoid BeginInvoke throwing an exception if we're
17325             calling for an already destroyed window.
17326           - Added a dispose argument to BeginInvokeInternal, and made the
17327             check if a valid window handle chain exists conditional on
17328             it not being a dispose call
17329           - Removed code in DestroyHandle to destroy our children. Since we
17330             now handle the WM_DESTROY message we will catch all our children
17331             being destroyed.
17332           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
17333         * Form.cs:
17334           - Added a field to track the application context of the form.
17335           - No need to set closing variable as response to WM_CLOSE, instead
17336             we destroy the window. We also call PostQuitMessage if the form
17337             has an application context (which makes it the main app form,
17338             which, when closed terminates the app)
17339         * XplatUI.cs:
17340           - Dropped Exit() method, it's naming was confusing
17341           - Added PostQuitMessage() which causes GetMessage to return false
17342             once the message queue is empty
17343         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
17344           PostQuitMessage()
17345         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
17346           no longer a valid XplatUI method, but left it in since it's used
17347           internally. Added empty PostQuitMessage() method.
17348         * MenuAPI.cs: Replaced call to Exit() with call to
17349           PostQuitMessage, even though this is probably no longer needed.
17350         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
17351         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
17352         * Application.cs:
17353           - Replaced call to XplatUI.Exit() with PostQuitMessage()
17354           - Removed old debug code that would call XplatUI for exception
17355             display, enabled standard exception handling (Still not enabled
17356             though, until NativeWindow's ExternalExceptionHandler define
17357             is removed
17358         * NativeWindow.cs:
17359           - Added internal method to allow control to update NativeWindow
17360             after a window has been destroyed
17361           - Added handling of already destroyed windows when calling i
17362             DestroyWindow
17363           - Added removal of handle from list on ReleaseHandle
17364         * XplatUIX11.cs:
17365           - Dropped GetMessageResult var and related code
17366           - Added PostQuitState to field to track if PostQuitMessage has been
17367             called
17368           - Dropped Exit() method
17369           - Added PostQuitMessage() method
17370           - GetMessage now will return false if PostQuitState is set and no
17371             more messages are in the queue.
17372           - Expose handler will no longer generate WM_PAINT messages if we are
17373             in PostQuitState since it's very likely any windows have already
17374             been destroyed, and since Hwnd won't get updated until we have
17375             processed the DestroyNotify we'd be causing X errors.
17376         
17377 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17378
17379         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
17380           Thanks to Mike for pointing out the err of my ways.
17381
17382 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17383
17384         * Control.cs(PreProcessMessage): Moved menu handling back, but
17385           after all other key handling, to match MS (who handles Menu in
17386           DefWndProc)
17387         * Menu.cs (WndProc): Removed my brainfart
17388
17389 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17390
17391         * Control.cs(PreProcessMessage): Removed special menu handling 
17392         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
17393
17394 2005-12-07  Mike Kestner  <mkestner@novell.com>
17395
17396         * Control.cs : special case SYSKEYUP so that we can adjust keynav
17397         state according in tracker.
17398         * Menu.cs : promote tracker field to base class and provide a tracker
17399         lookup capability.  Add/Remove shortcuts dynamically if the top menu
17400         has a tracker. Unparent items that are removed from the collection.
17401         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
17402         * Theme*.cs: add always_show_hotkeys field to support configurability
17403         of mnemonic display.  win32 doesn't show mnemonics until Alt is
17404         pressed.
17405
17406 2005-12-07  Jackson Harper  <jackson@ximian.com>
17407
17408         * MdiChildContext.cs: Use Control.ResetCursor.
17409         * Control.cs: ResetCursor needs to set the property so that the
17410         correct XplatUI call gets made.
17411
17412 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17413
17414         * Control.cs: More fixes to make our key events match MS. We
17415           were not setting the modifier state on KeyData, and we were
17416           not generating any events when Alt was pressed with a key
17417           since handling of WM_SYSxxx was missing for the OnKey methods.
17418
17419 2005-12-07  Jackson Harper  <jackson@ximian.com>
17420
17421         * MdiChildContext.cs: reenable the sizing code.
17422         - When the mouse leaves a window reset its cursor.
17423
17424 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17425
17426         * ThemeClearlooks.cs: Reflect latest Hwnd changes
17427
17428 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17429
17430         * Hwnd.cs: Now using the theme 3d bordersize to calculate
17431           widths of Fixed3D borders
17432
17433 2005-12-07  Jackson Harper  <jackson@ximian.com>
17434
17435         * MdiClient.cs: Fix warnings. Earn Mike's love.
17436
17437 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17438
17439         * ThemeClearlooks.cs:
17440           - Adjusted mouse over button color
17441           - Added first parts of CheckBox drawing
17442           - Added correct color for selected text background
17443           - Fixed ComboBox drawing
17444           - Added CPDrawBorder3D and CPDrawBorder
17445
17446 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17447
17448         * XplatUIX11.cs: Added call to XBell for AudibleAlert
17449
17450 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
17451
17452         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17453           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
17454           alert users via sound. We could add an enum arg with different
17455           types of alerts in the future
17456
17457 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17458
17459         * Control.cs: Fix behaviour problems pointed out by Mike
17460
17461 2005-12-05  Mike Kestner  <mkestner@novell.com>
17462
17463         * StatusBarPanel.cs: add Invalidate method and hook it into all the
17464         prop setters.  Calls parent.Refresh for now, but could be maybe be
17465         optimized with an internal method on StatusBar at some point.
17466         [Fixes #76513]
17467
17468 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
17469
17470         * RichTextBox.cs: Implemented get_SelectionColor
17471
17472 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
17473
17474         * ThemeClearlooks.cs:
17475           - Removed dead code
17476           - Draw black button border only if button is Form.AcceptButton
17477           - Draw correct button color for pressed RadioButton if the mouse 
17478             has entered the button
17479           - Updated ProgressBar drawing!
17480           - Updated CPDrawSizeGrip drawing
17481           - Updated StatusBarPanel drawing
17482
17483 2005-12-05  Mike Kestner  <mkestner@novell.com>
17484
17485         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
17486         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
17487
17488 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
17489
17490         * ThemeClearlooks.cs: Initial check-in, activate with
17491           export MONO_THEME=clearlooks
17492         * ThemeEngine.cs: Added ThemeClearlooks
17493
17494 2005-12-03  Mike Kestner  <mkestner@novell.com>
17495
17496         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
17497         [Fixes #76897]
17498
17499 2005-12-02  Jackson Harper  <jackson@ximian.com>
17500
17501         * Form.cs: If the child form has no menu the default main menu is
17502         used as the active menu.
17503
17504 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
17505
17506         * ListBox.cs: Check if any items exist before trying to resolve 
17507           coordinates into items
17508
17509 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17510
17511         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
17512           as the second color for the background hatch
17513
17514 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17515
17516         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
17517         * RichTextBox.cs: FormatText position arguments are 1-based, now making
17518           sure that what we pass to FormatText is always 1-based. Fixes #76885
17519
17520 2005-11-29  Miguel de Icaza  <miguel@novell.com>
17521
17522         * NumericUpDown.cs (EndInit): When we are done initializing,
17523         reflect any updates on the UI.
17524
17525 2005-12-02  Jackson Harper  <jackson@ximian.com>
17526
17527         * ImplicitHScrollBar.cs:
17528         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
17529         their container controls.
17530         * TreeView.cs: Use the new implicit scrollbars.
17531
17532 2005-12-02  Jackson Harper  <jackson@ximian.com>
17533
17534         * TreeView.cs: Make top_node internal so the TreeNodeCollections
17535         can play with it.
17536         * TreeNodeCollection.cs: If we remove the topnode we need to
17537         update topnode to the next node in line.
17538         - When clearing nodes go through the same process as removing
17539         them, so they get depareneted and checked if they are top node.
17540
17541 2005-12-01  Jackson Harper  <jackson@ximian.com>
17542
17543         * TreeView.cs: When imagelists are used the image area is
17544         selectable as well as the text.
17545         - If there are no selected nodes select the first one.
17546         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
17547         so don't do it more then we need to.
17548
17549 2005-12-01  Jackson Harper  <jackson@ximian.com>
17550
17551         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
17552         that arrows can be scaled.
17553
17554 2005-12-01  Jackson Harper  <jackson@ximian.com>
17555
17556         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
17557         fail. Patch by Dieter Bremes
17558
17559 2005-11-30  Jackson Harper  <jackson@ximian.com>
17560
17561         * Form.cs: Property is 2.0 only
17562         * PrintDialog.cs: Signature fix.
17563
17564 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17565
17566         * TextControl.cs: 
17567           - No longer artificially moves text 2 pixels down (now that we have
17568             borders this is no longer needed)
17569           - Added calcs for left, hanging and right indent
17570
17571 2005-11-23  Mike Kestner  <mkestner@novell.com>
17572
17573         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
17574
17575 2005-11-30  Jackson Harper  <jackson@ximian.com>
17576
17577         * MdiChildContext.cs: Set the cloned menus forms, as these don't
17578         get cloned as part of CloneMenu ().
17579         * Menu.cs: Make sure the parent of the items get set correctly
17580         when they are added.  And the owners are notified of the changes.
17581         * Form.cs: Create an ActiveMenu property, so that when MDI is used
17582         we can change the menu being displayed/handled by the form without
17583         changing the menu assosciated with the form.
17584         - Don't let Mdi children draw/handle menus.
17585         
17586 2005-11-30  Jackson Harper  <jackson@ximian.com>
17587
17588         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
17589         a MenuChanged event. Just to make the API a little more
17590         consistent.
17591         * MainMenu.cs:
17592         * MenuItem.cs: Use the new OnMenuChanged
17593         * MdiChildContext.cs: Handle menu merging.
17594         * Form.cs: Implement MergedMenu.
17595         
17596 2005-11-30  Jackson Harper  <jackson@ximian.com>
17597
17598         * Menu.cs: We were misusing Add. Add goes behind the specified
17599         index according to the docs, and does not replace the specified
17600         index. So I added an Insert method.
17601
17602 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17603
17604         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
17605           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
17606           is for Jackson
17607         * RichTextBox.cs: Added calls to base for DnD events
17608
17609 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
17610
17611         * TextControl.cs:
17612           - Fixed drag-selection related crash; style fixes
17613           - Implemented undo class
17614             o Implemented method to capture document state for specified
17615               range in document tree
17616             o Implemented method to restore captured document state
17617             o Implemented cursor tracking
17618             o Implemented basic undo stack
17619           - Added undo cursor tracking to methods altering cursor location
17620           - Added undo tracking to selection deletion (still missing
17621             other text-altering hookups)
17622         * RichTextBox.cs:
17623           - Added SelectionLength property
17624           - Implemented CanPaste()
17625           - Implemented Paste()
17626           - Added missing protected methods
17627           - Fixed RTF->Document conversion; now uses font index 0 and color 
17628             index 0 as the default font for the parsed text
17629           - Fixed RTF<->Document font size translation
17630           - Fixed RTF generation, now properly handles cross-tag boundaries
17631             for single line selection
17632           - No longer always appends blank line to generated RTF
17633           - Removed TODOs
17634           - Added missing attributes
17635           - Hooked up undo-related methods
17636         * TextBoxBase.cs:
17637           - Implemented Copy()
17638           - Implemented Paste()
17639           - Implemented Cut()
17640           - Fixed caret mis-behaviour on backspace across line-boundaries
17641
17642 2005-11-29  Jackson Harper  <jackson@ximian.com>
17643
17644         * MdiClient.cs: Add a method for activating mdi children. Very
17645         basic right now. I imagine someday it might need more girth.
17646         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
17647         children windows names are added to the menu item.
17648         * ThemeWin32Classic.cs: Draw the arrow if the item is an
17649         mdilist. This happens regardless of whether or not there are any
17650         mdi windows to see in the list, and according to my tests happens
17651         before the items are even added. Also happens if there isn't even
17652         an mdi client to get windows from.
17653
17654 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
17655
17656         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
17657         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
17658
17659 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
17660
17661         * DataGridTableStyle.cs:
17662           - Create always the styles for the missing columns even if they are
17663             provided by the user (not default table style)
17664         * DataGrid.cs:
17665           - Fixes bug 76770
17666           - Fixes SetDataBinding (always re-attach source)
17667           - Fixes SetNewDataSource (only clear styles if they are not for 
17668             this source)
17669          -  Expands OnTableStylesCollectionChanged to handle style refresh 
17670             and remove properly
17671
17672 2005-11-29  Jackson Harper  <jackson@ximian.com>
17673
17674         * FileDialog.cs: Implement missing bits, remove some dead
17675         code.
17676         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
17677         creation of the panel so that the options set on the dialog are
17678         seen when the panel is created.
17679         * TreeView.cs: raise a click when items are clicked.
17680         
17681 2005-11-29  Jackson Harper  <jackson@ximian.com>
17682
17683         * MdiClient.cs: Pass some signature methods through to base.
17684
17685 2005-11-28  Jackson Harper  <jackson@ximian.com>
17686
17687         * ListView.cs: Raise the click event when items are clicked.
17688
17689 2005-11-28  Jackson Harper  <jackson@ximian.com>
17690
17691         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
17692         a nullref.
17693
17694 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
17695
17696         * ThemeNice.cs: - Removed 1 pixel bitmaps
17697           - Use SmoothingMode.AntiAlias where it makes sense
17698             (ScrollButton arrow for example)
17699           - Enhanced Button focus drawing
17700           - Fixed ComboBox drawing (no artefacts anymore, focus
17701             rectangle is back again, reduced size of ComboButton, etc.)
17702           - Fixed RadioButton focus drawing for Appearence.Button
17703           - Slight ScrollButton redesign
17704           - Some LinearGradientBrush size fixes
17705           - GroupBoxes have now rounded edges
17706           - Fixed StatusBar drawing
17707
17708 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
17709
17710         * ThemeNice.cs: - Remove dead code
17711           - use correct background colors for menus, etc.
17712           - Fake pixel drawing with 1 pixel bitmaps
17713
17714 2005-11-24  Jackson Harper  <jackson@ximian.com>
17715
17716         * MdiClient.cs: Size the scrollbars when resizing the window.
17717         - Resize the maximized windows when the client is resized
17718         * Form.cs: Make the child context available
17719         
17720 2005-11-23  Jackson Harper  <jackson@ximian.com>
17721
17722         * MdiChildContext.cs: Don't size windows if they are maximized.
17723
17724 2005-11-23  Mike Kestner  <mkestner@novell.com>
17725
17726         * ContextMenu.cs: use MenuTracker.
17727         * Control.cs: remove menu handle usage.
17728         * Form.cs: remove menu handle usage.
17729         * Hwnd.cs: remove menu handle usage.
17730         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
17731         motion and clicks to the new Tracker handlers.
17732         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
17733         and handle usage.
17734         * MenuAPI.cs: refactored to combine popup and menubar event handling.
17735         Killed the MENU and MENUITEM data types and associated collections
17736         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
17737         MenuTracker class that exposes the leftovers from the old MenuAPI
17738         static methods. Restructured Capture handling so that only one grab is
17739         done for the entire menu hierarchy instead of handing off grabs to
17740         submenus. Tracker now has an invisible control to Capture when active.
17741         * MenuItem.cs: add sizing accessors, kill Create
17742         and handle usage.
17743         * Theme.cs: remove menu handle and MENU(ITEM) usage.
17744         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
17745         MENU(ITEM). remove menu handle usage, use Menu directly.
17746         * XplatUIDriver.cs: remove menu handle usage.
17747         * XplatUIOSX.cs: remove menu handle usage.
17748         * XplatUIWin32.cs: remove menu handle usage.
17749         * XplatUIX11.cs: remove menu handle usage.
17750
17751 2005-11-22  Jackson Harper  <jackson@ximian.com>
17752
17753         * Hwnd.cs: Don't compute the menu size for
17754         DefaultClientRectangle.
17755         - Reenable menu sizes being computed for GetClienRectangle.
17756         * Form.cs: Remove comment of trechery
17757         
17758 2005-11-22  Jackson Harper  <jackson@ximian.com>
17759
17760         * Hwnd.cs: The adjustments for the menu bar are made when it is
17761         attached to the form.
17762
17763 2005-11-19  Jackson Harper  <jackson@ximian.com>
17764
17765         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
17766         (just like on windows).
17767
17768 2005-11-19  Jackson Harper  <jackson@ximian.com>
17769
17770         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
17771         use real buttons anymore because they are in non client area. The
17772         one TODO here is that I need to somehow invalidate a section of
17773         the non client area.
17774
17775 2005-11-18  Jackson Harper  <jackson@ximian.com>
17776
17777         * Control.cs: Put the enum check back in now that MDI doesnt have
17778         to use this to set border styles.
17779         * Form.cs: Only set mdi child windows borders if the handle has
17780         been created.
17781         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
17782         this directly on to the driver.
17783         - Get the move start position before adjusting for the titlebar
17784         height, this fixes the windows "skipping" when they are first
17785         moved.
17786
17787 2005-11-18  Jackson Harper  <jackson@ximian.com>
17788
17789         * XplatUIX11.cs: Just compute the mdi borders separately as they
17790         don't totally match up with normal form borders.
17791
17792 2005-11-18  Jackson Harper  <jackson@ximian.com>
17793
17794         * Control.cs: Set WS_ styles for borders, so that the driver does
17795         not have to retrieve the control instance to figure out what kind
17796         of borders it should have.
17797         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
17798         driver can know its an mdi child easily.
17799         * XplatUIX11.cs: Get the border styles and whether the window is
17800         MDI from the Styles and ExStyles params instead of having to get a
17801         control. This prevents a chicken and egg problem.       
17802
17803 2005-11-18  Jackson Harper  <jackson@ximian.com>
17804
17805         * MdiClient.cs: Fix typo so scrollbars show up correctly.
17806
17807 2005-11-18  Jackson Harper  <jackson@ximian.com>
17808
17809         * MdiClient.cs: Calculate when to add and remove scrollbars
17810         correctly.
17811         * MdiChildContext.cs: Adjust the y position to take the titlebar
17812         into account.
17813         - No height for FormBorderStyle.None
17814
17815 2005-11-18  Jackson Harper  <jackson@ximian.com>
17816
17817         * Control.cs: Allow non enum values to be used for
17818         InternalBorderStyle.  MDI does this to set a special border style.
17819         - New utility methods for converting points to/from client coords
17820         - Add the newly created control to the Controls collection before
17821         updating its style. This way UpdateStyle can walk the control
17822         heirarchy to find the control if needed.
17823         so I don't need to create a new Point object all the time.
17824         * Form.cs: Let MDI windows handle their border styles.
17825         - Set styles on MDI windows so the correct title style is derived.
17826         * MdiChildContext.cs: Move all the painting and window handling
17827         into the non client area.
17828         - Use correct sizing and put correct buttons on frames based on
17829         the FormBorderStyle.
17830         - Notify the mdi client about scrolling
17831         - Need to handle the buttons ourselves now, because they are all
17832         in non client areas and we can't add controls there.
17833         * MdiClient.cs: Halfway to scrolling, this implementation is
17834         somewhat broken though, we need to check to make sure other
17835         windows aren't causing scrolling before removing the bars. Also
17836         the bars need to be drawn on top, maybe I can switch implicit
17837         controls to be on top.
17838         * Hwnd.cs: caption_height and tool_caption_height are now
17839         properties of an hwnd, this way they can be set by the driver
17840         based on the type of window they are.  In X11 the window manager
17841         handles the decorations so caption_height is zero unless its an
17842         MDI window.
17843         - Add 3 pixel borders for MDI windows (0xFFFF).
17844         - Get rid of some code duplication, have DefaultClientRectanle
17845         just call GetClientRectangle.
17846         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
17847         Hwnd now.
17848         - Set border styles differently for mdi windows.
17849         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
17850         Hwnd now.
17851         
17852 2005-11-15  Mike Kestner  <mkestner@novell.com>
17853
17854         * Menu.cs: when adding an item to the collection, if item is already 
17855         parented, remove it from the parent.
17856
17857 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
17858
17859         * X11DesktopColors.cs: Added KDE support
17860
17861 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
17862
17863         * XplatUIWin32.cs: 
17864           - Clipboard methods now can translate Rtf format
17865           - No longer removes clipboard contents whenever a new format is added
17866             to allow placing multiple formats on the clipboard
17867         * Clipboard.cs: Clipboard now supports getting a IDataObject and
17868           will place all formats contained in it onto the clipboard. Also
17869           now cleans the clipboard before placing a new object onto it
17870         * RichTextBox.cs:
17871           - Implemented set_Rtf
17872           - Implemented set_SelectedRtf
17873           - Created InsertRTFFromStream() method to allow single code base
17874             for all properties and methods that insert RTF into document
17875           - Removed debug output
17876         * TextControl.cs:
17877           - Fixed Delete(int) to fix up line numbers
17878           - Fixed ReplaceSelection to combine start and end line
17879           - Fixed serious DeleteChars bug that would leave the document tree
17880             broken
17881           - Improved DumpTree with several logic checks to detect broken
17882             document trees
17883           - Removed debug lines
17884           - Fixed Caret.WordForward/WordBack moving code, now always also 
17885             updates caret.tag (fixes crash when word-selecting across tag
17886             boundaries via keyboard)
17887           - Added Insert() method for inserting multiline text into documents
17888           - Fixed DeleteChars() calculation errors that would cause a broken
17889             tag chain with multiple tag lines
17890           - DeleteChars() no longer crashes on multi-tag lines if not all tags
17891           - Split() no longer moves caret if split is at caret location
17892           - ReplaceSelection() now updates the cursor and re-displays it
17893           - ReplaceSelection() now uses new Insert() method to avoid code
17894             duplication
17895           - FormatText() can now handle formatting partial lines
17896         * TextBoxBase.cs:
17897           - Append now uses new TextControl.Insert() method (this avoids 
17898             duplicate code)
17899           - Implemented Ctrl-X (Cut) (
17900           - Implemented Ctrl-C (Copy)
17901           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
17902             regeneration when pasting text; roundtripping Copy&Paste within
17903             edit control still fails due to some calculation bugs in GenerateRTF)
17904           - The Delete key will now remove the current selection if it is visible
17905         * TextBox.cs: Removed debug lines
17906         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
17907           driver to be initialized and can't therefore be done via a static ctor)
17908
17909 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
17910
17911         * TextControl.cs: Added backend code for finding char arrays and strings
17912         * TextBoxBase.cs:
17913           - Added mouse wheel scroll support
17914           - Added support for VScroll and HScroll events
17915         * RichTextBox.cs:
17916           - Implemented all seven Find() variants
17917           - Implemented GetCharFromPosition()
17918           - Implemented GetCharIndexFromPosition()
17919           - Implemented GetLineFromIndex()
17920           - Implemented GetPositionFromCharIndex();
17921           - Implemented SaveFile for PlainText and UnicodeText
17922           - Fixed set_Font, now setting a new font applies that font to
17923             the whole document
17924           - Implemented generic Document to RTF converter
17925           - Implemented SaveFile for RichText format (still missing unicode
17926             conversion for non-ansi chars)
17927           - Implemented get_Rtf
17928           - Implemented get_SelectedRtf
17929
17930 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
17931
17932         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
17933           to allow any captures to be released before triggering OnClick. This
17934           way a click handler may capture the mouse without interference.
17935         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
17936           This way we send them even though X may not allow a grab (if the window
17937           isn't visible, for example)
17938
17939 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
17940
17941         * DataGridViewRowEventArgs.cs: DataGridView implementation
17942         * DataGridViewElement.cs: DataGridView implementation
17943         * DataGridViewComboBoxCell.cs: DataGridView implementation
17944         * DataGridViewDataErrorContexts.cs: DataGridView implementation
17945         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
17946         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
17947         * ImageLayout.cs: DataGridView implementation
17948         * DataGridViewComboBoxColumn.cs: DataGridView implementation
17949         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
17950         * DataGridViewSelectionMode.cs: DataGridView implementation
17951         * IDataGridViewEditingControl.cs: DataGridView implementation
17952         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
17953         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
17954         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
17955         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
17956         * DataGridViewColumnSortMode.cs: DataGridView implementation
17957         * DataGridView.cs: DataGridView implementation
17958         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
17959         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
17960         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
17961         * Padding.cs: DataGridView implementation
17962         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
17963         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
17964         * DataGridViewRowEventHandler.cs: DataGridView implementation
17965         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
17966         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
17967         * DataGridViewButtonCell.cs: DataGridView implementation
17968         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
17969         * DataGridViewEditMode.cs: DataGridView implementation
17970         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
17971         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
17972         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
17973         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
17974         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
17975         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
17976         * DataGridViewCellEventHandler.cs: DataGridView implementation
17977         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
17978         * DataGridViewCellStyleConverter.cs: DataGridView implementation
17979         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
17980         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
17981         * DataGridViewColumnEventArgs.cs: DataGridView implementation
17982         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
17983         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
17984         * QuestionEventArgs.cs: DataGridView implementation
17985         * IDataGridViewEditingCell.cs: DataGridView implementation
17986         * DataGridViewTriState.cs: DataGridView implementation
17987         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
17988         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
17989         * DataGridViewColumnCollection.cs: DataGridView implementation
17990         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
17991         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
17992         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
17993         * DataGridViewColumn.cs: DataGridView implementation
17994         * DataGridViewCellBorderStyle.cs: DataGridView implementation
17995         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
17996         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
17997         * DataGridViewRow.cs: DataGridView implementation
17998         * DataGridViewImageCellLayout.cs: DataGridView implementation
17999         * DataGridViewImageCell.cs: DataGridView implementation
18000         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
18001         * DataGridViewCheckBoxCell.cs: DataGridView implementation
18002         * DataGridViewHeaderCell.cs: DataGridView implementation
18003         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
18004         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
18005         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
18006         * DataGridViewTextBoxColumn.cs: DataGridView implementation
18007         * QuestionEventHandler.cs: DataGridView implementation
18008         * DataGridViewCellStyleScopes.cs: DataGridView implementation
18009         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
18010         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
18011         * DataGridViewCell.cs: DataGridView implementation
18012         * DataGridViewCellEventArgs.cs: DataGridView implementation
18013         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
18014         * DataGridViewCellStyle.cs: DataGridView implementation
18015         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
18016         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
18017         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
18018         * TextFormatFlags.cs: DataGridView implementation
18019         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
18020         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
18021         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
18022         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
18023         * DataGridViewButtonColumn.cs: DataGridView implementation
18024         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
18025         * HandledMouseEventArgs.cs: DataGridView implementation
18026         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
18027         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
18028         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
18029         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
18030         * DataGridViewRowCollection.cs: DataGridView implementation
18031         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
18032         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
18033         * DataGridViewHitTestType.cs: DataGridView implementation
18034         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
18035         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
18036         * DataGridViewColumnEventHandler.cs: DataGridView implementation
18037         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
18038         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
18039         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
18040         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
18041         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
18042         * DataGridViewContentAlignment.cs: DataGridView implementation
18043         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
18044         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
18045         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
18046         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
18047         * DataGridViewPaintParts.cs: DataGridView implementation
18048         * DataGridViewCellCollection.cs: DataGridView implementation
18049         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
18050         * DataGridViewImageColumn.cs: DataGridView implementation
18051         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
18052         * DataGridViewElementStates.cs: DataGridView implementation
18053         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
18054         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
18055         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
18056         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
18057         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
18058         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
18059         * DataGridViewRowHeaderCell.cs: DataGridView implementation
18060         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
18061         * DataGridViewTextBoxCell.cs: DataGridView implementation
18062         * DataGridViewBand.cs: DataGridView implementation
18063         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
18064         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
18065         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
18066         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
18067         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
18068         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
18069         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
18070         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
18071         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
18072         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
18073         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
18074
18075 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
18076
18077         * ThemeWin32Classic.cs: 
18078           - Draw the outside focus rectangle around buttons
18079           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
18080             doesn't use end caps for every dash of a line anymore. This
18081             workaround ignores the forecolor.
18082
18083 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
18084
18085         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
18086           endian safe.
18087
18088 2005-11-07  Jackson Harper  <jackson@ximian.com>
18089
18090         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
18091
18092 2005-11-07  Jackson Harper  <jackson@ximian.com>
18093
18094         * ScrollableControl.cs: Calculate the maximum and change vars
18095         (more) correctly so that scrollbars appear as a sensible size.
18096
18097 2005-11-04  Jackson Harper  <jackson@ximian.com>
18098
18099         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
18100         collection.
18101         * TreeView.cs: When the tree is sorted null out the top_node so
18102         that it is recalculated.
18103         - Use dotted lines instead of dashed lines to match MS better.
18104
18105 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
18106
18107         * ListView.cs: 
18108           - Implements key search for items. Useful when browsing files with FileDialog
18109           - When changing view mode or when clear the items reset scrollbar positions
18110
18111 2005-11-04  Jackson Harper  <jackson@ximian.com>
18112
18113         * CurrencyManager.cs: Implement the MetaDataChanged event, the
18114         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
18115         as to what the method may do as there is no real way of creating a
18116         derived CurrencyManager and calling the method. 
18117
18118 2005-11-03  Jackson Harper  <jackson@ximian.com>
18119
18120         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
18121         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
18122         method which seems to just be used internally to refresh the tabs.
18123
18124 2005-11-03  Jackson Harper  <jackson@ximian.com>
18125
18126         * TabControl.cs: Implement the remove method. Fix some broken
18127         comments.
18128
18129 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18130
18131         * DateTimePicker.cs:
18132           - Added missing DateTimePickerAccessibleObject class
18133           - Added missing events
18134           - Added OnFontChanged method
18135         * Form.cs: Added missing attributes
18136         * TreeView.cs: Added missing attributes
18137
18138 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
18139
18140         * GridItemCollection.cs: Fix signatures
18141
18142 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18143
18144         * XplatUI.cs: Updated build rev/date
18145         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
18146           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
18147         * Application.cs: Trigger context-specific ExitThread events
18148
18149 2005-11-03  Jackson Harper  <jackson@ximian.com>
18150
18151         * Menu.cs:
18152         * MainMenu.cs:
18153         * GridTableStylesCollection.cs:
18154         * Timer.cs:
18155         * TabPage.cs:
18156         * HelpProvider.cs:
18157         * StatusBar.cs:
18158         * MonthCalendar.cs: Signature fixes
18159
18160 2005-11-03  Jackson Harper  <jackson@ximian.com>
18161
18162         * TreeNodeCollection.cs: Remove should not be virtual.
18163         * TreeView.cs: Implement the last of the missing methods.
18164
18165 2005-11-03  Jackson Harper  <jackson@ximian.com>
18166
18167         * TreeNodeConverter.cs: Implement to get off my class-status back.
18168
18169 2005-11-03  Jackson Harper  <jackson@ximian.com>
18170
18171         * TreeView.cs: Hookup the bits for drag and drop.
18172         * TreeNode.cs: Don't cache the tree_view or index anymore, now
18173         that nodes can be moved from tree to tree easily this just causes
18174         all sorts of problems.
18175         * TreeNodeCollection: Don't need to give treenodes an index and
18176         treeview anymore when they are added, these are computed on the
18177         fly. Also make sure to remove a node before its added.
18178
18179 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18180
18181         * TextControl.cs:
18182           - Added CaretSelection enum
18183           - Added comparison methods to Marker struct, makes selection code
18184             more readable
18185           - Added SelectionStart and SelectionEnd as 'moveable' location for
18186             the CaretDirection enum and handler
18187           - Added selection_prev variable to track optimized invalidation for
18188             word and line selection
18189           - Added SelectionVisible property (returns true if there is a valid 
18190             selection)
18191           - Switched CaretHasFocus to only display the caret if there is no
18192             visible selection
18193           - Avoiding StringBuilder.ToString to retrieve a single char, instead
18194             using the direct character index; should be much faster
18195           - Added various conditional debug statements
18196           - Fixed invalidation calculation for selection ranges
18197           - Added ExpandSelection() method to support word and line selection
18198           - Switched SetSelectionToCaret to use new Marker compare overloads
18199           - Added central IsWordSeparator() method to determine word 
18200             separators/whitespace and FindWordSeparator() to streamline common
18201             usage of IsWordSeparator()
18202         * TextBoxBase.cs:
18203           - Removed unneeded grabbed variable, it was just mirroring
18204             Control.Capture
18205           - No longer firing OnTextChanged event when Text setter is called,
18206             since the base will fire the event for us
18207           - Added handling of Ctrl-Up/Down selection
18208           - Added handling of Shift-Cursorkey selection
18209           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
18210             words
18211           - Added handling of Shift and Ctrl-Shift-Home/End selection
18212           - Removed some debug output
18213           - Added handling for single/double/tripple-click to place caret/
18214             select word/select line respectively (Fixes bug #76031)
18215           - Added support for drag expansion of word/line selection
18216         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
18217           current selection
18218
18219 2005-11-02  Jackson Harper  <jackson@ximian.com>
18220
18221         * X11Dnd.cs: If the drag is going to and from a MWF window just
18222         copy the data instead of sending it out through the X Selection
18223         mechanism.
18224
18225 2005-11-02  Jackson Harper  <jackson@ximian.com>
18226
18227         * X11Dnd.cs:
18228         * XplatUIX11.cs: When in a drag we don't want motion notify
18229         messages to get passed on to the other controls. This prevents
18230         mouse move messages from showing up in the drag source.
18231
18232 2005-11-02  Jackson Harper  <jackson@ximian.com>
18233
18234         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
18235         the correct button is release to end a drag.
18236         * XplatUIX11.cs: Make the button state internal so the drag system
18237         can access it.  Dragging needs to know about all button releases,
18238         not just left button.
18239
18240 2005-11-02  Miguel de Icaza  <miguel@novell.com>
18241
18242         * Form.cs (Icon): If the icon is null, reset the icon to the
18243         default value. 
18244
18245         * Cursor.cs: When writing the AND-mask bitmap do not include the
18246         number of colors, but hardcode those to two (black and white),
18247         fixes the loading of color cursors (Paint Dot Net).
18248
18249         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
18250         turn off autoscaling.
18251
18252         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
18253
18254 2005-11-02  Jackson Harper  <jackson@ximian.com>
18255
18256         * X11Dnd.cs: Make sure to send a status message if the pointer
18257         enters a control that can not accept a drop, otherwise the cursor
18258         isn't updated correctly. Also tried to compress the lines of code
18259         a bit.
18260
18261 2005-11-02  Jackson Harper  <jackson@ximian.com>
18262
18263         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
18264         set actions correctly.  This isn't perfect as XDND and win32 have
18265         some differences on how you allow actions. I'll clear this up by
18266         adding a path for drag from MWF to MWF windows.
18267         * XplatUIX11.cs: Hook into the dnd system.
18268
18269 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
18270
18271         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
18272         previously shown but they are no longer need it. Very obvious when 
18273         browsing files with FileDialog.
18274
18275 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
18276
18277         * Control.cs: We always need to call OnPaintBackground. We pretty much
18278           ignore AllPaintingInWmPaint and always do the painting there, whether 
18279           it's set or not, since we always ignore the WM_ERASEBKGND message 
18280           (which we don't generate on X11). This fixes #76616.
18281         * Panel.cs: Removed unneeded background painting. This happens properly
18282           in Control.cs already
18283
18284 2005-10-31  Mike Kestner  <mkestner@novell.com>
18285
18286         * Menu.cs: Add items to collection before setting their index.
18287         * MenuItem.cs : add range checking with ArgumentException like MS.
18288         [Fixes #76510]
18289
18290 2005-10-31  Jackson Harper  <jackson@ximian.com>
18291
18292         * ListBox.cs: Invalidate if the area is visible at all not just
18293         contained in the visible rect. Fixes unselection of semi visible
18294         items.
18295
18296 2005-10-31  Jackson Harper  <jackson@ximian.com>
18297
18298         * Control.cs: Consistently name the dnd methods. Make them
18299         internal so we can override them to match some MS behavoir
18300         internally.
18301         * Win32DnD.cs: Use the new consistent names.
18302
18303 2005-10-31  Jackson Harper  <jackson@ximian.com>
18304
18305         * TreeView.cs: Don't draw the selected node when we lose focus.
18306
18307 2005-10-31  Jackson Harper  <jackson@ximian.com>
18308
18309         * X11Dnd.cs: We still need to reset the state even though a full
18310         reset isn't being done, otherwise status's still get sent all over
18311         the place.
18312
18313 2005-10-31  Jackson Harper  <jackson@ximian.com>
18314
18315         * Control.cs: Make the dnd_aware flag internal so the dnd
18316         subsystem can check it. Catch exceptions thrown in dnd handlers to
18317         match MS behavoir.
18318         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
18319         * X11Dnd.cs: Handle null data in the converters. Set the XDND
18320         version when sending a XdndEnter. Use the control/hwnd dnd_aware
18321         flags to reduce the number of dnd enters/status's sent.
18322
18323 2005-10-31  Jackson Harper  <jackson@ximian.com>
18324
18325         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
18326
18327 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
18328
18329         * PictureBox.cs: Fixes 76512
18330
18331 2005-10-28  Jackson Harper  <jackson@ximian.com>
18332
18333         * X11Dnd.cs: Early implementation to support winforms being a drag
18334         source for data on X11. Also restructured the converters so they
18335         can go both ways now.
18336         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
18337         
18338 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
18339
18340         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
18341           clipboard requests
18342
18343 2005-10-27  Jackson Harper  <jackson@ximian.com>
18344
18345         * TreeNode.cs: Implement serialization so my DnD examples will work.
18346
18347 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
18348
18349         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
18350           TreeView.cs: Don't dispose objects that are not owned.
18351           
18352 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
18353
18354         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
18355           should retrieve the current cursor and report that, but XplatUI
18356           doesn't (yet) have an interface for that (and I'm not sure I even
18357           can, on X11)
18358         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
18359           until any message loop processing is done (and the WM_SETCURSOR
18360           replaces the cursor to the proper one)
18361         * XplatUIX11.cs: 
18362           - Fixed override behaviour, we can't set the cursor globally on X11, 
18363             just for our windows.
18364           - Invalidating the System.Drawing X11 display handle when we are
18365             shutting down
18366         * Control.cs: Fix to make csc happy
18367
18368 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
18369
18370         * TextBoxBase.cs: 
18371           - get_Text: Add last line (without trailing newline) to returned
18372             value (Fixes 76212)
18373           - get_TextLength: Count last line in returned length
18374           - ToString: Call Text property instead of duplicating code
18375
18376 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
18377
18378         * ImageList.cs: Dispose ImageAttributes objects.
18379
18380 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18381
18382         * ImageList.cs: Use attribute constructors with less arguments where
18383           possible.
18384
18385 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18386
18387         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
18388           Use typeof instead of strings when assembly is referenced. Added
18389           some more comments.
18390
18391 2005-10-21  Jackson Harper  <jackson@ximian.com>
18392
18393         * ListView.cs: Raise a double click event. Also tried to somewhat
18394         fix when the selectedindexchanged event is raised. Its still
18395         broken though.
18396
18397 2005-10-21  Jackson Harper  <jackson@ximian.com>
18398
18399         * TreeView.cs: New method to invalidate the plus minus area of a
18400         node without invalidating the whole node (maybe this can be used
18401         in some more places).
18402         * TreeNodeCollection.cs: When adding to an empty node we need to
18403         invalidate its plus minus area so the little block shows up.
18404         
18405 2005-10-21  Jackson Harper  <jackson@ximian.com>
18406
18407         * TreeView.cs: Make sure that when we invalidate a node the bounds
18408         are big enough to cover the selected box and the focus
18409         rectangle. Use a different colour for the lines connecting nodes
18410         so they show up with all themes.
18411
18412 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18413
18414         * NativeWindow.cs: Don't call anything that could call into the driver,
18415           we might be on a different thread.
18416
18417 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
18418
18419         * Control.cs(Dispose): Since Dispose might run on a different thread,
18420           make sure that we call methods that could call into the driver via
18421           invoke, to avoid thread issues
18422
18423 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18424
18425         * XplatUI.cs: Removed finalizer
18426         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
18427           not allowing to be called on the finalizer thread.
18428
18429 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
18430
18431         * ImageList.cs:
18432           - Reverted r51889 and r51891.
18433           - Added ImageListItem class that stores unmodified image items and image
18434             properties required to create list images until handle is created.
18435           - Added AddItem and moved image creation logic to AddItemInternal.
18436           - Added CreateHandle method that creates images based on unmodified items.
18437           - Added DestroyHandle that changes state to store unmodified items.
18438           - Add and AddStrip methods no more create handle.
18439           - ReduceColorDepth has no return value.
18440           - Dispose destroys handle.
18441           - Modified other methods to reflect the above changes.
18442           - Implemented key support.
18443           - Added profile 2.0 members and attributes.
18444           - Added private Reset and ShouldSerialize methods that provide the same
18445             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
18446             them as they are private.
18447           - Added some more comments about implementation details.
18448
18449 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18450
18451         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
18452
18453 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18454
18455         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
18456
18457 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18458
18459         * DataGridDrawingLogic.cs: Fixes column hit calcultation
18460         * DataGridColumnStyle.cs: Remove debug message
18461
18462 2005-10-20  Jackson Harper  <jackson@ximian.com>
18463
18464         * TreeView.cs: We can always get input keys regardless of whether
18465         or not editing is enabled. They are used for navigation.
18466
18467 2005-10-20  Jackson Harper  <jackson@ximian.com>
18468
18469         * TreeNode.cs: Use the viewport rect for determining if a node
18470         needs to be moved for visibility. Don't use Begin/End edit. This
18471         calls a full refresh when its done.
18472         * TreeView.cs: New SetBottom works correctly.  Make the viewport
18473         rect property internal so the treenodes can see it. When clicking
18474         on a node we need to ensure that its visible because it might just
18475         be partly visible when clicked.
18476
18477 2005-10-20  Jackson Harper  <jackson@ximian.com>
18478
18479         * TreeNodeCollection.cs: Remove debug code.
18480
18481 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18482
18483         * Datagrid.cs: Implements column sorting in Datagrid
18484         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
18485
18486 2005-10-20  Jackson Harper  <jackson@ximian.com>
18487
18488         * TreeNodeCollection.cs: Remove items properly. Update the correct
18489         area after removing them.
18490
18491 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18492
18493         * Datagrid.cs: Should not call base.OnPaintBackground
18494
18495 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18496
18497         * XplatUIX11.cs (GetMessage):
18498           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
18499             window instead of client window
18500           - Now properly calculates NC_xBUTTONUP message coordinates
18501           - ScreenToMenu now properly calculates it's coordinates of whole 
18502             window, since menus are in the whole window, not in the client
18503             window
18504           - Added WholeToScreen coordinate translation method
18505
18506 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
18507
18508         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
18509           want to return a message, loop back to the beginning of the function
18510           and grab the next real message to process instead.
18511
18512 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18513
18514         * Splitter.cs: Properly set limits if no filler control is used
18515
18516 2005-10-19  Jackson Harper  <jackson@ximian.com>
18517
18518         * ColorDialog.cs: Don't show the help button if it is not enabled
18519         instead of disabling it (this is what MS does). Don't create the
18520         panel until the dialog is run, otherwise the vars (such as
18521         ShowHelp) are not set yet.
18522
18523 2005-10-19  Jackson Harper  <jackson@ximian.com>
18524
18525         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
18526         are reduced when adding nodes.
18527         * TreeNode.cs:
18528         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
18529         tree.
18530         
18531 2005-10-19  Jackson Harper  <jackson@ximian.com>
18532
18533         * FolderBrowserDialog.cs: End editing our treeview so the window
18534         actually gets refreshed.
18535
18536 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18537
18538         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
18539           Obsoleted handling of WM_ERASEBKGND, now always draws our background
18540           inside of WM_PAINT
18541
18542 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18543
18544         * MenuAPI.cs: Returns after Hidding window
18545         * XplatUIX11.cs: Added TODO found while debugging menu issues
18546
18547 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18548
18549         * XplatUIX11.cs: Do not re-map the whole window when it's size
18550           becomes non-zero unless it's supposed to be actually visible
18551
18552 2005-10-18  Jackson Harper  <jackson@ximian.com>
18553
18554         * TreeView.cs: We don't need to keep a count anymore.
18555         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
18556         use the Grow method.
18557
18558 2005-10-18  Jackson Harper  <jackson@ximian.com>
18559
18560         * TreeNodeCollection.cs: Insert is not supported on arrays, so
18561         implement it manually here.
18562
18563 2005-10-18  Jackson Harper  <jackson@ximian.com>
18564
18565         * ImageList.cs: Dont kill the list when the colour depth is
18566         changed, just change the colour depth of all the images.
18567         - Same goes for setting the image size. Just resize them all
18568         instead of killing the list softly.
18569
18570 2005-10-18  Jackson Harper  <jackson@ximian.com>
18571
18572         * Control.cs: Don't invalidate empty rectangles.
18573
18574 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18575
18576         * ListViewItem.cs:
18577           - Adds checked item to the Checked/Item lists (where empty before)
18578           - Do not add items to the Selected lists if they are already present
18579         * ListView.cs:
18580           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
18581           - When deleting items make sure that we delete them for the Selected
18582           and Checked list also.
18583
18584 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18585
18586         * Label.cs: Dispose objects no longer used
18587         * ThemeWin32Classic.cs: Dispose objects no longer used
18588
18589 2005-10-18  Jackson Harper  <jackson@ximian.com>
18590
18591         * TabControl.cs: Don't refresh the whole control when the tabs are
18592         scrolled, we just need to refresh the tab area.
18593
18594 2005-10-17  Jackson Harper  <jackson@ximian.com>
18595
18596         * XplatUIX11.cs: Compress code a little bit. Only calculate the
18597         after handle when we need it.
18598
18599 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18600
18601         * Control.cs: When the parent size changes, recalculate anchor 
18602           positions. Partial fix for #76462
18603
18604 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18605
18606         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
18607           drawn. Fixes #76462
18608
18609 2005-10-17  Jackson Harper  <jackson@ximian.com>
18610
18611         * MonthCalendar.cs: Don't create the numeric up down until our
18612         handle is created. Otherwise our handle is created in the
18613         constructor and we don't know if we are a WS_CHILD or WS_POPUP
18614         yet.
18615
18616 2005-10-17  Jackson Harper  <jackson@ximian.com>
18617
18618         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
18619         correctly.
18620
18621 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18622         * TreeNode.cs : small logical fix (was using local var instead of field)
18623         
18624 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18625
18626         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
18627
18628 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18629
18630         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
18631
18632 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
18633
18634         * Control.cs: 
18635           - Re-implemented anchoring code. My first version was really broken.
18636             This fixes bug #76033. Unlike the previous implementation we will
18637             no longer have round errors since all numbers are calculated from
18638             scratch every time. Removed various anchor-related obsolete vars.
18639           - InitLayout no longer causes layout event firing and layout to be 
18640             performed
18641
18642 2005-10-16  Jackson Harper  <jackson@ximian.com>
18643
18644         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
18645         which was broken).
18646
18647 2005-10-16  Jackson Harper  <jackson@ximian.com>
18648
18649         * TabControl.cs: Remove debug code.
18650
18651 2005-10-16  Jackson Harper  <jackson@ximian.com>
18652
18653         * XEventQueue.cs: Increase the default queue size (very simple
18654         apps needed to grow the queue).
18655         * Hwnd.cs: No finalizer so we don't need to suppress
18656         finalization. Compute the invalid area manually so a new rectangle
18657         does not newto be created.
18658         * ScrollableControl.cs: Don't set any params (otherwise visibility
18659         isn't set correctly).
18660         * MdiChildContext.cs: New constructor takes the mdi parent so it
18661         doesn't have to be computed and avoids a crash on windows. Draw
18662         the window icon properly, and allow the text to be seen.
18663         * Form.cs: Use new MdiChildContext constructor. Make sure the
18664         child context isn't null in wndproc.
18665         * TabControl.cs: Don't set focus, this is muddling keyboard
18666         behavoir. Expand the tab rows when a window size increase will
18667         allow extra tabs to be seen. Don't allow tabs smaller than the
18668         width of a window to be scrolled out of view.
18669         * TreeNode.cs:
18670         * TreeView.cs: Use measure string to calculate a nodes width, the
18671         width is cached and only updated when the text or the font is
18672         changed. Don't check for expand/collapse clicks on the first level
18673         nodes if root lines are disabled.
18674         
18675 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
18676
18677         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
18678
18679 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18680
18681         * DataGridBoolColumn.cs: fixes warning
18682
18683 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18684
18685         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
18686         to match more to match more precisely the MS Net behavior
18687
18688 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18689
18690         * Hwnd.cs: Added field to track if window is mapped
18691         * XplatUIX11.cs: 
18692           - Unmap windows if they become 0-size, re-map when 
18693             they are >0 again; fixes #76035
18694           - Re-set our error handler after initializing X11Desktop
18695             to override any error handlers Gtk or whatever was called
18696             may have set.
18697
18698 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18699
18700         * CheckedListBox.cs: Removed unused vars
18701         * ListView.cs: Fixed signatures
18702         * RichTextBox.cs: Removed unused vars
18703         * TextBoxBase.cs: Removed unused vars
18704         * XplatUIWin32.cs: Removed unused vars
18705         * XplatUIX11.cs: Removed unused vars
18706         * XplatUI.cs: Updated version and date to latest published
18707
18708 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
18709
18710         * Cursor.cs: Added private .ctor to work around a bug in
18711           resourceset (Thanks to Geoff Norton for the help on this)
18712         * SplitterEventArgs.cs: Made fields accessible so we don't
18713           waste boatloads of objects and can reuse the same one
18714           in Splitter
18715         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
18716           any captions and borders when generating screen coordinates
18717         * Splitter.cs: Reimplemented control, now fully complete, uses
18718           rubberband drawing, supports and obeys all properties, has
18719           proper cursors
18720
18721 2005-10-13  Miguel de Icaza  <miguel@novell.com>
18722
18723         * Form.cs (Form): Setup default values for autoscale and
18724         autoscale_base_size;  Make these instance variables, not static
18725         variables. 
18726
18727         (OnLoad): on the first load, adjust the size of the form.
18728
18729 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
18730
18731         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
18732           width argument to DrawReversibleRectangle()
18733         * XplatUIWin32.cs, XplatUIX11.cs: 
18734           - Implemented width for DrawReversibleRectangle()
18735           - Added logic to DrawReversibleRectangle that recognizes a zero
18736             width or height and only draws a line in that situation
18737         
18738 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
18739
18740         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
18741         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
18742         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
18743           method (it uses our FosterParent window to get a graphics context)
18744
18745 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
18746
18747         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
18748           and SetWindowBackground methods
18749         * Control.cs:
18750           - Setting proper ControlStyles
18751           - We no longer call XplatUI.SetWindowBackground and XplatUI.
18752             EraseWindowBackground, instead we draw the window background
18753             ourselves in PaintControlBackground. This behaviour is
18754             required to match MS, where, when OnPaintBackground is not
18755             called, the background is not drawn.
18756           - Removed unneeded Refresh() in set_Text
18757         * Hwnd.cs: Dropped the ErasePending support. No longer needed
18758         * XplatUIX11.cs:
18759           - Created DeriveStyles method to translate from CreateParams to
18760             FormBorderStyle and TitleStyle, also handles BorderStyle (which
18761             matches FormBorderStyle enum values)
18762           - Consolidated SetHwndStyles and CalculateWindowRect border/title
18763             style calculations into single DeriveStyles method
18764           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
18765             from redrawing the whole window on any resize or expose.
18766           - Fixed CreateWindow usage of SetWindowValuemask. Before not
18767             all styles were applied to our whole/client window appropriately
18768           - Removed EraseWindowBackground() and SetWindowBackground() methods
18769           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
18770             no longer clear/redraw the background through X
18771           - Removed handling of erase_pending bit, we have no use for it (or
18772             so it seems)
18773         * XplatUIOSX.cs:
18774           - Removed generation and handling of WM_ERASEBKGND message
18775           - Removed EraseWindowBackground() and SetWindowBackground() methods
18776           - Removed handling of hwnd.ErasePending flag
18777         * XplatUIWin32.cs:
18778           - Removed EraseWindowBackground() and SetWindowBackground() methods
18779           - We no longer call EraseWindowBackground on PaintEventStart, we 
18780             ignore the fErase flag, erasing is handled in Control in the
18781             background handler
18782         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
18783           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
18784           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
18785           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
18786           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
18787           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
18788           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
18789
18790 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
18791
18792         * PropertyGrids.cs: Get sub properties
18793         * PropertyGridView.cs: Fix drawing code
18794
18795 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18796
18797         * ListBox.cs: Fixes 76383
18798
18799 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18800
18801         * DataGridTextBoxColumn.cs: Sets location and size before attachment
18802         * ThemeWin32Classic.cs: Fixes border drawing and calculations
18803         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
18804
18805
18806 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18807
18808         * ComboBox.cs: Fixes border drawing
18809
18810 2005-10-10  Miguel de Icaza  <miguel@novell.com>
18811
18812         * MimeIcon.cs: Ignore errors if the file can not be read.
18813
18814 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
18815
18816         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
18817          - Fixed border calculations
18818          - Fixed horizontal scrolling in single column listboxes
18819          - Fixed drawing issues
18820
18821 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
18822
18823         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
18824           FormBorderStyle enum
18825         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
18826           code to determine FormBorderStyles from CreateParams
18827         * Form.cs:
18828           - Fixed bug where we'd set the wrong window styles if we were
18829             not creating an MDI window
18830           - Added call to XplatUI.SetBorderStyle when form borders are set
18831         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
18832         * Hwnd.cs:
18833           - Removed obsolete edge style
18834           - Switched from BorderStyle to FormBorderStyle
18835         
18836 2005-10-10  Jackson Harper  <jackson@ximian.com>
18837
18838         * Form.cs: Use the property to get the window handle instead of
18839         accessing it directly. Prevents a null reference exception.
18840
18841 2005-10-10  Jackson Harper  <jackson@ximian.com>
18842
18843         * TreeView.cs: Don't adjust the rect given to DrawString now that
18844         our libgdiplus draws correctly.
18845
18846 2005-10-08  Jackson Harper  <jackson@ximian.com>
18847
18848         * TreeView.cs: Don't try to find the clicked on node if there are
18849         no nodes in the tree.
18850
18851 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
18852
18853         * RichTextBox.cs:
18854
18855           restore
18856
18857 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
18858
18859         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
18860           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
18861           ErrorProvider.cs:
18862           Use ResPool for brushes and dispose System.Drawing objects that
18863           are not used anymore.
18864
18865 2005-10-07  Jackson Harper  <jackson@ximian.com>
18866
18867         * MdiChildContext.cs: Use the new borders instead of drawing them
18868         ourselves.
18869
18870 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
18871
18872         * Calling UpdateBounds after changing the window's BorderStyle 
18873         since the style can change the ClientSize
18874
18875 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18876
18877         * Control.cs: Made PaintControlBackground virtual
18878         * Panel.cs: Overriding PaintControlBackground instead of using paint
18879           event; paint event method was interfering with 'real' users of the
18880           event.
18881
18882 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
18883
18884         * ThemeWin32Classic.cs: remove border drawing since it is handled
18885         by the base control class now and was causing double border drawing.
18886
18887 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18888
18889         * Panel.cs: Redraw our background on paint. Not a pretty solution,
18890           but it does seem to match MS behaviour. This fixes bug #75324
18891
18892 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18893
18894         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
18895           somewhat hackish looking
18896
18897 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
18898
18899         * TextBoxBase.cs:
18900           - We now accept Enter even if AcceptEnter is false, if the containing
18901             form does not have an AcceptButton configured (fixes bug #76355)
18902           - Calculations are now fixed to no longer use Width/Height, but
18903             ClientSize.Width/Height, since we now support borders (this was
18904             a result of fixing borders and therefore bug #76166)
18905           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
18906             true (fixes bug #76354)
18907         
18908 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18909
18910         * Control.cs: 
18911           - Defaulting BorderStyle and setting it in XplatUI when our window 
18912             is created
18913           - Added enum check to InternalBorderStyle setter
18914         * XplatUIX11.cs: 
18915           - Added drawing of window borders
18916           - Now properly calculates WM decorations offset for toplevel 
18917             windows (fixes bug #74763)
18918         * XplatUIWin32.cs: 
18919           - Implemented BorderStyles for windows (we're letting win32 draw 
18920             the border for us)
18921           - Fixed the signature for SetWindowLong
18922         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
18923           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
18924           setting borders
18925         * UpDownBase.cs: Remove drawing of borders, this is handled by
18926           the driver, outside the client area
18927         * ListView.cs: Removed bogus border calculations. The control should
18928           be oblivious to borders, since those are not part of the client
18929           area. 
18930         * X11DesktopColors.cs: Commented out (currently) unneeded variables
18931         * ThemeWin32Classic.cs: Removed border calculations from ListView 
18932           drawing code
18933
18934 2005-10-06  Jackson Harper  <jackson@ximian.com>
18935
18936         * MdiChildContext.cs: Clear out the old virtual position remove
18937         all the unneeded calls to CreateGraphics.
18938
18939 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
18940
18941         * TextControl.cs: Use proper color for highlighted text; fixes #76350
18942
18943 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
18944
18945         * Form.cs: 
18946           - Added loading and setting of our new default icon
18947           - Only set icon if window is already created
18948
18949 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
18950
18951         * Label.cs:
18952           - Do not explicitly set the foreground and background colors, to
18953             allow inheriting from parents (fixes #76302)
18954           - Use Control's InternalBorderStyle property to deal with borders
18955
18956 2005-10-06  Jackson Harper  <jackson@ximian.com>
18957
18958         * MdiChildContext.cs: Use the new xplatui function to draw a
18959         reversible rect.
18960
18961 2005-10-06  Jackson Harper  <jackson@ximian.com>
18962
18963         * Form.cs: Add the parent before creating the child context cause
18964         we need the parent when setting up the child.
18965
18966 2005-10-06  Jackson Harper  <jackson@ximian.com>
18967
18968         * FolderBrowserDialog.cs: redo the tree population code so a
18969         second thread isn't used. Should be a lot faster and more stable
18970         now.
18971
18972 2005-10-05  Jackson Harper  <jackson@ximian.com>
18973
18974         * TreeView.cs: There are no expand/collapse boxes if the node has
18975         no children.
18976
18977 2005-10-05  Jackson Harper  <jackson@ximian.com>
18978
18979         * X11DesktopColors.cs: Get menu colours for the gtk theme.
18980
18981 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
18982
18983         * FileDialog.cs: Fix InitialDirectory
18984
18985 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
18986
18987         * ComboBox.cs:
18988                 - Fixes changing between styles
18989                 - Fixes simple mode
18990                 - Fixes last item crashing when navigating with keyboard
18991
18992 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
18993
18994         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
18995
18996 2005-10-05  Jackson Harper  <jackson@ximian.com>
18997
18998         * TreeView.cs: If updating the root node do a full refresh.
18999         * TreeNode.cs: The root node should be expanded by default. Also
19000         added a utility prop to tell if we are the root node.
19001         * TreeNodeCollection.cs: Only refresh if the node we are being
19002         added to is expanded. Also added a comment on a potential
19003         optimization.
19004         
19005 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
19006
19007         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
19008           in dispose method. Fixes #76330
19009
19010 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
19011
19012         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
19013
19014                 - Implements vertical and horizontal scrolling using XplatUI
19015                 - Fixes keyboard navagation
19016                 - Fixes EnsureVisible
19017                 - Drawing fixes
19018                 - Handles and draws focus properly
19019
19020
19021 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
19022
19023         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
19024           Create handle. NET_2_0: Destroy handle when value is null.
19025
19026 2005-10-03  Jackson Harper  <jackson@ximian.com>
19027
19028         * ScrollBar.cs: My last scrollbar patch was broken. This is a
19029         revert and a new patch to prevent the thumb from refreshing so
19030         much.
19031
19032 2005-10-02  Jackson Harper  <jackson@ximian.com>
19033
19034         * ScrollBar.cs: Don't update position if it hasn't actually
19035         changed. This occurs when you hold down the increment/decrement
19036         buttons and the thumb gets to the max/min.
19037
19038 2005-10-01  Jackson Harper  <jackson@ximian.com>
19039
19040         * Form.cs:
19041         * MdiChildContext.cs:
19042         * MdiClient.cs: Implement ActiveMdiChild in Form.
19043
19044 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
19045
19046         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
19047
19048 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
19049
19050         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
19051           be found
19052
19053 2005-09-30  Jackson Harper  <jackson@ximian.com>
19054
19055         * ListBox.cs: Don't do a full refresh unless some data has
19056         actually changed.
19057
19058 2005-09-30  Jackson Harper  <jackson@ximian.com>
19059
19060         * TreeView.cs: Make sure that the checkboxes size is factored in
19061         even when not visible.
19062
19063 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19064
19065         * FileDialog.cs: Fix Jordi's build break
19066
19067 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19068
19069         * FileDialog.cs: 
19070                 - Use standard the Windows colours for the combobox as espected
19071                 - Dispose objects that use resouces when no longer need them
19072
19073 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19074
19075         * X11DesktopColors.cs: Initial incomplete implementation
19076         * XplatUIX11.cs: Added call to initialize X11DesktopColors
19077
19078 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
19079
19080         * Theme.cs: 
19081           - Switched Theme color names to match the names defined in 
19082             System.Drawing.KnownColors. Life's hard enough, no need to make 
19083             it harder.
19084           - Added setters to all theme color properties so themes can set
19085             their color schemes. The setters also propagate the color changes
19086             to System.Drawing.KnownColors via reflection
19087         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
19088           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
19089           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
19090           use the new, more logical theme color names
19091         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
19092           post-NT colors
19093         * ThemeWin32Classic.cs:
19094           - Removed code to set the old classic Windows colors. Instead it
19095             now relies on the colors returned by System.Drawing.KnownColors
19096             which will be either modern static colors (Unix) or colors
19097             read from the user's configuration (Win32)
19098           - Updated to use the new, more logical theme color names
19099           - Switched DataGrid drawing code to use only Theme colors instead of
19100             a mix of System.Drawing.KnownColors and Theme colors
19101           - DrawFrameControl(): Removed code that fills the button area, the
19102             fill would overwrite any previous fill done by a control. This
19103             fixes bug #75338 
19104           - Added DrawReversibleRectangle() stub
19105         * ScrollableControl.cs: Set visible state to false when scrollbars
19106           are removed (pdn fix)
19107         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
19108           DrawReversibleRectangle() method to allow drawing primitive 
19109           'rubber bands'
19110         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
19111
19112 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19113
19114         * ImageList.cs: Add(Icon): Create handle.
19115
19116 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19117
19118         * ListView.cs:
19119         * ThemeWin32Classic.cs:
19120                 - Fixes detail mode
19121                 - Sets clippings
19122                 - Issues with drawing
19123
19124 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19125
19126         * ImageList.cs: Moved RecreateHandle back to ImageList as event
19127           source has to be the ImageList.
19128
19129 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19130
19131         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
19132
19133 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19134
19135         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
19136
19137 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19138
19139         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
19140
19141 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
19142         * GridItem.cs: Fixed TODOs
19143         * GridItemCollection.cs: Added ICollection interface
19144
19145 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19146
19147         * ImageList.cs: Resize icons when needed.
19148
19149 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
19150
19151         * ListViewItem.cs
19152                 - Fixes GetBounds and returns on screen rects
19153         * ListView.cs:
19154                 - Fixes vertical and horzintal scrolling of items
19155         * ThemeWin32Classic.cs:
19156                 - Fixes drawing
19157                 
19158 2005-09-29  Raja R Harinath  <harinath@gmail.com>
19159
19160         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
19161
19162 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
19163
19164         * ImageList.cs: Added comments about handle creation. Moved Handle,
19165           HandleCreated and OnRecreateHandle implementations to ImageCollection.
19166           Handle is created in Add methods.
19167
19168 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19169          
19170         * DataGridDrawingLogic.cs: 
19171                 - Takes rows into account on Colum calculations
19172                 - Returns the column when clickig
19173         * DataGrid.cs:
19174                 - Fixes default HitTestInfo values
19175                 - Fixes HitTestInfo.ToString
19176                 - Fixes ResetBackColor          
19177         
19178 2005-09-28  Jackson Harper  <jackson@ximian.com>
19179
19180         * MdiChildContext.cs: Obey rules for fixed sized windows (no
19181         sizing or cursor changes). Also added some temp code to draw the
19182         titlebars text (Makes dev a little easier).
19183
19184 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19185
19186         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
19187
19188 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19189          
19190         * ListBox.cs: Fixes bug 76253
19191
19192 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19193
19194         * ImageList.cs: Added comments about the current implementation. Added
19195           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
19196           Format32bppArgb to preserve transparency and can use Graphics.FromImage
19197           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
19198           with Bitmap.LockBits for better performance. Revised the whole file to
19199           match MS.NET behaviour and provide better performance. Non-public
19200           interface members are calling public members even when they throw
19201           NotSupportedException for better maintainability. Moved ColorDepth,
19202           ImageSize, ImageStream and TransparentColor implementations to
19203           ImageCollection for better performance as these properties are not used
19204           by ImageList.
19205         * ImageListStreamer.cs: Added a new internal constructor that takes an
19206           ImageList.ImageCollection and serializes Images based on
19207           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
19208           match ImageList property name.
19209
19210 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
19211
19212         * ListBox.cs: Fixes IndexFromPoint for last item
19213
19214 2005-09-27  Jackson Harper  <jackson@ximian.com>
19215
19216         * Form.cs: Set the position of new mdi children correctly.
19217
19218 2005-09-27  Jackson Harper  <jackson@ximian.com>
19219
19220         * MdiClient.cs: New mdi children need to be added to the back of
19221         the controls collection so the zorder is set correctly. Also add a
19222         count of all the child windows that have been created.
19223
19224 2005-09-27  Jackson Harper  <jackson@ximian.com>
19225
19226         * Form.cs (CreateParams): Setup MDI forms correctly.
19227
19228 2005-09-27  Jackson Harper  <jackson@ximian.com>
19229
19230         * MdiChildContext.cs:
19231         * MonthCalendar.cs:
19232         * UpDownBase.cs:
19233         * ListBox.cs:
19234         * ListView.cs:
19235         * TextBoxBase.cs:
19236         * TreeView.cs:
19237         * ScrollableControl.cs:
19238         * ComboBox.cs: Add implicit controls using the new implict control
19239         functionality in ControlCollection. Also try to block multiple
19240         control add in a suspend/resume layout to save some cycles.
19241         
19242 2005-09-27  Jackson Harper  <jackson@ximian.com>
19243
19244         * Control.cs: Add functionality to the controls collection to add
19245         'implicit controls' these are controls that are created by the
19246         containing control but should not be exposed to the user. Such as
19247         scrollbars in the treeview.
19248         * Form.cs: The list var of the ControlsCollection is no longer
19249         available because of the potential of implicit controls getting
19250         ignored by someone accessing the list directly.
19251
19252 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
19253
19254         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
19255           loose it's parent. (Fixed bug introduced in r49103 when we added
19256           setting the child parent to null on Remove)
19257
19258 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
19259
19260         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
19261         * Splitter.cs: Added missing attributes for BorderStyle property.
19262         * TextBoxBase.cs: Marked Calculate* methods internal.
19263         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
19264         MS.NET.
19265
19266 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
19267          
19268         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
19269
19270 2005-09-25  Jackson Harper  <jackson@ximian.com>
19271
19272         * TreeView.cs: Update the node bounds correctly regardless of
19273         whether the node is visible.
19274
19275 2005-09-25  Jackson Harper  <jackson@ximian.com>
19276
19277         * ImageList.cs: Don't dispose the image after it is added to the
19278         image list. Only reformat images that need to be resized.
19279
19280 2005-09-25  Jackson Harper  <jackson@ximian.com>
19281
19282         * ImageList.cs: Don't set the format when changing the image.
19283
19284 2005-09-25  Jackson Harper  <jackson@ximian.com>
19285
19286         * TreeView.cs: We can't just assume the node has a font. Use the
19287         treeviews font if no node font is available.
19288
19289 2005-09-25  Jackson Harper  <jackson@ximian.com>
19290
19291         * TreeView.cs: Allow the scrollbars to be reset with negative
19292         values.
19293         - Don't add scrollbars to negative sized windows.
19294
19295 2005-09-23  Jackson Harper  <jackson@ximian.com>
19296
19297         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
19298         old Mono.Posix. Also remove some stray code that shouldn't have
19299         been committed.
19300
19301 2005-09-23  Jackson Harper  <jackson@ximian.com>
19302
19303         * TreeView.cs: Attempt at proper sizing of the horizontal
19304         scrollbar. Also don't resize the scrollbars unless they are
19305         visible.
19306
19307 2005-09-23  Jackson Harper  <jackson@ximian.com>
19308
19309         * TreeView.cs: We don't need to expand the invalid area when the
19310         selection changes, as this is all drawn in the node's bounding
19311         box. The area needs to be expanded (previous typo was contracting
19312         it) when the focus rect moves.
19313
19314 2005-09-23  Jackson Harper  <jackson@ximian.com>
19315
19316         * TreeView.cs: Display the selection box under the correct
19317         circumstances. We were rendering white text with no selection box
19318         before.
19319
19320 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
19321
19322         * TextControl.cs(Split): Now updates selection start/end if it points 
19323           into a line that's being split. Fixes a FIXME and bug #75258
19324
19325 2005-09-23  Jackson Harper  <jackson@ximian.com>
19326
19327         * Binding.cs:
19328         * ListControl.cs: Don't use the path when retrieving binding
19329         managers from the binding context. My bat sense tells me that the
19330         path is only used on insertion.
19331
19332 2005-09-22  Jackson Harper  <jackson@ximian.com>
19333
19334         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
19335
19336 2005-09-22  Jackson Harper  <jackson@ximian.com>
19337
19338         * Splitter.cs: There are special cursors used for splitting.
19339         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
19340
19341 2005-09-22  Jackson Harper  <jackson@ximian.com>
19342
19343         * Splitter.cs: Change the cursor appropriately when the splitter
19344         is moused over, so the user actually knows there is a splitter
19345         there.
19346
19347 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19348
19349        * Label.cs : Fix ToString method to give same output as MS.NET
19350
19351 2005-09-22  Jackson Harper  <jackson@ximian.com>
19352
19353         * TreeView.cs: Create the scrollbars when the handle is created
19354         and add them right away, just make them invisble. Also account for
19355         the window being shrunk vertically to the point that the vert
19356         scrollbar needs to be added.
19357         - Remove some 0.5 adjustments to get around anti aliasing issues.
19358         
19359 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
19360          
19361         * MainMenu.cs: Fixes default value
19362         * MenuItem.cs: Fixes default value
19363
19364 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
19365
19366         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
19367
19368 2005-09-21  Jackson Harper  <jackson@ximian.com>
19369
19370         * Control.cs: Don't try to set the border style on the window if
19371         it hasn't been created. When the window is created the border
19372         style will be used.
19373
19374 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19375
19376         * Control.cs (Update): Don't call XplatUI if we don't have a
19377           window handle yet
19378
19379 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19380
19381         * ContainerControl.cs: Instead of throwing an exception, print
19382           a one-time warning about Validate not being implemented
19383         * XplatUIWin32.cs: Removed debug output
19384
19385 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19386
19387         * Control.cs: Only set XplatUI background if we expect the windowing
19388           system to handle the background. This stops controls that draw their
19389           own background from flickering
19390
19391         * XplatUIX11.cs: Support custom visuals and colormaps for window 
19392           creation. This allows, amongst other things, using MWF X11 windows 
19393           with OpenGL.
19394
19395 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19396
19397         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
19398           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
19399           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
19400           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
19401           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
19402           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
19403           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
19404           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
19405           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
19406           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
19407           GridColumnStylesCollection.cs, 
19408           IDataGridColumnStyleEditingNotificationService.cs,
19409           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
19410           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
19411           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
19412           TreeNodeCollection.cs, AmbientProperties.cs, 
19413           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19414           DataObject.cs, ErrorProvider.cs, Splitter.cs,
19415           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
19416           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
19417           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
19418           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
19419           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
19420           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
19421           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
19422           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
19423           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
19424           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
19425           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
19426           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
19427           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
19428           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
19429           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
19430           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
19431           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
19432           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
19433           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
19434           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
19435           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
19436           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
19437           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
19438           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
19439           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
19440           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
19441           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
19442           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
19443           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
19444           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
19445           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
19446           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
19447           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
19448           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
19449           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
19450
19451 2005-09-21  Jackson Harper  <jackson@ximian.com>
19452
19453         * TreeNode.cs: Call Before/After Expand not Collapse when
19454         expanding.
19455
19456 2005-09-20  Jackson Harper  <jackson@ximian.com>
19457         
19458         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
19459
19460 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19461          
19462         * ListViewItem.cs:
19463                 - Fixes bug 76120
19464                 - Fixes proper storing of subitems
19465                 - Fixes not updated items
19466
19467 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
19468
19469         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
19470           things if our window handle isn't created yet. Also disabled 
19471           debug for TextBoxBase
19472
19473 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
19474
19475         * MenuAPI.cs: Remove filtering of events to allow menu usage
19476
19477 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19478
19479         * Cursor.cs: Allow null to be passed to Cursor.Current.
19480
19481 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
19482
19483         * ThemeWin32Classic.cs:
19484           - Change some private methods/fields to protected virtual so that 
19485             they can be accessed and overriden in derived classes
19486           - First refactoring of some methods. Derived themes now don't 
19487             need to duplicate the complete code from ThemeWin32Classic
19488         * ThemeNice.cs:
19489           - Added nice StatusBar
19490           - Derive from ThemeWin32Classic and not Theme
19491           - Removed duplicate ThemeWin32Classic code
19492
19493 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19494
19495         * Control.cs (ControlCollection.Add): If the value null is passed
19496         the control is ignored. 
19497
19498         Optimize this loop.
19499
19500 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
19501
19502         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
19503           PostQuitMessage state.
19504         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
19505
19506 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
19507
19508         * Application.cs: Our constructor will never get called, move 
19509           initialization to fields; fixes bug #75933
19510
19511 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19512
19513         * FileDialog.cs :
19514                 - Allow files to be selected properly using file name
19515                 combo box.
19516                 - Add ability to change diretory (absolute / relative)
19517                 using file name combo box.
19518
19519 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19520          
19521         * ListBox.cs: 
19522                 - Fixes Multicolumn listboxes item wrong calculations
19523                 - Allows to click when only one item is in the listbox
19524                 - Fixes crash when no items using keyboard navigation
19525
19526 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
19527
19528         * ComboBox.cs: Reverted almost everything from the latest patch which
19529           broke ComboBox
19530
19531 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
19532         
19533         * ToolTip.cs:
19534                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
19535         * ComboBox.cs:
19536                 - When DropDownStyle is Simple, it does not show scrollbar 
19537                 to the last item of the list.
19538                 - When DropDownStyle is Simple, it crashed when the list was 
19539                 scrolled down with the down cursor key.
19540                 - Fixed a bug that when DropDownStyle is DropDownList, the 
19541                 selected item was not shown.
19542                 - The position of the selected item was not preserved when 
19543                 the next dropdown happened.
19544         * ThemeWin32Classic.cs:
19545                 - Items were wrapped at the right end.
19546         * CheckedListBox.cs:
19547                 - Fixed Add method
19548         * ListBox.cs:
19549                 - Items should be fully shown.
19550                 - When resizing and vertical scrollbar disappeared, the item 
19551                 of index 0 should be on the top of the list.
19552                 - GetItemRectangle should consider the size of ver. scrollbar
19553         * StatusBar.cs:
19554                 - SizingGrip area should not be allocated when it is not 
19555                 displayed.
19556                 - Now it reflects MinWidth of the containing panel and 
19557                 fixed a crash that happens when its width becomes so small.
19558
19559 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19560
19561         * CheckedListBox.cs: Fixes bug 76028
19562         * ListBox.cs: Fixes bug 76028
19563
19564 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19565
19566         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
19567         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
19568
19569 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
19570
19571         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
19572
19573 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19574
19575         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
19576
19577 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19578
19579         * IRootGridEntry.cs: Added
19580         * PropertyGridCommands.cs: Added
19581         * PropertiesTab.cs: Added missing methods and property
19582         * PropertyGridView.cs: Made class internal
19583         * PropertyGridTextBox.cs: Made class internal
19584
19585 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19586
19587         * MimeIcon.cs: Try to check some other environment variables
19588           if "DESKTOP_SESSION" returns "default"
19589
19590 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19591
19592         * ThemeNice.cs: Corrected background colors (e.g. menus)
19593         * ColorDialog.cs: Use correct background colors for controls
19594
19595 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19596
19597         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
19598
19599 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
19600
19601         * RichTextBox.cs: Added initial implementation
19602         * lang.cs: Removed. Was accidentally checked in long time ago
19603         * TODO: Removed. Contents were obsolete
19604
19605 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19606                                                                                 
19607         * PropertiesTab.cs : Added
19608
19609 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19610                                                                                 
19611         * PropertyGrid.cs : Update
19612         * PropertyGridView.cs : Update
19613         * System.Windows.Forms.resx : Added images and strings
19614
19615 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
19616
19617         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
19618  
19619 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
19620
19621         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
19622           a busy loop right after the Ungrab the X11 display is otherwise 
19623           blocked
19624
19625 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
19626
19627         * ThemeWin32Classic.cs: Optimise the use of clipping
19628
19629 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
19630
19631         * DataGrid.cs: fixes recursion bug
19632
19633 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
19634
19635         * ThemeNice.cs: 
19636           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
19637           - Cleanup
19638
19639 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
19640
19641         * ThemeNice.cs: Draw nice ProgressBars
19642
19643 2005-09-01  Miguel de Icaza  <miguel@novell.com>
19644
19645         * VScrollBar.cs: Another buglet found by Aaron's tool. 
19646
19647         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
19648         bug finder.
19649
19650 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
19651
19652         * ThemeNice.cs:
19653           - Added nicer menu drawing
19654           - Updated DrawTab
19655           - some refactoring
19656
19657 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19658
19659         * CreateParams.cs (ToString): Made output match MS
19660         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
19661             handle is already created (to avoid forcing window creation)
19662         * XplatUIX11.cs: Set window text to caption after creating window,
19663           in case Text was set before window was created
19664         * Form.cs: Use this.Text instead of a static string as caption
19665
19666 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19667
19668         * NotifyIcon.cs: Don't set the window to visible; this screws
19669           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
19670           OnPaint without a bitmap)
19671         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
19672           happen very often anyway; we could add the check to the WM_PAINT 
19673           event generation code
19674
19675 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19676
19677         * NotifyIcon.cs: Fill the icon area with a background color, to 
19678           avoid 'residue' when transparent icons are drawn
19679         * XplatUIX11.cs:
19680           - Handle whole_window == client_window when destroying windows
19681           - SystrayAdd(): Set client_window to whole_window value to
19682             get mouse and other events passed to NotifyIcon
19683
19684 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19685
19686         * Form.cs: Set proper default for Opacity property
19687         * NotifyIcon.cs:
19688           - ShowSystray(): Don't bother creating telling the OS
19689             about the systray item if no icon is provided
19690           - Now handles WM_NCPAINT message to deal with whole/client window
19691             split
19692           - Create window as visible to not get caught by Expose optimization
19693         * Hwnd.cs: Removed debug message
19694         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
19695           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
19696             PaintEventStart/End to use new client argument
19697         * TextBoxBase.cs:
19698           - Commented out debug messages
19699           - Switched PaintEventStart/End to use new client argument
19700         * XplatUI.cs: Added client window bool to PaintEventStart()/
19701           PaintEventEnd() calls, to support drawing in non-client areas
19702         * XplatUIDriver.cs: 
19703           - Added client window bool to PaintEventStart()/PaintEventEnd() 
19704             calls, to support drawing in non-client areas
19705           - Added conditional compile to allow using MWF BeginInvoke 
19706             on MS runtime
19707         * XplatUIX11.cs:
19708           - Added some conditional debug output
19709           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
19710             whole/client window split
19711           - Implemented handling of client argument to PaintEventStart()/End()
19712         * Control.cs:
19713           - Throw exception if BeginInvoke() is called and the window handle
19714             or one of the window's parent handles is not created
19715           - Added conditional compile to allow using MWF BeginInvoke on
19716             MS runtime
19717           - get_Parent(): Only sets parent if handle is created. This avoids
19718             forcing window handle creation when parent is set.
19719           - Now fires Layout and Parent changed events in proper order
19720           - Switched to use Handle instead of window.Handle for Z-Order setting,
19721             the get_Parent() patch above causes us to possibly get null for 'window'
19722           - Implemented handling of client argument to PaintEventStart()/End()
19723           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
19724             default handling)
19725           - Now sends a Refresh() to all child windows when Refresh() is called
19726
19727 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
19728
19729         * Form.cs: Added (non-functional) Opacity property
19730         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
19731
19732 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
19733         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
19734           use export MONO_THEME=nice to activate it.
19735           Currently supported controls:
19736           - Button
19737           - ComboBox
19738           - ScrollBar
19739           - TabControl (TabAlignment.Top only, other will follow)
19740         * ThemeEngine.cs: Add theme nice
19741         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
19742           if enabled
19743
19744 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
19745
19746         * Splitter.cs: Resize docked control and its neighbor.
19747
19748 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
19749         -- Making Windows with Menus layout correctly --
19750         * Form.cs : The first leg of the fix
19751                 Menu setter - adjust Client Size as needed to make space for the menu
19752                 SetClientSizeCore - doesn't call base version to be able to pass the 
19753                         menu handle to XplatUI.CalculateWindowRect
19754         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
19755         * XplatUIX11.cs: The critical second leg of the fix
19756                 GetWindowPos needs to use a recalculated client_rect
19757                 so that resizing the window doesn't break layout of child controls. 
19758                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
19759                 Lots of \t\n killed
19760
19761 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19762
19763         * Label.cs: Now properly recalculates width and height on Font and Text
19764           changes if AutoSize is set
19765
19766 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
19767         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
19768
19769 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
19770
19771         * ImageList.cs: Makes ToString method compatible with MS
19772
19773 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
19774
19775         * MenuAPI.cs: fixes bug 75716
19776
19777 2005-08-11 Umadevi S <sumadevi@novell.com>
19778         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
19779
19780 2005-08-11 Umadevi S <sumadevi@novell.com>
19781         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
19782
19783 2005-08-10  Umadevi S <sumadevi@novell.com>
19784         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
19785
19786 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
19787
19788         * Menu.cs: fixes bug 75700
19789         * MenuAPI.cs: fixes navigation issues
19790
19791 2005-08-09  Umadevi S <sumadevi@novell.com>
19792         * CheckedListBox.cs - simple fix for GetItemChecked.
19793
19794 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
19795
19796         * ComboBox.cs: Serveral fixes
19797         * ListBox.cs: Serveral fixes
19798
19799 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
19800
19801         * ComboBox.cs: Fixes FindString methods and GetItemHeight
19802         * ListBox.cs: Fixes FindString methods
19803
19804 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
19805
19806         * DataGrid.cs: fixes bugs exposed by new tests
19807
19808 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
19809
19810         * Mime.cs: Compile Mono assembly references only if compiling
19811           with Mono (Allows to build with VS.Net again)
19812
19813 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
19814
19815         * Control.cs (PaintControlBackground): Draw background image
19816         corrrectly.
19817         (CheckForIllegalCrossThreadCalls): Stubbed.
19818         
19819         * Form.cs (OnCreateControl): Center when should be centered.
19820         
19821         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
19822
19823 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
19824
19825         * Binding.cs: Binding to properties should be case unsensitive
19826
19827 2005-07-18 vlindos@nucleusys.com
19828
19829         * DataGrid.cs: fixes setmember order
19830
19831 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
19832
19833         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
19834         * FileDialog.cs: FileDialog is now resizable and uses the new
19835           MimeIconEngine
19836
19837 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
19838
19839         * DataGridTextBoxColumn.cs: default value
19840         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
19841         * GridTableStylesCollection.cs: fixes checking MappingName
19842         * DataGridDrawingLogic.cs: fixes drawing logic issues
19843         * DataSourceHelper.cs: rewritten to make compatible with more data sources
19844         * DataGrid.cs: fixes    
19845
19846 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
19847
19848         * MimeGenerated.cs: Use case sensitive comparer for
19849           NameValueCollections
19850
19851 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
19852
19853         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
19854         * ThemeWin32Classic.cs: bug fixes, code refactoring
19855         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
19856         * DataGrid.cs: bug fixes, code refactoring
19857         * DataGridTextBox.cs: bug fixes, code refactoring
19858         * DataGridColumnStyle.cs:  bug fixes, code refactoring
19859         * Theme.cs:  bug fixes, code refactoring
19860
19861 2005-07-01  Peter Bartok  <pbartok@novell.com> 
19862
19863         * TextControl.cs: Quick fix for the reported crash on ColorDialog
19864           and other text box usage
19865
19866 2005-07-01  Jackson Harper  <jackson@ximian.com>
19867
19868         * TabControl.cs: Make sure the bottom of the tab covers the pages
19869         border.
19870
19871 2005-06-30  Peter Bartok  <pbartok@novell.com> 
19872
19873         * Form.cs (ShowDialog): Assign owner of the dialog
19874         * TextBoxBase.cs: Always refresh caret size when deleting, caret
19875           might have been moved to a tag with different height
19876
19877 2005-06-30  Jackson Harper  <jackson@ximian.com>
19878
19879         * Form.cs: Don't create an infinite loop when setting focus
19880         * MenuItem.cs: Don't dirty the parents if we don't have any
19881
19882 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
19883
19884         * LibSupport.cs: Rename
19885
19886 2005-06-29  Peter Bartok  <pbartok@novell.com>
19887
19888         * TextBoxBase.cs: Re-align caret after deleting a character
19889         * TextControl.cs:
19890           - DeleteChars(): Ensure that tag covers the provided position
19891           - StreamLine(): Drop reference for dropped tag
19892
19893 2005-06-29  Peter Bartok  <pbartok@novell.com> 
19894
19895         * TextControl.cs: 
19896           - Selections now work properly, anchoring at the initial location
19897             and properly extending in either direction (SetSelectionToCaret(),
19898             SetSelectionStart() and SetSelectionEnd())
19899           - No longer redraws the whole control on selection change, now
19900             calculates delta between previous and new selection and only
19901             invalidates/redraws that area
19902           - Fixed FindPos() math off-by-one errors
19903           - Changed DeleteChars() to verify the provided tag covers the
19904             provided position, selections may have a tag that doesn't cover
19905             the position if the selection is at a tag border
19906           - Fixed off-by-one errors in DeleteChars()
19907           - Added missing streamlining check in DeleteChars() to remove
19908             zero-length tags
19909           - Implemented Invalidate() method, now properly calculates exposures
19910             between two given lines/positions
19911           - Implemented SetSelection()
19912           - Obsoleted and removed FixupSelection()
19913           - Improved RecalculateDocument() logic, removing code duplication
19914
19915 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19916
19917         * LibSupport.cs: changes to match different input/output arguments.
19918
19919 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19920
19921         * LibSupport.cs: added libsupport.so init routine.
19922
19923 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
19924         
19925         * ControlBindingsCollection.cs
19926                 - Throws an exception on null datasource when adding
19927                 - Checks for duplicated bindings when adding
19928
19929 2005-06-28  Jackson Harper  <jackson@ximian.com>
19930
19931         * TreeView.cs (OnKeyDown): Support left and right properly
19932         (navigates as well as expanding and collapsing.
19933         - Add support for Multiply, this expands all the selected nodes
19934         children.
19935         - Fix some tabbing.
19936
19937 2005-06-28  Jackson Harper  <jackson@ximian.com>
19938
19939         * TreeView.cs: Implement keyboard navigation, currently supports,
19940         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
19941         support for toggling checkboxes with the space bar.
19942
19943 2005-06-28  Jackson Harper  <jackson@ximian.com>
19944
19945         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
19946         tree.
19947
19948 2005-06-28  Jackson Harper  <jackson@ximian.com>
19949
19950         * TreeView.cs: Add missing event.
19951
19952 2005-06-27  Peter Bartok  <pbartok@novell.com> 
19953
19954         * TextControl.cs:
19955           - Made line ending size configurable (now allows for counting 
19956             lineendings as \n or \r\n)
19957           - Added margin to viewport to keep caret visible on right side
19958           - Fixed translation routines for line/pos to documentpos to consider
19959             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
19960           - Fixed some line-endings to be unix style
19961           - Fixed Document.FormatText to perform it's calculations 1-based
19962           - Added descriptions for a few methods that might otherwise get 
19963             used wrong
19964           - Added NOTE section with some basic conventions to remember at 
19965             the top of the file
19966           - Major fixup for RichTextBox selection drawing:
19967             * Fixed crashes when multiple tags on a single line were selected
19968             * fixed selection box drawing not overlaying text
19969             * fixed bogus offset calculation for tags not starting at index 1
19970             * Switched behaviour from using multiple Substrings of a 
19971               StringBuilder.ToString() to using multiple 
19972               StringBuilder.ToString(start, length) statements, hoping this is
19973               faster (kept original version commented out in the code, in case
19974               original version was faster)
19975         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
19976           alignment != Left
19977         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
19978           call it as well
19979
19980 2005-06-27  Jackson Harper  <jackson@ximian.com>
19981
19982         * TabControl.cs: Move to the left and right with the arrow
19983         keys. These keys don't cycle beyond first and last like
19984         tab. Refresh all the tabs when scrolling them to the left or
19985         right.
19986
19987 2005-06-27  Jackson Harper  <jackson@ximian.com>
19988
19989         * TabControl.cs:
19990           - ToString: Added method
19991           - CreateParams: Remove TODO and comment
19992           - OnKeyDown: Cycle through bounds properly.
19993           - SelectedIndex: Scroll to the right or left if we need to
19994           display the newly selected tab.
19995
19996 2005-06-23  Jackson Harper  <jackson@ximian.com>
19997
19998         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
19999         set.
20000
20001 2005-06-23  Jackson Harper  <jackson@ximian.com>
20002
20003         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
20004         CTRL-SHIFT-TAB, and HOME, END are there any others?
20005
20006 2005-06-23  Jackson Harper  <jackson@ximian.com>
20007
20008         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
20009
20010 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20011         
20012         * DataGridTextBoxColumn.cs: fixes and enhancements
20013         * ThemeWin32Classic.cs: fixes and enhancements
20014         * DataGridBoolColumn.cs:  fixes and enhancements
20015         * DataGridDrawingLogic.cs:  fixes and enhancements
20016         * CurrencyManager.cs: fixes and enhancements
20017         * DataGrid.cs: fixes and enhancements
20018         * DataGridColumnStyle.cs:  fixes and enhancements
20019
20020 2005-06-22  Jackson Harper  <jackson@ximian.com>
20021
20022         * TabControl.cs: Add some missing methods that just call into the
20023         base. Make the TabPageCollection's IList interface behave in the
20024         same manner as the MS implementation.
20025
20026 2005-06-22  Peter Bartok  <pbartok@novell.com> 
20027
20028         * TextControl.cs: Added sanity check
20029         * TextBoxBase.cs: 
20030           - Fixed wrapping behaviour, don't set wrap on single line controls
20031             (this fixes the breakage of colordialog introduced in an earlier
20032              checkin)
20033           - Added rudimentary support for autoscrolling right-aligned controls
20034             (still needs fixing, also, center alignment scroll is missing)
20035
20036 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20037         
20038         * ScrollBar.cs: Fixes thumbpos on Maximum values
20039
20040 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
20041         
20042         * PropertyGridView.cs: Pass context information to UITypeEditors 
20043
20044 2005-06-21  Peter Bartok  <pbartok@novell.com> 
20045
20046         * TextBoxBase.cs:
20047           - Now calling PositionCaret with absolute space coordinates
20048           - Enabled vertical scrolling
20049           - Better tracking of scrollbar changes, tied into WidthChange
20050             event
20051           - Improved cursor tracking
20052           - Removed debug output
20053         * TextControl.cs:
20054           - PositionCaret coordinates are now works in absolute space, not 
20055             the canvas
20056           - Improved tracking of document size
20057           - Added events for width and height changes
20058
20059 2005-06-21  Peter Bartok  <pbartok@novell.com>
20060
20061         * Form.cs: Set focus to active control when form is activated
20062         * TextControl.cs: 
20063           - Added word-wrap functionality to RecalculateLine() 
20064           - Added some short function descriptions for VS.Net to aid in
20065             writing dependent controls
20066           - Added Caret property, returning the current coords of the caret
20067           - Added ViewPortWidth and ViewPortHeight properties
20068           - Added Wrap property
20069           - Added CaretMoved event
20070           - Removed some old debug code
20071           - Split() can now create soft splits
20072           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
20073           - Added method to format existing text
20074           - Fixed size/alignment calculations to use viewport
20075           - RecalculateDocument now can handle changing line-numbers while
20076             calculating lines
20077
20078         * TextBox.cs:
20079           - Added some wrap logic, we don't wrap if alignment is not left
20080           - Added casts for scrollbar var, base class switched types to
20081             also support RichTextBoxA
20082           - Implemented handling of scrollbar visibility flags
20083
20084         * TextBoxBase.cs:
20085           - Switched scrollbars type to RichTextBoxScrollBars to support
20086             RichTextBox
20087           - Added tracking of canvas width/height
20088           - Switched scrollbars to be not selectable (to keep focus on text)
20089           - Added central CalculateDocument() method to handle all redraw
20090             requirements
20091           - Added ReadOnly support
20092           - Added WordWrap support
20093           - Fixed handling of Enter key (we now treat it as a DialogKey)
20094           - Fixed caret positioning when h or v scroll is not zero
20095           - Fixed placing/generation of vertical scrollbar
20096           - Added CalculateScrollBars() method to allow updating scrollbar
20097             limits and visibility
20098           - Fixed handling of horizontal scroll
20099           - Added handling of vertical scroll
20100           - Implemented auto-'jump' when caret moves to close to a left or
20101             right border and there is text to be scrolled into view (currently
20102             there's the potential for a stack overflow, until a bug in
20103             scrollbar is fixed)
20104
20105 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
20106         
20107         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
20108
20109 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
20110
20111         * Mime.cs:
20112         - added inodes.
20113         - return application/x-zerosize for files with size zero
20114           (if no extension pattern matches).
20115         - check matches collection for strings too.
20116         - return only the first mime type if the name value
20117           collection has more than one mime type.
20118
20119 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
20120         
20121         * PropertyGrid.cs: Cleaned up some TODOs
20122         * PropertyGridView.cs: Added support for UITypeEditors
20123
20124 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20125         
20126         * DataGrid.cs: clears cached value
20127
20128 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20129
20130         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
20131         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
20132         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
20133         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
20134         
20135 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
20136
20137         * ThemeWin32Classic.cs: fixes colour
20138
20139 2005-06-15  Peter Bartok  <pbartok@novell.com>
20140
20141         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
20142         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
20143         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
20144         * Control.cs: Added some MWFCategory and MWFDescription attributes
20145         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
20146
20147 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
20148
20149         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
20150         usage
20151
20152 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
20153
20154         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
20155         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
20156         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
20157         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
20158         * DataGrid.cs: default datagrid settings for Default Styles, fixes
20159         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
20160
20161 2005-06-13  Jackson Harper  <jackson@ximian.com>
20162
20163         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
20164         isn't printed when the user enables dropping. (X11 does accept
20165         drops).
20166         
20167 2005-06-13  Jackson Harper  <jackson@ximian.com>
20168
20169         * TreeView.cs: Remove some TODOS.
20170
20171 2005-06-13  Jackson Harper  <jackson@ximian.com>
20172
20173         * Form.cs: Hook into the mdi framework.
20174         * MdiClient.cs: Use the base control collections add method so
20175         parents get setup correctly. Set the default back colour and dock
20176         style.
20177         * MdiChildContext.cs: New class, this bad actor handles an
20178         instance of an MDI window. Right now there is only basic
20179         support. You can drag, close, and resize windows. Minimize and
20180         Maximize are partially implemented.
20181
20182 2005-06-13  Jackson Harper  <jackson@ximian.com>
20183
20184         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
20185         freaky when both vals are negative. NOTE: There are probably other
20186         places in XplatUIX11 that this needs to be done.
20187
20188 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
20189
20190         * DataGrid.cs: implement missing methods, move KeyboardNavigation
20191         * DataGridColumnStyle.cs: fixes signature
20192
20193 2005-06-12  Jackson Harper  <jackson@ximian.com>
20194
20195         * XplatUIX11.cs: Use sizing cursors similar to the ones on
20196         windows.
20197
20198 2005-06-11  Jackson Harper  <jackson@ximian.com>
20199
20200         * StatusBarPanel.cs: Signature cleanups. Implement
20201         BeginInit/EndInit.
20202
20203 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
20204
20205         * DataGridTextBoxColumn.cs: Honors aligment
20206         * GridColumnStylesCollection.cs: Contains is case unsensitive
20207         * GridTableStylesCollection.cs: several fixes
20208         * DataGridTableStyle.cs: default column creation
20209         * DataGridDrawingLogic.cs: fixes
20210         * CurrencyManager.cs: ListName property
20211         * DataGrid.cs: multiple styles support
20212         * DataGridColumnStyle.cs: fixes
20213         
20214
20215 2005-06-10  Peter Bartok  <pbartok@novell.com>
20216
20217         * Control.cs(Select): Moved SetFocus call to avoid potential
20218           loops if controls change the active control when getting focus
20219         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
20220           the up/down buttons
20221
20222 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
20223
20224         * ImageListConverter.cs: Implemented
20225
20226 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20227
20228         * MonthCalendar.cs: Wired in NumericUpDown control for year
20229
20230 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20231
20232         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
20233           DoubleClick events, since they are not meant to be fired.
20234
20235 2005-06-09  Peter Bartok  <pbartok@novell.com>
20236
20237         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
20238           Jonathan's standalone controls into MWF, implemented missing
20239           events, attributes and methods; added xxxAccessible classes
20240         * AccessibleObject.cs: Made fields internal so other classes
20241           can change them if needed
20242
20243 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
20244
20245         * UpDownBase.cs: Complete implementation
20246         * NumericUpDown.cs: Complete implementation
20247         * DomainUpDown.cs: Complete implementation
20248
20249 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
20250
20251         * DataGridTextBoxColumn.cs: drawing fixes
20252         * DataGridCell.cs: fixes ToString method to match MSNet
20253         * DataGridTableStyle.cs: fixes
20254         * DataGridBoolColumn.cs: fixes, drawing
20255         * DataGridDrawingLogic.cs: fixes, new methods
20256         * DataGridTextBox.cs: Keyboard and fixes
20257         * DataGrid.cs:
20258                 - Keyboard navigation
20259                 - Scrolling fixes
20260                 - Row selection (single, multiple, deletion, etc)
20261                 - Lots of fixes
20262         
20263 2005-06-07  Jackson Harper  <jackson@ximian.com>
20264
20265         * ThemeWin32Classic.cs: Clear the background area when drawing
20266         buttons.
20267
20268 2005-06-06  Peter Bartok  <pbartok@novell.com>
20269
20270         * ImageListStreamer.cs: Fixed signature for GetData
20271         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
20272         * ComboBox.cs:
20273           - Added missing ChildAccessibleObject class
20274           - Added missing OnXXXFocus overrides, switched to using those
20275             instead of the event handler
20276         * Control.cs:
20277           - Added Parent property for ControlAccessibleObject
20278           - Fixed signatures
20279           - Fixed attributes
20280           - Added ResetBindings()
20281         * ListBindingConverter.cs: Implemented some methods
20282         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
20283         * ImageList.cs: Implemented basic handle scheme, removed TODOs
20284         * ContainerControl.cs: Fixed signature, now subscribing to the
20285           ControlRemoved event instead of overriding the handler, LAMESPEC
20286         * CurrencyManager.cs: Added missing attribute
20287         * MonthCalendar.cs: Added missing properties
20288
20289 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20290
20291         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
20292         
20293 2005-06-06  Gaurav Vaish and Ankit Jain
20294
20295         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
20296         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
20297         
20298 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20299
20300         * Control.cs: fixes CreateParams Width / Height.
20301
20302 2005-06-05  Peter Bartok  <pbartok@novell.com>
20303
20304         * Win32DnD.cs: Removed compilation warnings
20305
20306 2005-06-05  Peter Bartok  <pbartok@novell.com>
20307
20308         * Control.cs (CreateParams): Since we don't know if one of the
20309           properties we use is overridden, lets make sure if we fail accessing
20310           we continue with a backup plan
20311
20312 2005-06-05  Peter Bartok  <pbartok@novell.com>
20313
20314         * Win32DnD.cs:
20315           - Removed debug output
20316           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
20317             struct
20318           - Plugged resource leak
20319         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
20320           MS size
20321
20322 2005-06-05  Peter Bartok  <pbartok@novell.com>
20323
20324         * XplatUIWin32.cs: Removed DnD code
20325         * Win32DnD.cs: Implemented drop source and drop target functionality
20326
20327 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20328
20329         * UpDownBase.cs: remove duplicate addition of event, enable some code
20330         that was commented out.
20331         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
20332         Validate input when a key is pressed. It works fine now for every
20333         combination of Hexadecimal. Only missing some drawing love when sharing
20334         space with other controls.
20335
20336 2005-06-04  Peter Bartok  <pbartok@novell.com>
20337
20338         * Control.cs:
20339           - We need to pass a window for DragDrop, so enable callback events
20340           - Added DnD callback events when being a DragSource
20341         * XplatUI.cs (StartDrag): Added window handle argument
20342         * XplatUIDriver.cs (StartDrag): Added window handle argument
20343         * QueryContinueDragEventArgs: Made fields internally accessible so
20344           drivers can set them
20345         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
20346           can set them
20347
20348 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
20349
20350         * DataGridTextBoxColumn.cs: column text editing
20351         * DataGridTableStyle.cs: Respect columns styles created by the user
20352         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
20353         * DataGridBoolColumn.cs: bool column editing
20354         * DataGrid.cs: fixes to scrolling, properties, etc
20355         * DataGridTextBox.cs: handle keyboard
20356         * DataGridColumnStyle.cs: fixes
20357
20358 2005-06-02  Jackson Harper  <jackson@ximian.com>
20359
20360         * ImageListStreamer.cs: Somewhat broken implementation of
20361         GetObjectData. The RLE needs some work to match MS properly.
20362
20363 2005-06-02  Jackson Harper  <jackson@ximian.com>
20364
20365         * X11Dnd.cs: Attempting to keep at least one file in MWF
20366         monostyled.
20367
20368 2005-06-02  Peter Bartok  <pbartok@novell.com>
20369
20370         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
20371           that way
20372
20373 2005-06-02  Peter Bartok  <pbartok@novell.com>
20374
20375         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
20376         * XplatUI.cs: Added DoDragDrop() method
20377         * XplatUIDriver.cs: Added DoDragDrop() method
20378
20379 2005-06-02  Jackson Harper  <jackson@ximian.com>
20380
20381         * Splitter.cs: Implement BorderStyle.
20382
20383 2005-06-02  Jackson Harper  <jackson@ximian.com>
20384
20385         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
20386         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
20387         X11 using XDND.
20388
20389 2005-06-02  Peter Bartok  <pbartok@novell.com>
20390
20391         * DataObject.cs:
20392           - Added Data setter
20393           - Fixed broken insertion code for SetData, now also
20394             overwrites any existing entry of the same format name
20395         * Hwnd.cs: Added list of pointers that automatically gets
20396           freed when the window is disposed
20397         * XplatUI.cs: Call driver initialization method when loading
20398           a driver
20399         * Control.cs:
20400           - OnDragLeave takes EventArgs, not DragEventArgs
20401           - Added setting of WS_EX_ACCEPTFILES style when dropping is
20402             supported
20403           - Forces style update when drop state changes
20404         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
20405           not perfect since we cannot (yet) call the IDataObject.GetData()
20406           method, we keep getting 0x80004005 error, dunno why)
20407
20408 2005-06-02  Peter Bartok  <pbartok@novell.com>
20409
20410         * DragEventArgs.cs: Make fields internal so we can cache the
20411           object and re-set the fields from XplatUI
20412
20413 2005-06-02  Jackson Harper  <jackson@ximian.com>
20414
20415         * Control.cs: Add some internal methods so the DnD subsystem can
20416         raise DnD events. Also call into the driver when AllowDrop is set.
20417         * XplatUI.cs:
20418         * XplatUIDriver.cs: New method for setting whether or not a window
20419         is allowed to accept drag and drop messages.
20420                 
20421 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
20422         
20423         * ScrollBar.cs: Make sure that values sent in Scroll events
20424         are always between Maximum and Minimum.
20425
20426 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
20427
20428         * Menu.cs: Call MenuChanged when menuitem visibility has been
20429         changed.
20430         * MenuItem.cs: Rebuild menu when item is (not) visible.
20431         * MainMenu.cs: MainMenu has special MenuChanged.
20432         * Theme.cs: Caption and FrameBorderSize are not fixed.
20433         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
20434         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
20435         * XplatUIX11.cs,
20436         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
20437         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
20438
20439 2005-05-30  Jackson Harper  <jackson@ximian.com>
20440
20441         * DataFormat.cs: We can't statically initialize this stuff because
20442         it calls into the xplatui and could create a loop. So we lazy init
20443         it.
20444
20445 2005-05-28  Jackson Harper  <jackson@ximian.com>
20446
20447         * Control.cs: Proper implementation of Product(Name/Version).
20448
20449 2005-05-27  Jackson Harper  <jackson@ximian.com>
20450
20451         * DataObject.cs: Dont crash if no data is found.
20452
20453 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
20454         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
20455                 as per status page, guessing it should be set to true
20456
20457 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
20458
20459         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
20460         * DataGridTableStyle.cs: set proper formatting text, def header text
20461         * ThemeWin32Classic.cs: new themable paramaters
20462         * DataGridBoolColumn.cs: paint check box, get data, fixes
20463         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
20464         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
20465         * DataGridColumnStyle.cs: fixes
20466         * Theme.cs: new themable paramaters
20467                 
20468 2005-05-26  Peter Bartok  <pbartok@novell.com>
20469
20470         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
20471
20472 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20473         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
20474
20475 2005-05-24  Peter Bartok  <pbartok@novell.com>
20476
20477         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
20478           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
20479           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
20480           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
20481           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
20482           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
20483           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
20484           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
20485           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
20486           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
20487           missing attributes, etc
20488         * DataGridPreferredColumnWidthTypeConverter.cs: Added
20489
20490 2005-05-24  Peter Bartok  <pbartok@novell.com>
20491
20492         * Help.cs: Added, implemented trivial functions, throws up MessageBox
20493           when user tries to get help
20494         * DataObject.cs, DataFormats.cs, LinkArea.cs,
20495           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
20496           to suppress warnings
20497         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
20498           avoid unreachable code warning
20499
20500 2005-05-20  Peter Bartok  <pbartok@novell.com>
20501
20502         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
20503
20504 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20505
20506         * DataGridTextBoxColumn.cs: Basic painting methods
20507         * DataGridTableStyle.cs: Set table style in the column
20508         * ThemeWin32Classic.cs: Use Theme for colors
20509         * DataGridDrawingLogic.cs: Implement more drawing
20510         * DataGrid.cs: drawing, theming, enhacements, fixes
20511         * DataGridColumnStyle.cs: fixes, drawing
20512         * Theme.cs: theming for Datagrid
20513
20514 2005-05-20  Peter Bartok  <pbartok@novell.com>
20515
20516         * Cursor.cs: Implemented GetObjectData() method
20517
20518 2005-05-20  Peter Bartok  <pbartok@novell.com>
20519
20520         * Cursors.cs: Added setting of cursor name
20521         * Cursor.cs:
20522           - Implemented constructors
20523           - Implemented Draw and DrawStretched
20524           - Implemented Current property
20525           - Implemented == and != operators
20526           - Implemented Dispose()
20527           - Implemented ToString
20528           - Added missing attributes
20529         * XplatUIX11.cs:
20530           - Added missing reset for OverrideCursor when DoEvents is called
20531           - Fixed creation of cursor, logic was wrong
20532         * XplatUIWin32.cs:
20533           - Added missing reset for OverrideCursor when DoEvents is called
20534           - Fixed creation of cursor, bit arrays were swapped
20535         * Clipboard.cs: Removed obsolete MonoTODO attribute
20536
20537 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20538
20539         * ComboBox.cs: fixes OnSelectedItemChanged
20540         * ControlBindingsCollection.cs: fixes item range check
20541
20542 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20543
20544         * UpDownBase.cs:
20545                 - Calc preferred height properly
20546                 - Implement missing properties
20547                 
20548         * NumericUpDown.cs: Implement missing events
20549
20550 2005-05-19  Jackson Harper  <jackson@ximian.com>
20551
20552         * TabControl.cs: New method that resizes the tab pages before
20553         redrawing them. This as needed as the control is double buffered
20554         and sizing will not be recalculated unless ResizeTabPages is
20555         called.
20556         * TabPage.cs: Set base.Text instead of Text in the constructor so
20557         that UpdateOwner does not get called. Use the new Redraw method of
20558         TabControl instead of Refresh so the sizing is recalculated.
20559         * ThemeWin32Classic.cs: Draw the text for button tabs.
20560
20561 2005-05-19  Jackson Harper  <jackson@ximian.com>
20562
20563         * Control.cs: Paint control background images. Fix typo where
20564         PaintControlBackground was not getting called correctly.
20565
20566 2005-05-19  Peter Bartok  <pbartok@novell.com>
20567
20568         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
20569           I can investigate, apparently I broke FileDialog
20570
20571 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
20572
20573         * AxHost.cs: Some simple properties.
20574         * Control.cs: window must be accessible after ctor.
20575         * Form.cs: Added TransparencyKey property.
20576         * TextBoxBase.cs: Implemented Clear. Text property can be null.
20577         * XplatUIWin32.cs: SetBorderStyle implemented.
20578
20579 2005-05-18  Peter Bartok  <pbartok@novell.com>
20580
20581         * DataObject.cs: Entries are not global but particular to the
20582           DataObject, now it behaves that way
20583         * XplatUIWin32.cs: Implemented Clipboard methods
20584         * Clipboard.cs: Implemented
20585         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
20586         * XplatUIOSX.cs: Updated to final clipboard prototypes
20587         * XplatUIX11.cs: Implemented Clipboard methods
20588         * XplatUIDriver.cs: Updated to final clipboard prototypes
20589         * XplatUIStructs.cs:
20590           - Added BITMAPINFOHEADER struct
20591           - Added ClipboardFormats enum
20592         * X11Structs.cs:
20593           - Added ClipboardStruct
20594           - Added Atom enum items for clipboard types
20595           - Fixed atom types for Selection event structures
20596         * DataFormats.cs:
20597           - Added internal properties and methods for drivers to enumerate
20598             all known formats
20599           - Switched initialization method to allow drivers to assign their
20600             own IDs even for the MS predefined clipboard IDs
20601         * XplatUI.cs: Updated to final clipboard interface
20602
20603 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20604         * PropertyGridView.cs: Fixed compiler warnings.
20605
20606 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20607         * PropertyGrid.cs: Added some event calls
20608         * PropertyGridView.cs: Change drawing code to use double buffering
20609         * PropertyGridTextBox.cs: Changed Text property name
20610         * GridItem.cs: Added Bounds property.
20611         * GridEntry.cs: Added Bounds property.
20612
20613 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
20614
20615         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
20616         since GetType() may not return the correct type if the object is
20617         a remoting proxy.
20618
20619 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
20620
20621         * TreeNodeCollection.cs: fixes get/set item ranges
20622         
20623 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20624
20625         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
20626                 
20627 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20628
20629         * ComboBox.cs: Fix item range comparation
20630         * ListView.cs: Fix item range comparation
20631
20632 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
20633
20634         * FontDialog.cs:
20635           - Clear example panel when OnPaint is called
20636           - Better solution for displaying the example panel text
20637           - Select default indexes in the ListBoxes
20638
20639 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20640
20641         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
20642
20643 2005-05-11  Peter Bartok  <pbartok@novell.com>
20644
20645         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
20646         * SelectionRangeConverter.cs: Implemented
20647         * PropertyGrid.cs: Fixed attribute value
20648         * Control.cs:
20649           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
20650           - Added Sebastien Pouliot's CAS Stack Propagation fixes
20651         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
20652           that's common to all drivers. First methods to go there are
20653           Sebastien Pouliot's CAS Stack Propagation helper methods
20654         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
20655           Sebastien Pouliot for CAS Stack Propagation
20656
20657 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20658
20659         * OSXStructs.cs:
20660           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
20661
20662 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
20663
20664         * DataGridTextBoxColumn.cs: fixed some members
20665         * GridColumnStylesCollection.cs: indexed column is case insensitive
20666         * DataGridTableStyle.cs: fixes
20667         * ThemeWin32Classic.cs: add new theme parameter
20668         * Theme.cs: add new theme parameter
20669         * DataGridDrawingLogic.cs: Datagrid's drawing logic
20670         * DataGrid.cs: fixes, new internal properties, etc.
20671         * DataGridColumnStyle.cs: allows to set grid value
20672         *
20673
20674 2005-05-10  Peter Bartok  <pbartok@novell.com>
20675
20676         * AccessibleObject.cs:
20677           - Removed MonoTODO attribute on help, method is correct
20678           - Fixed Bounds property
20679         * AxHost.cs: Moved MonoTODO
20680         * ButtonBase.cs: Now setting AccessibleObject properties
20681         * RadioButton.cs: Setting proper AccessibleObject role
20682         * CheckBox.cs: Setting proper AccessibleObject role
20683         * ControlBindingsCollection.cs: Added properties, methods and attributes
20684         * DataFormats.cs: Fixed awkward internal API, and changed to enable
20685           userdefined DataFormats.Format items as well
20686         * ListControl.cs: Removed data_member from the public eye
20687         * OpenFileDialog.cs:
20688           - Made class sealed
20689           - Added missing attributes
20690         * SaveFileDialog.cs: Added missing attributes
20691         * ImageListStreamer.cs: Fixed code that caused warnings
20692         * LinkLabel.cs: Removed unreachable code
20693         * TreeView.cs: Fixed code that caused warnings
20694         * PropertyGridView.cs: Fixed code that caused warnings
20695         * GridColumnStylesCollection.cs: Added missing attributes
20696         * GridTableStylesCollection: Added missing attribute
20697         * PropertyManager: Added .ctor
20698         * SecurityIDType: Added
20699         * DataObject.cs: Implemented class
20700         * LinkArea.cs: Added missing attribute
20701
20702 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
20703
20704         * RadioButton.cs: call base method to allow to fire OnClick event
20705         * UpDownBase.cs: OnMouseUp call base method
20706         * CheckedListBox.cs: call base method before returning
20707         * TrackBar.cs: call base method before returning
20708         
20709
20710 2005-05-10  Peter Bartok  <pbartok@novell.com>
20711
20712         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
20713           for messages
20714
20715 2005-05-10  Peter Bartok  <pbartok@novell.com>
20716
20717         * DataFormats.cs: Implemented
20718         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
20719           XplatUIX11.cs: Added Clipboard APIs
20720         * XplatUIWin32.cs: Implemented Clipboard APIs
20721         * FolderBrowserDialog.cs: Added missing event, attributes
20722
20723 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
20724
20725         * CheckBox.cs: call base method to allow to fire OnClick event
20726
20727 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
20728
20729         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
20730
20731 2005-05-06  Peter Bartok  <pbartok@novell.com>
20732
20733         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
20734         * Screen.cs: Implemented
20735         * HelpNavigator.cs: Added
20736         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
20737           property
20738         * HelpProvider.cs: Implemented all we can do until we have a CHM
20739           help library (which means that "What's This" does work now)
20740
20741 2005-05-06  Jackson Harper  <jackson@ximian.com>
20742
20743         * XplatUIX11.cs: Fix waking up the main loop.
20744                 
20745 2005-05-05  Peter Bartok  <pbartok@novell.com>
20746
20747         * XplatUI.cs: Updated revision
20748         * Form.cs: Removed enless loop
20749         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
20750         * Label.cs (OnPaint): Added call to base.OnPaint()
20751         * ToolTip.cs: Made ToolTipWindow reusable for other controls
20752         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
20753         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
20754         * AxHost.cs: Added
20755         * ButtonBase.cs: Moved base.OnPaint() call to end of method
20756         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
20757           to ToolTip.ToolTipWindow for drawing and size methods; this allows
20758           reuse of ToolTipWindow by other controls
20759         * SizeGrip.cs: Moved base.OnPaint() call to end of method
20760         * XplatUIX11.cs: Now clipping drawing area (experimental)
20761         * PictureBox.cs: Moved base.OnPaint() call to end of method
20762         * Theme.cs: Fixed ToolTip abstracts to match new format
20763         * ErrorProvider.cs: Implemented
20764
20765 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
20766
20767         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
20768         * LinkLabel.cs:
20769                 - Adds cursors
20770                 - Handles focus
20771                 - Implements LinkBehavior
20772                 - Fixes many issues
20773
20774 2005-05-03  Jackson Harper  <jackson@ximian.com>
20775
20776         * ListView.cs: Calculate the scrollbar positioning on resize and
20777         paint, so they get put in the correct place.
20778
20779 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
20780
20781         * ColorDialogs.cs: The small color panels are now handled by
20782           SmallColorControl. This fixes drawing of the focus rectangle
20783           and adds a 3D border.
20784
20785 2005-05-03  Peter Bartok  <pbartok@novell.com>
20786
20787         * Control.cs: Modified version of Jonathan Chamber's fix for
20788           double-buffering
20789
20790 2005-05-03  Jackson Harper  <jackson@ximian.com>
20791
20792         * ListView.cs: Remove redraw variable. Control now handles whether
20793         or not a redraw needs to be done, and will only raise the paint
20794         event if redrawing is needed.
20795
20796 2005-05-03  Jackson Harper  <jackson@ximian.com>
20797
20798         * Splitter.cs: No decorations for the splitter form. Cache the
20799         hatch brush.
20800
20801 2005-05-03  Jackson Harper  <jackson@ximian.com>
20802
20803         * TreeView.cs: Use dashed lines to connect nodes. Use the
20804         ControlPaint method for drawing the focus rect instead of doing
20805         that in treeview.
20806
20807 2005-05-02  Peter Bartok  <pbartok@novell.com>
20808
20809         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
20810
20811 2005-04-29  Jackson Harper  <jackson@ximian.com>
20812
20813         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
20814         entire image buffer. Just clear the clipping rectangle.
20815
20816 2005-04-29  Jackson Harper  <jackson@ximian.com>
20817
20818         * ThemeWin32Classic.cs: Don't draw list view items that are
20819         outside the clipping rectangle.
20820
20821 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
20822
20823         * ListBox.cs: added horizontal item scroll
20824
20825 2005-04-29  Jackson Harper  <jackson@ximian.com>
20826
20827         * ThemeWin32Classic.cs: Remove some old debug code that was
20828         causing flicker with the new double buffering code.
20829
20830 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
20831
20832         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
20833         behave like combobox and comboboxlist (still not sure if this is
20834         correct though).
20835
20836 2005-04-28  Jackson Harper  <jackson@ximian.com>
20837
20838         * ThemeWin32Classic.cs: Don't fill the middle of progress
20839         bars. This fills areas outside of the clip bounds that don't need
20840         to be filled.
20841
20842 2005-04-28  Jackson Harper  <jackson@ximian.com>
20843
20844         * Control.cs: Don't expose functionality to touch the image buffers.
20845         * ProgressBar.cs:
20846         * ListView.cs: We do not need to (and no longer can) manipulate
20847         the image buffers directly. All of this is handled by Control.
20848
20849 2005-04-28  Peter Bartok  <pbartok@novell.com>
20850
20851         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
20852           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
20853           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
20854
20855 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
20856
20857         * Combobox:
20858                 - Adjust control's height for non-simple comboboxes (bug fix)
20859                 - Remove dead code
20860         * MenuAPI.cs: remove unused var
20861         * ScrollBar.cs: remove unsed var
20862                  
20863         * ListBox.cs: unselect items when clearing
20864
20865 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
20866
20867         * ListControl.cs: honors OnPositionChanged and default Selected Item
20868         * ListBox.cs: unselect items when clearing
20869
20870 2005-04-27  Jackson Harper  <jackson@ximian.com>
20871
20872         * X11Keyboard.cs: Initialize a default keyboard and give a warning
20873         if a "correct" keyboard is not found. This will make us not crash,
20874         but might give some users bad keyboard layouts...seems to be the
20875         same thing rewind does.
20876
20877 2005-04-27  Jackson Harper  <jackson@ximian.com>
20878
20879         * BindingManagerBase.cs: Attach the current/position changed
20880         handlers to their respective events.
20881
20882 2005-04-27  Jackson Harper  <jackson@ximian.com>
20883
20884         * Control.cs: Make sure that the first WM_PAINT does a full draw,
20885         not just a blit.
20886         * ThemeWin32Classic.cs: Don't fill the background for picture
20887         boxes. This could overright user drawing.
20888         * ComboBox.cs: Just fill the clipping rect not the entire client
20889         rect when drawing the background. This prevents pieces of the
20890         image buffer from getting overwritten and is theoretically faster.
20891
20892 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
20893
20894         * ComboBox.cs: Databinding support fixes, fire missing events
20895         * ListControl.cs: implement missing methods and properties, fixes
20896         * ThemeWin32Classic.cs: Databiding support on Drawing
20897         * CheckedListBox.cs: Databinding support fixes, fire missing events
20898         * ListBox.cs: Databinding support fixes, fire missing events
20899         
20900 2005-04-25  Peter Bartok  <pbartok@novell.com>
20901
20902         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
20903
20904 2005-04-25  Jackson Harper  <jackson@ximian.com>
20905
20906         * TreeView.cs: Use the horizontal scrollbars height not width when
20907         determining how much of the client area is available.
20908
20909 2005-04-25  Jackson Harper  <jackson@ximian.com>
20910
20911         * Control.cs: Double buffering is handled differently now. As per
20912         the spec, the extra buffer is created in the WM_PAINT message and
20913         passed down to the control's drawing code.
20914         * GroupBox.cs:
20915         * Label.cs:
20916         * CheckBox.cs:
20917         * ProgressBar.cs:
20918         * RadioButton.cs:
20919         * ColorDialog.cs:
20920         * ComboBox.cs:
20921         * PropertyGridView.cs:
20922         * UpDownBase.cs:
20923         * MessageBox.cs:
20924         * MenuAPI.cs:
20925         * ListView.cs:
20926         * ButtonBase.cs:
20927         * SizeGrip.cs:
20928         * ScrollBar.cs:
20929         * ListBox.cs:
20930         * TrackBar.cs:
20931         * ToolBar.cs:
20932         * PictureBox.cs:
20933         * DateTimePicker.cs:
20934         * StatusBar.cs:
20935         * TreeView.cs: Update to new double buffering system.
20936         * MonthCalendar.cs: Uncomment block, as Capture is now
20937         working. Update to new double buffering
20938         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
20939         * PaintEventArgs.cs: New internal method allows us to set the
20940         graphics object. This is used for double buffering.
20941         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
20942         rectangle. The internal paint_area var has been removed from
20943         StatusBar. The clipping rect should be used instead.
20944         * Theme.cs: Give the PictureBox drawing method a clipping rect.
20945         * TabPage.cs: The RefreshTabs method was removed, so just call the
20946         tab controls Refresh method now.
20947         * TabControl.cs: Update to new double buffering. Make sure the
20948         handle is created before sizing the tab pages, otherwise we will
20949         get stuck in a loop.
20950
20951 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
20952
20953         * LinkLabel.cs: Fix typo, bug #74719; patch
20954           from Borja Sanchez Zamorano
20955
20956 2005-04-22  Jackson Harper  <jackson@ximian.com>
20957
20958         * TreeNode.cs: Implement Handle stuff.
20959         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
20960
20961 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
20962
20963         * DataGridTextBoxColumn.cs: call base constructors, fixes
20964         * GridColumnStylesCollection.cs: missing events, methods, and functionality
20965         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
20966         * DataGridTableStyle.cs: implements create default column styles
20967         * DataGridBoolColumn.cs: which types can handle
20968         * DataGrid.cs: missing methods, fixes, new functionality
20969         * DataGridColumnStyle.cs: fixes
20970
20971 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
20972         * FolderBrowserDialog.cs:
20973         - Use a thread to fill the TreeView
20974         - Adjusted some sizes
20975
20976 2005-04-19  Peter Bartok  <pbartok@novell.com>
20977
20978         * LinkLabel.cs: (Re-)create the pieces when setting the Text
20979           property. Fixes #74360.
20980
20981 2005-04-19  Jackson Harper  <jackson@ximian.com>
20982
20983         * XEventQueue.cs: Lock when getting the lockqueue size.
20984         * PictureBox.cs: Call base OnPaint
20985         
20986 2005-04-19  Peter Bartok  <pbartok@novell.com>
20987
20988         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
20989           messages were no longer being processed (this broke BeginInvoke)
20990
20991           
20992 2005-04-18  Jackson Harper  <jackson@ximian.com>
20993
20994         * TreeView.cs: buglet that caused node images to get drawn
20995         regardless of whether or not they were in the clipping rectangle.
20996
20997 2005-04-18  Jackson Harper  <jackson@ximian.com>
20998
20999         * CurrencyManager.cs: There are four rules for GetItemProperties:
21000         - If the type is an array use the element type of the array
21001         - If the type is a typed list, use the type
21002         - If the list contains an Item property that is not an object, use
21003         that property
21004         - use the first element of the list if there are any elements in
21005         the list.
21006         
21007 2005-04-17  Jackson Harper  <jackson@ximian.oom>
21008
21009         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
21010         click. This handles offsets for scrolling properly and reduces
21011         memory. Also fixed GetNode to not offset now that TopNode works
21012         properly.
21013         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
21014         
21015 2005-04-17  Jackson Harper  <jackson@ximian.com>
21016
21017         * CursorConverter.cs: Initial implementation.
21018
21019 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21020
21021         * ListControl.cs: work towards complex data binding support on ListControl
21022         * CurrencyManager.cs: work towards complex data binding support on ListControl
21023         * ListBox.cs: work towards complex data binding support on ListControl
21024
21025
21026 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21027
21028         * GridTableStylesCollection.cs: fixes name and constructor
21029         * DataGridTableStyle.cs: fixes
21030         * DataGridBoolColumn.cs: fixes names and constructors
21031         * DataGrid.cs: define methods and properties. Some init implementations
21032         * DataGridCell.cs: define methods and properties. Some init implementations
21033         * GridTablesFactory.cs: Define methods and properties
21034
21035 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
21036
21037         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
21038         graphics port changes.  We still want the coordinates in global screen
21039         coordinates.
21040
21041 2005-04-14  Jackson Harper  <jackson@ximian.com>
21042
21043         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
21044         check plus minus or checkbox clicks unless those features are enabled.
21045
21046 2005-04-14  Jackson Harper  <jackson@ximian.com>
21047
21048         * TreeView.cs: Add methods for setting the top and bottom visible
21049         nodes. TreeNode::EnsureVisible uses these methods.
21050         * TreeNode.cs: Implement EnsureVisible
21051
21052 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
21053
21054         * Form.cs: Pospone menu assignation if the window has not been created yet
21055         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
21056         size and position
21057
21058 2005-04-12  Jackson Harper  <jackson@ximian.com>
21059
21060         * TreeView.cs: Set the TopNode properly when scrolling
21061         occurs. This has the added benifit of reducing the amount of
21062         walking that needs to be done when drawing. Also removed an old
21063         misleading TODO.
21064         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
21065         
21066 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
21067
21068         * Timer.cs: fixes interval setting when the timer is already enabled
21069         
21070 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
21071
21072         * FolderBrowserDialog.cs: First approach
21073
21074 2005-04-09  Peter Bartok  <pbartok@novell.com>
21075
21076         * FolderBrowserDialog: Added
21077
21078 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
21079
21080         * LinkLabel.cs: move drawing code into the theme
21081         * ThemeWin32Classic.cs: drawing code and painting background bugfix
21082         * Theme.cs: define DrawLinkLabel method
21083
21084 2005-04-05  Jackson Harper  <jackson@ximian.com>
21085
21086         * BindingContext.cs: Use weak references so these bad actors don't
21087         stay alive longer then they need to.
21088
21089 2005-04-05  Jackson Harper  <jackson@ximian.com>
21090
21091         * ListControl.cs: Basic implementation of complex databinding.
21092         * ComboBox.cs:
21093         * ListBox.cs: Add calls to ListControl databinding methods.
21094
21095 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
21096
21097         * FileDialog.cs:
21098           - Don't change PopupButtonState to Normal when the
21099             PopupButton gets pressed several times.
21100           - Renamed ButtonPanel to PopupButtonPanel
21101
21102 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
21103
21104         * ColorDialog.cs: Use cached objects instead of creating them
21105         * LinkLabel.cs: Use cached objects instead of creating them
21106         * Splitter.cs: Use cached objects instead of creating them
21107         * FontDialog.cs: Use cached objects instead of creating them
21108         * PropertyGridView.cs: Use cached objects instead of creating them
21109         * MessageBox.cs: Use cached objects instead of creating them
21110         * FileDialog.cs: Use cached objects instead of creating them
21111         * ThemeWin32Classic.cs: Use cached objects instead of creating them
21112         * TreeView.cs: Use cached objects instead of creating them
21113         
21114 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
21115
21116         * Control.cs: use Equals to compare the font since no == op
21117         * ScrollBar.cs: use Equals to compare the font since no == op
21118
21119 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
21120
21121         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
21122
21123 2005-04-01  Jackson Harper  <jackson@ximian.com>
21124
21125         * Binding.cs: Implement IsBinding.
21126         * BindingManagerBase.cs:
21127         * PropertyManager.cs:
21128         * CurrencyManager.cs: Add IsSuspended property.
21129
21130 2005-04-01  Jackson Harper  <jackson@ximian.com>
21131
21132         * Binding.cs: Had some IsAssignableFrom calls backwards.
21133
21134 2005-04-01  Jackson Harper  <jackson@ximian.com>
21135
21136         * Binding.cs: Handle null data members when pulling data.
21137         * PropertyManager.cs: Handle the data member being a property that
21138         does not exist.
21139
21140 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21141
21142         * DataGridTextBoxColumn.cs: fixes signature
21143         * DataGrid.cs: calls right constructor
21144
21145 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21146
21147         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
21148         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
21149         * GridTableStylesCollection.cs: implements GridTableStylesCollection
21150         * DataGridTableStyle.cs: implements DataGridTableStyle
21151         * DataGridBoolColumn.cs: implements DataGridBoolColumn
21152         * DataGridTextBox.cs: implements DataGridTextBox
21153         * DataGridColumnStyle.cs: implements DataGridColumnStyle
21154
21155 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
21156
21157         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
21158
21159 2005-03-29  Peter Bartok  <pbartok@novell.com>
21160
21161         * Application.cs:
21162           - Properly implemented CompanyName property
21163           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
21164             returns a path that includes CompanyName, ProductName and
21165             Version (fixes bug #70330)
21166
21167 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
21168
21169         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
21170           fixes bug #72588.
21171
21172 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21173
21174         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
21175         
21176           - Added ReadOnly CheckBox
21177           - Further refactoring: moved some code from Open-/SaveFileDialog
21178             to FileDialog
21179
21180 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21181
21182         * OpenFileDialog.cs: Fixed CheckFileExists
21183         * FileDialog.cs:
21184           Moved FileView and DirComboBox outside FileDialog class.
21185           They can now be used outside FileDialog
21186
21187 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21188
21189         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
21190         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
21191
21192 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21193
21194         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21195           - Added missing CreatePrompt property in SaveDialog
21196           - Overall SaveDialog handling should be better now
21197           - Added non standard ShowHiddenFiles property
21198           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
21199           - Added InitialDirectory and RestoreDirectory support
21200
21201 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
21202
21203         * FileDialog.cs: Made dirComboBox usable
21204
21205 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
21206
21207         * FileDialog.cs: Added Filter support (case sensitiv)
21208
21209 2005-03-24  Jackson Harper  <jackson@ximian.com>
21210
21211         * TabControl.cs: Need a couple more pixels for the lines.
21212
21213 2005-03-23  Jackson Harper  <jackson@ximian.com>
21214
21215         * TabControl.cs: Give the tab page focus when it is selected.
21216
21217 2005-03-23  Jackson Harper  <jackson@ximian.com>
21218
21219         * TabControl.cs: Account for the drawing of tabs borders when
21220         invalidating. If the slider was clicked dont do click detection on
21221         the tabs.
21222
21223 2005-03-23  Jackson Harper  <jackson@ximian.com>
21224
21225         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
21226
21227 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
21228
21229         * CategoryGridEntry.cs: Added
21230         * GridItem.cs: Added helper properties
21231         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
21232         * GridEntry.cs: Updated code for collection
21233         * PropertyGrid.cs: Cleaned up some formatting
21234         * PropertyGridView.cs: Added drop down functionality for enums.
21235         * GridItemCollection.cs: Added enumerator logic
21236         * PropertyGridEntry.cs: Added
21237
21238 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21239
21240         * FileDialog.cs:
21241           - Removed unnecessary commented code
21242           - Fixed handling for entering the filename manually in the combobox
21243
21244 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21245
21246         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
21247
21248 2005-03-18  Peter Bartok  <pbartok@novell.com>
21249
21250         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
21251           them being touching the border
21252
21253 2005-03-18  Peter Bartok  <pbartok@novell.com>
21254
21255         * TextControl.cs: Quick hack to center text better
21256
21257 2005-03-18  Peter Bartok  <pbartok@novell.com>
21258
21259         * ControlPaint.cs:
21260           - Don't throw NotImplemented exceptions, just print a notice once
21261             instead (requested by Miguel). This makes running existing SWF
21262             apps a bit easier
21263         * Control.cs:
21264           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
21265           - Added context menu trigger on right click
21266         * Panel.cs: Trigger invalidate on resize
21267         * StatusBar.cs:
21268           - Removed old double-buffer drawing
21269           - Added ResizeRedraw style to force proper update of statusbar
21270         * ListView.cs:
21271           - Removed debug output
21272         * ThemeWin32Classic.cs:
21273           - Fixed drawing of status bar, now draws Text property if there
21274             are no defined panels
21275
21276 2005-03-18  Jackson Harper  <jackson@ximian.com>
21277
21278         * ImageList.cs: When the image stream is set pull all the images
21279         from it.
21280         * ImageListStreamer.cs: Implement reading image list streams.
21281
21282 2005-03-18  Peter Bartok  <pbartok@novell.com>
21283
21284         * ThemeWin32Classic.cs (DrawPictureBox):
21285           - Fixed calculations for centered drawing
21286           - Fixed drawing for normal mode, not scaling the image on normal
21287
21288 2005-03-18  Peter Bartok  <pbartok@novell.com>
21289
21290         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
21291           textbox
21292         * FileDialog.cs:
21293           - Made Open/Save button the accept button for FileDialog
21294           - Tied the cancel button to the IButtonControl cancel button
21295           - Save/Open now properly builds the pathname
21296           - Now handles user-entered text
21297           - Preventing crash on right-click if no item is selected
21298           - Fixed Text property, now uses contents of textbox
21299           - Fixed SelectedText property, now just returns the text part that
21300             is selected in the text box
21301
21302 2005-03-18  Jackson Harper  <jackson@ximian.com>
21303
21304         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
21305         rect, make sure to de-adjust the interior rect after drawing the
21306         tab text.
21307
21308 2005-03-18  Peter Bartok  <pbartok@novell.com>
21309
21310         * MenuAPI.cs: Remove menu *before* executing selected action to
21311           prevent the menu from 'hanging around'
21312           
21313 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
21314
21315         * XplatUIOSX.cs: Implemented WorkingArea property
21316
21317 2005-03-17  Peter Bartok  <pbartok@novell.com>
21318
21319         * XplatUIX11.cs: Fixed menu coord calculations
21320         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
21321           for calculating offsets
21322
21323 2005-03-17  Peter Bartok  <pbartok@novell.com>
21324
21325         * Hwnd.cs: Do not consider menu presence for default client
21326           rectangle location/size
21327         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21328           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
21329           translation functions
21330         * FileDialog.cs: Fixed (what I presume is a) typo
21331
21332 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
21333
21334         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
21335           X access (avoids X-Async errors)
21336
21337 2005-03-16  Jackson Harper  <jackson@ximian.com>
21338
21339         * TabControl.cs: Raise the SelectedIndexChanged event.
21340
21341 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
21342
21343         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21344           - Removed vertical ToolBar and replaced it with a custom panel
21345             (desktop and home button already work)
21346           - Added Help button (some controls get resized or relocated then)
21347           - Draw correct text depending on Open or Save.
21348           - Fixed some typos...
21349
21350 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
21351
21352         * ScrollBar.cs:
21353           - Only change Maximum and Minimum when need it (bug fix)
21354
21355 2005-03-15  Peter Bartok  <pbartok@novell.com>
21356
21357         * Form.cs: Use Handle for icon, to trigger creation if
21358           the window does not yet exist
21359         * Control.cs:
21360           - CanSelect: Slight performance improvement
21361           - Focus(): Preventing possible recursion
21362           - Invalidate(): Removed ControlStyle based clear flag setting
21363           - WM_PAINT: fixed logic for calling OnPaintBackground
21364           - WM_ERASEBKGND: Fixed logic, added call to new driver method
21365             EraseWindowBackground if the control doesn't paint background
21366         * XplatUIWin32.cs:
21367           - Moved EraseWindowBackground() method to internal methods
21368           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
21369             is sent via SendMessage on BeginPaint call on Win32
21370         * XplatUIX11.cs:
21371           - Added EraseWindowBackground() method
21372           - No longer sends WM_ERASEBKGND on .Expose, but on call to
21373             PaintEventStart, which more closely matches Win32 behaviour
21374           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
21375           - Fixed SetFocus() to properly deal with client and whole windows
21376         * Hwnd.cs: Added ErasePending property
21377         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
21378         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
21379
21380 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
21381
21382         * XplatUIOSX.cs:
21383           - Fix hard loop when timers exist.
21384           - Fix bugs with middle and right click for 3 button mice.
21385
21386 2005-03-11  Peter Bartok  <pbartok@novell.com>
21387
21388         * XplatUIX11.cs:
21389           - get_WorkingArea: Need to call X directly, GetWindowPos only
21390             returns cached data now
21391           - Added sanity check to GetWindowPos hwnd usage
21392
21393 2005-03-11  Jackson Harper  <jackson@ximian.com>
21394
21395         * BindingManagerBase.cs: This method isn't used anymore as
21396         PullData now updates the data in the control.
21397
21398 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
21399
21400         * Form.cs: fixes menu drawing on X11
21401         * MenuAPI.cs:  fixes menu drawing on X11
21402
21403 2005-03-11  Peter Bartok  <pbartok@novell.com>
21404
21405         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
21406           from Jonathan Gilbert; should fix bug #73606
21407         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
21408           in Screen coordinates. Thanks, Jordi.
21409         * Form.cs: Added missing attribute
21410
21411 2005-03-11  Peter Bartok  <pbartok@novell.com>
21412
21413         * Form.cs:
21414           - Rudimentary Mdi support
21415           - Removed outdated FormParent code
21416           - Implemented lots of missing properties and methods, still missing
21417             transparency support
21418           - Added missing attributes
21419           - Implemented support for MaximumBounds
21420           - Added firing of various events
21421         * XplatUI.cs: Added SetIcon() method
21422         * XplatUIDriver.cs: Added SetIcon() abstract
21423         * XplatUIOSX.cs: Stubbed out SetIcon() method
21424         * XplatUIX11.cs:
21425           - Implemented SetIcon() support
21426           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
21427           - Switched to unix line endings
21428         * XplatUIWin32.cs:
21429           - Made POINT internal so for can access it as part of MINMAX
21430           - Implemented SetIcon() support
21431           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
21432             native Mdi support again, might have to go managed)
21433         * Control.cs: Now fires the StyleChanged event
21434         * MdiClient.cs: Added; still mostly empty
21435
21436 2005-03-10  Peter Bartok  <pbartok@novell.com>
21437
21438         * SaveFileDialog.cs: Added emtpy file
21439
21440 2005-03-08  Peter Bartok  <pbartok@novell.com>
21441
21442         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
21443           in turn triggers OnCreateContro) when creating a handle for the
21444           first time.
21445         * TextControl.cs: Fixed endless loop in certain cases when
21446           replacing the current selection
21447
21448 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
21449
21450         * ScrollBar.cs:
21451           - Honors NewValue changes in Scroll events allowing apps to change it
21452           - Adds First and Last Scroll events
21453           - Fixes Thumb events
21454
21455 2005-03-07  Peter Bartok  <pbartok@novell.com>
21456
21457         * Hwnd.cs: Added DefaultClientRectangle property
21458         * XplatUI.cs: Now using the X11 driver Where() method, which provides
21459           more detailed debug information
21460         * XplatUIX11.cs:
21461           - Fixed size-change feedback loop, where we would pull an old size
21462             off the queue and mistakenly change our window's size to an
21463             earlier value
21464           - Now compressing ConfigureNotify events, to reduce looping and
21465             redraw issues
21466         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
21467           is called
21468
21469 2005-03-07  Jackson Harper  <jackson@ximian.com>
21470
21471         * Binding.cs: Push data pushes from data -> property. Check if the
21472         property is readonly when attempting to set it.
21473
21474 2005-03-07  Jackson Harper  <jackson@ximian.com>
21475
21476         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
21477         instead of IsSubclassOf. Pulling data now sets the value on the
21478         control.
21479         * PropertyManager.cs:
21480         * CurrencyManager.cs: Just need to pull data when updating now,
21481         because PullData will set the value on the control.
21482
21483 2005-03-04  Jackson Harper  <jackson@ximian.com>
21484
21485         * Binding.cs: Implement data type parsing and converting on pulled
21486         data. TODO: Are there more ways the data can be converted?
21487
21488 2005-03-04  Jackson Harper  <jackson@ximian.com>
21489
21490         * Binding.cs: Support <Property>IsNull checks. Also bind to the
21491         controls Validating method so we can repull the data when the
21492         control loses focus.
21493
21494 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
21495
21496         * ColumnHeader.cs:
21497           - Fixes null string format
21498           
21499         * ListView.cs:
21500           - Adds enum type checks
21501           - Fixes redrawing and recalc need after changing some properties
21502           - Fixes on focus_item set after the event
21503           - Fixes adding columns after the control has been created
21504           
21505         * ThemeWin32Classic.cs:
21506           - Fixes CheckBox focus rectangle
21507           - Fixes ColumnHeader drawing
21508
21509
21510 2005-03-03  Jackson Harper  <jackson@ximian.com>
21511
21512         * Binding.cs: Bind to <Property>Changed events so we can detect
21513         when properties are changed and update the data.
21514
21515 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
21516
21517         * ImageList.cs:
21518           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
21519           - Fixes ImageList constructor with ImageList container
21520           - Fixes image scaling (wrong parameters at DrawImage)
21521
21522 2005-02-02  Jackson Harper  <jackson@ximian.com>
21523
21524         * Binding.cs: Make property searches case-insensitive. Eliminate
21525         some duplicated code.
21526
21527 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
21528
21529         * ComboBox.cs:
21530                 - Handle focus event
21531                 - Fix scrollbar events
21532                 - Discard highlighted item if remove it
21533                 - Fixes SelectedItem with strings
21534
21535 2005-03-01  Peter Bartok  <pbartok@novell.com>
21536
21537         * Control.cs:
21538           - Fixed Visible property, now follows (once again) parent chain
21539             to return false if any control in the chain is visible=false
21540           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
21541           - Fixed several places where is_visible instead of Visible was used
21542           - Implemented FIXME related to focus selection when setting focused
21543             control to be invisible
21544
21545         * XplatUIWin32.cs: Now using proper method to find out if window is
21546           visible. Thanks to Jordi for pointing it out
21547
21548 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
21549
21550         * ComboBox.cs: show/hide scrollbar instead of creating it
21551
21552 2005-02-27  Jackson Harper  <jackson@ximian.com>
21553
21554         * CurrencyManager.cs: Add PositionChanged stuff.
21555
21556 2005-02-27  Peter Bartok  <pbartok@novell.com>
21557
21558         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
21559         * XplatUIOSX.cs: Added GetMenuOrigin() stub
21560         * XplatUIWin32.cs: Implemented GetMenuOrigin()
21561         * XplatUIX11.cs:
21562           - Implemented GetMenuDC()
21563           - Implemented GetMenuOrigin()
21564           - Implemented ReleaseMenuDC()
21565           - Implemented generation of WM_NCPAINT message
21566           - Implemented generation and handling of WM_NCCALCSIZE message
21567         * Form.cs: Added debug helper message for Jordi's menu work
21568         * Hwnd.cs:
21569           - Modified ClientRect property; added setter, fixed getter to handle
21570             setting of ClientRect
21571           - Added MenuOrigin property
21572
21573 2005-02-26  Peter Bartok  <pbartok@novell.com>
21574
21575         * XplatUIX11.cs:
21576           - Destroys the caret if a window that's being destroyed contains it
21577           - Ignores expose events coming from the X11 queue for windows that
21578             already are destroyed
21579           - Now uses the proper variable for handling DestroyNotify, before we
21580             marked the wrong window as destroyed
21581           - Improved/added some debug output
21582
21583 2005-02-26  Peter Bartok  <pbartok@novell.com>
21584
21585         * X11Keyboard.cs: Fixes to work on 64bit systems
21586
21587 2005-02-26  Peter Bartok  <pbartok@novell.com>
21588
21589         * Control.cs:
21590           - Now calling OnHandleDestroyed from DestroyHandle()
21591             instead of Dispose()
21592           - Removed bogus call to controls.Remove() from DestroyHandle()
21593
21594 2005-02-26  Peter Bartok  <pbartok@novell.com>
21595
21596         * Control.cs: Properly destroy child windows when our handle is
21597           destroyed
21598
21599 2005-02-25  Peter Bartok  <pbartok@novell.com>
21600
21601         * XplatUI.cs:
21602           - Added 'DriverDebug' define to allow tracing XplatUI API calls
21603           - Alphabetized Static Methods and Subclasses
21604
21605         * XplatUIX11.cs:
21606           - Added XException class to allow custom handling of X11 exceptions
21607           - Created custom X11 error handler, tied into XException class
21608           - Added support for MONO_XEXCEPTIONS env var to allow the user
21609             to either throw an exception on X errors or continue running
21610             after displaying the error
21611           - Added handling of DestroyNotify message
21612           - Added handler for CreateNotify message (still disabled)
21613           - Improved (tried to at least) Where method to provide file and lineno
21614         * X11Structs.cs:
21615           - Added XErrorHandler delegate
21616           - Added XRequest enumeration (to suppor translation of errors)
21617
21618 2005-02-25  Jackson Harper  <jackson@ximian.com>
21619
21620         * PropertyManager.cs: Implement editing features
21621         * CurrencyManager.cs:
21622         * Binding.cs: First attempt at UpdateIsBinding
21623         * BindingManagerBase.cs: Call UpdateIsBinding before
21624         pushing/pulling data.
21625
21626 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
21627
21628         * MenuAPI.cs: Respect disabled items
21629         * ThemeWin32Classic.cs
21630                 - Caches ImageAttributes creation for DrawImageDisabled
21631                 - Fixes vertical menu line drawing
21632                 - Draws disabled arrows in disable menu items
21633
21634 2005-02-24  Peter Bartok  <pbartok@novell.com>
21635
21636         * Hwnd.cs:
21637           - Added UserData property to allow associating arbitrary objects
21638             with the handle
21639           - Fixed leak; now removing Hwnd references from static windows array
21640         * XplatUIWin32.cs:
21641           - Fixed Graphics leak in PaintEventEnd
21642           - Removed usage of HandleData, switched over to Hwnd class
21643         * HandleData.cs: Removed, obsoleted by Hwnd.cs
21644
21645 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21646
21647         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
21648         * ScrollBar.cs: Fixes bug
21649         * TrackBar.cs: removes death code, clipping, mimize refreshes,
21650          keyboard navigation enhancements
21651
21652 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21653
21654         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
21655         * GroupBox.cs: Add control styles
21656         * Label.cs: Add control styles
21657         * UpDownBase.cs: Add control styles
21658         * ListBox.cs: Add control styles
21659         * XplatUIWin32.cs: Fixes wrong parameter order
21660
21661
21662 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
21663
21664         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
21665
21666 2005-02-23  Jackson Harper  <jackson@ximian.com>
21667
21668         * PropertyManager.cs: Implement property binding. This doesn't
21669         seem to work yet though as (I think) there are some bugs in
21670         System.ComponentModel.PropertyDescriptor.
21671         * BindingContext.cs: Use new PropertyManager constructor.
21672
21673 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
21674
21675         * ProgressBar.cs: use clip region in ProgressBar
21676         * ThemeWin32Classic.cs: use clip region in ProgressBar
21677
21678 2004-02-22  Jackson Harper  <jackson@ximian.com>
21679
21680         * BindingsCollection.cs: Remove some debug code.
21681
21682 2005-02-22  Jackson Harper  <jackson@ximian.com>
21683
21684         * BindingContext.cs:
21685         * ControlBindingsCollection.cs:
21686         * CurrencyManager.cs:
21687         * Binding.cs:
21688         * BindingManagerBase.cs: Initial implementation
21689         * BindingsCollection.cs: Add an internal contains method that the
21690         BindingManagerBase uses to ensure bindings aren't added twice to
21691         the collection.
21692         * PropertyManager.cs: Stubbed out.
21693         * Control.cs:
21694         * ContainerControl.cs: Hook up databinding
21695         
21696 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
21697
21698         * XplatUIOSX.cs:
21699           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
21700           Fixed Invalidate/Update chain.
21701           Fixed tons of other minor bugs (this is almost a complete rewrite).
21702
21703 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
21704
21705         * ComboBox.cs: do subcontrol creation when the control is created
21706
21707 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21708
21709         * Label.cs: fixes image drawing (image and imagelist)
21710         * ThemeWin32Classic.cs: cache brushes
21711         
21712 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21713
21714         * Form.cs: Move menu drawing code to Theme class
21715         * ComboBox.cs: Move ComboBox drawing code to Theme class
21716         * MenuItem.cs: Move menu drawing code to Theme class
21717         * MenuAPI.cs: Move menu drawing code to Theme class
21718         * ThemeWin32Classic.cs: New methods
21719         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
21720         * ListBox.cs: Move Listbox drawing code to Theme class
21721         * Theme.cs: New methods
21722
21723 2005-02-20  Peter Bartok  <pbartok@novell.com>
21724
21725         * Control.cs:
21726           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
21727             only process mnemonics on those)
21728           - Fixed event sequence for key handling; first calling
21729             ProcessKeyEventArgs now
21730         * TextBoxBase.cs:
21731           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
21732             for processing non-character keys
21733           - Fixed WM_CHAR to generate proper event sequence before processing
21734         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
21735           generation
21736
21737 2005-02-19  Peter Bartok  <pbartok@novell.com>
21738
21739         * UserControl.cs: Added TextChanged event; added attributes
21740         * SizeGrip.cs: Implemented resizing and optional display of grip
21741         * Form.cs: Fixed attribute
21742         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
21743           Changed meaning of ScrollWindow bool argument; instead of the
21744           clear attribute (which will be true usually anyway), it gives the
21745           option of moving child controls as well.
21746         * XplatUIX11.cs:
21747           - Changed to match new ScrollWindow argument
21748           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
21749             now handles the implicit parent window a WM puts around us
21750         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
21751           to work)
21752         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
21753         * TreeView.cs: Adjusted to new ScrollWindow arguments
21754
21755 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21756
21757         * Form.cs: Menu integration with non-client area
21758         * MenuItem.cs: Menu integration with non-client area
21759         * MenuAPI.cs: Menu integration with non-client area
21760
21761 2005-02-18  Peter Bartok  <pbartok@novell.com>
21762
21763         * MethodInvoker.cs: Added
21764         * MdiLayout.cs: Added
21765         * SendKeys.cs: Started implementation
21766         * ErrorIconAlignment.cs: Added
21767
21768 2005-02-18  Peter Bartok  <pbartok@novell.com>
21769
21770         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
21771         * Form.cs: Added handling for Menu-related Non-client messages
21772
21773 2005-02-17  Peter Bartok  <pbartok@novell.com>
21774
21775         * UpDownBase.cs: Fixed typo, compilation errors
21776         * DomainUpDown.cs: Fixed attribute value
21777
21778 2005-02-16  Miguel de Icaza  <miguel@novell.com>
21779
21780         * UpDownBase.cs: Attach entry events.
21781         Propagate events.
21782         Add ForeColor property, Focused, InterceptArrowKeys (interception
21783         does not work yet).
21784
21785 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
21786
21787         * Form.cs:
21788                 - Redraw non client are on Setmenu
21789                 - Calc proper menu starting point
21790
21791 2005-02-17  Peter Bartok  <pbartok@novell.com>
21792
21793         * Application.cs: Fixed message_filter check
21794
21795 2005-02-17  Peter Bartok  <pbartok@novell.com>
21796
21797         * Application.cs: Now calls registered message filters
21798         * DockStyle.cs: Fixed attribute
21799         * Form.cs: Fixed attribute
21800         * Menu.cs: Fixed attribute
21801         * ToolTip.cs: Fixed attribute
21802         * TreeNode.cs: Added missing attributes and arranged in regions
21803         * PropertyGrid.cs: Fixed signatures
21804         * TreeNodeCollection.cs: Added attributes
21805         * Splitter.cs: Added missing attributes; arranged into regions
21806         * TabPage.cs: Added missing attributes; arranged into regions
21807         * TextBoxBase.cs: Added missing attributes
21808         * TextBox.cs: Added missing attributes
21809         * ArrangeDirection.cs: Added missing attributes
21810         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
21811         * ToolBarButton.cs: Fixed attributes
21812         * AnchorStyles.cs: Fixed attribute
21813         * TrackBar.cs: Fixed attributes
21814         * TabControl.cs: Added missing attributes and arranged into regions
21815         * ToolBar.cs: Fixed attribute
21816         * StatusBar.cs: Fixed signature, organized into regions and added
21817           attributes
21818         * StatusBarPanel.cs: Fixed attributes
21819         * ContentsResizedEventArgs.cs: Implemented
21820         * ContentsResizedEventHandler.cs: Implemented
21821         * DateBoldEventArgs.cs: Implemented
21822         * DateBoldEventHandler.cs: Implemented
21823         * UpDownEventArgs.cs: Implemented
21824         * UpDownEventHandler.cs: Implemented
21825         
21826 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
21827
21828         * Form.cs: first Menu NC refactoring
21829         * MenuAPI.cs: first Menu NC refactoring
21830         
21831 2005-02-16  Peter Bartok  <pbartok@novell.com>
21832
21833         * ImeMode.cs: Added missing attributes
21834         * Menu.cs: Fixed attribute
21835         * GroupBox.cs: Fixed attribute
21836         * Label.cs: Fixed attribute
21837         * ColorDialog.cs (RunDialog): Removed TODO attribute
21838         * ComboBox.cs: Fixed attributes
21839         * ListControl.cs: Added missing attributes
21840         * PropertyGrid.cs: Fixed attributes
21841         * Control.cs: Fixed attributes
21842         * ListViewItem.cs: Added TypeConverter attribute
21843         * NotifyIcon.cs: Fixed attributes
21844         * ListView.cs: Fixed attributes
21845         * ButtonBase.cs: Fixed attribute
21846         * ImageList.cs: Added missing attributes
21847         * ContainerControl.cs: Fixed signature
21848         * CheckedListBox.cs: Fixed attribute; added missing attributes
21849         * Panel.cs: Fixed attributes
21850         * PropertyTabChangedEventArgs.cs: Added missing attribute
21851         * PropertyValueChangedEventArgs.cs: Added missing attribute
21852         * Binding.cs: Fixed attribute
21853         * ListViewItemConverter: Implemented ListViewSubItemConverter class
21854         * ListBox.cs: Fixed attribute; added missing attributes;
21855         * ScrollableControl.cs: Added missing attributes
21856         * PictureBox.cs: Added missing attributes; implemented missing property
21857         * DateTimePicker.cs: Added missing attributes
21858         * Theme.cs (ToolWindowCaptionHeight): Fixed type
21859         * MonthCalendar.cs: Fixed attributes
21860         * StatusBarPanel.cs: Added missing attributes
21861         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
21862
21863 2005-02-16  Peter Bartok  <pbartok@novell.com>
21864
21865         * TextBoxBase.cs: The previous method to enforce height yet remember
21866           the requested high was less than ideal, this is an attempt to do
21867           it better.
21868         * Control.cs: Added comment about possible problem
21869         * Copyright: Updated format
21870         * GridItemType.cs: Fixed swapped values
21871
21872 2005-02-15  Jackson Harper  <jackson@ximian.com>
21873
21874         * BaseCollection.cs: Use property so we never access an
21875         uninitialized list. Also initialize the list in the property.
21876
21877 2005-02-15  Peter Bartok  <pbartok@novell.com>
21878
21879         * GroupBox.cs (ProcessMnemonic): Implemented
21880         * Label.cs (ProcessMnemonic): Implemented
21881         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
21882           hotkeys
21883
21884 2005-02-15  Peter Bartok  <pbartok@novell.com>
21885
21886         * RadioButton.cs (ProcessMnemonic): Implemented
21887         * CheckBox.cs (ProcessMnemonic): Implemented
21888         * Control.cs:
21889           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
21890             handling
21891           - Added internal method to allow calling ProcessMnemonic from other
21892             controls
21893         * ContainerControl.cs:
21894           - Started support for handling validation chain handling
21895           - Implemented ProcessMnemonic support
21896           - Added Select() call to Active, to make sure the active control
21897             receives focus
21898         * Form.cs: Setting toplevel flag for Forms (this was lost in the
21899           FormParent rewrite)
21900         * ThemeWin32Classic.cs:
21901           - DrawCheckBox(): Fixed stringformat to show hotkeys
21902           - DrawRadioButton(): Fixed stringformat to show hotkeys
21903         * CommonDialog.cs: Removed WndProc override, not needed
21904
21905 2005-02-14  Peter Bartok  <pbartok@novell.com>
21906
21907         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
21908           missed those in the rewrite
21909
21910 2005-02-14  Miguel de Icaza  <miguel@novell.com>
21911
21912         * NumericUpDown.cs (Increment, ToString): Add.
21913         (DecimalPlaces): implement.
21914         
21915         Add attributes.
21916         
21917         * UpDownBase.cs: Add the designer attributes.
21918
21919 2005-02-13  Peter Bartok  <pbartok@novell.com>
21920
21921         * Panel.cs: Removed border_style, now in Control
21922         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
21923           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
21924
21925 2005-02-13  Peter Bartok  <pbartok@novell.com>
21926
21927         * MouseButtons.cs: Added missing attributes
21928         * XplatUIStructs.cs: Added enumeration for title styles
21929         * LeftRightAlignment.cs: Added missing attributes
21930         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
21931           it compatible with Graphics.FromHwnd()
21932         * SelectedGridItemChangedEventArgs.cs: Fixed property type
21933         * Keys.cs: Added missing attributes
21934         * SelectionRange.cs: Added missing attributes
21935         * SelectionRangeConverter.cs: Added
21936         * XplatUI.cs:
21937           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
21938             ReleaseMenuDC methods
21939           - Renamed ReleaseWindow to UngrabWindow
21940           - Added proper startup notice to allow version identification
21941         * Form.cs:
21942           - Added missing attributes
21943           - Removed FormParent concept
21944         * Label.cs: Removed border_style field, now in Control
21945         * RadioButton.cs: Now properly selects RadioButton when focus is
21946           received
21947         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
21948         * Control.cs:
21949           - Added missing attributes
21950           - Added borderstyle handling
21951           - Removed FormParent concept support
21952           - Fixed calls to XplatUI to match changed APIs
21953           - Fixed bug that would case us to use disposed Graphics objects
21954           - Removed unneeded internal methods
21955           - PerformLayout(): Fixed to handle DockStyle.Fill properly
21956           - SelectNextControl(): Fixed to properly check common parents
21957         * TextBoxBase.cs: Removed border_style field (now in Control)
21958         * MessageBox.cs:
21959           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
21960             fixed calculations for form size
21961           - Added support for localized strings and icons
21962           - Improved form size calculations, added border
21963         * ListView.cs: Removed border_style field (now in Control)
21964         * X11Structs.cs: Moved several structs from X11 driver here
21965         * X11Keyboard.cs: Changed debug message
21966         * Application.cs: Removed FormParent concept support
21967         * CommonDialog.cs:
21968           - Resetting end_modal flag
21969           - Removed FormParent concept support
21970         * NativeWindow.cs: Removed FormParent concept support
21971         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
21972           Client area and Non-Client whole window to allow support for WM_NC
21973           messages
21974         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
21975           prevent using it until it supports Hwnd as per Geoff Norton's request
21976         * ToolBar.cs: Fixed drawing, was not doing proper drawing
21977         * PictureBox.cs: Removed border_style field, now in Control
21978         * XplatUIWin32.cs: Added new driver methods
21979
21980 2005-02-12  Peter Bartok  <pbartok@novell.com>
21981
21982         * OpacityConverter.cs: Implemented
21983         * Hwnd.cs: Internal class to support drivers that need to emulate
21984           client area/non-client area window behaviour
21985
21986 2005-02-11  Peter Bartok  <pbartok@novell.com>
21987
21988         * KeysConverter.cs: Implemented
21989
21990 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
21991
21992         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
21993         * LinkLabel: Added missing attributes
21994         * MainMenu.cs: fixes ToString
21995         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
21996         * ListBox.cs: fixes event position
21997         * TrackBar.cs: adds missing attributes and events
21998         
21999 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
22000
22001         * MenuItem.cs: Use SystemInformation and bug fixes
22002         * MenuAPI.cs: Use SystemInformation and bug fixes
22003
22004 2005-02-09  Jackson Harper  <jackson@ximian.com>
22005
22006         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
22007         their keystate otherwise things like VK_MENU get stuck "on".
22008
22009 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
22010
22011         * ListBox.cs: Fixes AddRange bug
22012         
22013 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
22014
22015         * ProgressBar.cs
22016                 - Add missing attributes
22017                 - Add missing method
22018                 
22019         * CheckedListBox.cs: Added missing attributes
22020                 - Add missing attributes
22021                 - Remove extra method
22022         
22023         * ComboBox.cs: Added missing attributes
22024         * VScrollBar.cs: Added missing attributes
22025         * ScrollBar.cs:  Added missing attributes
22026         * ListBox.cs: Fixes signature, add missing consts
22027         * LinkArea.cs:   Added missing attributes
22028         
22029
22030 2005-02-08  Peter Bartok  <pbartok@novell.com>
22031
22032         * Menu.cs: Added missing attributes
22033         * MainMenu.cs: Added missing attributes
22034         * GroupBox.cs: Added missing attributes
22035         * Label.cs: Added missing attributes
22036         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
22037         * ColorDialog.cs:
22038           - Added Instance and Options properties
22039           - Added missing attributes
22040         * Cursor.cs: Made Serializable
22041         * NotifyIcon: Added missing attributes
22042         * MenuItem.cs: Added missing attributes
22043         * TextBoxBase.cs: Implemented AppendText() and Select() methods
22044         * Panel.cs: Added Missing attributes
22045         * MonthCalendar.cs: Fixed CreateParams
22046
22047 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22048         
22049         * LinkLabel.cs:
22050                 - Fixes signature
22051                 - Fixes issues with links
22052                 - Adds the class attributes
22053
22054 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22055         
22056         * ComboBox.cs:
22057                 - Fixes button when no items available in dropdown
22058                 - Fixes repainting problems
22059                 - Adds the class attributes
22060                 
22061 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22062
22063         * XplatUIOSX.cs: Detect the menu bar and title bar height from
22064         the current theme.  Cache these on startup.
22065
22066 2005-02-07  Jackson Harper  <jackson@ximian.com>
22067
22068         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
22069         the scrollbar buttons when they are depressed.
22070
22071 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22072
22073         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
22074         Get the display size from the main displayid.  We currently dont
22075         support multiple display configurations.
22076
22077 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22078
22079         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
22080
22081 2005-02-07  Miguel de Icaza  <miguel@novell.com>
22082
22083         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
22084
22085 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
22086
22087         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
22088
22089 2005-02-04  Jackson Harper  <jackson@ximian.com>
22090
22091         * ThemeWin32Classic.cs: Respect the clipping rect when
22092         drawing. Only fill the intersection of clips and rects so there
22093         isn't a lot of large fills.
22094         * ScrollBar.cs: Pass the correct clipping rect to the theme
22095         engine. Remove some debug code.
22096
22097 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
22098         
22099         * DateTimePicker.cs:
22100                 - Fixed crash on DateTime.Parse, use Constructor instead
22101
22102 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22103         
22104         * MenuItem.cs:
22105         * MenuAPI.cs:
22106                 - Owner draw support (MeasureItem and DrawItem)
22107
22108 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22109         
22110         *  Menu.cs:
22111                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
22112                 - Fixes MenuItems.Add range
22113         * MenuItem.cs:
22114                 - MergeMenu and Clone and CloneMenu functions
22115
22116 2005-02-03  Jackson Harper  <jackson@ximian.com>
22117
22118         * ScrollBar.cs: Make abstract
22119         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
22120         is abstract.
22121
22122 2005-02-03  Jackson Harper  <jackson@ximian.com>
22123
22124         * ScrollBar.cs: First part of my scrollbar fixups. This removes
22125         all the unneeded refreshes and uses invalidates with properly
22126         computed rects.
22127
22128 2005-02-03  Peter Bartok  <pbartok@novell.com>
22129
22130         * ComponentModel.cs: Added
22131         * IDataGridEditingService.cs: Added
22132         * Timer.cs: Added missing attributes
22133         * ToolTip.cs: Added missing attributes
22134
22135 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22136
22137         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
22138
22139 2005-02-03  Peter Bartok  <pbartok@novell.com>
22140
22141         * ListBox.cs: Added missing attributes
22142
22143 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
22144         
22145         * ListBox.cs:
22146                 - Fixes font height after font change
22147                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
22148                 
22149 2005-02-02  Peter Bartok  <pbartok@novell.com>
22150
22151         * HandleData.cs: Introduced static methods to allow class
22152           to be more self-contained and track it's own HandleData objects
22153         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
22154           HandleData to use new static methods
22155
22156 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
22157
22158         * Combobox.cs:
22159                 - Fixes default size and PreferredHeight
22160                 - Missing events
22161                 - ObjectCollection.Insert implementation
22162                 
22163         * ListControl.cs
22164                 - Fixes signature
22165         * ListBox.cs:
22166                 - Several fixes
22167                 - ObjectCollection.Insert implementation
22168                 - No selection after clean
22169                 - Small fixes
22170
22171 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22172
22173         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
22174
22175 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
22176
22177         * Combobox.cs:
22178                 - Caches ItemHeight calculation for OwnerDrawVariable
22179                 - Handles dropdown properly
22180                 - Fixes several minor bugs
22181
22182 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22183
22184         * ListBox.cs:
22185                 - Fixes 71946 and 71950
22186                 - Fixes changing Multicolumn on the fly
22187                 - Fixes keyboard navigation on Multicolumn listboxes
22188
22189 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22190         
22191         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
22192         crash reporter log.
22193
22194 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22195
22196         * XplatUIOSX.cs: Allow applications to actually exit.
22197
22198 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22199
22200         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
22201         their parent at creation time rather than lazily later.  Fixes a major
22202         regression we were experiencing.
22203
22204 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22205
22206         * ThemeWin32Classic.cs: more date time picker painting fixes
22207         * DateTimePicker.cs: more monthcalendar drop down fixes
22208         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
22209
22210 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22211
22212         * ScrollBar.cs:
22213                 - When moving the thumb going outside the control should stop the moving
22214                 - Adds the firing of missing events
22215                 - Fixes no button show if Size is not specified
22216                 - End / Home keys for keyboard navigation
22217
22218 2005-01-30  Peter Bartok  <pbartok@novell.com>
22219
22220         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
22221           sanity check to prevent theoretical loop
22222         * XplatUIWin32.cs (SetVisible): Removed debug output
22223         * XplatUIX11.cs (SystrayChange): Added sanity check
22224         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
22225         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
22226           behaviour, valid until the X11 client window rewrite is done
22227         * TextBox.cs (ctor): Setting proper default foreground and background
22228           colors
22229
22230 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
22231
22232         * Theme: Added DrawDateTimePicker to interface
22233         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
22234         * DateTimePicker.cs: Created (still needs keys and painting code)
22235         * DateTimePickerFormat.cs: added
22236         * MonthCalendar.cs: fixed CreateParams for popup window mode
22237           
22238 2005-01-29  Peter Bartok  <pbartok@novell.com>
22239
22240         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
22241           this should also the calculations for ligher/darker
22242         * Theme.cs: Fixed defaults for ScrollBar widths/heights
22243
22244 2005-01-29  Peter Bartok  <pbartok@novell.com>
22245
22246         * ArrangeDirection.cs: Added
22247         * ArrangeStartingPositon.cs: Added
22248         * SystemInformation.cs: Implemented
22249         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22250           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
22251           used by SystemInformation class
22252         * X11Strucs.cs: Added XSizeHints structure
22253         * MenuAPI.cs:
22254           - Fixed CreateParams to make sure the menu window is always visible
22255           - TrackPopupMenu: Added check to make sure we don't draw the
22256             menu offscreen
22257
22258 2005-01-29  Peter Bartok  <pbartok@novell.com>
22259
22260         * HandleData.cs: Added method for altering invalid area
22261         * TextBoxBase.cs: Implemented TextLength
22262
22263 2005-01-28  Peter Bartok  <pbartok@novell.com>
22264
22265         * XplatUIX11.cs: Improvement over last patch, not sending
22266           the WM_PAINT directly anymore, instead we scroll any pending
22267           exposed areas and let the system pick out the WM_PAINT later
22268
22269 2005-01-28  Peter Bartok  <pbartok@novell.com>
22270
22271         * SWF.csproj: Deleted, no longer used. Instead,
22272           Managed.Windows.Forms/SWF.csproj should be used
22273         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
22274           directly, to avoid a potential race condition with the next
22275           scroll
22276
22277 2005-01-28  Peter Bartok  <pbartok@novell.com>
22278
22279         * XplatUI.cs: Made class internal
22280
22281 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
22282
22283         * CheckedListBox.cs:
22284                 - Draw focus
22285                 - Fixed Drawing
22286                 - Missing methods and events
22287
22288 2005-01-27  Peter Bartok  <pbartok@novell.com>
22289
22290         * Application.cs (Run): Don't use form if we don't have one
22291
22292 2005-01-27  Peter Bartok  <pbartok@novell.com>
22293
22294         * TextBoxBase.cs (get_Lines): Fixed index off by one error
22295
22296 2005-01-27  Peter Bartok  <pbartok@novell.com>
22297
22298         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
22299         * GridItem.cs: Added; Patch by Jonathan S. Chambers
22300         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
22301         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
22302         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
22303         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
22304         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22305         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22306         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22307         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22308         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22309         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22310
22311 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22312
22313         * Combobox.cs:
22314                 - Draw focus on Simple Combobox
22315                 - Fixes drawing issues
22316                 - fixes 71834
22317
22318 2005-01-27  Peter Bartok  <pbartok@novell.com>
22319
22320         * Form.cs:
22321           - Place window in default location, instead of hardcoded 0/0
22322           - Send initial LocationChanged event
22323         * Control.cs:
22324           - UpdateBounds after creation to find out where the WM placed us
22325           - Make sure that if the ParentForm changes location the Form
22326             is notified
22327         * XplatUIX11.cs: XGetGeometry will not return the coords relative
22328             to the root, but to whatever the WM placed around us.
22329             Translate to root coordinates before returning toplevel
22330             coordinates
22331         * XplatUIWin32.cs: Removed debug output
22332         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
22333           flag to GetWindowPos, to allow translation of coordinates on X11
22334
22335 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22336
22337         * ListBox.cs: connect LostFocus Event
22338
22339 2005-01-27  Peter Bartok  <pbartok@novell.com>
22340
22341         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22342           XplatUIX11.cs: Extended the Systray API
22343         * Form.cs: Removed debug output
22344         * Application.cs: Fixed focus assignment, always need to call
22345           XplatUI.Activate() since Form.Activate() has rules that may
22346           prevent activation
22347         * NotifyIcon.cs: Should be complete now
22348         * ToolTip.cs: Worked around possible timer bug
22349
22350 2005-01-27  Jackson Harper  <jackson@ximian.com>
22351
22352         * TabControl.cs:
22353         - Only invalidate the effected tabs when the
22354         selected index changes. This reduces drawing and gets rid of some
22355         flicker.
22356         - Only refresh if the tabs need to be shifted, otherwise only
22357         invalidate the slider button.
22358         - On windows the tabs are not filled to right if the slider is
22359         visible.
22360         
22361 2005-01-27  Jackson Harper  <jackson@ximian.com>
22362
22363         * TabControl.cs: Only refresh on mouseup if we are showing the
22364         slider. Also only invalidate the button whose state has changed.
22365
22366 2005-01-26  Peter Bartok  <pbartok@novell.com>
22367
22368         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
22369         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
22370           and SystrayRemove() methods
22371         * XplatUIOSX.cs: Stubbed Systray methods
22372         * XplatUIX11.cs:
22373           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
22374             methods
22375           - Fixed broken XChangeProperty calls (marshalling messed up things)
22376         * X11Structs.cs: Added enums and structs required for Size hinting
22377         * NotifyIcon.cs: Added & implemented
22378
22379 2005-01-26  Jackson Harper  <jackson@ximian.com>
22380
22381         * TabControl.cs: Space vertically layed out tabs properly.
22382
22383 2005-01-26  Peter Bartok  <pbartok@novell.com>
22384
22385         * Form.cs (CreateClientParams): Always set the location to 0,0
22386           since we're a child window.
22387
22388         * Control.cs (SetVisibleCore): Always explicitly setting the location
22389           of a toplevel window, apparently X11 doesn't like to move windows
22390           while they're not mapped.
22391
22392 2005-01-26  Jackson Harper  <jackson@ximian.com>
22393
22394         * TabControl.cs: Implement FillToRight size mode with vertically
22395         rendered tabs.
22396
22397 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22398
22399         * ControlPaint.cs, ThemeWin32Classic.cs
22400                 - Fixes DrawFocusRectangle
22401
22402 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22403
22404         * MenuAPI.cs:
22405                 - MenuBar tracking only starts when item is first clicked
22406                 - Fixes menu hidding for multiple subitems
22407                 - Unselect item in MenuBar when item Executed
22408                 - Fixes bug 71495
22409
22410 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
22411
22412         * ListControl.cs:
22413                 - IsInputKey for ListBox
22414         * ListBox.cs:
22415                 - Focus item
22416                 - Shift and Control item selection
22417                 - Implement SelectionMode.MultiExtended
22418                 - Fixes RightToLeft
22419         * ComboBox.cs:
22420                 - IsInputKey implemented
22421                 - Do not generate OnTextChangedEdit on internal txt changes
22422                 
22423 2005-01-23  Peter Bartok  <pbartok@novell.com>
22424
22425         * AccessibleObject.cs: Partially implemented Select()
22426         * MonthCalendar.cs: Added missing attributes and events
22427         * Form.cs: Fixed CreateParams behaviour, now controls derived from
22428           form can properly override CreateParams.
22429         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22430           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
22431           Control performs Invalidate & Update
22432         * NativeWindow (CreateHandle): Added special handling for Form
22433           and Form.FormParent classes to allow overriding of From.CreateParams
22434         * Control.cs:
22435           - ControlNativeWindow: Renamed 'control' variable to more intuitive
22436             name 'owner'
22437           - ControlNativeWindow: Added Owner property
22438           - Removed usage of Refresh() on property changes, changed into
22439             Invalidate(), we need to wait until the queue is processed for
22440             updates, direct calls might cause problems if not all vars for
22441             Paint are initialized
22442           - Added call to UpdateStyles() when creating the window, to set any
22443             styles that CreateWindow might have ignored.
22444           - Added support for Form CreateParent overrides to UpdateStyles()
22445         * MessageBox.cs: Removed no longer needed FormParent override stuff,
22446           CreateParams are now properly overridable
22447         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
22448           CreateParams are now properly overridable
22449
22450 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
22451
22452         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
22453         OnTextBoxChanged.
22454
22455         Capture LostFocus and OnTextBoxChanged.  The later introduces a
22456         recursive invocation that I have not figured out yet.
22457
22458         Reset the timer when not using (it was accumulating).
22459
22460
22461         (OnTextBoxChanged): Set UserEdit to true here to track whether the
22462         user has made changes that require validation.
22463
22464         Reset changing to avoid loops.
22465
22466 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
22467
22468         * NumericUpDown.cs: Display value at startup.
22469
22470         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
22471         ValidateEditText.
22472
22473         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
22474         filled in.  Added some basic parsing of text.
22475
22476         Still missing the OnXXX method overrides, and figuring out the
22477         events that must be emitted.
22478
22479         * UpDownBase.cs: Handle UserEdit on the Text property.
22480         
22481 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
22482
22483         * ComboBox.cs:
22484           - Fixes IntegralHeight
22485           - ToString method
22486
22487 2005-01-21  Jackson Harper  <jackson@ximian.com>
22488
22489         * TabControl.cs: Set the SelectedIndex property when SelectedTab
22490         is set so that the page visibility is updated and the tabs are
22491         sized correctly.
22492
22493 2005-01-21  Jackson Harper  <jackson@ximian.com>
22494
22495         * TabControl.cs: Use cliping rectangle for blitting. Give the
22496         theme the clipping rect so we can do clipping while
22497         drawing. Remove some debug code.
22498
22499 2005-01-21  Jackson Harper  <jackson@ximian.com>
22500
22501         * TabPage.cs: Add a new method so tab pages can force the tab
22502         control to recalculate the tab page sizes.
22503         * TabControl.cs: UpdateOwner needs to make the tab control recalc
22504         sizes.
22505
22506 2005-01-20  Jackson Harper  <jackson@ximian.com>
22507
22508         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
22509
22510 2005-01-20  Jackson Harper  <jackson@ximian.com>
22511
22512         * TreeView.cs: Set the bounds for nodes properly. They were
22513         getting screwed up when checkboxes were not enabled, but images
22514         were.
22515
22516 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
22517
22518         * ListBox.cs:
22519                 - Owner draw support
22520                 - Fixes
22521                 
22522 2005-01-20  Jackson Harper  <jackson@ximian.com>
22523
22524         * XplatUIStructs.cs: More misc keys
22525         * X11Keyboard.cs: Ignore some control keys.
22526
22527 2005-01-20  Jackson Harper  <jackson@ximian.com>
22528
22529         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
22530         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
22531
22532 2005-01-19  Peter Bartok  <pbartok@novell.com>
22533
22534         * Control.cs: Un-selecting the control when it is loosing focus
22535
22536 2005-01-19  Jackson Harper  <jackson@ximian.com>
22537
22538         * TreeView.cs: Hook up to the text controls leave event so we can
22539         end editing when the users clicks outside the text box.
22540         
22541 2005-01-19  Jackson Harper  <jackson@ximian.com>
22542
22543         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
22544         get set in the conversion array.
22545
22546 2005-01-19  Peter Bartok  <pbartok@novell.com>
22547
22548         * Application.cs (ModalRun): Added a call to CreateControl to ensure
22549           focus is properly set
22550         * Button.cs:
22551           - Added missing attributes
22552           - removed styles, those are already set in the base class
22553         * ButtonBase.cs:
22554           - Added missing attributes
22555           - Added clip window styles
22556         * CheckBox.cs: Added missing attributes
22557         * CommonDialog.cs:
22558           - FormParentWindow.CreateParams: Added required clip styles
22559         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
22560           also filters modifier keys
22561         * MessageBox.cs:
22562           - Added assignment of Accept and Cancel button to enable Enter
22563             and Esc keys in MessageBox dialogs
22564           - FormParentWindow.CreateParams: Added required clip styles
22565         * RadioButton.cs: Added missing attributes
22566         * TextControl.cs: No longer draws selection if control does not
22567           have focus
22568         * TextBoxBase.cs:
22569           - Now draws simple rectangle around test area to make it obvious
22570             there's a control. This is a hack until we properly support borders
22571           - A few simple fixes to support selections better, now erases selected
22572             text when typing, and resets selection when using movement keys
22573
22574 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
22575
22576         * UpDownBase.cs: Added some new properties.
22577
22578         * DomainUpDown.cs: Implement a lot to get my test working.
22579
22580 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22581
22582         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
22583
22584 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22585
22586         * OSXStructs (WindowAttributes): Fixed csc complaints
22587
22588 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22589
22590         * XplayUIOSX.cs:
22591           OSXStructs.cs: Initial refactor to move enums and consts into
22592           OSXStructs and use them in the driver for greater readability.
22593
22594 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22595
22596         * XplatUIOSX.cs: Initial support for Standard Cursors.
22597         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
22598
22599 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
22600
22601         * ComboBox.cs: ability to change style when the ctrl is already
22602         created, missing methods and events, bug fixes, signature fixes
22603
22604 2005-01-19  Peter Bartok  <pbartok@novell.com>
22605
22606         * Cursors.cs (ctor): Added ctor to fix signature
22607
22608 2005-01-18  Peter Bartok  <pbartok@novell.com>
22609
22610         * Button.cs: Implemented DoubleClick event
22611         * ButtonBase.cs:
22612           - Fixed keyboard handling to behave like MS, where the press of
22613             Spacebar is equivalent to a mousedown, and the key release is
22614             equivalent to mouseup. Now a spacebar push will give the same
22615             visual feedback like a mouse click.
22616           - Added missing attributes
22617           - Added ImeModeChanged event
22618           - Added support for generating DoubleClick event for derived classes
22619         * CheckBox.cs:
22620           - Implemented DoubleClick event
22621           - Added missing attributes
22622         * CommonDialog.cs: Added missing attribute
22623         * ContextMenu.cs: Added missing attributes
22624         * RadioButton.cs:
22625           - AutoChecked buttons do not allow to be unselected when clicked
22626             (otherwise we might end up with no selected buttons in a group)
22627           - Added missing attributes
22628           - Implemented DoubleClickEvent
22629         * ThreadExceptionDialog.cs: Enabled TextBox code
22630
22631 2005-01-18  Peter Bartok  <pbartok@novell.com>
22632
22633         * Form.cs: Removed debug output
22634         * Button.cs: Added support for DoubleClick method
22635
22636 2005-01-18  Peter Bartok  <pbartok@novell.com>
22637
22638         * Form.cs:
22639           - Added method to parent window that allows triggering size
22640             calculations when a menu is added/removed
22641           - set_Menu: Cleaned up mess from early days of Form and Control,
22642             now properly triggers a recalc when a menu is added/removed
22643           - Added case to select form itself as focused form if no child
22644             controls exist
22645           - Added PerformLayout call when showing dialog, to ensure properly
22646             placed controls
22647         * Control.cs:
22648           - Select(): Made internal so Form can access it
22649           - Focus(): Only call Xplat layer if required (avoids loop), and sets
22650             status
22651         * Application.cs (Run): Removed hack and calls PerformLayout instead
22652           to trigger calculation when Form becomes visible
22653
22654 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
22655
22656         * ComboBox.cs: fixes for ownerdraw
22657
22658 2005-01-18  Peter Bartok  <pbartok@novell.com>
22659
22660         * TextControl.cs:
22661           - Sentinel is no longer static, each Document gets it's own, this
22662             avoids locking or alternatively overwrite problems when more
22663             than one text control is used simultaneously.
22664           - Switched to use Hilight and HilightText brushes for text selection
22665
22666         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
22667
22668 2005-01-18  Peter Bartok  <pbartok@novell.com>
22669
22670         * Control.cs:
22671           - Hooked up the following events:
22672                 o ControlAdded
22673                 o ControlRemoved
22674                 o HandleDestroyed
22675                 o ImeModeChanged
22676                 o ParentChanged
22677                 o TabStopChanged
22678                 o Invalidated
22679                 o SystemColorsChanged
22680                 o ParentFontChanged
22681                 o Move
22682           - Removed debug output
22683           - Added a call to the current theme's ResetDefaults when a color change
22684             is detected
22685         * Form.cs: Now setting the proper ImeMode
22686         * Theme.cs: Defined a method to force recreation of cached resources
22687           and rereading of system defaults (ResetDefaults())
22688         * ThemeWin32Classic.cs: Added ResetDefaults() stub
22689
22690 2005-01-17  Peter Bartok  <pbartok@novell.com>
22691
22692         * Control.cs: Added missing attributes
22693
22694 2005-01-17  Jackson Harper  <jackson@ximian.com>
22695
22696         * TreeNode.cs: Implement editing. Add missing properties selected
22697         and visible.
22698         * TreeView.cs: Implement node editing. Also some fixes to use
22699         Invalidate (invalid area) instead of Refresh when selecting.
22700
22701 2005-01-17  Peter Bartok  <pbartok@novell.com>
22702
22703         * Control.cs:
22704           - Implemented InvokeGotFocus() method
22705           - Implemented InvokeLostFocus() method
22706           - Implemented InvokePaint() method
22707           - Implemented InvokePaintBackground() method
22708           - Implemented InvokeClick() method
22709           - Implemented FindForm() method
22710           - Implemented RectangleToClient() method
22711           - Implemented ClientToRectangle() method
22712           - Implemented ResetBackColor() method
22713           - Implemented ResetCursor() method
22714           - Implemented ResetFont() method
22715           - Implemented ResteForeColor() method
22716           - Implemented ResetImeMode() method
22717           - Implemented ResetLeftToRight() method
22718           - Implemented ResetText() method
22719           - Implemented Scale() methods
22720           - Implemented ScaleCore() method
22721           - Implemented Update() method
22722           - Removed unused variables
22723           - Stubbed AccessibilityNotifyClients and
22724             ControlAccessibleObject.NotifyClients() methods (dunno what to do
22725             with those yet)
22726           - Now setting proper default for RightToLeft property
22727           - Fixed bug in SetClientSizeCore that would cause windows to get
22728             really big
22729           - Now sending Click/DoubleClick events
22730           - Now selecting controls when left mouse button is clicked on
22731             selectable control
22732         * AccessibleEvents.cs: Added
22733         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
22734         * XplatUIOSX.cs: Stubbed UpdateWindow() method
22735         * XplatUIWin32.cs: Implemented UpdateWindow() method
22736         * XplatUIX11.cs: Implemented UpdateWindow() method
22737         * Form.cs: Removed stray semicolon causing CS0162 warning
22738         * ThemeWin32Classic.cs: Fixed unused variable warnings
22739         * ScrollableControl.cs: Now calls base method for ScaleCore
22740         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
22741           style to avoid interference with internal click handler (which is
22742           different than standard Control click handling)
22743         * RadioButton.cs:
22744           - Now unchecks all sibling radio buttons when control is
22745             selected (Fixes #68756)
22746           - Removed internal tabstop variable, using the one inherited from
22747             Control
22748
22749 2005-01-17  Jackson Harper  <jackson@ximian.com>
22750
22751         * NavigateEventArgs.cs: Fix base type.
22752         * LinkLabel.cs: Sig fix
22753         
22754 2005-01-17  Jackson Harper  <jackson@ximian.com>
22755
22756         * TreeView.cs: Only invalidate the effected nodes bounds when
22757         selecting nodes.
22758
22759 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22760
22761         * XplatUIWin32.cs: fixes Win32 marshaling
22762         * XplatUIX11.cs: fixes method signature
22763
22764 2005-01-17  Peter Bartok  <pbartok@novell.com>
22765
22766         * XplatUIX11.cs: Clean up resources when we no longer need them
22767
22768 2005-01-17  Peter Bartok  <pbartok@novell.com>
22769
22770         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
22771           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
22772           and DestroyCursor() methods.
22773         * Cursor.cs: Partially implemented, now supports standard cursors;
22774           still contains some debug code
22775         * Cursors.cs: Implemented class
22776         * Control.cs:
22777           - WndProc(): Added handling of WM_SETCURSOR message, setting the
22778             appropriate cursor
22779           - Implemented Cursor property
22780           - Replaced break; with return; more straightforwar and possibly
22781             faster
22782           - Now properly setting the result for WM_HELP
22783         * X11Structs.cs: Added CursorFontShape enum
22784         * XplatUIStructs.cs:
22785           - Added StdCursor enum (to support DefineStdCursor() method)
22786           - Added HitTest enum (to support sending WM_SETCURSOR message)
22787         * XplatUIX11.cs:
22788           - Now sends the WM_SETCURSOR message
22789           - Implemented new cursor methods
22790         * XplatUIOSX.cs: Stubbed new cursor methods
22791         * XplatUIWin32.cs:
22792           - Implemented new cursor methods
22793           - Added GetSystemMetrics function and associated enumeration
22794
22795 2005-01-15  Peter Bartok  <pbartok@novell.com>
22796
22797         * Control.cs:
22798           - WndProc(): Now handles EnableNotifyMessage
22799           - SelectNextControl(): Fixed bug where if no child or sibling
22800             controls exist we looped endlessly
22801
22802 2005-01-14  Jackson Harper  <jackson@ximian.com>
22803
22804         * TreeView.cs: Recalculate the tab pages when a new one is added
22805         so that the proper bounding rects are created.
22806
22807 2005-01-14  Jackson Harper  <jackson@ximian.com>
22808
22809         * TreeView.cs: Draw a gray box instead of a grip in the lower
22810         right hand corner when there are both horizontal and vertical
22811         scroll bars.
22812
22813 2005-01-14  Jackson Harper  <jackson@ximian.com>
22814
22815         * Control.cs: When erasing backgrounds use FromHwnd instead of
22816         FromHdc when there is a NULL wparam. This occurs on the X driver.
22817         * XplatUIX11.cs: Set the wparam to NULL.
22818
22819 2005-01-13  Jackson Harper  <jackson@ximian.com>
22820
22821         * PictureBox.cs: Implement missing methods (except ToString, need
22822         to test that on windows) and events. When visibility is changed we
22823         need to redraw the image because the buffers are killed. When size
22824         is changed refresh if the sizemode needs it.
22825
22826 2005-01-13  Peter Bartok  <pbartok@novell.com>
22827
22828         * Control.cs (SelectNextControl): Was using wrong method to select
22829           a control
22830
22831 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22832
22833         * ComboBox.cs: fixes dropstyle
22834
22835 2005-01-13  Peter Bartok  <pbartok@novell.com>
22836
22837         * Form.cs:
22838           - Implemented Select() override
22839           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
22840           - Now sets keyboard focus on startup
22841         * Control.cs (SelectNextControl): Now properly handles directed=true
22842         * TextBoxBase.cs:
22843           - WndProc: Now passes tab key on to base if AcceptTabChar=false
22844           - Added (really bad) focus rectangle (mostly for testing)
22845         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
22846           to enforce redraw on focus changes
22847         * ContainerControl.cs:
22848           - Fixed detection of Shift-Tab key presses
22849           - Fixed traversal with arrow keys
22850         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
22851           gonna keep this or if it's complete yet
22852         
22853 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22854
22855         * ComboBox.cs: missing properties, fixes
22856
22857 2005-01-13  Peter Bartok  <pbartok@novell.com>
22858
22859         * Panel.cs (ctor): Setting Selectable window style to off
22860         * Splitter.cs (ctor): Setting Selectable window style to off
22861         * GroupBox.cs (ctor): Setting Selectable window style to off
22862         * Label.cs (ctor): Setting Selectable window style to off
22863
22864 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
22865
22866         * UpDownBase.cs (InitTimer): If the timer has been already
22867         created, enable it.
22868
22869         Use a TextBox instead of a Label.
22870
22871 2005-01-12  Jackson Harper  <jackson@ximian.com>
22872
22873         * TreeView.cs: Refresh the tree after sorting the nodes. Always
22874         draw the connecting node lines (when ShowLines is true).
22875         * TreeNode.cs: The nodes index can now be updated. This is used
22876         when a node collection is sorted.
22877         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
22878         insert or an existing unsorted node collection can be sorted.
22879         
22880 2005-01-12  Peter Bartok  <pbartok@novell.com>
22881
22882         * ContainerControl.cs: Implemented ProcessDialogKeys()
22883
22884 2005-01-12  Peter Bartok  <pbartok@novell.com>
22885
22886         * Control.cs:
22887           - Implemented SelectNextControl() method
22888           - Several focus related bug fixes
22889           - Fixed Docking calculations to match MS documentation and
22890             behaviour
22891
22892 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
22893
22894         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
22895         bug fixes
22896
22897 2005-01-12  Peter Bartok  <pbartok@novell.com>
22898
22899         * Control.cs:
22900           - Fixed broken Contains() method
22901           - Implemented GetNextControl() method. Finally. This is the pre-
22902             requisite for focus handling.
22903
22904 2005-01-12  Peter Bartok  <pbartok@novell.com>
22905
22906         * OSXStrucs.cs: Added
22907
22908 2005-01-12  Peter Bartok  <pbartok@novell.com>
22909
22910         * XplatUIWin32.cs:
22911           - Removed PeekMessageFlags
22912           - Implemented SetWindowStyle() method
22913         * XplatUIStructs.cs: Added PeekMessageFlags
22914         * X11Structs: Added missing border_width field to XWindowChanges struct
22915         * XplatUIX11.cs:
22916           - PeekMessage: Now throws exception if flags which are not yet
22917             supported are passed
22918           - Implemented SetWindowStyle() method
22919           - Fixed SetZOrder to handle AfterHwnd properly
22920         * XplatUI.cs: Added SetWindowStyle() method
22921         * XplatUIDriver.cs: Added SetWindowStyle() abstract
22922         * Control.cs:
22923           - Implemented UpdateStyles() method
22924           - Implemented UpdateZOrder() method
22925         * XplatUIOSX.cs: Added SetWindowStyle() stub
22926
22927 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
22928
22929         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
22930         button mouse).
22931
22932
22933 2005-01-11  Jackson Harper  <jackson@ximian.com>
22934
22935         * TreeView.cs: Still need to draw lines to siblings even if out of
22936         the current node is out of the clip.
22937
22938 2005-01-11  Jackson Harper  <jackson@ximian.com>
22939
22940         * TreeView.cs: When setting the hbar/vbar/grip position use
22941         SetBounds so that perform layout is only called once. Also suspend
22942         and resume layout so layout is only done once for all controls.
22943         - Removed some debug fluff
22944         * SizeGrip.cs: Call base implmentation in overriding methods.
22945         - When visibility is changed the drawing buffers are killed so we
22946         need to redraw.
22947
22948 2005-01-11  Jackson Harper  <jackson@ximian.com>
22949
22950         * TreeView.cs: Calculate the open node count while drawing. This
22951         saves us an entire tree traversal for every paint operation. Use
22952         a member var for the open node count so less vars are passed around.
22953
22954 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
22955
22956         * MonthCalendar.cs:
22957         - fixed selection to use mousemove, not mouse polling on timer
22958         * ThemeWin32Classic.cs
22959         - removed redundant unused variable "no_more_content"
22960         
22961 2005-01-11  Peter Bartok  <pbartok@novell.com>
22962
22963         * XplatUIX11.cs (DoEvents): Needs to return when no more events
22964           are pending, so it now calls PeekMessage instead of GetMessage;
22965           implemented a incomplete version of PeekMessage
22966         
22967 2005-01-11  Peter Bartok  <pbartok@novell.com>
22968
22969         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
22970           I18n issues
22971         * TextBoxBase.cs: Added sending of TextChanged event
22972
22973 2005-01-10  Jackson Harper  <jackson@ximian.com>
22974
22975         * TreeView.cs: Try not to draw outside the clipping rectangle on
22976         each node element.
22977
22978 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
22979
22980         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
22981
22982 2005-01-10  Jackson Harper  <jackson@ximian.com>
22983
22984         * TreeView.cs:
22985         - Implement fast scrolling. Now only the newly
22986         exposed nodes are drawn and the old image is moved using the
22987         XplatUI::ScrollWindow method.
22988         - Factor in height of nodes when calculating whether or not the
22989         node is in the clipping rect.
22990
22991 2005-01-10  Jackson Harper  <jackson@ximian.com>
22992
22993         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
22994
22995 2005-01-10  Peter Bartok  <pbartok@novell.com>
22996
22997         * Application.cs: Added temporary hack to resolve all our resize
22998           required issues on startup. This will get fixed properly at
22999           some point in the future
23000
23001 2005-01-10  Jackson Harper  <jackson@ximian.com>
23002
23003         * SizeGrip.cs: New internal class that is used as a sizing
23004         grip control...hence the name.
23005
23006 2005-01-10  Peter Bartok  <pbartok@novell.com>
23007
23008         * Control.cs: Implemented proper TabIndex handling, now assigning
23009           a tabindex when a control is added to a container
23010         * GroupBox.cs (ctor): Now sets the Container style bit, required
23011           for Control.GetNextControl()
23012
23013 2005-01-09  Jackson Harper  <jackson@ximian.com>
23014
23015         * TextBoxBase.cs: Clear window when scrolling (fixes build).
23016
23017 2005-01-09  Peter Bartok <pbartok@novell.com>
23018
23019         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
23020           XplatUIX11.cs: Added ability to control ScrollWindow expose and
23021           an overload for ScrollWindow to allow only scrolling a rectangle
23022
23023 2005-01-09  Peter Bartok <pbartok@novell.com>
23024
23025         * Form.cs:
23026           - Implemented SetDesktopBounds method
23027           - Implemented SetDesktopLocation method
23028
23029 2005-01-08  Jackson Harper  <jackson@ximian.com>
23030
23031         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
23032         the node count has changed, this removes to VScroll::Refresh calls
23033         when drawing.
23034
23035 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
23036
23037         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
23038
23039 2005-01-07  Jackson Harper  <jackson@ximian.com>
23040
23041         * TreeNode.cs: Just update the single node when it is
23042         checked. Don't refresh after toggling, the Expand/Collapse already
23043         handles this.
23044         * TreeView.cs: Respect clipping a little more when drawing. Try
23045         not to redraw things that don't need to be redrawn. Just hide the
23046         scrollbars when they are no longer needed instead of removing
23047         them, so they don't have to be created again and again.
23048         
23049 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
23050
23051         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
23052         coordinates to window space to place the caret properly, FIXED.
23053         Implement GetWindowState & SetWindowState
23054
23055 2005-01-06  Peter Bartok <pbartok@novell.com>
23056
23057         * Form.cs:
23058           - Implemented ClientSize property
23059           - Implemented DesktopBounds property
23060           - Implemented DesktopLocation property
23061           - Implemented IsRestrictedWindow property
23062           - Implemented Size property
23063           - Implemented TopLevel property
23064           - Implemented FormWindowState property
23065         * Control.cs:
23066           - Implemented GetTopLevel() method
23067           - Implemented SetTopLevel() method
23068         * X11Structs.cs (Atom):
23069           - Added AnyPropertyType definition
23070           - Added MapState definiton and updated XWindowAttribute struct
23071         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
23072         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
23073         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
23074         * XplatUIWin32.cs:
23075           - Implemented GetWindowState() and SetWindowState() methods
23076           - Fixed Win32GetWindowLong return type
23077         * XplatUIX11.cs:
23078           - Introduced central function for sending NET_WM messages
23079           - Implemented GetWindowState() and SetWindowState() methods
23080         * TextBoxBase.cs (set_Lines):
23081           - Now uses Foreground color for text added via Text property (Duh!)
23082           - Added code to remember programmatically requested size (fixes
23083             behaviour when Multiline is set after Size)
23084           - Added AutoSize logic
23085
23086 2005-01-06  Jackson Harper  <jackson@ximian.com>
23087
23088         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
23089
23090 2005-01-06  Jackson Harper  <jackson@ximian.com>
23091
23092         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
23093         set to less then 0.
23094
23095 2005-01-06  Jackson Harper  <jackson@ximian.com>
23096
23097         * ScrollableControl.cs: Lazy init the scrollbars.
23098         
23099 2005-01-06  Jackson Harper  <jackson@ximian.com>
23100
23101         * Theme.cs: Speed up getting pens and solid brushes, by using
23102         their ARGB as a hash instead of tostring and not calling Contains.
23103
23104 2005-01-06  Peter Bartok <pbartok@novell.com>
23105
23106         * Form.cs:
23107           - Implemented OnActivated and OnDeactivate event trigger
23108           - Implemented Activate() method
23109           - Fixed ShowDialog() to activate the form that was active before
23110             the dialog was shown
23111         * XplatUIX11.cs:
23112           - Added global active_window var that tracks the currently active
23113             X11 window
23114           - Now always grabs Property changes from the root window to always
23115             catch changes on the active window property
23116           - Added code to PropertyNotify handler to send Active/Inactive
23117             messages when state changes. This puts X11 and Win32 en par on
23118             WM_ACTIVATE notifications (except for double notifications when
23119             the user clicks away from our modal window to another one of our
23120             windows)
23121
23122 2005-01-05  Jackson Harper  <jackson@ximian.com>
23123
23124         * ImageList.cs: Implment ctor
23125
23126 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23127
23128         * XplatUIOSX.cs: Implement Activate/SetTopmost
23129
23130 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23131
23132         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
23133
23134 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23135
23136         * XplatUIOSX.cs: Implement GetActive/SetFocus.
23137
23138 2005-01-05  Peter Bartok <pbartok@novell.com>
23139
23140         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
23141           XplatUIOSX.cs: Added GetActive method to return the currently
23142           active window for the application (or null, if none is active)
23143         * Form.cs:
23144           - Implemented ActiveForm
23145           - Commented out owner assignment for modal dialogs (causes problems
23146             on Win32, since the owner will be disabled)
23147           - Reworked some Active/Focus handling (still incomplete)
23148         * CommonDialog.cs: Commented out owner assignment for modal dialogs
23149           (causes problems on Win32, since the owner will be disabled)
23150         * IWin32Window: Added ComVisible attribute
23151
23152 2005-01-05  Peter Bartok <pbartok@novell.com>
23153
23154         * ToolTip.cs (WndProc): Enable setting focus now that we have the
23155           required XplatUI functions.
23156
23157 2005-01-05  Peter Bartok <pbartok@novell.com>
23158
23159         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
23160           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
23161           to implement focus and activation handling; still incomplete and
23162           with debug output
23163
23164 2005-01-04  Peter Bartok <pbartok@novell.com>
23165
23166         * TextBoxBase.cs: Changed access level for Document property to
23167           match switch to internal for TextControl
23168
23169 2005-01-04  Peter Bartok <pbartok@novell.com>
23170
23171         * AccessibleObject: Added ComVisible attribute
23172
23173 2005-01-04  Jackson Harper  <jackson@ximian.com>
23174
23175         * X11Keyboard.cs: Remove unneeded var.
23176
23177 2005-01-04  Jackson Harper  <jackson@ximian.com>
23178
23179         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
23180         but PAINT.
23181         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
23182         ClientMessage. This makes apps exit cleanly (more often).
23183         
23184 2005-01-04  Jackson Harper  <jackson@ximian.com>
23185
23186         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
23187         handling focus, return correct colors and fonts,
23188         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
23189         handle selection, horizontal scrolling, and mouse interaction.
23190
23191 2005-01-04  Peter Bartok <pbartok@novell.com>
23192
23193         * ICommandExecutor.cs: Added
23194         * IDataGridColumnStyleEditingNotificationService.cs: Added
23195         * IFeatureSupport.cs: Added
23196         * IFileReaderService.cs: Added
23197         * IDataObject.cs: Added ComVisible attribute
23198         * AmbientProperties.cs: Added
23199         * BaseCollection.cs: Added missing attributes
23200         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
23201         * BaseCollection.cs: Added missing attributes
23202         * Binding.cs: Added TypeConverter attribute
23203         * BindingContext.cs: Added DefaultEvent attribute
23204         * BindingsCollection.cs: Added DefaultEvent attribute
23205         * Button.cs: Added DefaultValue attribute
23206         * DragEventArgs.cs: Added ComVisible attribute
23207         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
23208         * KeyEventArgs.cs: Added ComVisible attribute
23209         * KeyPressEventArgs.cs: Added ComVisible attribute
23210         * MouseEventArgs.cs: Added ComVisible attribute
23211         * NavigateEventArgs.cs: Added
23212         * NavigateEventHandler.cs: Added
23213         * FeatureSupport.cs: Added
23214         * OSFeature.cs: Added
23215         * Theme.cs: Added abstract Version property to support OSFeature
23216         * ThemeWin32Classic.cs: Added Version property to
23217           support OSFeature.Themes
23218         * ProgressBar.cs: Removed OnPaintBackground override, not required since
23219           the proper styles to avoid background drawing are set, also doesn't
23220           match MS signature
23221         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
23222         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
23223         * ScrollEventArgs.cs: Added ComVisible attribute
23224         * SplitterEventArgs.cs: Added ComVisible attribute
23225         * AccessibleSelection.cs: Added Flags attribute
23226         * Appearance.cs: Added ComVisible attribute
23227         * Border3DSide.cs: Added ComVisible attribute
23228         * Border3DStyle.cs: Added ComVisible attribute
23229         * BorderStyle.cs: Added ComVisible attribute
23230         * DragAction.cs: Added ComVisible attribute
23231         * ErrorBlinkStyle.cs: Added
23232         * ScrollEventType.cs: Added ComVisible attribute
23233         * AnchorStyles.cs: Added Editor attribute
23234         * DockStyle.cs: Added Editor attribute
23235         * HorizontalAlignment.cs: Added ComVisible attribute
23236         * HelpEventArgs.cs: Added ComVisible attribute
23237         * PaintEventArgs.cs: Added IDisposable
23238
23239 2005-01-04  Peter Bartok <pbartok@novell.com>
23240
23241         * TextControl.cs: Switched Line, LineTag and Document classes to
23242           internal
23243
23244 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23245
23246         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
23247         Simple mode, fixes, IntegralHeight, etc.
23248
23249 2005-01-04  Peter Bartok <pbartok@novell.com>
23250
23251         * TextBoxBase.cs: Using proper font variable now
23252
23253 2005-01-04  Peter Bartok <pbartok@novell.com>
23254
23255         * Form.cs (ShowDialog): Set parent to owner, if provided
23256         * GroupBox.cs: Removed unused vars
23257         * TextControl.cs:
23258           - Added GetHashCode() for Document and LineTag classes
23259           - Removed unused variables
23260           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
23261             to allow translation between continuous char position and line/pos
23262         * CheckBox.cs: Removed vars that are provided by base class
23263         * RadioButton.cs: Removed vars that are provided by base class, added
23264           new keyword where required
23265         * LinkLabel.cs: Added new keyword where required
23266         * Control.cs (WndProc): Removed unused variable
23267         * TextBoxBase.cs:
23268           - Finished SelectionLength property
23269           - Implemented SelectionStart property
23270           - Implemented Text property
23271           - Removed unused vars
23272         * MessageBox.cs: Added new keyword where required
23273         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
23274           WndProc signature
23275         * MenuAPI.cs: Added new keyword where required
23276         * ButtonBase.cs: Removed vars that are provided by base class, added
23277           new keyword where required
23278         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
23279           argument to double, to allow compiling with csc 2.0 (Atsushi ran
23280           into this)
23281         * Application.cs (Run): Now triggers the ThreadExit event
23282         * CommonDialog.cs: Added new keyword where required; now properly sets
23283           parent (owner) for dialog
23284         * XplatUIX11.cs: Commented out unused vars
23285         * StatusBar.cs: Fixed signature for Text property
23286         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
23287
23288 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23289
23290         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
23291         TrackBar.cs, MonthCalendar.cs: remove unused vars
23292
23293 2005-01-03  Jackson Harper  <jackson@ximian.com>
23294
23295         * ThemeWin32Classic.cs:
23296         * X11Keyboard.cs: Remove unused vars.
23297
23298 2005-01-03  Peter Bartok  <pbartok@novell.com>
23299
23300         * TextBox.cs:
23301           - set_Text: Tied into TextControl
23302           - set_TextAlignment: Tied into TextControl
23303         * TextControl.cs:
23304           - Added alignment properties and implemented alignment handling
23305             and drawing (still has a bug, not generating proper expose events)
23306           - Added new Line() constructor to allow passing the line alignment
23307           - Fixed selection setting, properly handling end<start now
23308           - Added aligment considerations to RecalculateDocument()
23309         * TextBoxBase.cs:
23310           - Now properly enforces control height for single line controls
23311           - Added support for CharacterCasing
23312           - Added IsInputKey override
23313           - Fixed Keys.Enter logic
23314           - Added SetBoundsCore override
23315           - Fixed mouse selection handling
23316
23317 2005-01-03  Jackson Harper  <jackson@ximian.com>
23318
23319         * TreeView.cs:
23320           - Collapse and uncheck all nodes when CheckBoxes is disabled.
23321           - Checkboxes are always aligned to the bottom of the node,
23322           regardless of item height.
23323           - Use the node bounds to draw the text so we can center it when
23324           the item height is greater then the font height.
23325           - Node::Bounds are only the text part of the node.
23326         * TreeNode.cs: New method to combine collapsing and unchecking all
23327           nodes recursively.
23328
23329 2005-01-02  Jackson Harper  <jackson@ximian.com>
23330
23331         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
23332         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
23333         tree when a check is changed. TODO: Only refresh the checked node.
23334
23335 2004-12-30  Jackson Harper  <jackson@ximian.com>
23336
23337         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
23338         * TreeNode.cs: When collapsing make sure to never collapse the
23339         root node.
23340
23341 2004-12-29  Jackson Harper  <jackson@ximian.com>
23342
23343         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
23344         
23345 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
23346
23347         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
23348
23349 2004-12-28  Peter Bartok  <pbartok@novell.com>
23350
23351         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
23352           not yet assigned
23353
23354 2004-12-28  Peter Bartok  <pbartok@novell.com>
23355
23356         * Control.cs (WndProc): Added WM_HELP handler, now generates
23357           HelpRequested event
23358         * Form.cs: Added HelpButton property and required support code
23359         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
23360
23361 2004-12-28  Peter Bartok  <pbartok@novell.com>
23362
23363         * CommonDialog.cs:
23364           - Made DialogForm.owner variable internal
23365           - Added check to ensure owner form is set before setting
23366             owner properties in CreateParams
23367
23368 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
23369
23370         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
23371           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
23372           GetCursorPos.  Fix major visibility issues.  Rework the windowing
23373           system to support borderless/titleless windows (implements menus).
23374           Fix GetWindowPos.  Implement initial background color support for
23375           views.
23376
23377 2004-12-28  Peter Bartok  <pbartok@novell.com>
23378
23379         * Form.cs (get_CreateParams): Make sure we have an owner before using
23380           the owner variable. Implement proper default if no owner exists
23381
23382 2004-12-28  Peter Bartok  <pbartok@novell.com>
23383
23384         * In preparation for making Managed.Windows.Forms the default build target
23385           for System.Windows.Forms, the following stubbed files were added.
23386           Dialogs are currently being implemented by contributors and are only
23387           short-term place holders.
23388         * ColorDialog.cs: Initial check-in (minmal stub)
23389         * DataGrid.cs: Initial check-in (minimal stub)
23390         * DataGridLineStyle.cs: Initial check-in (minimal stub)
23391         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
23392         * DataGridTableStyle.cs: Initial check-in (minimal stub)
23393         * FontDialog.cs: Initial check-in (minimal stub)
23394         * FileDialog.cs: Initial check-in (minimal stub)
23395         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
23396         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
23397         * OpenFileDialog: Initial check-in (minimal stub)
23398         * IComponentEditorPageSite.cs: Initial check-in
23399         * Splitter.cs: Initial check-in (for Jackson)
23400         * SplitterEventArgs.cs: Initial check-in (for Jackson)
23401         * SplitterEventHandler.cs: Initial check-in (for Jackson)
23402         * TextBox.cs: Initial check-in; still needs some wiring to
23403           TextControl backend
23404         * Form.cs: Implemented ControlBox property
23405         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
23406         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
23407         * TextControl.cs: Added selection functionality; added todo header
23408         * TextBoxBase.cs:
23409           - Implemented Lines property
23410           - Implemented TextHeight property
23411           - Implemented SelectedText property
23412           - Implemented SelectionLength property
23413           - Implemented SelectAll method
23414           - Implemented ToString method
23415           - Removed and cleaned up some debug code
23416           - Implemented (still buggy) mouse text selection
23417
23418 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
23419
23420         * ComboBox.cs: Complete DropDownList implementation, fixes.
23421
23422 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
23423
23424         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
23425         * ComboBoxStyle.cs: ComboBoxStyle enum
23426         * ComboBox.cs: Initial work on ComboBox control
23427
23428 2004-12-21  Peter Bartok  <pbartok@novell.com>
23429
23430         * Control.cs (ctor, CreateParams): Moved setting of is_visible
23431           forward so that anything that creates a window gets the default,
23432           also no longer uses Visible property in CreateParams to avoid
23433           walking up the parent chain and possibly get the wrong visible
23434           status. Fixed IsVisible to no longer walk up to the parent.
23435
23436 2004-12-21  Peter Bartok  <pbartok@novell.com>
23437
23438         * Form.cs (ShowDialog): Unset modality for the proper window
23439  
23440 2004-12-20  Peter Bartok  <pbartok@novell.com>
23441
23442         * CommonDialog.cs: Initial check-in
23443
23444 2004-12-20  Peter Bartok  <pbartok@novell.com>
23445
23446         * Control.cs (Visible): Now uses the parent window instead of the
23447           client area window for the property
23448
23449         * Form.cs
23450           - ShowDialog(): Now uses the proper window for modality
23451           - The default visibility state for the form parent is now false. This
23452             will prevent the user from seeing all the changes to the form and
23453             its controls before the application hits Application.Run()
23454           - Removed some stale commented out code
23455
23456         * NativeWindow.cs:
23457           - Added FindWindow() method to have a method to check for existence
23458             of a window handle
23459           - Added ability to override default exception handling (for example
23460             when debugging with VS.Net; to do this the ExternalExceptionHandler
23461             define must be set
23462           - Removed some useless debug output
23463
23464         * XplatUIX11.cs:
23465           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
23466             not working as expected
23467           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
23468             property to allow switching back to the modal window if focus is
23469             given to another one of our windows (Application Modal)
23470           - Now only sets override_redirect if we create a window
23471             without WS_CAPTION
23472           - Moved EventMask selection before mapping of newly created window
23473             so we can catch the map event as well
23474           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
23475           - Added various Atom related DllImports
23476           - Implemented Exit() method
23477           - .ctor() : No longer shows window if WS_VISIBLE is not defined
23478             in the CreateParams
23479
23480         * MessageBox.cs: Now properly deals with the FormParent window by
23481           providing an override the FormParent CreateParams property to
23482           set as POPUP instead of OVERLAPPED window.
23483
23484 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23485
23486         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
23487         Minor code cleanup.
23488
23489 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23490         
23491         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
23492
23493 2004-12-18  Peter Bartok  <pbartok@novell.com>
23494
23495         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
23496           implementing SetModal() method
23497
23498 2004-12-18  Peter Bartok  <pbartok@novell.com>
23499
23500         * X11Structs.cs (XGCValues): Fixed type of function element
23501         * XplatUI.cs: Added ScrollWindow() method
23502         * XplatUIDriver.cs: Added ScrollWindow() abstract
23503         * XplatUIWin32.cs: Implemented ScrollWindow() method
23504         * XplatUIX11.cs: Implemented ScrollWindow() method
23505         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
23506
23507 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23508
23509         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
23510         Some more keyboard support (INCOMPLETE)
23511
23512 2004-12-17  Peter Bartok  <pbartok@novell.com>
23513
23514         * TextControl.cs:
23515         - Added color attribute to line tags.
23516         - Added color argument to all functions dealing with tags
23517         - Added color argument support to various functions
23518         - Fixed miss-calculation of baseline/shift in certain circumstances
23519
23520         * TextBoxBase.cs: Added new color option to test code
23521
23522 2004-12-17  Jackson Harper  <jackson@ximian.com>
23523
23524         * TreeNode.cs:
23525         * MonthCalendar.cs: Signature fixes
23526
23527 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23528
23529         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
23530         keyboard event moved it.  Create a new graphics context for each paint resolves this
23531
23532 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23533
23534         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
23535         Make caret exist and go blink blink.  Initial keyboard support.
23536         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
23537         works.
23538
23539 2004-12-17  Jackson Harper  <jackson@ximian.com>
23540
23541         * XplatUIStructs.cs: Updated set of virtual keycodes.
23542         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
23543
23544 2004-12-17  Jackson Harper  <jackson@ximian.com>
23545
23546         * XplatUIX11.cs: Prune old keyboard code.
23547
23548 2004-12-17  Jackson Harper  <jackson@ximian.com>
23549
23550         * XplatUIX11.cs: When generating mouse wparams get the modifier
23551         keys from the ModifierKeys property.
23552
23553 2004-12-17  Jackson Harper  <jackson@ximian.com>
23554
23555         * X11Keyboard.cs: Send up/down input when generating
23556         messages. Remove some unused vars.
23557
23558 2004-12-17  Jackson Harper  <jackson@ximian.com>
23559
23560         * TabControl.cs:
23561         * TreeView.cs: get rid of warnings.
23562
23563 2004-12-17  Jackson Harper  <jackson@ximian.com>
23564
23565         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
23566
23567 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
23568
23569         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
23570           CheckedListBox.cs: Implementation
23571
23572 2004-12-17  Peter Bartok  <pbartok@novell.com>
23573
23574         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
23575
23576 2004-12-16  Peter Bartok  <pbartok@novell.com>
23577
23578         * TextControl.cs:
23579           - InsertCharAtCaret(): Fixed start pos fixup
23580           - CaretLine_get: No longer derives the line from the tag, the tag
23581             could be stale if lines in the document have been added or deleted
23582           - RebalanceAfterDelete(): Fixed bug in balancing code
23583           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
23584           - Line.Streamline(): Now can also elminate leading empty tags
23585           - DumpTree(): Added a few more tests and prevented exception on
23586             uninitialized data
23587           - Added Debug section for Combining lines
23588           - Delete(): Now copies all remaining properties of a line
23589           
23590         * TextBoxBase.cs:
23591           - Left mousebutton now sets the caret (and middle button still acts
23592             as formatting tester, which must go away soon)
23593           - Added Debug section for Deleting/Combining lines
23594           - Fixed calculations for UpdateView after Combining lines
23595
23596 2004-12-16  Peter Bartok  <pbartok@novell.com>
23597
23598         * TextControl.cs: Now properly aligns text on a baseline, using the
23599           new XplatUI.GetFontMetrics() method. Simplified several calculations
23600         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
23601           defined
23602
23603 2004-12-16  Peter Bartok  <pbartok@novell.com>
23604
23605         * XplatUI.cs: Added GetFontMetrics() method
23606         * XplatUIDriver.cs: Added GetFontMetrics() abstract
23607         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
23608           into libgdiplus, our private GetFontMetrics function
23609         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
23610         * XplatUIWin32.cs: Implemented GetFontMetrics() method
23611
23612 2004-12-16  Jackson Harper  <jackson@ximain.com>
23613
23614         * XplatUIStruct.cs: Add enum for dead keys
23615         * X11Keyboard.cs: Map and unmap dead keys.
23616
23617 2004-12-16  Jackson Harper  <jackson@ximian.com>
23618
23619         * X11Keyboard.cs: Detect and use the num lock mask.
23620
23621 2004-12-16  Peter Bartok  <pbartok@novell.com>
23622
23623         * Control.cs (CreateGraphics): Added check to make sure the
23624           handle of the window exists before calling Graphics.FromHwnd()
23625
23626 2004-12-16  Peter Bartok  <pbartok@novell.com>
23627
23628         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
23629           contains a lot of code that's not supposed to be there for the
23630           real thing, but required for developing/testing the textbox
23631           backend.
23632
23633 2004-12-16  Peter Bartok  <pbartok@novell.com>
23634
23635         * TextControl.cs:
23636         - Fixed Streamline method
23637         - Added FindTag method to Line
23638         - Added DumpTree method for debugging
23639         - Added DecrementLines() method for deleting lines
23640         - Fixed UpdateView to update the cursor to end-of-line on single-line
23641           updates
23642         - Added PositionCaret() method
23643         - Fixed MoveCaret(LineDown) to move into the last line, too
23644         - Added InsertChar overload
23645         - Fixed InsertChar tag offset calculations
23646         - Added DeleteChar() method
23647         - Added Combine() method for folding lines
23648         - Fixed Delete() method, no longer allocates wasted Line object and
23649           now copies all properties when swapping nodes
23650         - Delete() method now updates document line counter
23651
23652 2004-12-15  Jackson Harper  <jackson@ximian.com>
23653
23654         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
23655         * X11Keyboard.cs: Expose the currently selected modifier keys
23656         through a property.
23657
23658 2004-12-15  Peter Bartok  <pbartok@novell.com>
23659
23660         * TextControl.cs: Initial check-in. Still incomplete
23661
23662 2004-12-15  Jackson Harper  <jackson@ximian.com>
23663
23664         * TreeNode.cs:
23665         * TreeView.cs: Fix build on csc (second time today ;-))
23666
23667 2004-12-15  Jackson Harper  <jackson@ximian.com>
23668
23669         * TreeView.cs: Store the treenodes plus/minus box bounds when it
23670         is calculated and use this for click testing.
23671         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
23672
23673 2004-12-15  Jackson Harper  <jackson@ximian.com>
23674
23675         * TreeView.cs: Pass the nodes image index to the image list when
23676         drawing that image.
23677
23678 2004-12-15  Jackson Harper  <jackson@ximian.com>
23679
23680         * X11Keyboard.cs: Set messages hwnd.
23681         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
23682         post_message calls.
23683
23684 2004-12-15  Jackson Harper  <jackson@ximian.com>
23685
23686         * X11Keyboard.cs: Fix to compile with csc.
23687         
23688 2004-12-15  Jackson Harper  <jackson@ximian.com>
23689
23690         * X11Structs.cs: Add key mask values
23691         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
23692         * X11Keyboard.cs: New file - Extrapolates and interpolates key
23693         down/up foo into WM_CHAR foo
23694         * KeyboardLayouts.cs: Common keyboard layouts
23695         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
23696         post messages into the main queue.
23697
23698 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
23699
23700         * Button.cs: implement ProcessMnemonic
23701         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
23702           brushes everytime
23703         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
23704         * ButtonBase.cs: Show HotkeyPrefix (not the &)
23705
23706 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
23707         
23708         * MonthCalendar.cs: Implemented click-hold for next/previous month
23709           and date selection
23710           
23711 2004-12-11  Peter Bartok  <pbartok@novell.com>
23712
23713         * X11Structs.cs:
23714           - Added XKeyboardState (moved from XplatUIX11.cs)
23715           - Added XCreateGC related enums and structures
23716           - Added GXFunction for XSetFunction
23717
23718         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
23719
23720         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
23721           CaretVisible() calls
23722
23723         * ToolTip.cs: Added code to prevent stealing focus from app windows
23724
23725         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
23726           DestroyCaret, SetCaretPos and CaretVisible)
23727
23728         * XplatUIX11.cs:
23729           - Added implementation for caret functions
23730           - Moved hover variables into a struct, to make it a bit easier
23731             on the eyes and to debug
23732           - Removed XKeyboardState (moved to XplatUIX11.cs)
23733           - Moved Keyboard properties into the properties region
23734
23735         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
23736           call to get a graphics context for our control
23737
23738         * XplatUIOSX.cs: Added empty overrides for the new caret functions
23739
23740         * TreeView.cs: Fixed bug. No matter what color was set it would always
23741           return SystemColors.Window
23742
23743         * XplatUIWin32.cs: Implemented caret overrides
23744
23745 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
23746
23747         * ListBox.cs: fire events, implement missing methods and properties,
23748         sorting.
23749
23750 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
23751
23752         * MonthCalendar.cs: invalidation bug fixing
23753         * ThemeWin32Classic.cs: paint fixing
23754
23755 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
23756
23757         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
23758         prepare the CGContextRef there now.
23759
23760 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
23761
23762         * MonthCalendar.cs:
23763           - optimisationL only invalidate areas that have changed
23764         * ThemeWin32Classic.cs:
23765           - only paint parts that intersect with clip_area
23766
23767 2004-12-09  Peter Bartok  <pbartok@novell.com>
23768
23769         * Application.cs: Undid changes from r37004 which cause problems
23770         on X11
23771
23772 2004-12-09  Ravindra  <rkumar@novell.com>
23773
23774         * ToolBar.cs: Added support for displaying ContextMenu
23775         attached to a button on ToolBar.
23776         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
23777         property.
23778
23779 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
23780
23781         * Label.cs: autosize works in text change and removes unnecessary
23782         invalidate
23783
23784 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
23785
23786         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
23787         remove warnings
23788
23789 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
23790
23791         * XplatUIOSX.cs: Added mouse move/click/grab support
23792         Remove some debugging WriteLines not needed anymore.
23793         Add window resizing/positioning.
23794         Fix visibility on reparenting.
23795
23796 2004-12-08  Peter Bartok  <pbartok@novell.com>
23797
23798         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
23799
23800 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
23801
23802         * XplatUIOSX.cs: Initial checkin
23803         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
23804
23805 2004-12-03  Ravindra <rkumar@novell.com>
23806
23807         * ListView.cs: Added some keybindings and fixed scrolling.
23808         ScrollBars listen to ValueChanged event instead of Scroll
23809         Event. This would let us take care of all changes being
23810         done in the scrollbars' values programmatically or manually.
23811         * ListView.cs (CanMultiselect): Added a check for shift key.
23812         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
23813         * ListViewItem.cs (Clone): Fixed. We need to make a copy
23814         of ListViewSubItemCollection as well.
23815
23816 2004-12-06  Peter Bartok <pbartok@novell.com>
23817
23818         * Control.cs (Parent): Added check and exception to prevent
23819         circular parenting
23820
23821 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
23822
23823         * ListBox.cs: implemented clipping, selection single and multiple,
23824         bug fixing
23825
23826 2004-12-03  Ravindra <rkumar@novell.com>
23827
23828         * ListView.cs (ListView_KeyDown):
23829         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
23830         when CTRL key is pressed.
23831         * ListViewItem.cs (Selected): Fixed setting the property.
23832
23833 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
23834
23835         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
23836
23837         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
23838         MinimizeBox, ShowInTaskbar, TopMost properties.
23839
23840         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
23841         will be implemented).
23842
23843 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
23844
23845         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
23846
23847         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
23848         tests.
23849         
23850         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
23851         
23852         * TreeView.cs: BackColor is Colors.Window.
23853
23854 2004-12-01  Jackson Harper  <jackson@ximian.com>
23855
23856         * TreeView.cs: When resizing the tree if the user is making it
23857         smaller we don't get expose events, so we need to handle adding
23858         the horizontal scrollbar in the size changed handler as well as
23859         the expose handler.
23860
23861 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
23862
23863         * DrawItemState.cs: fixes wrong enum values
23864
23865 2004-12-01  Jackson Harper  <jackson@ximian.com>
23866
23867         * TreeView.cs: Resize the hbar as well as the vbar on resize.
23868
23869 2004-12-01  Jackson Harper  <jackson@ximian.com>
23870
23871         * NodeLabelEditEventArgs.cs:
23872         * NodeLabelEditEventHandler.cs:
23873         * OpenTreeNodeEnumerator.cs:
23874         * TreeNode.cs:
23875         * TreeNodeCollection.cs:
23876         * TreeView.cs:
23877         * TreeViewAction.cs:
23878         * TreeViewCancelEventArgs.cs:
23879         * TreeViewCancelEventHandler.cs:
23880         * TreeViewEventArgs.cs:
23881         * TreeViewEventHandler.cs: Initial implementation.
23882
23883 2004-12-01  Ravindra <rkumar@novell.com>
23884
23885         * ListView.cs (CalculateListView): Fixed scrolling related
23886         calculations. Also, removed some debug statements from other
23887         places.
23888         * ListViewItem.cs: Changed access to 'selected' instance variable
23889         from private to internal.
23890         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
23891
23892 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
23893
23894         * ThemeWin32Classic.cs: remove cache of brush and pens for
23895         specific controls and use the global system, fixes scrollbutton
23896         bugs (for small sizes, disabled, etc)
23897         
23898         * ScrollBar.cs: does not show the thumb for very small controls
23899         (as MS) and allow smaller buttons that the regular size
23900
23901 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
23902
23903         * UpDownBase.cs: Add abstract methods for the interface.
23904         Add new virtual methods (need to be hooked up to TextEntry when it
23905         exists).
23906         Add override methods for most features.
23907         Computes the size, forces the height of the text entry.
23908
23909         * NumericUpDown.cs: Put here the current testing code.
23910
23911         * Set eol-style property on all files that do not have mixed line
23912         endings, to minimize the future problems.  There are still a few
23913         files with mixed endings, and someone should choose whether they
23914         want to move it or not.
23915
23916 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
23917
23918         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
23919         System.Colors
23920         
23921 2004-11-30  Ravindra <rkumar@novell.com>
23922
23923         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
23924         drawing and replaced use of SystemColors by theme colors.
23925         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
23926         * ListView.cs (ListViewItemCollection.Add): Throw exception when
23927         same ListViewItem is being added more than once.
23928
23929 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
23930
23931         * MonthCalendar.cs:
23932           - ControlStyles love to make the control not flicker
23933           
23934 2004-11-30  Peter Bartok  <pbartok@novell.com>
23935
23936         * CharacterCasing.cs: Added
23937
23938 2004-11-29  Peter Bartok  <pbartok@novell.com>
23939
23940         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
23941           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
23942           I am removing these files as they conflict with already completed
23943           work. While it is fantastic to get contributions to MWF, I
23944           respectfully ask that everyone please coordinate their contributions
23945           through mono-winforms-list or #mono-winforms at this time. We're
23946           explicitly avoiding stubbing and don't want controls that don't have
23947           their basic functionality implemented in svn. Please also see
23948           http://www.mono-project.com/contributing/winforms.html
23949
23950
23951 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
23952
23953         * Application.cs (ModalRun): Don't hang after exit.
23954
23955         * Theme.cs: New TreeViewDefaultSize property.
23956
23957         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
23958         with less hardcoded SystemColors constant.
23959         Implemented TreeViewDefaultSize.
23960
23961         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
23962         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
23963
23964
23965 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
23966
23967         * MonthCalendar.cs:
23968           - Fix NextMonthDate and PrevMonthDate click moving calendar
23969
23970 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
23971
23972         * MonthCalendar.cs:
23973           - Fix usage of ScrollChange Property when scrolling months
23974
23975 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
23976
23977         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
23978          - Fixes menu destroying
23979          - Support adding and removing items on already created menus
23980
23981 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
23982
23983         * MonthCalendar.cs:
23984           - Re-worked all bolded dates handling to match win32
23985         * ThemeWin32Classic.cs:
23986           - Fixed rendering with bolded dates
23987
23988 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
23989
23990         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
23991         - Horizontal scroolbar
23992         - Multicolumn
23993         - Fixes
23994
23995
23996 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
23997
23998         * MonthCalendar.cs:
23999           - Fix Usage of MaxSelectionCount from SelectionRange
24000           - Fixed Shift + Cursor Selection
24001           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
24002           - Fixed normal cursor selection to be compat with win32
24003           - Fixed Shift + Mouse Click selection
24004
24005 2004-11-24  Peter Bartok <pbartok@novell.com>
24006
24007         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
24008         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
24009         * XplatUIX11.cs:
24010           - CreatedKeyBoardMsg now updates keystate with Alt key
24011           - Added workaround for timer crash to CheckTimers, Jackson will
24012             develop a proper fix and check in later
24013           - Implemented DispatchMessage
24014           - Removed calling the native window proc from GetMessage (call
24015             now moved to DispatchMessage)
24016
24017         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
24018           the keydata (Fixes bug #69831)
24019
24020         * XplatUIWin32.cs:
24021           - (DispatchMessage): Switched to return IntPtr
24022           - Added DllImport for SetFocus
24023
24024 2004-11-24  Ravindra <rkumar@novell.com>
24025
24026         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
24027         background drawing.
24028         * ListViewItem.cs: Fixed various properties, calculations
24029         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
24030         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
24031         and some internal properties. Fixed MouseDown handler and Paint
24032         method.
24033
24034 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24035
24036         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
24037
24038 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24039
24040         * ContainerControl.cs: correct accidental check in of local changes
24041
24042 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24043
24044         * ThemeWin32Classic.cs:
24045                 - Fixed Drawing Last month in grid (sometimes not showing)
24046         * MonthCalendar.cs:
24047                 - Fixed title width calculation bug (makeing title small)
24048
24049 2004-11-23  Peter Bartok <pbartok@novell.com>
24050
24051         * XplatUIX11.cs:
24052           - Added generation of WM_MOUSEHOVER event
24053           - Added missing assignment of async_method atom
24054           - Fixed WM_ERASEBKGND; now only redraws the exposed area
24055
24056 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24057
24058         * ThemeWin32Classic.cs:
24059                 - Fixed Drawing of today circle when showtodaycircle not set
24060                 - fixed drawing of first and last month in the grid (gay dates)
24061         * MonthCalendar.cs:
24062                 - Fixed Drawing of today circle
24063                 - Fixed drawing of grady dates
24064                 - Fixed HitTest for today link when ShowToday set to false
24065                 - Fixed DefaultSize to obey ShowToday
24066
24067 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24068
24069         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
24070         * System.Windows.Forms/Theme.cs
24071         * MonthCalendar.cs: added for MonthCalendar
24072         * SelectionRange.cs: added for MonthCalendar
24073         * Day.cs: added for MonthCalendar: added for MonthCalendar
24074         * DateRangeEventArgs.cs: added for MonthCalendar
24075         * DateRangeEventHandler.cs: added for MonthCalendar
24076
24077 2004-11-22  Ravindra <rkumar@novell.com>
24078
24079         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
24080         property.
24081
24082 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
24083
24084         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
24085         event handler.
24086         
24087         * NumericUpDown.cs: Added new implementation.
24088         * UpDownBase.cs: Added new implementation.
24089
24090         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
24091         implementations.
24092         
24093         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
24094         implementations.
24095
24096         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
24097         methods.
24098
24099 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
24100
24101         * Timer.cs  (Dispose): Should call the base dispose when
24102         overriding.
24103
24104 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24105
24106         * ScrollBar.cs: updates thumb position when max, min or increment
24107         is changed
24108
24109 2004-11-21  Ravindra <rkumar@novell.com>
24110
24111         * ListView.cs: Implemented item selection, activation and
24112         column header style. Fixed properties to do a redraw, if
24113         required. Added support for MouseHover, DoubleClick, KeyDown
24114         and KeyUp event handling and some minor fixes.
24115         * ListViewItem.cs: Fixed constructor.
24116         * ThemeWin32Classic.cs: Improved drawing for ListView.
24117
24118 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24119
24120         * ThemeWin32Classic.cs: initial listbox drawing code
24121         * DrawMode.cs: new enumerator
24122         * ListControl.cs: stubbed class
24123         * ListBox.cs: initial implementation
24124         * Theme.cs: new methods definitions
24125         * SelectionMode.cs: new enumerator
24126
24127 2004-11-17  Peter Bartok  <pbartok@novell.com>
24128
24129         * XplatUIWin32.cs: Added double-click events to the class style
24130         * Control.cs (WndProc):
24131           - Added handling of click-count to MouseDown/ MouseUp events.
24132           - Added handling of middle and right mouse buttons
24133           - Removed old debug code
24134
24135 2004-11-17  Jackson Harper  <jackson@ximian.com>
24136
24137         * XplatUIX11.cs: Use the new Mono.Unix namespace.
24138
24139 2004-11-17  Ravindra <rkumar@novell.com>
24140
24141         * ListView.cs: Added event handling for MouseMove/Up/Down.
24142         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
24143         * ThemeWin32Classic.cs: We need to clear the graphics context and
24144         draw column header in a proper state.
24145
24146
24147 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
24148
24149         *  Menu.cs: fixes signature
24150
24151 2004-11-16  Peter Bartok  <pbartok@novell.com>
24152
24153         * XplatUIX11.cs (GetMessage): Implemented generation of
24154           double click mouse messages
24155
24156 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
24157
24158         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
24159         not by menu
24160
24161 2004-11-11  Peter Bartok  <pbartok@novell.com>
24162
24163         * HandleData.cs: Added Visible property
24164         * XplatUIX11.cs (IsVisible): Now uses Visible property from
24165           HandleData
24166         * XplatUIX11.cs: Removed old debug leftovers
24167         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
24168         * Control.cs (WndProc): Removed old debug leftovers,
24169           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
24170           needed WM_SIZE handling
24171
24172 2004-11-11  Jackson Harper  <jackson@ximian.com>
24173
24174         * OwnerDrawPropertyBag.cs:
24175         * TreeViewImageIndexConverter.cs: Initial implementation
24176
24177 2004-11-10  Jackson Harper  <jackson@ximian.com>
24178
24179         * ThemeWin32Classic.cs:
24180         * TabControl.cs: instead of moving tabs by the slider pos just
24181         start drawing at the tab that is offset by the slider. This way
24182         scrolling always moves by exactly one tab.
24183
24184 2004-11-10  Jackson Harper  <jackson@ximian.com>
24185
24186         * TabControl.cs: You can only scroll left when the slider has
24187         already ben moved right.
24188         
24189 2004-11-10  Jackson Harper  <jackson@ximian.com>
24190
24191         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
24192         the clip area.
24193         
24194 2004-11-10  Jackson Harper  <jackson@ximian.com>
24195
24196         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
24197         clip area.
24198         
24199 2004-11-09  Jackson Harper  <jackson@ximian.com>
24200
24201         * TabControl.cs (CalcXPos): New helper method so we can determine
24202         the proper place to start drawing vertical tabs.
24203         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
24204         
24205 2004-11-09  Jackson Harper  <jackson@ximian.com>
24206
24207         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
24208         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
24209         and Bottom, left and right are illegal values for this and
24210         multiline is enabled when the alignment is set to left or right.
24211         (DrawTab): Each alignment block should draw the text itself now
24212         because Left requires special love. Also add rendering for Left
24213         aligned tabs.
24214         
24215 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
24216
24217         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
24218         does not destroy the windows, removes debugging messages
24219
24220 2004-11-09  jba  <jba-mono@optusnet.com.au>
24221
24222         * ThemeWin32Classic.cs
24223         (DrawButtonBase): Fix verticle text rect clipping in windows
24224         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24225         rendering and incorrect text rect clipping
24226         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24227         rendering and incorrect text rect clipping
24228         
24229 2004-11-08  Jackson Harper  <jackson@ximian.com>
24230
24231         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
24232         bottom when they are bottom aligned so the bottoms of the tabs get
24233         displayed.
24234         * TabControl.cs (DropRow): Move rows up instead of down when the
24235         tab control is bottom aligned.
24236
24237 2004-11-08 13:59  pbartok
24238
24239         * XplatUIX11.cs:
24240           - Added handling for various window styles
24241           - Added handling for popup windows
24242           - Added SetTopmost handling
24243
24244 2004-11-08 13:55  pbartok
24245
24246         * XplatUIWin32.cs:
24247           - Added argument to SetTopmost method
24248           - Fixed broken ClientToScreen function
24249
24250 2004-11-08 13:53  pbartok
24251
24252         * XplatUIStructs.cs:
24253           - Added missing WS_EX styles
24254
24255 2004-11-08 13:53  pbartok
24256
24257         * XplatUI.cs, XplatUIDriver.cs:
24258           - Added argument to SetTopmost
24259
24260 2004-11-08 13:52  pbartok
24261
24262         * X11Structs.cs:
24263           - Added XSetWindowAttributes structure
24264           - Improved XWindowAttributes structure
24265           - Added SetWindowValuemask enum
24266           - Added window creation arguments enum
24267           - Added gravity enum
24268           - Added Motif hints structure
24269           - Added various Motif flags and enums
24270           - Added PropertyMode enum for property functions
24271
24272 2004-11-08 13:50  pbartok
24273
24274         * Form.cs:
24275           - Fixed arguments for updated SetTopmost method
24276
24277 2004-11-08 13:49  pbartok
24278
24279         * ToolTip.cs:
24280           - Fixed arguments for updated SetTopmost function
24281           - Fixed usage of PointToClient
24282
24283 2004-11-08 13:44  pbartok
24284
24285         * MenuAPI.cs:
24286           - Added Clipping of children and siblings
24287
24288 2004-11-08 13:41  pbartok
24289
24290         * MainMenu.cs:
24291           - Removed SetMenuBarWindow call. We do this in Form.cs
24292
24293 2004-11-08 13:40  jackson
24294
24295         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
24296           scrolling jimmi in the correct location with bottom aligned tabs
24297
24298 2004-11-08 13:36  pbartok
24299
24300         * ContainerControl.cs:
24301           - Implemented BindingContext
24302           - Implemented ParentForm
24303
24304 2004-11-08 12:46  jackson
24305
24306         * TabControl.cs: Put bottom rendered tabs in the right location
24307
24308 2004-11-08 07:15  jordi
24309
24310         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
24311           removes dead code
24312
24313 2004-11-05 17:30  jackson
24314
24315         * TabControl.cs: When selected tabs are expanded make sure they
24316           don't go beyond the edges of the tab control
24317
24318 2004-11-05 14:57  jackson
24319
24320         * TabControl.cs: Reset show_slider so if the control is resized to
24321           a size where it is no longer needed it's not displayed anymore
24322
24323 2004-11-05 13:16  jackson
24324
24325         * TabControl.cs: Make tab pages non visible when added to the
24326           control
24327
24328 2004-11-05 12:42  jackson
24329
24330         * TabControl.cs: Implement SizeMode.FillToRight
24331
24332 2004-11-05 12:16  jackson
24333
24334         * Control.cs: Do not call CreateHandle if the handle is already
24335           created
24336
24337 2004-11-05 11:46  jackson
24338
24339         * TabControl.cs: Remove superflous call to CalcTabRows
24340
24341 2004-11-05 09:07  jackson
24342
24343         * XplatUIX11.cs: Update for Mono.Posix changes
24344
24345 2004-11-05 07:00  ravindra
24346
24347         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
24348           scrolling.
24349
24350 2004-11-04 22:47  jba
24351
24352         * ThemeWin32Classic.cs:
24353           - Fix Button rendering for FlatStyle = Flat or Popup
24354           - Fix RadioButton and CheckBox rendering when Appearance = Button
24355             (normal and flatstyle).
24356           - Correct outer rectangle color when drawing focus rectangle
24357           - Adjust button bounds to be 1 px smaller when focused
24358           - Make button not draw sunken 3d border when pushed (windows compat)
24359           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
24360           - Offset the text in RadioButton and Checkbox when being rendered as
24361           a button.
24362           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
24363           radiobuttons
24364           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
24365           - Fixed disabled text rendering for normally rendered radiobuttons
24366
24367 2004-11-04 10:26  jackson
24368
24369         * TabControl.cs: Recalculate tab rows when resizing
24370
24371 2004-11-04 07:47  jordi
24372
24373         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
24374           collection completion, drawing issues, missing features
24375
24376 2004-11-04 05:03  ravindra
24377
24378         * ScrollBar.cs:
24379                 - We need to recalculate the Thumb area when
24380                 LargeChange/maximum/minimum values are changed.
24381           - We set the 'pos' in UpdatePos() method to minimum, if it's less
24382                 than minimum. This is required to handle the case if large_change is
24383                 more than max, and use LargeChange property instead of large_change
24384                 variable.
24385           - We return max+1 when large_change is more than max, like MS does.
24386
24387 2004-11-04 04:29  ravindra
24388
24389         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
24390                 - Changed default value signatures (prefixed all with ListView).
24391                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
24392                 ListView.
24393           - Fixed calculations for ListViewItem and implemented Clone()
24394           method.
24395
24396 2004-11-04 04:26  ravindra
24397
24398         * Theme.cs, ThemeWin32Classic.cs:
24399                 - Changed default ListView values signatures (prefixed all with
24400                 ListView).
24401           - Fixed default size values for VScrollBar and HScrollBar.
24402                 - Fixed DrawListViewItem method.
24403
24404 2004-11-04 04:05  ravindra
24405
24406         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
24407
24408 2004-11-04 04:04  ravindra
24409
24410         * ImageList.cs: Implemented the missing overload for Draw method.
24411
24412 2004-11-03 19:29  jackson
24413
24414         * TabControl.cs: Handle dropping rows on selection properly
24415
24416 2004-11-03 11:59  jackson
24417
24418         * TabControl.cs: remove debug code
24419
24420 2004-11-03 11:52  jackson
24421
24422         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
24423           the scrolly widgerywoo
24424
24425 2004-11-02 13:52  jackson
24426
24427         * TabControl.cs: Resize the tab pages and tabs when the tab control
24428           is resized
24429
24430 2004-11-02 13:40  jackson
24431
24432         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
24433           selected tab to the bottom
24434
24435 2004-11-02 13:39  jackson
24436
24437         * TabPage.cs: Store the tab pages row
24438
24439 2004-11-02 12:33  jordi
24440
24441         * MenuItem.cs: fixes handle creation
24442
24443 2004-11-02 11:42  jackson
24444
24445         * TabControl.cs: signature fix
24446
24447 2004-11-02 08:56  jackson
24448
24449         * TabControl.cs: Calculate whether the tab is on an edge properly.
24450           Remove top secret debugging code
24451
24452 2004-11-01 19:57  jackson
24453
24454         * TabControl.cs: Add click handling, and proper sizing
24455
24456 2004-11-01 19:47  jackson
24457
24458         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
24459           tab controls
24460
24461 2004-11-01 19:39  jackson
24462
24463         * TabPage.cs: add internal property to store the bounds of a tab
24464           page
24465
24466 2004-10-30 04:23  ravindra
24467
24468         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
24469           values.
24470
24471 2004-10-30 04:21  ravindra
24472
24473         * ListView.cs, ListViewItem.cs: Added support for scrolling and
24474           fixed calculations.
24475
24476 2004-10-30 03:06  pbartok
24477
24478         * XplatUIX11.cs:
24479           - Removed extension of DllImported libs
24480
24481 2004-10-29 09:55  jordi
24482
24483         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
24484           navigation, itemcollection completion, menu fixes
24485
24486 2004-10-27 22:58  pbartok
24487
24488         * XplatUIX11.cs:
24489           - Now throws a nice error message when no X display could be opened
24490
24491 2004-10-26 13:51  jordi
24492
24493         * ListView.cs: removes warning
24494
24495 2004-10-26 03:55  ravindra
24496
24497         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
24498           ThemeWin32Classic.cs: Some formatting for my last checkins.
24499
24500 2004-10-26 03:36  ravindra
24501
24502         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
24503           control and default values.
24504
24505 2004-10-26 03:35  ravindra
24506
24507         * Theme.cs: Added some default values for ListView control.
24508
24509 2004-10-26 03:33  ravindra
24510
24511         * ToolBar.cs: ToolBar should use the user specified button size, if
24512           there is any. Added a size_specified flag for the same.
24513
24514 2004-10-26 03:33  ravindra
24515
24516         * ColumnHeader.cs: Added some internal members and calculations for
24517           ColumnHeader.
24518
24519 2004-10-26 03:32  ravindra
24520
24521         * ListViewItem.cs: Calculations for ListViewItem.
24522
24523 2004-10-26 03:31  ravindra
24524
24525         * ListView.cs: Added some internal members and calculations for
24526           ListView.
24527
24528 2004-10-22 13:31  jordi
24529
24530         * MenuAPI.cs: speedup menus drawing
24531
24532 2004-10-22 13:16  jackson
24533
24534         * XplatUIX11.cs: Make sure to update exposed regions when adding an
24535           expose event
24536
24537 2004-10-22 11:49  jackson
24538
24539         * Control.cs: oops
24540
24541 2004-10-22 11:41  jackson
24542
24543         * Control.cs: Check to see if the window should have its background
24544           repainted by X when drawing.
24545
24546 2004-10-22 11:31  jackson
24547
24548         * XplatUIX11.cs: When invalidating areas only use XClearArea if
24549           clear is true, this way we do not get flicker from X repainting the
24550           background
24551
24552 2004-10-22 11:28  jackson
24553
24554         * XEventQueue.cs: Queue properly
24555
24556 2004-10-21 09:38  jackson
24557
24558         * XEventQueue.cs: Fix access modifier
24559
24560 2004-10-21 09:36  jackson
24561
24562         * XEventQueue.cs: Don't loose messages
24563
24564 2004-10-21 09:22  jackson
24565
24566         * XEventQueue.cs: Don't loose messages
24567
24568 2004-10-20 04:15  jordi
24569
24570         * BootMode.cs: enum need it by SystemInfo
24571
24572 2004-10-19 21:58  pbartok
24573
24574         * XplatUIWin32.cs:
24575           - Small sanity check
24576
24577 2004-10-19 21:56  pbartok
24578
24579         * Form.cs:
24580           - Added private FormParentWindow class which acts as the container
24581             for our form and as the non-client area where menus are drawn
24582           - Added/Moved required tie-ins to Jordi's menus
24583           - Fixed/Implemented the FormStartPosition functionality
24584
24585 2004-10-19 21:52  pbartok
24586
24587         * Control.cs:
24588           - Removed unneeded locals
24589           - Added code to all size and location properties to understand and
24590             deal with the parent container of Form
24591
24592 2004-10-19 21:33  pbartok
24593
24594         * Application.cs:
24595           - Fixed to deal with new Form subclasses for menus
24596
24597 2004-10-19 17:48  jackson
24598
24599         * XEventQueue.cs: commit correct version of file
24600
24601 2004-10-19 16:50  jackson
24602
24603         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
24604
24605 2004-10-19 16:15  jordi
24606
24607         * MenuAPI.cs: MenuBarCalcSize returns the height
24608
24609 2004-10-19 08:31  pbartok
24610
24611         * Control.cs:
24612           - Added missing call to PreProcessMessage before calling OnXXXKey
24613           methods
24614
24615 2004-10-19 00:04  ravindra
24616
24617         * ToolTip.cs: Fixed constructor.
24618
24619 2004-10-18 09:31  jordi
24620
24621         * MenuAPI.cs: menuitems in menubars do not have shortcuts
24622
24623 2004-10-18 09:26  jordi
24624
24625         * MenuItem.cs: fixes MenuItem class signature
24626
24627 2004-10-18 08:56  jordi
24628
24629         * MenuAPI.cs: prevents windows from showing in the taskbar
24630
24631 2004-10-18 00:28  ravindra
24632
24633         * ToolTip.cs: Suppressed a warning message.
24634
24635 2004-10-18 00:27  ravindra
24636
24637         * Control.cs: Default value of visible property must be true.
24638
24639 2004-10-17 23:19  pbartok
24640
24641         * ToolTip.cs:
24642           - Complete implementation
24643
24644 2004-10-17 23:19  pbartok
24645
24646         * XplatUIX11.cs:
24647           - Added EnableWindow method
24648           - Added SetModal stub
24649           - Added generation of WM_ACTIVATE message (still needs testing)
24650           - Added SetTopMost stub
24651           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
24652
24653 2004-10-17 23:17  pbartok
24654
24655         * XplatUIWin32.cs:
24656           - Removed VirtualKeys to XplatUIStructs
24657           - Implemented SetTopMost method
24658           - Implemented EnableWindow method
24659           - Bugfix in ScreenToClient()
24660           - Bugfixes in ClientToScreen()
24661
24662 2004-10-17 22:51  pbartok
24663
24664         * XplatUIStructs.cs:
24665           - Added WS_EX styles to WindowStyles enumeration
24666
24667 2004-10-17 22:50  pbartok
24668
24669         * XplatUI.cs, XplatUIDriver.cs:
24670           - Added method for enabling/disabling windows
24671           - Added method for setting window modality
24672           - Added method for setting topmost window
24673
24674 2004-10-17 22:49  pbartok
24675
24676         * ThemeWin32Classic.cs:
24677           - Added ToolTip drawing code
24678
24679 2004-10-17 22:49  pbartok
24680
24681         * Theme.cs:
24682           - Added ToolTip abstracts
24683
24684 2004-10-17 22:47  pbartok
24685
24686         * Form.cs:
24687           - Fixed Form.ControlCollection to handle owner relations
24688           - Added Owner/OwnedForms handling
24689           - Implemented Z-Ordering for owned forms
24690           - Removed unneeded private overload of ShowDialog
24691           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
24692             so I hope)
24693           - Fixed Close(), had wrong default
24694           - Added firing of OnLoad event
24695           - Added some commented out debug code for Ownership handling
24696
24697 2004-10-17 22:16  pbartok
24698
24699         * Control.cs:
24700           - Fixed/implemented flat list of controls
24701
24702 2004-10-17 22:14  pbartok
24703
24704         * Application.cs:
24705           - Added code to simulate modal dialogs on Win32
24706
24707 2004-10-17 16:11  jordi
24708
24709         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
24710           mouse event
24711
24712 2004-10-17 13:39  jordi
24713
24714         * MenuAPI.cs: menu drawing fixes
24715
24716 2004-10-15 09:10  ravindra
24717
24718         * StructFormat.cs: General Enum.
24719
24720 2004-10-15 09:09  ravindra
24721
24722         * SizeGripStyle.cs: Enum for Form.
24723
24724 2004-10-15 09:08  ravindra
24725
24726         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
24727           in Theme for ListView.
24728
24729 2004-10-15 09:06  ravindra
24730
24731         * ColumnHeader.cs: Flushing some formatting changes.
24732
24733 2004-10-15 09:05  ravindra
24734
24735         * ListViewItem.cs: Implemented GetBounds method and fixed coding
24736           style.
24737
24738 2004-10-15 09:03  ravindra
24739
24740         * ListView.cs: Implemented Paint method and fixed coding style.
24741
24742 2004-10-15 07:34  jordi
24743
24744         * MenuAPI.cs: fix for X11
24745
24746 2004-10-15 07:32  ravindra
24747
24748         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
24749                 - Renamed Paint() method to Draw() for clarity. Also, moved
24750                 DrawImage() to OnPaint().
24751
24752 2004-10-15 07:25  ravindra
24753
24754         * CheckBox.cs, RadioButton.cs:
24755                 - Removed Redraw (), we get it from ButtonBase.
24756                 - Implemented Paint (), to do class specific painting.
24757
24758 2004-10-15 07:16  ravindra
24759
24760         * ButtonBase.cs:
24761                 - Redraw () is not virtual now.
24762                 - Added an internal virtual method Paint (), so that
24763                 derived classes can do their painting on their own.
24764                 - Modified OnPaint () to call Paint ().
24765
24766 2004-10-15 06:43  jordi
24767
24768         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
24769           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
24770
24771 2004-10-15 00:30  ravindra
24772
24773         * MessageBox.cs:
24774                 - MessageBox on windows does not have min/max buttons.
24775                 This change in CreateParams fixes this on Windows. We
24776                 still need to implement this windowstyle behavior in
24777                 our X11 driver.
24778
24779 2004-10-14 05:14  ravindra
24780
24781         * ToolBar.cs:
24782                 - Changed Redraw () to do a Refresh () always.
24783                 - Fixed the MouseMove event handling when mouse is pressed,
24784                 ie drag event handling.
24785                 - Replaced the usage of ToolBarButton.Pressed property to
24786                 ToolBarButton.pressed internal variable.
24787
24788 2004-10-14 05:10  ravindra
24789
24790         * ToolBarButton.cs:
24791                 - Added an internal member 'inside' to handle mouse move
24792                 with mouse pressed ie mouse drag event.
24793                 - Changed 'Pressed' property to return true only when
24794                 'inside' and 'pressed' are both true.
24795                 - Some coding style love.
24796
24797 2004-10-14 00:17  ravindra
24798
24799         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
24800           public method.
24801
24802 2004-10-14 00:15  ravindra
24803
24804         * ButtonBase.cs: Redraw () related improvements.
24805
24806 2004-10-14 00:14  ravindra
24807
24808         * MessageBox.cs: Moved InitFormSize () out of Paint method and
24809           removed unnecessary calls to Button.Show () method.
24810
24811 2004-10-13 17:50  pbartok
24812
24813         * XplatUIX11.cs:
24814           - Formatting fix
24815           - Removed destroying of window until we solve the problem of X
24816             destroying the window before us on shutdown
24817
24818 2004-10-13 16:32  pbartok
24819
24820         * ButtonBase.cs:
24821           - Now Redraws on MouseUp for FlatStyle Flat and Popup
24822
24823 2004-10-13 14:18  pbartok
24824
24825         * XplatUIX11.cs:
24826           - Added code to destroy the X window
24827
24828 2004-10-13 14:18  pbartok
24829
24830         * XplatUIWin32.cs:
24831           - Added code to destroy a window
24832
24833 2004-10-13 14:12  pbartok
24834
24835         * ButtonBase.cs:
24836           - Added the Redraw on Resize that got dropped in the last rev
24837
24838 2004-10-13 09:06  pbartok
24839
24840         * ThemeWin32Classic.cs:
24841           - Path from John BouAntoun:
24842             * Fix check rendering (centre correctly for normal style, offset
24843               correctly for FlatStyle).
24844             * Fix border color usage (use backcolor) for FlatStyle.Popup
24845             * Use checkbox.Capture instead of checkbox.is_pressed when
24846               rendering flatstyle states.
24847
24848 2004-10-12 21:48  pbartok
24849
24850         * ThemeWin32Classic.cs:
24851           - Removed all occurences of SystemColors and replaced them with the
24852             matching theme color
24853
24854 2004-10-12 21:41  pbartok
24855
24856         * ThemeWin32Classic.cs:
24857           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
24858             him using the function for flatstyle drawing
24859           - Changed functions to use the new version of CPDrawBorder3D
24860
24861 2004-10-12 21:15  pbartok
24862
24863         * ControlPaint.cs:
24864           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
24865             match MS documentation. They need to return defined colors if the
24866             passed color matches the configured control color. Thanks to John
24867             BouAntoun for pointing this out.
24868
24869 2004-10-12 20:57  pbartok
24870
24871         * Control.cs:
24872           - Fix from John BouAntoun: Raise ForeColorChanged event when text
24873             color is changed
24874
24875 2004-10-12 20:46  pbartok
24876
24877         * CheckBox.cs:
24878           - Fix from John BouAntoun: Now properly sets the Appearance property
24879
24880 2004-10-12 20:45  pbartok
24881
24882         * ThemeWin32Classic.cs:
24883           - Fixes from John BouAntoun: now handles forecolors and backcolors
24884             for flatstyle rendered controls much better; It also fixes normal
24885             checkbox rendering when pushed or disabled.
24886
24887 2004-10-08 02:50  jordi
24888
24889         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
24890           work
24891
24892 2004-10-07 08:56  jordi
24893
24894         * ThemeWin32Classic.cs: Removes deletion of cached brushes
24895
24896 2004-10-06 03:59  jordi
24897
24898         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
24899           XplatUIWin32.cs: removes warnings from compilation
24900
24901 2004-10-05 12:23  jackson
24902
24903         * RadioButton.cs: Fix ctor
24904
24905 2004-10-05 11:10  pbartok
24906
24907         * MessageBox.cs:
24908           - Partial implementation by Benjamin Dasnois
24909
24910 2004-10-05 10:15  jackson
24911
24912         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
24913           by John BouAntoun
24914
24915 2004-10-05 03:07  ravindra
24916
24917         * ToolBar.cs:
24918                 - Removed a private method, Draw ().
24919                 - Fixed the ButtonDropDown event handling.
24920                 - Fixed MouseMove event handling.
24921
24922 2004-10-05 03:04  ravindra
24923
24924         * ThemeWin32Classic.cs:
24925                 - Added DrawListView method and ListViewDefaultSize property.
24926                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
24927                 - Changed DOS style CRLF to Unix format (dos2unix).
24928
24929 2004-10-05 03:03  ravindra
24930
24931         * Theme.cs:
24932                 - Added DrawListView method and ListViewDefaultSize property.
24933
24934 2004-10-05 02:42  ravindra
24935
24936         * ToolBarButton.cs: Added an internal member dd_pressed to handle
24937           clicks on DropDown arrow.
24938
24939 2004-10-04 22:56  jackson
24940
24941         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
24942           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
24943           Control handle the buffers, derived classes should not have to
24944           CreateBuffers themselves.
24945
24946 2004-10-04 21:20  jackson
24947
24948         * StatusBar.cs: The control handles resizing the buffers now.
24949
24950 2004-10-04 21:18  jackson
24951
24952         * Control.cs: When resizing the buffers should be invalidated. This
24953           should be handled in Control not in derived classes.
24954
24955 2004-10-04 14:45  jackson
24956
24957         * TabPage.cs: oops
24958
24959 2004-10-04 02:14  pbartok
24960
24961         * LeftRightAlignment.cs:
24962           - Initial check-in
24963
24964 2004-10-04 01:09  jordi
24965
24966         * ThemeWin32Classic.cs: fixes right button position causing right
24967           button not showing on horizontal scrollbars
24968
24969 2004-10-02 13:12  pbartok
24970
24971         * XplatUIX11.cs:
24972           - Simplified the Invalidate method by using an X call instead of
24973             generating the expose ourselves
24974           - Added an expose when the window background is changed
24975           - Implemented ClientToScreen method
24976
24977 2004-10-02 13:08  pbartok
24978
24979         * XplatUIWin32.cs:
24980           - Added Win32EnableWindow method (test for implementing modal
24981           dialogs)
24982           - Added ClientToScreen method and imports
24983
24984 2004-10-02 13:07  pbartok
24985
24986         * XplatUI.cs, XplatUIDriver.cs:
24987           - Added ClientToScreen coordinate translation method
24988
24989 2004-10-02 13:06  pbartok
24990
24991         * KeyPressEventArgs.cs:
24992           - Fixed access level for constructor
24993
24994 2004-10-02 13:06  pbartok
24995
24996         * NativeWindow.cs:
24997           - Changed access level for the window_collection hash table
24998
24999 2004-10-02 13:05  pbartok
25000
25001         * Form.cs:
25002           - Added KeyPreview property
25003           - Added Menu property (still incomplete, pending Jordi's menu work)
25004           - Implemented ProcessCmdKey
25005           - Implemented ProcessDialogKey
25006           - Implemented ProcessKeyPreview
25007
25008 2004-10-02 13:02  pbartok
25009
25010         * Control.cs:
25011           - Added private method to get the Control object from the window
25012           handle
25013           - Implemented ContextMenu property
25014           - Implemented PointToScreen
25015           - Implemented PreProcessMessage
25016           - Implemented IsInputChar
25017           - Implemented IsInputKey
25018           - Implemented ProcessCmdKey
25019           - Completed ProcessKeyEventArgs
25020           - Fixed message loop to call the proper chain of functions on key
25021           events
25022           - Implemented ProcessDialogChar
25023           - Implemented ProcessDialogKey
25024           - Implemented ProcessKeyMessage
25025           - Implemented ProcessKeyPreview
25026           - Added RaiseDragEvent stub (MS internal method)
25027           - Added RaiseKeyEvent stub (MS internal method)
25028           - Added RaiseMouseEvent stub (MS Internal method)
25029           - Added RaisePaintEvent stub (MS Internal method)
25030           - Added ResetMouseEventArgs stub (MS Internal method)
25031           - Implemented RtlTranslateAlignment
25032           - Implemented RtlTranslateContent
25033           - Implemented RtlTranslateHorizontal
25034           - Implemented RtlTranslateLeftRight
25035           - Added generation of KeyPress event
25036
25037 2004-10-02 05:57  ravindra
25038
25039         * ListViewItem.cs: Added attributes.
25040
25041 2004-10-02 05:32  ravindra
25042
25043         * ListView.cs: Added attributes.
25044
25045 2004-10-01 11:53  jackson
25046
25047         * Form.cs: Implement the Close method so work on MessageBox can
25048           continue.
25049
25050 2004-09-30 14:06  pbartok
25051
25052         * XplatUIX11.cs:
25053           - Bug fixes
25054
25055 2004-09-30 11:34  jackson
25056
25057         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
25058
25059 2004-09-30 07:26  ravindra
25060
25061         * ListViewItemConverter.cs: Converter for ListViewItem.
25062
25063 2004-09-30 07:26  ravindra
25064
25065         * SortOrder.cs: Enum for ListView control.
25066
25067 2004-09-30 07:25  ravindra
25068
25069         * ColumnHeader.cs: Supporting class for ListView control.
25070
25071 2004-09-30 07:24  ravindra
25072
25073         * ListView.cs, ListViewItem.cs: Initial implementation.
25074
25075 2004-09-30 07:20  ravindra
25076
25077         * ItemActivation.cs: Enum for ListView Control.
25078
25079 2004-09-29 20:29  pbartok
25080
25081         * XplatUIX11.cs:
25082           - Added lookup of pixel value for background color; tries to get a
25083             color 'close' to the requested color, it avoids having to create a
25084             colormap.  Depending on the display this could mean the used color
25085             is slightly off the desired color. Might have to change it to a more
25086             resource intensive colormap approach, but it will work as a
25087           workaround to avoid red screens.
25088
25089 2004-09-29 14:27  jackson
25090
25091         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
25092
25093 2004-09-28 12:44  pbartok
25094
25095         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
25096           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
25097           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
25098           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
25099           TrackBar.cs, VScrollBar.cs:
25100           - Streamlined Theme interfaces:
25101             * Each DrawXXX method for a control now is passed the object for
25102               the control to be drawn in order to allow accessing any state the
25103               theme might require
25104
25105             * ControlPaint methods for the theme now have a CP prefix to avoid
25106               name clashes with the Draw methods for controls
25107
25108             * Every control now retrieves it's DefaultSize from the current
25109             theme
25110
25111 2004-09-28 12:17  jackson
25112
25113         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
25114           drawing
25115
25116 2004-09-24 14:57  jackson
25117
25118         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
25119           Gives us a nice little performance boost.
25120
25121 2004-09-24 12:02  jackson
25122
25123         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
25124           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
25125           Control and supporting classes. Initial checkin
25126
25127 2004-09-23 13:08  jackson
25128
25129         * Form.cs: Temp build fixage
25130
25131 2004-09-23 01:39  ravindra
25132
25133         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
25134           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
25135           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
25136           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
25137           EventHandlers needed by ListView Control.
25138
25139 2004-09-22 14:12  pbartok
25140
25141         * ScrollableControl.cs:
25142           - Implemented DockPadding property
25143           - Implemented AutoScroll property
25144           - Implemented AutoScrollMargin property
25145           - Implemented AutoScrollMinSize property
25146           - Implemented AutoScrollPosition property
25147           - Implemented DisplayRectangle property (still incomplete)
25148           - Implemented CreateParams property
25149           - Implemented HScroll property
25150           - Implemented VScroll property
25151           - Implemented OnVisibleChanged property
25152
25153 2004-09-22 14:09  pbartok
25154
25155         * Form.cs:
25156           - Added Form.ControllCollection class
25157           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
25158             RemoveOwnedForm (still incomplete, missing on-top and common
25159             minimize/maximize behaviour)
25160           - Added StartPosition property (still incomplete, does not use when
25161             creating the form)
25162           - Added ShowDialog() methods (still incomplete, missing forcing the
25163             dialog modal)
25164
25165 2004-09-22 14:05  pbartok
25166
25167         * Application.cs:
25168           - Added message loop for modal dialogs
25169
25170 2004-09-22 14:02  pbartok
25171
25172         * GroupBox.cs:
25173           - Fixed wrong types for events
25174
25175 2004-09-22 14:00  pbartok
25176
25177         * Shortcut.cs, FormWindowState.cs:
25178           - Fixed wrong values
25179
25180 2004-09-22 12:01  jackson
25181
25182         * Control.cs: Text is never null
25183
25184 2004-09-20 22:14  pbartok
25185
25186         * XplatUIWin32.cs:
25187           - Fixed accessibility level for Idle handler
25188
25189 2004-09-20 18:54  jackson
25190
25191         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25192           XplatUIX11.cs: New message loop that uses poll so we don't get a
25193           busy loop
25194
25195 2004-09-17 10:43  pbartok
25196
25197         * ScrollBar.cs:
25198           - Fixed behaviour of arrow buttons. Now properly behaves like
25199             Buttons (and like Microsoft's scrollbar arrow buttons)
25200
25201 2004-09-17 10:14  pbartok
25202
25203         * ScrollBar.cs:
25204           - Added missing release of keyboard/mouse capture
25205
25206 2004-09-17 06:18  jordi
25207
25208         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
25209           Theme.cs: Very early menu support
25210
25211 2004-09-16 17:45  pbartok
25212
25213         * XplatUIWin32.cs:
25214           - Fixed sending a window to the front
25215           - Added overload for SetWindowPos to avoid casting
25216
25217 2004-09-16 17:44  pbartok
25218
25219         * Control.cs:
25220           - Added SendToBack and BringToFront methods
25221
25222 2004-09-16 07:00  ravindra
25223
25224         * Copyright: Added Novell URL.
25225
25226 2004-09-16 07:00  ravindra
25227
25228         * ToolBar.cs: Invalidate should be done before redrawing.
25229
25230 2004-09-15 21:19  ravindra
25231
25232         * ColumnHeaderStyle.cs: Enum for ListView Control.
25233
25234 2004-09-15 21:18  ravindra
25235
25236         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
25237           ListView Control.
25238
25239 2004-09-13 18:26  jackson
25240
25241         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
25242           properly
25243
25244 2004-09-13 18:13  jackson
25245
25246         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
25247           a second thread and post messages into the main threads message
25248           queue. This makes timing much more consistent. Both win2K and XP
25249           have a minimum timer value of 15 milliseconds, so we now do this
25250           too.
25251
25252 2004-09-13 15:18  pbartok
25253
25254         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25255           XplatUIX11.cs:
25256           - Added Z-Ordering methods
25257
25258 2004-09-13 10:56  pbartok
25259
25260         * Form.cs:
25261           - Fixed #region names
25262           - Moved properties and methods into their proper #regions
25263
25264 2004-09-13 10:51  pbartok
25265
25266         * Form.cs:
25267           - Added Accept and CancelButton properties
25268           - Added ProcessDialogKey() method
25269
25270 2004-09-13 08:18  pbartok
25271
25272         * IWindowTarget.cs:
25273           - Initial check-in
25274
25275 2004-09-10 21:50  pbartok
25276
25277         * Control.cs:
25278           - Added DoDragDrop() [incomplete]
25279           - Properly implemented 'Visible' handling
25280           - Added SetVisibleCore()
25281           - Implemented FindChildAtPoint()
25282           - Implemented GetContainerControl()
25283           - Implemented Hide()
25284
25285 2004-09-10 19:28  pbartok
25286
25287         * Control.cs:
25288           - Moved methods into their appropriate #regions
25289           - Reordered methods within regions alphabetically
25290
25291 2004-09-10 18:57  pbartok
25292
25293         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25294           - Added method to retrieve text from window
25295
25296 2004-09-10 18:56  pbartok
25297
25298         * Control.cs:
25299           - Moved some internal functions into the internal region
25300           - Implemented FontHeight
25301           - Implemented RenderRightToLeft
25302           - Implemented ResizeRedraw
25303           - Implemented ShowFocusCues
25304           - Implemented ShowKeyboardCues
25305           - Implemented FromChildHandle
25306           - Implemented FromHandle
25307           - Implemented IsMnemonic
25308           - Implemented ReflectMessage
25309           - All public and protected Static Methods are now complete
25310
25311 2004-09-10 16:54  pbartok
25312
25313         * Control.cs:
25314           - Implemented remaining missing public instance properties
25315           - Alphabetized some out of order properties
25316
25317 2004-09-10 05:51  ravindra
25318
25319         * PictureBox.cs: Added a check for null image.
25320
25321 2004-09-10 00:59  jordi
25322
25323         * GroupBox.cs: remove cvs tag
25324
25325 2004-09-09 05:25  ravindra
25326
25327         * ToolBar.cs: Make redraw accessible from ToolBarButton.
25328
25329 2004-09-09 05:23  ravindra
25330
25331         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
25332           parent redraw.
25333
25334 2004-09-09 02:28  pbartok
25335
25336         * ThemeWin32Classic.cs:
25337           - Improve disabled string look
25338
25339 2004-09-09 01:15  jordi
25340
25341         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
25342           args and handler
25343
25344 2004-09-08 23:56  ravindra
25345
25346         * ItemBoundsPortion.cs: It's enum, not a class!
25347
25348 2004-09-08 23:47  ravindra
25349
25350         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
25351           Enums for Form.
25352
25353 2004-09-08 21:13  ravindra
25354
25355         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
25356           ListView control.
25357
25358 2004-09-08 21:03  ravindra
25359
25360         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
25361           avoid crash.
25362
25363 2004-09-08 21:01  ravindra
25364
25365         * ScrollableControl.cs: Removed unreachable code.
25366
25367 2004-09-08 06:45  jordi
25368
25369         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
25370
25371 2004-09-08 01:00  jackson
25372
25373         * XplatUIX11.cs: Only run the timers when updating the message
25374           queue. This effectively gives X messages a higher priority then
25375           timer messages. Timers still need love though
25376
25377 2004-09-07 14:01  jackson
25378
25379         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
25380           this for us and the handle is no longer valid.
25381
25382 2004-09-07 13:59  jackson
25383
25384         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
25385           loop that manages to not crash. TODO: Add poll and cleanup timers
25386
25387 2004-09-07 11:12  jordi
25388
25389         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
25390
25391 2004-09-07 03:40  jordi
25392
25393         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
25394           fixes, methods, multiple links
25395
25396 2004-09-06 06:55  jordi
25397
25398         * Control.cs: Caches ClientRectangle rectangle value
25399
25400 2004-09-05 02:03  jordi
25401
25402         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
25403           certain situations
25404
25405 2004-09-04 11:10  jordi
25406
25407         * Label.cs: Refresh when font changed
25408
25409 2004-09-02 16:24  pbartok
25410
25411         * Control.cs:
25412           - Added sanity check to creation of double buffer bitmap
25413
25414 2004-09-02 16:24  pbartok
25415
25416         * ButtonBase.cs:
25417           - Fixed selection of text color
25418           - Fixed handling of resize event; now properly recreates double
25419             buffering bitmap
25420           - Added missing assignment of TextAlignment
25421           - Added proper default for TextAlignment
25422
25423 2004-09-02 14:26  pbartok
25424
25425         * RadioButton.cs:
25426           - Added missing RadioButton.RadioButtonAccessibleObject class
25427
25428 2004-09-02 14:26  pbartok
25429
25430         * Control.cs:
25431           - Added missing Control.ControlAccessibleObject class
25432           - Started to implement Select()ion mechanisms, still very incomplete
25433
25434 2004-09-02 14:25  pbartok
25435
25436         * AccessibleObject.cs:
25437           - Added missing methods
25438
25439 2004-09-02 14:23  pbartok
25440
25441         * AccessibleNavigation.cs, AccessibleSelection.cs:
25442           - Initial check-in
25443
25444 2004-09-02 10:32  jordi
25445
25446         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
25447           pool for pens, brushes, and hatchbruses
25448
25449 2004-09-01 15:30  jackson
25450
25451         * StatusBar.cs: Fix typo
25452
25453 2004-09-01 14:44  pbartok
25454
25455         * RadioButton.cs:
25456           - Fixed state
25457
25458 2004-09-01 14:39  pbartok
25459
25460         * Button.cs, RadioButton.cs:
25461           - Functional initial check-in
25462
25463 2004-09-01 14:01  pbartok
25464
25465         * CheckBox.cs:
25466           - Added missing default
25467           - Added missing region mark
25468
25469 2004-09-01 09:10  jordi
25470
25471         * Label.cs: fixes method signatures, new methods, events, fixes
25472           autosize
25473
25474 2004-09-01 07:19  jordi
25475
25476         * Control.cs: Init string variables with an empty object
25477
25478 2004-09-01 04:20  jordi
25479
25480         * Control.cs: fires OnFontChanged event
25481
25482 2004-08-31 20:07  pbartok
25483
25484         * ButtonBase.cs:
25485           - Enabled display of strings
25486
25487 2004-08-31 20:05  pbartok
25488
25489         * Form.cs:
25490           - Added (partial) implementation of DialogResult; rest needs to be
25491             implemented when the modal loop code is done
25492
25493 2004-08-31 19:55  pbartok
25494
25495         * CheckBox.cs:
25496           - Fixed to match the removal of the needs_redraw concept
25497
25498 2004-08-31 19:55  pbartok
25499
25500         * ButtonBase.cs:
25501           - Removed the rather odd split between 'needs redraw' and redrawing
25502           - Now handles the events that require regeneration (ambient
25503             properties and size)
25504
25505 2004-08-31 19:41  pbartok
25506
25507         * Control.cs:
25508           - Added firing of BackColorChanged event
25509           - Added TopLevelControl property
25510           - Fixed handling of WM_ERASEBKGRND message
25511
25512 2004-08-31 12:49  pbartok
25513
25514         * ButtonBase.cs:
25515           - Removed debug
25516           - Minor fixes
25517
25518 2004-08-31 12:48  pbartok
25519
25520         * CheckBox.cs:
25521           - Finished (famous last words)
25522
25523 2004-08-31 04:35  jordi
25524
25525         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
25526           scrolling bugs, adds new methods
25527
25528 2004-08-30 14:42  pbartok
25529
25530         * CheckBox.cs:
25531           - Implemented CheckBox drawing code
25532
25533 2004-08-30 14:42  pbartok
25534
25535         * ButtonBase.cs:
25536           - Made Redraw() and CheckRedraw() virtual
25537           - Improved mouse up/down/move logic to properly track buttons
25538
25539 2004-08-30 09:44  pbartok
25540
25541         * CheckBox.cs:
25542           - Updated to fix broken build. Not complete yet.
25543
25544 2004-08-30 09:28  pbartok
25545
25546         * CheckState.cs:
25547           - Initial checkin
25548
25549 2004-08-30 09:17  pbartok
25550
25551         * Appearance.cs:
25552           - Initial check-in
25553
25554 2004-08-27 16:12  ravindra
25555
25556         * ToolBarButton.cs: Added TypeConverter attribute.
25557
25558 2004-08-27 16:07  ravindra
25559
25560         * ImageIndexConverter.cs: Implemented.
25561
25562 2004-08-27 14:17  pbartok
25563
25564         * Control.cs:
25565           - Removed unneeded stack vars
25566           - First attempt to fix sizing issues when layout is suspended
25567
25568 2004-08-25 15:35  jordi
25569
25570         * ScrollBar.cs: more fixes to scrollbar
25571
25572 2004-08-25 14:04  ravindra
25573
25574         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
25575           Added the missing divider code and grip for ToolBar Control.
25576
25577 2004-08-25 13:20  pbartok
25578
25579         * Control.cs:
25580           - Control now properly passes the ambient background color to child
25581             controls
25582
25583 2004-08-25 13:20  jordi
25584
25585         * ScrollBar.cs: small bug fix regarding bar position
25586
25587 2004-08-25 12:33  pbartok
25588
25589         * Timer.cs:
25590           - Now only calls SetTimer or KillTimer if the enabled state has
25591           changed
25592
25593 2004-08-25 12:33  pbartok
25594
25595         * XplatUIWin32.cs:
25596           - Fixed timer handling, now seems to work
25597           - Improved error message for window creation
25598
25599 2004-08-25 12:32  pbartok
25600
25601         * Control.cs:
25602           - Fixed generation of MouseUp message
25603
25604 2004-08-25 12:29  jordi
25605
25606         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
25607           and fixes for progressbar
25608
25609 2004-08-24 18:43  ravindra
25610
25611         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
25612           in ToolBar control.
25613
25614 2004-08-24 17:15  pbartok
25615
25616         * Panel.cs:
25617           - Added #region
25618           - Added missing events
25619           - Alphabetized
25620
25621 2004-08-24 17:14  pbartok
25622
25623         * StatusBar.cs, PictureBox.cs:
25624           - Now uses Control's CreateParams
25625
25626 2004-08-24 16:36  pbartok
25627
25628         * XplatUIX11.cs:
25629           - Fixed background color handling
25630           - Fixed sending of enter/leave events on a grab
25631
25632 2004-08-24 16:35  pbartok
25633
25634         * X11Structs.cs:
25635           - Refined definitions for CrossingEvent
25636
25637 2004-08-24 12:37  jordi
25638
25639         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
25640           formmating, methods signature, and adds missing events
25641
25642 2004-08-24 12:24  jordi
25643
25644         * Control.cs: fire OnEnabledChanged event
25645
25646 2004-08-24 11:17  pbartok
25647
25648         * XplatUIWin32.cs:
25649           - Implemented SetTimer() and KillTimer()
25650
25651 2004-08-24 11:16  pbartok
25652
25653         * XplatUIX11.cs:
25654           - Now uses Remove instead of Add to kill the timer
25655
25656 2004-08-24 10:16  jackson
25657
25658         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
25659           picture boxes in the theme now. Draw picture box borders and obey
25660           sizing modes
25661
25662 2004-08-24 05:49  jackson
25663
25664         * Timer.cs: Remove top secret debugging code
25665
25666 2004-08-24 05:34  jackson
25667
25668         * PictureBox.cs: Temp hack to make picture boxes draw their full
25669           image
25670
25671 2004-08-24 05:29  jackson
25672
25673         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25674           XplatUIX11.cs: Move timers to the driver level. On X they are
25675           queued by the driver and checked on idle.
25676
25677 2004-08-24 01:07  jackson
25678
25679         * XplatUIX11.cs: Use a queue for async messages instead of passing
25680           them as ClientMessages since that was totally broken. Also simply
25681           check for events and return an idle message if none are found. This
25682           gives us an idle handler, and prevents deadlocking when no messages
25683           are in the queue.
25684
25685 2004-08-23 18:19  ravindra
25686
25687         * XplatUIWin32.cs: Removed the unwanted destructor.
25688
25689 2004-08-23 17:27  pbartok
25690
25691         * ButtonBase.cs:
25692           - Finishing touches. Works now, just needs some optimizations.
25693
25694 2004-08-23 16:53  jordi
25695
25696         * ScrollBar.cs: small fix
25697
25698 2004-08-23 16:45  pbartok
25699
25700         * Application.cs:
25701           - Removed debug output
25702           - Simplifications
25703
25704 2004-08-23 16:43  jordi
25705
25706         * ScrollBar.cs: [no log message]
25707
25708 2004-08-23 16:10  pbartok
25709
25710         * Form.cs:
25711           - Fixed handling of WM_CLOSE message
25712           - Removed debug output
25713
25714 2004-08-23 16:09  pbartok
25715
25716         * Application.cs:
25717           - Added handling of Idle event
25718           - Added handling of form closing
25719           - Fixed reporting of MessageLoop property
25720           - Removed some unneeded code, should provide a bit of a speedup
25721
25722 2004-08-23 15:22  pbartok
25723
25724         * Control.cs:
25725           - Added InitLayout() method
25726           - Added code to properly perform layout when Anchor or Dock property
25727             is changed
25728           - Changed 'interpretation' of ResumeLayout. MS seems to have a
25729             LAMESPEC, tried to do it in a way that makes sense
25730
25731 2004-08-23 14:10  jordi
25732
25733         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
25734           properties and methods
25735
25736 2004-08-23 13:55  pbartok
25737
25738         * Control.cs:
25739           - Properly fixed Jordi's last fix
25740           - Now uses Cursor's Position property instead of calling XplatUI
25741           directly
25742
25743 2004-08-23 13:44  jordi
25744
25745         * PaintEventHandler.cs: Adding missing attribute
25746
25747 2004-08-23 13:39  pbartok
25748
25749         * Cursor.cs:
25750           - Implemented Position property
25751
25752 2004-08-23 13:39  pbartok
25753
25754         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25755           - Added method to move mouse cursor
25756
25757 2004-08-23 13:39  pbartok
25758
25759         * XplatUIX11.cs:
25760           - Fixed setting of background color
25761           - Added method to move mouse cursor
25762
25763 2004-08-23 13:16  jordi
25764
25765         * Control.cs: avoids null exception
25766
25767 2004-08-22 17:46  jackson
25768
25769         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
25770           PictureBox
25771
25772 2004-08-22 17:40  jackson
25773
25774         * XplatUIX11.cs: Add some missing locks
25775
25776 2004-08-22 15:10  pbartok
25777
25778         * Control.cs, Form.cs:
25779           - Removed OverlappedWindow style from Control, instead it's default
25780             now is child
25781           - Made form windows OverlappedWindow by default
25782
25783 2004-08-22 13:34  jackson
25784
25785         * ScrollBar.cs: Update the position through the Value property so
25786           the OnValueChanged event is raised.
25787
25788 2004-08-22 12:04  pbartok
25789
25790         * SWF.csproj:
25791           - Added Cursor.cs and UserControl.cs
25792
25793 2004-08-22 12:03  pbartok
25794
25795         * Cursor.cs:
25796           - Started implementation, not usable yet
25797
25798 2004-08-22 12:00  pbartok
25799
25800         * UserControl.cs:
25801           - Implemented UserControl (complete)
25802
25803 2004-08-21 19:20  ravindra
25804
25805         * ToolBar.cs: Correcting the formatting mess of VS.NET.
25806
25807 2004-08-21 18:49  ravindra
25808
25809         * ToolBar.cs: Probably this completes the missing attributes in
25810           toolbar control.
25811
25812 2004-08-21 18:03  ravindra
25813
25814         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
25815           Fixed toolbar control signatures.
25816
25817 2004-08-21 16:32  pbartok
25818
25819         * LinkLabel.cs:
25820           - Signature Fixes
25821
25822 2004-08-21 16:30  pbartok
25823
25824         * Label.cs:
25825           - Signature fixes
25826
25827 2004-08-21 16:19  pbartok
25828
25829         * Control.cs, Label.cs:
25830           - Signature fixes
25831
25832 2004-08-21 15:57  pbartok
25833
25834         * ButtonBase.cs:
25835           - Added loads of debug output for development
25836           - Fixed typo in method name
25837
25838 2004-08-21 15:52  pbartok
25839
25840         * ToolBarButtonClickEventArgs.cs:
25841           - Added missing base class
25842
25843 2004-08-21 14:53  pbartok
25844
25845         * Control.cs:
25846           - Updated to match new GrabWindow signature
25847
25848 2004-08-21 14:51  pbartok
25849
25850         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25851           - Added method to get default display size
25852
25853 2004-08-21 14:23  pbartok
25854
25855         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
25856           - Added method to query current grab state
25857           - Added argument to allow confining a grab to a window
25858
25859 2004-08-21 14:22  pbartok
25860
25861         * Keys.cs:
25862           - Added [Flags] attribute so that modifiers can be used in bitwise
25863           ops
25864
25865 2004-08-21 14:21  pbartok
25866
25867         * TrackBar.cs, ScrollBar.cs:
25868           - Replaced direct XplatUI calls with their Control counterpart
25869
25870 2004-08-21 13:32  pbartok
25871
25872         * Control.cs:
25873           - Implemented Created property
25874
25875 2004-08-21 13:28  pbartok
25876
25877         * Control.cs:
25878           - Implemented ContainsFocus
25879
25880 2004-08-21 13:26  pbartok
25881
25882         * Control.cs:
25883           - Implemented CausesValidation
25884
25885 2004-08-21 13:21  pbartok
25886
25887         * Control.cs:
25888           - Implemented CanFocus
25889           - Implemented CanSelect
25890           - Implemented Capture
25891
25892 2004-08-21 12:35  pbartok
25893
25894         * XplatUIWin32.cs:
25895           - Fixed bug with Async message handling
25896           - Implemented getting the ModifierKeys
25897
25898 2004-08-21 12:32  jackson
25899
25900         * AsyncMethodResult.cs: Make sure we have the mutex before we
25901           release it. Fixes BeginInvoke on windows
25902
25903 2004-08-21 11:31  pbartok
25904
25905         * XplatUIWin32.cs, XplatUIX11.cs:
25906           - Drivers now return proper mouse state
25907
25908 2004-08-21 10:54  jackson
25909
25910         * Control.cs: Implement EndInvoke
25911
25912 2004-08-21 10:48  jackson
25913
25914         * Timer.cs: Remove unneeded finalizer
25915
25916 2004-08-20 19:52  ravindra
25917
25918         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
25919           in mouse event handling in the ToolBar control.
25920
25921 2004-08-20 19:50  ravindra
25922
25923         * ImageList.cs: Changed draw method to use the arguments passed in
25924           to draw the image.
25925
25926 2004-08-20 18:58  pbartok
25927
25928         * XplatUIStructs.cs:
25929           - Added private message for async communication
25930
25931 2004-08-20 17:38  ravindra
25932
25933         * Control.cs: Made RightToLeft property virtual and removed a
25934           Console.WriteLine.
25935
25936 2004-08-20 14:39  jordi
25937
25938         * ThemeGtk.cs: use style_attach
25939
25940 2004-08-20 14:39  pbartok
25941
25942         * XplatUIWin32.cs:
25943           - Added jackson's Async code from X11 to Win32
25944
25945 2004-08-20 14:09  pbartok
25946
25947         * SWF.csproj:
25948           - Added all new files
25949
25950 2004-08-20 14:09  pbartok
25951
25952         * Control.cs:
25953           - Added call to set window background color
25954
25955 2004-08-20 14:03  pbartok
25956
25957         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
25958           - Added method for setting the window background
25959
25960 2004-08-20 14:02  pbartok
25961
25962         * XplatUIWin32.cs:
25963           - Added method for setting the background color
25964           - Added handling for erasing the window background
25965
25966 2004-08-20 13:45  jordi
25967
25968         * TrackBar.cs: fixes timer, new properties and methods
25969
25970 2004-08-20 13:34  jackson
25971
25972         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
25973           correct thread
25974
25975 2004-08-20 13:22  jackson
25976
25977         * Timer.cs: Timer Tick events are now handed through Controls Async
25978           mechanism so the callbacks are executed in the same thread as X
25979
25980 2004-08-20 13:19  jackson
25981
25982         * XplatUIDriver.cs: Expose functionality to send async messages
25983           through the driver
25984
25985 2004-08-20 13:18  jackson
25986
25987         * Control.cs: Implement Begininvoke
25988
25989 2004-08-20 13:14  jackson
25990
25991         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
25992           messages through the driver
25993
25994 2004-08-20 13:12  jackson
25995
25996         * XplatUIX11.cs: Lock before all X operations. Also added Async
25997           method functionality through XSendEvent
25998
25999 2004-08-20 13:11  jackson
26000
26001         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
26002           This will screw up on 64 bit systems)
26003
26004 2004-08-20 13:10  jackson
26005
26006         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
26007           Async messages through X/Win32
26008
26009 2004-08-19 19:39  pbartok
26010
26011         * XplatUIX11.cs:
26012           - Updated code to match new HandleData.DeviceContext type
26013
26014 2004-08-19 19:38  pbartok
26015
26016         * HandleData.cs:
26017           - Made DeviceContext a generic object to allow usage from various
26018           drivers
26019           - Added support for queueing Windows messages
26020
26021 2004-08-19 19:37  pbartok
26022
26023         * XplatUIWin32.cs:
26024           - Added generation of MouseEnter, MouseLeave and MouseHover events
26025           - Added cleanup on EndPaint
26026
26027 2004-08-19 19:17  pbartok
26028
26029         * Control.cs:
26030           - Added handling of WM_MOUSEHOVER
26031           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
26032           code
26033
26034 2004-08-19 18:55  jordi
26035
26036         * ThemeGtk.cs: fixes button order
26037
26038 2004-08-19 18:12  jordi
26039
26040         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
26041
26042 2004-08-19 17:09  pbartok
26043
26044         * Control.cs:
26045           - Added Right property
26046           - Added RightToLeft property
26047
26048 2004-08-19 16:27  jordi
26049
26050         * ThemeGtk.cs: experimental GTK theme support
26051
26052 2004-08-19 16:26  jordi
26053
26054         * ITheme.cs, Theme.cs: move themes from an interface to a class
26055
26056 2004-08-19 16:25  jordi
26057
26058         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
26059           theme enhancaments
26060
26061 2004-08-19 16:04  pbartok
26062
26063         * XplatUIX11.cs:
26064           - Added colormap basics
26065           - Added a way to re-initialize with a different display handle
26066           - Fixed setting of the window background color
26067           - Added various X11 imports related to colors and colormaps
26068
26069 2004-08-19 15:51  pbartok
26070
26071         * X11Structs.cs:
26072           - Removed packing hints (Paolo suggested this a while back)
26073           - fixed colormap type
26074           - Added default Atom types
26075           - Added Screen and color structs and enums
26076
26077 2004-08-19 15:39  pbartok
26078
26079         * ImageList.cs:
26080           - Added missing Draw() method
26081           - Added missing RecreateHandle event
26082
26083 2004-08-19 15:30  pbartok
26084
26085         * Form.cs:
26086           - Added handling of WM_CLOSE
26087
26088 2004-08-18 13:16  jordi
26089
26090         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
26091           a table
26092
26093 2004-08-18 09:56  jordi
26094
26095         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
26096
26097 2004-08-17 15:31  ravindra
26098
26099         * SWF.csproj: Updated project.
26100
26101 2004-08-17 15:25  pbartok
26102
26103         * Control.cs:
26104           - Drawing improvement; don't call UpdateBounds if we are not visible
26105             (or have been minimized)
26106
26107 2004-08-17 15:24  pbartok
26108
26109         * XplatUIWin32.cs:
26110           - Finished IsVisible
26111           - Added Win32GetWindowPlacement
26112
26113 2004-08-17 15:08  jackson
26114
26115         * Panel.cs: Initial checkin of the Panel
26116
26117 2004-08-17 14:25  pbartok
26118
26119         * Control.cs:
26120           - Fixed broken handling of default window sizes
26121
26122 2004-08-17 13:29  jackson
26123
26124         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
26125           has a large startup time.
26126
26127 2004-08-17 10:25  jackson
26128
26129         * HandleData.cs: union areas properly
26130
26131 2004-08-17 10:12  jackson
26132
26133         * HandleData.cs: union areas properly
26134
26135 2004-08-16 20:00  ravindra
26136
26137         * ToolBar.cs, ToolBarButton.cs: Added attributes.
26138
26139 2004-08-16 18:48  ravindra
26140
26141         * ToolBar.cs: Added attributes.
26142
26143 2004-08-16 17:17  ravindra
26144
26145         * SWF.csproj: Updated project.
26146
26147 2004-08-16 17:16  jackson
26148
26149         * XplatUIX11.cs: Check for more expose events before sending a
26150           WM_PAINT so they can all be grouped together. This makes dragging a
26151           window across another window redraw in a sane way.
26152
26153 2004-08-16 15:47  pbartok
26154
26155         * Control.cs:
26156           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
26157             support OnMouseEnter/Leave()
26158           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
26159             exposure handling
26160
26161 2004-08-16 15:46  pbartok
26162
26163         * XplatUIStructs.cs, XplatUIX11.cs:
26164           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
26165           OnMouseEnter/Leave()
26166
26167 2004-08-16 15:34  jackson
26168
26169         * XplatUIX11.cs: Group multiple expose events in HandleData, make
26170           sure messages get the message field set to WM_NULL if they are not
26171           handled.
26172
26173 2004-08-16 15:24  jackson
26174
26175         * HandleData.cs: HandleData is used for storing message information
26176           for window handles
26177
26178 2004-08-15 17:23  ravindra
26179
26180         * ColorDepth.cs: Added attribute.
26181
26182 2004-08-15 17:23  ravindra
26183
26184         * SWF.csproj: Updated project for ToolBar Control.
26185
26186 2004-08-15 17:20  ravindra
26187
26188         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
26189           control and also dos2unix format.
26190
26191 2004-08-15 17:13  ravindra
26192
26193         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
26194           ToolBarButtonClickEventArgs.cs,
26195           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
26196           ToolBarTextAlign.cs: First Implementation of ToolBar control.
26197
26198 2004-08-15 15:31  pbartok
26199
26200         * ButtonBase.cs:
26201           - First (mostly) working version
26202
26203 2004-08-13 16:15  pbartok
26204
26205         * Control.cs:
26206           - Fixed Anchor default
26207
26208 2004-08-13 15:43  pbartok
26209
26210         * Control.cs:
26211           - Changed GetCursorPos signature
26212
26213 2004-08-13 15:42  pbartok
26214
26215         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26216           - Changed signature for GetCursorPos
26217
26218 2004-08-13 15:25  pbartok
26219
26220         * XplatUIX11.cs:
26221           - Cleanup
26222           - Fixed resizing/exposure handling
26223
26224 2004-08-13 15:22  jordi
26225
26226         * ThemeWin32Classic.cs: removes redundant code and fixes issues
26227           with tickposition
26228
26229 2004-08-13 14:55  jordi
26230
26231         * TrackBar.cs: change from wndproc to events
26232
26233 2004-08-13 13:00  jordi
26234
26235         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26236           XplatUIX11.cs: implements PointToClient (ScreenToClient)
26237
26238 2004-08-13 12:53  pbartok
26239
26240         * XplatUIWin32.cs:
26241           - Changed GetWindowPos to also provide client area size
26242           - Fixed broken prototypes for several win32 functions
26243
26244 2004-08-13 12:53  pbartok
26245
26246         * XplatUI.cs, XplatUIDriver.cs:
26247           - Changed GetWindowPos to also provide client area size
26248
26249 2004-08-13 12:52  pbartok
26250
26251         * XplatUIX11.cs:
26252           - Added generation of WM_POSCHANGED
26253           - Changed GetWindowPos to also provide client area size
26254
26255 2004-08-13 12:52  pbartok
26256
26257         * Control.cs:
26258           - Added Dispose() and destructor
26259           - Fixed resizing and bounds calculation
26260           - Fixed Layout
26261           - Added memory savings for invisible windows
26262
26263 2004-08-13 12:46  jordi
26264
26265         * TrackBar.cs: adds timer and grap window
26266
26267 2004-08-13 10:25  jackson
26268
26269         * Timer.cs: SWF Timer
26270
26271 2004-08-12 16:59  pbartok
26272
26273         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26274           - Implemented method to get current mouse position
26275
26276 2004-08-12 14:29  jordi
26277
26278         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
26279           enhancement, fix mouse problems, highli thumb, etc
26280
26281 2004-08-12 13:31  pbartok
26282
26283         * Control.cs:
26284           - Fixed Anchoring bugs
26285
26286 2004-08-12 13:01  jackson
26287
26288         * StatusBar.cs: Don't forget things
26289
26290 2004-08-12 12:54  jackson
26291
26292         * ThemeWin32Classic.cs: Handle owner draw status bars
26293
26294 2004-08-12 12:54  jackson
26295
26296         * StatusBar.cs: Implement missing properties, events, and methods.
26297           Handle mouse clicking
26298
26299 2004-08-12 10:19  jackson
26300
26301         * StatusBarPanelClickEventArgs.cs,
26302           StatusBarPanelClickEventHandler.cs: Classes for handling status
26303           bar panel click events
26304
26305 2004-08-12 10:10  jackson
26306
26307         * Control.cs: Add missing properties
26308
26309 2004-08-12 09:46  pbartok
26310
26311         * BindingsManagerBase.cs:
26312           - Name changed to BindingManagerBase.cs
26313
26314 2004-08-12 09:25  jordi
26315
26316         * ScrollableControl.cs: calls ctrlbase instead of exeception
26317
26318 2004-08-11 16:28  pbartok
26319
26320         * InputLanguageChangingEventArgs.cs:
26321           - Never check in before compiling. Fixes the last check-in
26322
26323 2004-08-11 16:26  pbartok
26324
26325         * InputLanguageChangingEventArgs.cs:
26326           - More signature fixes
26327
26328 2004-08-11 16:20  pbartok
26329
26330         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
26331           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
26332           ImageListStreamer.cs, InputLanguage.cs,
26333           InputLanguageChangedEventArgs.cs,
26334           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
26335           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
26336           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
26337           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26338           - Signature fixes
26339
26340 2004-08-11 16:16  pbartok
26341
26342         * Application.cs:
26343           - Fixed Signature
26344           - Added .Net 1.1 method
26345
26346 2004-08-11 15:25  pbartok
26347
26348         * SWF.csproj:
26349           - Fixed BindingManagerBase.cs filename
26350
26351 2004-08-11 15:22  pbartok
26352
26353         * BindingManagerBase.cs:
26354           - Was checked in with wrong filename
26355
26356 2004-08-11 14:50  pbartok
26357
26358         * SWF.csproj:
26359           - Updated
26360
26361 2004-08-11 13:41  jordi
26362
26363         * XplatUIWin32.cs: Fixes ClientRect
26364
26365 2004-08-11 13:19  pbartok
26366
26367         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26368           XplatUIX11.cs:
26369           - We had SetWindowPos and MoveWindow to set window positions and
26370             size, removed MoveWindow. We have GetWindowPos, so it made sense to
26371             keep SetWindowPos as matching counterpart
26372           - Added some X11 sanity checking
26373
26374 2004-08-11 12:59  pbartok
26375
26376         * Control.cs:
26377           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
26378             (It seems that SetBounds is just a front for SetBoundsCore and
26379              SetBoundsCore updates the underlying window system and
26380              UpdateBounds is responsible for updating the variables associated
26381              with the Control and sending the events)
26382           - Major cleanup of Size handling; we now have two sizes, client_size
26383             and bounds. Bounds defines the window with decorations, client_size
26384             without them.
26385
26386 2004-08-11 12:55  pbartok
26387
26388         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26389           - Added method to calculate difference between decorated window and
26390             raw client area
26391
26392 2004-08-11 12:54  pbartok
26393
26394         * Label.cs:
26395           - Forcing redraw on resize
26396
26397 2004-08-11 11:43  pbartok
26398
26399         * ImageList.cs:
26400           - Removed disposing of the actual images when the list is disposed
26401
26402 2004-08-11 09:13  pbartok
26403
26404         * Control.cs:
26405           - Now properly reparents windows
26406
26407 2004-08-11 08:37  pbartok
26408
26409         * Control.cs:
26410           - Duh!
26411
26412 2004-08-11 07:47  pbartok
26413
26414         * Control.cs:
26415           - Rewrote the collection stuff. Might not be as fast now, not
26416             keeping the number of children around and accessible directly, but
26417             it's more straightforward
26418
26419 2004-08-11 07:44  pbartok
26420
26421         * AccessibleObject.cs:
26422           - Fixed to match ControlCollection rewrite
26423
26424 2004-08-11 07:43  pbartok
26425
26426         * ImageList.cs:
26427           - Added missing creation of the collection list
26428
26429 2004-08-10 20:08  jackson
26430
26431         * StatusBar.cs: Get the paint message from WndProc
26432
26433 2004-08-10 19:31  jackson
26434
26435         * ThemeWin32Classic.cs: Create Brushes as little as possible
26436
26437 2004-08-10 19:20  jackson
26438
26439         * UICues.cs: Add Flags attribute
26440
26441 2004-08-10 19:19  jackson
26442
26443         * StatusBarPanel.cs: Signature cleanup
26444
26445 2004-08-10 19:10  jackson
26446
26447         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
26448           Initial implementation of status bar item drawing
26449
26450 2004-08-10 17:27  jordi
26451
26452         * TrackBar.cs: add missing methods, properties, and restructure to
26453           hide extra ones
26454
26455 2004-08-10 16:24  jackson
26456
26457         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
26458           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
26459           attribute
26460
26461 2004-08-10 13:21  jordi
26462
26463         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
26464           enhancements and standarize on win colors defaults
26465
26466 2004-08-10 12:52  jackson
26467
26468         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
26469           ThemeWin32Classic.cs: Implement DrawItem functionality
26470
26471 2004-08-10 12:47  jordi
26472
26473         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
26474
26475 2004-08-10 12:32  jordi
26476
26477         * Control.cs: throw ontextchange event
26478
26479 2004-08-10 11:43  pbartok
26480
26481         * Control.cs:
26482           - Added more to the still unfinished Dock/Anchor layout code
26483
26484 2004-08-10 11:39  pbartok
26485
26486         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26487           - Added GetWindowPos method
26488
26489 2004-08-10 11:36  pbartok
26490
26491         * XplatUIWin32.cs:
26492           - Implemented several methods
26493
26494 2004-08-10 09:47  jackson
26495
26496         * TrackBar.cs: Allow control to handle buffering
26497
26498 2004-08-10 09:41  jackson
26499
26500         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
26501
26502 2004-08-10 09:24  jackson
26503
26504         * Label.cs, LinkLabel.cs: Let Control handle buffering.
26505
26506 2004-08-10 09:09  jackson
26507
26508         * StatusBar.cs: Let Control handle all the buffering.
26509
26510 2004-08-10 09:08  jackson
26511
26512         * Control.cs: Control will now handle the buffering code, so each
26513           control does not have to implement this.
26514
26515 2004-08-10 08:34  jackson
26516
26517         * XplatUIDriver.cs: Use default colors from the theme
26518
26519 2004-08-09 17:12  pbartok
26520
26521         * ImageList.cs:
26522           - Fixed several bugs Ravindra pointed out
26523
26524 2004-08-09 16:11  pbartok
26525
26526         * Control.cs:
26527           - Added incomplete dock layout code
26528           - Added support for mouse wheel
26529
26530 2004-08-09 16:09  pbartok
26531
26532         * XplatUIX11.cs:
26533           - Added handling for middle and right mousebutton
26534           - Added handling for mouse wheel
26535           - Added handling for key state and mouse state and position
26536           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
26537           messages
26538
26539 2004-08-09 15:40  jackson
26540
26541         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
26542           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
26543           checkin
26544
26545 2004-08-09 15:37  jackson
26546
26547         * StatusBar.cs: Initial implementation of StatusBar
26548
26549 2004-08-09 15:36  jackson
26550
26551         * ITheme.cs: Add support for drawing status bar and getting status
26552           bar item sizes
26553
26554 2004-08-09 15:35  pbartok
26555
26556         * MouseButtons.cs:
26557           - Fixed values
26558
26559 2004-08-09 15:34  jackson
26560
26561         * ThemeWin32Classic.cs: Add support for drawing status bar and get
26562           status bar item sizes
26563
26564 2004-08-09 15:21  jackson
26565
26566         * ThemeWin32Classic.cs: Use known colors for default control
26567           colours
26568
26569 2004-08-09 15:12  jackson
26570
26571         * ThemeWin32Classic.cs: Make the default font static, it is static
26572           in control so this doesn't change functionality and creating fonts
26573           is sloooooow.
26574
26575 2004-08-09 14:56  pbartok
26576
26577         * X11Structs.cs:
26578           - Added GrabMode enum
26579
26580 2004-08-09 14:55  pbartok
26581
26582         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26583           - Removed Run method, was only required for initial development
26584
26585 2004-08-09 14:51  pbartok
26586
26587         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26588           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
26589           capture
26590
26591 2004-08-09 13:48  pbartok
26592
26593         * XplatUIX11.cs:
26594           - Fixed default sizing for child windows
26595
26596 2004-08-09 12:56  pbartok
26597
26598         * XplatUIX11.cs:
26599           - Added generation of WM_DESTROY message
26600           - Added handling of window manager induced shutdown
26601
26602 2004-08-09 11:31  jackson
26603
26604         * ThemeWin32Classic.cs: New names for control properties
26605
26606 2004-08-09 11:25  jackson
26607
26608         * Control.cs: Use new color names
26609
26610 2004-08-09 11:02  jackson
26611
26612         * XplatUI.cs: Get default window properties from the theme
26613
26614 2004-08-09 11:01  jackson
26615
26616         * ITheme.cs: The theme engine now controls default window
26617           properties
26618
26619 2004-08-09 11:00  jackson
26620
26621         * ThemeWin32Classic.cs: Add default window color properties
26622
26623 2004-08-09 10:17  jackson
26624
26625         * ThemeWin32Classic.cs: Use correct default back color
26626
26627 2004-08-09 10:05  jackson
26628
26629         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
26630           the theme now.
26631
26632 2004-08-09 09:56  jackson
26633
26634         * XplatUI.cs: Remove defaults, these are handled by the theme now.
26635
26636 2004-08-09 09:54  jackson
26637
26638         * Control.cs: Get default properties from the theme.
26639
26640 2004-08-09 09:53  jackson
26641
26642         * ITheme.cs: Themes now handle default control properties
26643
26644 2004-08-09 09:53  jackson
26645
26646         * ThemeWin32Classic.cs: Themes now handle default control
26647           properties so coloring will be consistent
26648
26649 2004-08-08 16:54  jordi
26650
26651         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
26652
26653 2004-08-08 15:08  jordi
26654
26655         * XplatUIX11.cs: fixes keyboard crash
26656
26657 2004-08-08 13:47  jordi
26658
26659         * Label.cs: add cvs header info
26660
26661 2004-08-08 12:09  jackson
26662
26663         * ThemeWin32Classic.cs: Add pen_buttonface
26664
26665 2004-08-08 11:52  jordi
26666
26667         * Label.cs, LinkLabel.cs: [no log message]
26668
26669 2004-08-08 11:34  jordi
26670
26671         * ThemeWin32Classic.cs: Use Windows Standard Colours
26672
26673 2004-08-07 17:32  jordi
26674
26675         * TrackBar.cs: throw exceptions of invalid enums values
26676
26677 2004-08-07 17:31  jordi
26678
26679         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
26680           draw method name
26681
26682 2004-08-07 16:56  jackson
26683
26684         * HorizontalAlignment.cs: Initial checkin
26685
26686 2004-08-07 13:16  jordi
26687
26688         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
26689           methods
26690
26691 2004-08-07 13:05  jordi
26692
26693         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
26694           GetSysColor defines
26695
26696 2004-08-06 18:01  pbartok
26697
26698         * ThemeWin32Classic.cs:
26699           - Fixed some rounding issues with float/int
26700
26701 2004-08-06 18:00  jackson
26702
26703         * DockStyle.cs, AnchorStyles.cs:
26704
26705                   Add flags and serializable attributes.
26706
26707 2004-08-06 17:46  pbartok
26708
26709         * XplatUIX11.cs:
26710           - Implemented GetParent
26711
26712 2004-08-06 17:18  pbartok
26713
26714         * TrackBar.cs:
26715           - Fixed some rounding issues with float/int
26716
26717 2004-08-06 17:17  pbartok
26718
26719         * X11Structs.cs, XplatUIX11.cs:
26720           - Fixed Refresh and Invalidate
26721
26722 2004-08-06 15:30  pbartok
26723
26724         * Control.cs, X11Structs.cs, XplatUIX11.cs:
26725           - Fixed recursive loop when resizing
26726           - Improved/fixed redrawing on expose messages
26727
26728 2004-08-06 09:53  jordi
26729
26730         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
26731           keyboard navigation
26732
26733 2004-08-06 08:02  pbartok
26734
26735         * X11Structs.cs, XplatUIX11.cs:
26736           - Fixed reparenting
26737           - Fixed window border creation
26738
26739 2004-08-05 15:38  pbartok
26740
26741         * XplatUIX11.cs:
26742           - Attempted fix for reparenting problems
26743
26744 2004-08-04 15:14  pbartok
26745
26746         * Control.cs:
26747           - Fixed Invalidation bug (calculated wrong client area)
26748           - Added ClientSize setter
26749
26750 2004-08-04 15:13  pbartok
26751
26752         * Form.cs:
26753           - Added AutoScale properties
26754
26755 2004-08-04 15:13  pbartok
26756
26757         * SWF.csproj:
26758           - Added latest files
26759
26760 2004-08-04 14:11  pbartok
26761
26762         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26763           XplatUIX11.cs:
26764           - Added Invalidate handling
26765
26766 2004-08-03 17:09  jordi
26767
26768         * XplatUIDriver.cs: fixes spelling mistake
26769
26770 2004-07-27 09:53  jordi
26771
26772         * TrackBar.cs: fixes trackbar events, def classname, methods
26773           signature
26774
26775 2004-07-27 09:29  jordi
26776
26777         * ScrollBar.cs: fixes scrollbar events
26778
26779 2004-07-27 04:38  jordi
26780
26781         * Control.cs: changes to be able to run winforms samples
26782
26783 2004-07-26 11:42  jordi
26784
26785         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
26786           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
26787
26788 2004-07-26 05:41  jordi
26789
26790         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
26791           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
26792           implementation
26793
26794 2004-07-22 09:22  jordi
26795
26796         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
26797           check link overlapping, implement events, and fixes
26798
26799 2004-07-21 10:28  jordi
26800
26801         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
26802
26803 2004-07-21 10:19  jordi
26804
26805         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
26806           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
26807           LinkLabelLinkClickedEventArgs.cs,
26808           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
26809           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
26810           implementation
26811
26812 2004-07-19 13:09  jordi
26813
26814         * Control.cs, Label.cs: label control re-written: added missing
26815           functionlity, events, and properties
26816
26817 2004-07-19 10:49  jordi
26818
26819         * Control.cs: fixes SetBounds logic
26820
26821 2004-07-19 01:29  jordi
26822
26823         * Control.cs: Call RefreshWindow only if the window has created
26824
26825 2004-07-15 14:05  pbartok
26826
26827         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
26828           - Implemented ImageList and ImageList.ImageCollection classes
26829           - Added ColorDepth enumeration
26830           - Updated SWF VS.Net project
26831
26832 2004-07-15 11:06  jordi
26833
26834         * XplatUIStructs.cs: added MsgButons enum
26835
26836 2004-07-15 11:03  jordi
26837
26838         * Control.cs: added basic mouse handeling events
26839
26840 2004-07-15 03:38  jordi
26841
26842         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
26843           Vertical TrackBar control implementation
26844
26845 2004-07-13 09:33  jordi
26846
26847         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
26848
26849 2004-07-13 09:31  jordi
26850
26851         * Control.cs, Form.cs: commit: new properties and fixes form size
26852           problems
26853
26854 2004-07-09 14:13  miguel
26855
26856         * ProgressBar.cs: Spelling
26857
26858 2004-07-09 11:25  pbartok
26859
26860         * ProgressBar.cs:
26861           - Removed usage of Rectangle for drawing. Miguel pointed out it's
26862           faster
26863
26864 2004-07-09 11:17  miguel
26865
26866         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
26867
26868                 * ProgressBar.cs: Fixed spelling for `block'
26869
26870                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
26871                 style guidelines.
26872
26873                 Avoid using the += on rect.X, that exposed a bug in the compiler.
26874
26875 2004-07-08 23:21  pbartok
26876
26877         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
26878           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
26879           BaseCollection.cs, Binding.cs, BindingContext.cs,
26880           BindingMemberInfo.cs, BindingsCollection.cs,
26881           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
26882           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
26883           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
26884           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
26885           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
26886           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
26887           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
26888           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
26889           FrameStyle.cs, GiveFeedbackEventArgs.cs,
26890           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
26891           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
26892           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
26893           InputLanguageChangedEventArgs.cs,
26894           InputLanguageChangedEventHandler.cs,
26895           InputLanguageChangingEventArgs.cs,
26896           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
26897           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
26898           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
26899           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
26900           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
26901           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
26902           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
26903           QueryAccessibilityHelpEventArgs.cs,
26904           QueryAccessibilityHelpEventHandler.cs,
26905           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
26906           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
26907           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
26908           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
26909           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
26910           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
26911           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
26912           XplatUIX11.cs, lang.cs:
26913           - Initial check-in
26914
26915