f63b0efffff423c7a4171b7096cca1ad220af916
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2
3         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
4         when the item in current position is different than 0. Also, save the
5         item index in the beginning of the operation, instead of getting the
6         index of the item when the event is actually performed. Lastly clean
7         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
8         triggered.
9         [Fixes #357873]
10
11 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
12
13         * Form.cs: Alt-Minus for MDI children system menu should work
14         with both the minus keys on the keyboard.
15         [Fixes bug #336295]
16
17 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
18
19         * Control.cs: Don't invalidate on region change.  The WM should
20         take care of this automagically.  Keeps us out of an infinite
21         paint loop if someone changes the Region in the OnPaint.
22         [Fixes bug #358327]
23
24 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
25
26          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
27
28 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
29
30         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
31         down the MonthCalendar only on F4, not Alt+F4.
32         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
33         [Fixes bug #358340]
34
35 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
36
37         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
38         if its part of a DateTimePicker, else, use the back color.
39         [Fixes bug #358339]
40
41 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
42
43         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
44         [Fixes bug #358342]
45
46 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
47
48         * CurrencyManager.cs: When we get a ListChanged event from our source,
49         always fire our own ListChanged event, as .Net does.
50
51 2008-02-03  Luke Page  <luke.a.page@gmail.com>
52
53         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
54         #358379.
55
56 2008-02-03  Luke Page  <luke.a.page@gmail.com>
57
58         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
59         property. Removed if for richtext property that was always true.
60         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
61
62 2008-02-03  Luke Page  <luke.a.page@gmail.com>
63
64         * TextBoxBase.cs - commited patch from James Purcell that
65         correctly sets the FixedHeight control style when the MultiLine
66         property is changed on a TextBox control. Fixes bug 358229.
67
68 2008-02-02  Luke Page  <luke.a.page@gmail.com>
69
70         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
71         Fixes bug 351938 - caret is positioned correctly when drawn
72         and when calculating textual position of caret, no longer
73         has a NRE in certain situations.
74         
75 2008-02-01  Geoff Norton  <gnorton@novell.com>
76
77         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
78         get that region removed from the paint event.
79         * XplatUICarbon.cs: Remove the window mapping after disposing of 
80         window.  Prevents a crash with handle reuse.  Optimize exposes
81         only onto visible windows (rare; but possible).
82
83 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
84
85         * UpDownBase.cs: Make sure the internal textbox calls the base's
86         OnMouseDown and OnMouseUp so the textbox will function correctly.
87         There were notes saying it doesn't chain up, but its an internal
88         class, so our implementation may differ.
89         [Fixes bug #357482]
90
91 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
92
93         * ListBox.cs: Fix a logic error and don't process MouseDown
94         for mouse buttons other than Left.
95
96 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
97
98         * Control.cs: Remove HeightInternal.
99         * ListBox.cs: Commit patch from James Purcell that correctly
100         calculates heights for ListBoxen.
101         [Fixes bug #357152]
102
103 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
104
105         * Label.cs: Apply patch from James Purcell that corrects the 
106         signature of the AutoSize property.
107         [Fixes bug #357605]
108
109 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
110
111         * ListBox.cs: Don't throw [Mouse]Click events for buttons
112         other than the left mouse button.
113
114 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
115
116         * Control.cs: Remove my awesome optimization as it caused some
117         regressions with control ordering.  :(
118         [Fixes bug #357467]
119
120 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
121
122          * PropertyGridView.cs: Fix a NRE on double click when there is no
123          selected object.
124
125 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
126
127         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
128
129 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
130
131         * ListBox.cs: Call MouseClick and MouseDoubleClick.
132         [Fixes bug #357146]
133
134 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
135
136         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
137         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
138         instead of Hwnd.bmp_g.
139
140 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
141
142         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
143         Use the Hwnd one instead.
144
145 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
146
147         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
148
149 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
150
151         * Form.cs: corcompare for RestoreBounds.
152
153 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
154
155         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
156
157 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
158
159         * Form.cs: Handle Alt-Minus for MDI children forms.
160         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
161         Add mnemonics to the control menu.
162         [Fixes bug #336295]
163
164 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
165
166         * Binding.cs: Initial implementation bits of FormattingEnabled
167         property and BindingComplete event (2.0). 
168         * BindingCompleteEventArgs.cs: Internal methods for setting error text
169         and exception.
170
171 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
172
173         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
174         table.Location.  [Fixes bug #354672]
175
176 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
177
178         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
179         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
180
181 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
182
183         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
184         of doing all the re-bound work, just invalidate and call SetControlText 
185         to set the updated text of selected item to our textbox.
186         Fixes #333750.
187
188 2008-01-28  Andreia Gaita <avidigal@novell.com>
189
190         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
191         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
192         missing properties and methods. Add Load, Unload, Error, GotFocus, 
193         LostFocus, Resize, Scroll events (only load and unload are connected)
194
195 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
196
197         * AccessibleObject.cs: Modified argument names to match MS.
198         * Button.cs: Modified argument names to match MS.
199         * BindingContext.cs: Modified argument names to match MS.
200         * BindingMemberInfo.cs: Modified argument names to match MS.
201         * ButtonBase.cs: Modified argument names to match MS.
202         * ComboBox.cs: Modified argument names to match MS.
203         * Control.cs: Modified argument names to match MS.
204         * CheckedListBox.cs: Modified argument names to match MS.
205         * CommonDialog.cs: Modified argument names to match MS.
206         * DataGrid.cs: Modified argument names to match MS.
207         * CursorConverter.cs: Modified argument names to match MS.
208         * ControlPaint.cs: Modified argument names to match MS.
209         * CheckBox.cs: Modified argument names to match MS.
210         * ControlBindingsCollection.cs: Modified argument names to match MS.
211         * BindingSource.cs: Modified argument names to match MS.
212         * DataFormats.cs: Modified argument names to match MS.
213         * ContainerControl.cs: Modified argument names to match MS.
214         * CurrencyManager.cs: Modified argument names to match MS.
215         * Application.cs: Modified argument names to match MS.
216         * ContextMenuStrip.cs: Modified argument names to match MS.
217         * ContextMenu.cs: Modified argument names to match MS.
218         * BindingManagerBase.cs: Modified argument names to match MS.
219         * WindowsFormsSection.cs: Fixed line ending.    
220
221 2008-01-27  Andreia Gaita <avidigal@novell.com>
222
223         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
224         detecting that the dropdown toolwindow is hidden. EndLoop outside the
225         while.
226
227 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
228
229         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
230         MS. Code formatting.
231
232 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
233
234         * Binding.cs: Don't avoid the Format event if the control 
235         property type is object. Also, if the value retrieved by 
236         the data source is null _and_ the control proeprty type 
237         is object, return Convert.DBNull (match .Net).
238         Fixes part of #324286.
239
240 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
241
242         * ListControl.cs: Since we are getting two BinginContextChanged events
243         for the same binding context instance (when the control is added to
244         form, and when the form is actually shown), take it into account only the
245         first time for a given binding context instance.
246         Fixes part of #324286.
247
248 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
249
250          * PropertryGridView.cs: Ops.
251
252 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
253
254          * PropertyGridView.cs: Close dropdown form if the owner form is
255          moved or minimized.
256          [Fixes bug #322446]
257
258 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
259
260          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
261          RootGridEntry.cs, CategoryGridEntry.cs:
262          PropertyGrid rewrite.
263          - Rewrite all of the control logic in PropertyGrid.
264          - Rewrite all of the ComponentModel logic in GridEntry.
265          - Rewrite all UI work in PropertyGridView.
266          - Many bugfixes, etc.
267
268 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
269
270         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
271         when all contained controls are autosize or dock-fill.  Also take into
272         account when the total percentage of column/row sizes is not 100%.
273         [Fixes bug #354672]
274
275 2008-01-24  Andreia Gaita <avidigal@novell.com>
276
277         * HtmlDocument.cs:
278         - Save a reference to the IDocument in the instance and
279           use that one instead of going to WebHost.Document; the document that the 
280           WebHost returns might not be the right one (in case of frames).
281         - Use the hashcode returned from the IDocument interface.
282         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
283           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
284           LinkColor, Url, VisitedColor, Window
285
286         * HtmlElement.cs: 
287         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
288           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
289           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
290           SetAttribute, Equals, equality operators.
291         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
292           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
293         
294         * HtmlElementCollection.cs: Change implementation to use a generic
295         collection. Implemented Enumerator and CopyTo
296
297         * HtmlHistory.cs: Add constructor, no implementation yet.
298
299         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
300         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
301         Equals, equality operators.
302
303         * HtmlWindowCollection.cs: Implemented. 
304
305         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
306         has been deprecated).
307
308         * WebBrowserBase.cs: Use Completed event to track document loading
309         (Navigated has been deprecated)
310
311 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
312
313         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
314         level MenuItems do not respect tabs.
315         [Fixes bug #355196]
316
317 2008-01-23  Geoff Norton  <gnorton@novell.com>
318
319         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
320         FormWindowState.  Finished fixing Fullscreen windows on Carbon
321
322 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
323
324         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
325         be used as grab_control. Also save status of capture before show ContextMenu
326         and restore it after close.
327
328 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
329
330         * Control.cs: Internal FindRootParent method added to return high control
331         in parent tree.
332
333 2008-01-23  Geoff Norton  <gnorton@novell.com>
334
335         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
336         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
337         it work again.  Handle HITTEST events.
338
339 2008-01-23  Geoff Norton  <gnorton@novell.com>
340
341         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
342         a crash in certain cases.  Support for fullscreen windows in certain cases.
343
344 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
345
346         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
347         [Fixes bug #355703]
348
349 2008-01-23  Geoff Norton  <gnorton@novell.com>
350         
351         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
352
353 2008-01-23  Geoff Norton  <gnorton@novell.com>
354
355         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
356
357 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
358
359         * SplitContainer.cs: Remove unused declarations.
360         * Binding.cs: Remove unused declarations.
361
362 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
363
364         * Form.cs: Remove unused declaration of 'active' in Activate method.
365         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
366         prevent compilation warnings.
367         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
368         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
369         * Bindings.cs: Remove unused formatting_enabled declaration.
370         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
371         warnings.
372         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
373         warnings.
374         * PropertyGridView.cs: Remove usused 'ex' declaration.
375         * DataGridView.cs: Remove unused declarations.
376
377 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
378
379         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
380         
381         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
382         to Control class, it makes possible to grab menu to controls that can't 
383         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
384         WmMouseMove removed since it was used only to track menu events.
385
386         * Control.cs:
387         - Moved all active_tracker stuff from Form.
388         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
389         can call this method instead of reimplement all necessary code handle for
390         menu tracker.
391         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
392         and WmMouseMove).
393         
394         * MenuAPI.cs: 
395         - Remove special handle to ToolStripOverflow, now we can grab menu to 
396         controls that can't reach Form using parent tree.
397         - Change type of grab_control from Form to Control.
398
399 2008-01-22  Geoff Norton  <gnorton@novell.com>
400
401         * TextBoxBase.cs: Split up the sizing of controls and placing of 
402         controls.  Fixes a bug where scrollbars in Reflector could be sized
403         wrong and have non-working thumbers.
404
405 2008-01-23  Geoff Norton  <gnorton@novell.com>
406
407         * XplatUI.cs: Refactor environment variables to default support to the
408         Carbon driver on the Mac.
409
410 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
411
412         * Label.cs: Uses new LabelPainter for drawing operations.
413         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
414         * Theme.cs: DrawLabel and LabelDefaultSize removed.
415
416 2008-01-22  Geoff Norton  <gnorton@novell.com>
417
418         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
419
420 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
421
422         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
423         through the normal flat button code and don't draw the checkbox glyph.
424         * Theme.cs: Button->ButtonBase signature change.
425         [Fixes bug #324755]
426
427 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
428
429         * LinkLabel.cs: Uses new class LinkLabelPainter.
430
431 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
432
433         * MessageBox.cs: Adjust right border space, we don't need to add 
434         "space_border*2" two times.
435
436 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
437
438         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
439         becomes a wrapper around Padding.
440         [Fixes a part of bug #354676]
441
442 2008-01-22 Geoff Norton  <gnorton@novell.com>
443
444         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
445         acquired.  Also ensure the buffer is large enough to grab the header
446         we need on linux boxes.
447
448 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
449
450         * Control.cs: Implement a custom enumerator so people can delete
451         from the Controls collection while in a foreach.
452         [Fixes bug #355074]
453
454 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
455
456          * PropertyGridView.cs: Fix focusing behavior:
457          - Tab should focus the grid text box.
458          - Clicking on the labels shouldn't focus the grid text box.
459
460 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
461
462          * PropertyGridView.cs: IsValueTypeGridItem should return true 
463          for Arrays as well.
464
465 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
466
467          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
468           - Renamed GridEntry.SelectedObjects to TargetObjects to better
469           reflect the property name role.
470           - PropertyGrid.GetTarget is not required as the target is known
471           (TargetObjects).
472           - Setting values will handle value types as a special case now and
473           populate them up in the chain.
474           [Fixes #354990]
475
476 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
477
478         * Hwnd.cs: Create a public property for the Graphics we keep around.
479
480 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
481
482          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
483          when the current object selection changes. 
484          Fixes failing test SelectedObject_Null2.B5.
485
486 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
487
488          * PropertyGrid.cs: Process Browsable properties with 
489          DesignerSerializationVisibilityAttribute.Content as being expandable.
490          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
491          will not be expandable. We should be nested components-friendly now.
492
493 2008-01-21  Andreia Gaita <avidigal@novell.com>
494
495         * WebBrowserBase.cs: Check if control was loaded properly, 
496         don't bind if it wasn't.
497
498         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
499         GetElementFromPoint, equality operators, OpenNew, Write.
500         Remove extra set_Body
501
502 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
503
504         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
505         that makes our AutoScale* stuff more tolerant to different orders
506         of being set.  [Fixes bug #354669]
507
508 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
509
510          * PropertyGridView.cs, PropertyGridTextBox.cs: 
511          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
512          [Fixes #339005 and #348209]
513
514 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
515
516          * PropertyGridView.cs: Hide the grid text box before adjusting it
517          for the newly selected GridItem.
518          [Fixes #338999]
519
520 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
521
522         * Form.cs: Give MDI children the opportunity to cancel the parent form
523         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
524         properly for both the parent and child.
525         * Application.cs: Signature of internal method changed, pass the previous
526         default of false.
527         [Fixes bug #354286]
528
529 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
530
531         * PropertyGridView.cs: Set the property value only if it has changed.
532         [Fixes bug #338997]
533
534 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
535
536         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
537         If the mouse hasn't actually moved, ignore these messages so the currently
538         highlighted menuitem isn't reset to the one under the mouse.
539         [Fixes bug #333668]
540
541 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
542
543         * PropertyGridView.cs: When the property changes Invalidate the GridItem
544         in order for the properties with UITypeEditor.GetPaintValueSupported == true
545         to reflect the change visually.
546         [Fixes bug #338998]
547
548 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
549
550         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
551         to 2.0 button drawing.
552         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
553         the button text is tall enough for one line.  LineLimit says it will
554         always draw at least one line, but it is a lie.
555         [Fixes bug #324941]
556
557 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
558
559         * XplatUIStructs.cs, X11Keyboard.cs :
560           added some more VK_* keys to be handled.
561
562 2008-01-16  Andreia Gaita <avidigal@novell.com>
563
564         * Control.cs: Check if there is a container before setting or getting
565         the validation flag.
566
567 2008-01-16  Andreia Gaita <avidigal@novell.com>
568
569         * ContainerControl.cs: Add flag to track if a control cancels validation, 
570         so we don't fire click events.
571
572         * Control.cs: 
573         - (HandleClick) Check if validation was cancelled before  firing the click
574         events (doubleclicks are fired, but not clicks)
575         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
576         ContainerControl.set_ActiveControl, but in the case of non-selectable
577         controls, like a Label, activecontrol is not set. 
578
579         * ButtonBase.cs: Only fire clicks if validation passes.
580         
581         Fixes #353310
582
583 2008-01-16  Geoff Norton  <gnorton@novell.com>
584
585         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
586         trunk
587
588 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
589
590         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
591         SelectedPath, just display the default dialog instead of crashing.
592         [Fixes bug #348989]
593
594 2008-01-16  Geoff Norton  <gnorton@novell.com>
595
596         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
597         AddExpose instead of trusting apples compositing manager which doesn't
598         work for our use case.  Remove some dead code causing warnings and 
599         redecorate some other code to prevent warnings.
600
601 2008-01-16  Geoff Norton  <gnorton@novell.com>
602
603         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
604         carbon signals us to redraw.  Fixes another portion of the flickering bug
605
606 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
607
608         * Form.cs: Prevent the MdiParent property to be set when value is the same
609         as value already set. Fixes bug #328019.
610
611 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
612
613         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
614         it prevents NRE when closing mdi child windows. Fixes bug #325211.
615
616 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
617
618         * InternalWindowManager.cs: Invalidade close button after mouse up when 
619         mdi form is prevented to close.
620
621 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
622
623         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
624         thanks to Andy Hume. Fixes bug #325433.
625
626 2008-01-16  Andreia Gaita <avidigal@novell.com>
627
628         * LinkLabel.cs: Reset focused_index when resellecting the control.
629         Fixes #323190
630
631 2008-01-15  Geoff Norton  <gnorton@novell.com>
632
633         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
634         messages.
635
636 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
637
638         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
639         of truncate.
640
641 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
642
643         * ContainerControl.cs: Setting AutoScaleMode to anything should set
644         Form.AutoScale to false.
645         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
646         AutoScaleBaseSize should be changed on Font change unless it has been
647         explicitly set.
648         [Fixes bug #353827]
649
650 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
651
652         * MenuAPI.cs: On instance of MenuTracker check if source control is
653         ToolStripOverflow and use properly method to find form.
654         [Fixes bug #338511]
655
656 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
657
658         [Fixes bug #323241 Transparent toolbar support]
659
660         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
661         is flat.
662
663         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
664         defined in control style to mimic win32 behavior.
665
666         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
667         it will be transparent.
668
669 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
670
671         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
672         CreateParams for ToolBar controls.
673
674 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
675
676         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
677         FixedToolWindow, SizeableToolWindow, or None for border styles have
678         different minimum sizes than regular forms.  Implemented to fix
679         regression in PDN with toolbox being too wide.
680
681 2008-01-14  Andreia Gaita <avidigal@novell.com>
682
683         * HtmlElementCollection.cs: Implemented
684
685         * HtmlElement.cs: Implemented:
686           - All
687           - InnerHtml
688           - InnerText
689           - Id
690           - Name
691           - FirstChild
692
693         * HtmlDocument.cs: Implemented GetElementsByTagName.
694
695 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
696
697         * Screen.cs: Stub BitsPerPixel to always return 32.
698
699 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
700
701         * Form.cs: Implement RestoreBounds.
702
703 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
704
705         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
706         Sebastien and his fabulous magical problem-finding machine:
707         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
708         respect the value set.
709
710 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
711
712         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
713         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
714
715 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
716
717         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
718         messages (to match .Net), we need to remove the capture ourselves.
719
720 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
721
722         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
723         will process the message and close our window.
724         [Fixes bug #324328]
725
726 2008-01-10  Geoff Norton  <gnorton@novell.com>
727
728         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
729         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
730         window manager.
731
732 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
733
734         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
735         failing test.
736
737 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
738
739         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
740         Linux doesn't care, having a minimum matches MS and keeps the window
741         from becoming too small to use window decorations.
742         [Fixes bug #338996]
743
744 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
745
746         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
747         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
748         control.  [Fixes bug #325419]
749
750 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
751
752         * ComboBox.cs: Guard against an NRE if the user open a new form from a
753         SelectedIndexChanged event.  This closes the combobox dropdown, and we
754         were trying to dispose it.  [Fixes bug #352830]
755
756 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
757
758         * Control.cs, Form.cs: Implement the necessary semantics for
759         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
760         to determine if a focus rectangle should be drawn.
761         * PropertyGrid.cs: Fix property visibility to match override.
762         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
763
764 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
765
766         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
767         [Fixes bug #323552]
768
769 2008-01-09  Geoff Norton  <gnorton@novell.com>
770         
771         * XplatUICarbon.cs: Scroll windows in the correct direction.
772
773 2008-01-09  Geoff Norton  <gnorton@novell.com>
774
775         * XplatUICarbon.cs: Track all created utility windows so we can hide them
776         when the app is deactivated or spaces is enabled.
777
778 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
779
780         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
781         extra separation pixel for the label rect origin if SmallImageList is
782         null, and thus we don't need that separation between icon and label
783         rects.
784         Patch by Ernesto Carrea.
785         Fixes # 340195.
786
787 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
788
789         * StatusStrip.cs: Invalidate after completing a layout.  The base
790         OnLayout does this, but we don't call the base.
791         * ToolStripItem.cs: Revert the previous change to invalidate after
792         the item moves.
793         [Fixes bug #351341 better.]
794
795 2008-01-07  Geoff Norton  <gnorton@novell.com>
796
797         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
798         not a notification to exit the application.  Listen for WM_QUIT
799         instead.
800
801 2008-01-07  Andreia Gaita <avidigal@novell.com>
802
803         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
804
805 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
806
807         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
808         so it can repaint at the correct location.
809         [Fixes bug #351341]
810
811 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
812
813         * ListControl.cs: SelectedValue should return a null value if
814         SelectedIndex is -1. Also, when setting it, it should throw an
815         ArgumentNullException if the value is null, as well as taking
816         into account the String.Empty value, instead of ignoring it (we have
817         tests for that now).
818         Fixes part of #324286.
819
820 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
821
822         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
823         SelectionStart is updated after pressing enter.  Fixes bug #351918.
824
825 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
826
827         * TextControl.cs: Revert a piece r92316 that prevented the fix
828         from working when there were multiple tags in the text box.
829         Fixes bug #351881.
830
831 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
832
833         * TextControl.cs: Apply patch from Luke Page that prevents an
834         NRE when determining the beginning of a paragraph.
835         Fixes bug #351886.
836
837 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
838
839         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
840         caret gets moved with clicking away from a selected block of
841         text.  Fixes bug #351885.
842
843 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
844
845         * TextControl.cs: Apply patch from Luke Page that takes line
846         alignment into account for mouse selection, so that center and
847         right aligned text can be selected.
848         Fixes bug #351881.
849
850 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
851
852         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
853         issues after loading an RTF file by using the correct line feeds.
854         Fixes bug #351841.
855
856 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
857
858         * TextControl.cs: When deleting multiple line selections, we need
859         to invalidate every line beginning at the first line of the selection.
860         Patch from Luke Page fixes bug #351791.
861
862 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
863
864         * ListControl.cs: When getting a CurrencyManager.PositionChanged
865         event, don't set SelectedIndex if the number of items is 1. This is
866         because, for the first item, PositionChanged is fired _before_
867         ItemChanged (the place where we actually populate the items), and
868         leave us in a temporary invalid state (since items collection is
869         empty).
870         Fixes #349655.
871
872 2008-01-04  Geoff Norton  <gnorton@novell.com>
873
874         * XplatUICarbon.cs:  Create native toolwindows instead of
875         the managed drawing ones.
876
877 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
878
879         * LineTag.cs: If the line doesn't have any characters, return
880         0 for GetCharIndex.  Fixes an AOORE exception after certain
881         caret movements.  Fixes bug #351683.  Patch by Luke Page.
882
883 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
884
885         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
886         is hit when there is selected text, only the selected text gets
887         deleted, not the character in front of the selection as well.
888         Fixes bug #351578.
889
890 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
891
892         * ComboBox.cs: When the values are displayed, calculate the
893         ComboListBox scrollbar's LargeChange based on the visible area's
894         height and  the actuall ItemHeight, instead of calculating it
895         based on MaxDropItems value, since it's not used by our _current_ 
896         2.0 profile.
897         Fixes #332366.
898
899 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
900
901         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
902         Patch from Luke Page that fixes issues with font colors and styles
903         not showing up in a readonly RichTextBox.  Fixes bug #324354.
904
905 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
906
907         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
908         from Luke Page.  This one fixes bug #349926.
909
910 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
911
912         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
913         an item in the IBindingList source changes with
914         ListChangedType.ItemAdded. Ignore for now firing the event for other
915         changes, since we want to have tests for those cases as well.
916
917 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
918
919         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
920         created.
921
922 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
923
924         * TextBoxTextRenderer.cs: Implement a cache for measuring each
925         character.  This is effective because the typical usage of a
926         TextBox is with a limited amount of fonts and characters, and
927         the current implementation of TextBox measures everything one
928         character at a time.  Another second or two speedup for bug #347238.
929
930 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
931
932         * Control.cs: Rewrite the Font getter to only query the parent's
933         Font property once instead of twice.  Since this operation is
934         recursive, the queries were growing exponentially as the control
935         tree got deeper.  Another second or two speedup for bug #347238.
936
937 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
938
939         * Control.cs: Avoid setting a parent (and more importantly, updating
940         the zorder of all its children) if the parent is already correct in
941         WmShowWindow.  Decreases the startup time of the test case on bug
942         #347238 from 35 seconds to 11 seconds.
943
944 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
945
946         * X11Dnd.cs: When the dnd operation has started and we are 
947         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
948         This is done to match .Net, which doesn't send those messages after
949         dnd operation was completed/cancelled.
950         Fixes #349922.
951
952 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
953
954         * ToolStrip.cs: Previous change should be != null, not == null.
955         Thanks Gert!
956
957 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
958
959         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
960         user may have moved the mouse off the current item during the event.
961
962 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
963
964         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
965         calling GetItemAt for every MouseMove event by also taking into
966         account whether any mouse button is pressed (probably dragging); 
967         if so, we can call GetItemAt, and if not, try to not call it 
968         (GetItemAt can be quite expensive when used with a large number of items).
969
970 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
971
972         * ListView.cs: Implement -finally- support for dnd, by calling
973         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
974         authors list ;-).
975         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
976         simple calculation of distances for all the items in the owner
977         listview.
978
979 2007-12-21  Geoff Norton  <gnorton@novell.com>
980
981         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
982         for windows that are originally created as invisible.  Fixes missing
983         main window in paint-mono.
984
985 2007-12-21  Geoff Norton  <gnorton@novell.com>
986
987         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
988         subclass handler for com.novell.mwfview subclassing HIView.  Implement
989         Pasteboard and Dnd methods.
990
991 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
992
993         * ListBox.cs: When we got focus, give focus to first item if there
994         wasn't any pervious focused item. Also update navigation to depend on
995         SelectedIndex rather than FocusedItem, just as .Net does.
996         Fixes #349174.
997
998 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
999
1000         * ListBox.cs: Both FindString and FindStringExact methods must do an
1001         case insensitive search, should allow the last valid index to be
1002         passed in the overload taking an initial index, and should also
1003         continue searching from the top back to the specified index when it
1004         reaches the bottom.
1005
1006 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1007
1008         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
1009         redraw issue, and allows RichTextBox to draw colored text even while
1010         disabled or readonly.
1011
1012 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1013
1014         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
1015         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
1016         and doesn't grey text in a disabled RichTextBox.
1017
1018 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1019
1020         * RichTextBox.cs: Apply patch from Luke Page that adds better support
1021         for many RTF commands: quad alignment, separate formatting for blocks
1022         inside groups, and ParDef support.  Makes the test case from bug #324589
1023         look much better.
1024
1025 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1026
1027         * LineTag.cs: Fix an error in the new Draw method that caused
1028         a crash when rendering the document on bug #324589.
1029
1030 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1031
1032         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
1033         TextControl.cs: Apply patch from Luke Page that adds support
1034         for URL links in RichTextBox.
1035         [Fixes enhancement #342516]
1036
1037 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
1038
1039         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
1040         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
1041
1042 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1043
1044         * ListBox.cs: When a key gets pressed, try to find a string
1045         if the key is a character or a digit.
1046         Fixes #343971.
1047
1048 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
1049
1050         * TableLayoutPanel.cs: Remove some unused variables.
1051
1052 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
1053
1054         * DateTimePicker.cs: Commit patch from Luke Page that ensures
1055         we don't end up at an invalid date when we click the up/down
1056         spinner to change the month or year.  Fixes bug #348682.
1057
1058 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
1059
1060         * Application.cs: Calling Exit in 2.0 should chain to the
1061         Exit (CancelEventArgs) version so it can be cancelled.
1062         * Form.cs: Create a flag to allow raising the Closing
1063         events to be skipped.  We raise them once in Application.Exit
1064         and don't want to raise them again when the Form is actually
1065         closed.  [Fixes bug #349073]
1066
1067 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
1068
1069         * ToolStripDropDown.cs: Guard against an NRE when there
1070         hasn't been a mainform set in the application context.
1071         [Fixes bug #349108]
1072
1073 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1074
1075         * ListBox.cs: When SetBoundsCore gets called, besides
1076         calling UpdateScrollBars, update the value of
1077         last_visible_index, since we could need to show more items
1078         than before, and we need to let the paint routines know that.
1079         Fixes #344445.
1080
1081 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1082
1083         * ListView.cs: Add DesignerSerializationVisibility attribute to
1084         InsertionMark property.
1085         * ListViewItem.cs: Add same attribute to Position property.
1086
1087 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1088
1089         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
1090         is 2.0 only.
1091
1092 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
1093
1094         * ThemeWin32Classic.cs: Don't draw the background on a
1095         flat button if there is a background image.
1096         [Fixes bug #348649]
1097
1098 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1099
1100         * ListBox.cs: If we remove the item currently selected,
1101         remove it not only from SelectedItems, but also
1102         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
1103         the items count decreased and focused_item has bigger value than that.
1104
1105 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
1106
1107         * Control.cs: Perform our layout after we resize ourselves
1108         if we had to adjust our AutoSize.  Missed commit for bug
1109         #346246.
1110
1111 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
1112
1113         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
1114         we can provide an implementation of AutoSize.
1115         [Fixes bug #346246]
1116
1117 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1118
1119         * ListBox.cs: Add the internal overload Sort (bool paint),
1120         to indicate whether we actually need a paint or we will
1121         call Refresh ourselves. This way we don't request a paint
1122         _before_ having an updated and valid layout.
1123         Fixes #347233.
1124
1125 2007-12-12  Andreia Gaita <avidigal@novell.com>
1126
1127         * XPlatUIX11.cs: Send paint messages when updating a systray icon
1128         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
1129         properly invalidated. 
1130         Fixes #324237
1131
1132 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1133
1134         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
1135         don't simply assign it to our internal group field, but instead 
1136         use our Group property, which should do all the neccessary work
1137         required to support groups. Fixes an issue reported to me (mail) by a 
1138         guy using this new feature.
1139
1140 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
1141
1142         * Control.cs: Use Scale instead of ScaleControl to ensure the
1143         whole hierarchy gets scaled.
1144         [Fixes bug #347282]
1145
1146 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
1147
1148         * DateTimePicker.cs: Don't set the internal MonthCalendar's
1149         Parent property.  Doing this causes the control to be hosted by
1150         the Form instead of being a popup window.
1151         [Fixes bug #347665]
1152
1153 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
1154
1155         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
1156         at an index higher than Count, just use Add instead of Insert.
1157         [Fixes bug #347669]
1158
1159 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
1160
1161         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
1162         DrawPictureBox, this is handled by Control.PaintBackground.
1163         [Fixes bug #347276]
1164
1165 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
1166
1167         * MenuAPI.cs: When process menu keys return true by default only if menu is
1168         active. Fixes bug #342892.
1169
1170 2007-12-09  Andreia Gaita <avidigal@novell.com>
1171
1172         * Control.cs: check if windows are actually mapped before
1173         trying to zorder. Fixes #342509, #346955
1174
1175 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1176
1177         * ListView.cs:
1178         * ListViewInsertionMark.cs:
1179         * ThemeWin32Classic.cs: Implement the drawing side of the
1180         new 2.0 ListView.InsertionMark property.
1181
1182 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
1183
1184         * CurrencyManager.cs: Silence some debug spew.
1185
1186 2007-12-07  Geoff Norton  <gnorton@novell.com>
1187         
1188         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
1189         masks for our children as well as siblings to avoid having to query
1190         Quartz for this information.
1191         * XplatUICarbon.cs: Implement a delegate based system to pass
1192         information to System.Drawing.  Implement Async methods.  Remove
1193         the hack for the resize thumb and imlpement a transparent Grow Box.
1194         Rework the messaging system to proplery create window's and messages,
1195         fixes TabControl.
1196
1197 2007-12-06  Andreia Gaita <avidigal@novell.com>
1198
1199         * X11Keyboard.cs: Use Xutf8LookupString to support international 
1200         characters under alternate codepages. Patch from #340878
1201
1202 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1203
1204         * ListView.cs: When doing layout computations, set position in the
1205         ListView instances (we cache the position just as .Net does).
1206         * ListViewItem.cs: New internal setter method for Position. Also set
1207         position field as also available in 1.1, since we are going to use it
1208         now in the common case.
1209
1210 2007-12-06  Andreia Gaita <avidigal@novell.com>
1211
1212         * Control.cs: When removing controls, get the actual container
1213         to notify about active control changes. Fixes 341314.
1214
1215 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1216
1217         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
1218
1219 2007-12-05  Andreia Gaita <avidigal@novell.com>
1220
1221         * Control.cs: When updating the zorder, ignore windows that are not
1222         mapped. Fixes #342509
1223
1224 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1225
1226         * ListViewItem.cs: Actually implement serialization on this class.
1227
1228 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
1229
1230         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
1231         LinkCollection. Spaces to tabs, and removed extra tabs.
1232
1233 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1234
1235         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
1236           tests to fail (hopefully).
1237
1238 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
1239
1240         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
1241         the image margin so custom renderers can correctly place it.
1242
1243 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
1244
1245         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
1246         so custom renderers can correctly place it.
1247
1248 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
1249
1250         * Application.cs: Let WM_CHAR messages flow through to controls
1251         hosted in Strips.  [Fixes bug #343972]
1252
1253 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
1254
1255         * ToolStripManager.cs: Guard against an NRE I ran into.
1256
1257 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
1258
1259         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
1260         a Link is manually added to the Links collection, we need to set
1261         its owner, so it can invalidate properly.
1262         [Fixes bug #344012]
1263
1264 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1265
1266         * ListView.cs: When changing ListViewItem.Position (which calls
1267         ListView.ChangeItemLocation), invalidate not only the area
1268         corresponding to the main item, but also to the area occupied
1269         by the items being moved.
1270
1271 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1272
1273         * ListView.cs: When changing the position of a given item,
1274         don't use item bounds, but item areas (which includes the item spacing
1275         between them). Also, use first/last position if the requested
1276         position is outside bounds (as .Net does). Invalidate the previous and
1277         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
1278         in a specific position, instead of directly accessing Items collection
1279         (this is done to get the right item - remember an Item can have a
1280         different position in the grid than in the Items collection).
1281
1282 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
1283
1284         * MessageBox.cs: Calculate text area instead of just top left, this rect 
1285         area will be used in DrawString. Fixes bug #343364.
1286
1287 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
1288
1289         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
1290         screen width. Partially fixes bug #343364.
1291
1292 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
1293
1294         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
1295         code inside recalculate, it makes code more simple.
1296
1297 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
1298
1299         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
1300         between update or add icon. Fixes bug #324344.
1301
1302 2007-11-21  Andreia Gaita <avidigal@novell.com>
1303
1304         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
1305         window manager, since that stretches the drawing area to include
1306         the window decorations, and they get hidden. Reverts r84444 and fixes
1307         #335849 and #342790 (mdi and pdn3 regression)
1308
1309 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1310
1311         * ListView.cs: When setting focused item, try to give focus to the
1312         previous one _only_ if the previous one remains valid. 
1313         Fixes #342504.
1314
1315 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
1316
1317         * Application.cs: Revert r89650, as it broke a common case to fix
1318         an obscure case.  Fixes bug #342606.
1319
1320 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
1321
1322         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
1323
1324 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
1325
1326         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
1327         alignment. [Fixes #324228]
1328
1329 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
1330
1331         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
1332         [Fixes bug #342123]
1333
1334 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
1335
1336         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
1337         it prevent problems when empty captions. [Fixes #342141]
1338
1339 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
1340
1341         * Label.cs: Use Size instead of None.  Fixes bug #342077.
1342
1343 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1344
1345         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
1346
1347 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
1348
1349         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
1350         but there isn't a MdiContainer.
1351         [Fixes bug #342358]
1352
1353 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
1354
1355         * TextControl.cs: Don't recalculate document if the recalc_start and
1356         recalc_end hasn't changed.
1357         [Fixes bug #342505]
1358
1359 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
1360
1361         * DataGridViewTextBoxCell.cs: Removed CWL.
1362
1363 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1364
1365         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
1366
1367 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
1368
1369         * TextControl.cs: Missed some code for bug 341534 to trigger a
1370         recalculation when the font changes.
1371
1372 2007-11-16  Andreia Gaita <avidigal@novell.com>
1373
1374         * Control.cs: When updating the zorder, check if the child to update is
1375         the same control that is set to always be on top (i.e., scrollbars), and 
1376         just put it on top directly. Fixes BadMatch error on pdn3
1377
1378 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1379
1380         * ListView.cs: Throw the needed exceptions for FindNearestItem.
1381
1382 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
1383
1384         * Control.cs: Don't perform a new layout when a label changes its text,
1385         cause label handles its own autosizing.
1386         [Fixes bug #342077]
1387
1388 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1389
1390         * ListView.cs: Implement 2.0 FindNearestItem methods.
1391
1392 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
1393
1394         * ToolStripPanel.cs: Make Join at least add the control to the panel,
1395         even if the rest of what Join does isn't supported.  Add some more
1396         support for vertical toolbars.
1397         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
1398         [Fixes the application breaking parts of bug #341998]
1399
1400 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
1401
1402         * ToolStripItem.cs: When determining if we have a check/image margin,
1403         we need to look at ShowCheckMargin as well as ShowImageMargin.
1404
1405 2007-11-15  Geoff Norton  <gnorton@novell.com>
1406
1407         * XplatUIOSX.cs: Rename to...
1408         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
1409         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
1410
1411 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
1412
1413         * KeysConverter.cs: The default values should be an array of Keys, not
1414         strings.  Also, the array has more values for 2.0.
1415         [Fixes bug #341851]
1416
1417 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
1418
1419         * Application.cs: Change ExecutablePath to use 
1420         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
1421         [Fixes bug #323552]
1422
1423 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
1424
1425         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
1426         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
1427         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
1428         be ignored.  Create a new GetLineEnding that can specify which types of
1429         line endings to look for.  On Insert, only create new lines for \n and \r\n.
1430         [Fixes bug #324274]
1431
1432 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
1433
1434         * TextBoxBase.cs: As we loop through each line changing the font, tell
1435         the document that the line needs to be recalculated.  Fixes bug #341534.
1436
1437 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
1438         [Another round of refactoring]
1439         * Line.cs: Add DeleteCharacters.
1440         * LineTag.cs: Add Delete.
1441         * TextBoxBase.cs: Update to use new methods.
1442         * TextControl.cs: Refactor the Delete* methods.
1443
1444 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
1445
1446         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
1447         the patch. [Fixes #324856]
1448
1449 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1450
1451         * ListView.cs:
1452         * ListViewItem.cs: Add an initial implementation of
1453         2.0 ListViewItem.Position getter.
1454
1455 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1456
1457         * ListView.cs: Add a reordered_items_indices array, to allow us
1458         to have a different sorting than that of Items (the sorting in Items
1459         could not match the actual sorting in screen). This is needed to
1460         implement a pair of 2.0 features.
1461         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
1462         actual position in the ListView grid, since it could have a position
1463         different than its Index (position in ListViewItemCollection). 
1464
1465 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
1466
1467         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
1468         not draw partial lines.
1469         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
1470         LineLimit flag from the base is preserved.
1471         Fixes the windows part of bug #338965.
1472
1473 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
1474
1475         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
1476         so that it can be canceled in KeyPress.
1477         Fixes bug #340078.
1478
1479 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1480
1481         * ListView.cs: In ItemControl, reset mouse-handling related
1482         fields even if we dont' have items (we still should reset them when
1483         we had items but then called Items.Clear). Partially based in a patch
1484         by George Giolfan.
1485         Fixes #338399.
1486
1487 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
1488
1489         * Application.cs: In ProductVersion first try AssemblyFileVersion
1490         before falling back to assembly version. Fixes bug #339787.
1491
1492 2007-11-08  Andreia Gaita <avidigal@novell.com>
1493
1494         * HtmlElement.cs: Implement InnerText setter.
1495         * WebBrowserBase.cs: Implement Navigated event support.
1496         Add flag to track when the browser "document" is ready to be retrieved.
1497         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
1498         Make sure browser document is ready before retrieving it.
1499         Clean up cached objects (document) when moving to a new page through
1500         any of the navigation methods.
1501         Use the new Mono.WebBrowser.INavigation interface to control navigation.
1502         Implement OnNavigated event.
1503
1504 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
1505
1506         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
1507         DrawLinkLabel, this is handled by OnPaintBackground.
1508         Fixes bug #339565, part II.
1509
1510 2007-11-07  Andreia Gaita <avidigal@novell.com>
1511
1512         * Control.cs: Revert r88915. Selecting text on a textbox depends on
1513         getting a Select call on click, so this call needs to be here for now.
1514         Unfixes #325809
1515
1516 2007-11-07  Geoff Norton  <gnorton@novell.com>
1517
1518         * OSXStructs.cs: Add the kEventClassApplication constants.
1519         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
1520         application is deactivated otherwise Menu overlays linger on top of
1521         other application windows.
1522
1523 2007-11-07  Geoff Norton  <gnorton@novell.com>
1524
1525         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
1526         dont support cursors yet anyways.  This allows Reflector to run.
1527
1528 2007-11-07  Geoff Norton  <gnorton@novell.com>
1529
1530         * XplatUIOSX.cs: Implement DragSize.
1531
1532 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1533
1534         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
1535         ItemControl, request the focus, as .Net does. This is needed after 
1536         Control does not request focus anymore when it receives a
1537         WM_LBUTTONDOWN.
1538
1539 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
1540
1541         * Label.cs: Make DrawImage internal so it can be called from Theme code.
1542         Remove the DrawImage call from OnPaint.
1543         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
1544         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
1545         but before we draw the text for DrawLabel and DrawLinkLabel.
1546         Fixes bug #339565.
1547
1548 2007-11-05  Andreia Gaita <avidigal@novell.com>
1549
1550         * Control.cs: Remove select call on click. Fixes #325809
1551
1552 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1553
1554         * ListViewItem.cs: Add 2.0 Position property getter.
1555
1556 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1557
1558         * ListView.cs: Add 2.0 BackgroundImageTiled property.
1559         Also, to make it work properly, change item's BackColor and
1560         BackgroundImageLayout as needed.
1561         * ThemeWin32Classic.cs: Don't fill any background rectangle 
1562         in ListView.ItemControl when drawing items; just let the Control
1563         base implementation fill it.
1564
1565 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1566
1567         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
1568         as well as adding a custom 'dummy' Converter, as .net does.
1569
1570 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1571
1572         * PropertyGridView.cs: When clicking drop-down button,
1573         select an index in the listbox only if our standard values collection 
1574         has one or more items.
1575
1576 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1577
1578         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
1579         property.
1580
1581 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1582
1583         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
1584         the value is not changed. This ensure a pushed button remains in that
1585         state when clicked again. When switching the value of PropertySort
1586         between Categorized and CategorizedAlphabetical, do not update the
1587         grid items and do not fire a PropertyChangedEvent. When clicking the
1588         sorting buttons, do not modify the PropertySort value when switching
1589         between Categorized and CategorizedAlphabetical but only update the
1590         button state.
1591
1592 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1593
1594         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
1595         formatting.
1596         * PropertyGrid.cs: Also put Categorized button in pushed state when
1597         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
1598         for help description label.
1599
1600 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1601
1602         * ListView.cs: When calculating the biggest item for a given column,
1603         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
1604         the item's width.
1605
1606 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
1607
1608         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
1609         value for PropertySort on 1.0 profile. PropertySortChanged event
1610         should only be fired on 2.0 profile. Fixed NullReferenceException
1611         in UpdateSortLayout when PropertyGrid contains no items.
1612
1613 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
1614
1615         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
1616         [Fixes bug #338554]
1617
1618 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1619
1620         * ListViewItem.cs: Implement 2.0 IndentCount property.
1621
1622 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1623
1624         * X11Dnd.cs: When sending status in a dnd operation, compare current
1625         effect with the 'allowed' field instead of 'drag_data.Allowed', since
1626         the later is only created when a Winforms application is both the
1627         source and the target, but not when we are the target only.
1628         Fixes part of #324251.
1629
1630 2007-11-01  Geoff Norton  <gnorton@novell.com>
1631
1632         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
1633         order of Z-Order.
1634         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
1635         children out of the drawing view on mac.
1636         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
1637         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
1638         
1639 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
1640
1641         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
1642         on the non-hosted-control part of it shouldn't do anything.
1643         Fixes part of bug #327498.
1644
1645 2007-11-01  Andreia Gaita <avidigal@novell.com>
1646
1647         * WebBrowserBase.cs: revert previous change, resize can be called anytime
1648
1649 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
1650
1651         * Application.cs: When a toolstrip has the keyboard input loop, let messages
1652         it does not use flow through to controls that are hosted in menus.
1653         Same with mouse clicks.
1654         * Form.cs: Don't close all menus on click if the click is on a
1655         control hosted in a menu.
1656         Fixes part of bug #327498, and part of bug #325969.
1657
1658 2007-10-31  Andreia Gaita <avidigal@novell.com>
1659
1660         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
1661
1662 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
1663
1664         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
1665         Addresses an issue raised in bug #336218.
1666
1667 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
1668
1669         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
1670         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
1671
1672 2007-10-30  Andreia Gaita <avidigal@novell.com>
1673
1674         * ContainerControl.cs: Check if the active control is a
1675         child of a removed control and update active_control accordingly.
1676         Fixes #329718
1677
1678 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1679
1680         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
1681         or the MaxDate.  Fixed bug #337693.
1682
1683 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1684
1685         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
1686         after calling SetWindowLong for a form, to force an immediate NC refresh.
1687         Fixes first part of bug #325150.
1688
1689 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1690
1691         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
1692         simple.  Fixes the last part of bug #322668.
1693
1694 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1695
1696         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
1697         needs to be TopMost as well, or else the MessageBox is under the form.
1698         Patch by George fixes bug #325300.
1699
1700 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1701
1702         * X11Dnd.cs: When starting a new drag operation, reset the static
1703         'dropped' field to false (previously the implementation didn't reset
1704         it and got confused after the first drag).
1705         Fixes #325071.
1706
1707 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1708
1709         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
1710         items instead of re-creating them all. For this purpose we now cache
1711         both CategoryGridEntry items and the GridEntries for the main object's
1712         properties.
1713         * GridItem.cs: Make SetParent method abstract.
1714         * GridEntry.cs: Override the SetParent method (already there, but now
1715         we override it).
1716         Fixes #324866.
1717
1718 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1719
1720         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
1721         depending on its depth (as .Net does). Update the needed values in
1722         MouseDown handler. Also draw the plus/minus rect after the label,
1723         so we don't draw on top of it.
1724
1725 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
1726
1727         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
1728         processed by forms or controls when menu is active. [Fixes #333548]
1729
1730 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1731
1732         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
1733         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
1734         focus on mouse over.
1735
1736 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1737
1738         * TextControl.cs: Code cleaning, simplifying.
1739
1740 2007-10-24  Geoff Norton  <gnorton@novell.com>
1741
1742         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
1743         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
1744
1745 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1746
1747         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
1748         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
1749
1750 2007-10-24  Andreia Gaita <avidigal@novell.com>
1751
1752         * SendKeys.cs: apply jpobst's patch to bug #332409
1753
1754 2007-10-23  Andreia Gaita <avidigal@novell.com>
1755
1756         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
1757         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
1758         for some reason
1759
1760 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1761
1762         * PropertyGridView.cs: If a property has an UIEditor available,
1763         make the drop-down/editor button available only if the property
1764         is _not_ read only.
1765
1766 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1767
1768         * PropertyGridView.cs: Don't make the grid item textbox 
1769         editable when a drop-down control is available, but 
1770         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
1771         true. The same bur the color of the grid item value's label.
1772
1773 2007-10-22  Geoff Norton  <gnorton@novell.com>
1774
1775         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
1776         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
1777         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
1778         driver.  Padd the bottom of all real windows so the resize thumb doesn't
1779         obscure scroll/status bars.
1780
1781 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
1782
1783         * WindowsFormsSection.cs: Implement.
1784
1785 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
1786
1787         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
1788         closed see #325434 patch.
1789
1790 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
1791
1792         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
1793         see #325434 patch.
1794
1795 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1796
1797         * PropertyGridView.cs: When showing the textbox for a grid item,
1798         have two local variables to store the read-only and non-editable
1799         status of a grid item (we were previously using just one variable
1800         to do this, when actually they are slightly different).
1801         Fixes part of #325023.
1802
1803 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1804
1805         * PropertyGridView.cs: When showing a drop-down list, try to get the
1806         values using TypeConverter.ConvertTo (to convert to a string). Fixes
1807         part of #325023.
1808
1809 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1810
1811         * PropertyGrid.cs: When updating a property and populating sub grid
1812         items, remove the previous ones, and invalidate the specific area.
1813         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
1814         area behind a grid item.
1815         * GridItemCollection.cs: Add an internal Clear method, to allow us to
1816         clean the items if needed (specially for controls implementing 
1817         ICustomTypeDescriptor and returning a variable number of properties).
1818         Fixes #324865.
1819
1820 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
1821
1822         * TextControl.cs: Clean up and document the Insert function.
1823
1824 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1825
1826         * TextControl.cs: Make sure we know our start point for updating the view
1827         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
1828         update the view.
1829
1830 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1831
1832         * ListView: Couple of corcompare fixes.
1833
1834 2007-10-17  Geoff Norton  <gnorton@novell.com>
1835
1836         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
1837         the title caption of real window.
1838
1839 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1840
1841         * ErrorProvider.cs: Add the error provider's internal window to a 
1842         containercontrol when the parent changes.  [Fixes bug #329714]
1843
1844 2007-10-17  Geoff Norton  <gnorton@novell.com>
1845
1846         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
1847         When we make a new window; restore the old active window - fixes dialogs.
1848
1849 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1850
1851         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
1852         when modifying a property, and if found then invalidate as
1853         requested.
1854         Fixes part of #324865.
1855
1856 2007-10-17  Geoff Norton  <gnorton@novell.com>
1857
1858         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
1859         highly experimental.  Fixed coordinate translation.  Fixed window locations.
1860         Initial support for clipping. Implemented NC areas and menus.  Support for
1861         launching from command line from Will Johansson (wjohansson@atacomm.com).
1862         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
1863         wjohansson@atacomm.com)
1864         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
1865         Hwnds now track the existence of all of their children for Mac clipping.
1866     * XplatUI.cs: Re-enabled the native driver on the Mac.
1867
1868 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1869
1870         * Line.cs: Move the InsertString function to here.
1871         * TextControl.cs: Cleanup some duplicate code, move some InsertString
1872         functionality to Line.
1873
1874 2007-10-17  Geoff Norton  <gnorton@novell.com>
1875
1876         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
1877
1878 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
1879
1880         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
1881         always setting value to true.
1882         * Form.cs: When changing AcceptButton, notify new and original button.
1883
1884 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
1885
1886         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
1887         a custom control that implements IButtonControl instead of an actual
1888         button.  [Fixes bug #334244]
1889
1890 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
1891
1892         * Form.cs: Change SelectActiveControl to internal, we need to call it in
1893         MdiWindowManager.
1894         
1895         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
1896         active control when activate a new mdi window.
1897         
1898         [Fixes bug #330495]
1899
1900 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
1901
1902         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
1903         is already added.
1904         [Fixes bug #333617]
1905
1906 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1907
1908         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
1909         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
1910         so we always recalculate the whole document instead of just the new part.
1911         [Fixes bug #325082]
1912
1913 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1914
1915         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
1916         when the mouse was to the left of the first character in the line.
1917
1918 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1919
1920         * TextBox.cs, TextBoxBase.cs: When setting the document's password
1921         character, use the property instead of the variable so that the
1922         UseSystemPasswordChar property is taken into account.
1923         [Fixes bug #333748]
1924
1925 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1926
1927         * FolderBrowserDialog.cs: When a node is right clicked and the "New
1928         folder" contex menu appears, actually add the new folder to it, even
1929         if the node is not currently selected. Still use SelectedNode in case 
1930         there wasn't found a node under the pointer.
1931         Fixes #325452.
1932
1933 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1934
1935         * ListViewItem.cs: When retrieving the focused state, the index check
1936         should be done only when ListView is in virtualmode, as it is an
1937         expensive check for normal mode.
1938
1939 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1940
1941         * ListViewItem.cs: Make the focus state information be stored
1942         in the ListView, not in the items. This is done to match the MS
1943         behaviour for items that are not yet part of a ListView control;
1944         besides that, since just one item can be focused at the same time,
1945         we save a little space in our items.
1946         Fixes part of #331643.
1947
1948 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1949
1950         * ComboBox.cs: When focus is lost, deselect the text. When setting
1951         text of control, select all text. Do not hide selection when control
1952         does not have focus. Fixes bug #333663.
1953
1954 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1955
1956         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
1957         instead of ArgumentException when SelectionLength is set to negative
1958         value. Added same check to SelectionStart. Code formatting.
1959
1960 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1961
1962         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
1963         or SelectionStart. Code formatting.
1964
1965 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1966
1967         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
1968         indicating that there was not a previous drag-and-drop operation going
1969         on.
1970         Fixes part of #325071.
1971
1972 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1973
1974         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
1975         AllowedEffect, don't let the drop operation happen. 
1976         Fixes #32580.
1977
1978 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1979
1980         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
1981
1982 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1983
1984         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
1985         is called.
1986
1987 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1988
1989         * Line.cs: Add a method that finds the tag that contains an x-coord.
1990         * LineTag.cs: Add a method that finds the character at an x-coord using
1991         a binary search, the old way was a linear search.
1992         * TextControl.cs: Change FindCursor to use the above new methods.
1993
1994 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1995
1996         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
1997         value different than AllowedEffect). This should be possible to
1998         indicate that dragging is not possible in some control/area.
1999
2000 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
2001
2002         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
2003         descent internally when font changes instead of outside code being responsible
2004         for setting it.
2005         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
2006         instead of accessing internal variables.
2007
2008 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
2009
2010         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
2011         remove special treatment for ArrangeIcons since it is already arranged.
2012
2013 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2014
2015         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
2016         the Win32 backend uses Color.
2017         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
2018         Refactor to store a Color instead of a Brush for Color.
2019
2020 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2021
2022         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
2023         away.  I didn't realize I needed this when I refactored these earlier.
2024
2025 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2026
2027         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
2028         store a Color structure and use the ResPool for back color instead of
2029         holding onto brushes.
2030
2031 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2032
2033         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
2034         [Fixes bug #325592]
2035
2036 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2037
2038         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
2039         to recalculate its size.  Fixes a part of bug #331052.
2040
2041 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2042
2043         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
2044         button.  Fixes a part of bug #331052.
2045
2046 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2047
2048         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
2049         the CreateParams.
2050         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
2051         decorations.
2052         [Fixes bug #330986]
2053
2054 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2055
2056         * TextBoxTextRenderer.cs: Don't make this a static class, as static
2057         doesn't exist in 1.1.  (Thanks jb!)
2058
2059 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2060
2061         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
2062         class to allow us to use different backends on different platforms.
2063         Linux uses the current [Draw|Measure]String backend.  Windows uses
2064         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
2065         of GDI+.  This leads to better looking text and more accurate measurements
2066         on Windows, fixing many of the reported issues.
2067         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
2068
2069 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2070
2071         * FolderBrowserDialog.cs: When running on Windows,
2072         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
2073         since we must match both "C:" and "C:\" forms. A little hackish, but
2074         works.
2075         Fixes #325247.
2076
2077 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2078
2079         * ListView.cs: When calling EndEdit (after editing an item),
2080         create a new instance of LabelEditEventArgs to keep clean the fields
2081         in case we get a new call to BeginEdit; also do Application.DoEvents
2082         to have focus in synch. This is a fix similar to TreeView's #325244.
2083
2084 2007-10-07  Andreia Gaita <avidigal@novell.com>
2085
2086         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
2087         * WebBrowserBase.cs: Added dialog support, calling the
2088           WebBrowserDialogs classes for each specific dialog type.
2089
2090 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2091
2092         * ListView.cs: When the last item is focused and is removed,
2093         move the focus to the previous item (in Items order). This is what MS
2094         does.
2095         Fixes #330415.
2096
2097 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2098
2099         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
2100         instead of the opposite (RemoveAt call Remove). This is a better
2101         approach since we don't need to to a pair of traversals when using
2102         RemoveAt.
2103
2104 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2105
2106         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
2107         check that the node actually has nodes, and if not, move to the
2108         parent node instead. 
2109         Fixes #325265.
2110
2111 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2112
2113         * TreeView.cs: Move the previous change to the general case (to
2114         call Application.DoEvents in cases where the method was called by
2115         different places).
2116
2117 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2118
2119         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
2120         call Application.DoEvents. This is neccessary when we get a call to
2121         BeginEdit from an AfterLabelEdit handler, because the focus always
2122         goes to the TreeView, even if we try to give it to our
2123         LabelEditTextBox. The call do Application.DoEvents seems to
2124         synchronize the focus, basically.
2125         Fixes #325244.
2126
2127 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2128
2129         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
2130         should be false. This also removes some nasty recursive paths. Fixes
2131         part of #325244.
2132
2133 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
2134
2135         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
2136         state to normal. Also resize window when cascading. Fixes #325433. 
2137
2138 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
2139
2140         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
2141         DefaultForeColor, as drawing empty colored lines isn't very useful.
2142         [Fixes the not drawn lines part of bug #324358]
2143
2144 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
2145
2146         * TextControl.cs: Move Line and LineTag classes into separate files to
2147         make things easier to find.
2148         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
2149         * RichTextBox.cs: Capitalize LineTag.Length property access.
2150         - This is purely an organizational/formatting change, no logic changed. -
2151
2152 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2153
2154         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
2155         text is empty.
2156
2157 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2158
2159         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
2160         text is empty.
2161
2162 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2163
2164         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
2165         prevent calling of OnBackColorChanged. Fixes #325321.
2166
2167 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2168
2169         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
2170         because control can be disabled because owner is disabled.
2171
2172 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
2173
2174         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
2175         string.Empty, test failed from previous change.
2176
2177 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
2178
2179         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
2180         is null, not String.Empty.  See bug #323038.
2181
2182 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
2183
2184         * TextControl.cs: Change the margins to match MS a little better.
2185         Still not perfect for X11 due to some DrawString differences, but
2186         is still an improvement over the old stuff.
2187         Partially fixes #324467.
2188
2189 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2190
2191         * FolderBrowserDialog.cs: When using MyComputer as 
2192         RootFolder, let absolute paths be considered as valid ones. Also, use
2193         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
2194         for Windows compatibility.
2195         Partially fixes #325247.
2196
2197 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2198
2199         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
2200         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
2201         method, since it causes the dialog to not select folders directly
2202         under the root path (when setting SelectedPath property).
2203
2204 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2205
2206         * TreeNode.cs: When calling Expand/Collapse and need to call 
2207         ExpandBelow/CollapseBelow respectively, take into account
2208         partially visible nodes (previously Expanding/Collapsing
2209         a partially visible node in the bottom was not updating its +- sign).
2210
2211 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2212
2213         * TreeView.cs: When calling Expand on a TreeNode, and we need to
2214         expand nodes below (ExpandBelow), scroll the entire Viewport
2215         area if the node is above it and not visible (instead of scrolling
2216         the area from node's Bottom, which applies only when the node is
2217         visible).
2218         Fixes #325266.
2219
2220 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2221
2222         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
2223         node in the bottom area (as .Net does). This is done to preserve the
2224         scroll position when ExpandAll is called before handle is created for
2225         the 1.1 profile (bottom area, as opposed to top area in 2.0).
2226         Fixes #324103.
2227
2228 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2229
2230         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
2231         bottom area if we are in fact not using the vertical scroll bar.
2232         Fixes #324824.
2233
2234 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
2235
2236         * Control.cs: Comment out a double buffering optimization that doesn't
2237         take into account invalidates created in OnPaint, causing the control
2238         to never be redrawn.  It would take quite a bit of work to work around
2239         this, but I left it commented with an explanation for later possible
2240         optimization.
2241         [Fixes bug #328681]
2242
2243 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
2244
2245         * Control.cs: Ask parent to perform a layout if control is AutoSize and
2246         the text changes.
2247         * RadioButton.cs: Implement GetPreferredSizeCore.
2248         [Fixes bug #328672]
2249
2250 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
2251
2252         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
2253         corcompare stuffs.
2254
2255 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
2256
2257         * Application.cs: Move the sync context stuff to Run instead of RunLoop
2258         so that it doesn't get uninstalled on modal forms.
2259         * Control.cs: Install a sync context when a control is created.
2260         * WindowsFormsSyncronizationContext.cs: Create a private static control
2261         to invoke on.  This is easier than trying to find a created control we
2262         can use.
2263         [Fixes bug #327608]
2264
2265 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
2266
2267         * Application.cs: Install a WindowsFormsSynchronizationContext in the
2268         run loop, and uninstall it when done.
2269         * WindowsFormsSynchronizationContext.cs: Implement.
2270         [Fixes the common case in bug #327608]
2271
2272 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
2273
2274         * DataGridViewCellCollection.cs: Added argument checks for indexers.
2275         Use case-insensitive lookup of column name in indexer. Code
2276         formatting.
2277
2278 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2279
2280         * TreeNode.cs: When collapsing or expanding a node, check whether its
2281         change will affect the visible area (we were previously doing a
2282         IsVisible check, but that check is not enough since children nodes
2283         could be still visible). Fixes part of #325266.
2284
2285 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
2286
2287         * TreeView.cs: Always select the first node when the TreeView gets
2288         focus if there is no currently selected node.
2289         [Fixes bug #324279]
2290
2291 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
2292
2293         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
2294         node being selected is null.
2295         [Patch from Yves Bastide fixes bug #326858]
2296
2297 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2298
2299         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
2300         whether all the parent nodes are expanded.
2301         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
2302         call RecalculateVisibleOrder if all previous nodes are expanded.
2303         Before that we were doing a IsVisible check, but sometimes the node
2304         is not in the visible area, but _should_already be ready, because of
2305         all previous nodes are expanded. Fixes #325259.
2306
2307 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2308
2309         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
2310         portion of the item is clicked.
2311
2312 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2313
2314         * TextControl.cs: Do not tell the system to move the cursor if the
2315         textbox isn't focused.  Fixes part of bug #322668.
2316
2317 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2318
2319         * ComboBox.cs: When there are no items, do not show the dropdown if
2320         the down arrow is clicked.  Fixes part of bug #322668.
2321
2322 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2323
2324         * ToolStripComboBox.cs: Manually set the size of this control in the
2325         constructor, as it doesn't seem to be the same as DefaultSize.
2326         Fixes a failing monobuild test.
2327
2328 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
2329
2330         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
2331         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
2332
2333 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
2334
2335         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
2336         Desktop.  This lets it work for people who have moved their desktops
2337         from the default location on windows.  For people who have not, both
2338         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
2339
2340 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2341
2342         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
2343         but when the base constructor sets this, the control is null.  Set it
2344         again in the constructor.  Fixes a failing monobuild test.
2345
2346 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2347
2348         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
2349         get called.
2350         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
2351         called.
2352
2353 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2354
2355         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
2356         will handle it themselves.
2357         * ToolStripItem.cs: When deciding what the text of a tooltip should
2358         be, use the Text property instead of the text field.
2359         * ToolStripTextBox.cs: Handle tooltips.
2360         [Fixes bugs #325417 and #325973]
2361
2362 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2363
2364         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
2365         left click.  Fixes the easy part of bug #325969.
2366
2367 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2368
2369         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
2370         bug #325406, but set a minimum for StatusStrip to 22 to keep
2371         bug #325390 fixed.  I think this minimum would have been figured
2372         up automatically if the grip was actually a ToolStripItem, but it
2373         currently is not.
2374
2375 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376
2377         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
2378         as this is apparently the actual value used by .Net. Also apply
2379         ItemPadding in Details view only, and decrease the general width padding,
2380         to have only the needed. This should fix #324340 in Windows too.
2381
2382 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2383
2384         * ListViewItem.cs: Don't Invalidate item if parent is inside
2385         a BeginUpdate/EndUpdate block. This prevents to have differences
2386         between the ListView and items state, as well as avoid some exceptions
2387         there.
2388         * ListView.cs: Make 'updating' field internal.
2389
2390 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2391
2392         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
2393         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
2394         size if appropriate.
2395         Fixes reopened bug #325414.
2396
2397 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2398
2399         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
2400         * ToolStripItem.cs: Invalidate before and after our new autosize when
2401         text changes.
2402         Fixes reopened bug #325390.
2403
2404 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2405
2406         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
2407         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
2408         #325044.
2409
2410 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2411
2412         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
2413
2414 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2415
2416         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
2417         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
2418         #82734.
2419
2420 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
2421
2422         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
2423         item to select when the ToolStrip is selected.
2424         * ToolStripControlHost: Realign the control when the bounds or visibility
2425         change.
2426         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
2427         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
2428         preferred height.
2429         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
2430         base.OnPaint.  Was causing text not to be drawn.
2431
2432 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
2433
2434         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
2435
2436 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2437
2438         * TreeView.cs: When creating the label edit text box,
2439         set is initially to Visible = false. This is done to
2440         prevent a confusion in the layout which makes it to lose
2441         focus when shown the first time. Fixes part of #82592.
2442
2443 2007-09-13 Andreia Gaita <avidigal@novell.com>
2444
2445         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
2446
2447 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2448
2449         * ToolStrip.cs: Take Margin into account when calculating preferred
2450         size.  Also, allow preferred size to get smaller than the explicit
2451         size.
2452         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
2453         First step towards fixing bug #82747.
2454
2455 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2456
2457         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
2458         full row select background over the plus/minus glyph.  Also, turn
2459         off the focus rectangle for full row select since MS doesn't seem
2460         to ever paint it.  [Fixes bug #81839]
2461
2462 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2463
2464         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
2465         This was causing keyboard opened dropdowns to lose focus.
2466         [Fixes bug #82803]
2467
2468 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2469
2470         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
2471         ClientRectangle instead.  [Fixes bug #82838]
2472
2473 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2474
2475         * SplitContainer.cs: We can't reset Visible on every layout because
2476         someone may have set Visible = false explicitly on a SplitterPanel.
2477         Make sure when we switch orientation the SplitterDistance does not
2478         change.  Fixes two failing tests.
2479
2480 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2481
2482         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
2483         TextRenderer, since the latter is only available in 2.0.
2484
2485 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
2486
2487         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
2488         * SplitContainer.cs: Implement FixedPanel layouting.
2489
2490 2007-09-12  Andreia Gaita  <avidigal@novell.com>
2491
2492         * WebBrowserBase.cs: setup shutdown routine
2493
2494 2007-09-12  Andreia Gaita  <avidigal@novell.com>
2495
2496         * Application.cs: Let keyboard events that are targetted 
2497                 to non-mwf windows hosted inside mwf (as in, webbrowser),
2498                 propagate properly. Fixes keyboard handling on the webbrowser.
2499
2500 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2501
2502         * ListView.cs: When handling MouseUp event and we are 
2503         highligting a node with the mouse right button, don't trigger
2504         Before/AfterSelecting event, since we are not actually selecting
2505         the node.
2506
2507 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2508
2509         * TreeView.cs: When editing a node, modify the edit text box
2510         depending on the text length (as you are typing), like MS does.
2511
2512 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
2513
2514         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
2515         Override GetPreferredSizeCore to perform calculations.  Remove custom
2516         autosize logic.  [Fixes bug #82739]
2517
2518 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
2519
2520         * TextBoxBase.cs: Modified should default to false.
2521
2522 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2523
2524         * Control.cs: Update the anchoring distances even when layout is supspended.
2525         Patch provided by George fixes bug #82805.
2526
2527 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2528
2529         * Control.cs: Provide a setter for ExplicitHeight.
2530         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
2531         remove the hacks in here for requested_height.
2532         [Fixes bug #82749]
2533
2534 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2535
2536         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
2537         Maximum to lower that its current Value caused an ArgumentException by setting
2538         the Value to the new Maximum.
2539
2540 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2541
2542         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
2543         handle moves to the closest tick when it is being dragged.
2544         [Fixes bug #82751]
2545
2546 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2547
2548         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
2549         can't let them count as real items when calculating where to merge in the
2550         user's items.  [Fixed bug #82786]
2551
2552 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
2555         who want to add a menu item directly onto a toolstrip.
2556         [Fixes bug #82775, part II]
2557
2558 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2559
2560         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
2561         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
2562         don't set it to available.
2563         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
2564         [Fixes bug #82727, part II]
2565
2566 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2567
2568         * StatusStrip.cs: Change item placement to None if not visible.
2569         * ToolStripItem.cs: Invalidate when InternalVisible changes.
2570         These should have been committed to fix 82723, but I missed them.
2571
2572 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2573
2574         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
2575         Click, and that it is only called once.
2576         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
2577         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
2578         dropped down.
2579         [Fixes bug #82775]
2580
2581 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2582
2583         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
2584         to match .Net.
2585         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
2586         instead of 8, just like above. Partially fixes #82734.
2587
2588 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2589
2590         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
2591         fixes #82734.
2592
2593         * ListView.cs: Remove extra space between rows in Details view (match
2594         .Net). 
2595         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
2596         the DefaultFont.
2597
2598 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
2599
2600         * Application.cs: Modified ProductVersion to return value of
2601         AssemblyInformationVersion if available, and fallback to assembly
2602         version. Fixes bug #82746. Code formatting.
2603         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
2604         instead.
2605
2606 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2607
2608         * Control.cs: When updating ZOrder for a child control,
2609         take into account the implicit ones (we need it in our controls
2610         using them). Fixes #82642.
2611
2612 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
2613
2614         * ToolStripItem.cs: Add support for animated images.
2615         [Fixes bug #82726]
2616
2617 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
2618
2619         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
2620         visible.  [Fixes bug #82727]
2621
2622 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2623
2624         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
2625         so we repaint using the new size.  [Fixes bug #82723]
2626
2627 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2628
2629         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
2630         option.  [Fixes bug #81779]
2631
2632 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2633
2634         * TreeView.cs: Override HandleClick because the StandardClick style is
2635         set to false.  According to MSDN (and testing), the click events should
2636         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
2637
2638 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2639
2640         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
2641         the border will disappear.  Fixes reopened #82653.
2642
2643 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2644
2645         * Control.cs: If the control is autosize, and its preferred size changes
2646         when it lays out its children, tell its parent so it can be re-layed out.
2647         Fixing some of the fallout from r85433.
2648
2649 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2650
2651         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
2652         and CheckBox share some code.
2653
2654 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2655
2656         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
2657         the TrackBar, not every mouse move.  [Fixed bug #82718]
2658
2659 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2660
2661         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
2662         under 2.0 rendering.  [Fixes bug #82657]
2663
2664 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2665
2666         * TreeView.cs: If we found a TreeNode to display a context menu, but
2667         it doesn't have one to show, let the TreeView display its menu
2668         instead.  [Fixes bug #82680]
2669
2670 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2671
2672         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
2673         OnPaintInternal instead.  Give the internal TextBox a Border property
2674         so it can draw itself more correctly.  [Fixes bug #82653]
2675
2676 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
2677
2678         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
2679
2680 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2681
2682         * ComboBox.cs: Adjust combobox button state to reflect current state when
2683         back to enabled = true. Fixes first issue of #82654.
2684
2685 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2686
2687         * Control.cs: Fix last patch regression, prevent forms to update zorder when
2688         setting visible property.
2689
2690 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2691
2692         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
2693         fix zorder for controls initially created as non visible. Fixes #82667.
2694
2695 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
2696
2697         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
2698         mimic win32 look. Fixes #82656.
2699
2700 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
2701
2702         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
2703         Stubs for new net 3.5 classes.
2704
2705 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2706
2707         * ListViewItem.cs: In ListViewItemCollection operations calculate
2708         Layout for owner as well as invalidate it. Fixes part of #82642.
2709
2710 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
2711
2712         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
2713         when returning Enabled.  [Fixes bug #82651]
2714
2715 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
2716
2717         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
2718
2719 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2720
2721         * ListView.cs: Put item padding info in a single place
2722         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
2723         columns again.
2724         * ThemeWin32Classic.cs:
2725         * Theme.cs: Likewise.
2726
2727 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2728
2729         * ListView.cs: When a ListViewSubItem instance is invalidated,
2730         invoke Invalidate on parent ListViewItem, not parent ListView.
2731         Fixes #81570.
2732
2733 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2734
2735         * ListView.cs, ListViewItem.cs: corcompare stuffs.
2736
2737 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2738
2739         * BindingMemberInfo.cs: Implement == and != operators.
2740
2741 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2742
2743         * HtmlElementEventArgs.cs: Implement properties.
2744
2745 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2746
2747         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
2748
2749 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2750
2751         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
2752         Add (string,string,string) to implement the imagekey.  It turns out, we
2753         use the requested imagekey whereas .Net does not.  So I broke ours to match
2754         theirs.  :(
2755
2756 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2757
2758         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
2759
2760 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2761
2762         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
2763
2764 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
2765
2766         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
2767         up-to-date. Fixes bug #82618.
2768
2769 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
2770
2771         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
2772         reflect document changes. Fixes #82367.
2773
2774 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2775
2776         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
2777         as well as add new ones. This should make work the BackgroundImage
2778         property for ListView again.
2779
2780 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2781
2782         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
2783         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
2784         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
2785
2786 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2787
2788         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
2789         IsKeyLocked.
2790
2791 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2792
2793         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
2794         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
2795
2796 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2797
2798         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
2799         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
2800
2801 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
2802
2803         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
2804
2805 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
2806
2807         * GridEntry.cs: Implement GetService.
2808
2809 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
2810
2811         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
2812         for label editting, make sure we focus back on the TreeView.
2813         [Fixes bug #82590]
2814
2815 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2816
2817         * ListView.cs: Add some 2.0 overrides.
2818
2819 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2820
2821         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
2822         because getter dont returns right value before handle creation. Thanks 
2823         to George. Fixes #82569.  
2824
2825 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2826
2827         * Theme.cs: Revert last patch, it causes error under win32. 
2828
2829 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2830
2831         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
2832         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
2833         logical Desktop rather than the physical file system location. Fixes #82603. 
2834
2835 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
2836
2837         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
2838         for the patch. Fixes #82568.
2839
2840 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2841
2842         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
2843         methods.
2844
2845 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2846
2847         * ListViewInsertionMark.cs: New stubbed class.
2848
2849 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2850
2851         * FolderBrowserDialog.cs: When adding folder, immediately create the
2852         directory with temporary name and rename the directory when editing
2853         finishes. This matches MS. Ensure the node for the new folder is 
2854         selected and LabelEdit is disabled, when editing is either finished
2855         or cancelled.
2856
2857 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2858
2859         * TreeView.cs: When editing label of node, ensure node is visible.
2860
2861 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
2862
2863         * PropertyGridView.cs: Set the value only if it has changed.
2864
2865 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2866
2867         * ListView.cs: Some more code refactoring to add support sorting
2868         with groups (now for Details view). Remove unused code also.
2869
2870 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2871
2872         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
2873         Not a big fan of reacting immediately to a field in an EventArg, but that's
2874         the way it's done.  (This is part of the previous commit that got left out.)
2875
2876 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2877
2878         * FolderBrowserDialog.cs: Removed need for separate description field.
2879         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
2880         has focus when dialog box is displayed again, regardless of what
2881         button was pressed the previous time. Set RootFolder and SelectedPath
2882         each time dialog box is displayed. This ensures the treeview is
2883         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
2884         when it does not have focus. Added support for more special folders.
2885
2886 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2887
2888         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
2889         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
2890         it resets the edit_args.
2891         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
2892         [Fixes bug #82577]
2893
2894 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2895
2896         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
2897         button to match MS. Provide more meaningful exception message for
2898         invalid RootFolder value. Use zero-length string when SelectedPath
2899         is set to null. Allow non-rooted paths in SelectedPath, but ignore
2900         them in FolderBrowserTreeView. Allow folders to be created in
2901         RootFolder. Fixes bug #82576.
2902
2903 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2904
2905         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
2906         since we need to take into account the group headers and the margin
2907         between them.
2908         * ListViewGroup.cs: Add a rows field to store the number of rows per
2909         group.
2910
2911 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2912
2913         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
2914           Anyways, let's just follow the lead.
2915
2916 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2917
2918         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
2919         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
2920         controls in GetPreferredSizeCore.
2921         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
2922         [Fixes bug #82488]
2923
2924 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2925
2926         * PrintDialog.cs: Need to instantiate the form variable here too.
2927
2928 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2929
2930         * ListView.cs: Do some reorganization to support sorting in groups,
2931         by doing the layout sequentially in ListView.Items. Also add support
2932         for the Default Group, which should be available for items with no
2933         group assigned.
2934         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
2935         for storing layout info also.
2936         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
2937         collection, as well as providing internal members to do a traversal
2938         including the default group (needed when doing layout/drawing).
2939         * ThemeWin32Classic.cs: When drawing group headers use internal
2940         ListViewGroupCollection members to take into account the default
2941         group.
2942
2943 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
2944
2945         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
2946
2947 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2948
2949         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
2950         been created.  If handle is created, we want arror keys.  If we are editing
2951         a node, we want things like enter, esc, home, end, page up, page down.
2952         Allows Esc to work for FolderBrowserDialog.
2953
2954 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2955
2956         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
2957         they close when ESC is pressed.  Thanks Andy!
2958
2959 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2960
2961         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
2962         This way we can tell if this is a CommonDialog provided with mono, or one
2963         that is being implemented outside by a developer.  If it is an external one,
2964         the developer is responsible for showing their own form.  We were showing
2965         our blank form after the developer showed his.
2966         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
2967         PageSetupDialog.cs: Instantiate form variable in our constructor.
2968         [Fixes bug #82531]
2969
2970 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2971
2972         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
2973         and always return true.  [Fixes bug #81616]
2974
2975 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2976
2977         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
2978         TextBox.  [Fixes bug #82549]
2979
2980 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2981
2982         * FileDialog.cs: When Save/Open is clicked and no filename is selected
2983         or entered then do not close the dialog. Fixes bug #82539. Removed
2984         CWLs.
2985
2986 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
2987
2988         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
2989         code to this method. It is calling every time filter changes. This method
2990         will help to fix the bug #80887.
2991
2992 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
2993
2994         * CheckBox.cs: Implement AutoSize calculation.
2995
2996 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
2997
2998         * CheckBox.cs: Use new 2.0 rendering for 2.0.
2999         * Theme.cs: Method declarations for 2.0 rendering path.
3000         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
3001
3002 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3003
3004         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
3005
3006 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3007
3008         * ListViewGroupCollection.cs: Implement AddRange the right way, to
3009         only call Redraw on the parent one time.
3010
3011 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3012
3013         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
3014           GetClipboardContent.
3015         * DataGridViewCell.cs: Implemented GetClipboardContent,
3016           GetEditedFormattedValue, GetFormattedValue.
3017         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
3018
3019 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
3020
3021         * TableLayoutStyleCollection.cs: corcompare fix.
3022
3023 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3024
3025         * DataObject.cs: Implemented retrieval of convertible / not convertible
3026           objects.
3027
3028 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
3029
3030         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
3031         ourselves.  This ensures the entire old bounds are repainted, in case our new
3032         size is smaller.  [Fixes bug #82518]
3033
3034 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
3035
3036         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
3037         flag to make fast handle of mouse events, without this the mouse move is
3038         handled in some manner, whether it is a mouse move or not. Fixes #81588.
3039
3040 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3041
3042         * ListView.cs: When doing layout calculations don't use a ref
3043         param to keep the current item; instead use its Index value (this 
3044         is specially important when doing the layout with Groups
3045         and Items being sparse). Also don't take into account items added to
3046         the Group but not yet added to the main ListView.Items collection.
3047
3048 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3049
3050         * ListViewGroupCollection.cs: Forgot to mimic an issue
3051         in the indexer (don't assign the ListView owner for new values).
3052
3053 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3054
3055         * ListViewGroupCollection.cs: Make the string indexer use
3056         the int based indexer to re-use code, instead of duplicate the code.
3057         Also Redraw as needed and take into account null values.
3058
3059 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
3060
3061         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
3062         [Fixes bug #82481]
3063
3064 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
3065
3066         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
3067         when other buttons are clicked or navigated to.
3068
3069 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3070
3071         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
3072           it's XplatUIX11 that attaches them.
3073
3074 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3075
3076         * DataGridView.cs: If a column has been added, recreate the editing row.
3077           Fixes #82226.
3078
3079 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3080
3081         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
3082           of the tag to draw. Makes disappearing text show up again.
3083
3084 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3085
3086         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
3087           Contents. Fixes #82487.
3088
3089 2007-08-19  Andreia Gaita  <avidigal@novell.com>
3090
3091         * Added HtmlElement.cs, HtmlElementCollection.cs, 
3092           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
3093           
3094 2007-08-19  Andreia Gaita  <avidigal@novell.com>
3095
3096         * BindingSource.cs: Implement this, dispose and getenumerator.
3097         * DataGridViewRowCollection.cs: Move the InvalidOperationException
3098         out of AddInternal, throw it only on public Add calls. The 
3099         UsingWebBrowser sample was blowing up with this when setting the
3100         DataSource after adding DataBindings, so it's likely that .net
3101         only throws this exception when Add is called directly. 
3102         
3103         * ToolStripControlHost.cs: Return the hosted control's text
3104         property, and not the ToolStripItem one (it would always return
3105         the initial value).
3106         
3107         * HtmlDocument.cs: Implement GetElementById and All
3108         * WebBrowser.cs: Remove exception on set_DocumentStream.        
3109
3110 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3111
3112         * Form.cs: Fix the max and min value for opacity (0~1).
3113
3114 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3115
3116         [Fixes #80118]
3117         * DataGridTableStyle.cs: Default header font is now null, on getter it 
3118         returns datagrid font when is null. On setter permits null.
3119
3120         * DataGrid.cs:
3121         - When ResetHeaderFont set header font to null.
3122         - On EndInit set grid_style.DataGrid.
3123
3124 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3125
3126         * TabControl.cs: Fix regression in default padding x.
3127
3128 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3129
3130         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
3131
3132 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3133
3134         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
3135         not 2. Fixes #82229.
3136
3137 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3138
3139         * TabControl.cs: Fix tab size when image height is less than text height.
3140         Partially fixes #81837.
3141
3142 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3143
3144         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
3145         "alt + tab". It works only for Win32, for X11 theres no way to remove window
3146         from taskbar and keep it on "alt_tab". Fixes #81722.
3147
3148 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3149
3150         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
3151         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
3152         Fixes #80877 and #79418.
3153
3154 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3155
3156         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
3157         between position and one of the screen borders. Fixes #82349.
3158
3159 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3160
3161         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
3162         the MessageBox in the taskbar. Fixes #82457.
3163
3164 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3165
3166         * MessageBox.cs: Fix form size when icon is set and text height is bigger
3167         than icon. Fixes #82468.
3168
3169 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3170
3171         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
3172         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
3173           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
3174           Refactored HandleNCCalcSize somewhat to avoid code duplication.
3175         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
3176           FormBorderStyle to decide if we're calculating a new size from the
3177           client size or not. CreateParams: Don't fake tool windows, only the X11
3178           backend manages toolwindows manually.
3179
3180 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3181
3182         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
3183         ObjectDisposedException.
3184
3185 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3186
3187         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
3188         in OnLoad should not have any effect.  [Fixes bug #82470]
3189
3190 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3191
3192         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
3193         paint for controls that create their own ToolTipWindow instead of
3194         going through ToolTip.
3195
3196 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3197
3198         * ToolTip.cs: Make Hide internal instead of public to match MS API.
3199
3200 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3201
3202         * ListViewGroupCollection.cs: Use generic List instead of an
3203         ArrayList, since this collection is 2.0 only.
3204
3205 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
3206
3207         * ToolTip.cs (Hide): Made public to make the build work (should
3208         this not be public?).
3209
3210 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3211
3212         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
3213         ToolTipWindow.
3214         * ToolTip.cs: Add an internal Visible property to facilitate transition.
3215
3216 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3217
3218         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
3219         PopupEventHandler.cs: Make these internal for 1.1.
3220         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
3221         use ToolTipWindow internals.
3222         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
3223         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
3224
3225 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3226
3227         * X11Dnd.cs: Add a null check.
3228
3229 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3230
3231         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
3232           nothing else succeeds. Fixes #82453.
3233
3234 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3235
3236         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
3237           rectangle if we're painting to another window than the one the paint
3238           message was generated on. Simplify the code somewhat, which makes
3239           PaintEventEnd also simpler.
3240
3241 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3242
3243         * Control.cs: When changing parent of a form, let the form decide whether
3244           XplatUI.SetParent should be called or not.
3245         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
3246           recreating the handle. If the new parent's handle isn't created, don't
3247           recreate our handle, just destroy it. CreateParams: Check if the
3248           parent's handle is created before fetching it.
3249
3250 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3251
3252         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
3253           Update calls to PaintEventStart/End to take a Message argument.
3254         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
3255           take a Message argument.
3256         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
3257           Message argument, and handle the case where we don't paint to the window
3258           for which the paint message was generated.
3259
3260 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3261
3262         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
3263           Marshal.GetLastWin32Error. Plug nasty memory leak in
3264           PaintEventStart/End, we were creating a DC we weren't releasing.
3265
3266 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3267
3268         * ListView.cs: Add Groups support in Details view. Also have a small
3269         method to do the layout of the group header. Don't use a separate
3270         method to do the groups calculation in Icons view, since our methods
3271         are now a little simpler.
3272         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
3273         `Bounds'.
3274         * ThemeWin32Classic.cs: Likewise.
3275
3276 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
3277
3278         * Application.cs: Add FilterMessage method and rework our message loop
3279         logic to use it.
3280
3281 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
3282
3283         * Application.cs: Add some methods and stub a few methods that are
3284         pretty much never used.
3285
3286 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
3287
3288         * TreeNode.cs: Add some serialization methods.
3289
3290 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3291
3292         * ListView.cs: In ListViewItemCollection have a 
3293         'is_main_collection' field to not modify ListViewItem.ListView
3294         when using it as ListViewGroup.Items (and not ListView.Items)
3295         and also don't modify selection state (.Net behaviour). 
3296         Instead, set group for items contained in a ListViewGroup.Items collection.
3297         * ListViewItem.cs: Simplify some code in Group setter.
3298         * ListViewGroup.cs: use the new .ctor to pass the current instance
3299         to the ItemsCollection.
3300         * ListViewGroup.cs: Set the ListView property for ListViewGroup
3301         instances when adding/removing. Also make Remove use RemoveAt, which
3302         should perform better.
3303
3304 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
3305
3306         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
3307         that crept into the 1.1 profile.
3308
3309 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
3310
3311         * ToolBarButton.cs: Implement ImageKey.
3312
3313 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
3314
3315         * ToolBar.cs: Implement ScaleControl/ScaleCore.
3316
3317 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3318
3319         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
3320           created, it might have gotten destroyed since we last checked. Fixes
3321           #82405.
3322
3323 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
3324
3325         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
3326         tooltip will hide when mouse is moved off the control.
3327         [Fixes bug #82407]
3328
3329 2007-08-11 Andreia Gaita <avidigal@novell.com>
3330
3331         * WebBrowserBase.cs, WebBrowser.cs: add implementation
3332         using Mono.Mozilla for loading and navigating webcontrol
3333         with xulrunner.
3334         The initial implementation was done on 
3335         /trunk/mozembed/tests/browser , and copied here.
3336
3337 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
3338
3339         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
3340         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
3341
3342 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3343
3344         * DataGridView.cs: Add support for an editing row. Fixes #82226.
3345           RowTemplateFull: throw an exception if a column doesn't have a template.
3346         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
3347           add the row just before it.
3348         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
3349           selected.
3350         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
3351           DataGridView field to be able to reach the grid's editing row.
3352
3353 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
3354
3355         * ToolTip.cs: If the control's handle hasn't been created when it has a
3356         tooltip set on it, don't check to see if we need to show the tooltip.  This
3357         check was causing the control's handle to be created.
3358         [Fixes bug #82399]
3359
3360 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
3361
3362         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
3363                                         1.1             2.0
3364         Handle Not Created      -1              0
3365         Handle Created          0               0
3366         [Fixes bug #82371]
3367
3368 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
3369
3370         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
3371         [Fixes bug #82348]
3372
3373 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
3374
3375         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
3376         * ToolTip.cs: Implement some properties and owner draw.
3377
3378 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3379
3380         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
3381           show them again, since setting visibility causes a paint, causing an
3382           endless loop (instead use a temporary and set it all when it's known if
3383           they should be shown or not). Fixes #79265.
3384
3385 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3386
3387         * DataGridView.cs: Only do a full column/row selection if a header was
3388           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
3389           isn't pressed, deselect everything before selecting something.
3390
3391 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3392
3393         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
3394           behaviour according to bug #81075 - they are returned in the order they
3395           are selected. Fix HitTest to check if the point is within any of the
3396           headers. Allow for row/column selection when in ColumnHeader or
3397           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
3398           the row and column to call when their selected state changes, and
3399           updated selected_[rows|columns] whenever SetSelected* is called.
3400         * DataGridViewBand.cs: Initialize isRow correctly. Call
3401           SetSelected[Row|Column]CoreInternal when the selected state changes, and
3402           add a SelectedInternal to avoid StackOverflows.
3403         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
3404           ReadOnly no matter what.
3405         * DataGridViewSelectedColumnCollection.cs,
3406           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
3407           the items in reverse order (just as MS does...)
3408
3409 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
3410
3411         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
3412         itself, not part of a mnemonic.  [Fixes bug #82378]
3413
3414 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3415
3416         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
3417         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
3418           the DGV, the column, the row, or the cell itself is readonly.
3419
3420 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
3421
3422         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
3423         OSVersion.Platform.
3424         * FileDialog.cs: Same.
3425         * TextRendered.cs: Same.
3426         * FolderBrowserDialog.cs: Same.
3427         * TextBoxBase.cs: Same.
3428         * Application.cs: Same.
3429         * Cursors.cs: Same.
3430         * ThemeClearLooks.cs: Same.
3431
3432 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
3433
3434         * XplatUI.cs: Added RunningOnUnix property to be used by controls
3435         instead of duplicating these checks everywhere.
3436         * FileDialog.cs: Use case-insensitive comparison for populating the
3437         DirComboBox when not running on unix. Fixes bug #82385.
3438         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
3439         "Look in".
3440
3441 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3442
3443         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
3444           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
3445           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
3446           cell and column selection with ctrl and shift pressed. Call the correct
3447           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
3448           the corresponding virtual method (PaintBackground to paint background,
3449           etc).
3450         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
3451           either the column, row or the cell itself is selected.
3452         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
3453           OnRowsAdded.
3454         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
3455           here. When the row is selected, don't select all cells. Each cell now
3456           queries the row to see if the row is selected.
3457
3458 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3459
3460         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
3461           SelectionMode.
3462
3463 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3464
3465         * ListView.cs: In ListViewItemsCollection check that owner is
3466         not null before trying to access it (this happens quite often
3467         using Groups). Also don't duplicate calls by calling CollectionChanged
3468         method.
3469
3470 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3471
3472         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
3473         when we are dismissed to clear keyboard mnemonics.
3474         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
3475         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
3476         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
3477         was activated by keyboard or the OS tells us to always draw them.
3478         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
3479         [Fixes bugs #82376, #82377]
3480
3481 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3482
3483         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
3484         shot at having it because Alt was pressed.
3485         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
3486         the first real menu item.
3487         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
3488         a mnemonic if Text is null.
3489         [Fixes bug #82374]
3490
3491 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3492
3493         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
3494         search do check whether the item is already contained in the
3495         collection or not; instead check if the owner of the item is the same
3496         as ours. Also, remove a redundant check in the same method. 
3497
3498 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3499
3500         * Control.cs: Allow the clip region to be set back to null.
3501         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
3502         [Fixes button still showing up in bug #82370 when Show Through is turned off]
3503
3504 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3505
3506         * GridEntry.cs: Add a null check.
3507         * PropertyGrid.cs: When checking for existing grid entries, ignore category
3508           entries. Fixes #82297.
3509
3510 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
3511
3512         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
3513         for 2.0.
3514
3515 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
3516
3517         * ListBox.cs: Implement ScaleControl.
3518
3519 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3520
3521         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
3522           have a menu strip.
3523         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
3524           parent has a menu strip. Fixes #81689.
3525
3526 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3527
3528         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
3529           moments, so apply some fuzzy logic to determine if the mouse is still
3530           inside a control or not. Fixes #82288 (for the third time).
3531
3532 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3533
3534         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
3535           Don't create the child if it has been disposed already (may happen if
3536           the user closes the form the Load event).
3537
3538 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3539
3540         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
3541           #82288.
3542
3543 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3544
3545         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
3546           might call us after we've been destroyed, in which case our own private
3547           parent field is null. Fixes #82326.
3548
3549 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
3550
3551         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
3552         check for setting the dropdown's owner.
3553
3554 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
3555
3556         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
3557         before removing system menu items.
3558
3559 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
3560
3561         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
3562         folding.
3563         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
3564         folding.
3565         * ToolStrip.cs: Add a null check to mnemonics.
3566         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
3567         no ConnectedArea.
3568         [Fixes most of bug #81689]
3569
3570 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3571
3572         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
3573
3574 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3575
3576         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
3577
3578 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3579
3580         * DataGridViewCell.cs: EditType: returns
3581           DataGridViewTextBoxEditingControl always.
3582
3583 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
3584
3585         * TextRenderer.cs: Remove the LineLimit string format flag from the
3586         DrawString fallback method so that things like buttons that aren't
3587         tall enough to draw a full line will still draw part of the text.
3588         [Fixes part of bug #82272]
3589
3590 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3591
3592         * DataGridView.cs: Implemented AutoResizeColumn(s).
3593         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
3594           according to the Alignment.
3595         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
3596           Implement alignment and padding when painting.
3597         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
3598           exists.
3599         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
3600           way.
3601         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
3602           a column is added.
3603
3604 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3605
3606         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
3607         which is internal.
3608
3609 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3610
3611         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
3612         hide GetPreferredSize from public API.
3613         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
3614         * ToolStripItem.cs: Stub out drag and drop methods and events.
3615         * ToolStripManager.cs: Stub out Save/LoadSettings.
3616         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
3617         * ToolStripPanel.cs: Fix corcompare error.
3618         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
3619         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
3620         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
3621
3622 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3623
3624         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
3625         bounds height instead of PreferredHeight.  Puts things back the way 
3626         they were for height while still fixing the width.  Fixes broken unit
3627         tests.
3628
3629 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3630
3631         * Binding.cs: Implement 2.0 constructors and add a null check.
3632
3633 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3634
3635         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
3636           and fix row index (off by one).
3637
3638 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3639
3640         * PropertyGridView.cs: Remove debug output.
3641
3642 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3643
3644         * Control.cs: We need to reset the is_created flags when the handle is
3645           destroyed. Fixes #82187.
3646         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
3647           client coordinates if the window doesn't have a parent.
3648           Win32GetParent returns the parent or the owner, and for top-level
3649           windows with no parent (but with an owner) we were calculating the
3650           location from the location of the owner.
3651         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
3652           form has been disposed.
3653         * MdiClient.cs: Add a null-check.
3654
3655 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
3656
3657         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
3658         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
3659         so we can provide an implementation that returns the current width
3660         and preferred height.  Allows anchor = right to work with TextBox 2.0.
3661         [Fixes bug #82233]
3662
3663 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3664
3665         * ListView.cs: Add support for navigating items in Groups mode, by
3666         creating a big matrix containing all rows and cols of all groups. When
3667         are in other mode than Details, pressing Up should have a similar
3668         behaviour as that one of Down (moving to the next available column if
3669         current one doesn't have an item in the requested row). Also, don't
3670         proceed to use groups if ShowGroups is false.
3671         * ListViewGroup.cs: Add an internal int field to store the starting
3672         row of the group (used by the big matrix used for navigating the
3673         ListView).
3674         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
3675         false.
3676
3677 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
3678
3679         * ToolStripDropDown.cs: When we do Show, start with the 
3680         DefaultDropDownDirection, but if our popup menu is going to off-screen,
3681         modify the direction to keep it on screen.  [Fixes bug #82210]
3682
3683 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
3684
3685         * FileDialog.cs: Accept any FilterIndex value, and store it
3686         unmodified. When FilterIndex is less than 1, or greater than number
3687         of filters, then default to first filter. Only add filter extension to
3688         file if user did not specifiy an extension. When type of dialog is
3689         OpenFileDialog and DefaultExt is set, then only use filter extension
3690         if: CheckFileExists is true and no file wih the default extension
3691         exists, or CheckFileExists is false, and user specified file does not
3692         exist. When CheckFileExists is true, then add first extension of 
3693         selected filter that matches existing file. Perform checks for
3694         existing file, overwrite and create after extension has been added to
3695         file name. When CheckFileExists is true and type is SaveFileDialog,
3696         then only consider first filter extension if DefaultExt is set.
3697         When CheckFileExists is true, then ignore DefaultExt if file with that
3698         extension does not exist. Also perform check for existing file when
3699         type is SaveFileDialog. Changed some field to constants.
3700
3701 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3702
3703         * ListView.cs: Take into account the region used by header
3704         control when doing the vertical scroll (this way we invalidate
3705         the precise area, and don't get any dirty one).
3706
3707 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
3708
3709         * FileDialog.cs: Check for valid filterIndex on button open/save. 
3710         Fixes #82184.
3711
3712 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3713
3714         * ListView.cs: Update some layout calculations in details view
3715         and clean the code in a pair of assignations.
3716
3717 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3718
3719         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
3720         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
3721         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
3722         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
3723
3724 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3725
3726         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
3727         performance of thread-safe Graphic methods.  (Thanks rolf!)
3728
3729 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3730
3731         * ListView.cs: When doing the layout calculations, don't calculate
3732         scroll bars before handle is created. This is unnecessary and also
3733         calculating them before handle creation item causes a number of random
3734         bugs (which begin to appear after Chris' big patch for handle creation
3735         fixes). 
3736
3737 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3738
3739         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
3740         for things that don't have a Graphics object.  Currently, things just use
3741         the static Hwnd.bmp_g which is not thread safe.
3742
3743 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3744
3745         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
3746           dialog. Fixes #82187.
3747
3748 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3749
3750         * DataGridViewElement.cs: Initialize state.
3751         * DataGridView.cs: Forward a few Mouse events to cells. Add
3752           GetRowInternal and GetCellInternal that doesn't unshare rows.
3753           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
3754           don't use the index, but look it up. Add
3755           DataGridViewControlCollection.RemoveInternal to remove controls
3756           that Remove won't remove (scrollbars, edit control).
3757         * DataGridViewColumn.cs: Initialize State correctly.
3758         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
3759           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
3760           implementing this.
3761         * DataGridViewRowCollection.cs: Implemented shared rows.
3762         * DataGridViewRow.cs: Throw exceptions as MS do.
3763         * DataGridViewCell.cs: A few properties are implemented by a
3764           Get<Property> method, so move implementation there and remove the
3765           NIEX in the method. Add a bunch of OnXInternal that DataGridView
3766           calls when necessary.
3767         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
3768           complicates matters.
3769         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
3770           unshare any rows.
3771
3772 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3773
3774         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
3775         the children controls.  Instead, we will just set up the proper docking for the
3776         children controls so we don't have to worry about it.  [Fixes bug #82188]
3777
3778 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3779
3780         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
3781         canceling and correct Before/AfterLabelEdit properties as layed out in bug
3782         81847.  [Fixes bug #81847]
3783
3784 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3785
3786         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
3787         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
3788         an explicit size based on the design-time size of the text.  Since our fonts
3789         may not match this explicit size, we tend to cut off the ends of people's labels.
3790
3791 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
3792
3793         * Menu.cs: Add some missing methods to MenuItemCollection.
3794
3795 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3796
3797         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
3798         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
3799         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
3800         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
3801         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
3802         * DataGridViewElement.cs: State defaults to Visible.
3803         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
3804         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
3805
3806 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3807
3808         * Control.cs: Minor 1.1 corcompare fix.
3809
3810 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3811
3812         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
3813         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
3814
3815 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3816
3817         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
3818           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
3819           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
3820           DataGridViewSelectedColumnCollection.cs,
3821           DataGridViewSelectedRowCollection.cs: Corcompare work.
3822
3823 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3824
3825         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
3826         it is autoset by VS2005 designer and the effect is barely noticeable.
3827
3828 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3829
3830         * TreeView.cs: Implement HitTest.
3831
3832 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3833
3834         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
3835           manually adding and removing the control from the Controls
3836           collecftion.
3837         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
3838           EditingControlInternal property that tracks the editing control.
3839           Always keeping the scrollbars in the Controls collection, as MS
3840           testing confirms is the right behaviour.
3841
3842 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3843
3844         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
3845           according to MSDN and new test.
3846
3847 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3848
3849         * TreeNode.cs: Implement ToolTipText.
3850         * TreeView.cs: Implement tooltips, NodeMouse* events.
3851
3852 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3853
3854         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
3855
3856 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3857
3858         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
3859         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
3860
3861 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
3862
3863         * Control.cs, Form.cs, ContainerControl.cs,
3864         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
3865         for misc properties.
3866
3867 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3868
3869         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
3870         * TreeView.cs: Implement StateImageList.
3871
3872 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3873
3874         * Form.cs: Don't check if the current form is the active form before
3875           activating it. Fixes #81904.
3876
3877 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3878
3879         * Form.cs: Don't check if the current form is the active form before
3880           activating it. Fixes #81904.
3881
3882 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3883
3884         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
3885
3886 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3887
3888         * Form.cs: Don't try to position the form after loading if the form was
3889           disposed. Fixes #81969.
3890
3891 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3892
3893         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
3894           properties. Had to change ToolBar into ToolStrip, which required a
3895           few #ifs.
3896
3897 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3898
3899         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
3900           resized, fixes part of #79829 (vertical lines in toolbar).
3901           PropertyGrid: Refactored Populate* to something that's easier to
3902           follow at least for me, as well as splitting it up into several new
3903           methods, required to update only subitems when something has
3904           changed by a popup editor or listbox. Don't use events to check
3905           when any values are changed, since the events are unreliable (we're
3906           changing the objects the events are registered with, and if the
3907           event handling requires the objects to be immutable (objects stored
3908           in hashtables for instance), the events will never be raised).
3909         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
3910           everytime we change a value, since events are unreliable.
3911           DropDownButtonClicked: For the same reason don't compare objects to
3912           check if it has changed or not, it would require all objects to
3913           derive Equals. Fix dialog location on windows, MS is doing weird
3914           things when creating parented forms.
3915         * GridEntry.cs: Add a SelectedObject setter.
3916
3917 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
3918
3919         * TreeNode.cs: Add some corcompare attributes.
3920         * TreeNodeCollection.cs: Implement 2.0 stuffs.
3921         * TreeView.cs: Implement some 2.0 stuffs.
3922
3923 2007-07-18  Andreia Gaita  <avidigal@novell.com>
3924
3925         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
3926         for moma.
3927
3928 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
3929
3930         * ListBox.cs: Implement custom tab offsets.
3931
3932 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3933
3934         * ToolStripContentPanel.cs: Support System renderer.
3935         * ToolStripControlHost.cs: Set RightToLeft to default to No.
3936
3937 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3938
3939         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
3940
3941 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3942
3943         * CheckBox.cs: Chain TextAlign to base implementation instead of
3944         maintaining another one.
3945
3946 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3947
3948         * ButtonBase.cs: Fix an incorrect string constant.
3949
3950 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3951
3952         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
3953         of creating one for measuring strings.
3954
3955 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3956
3957         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
3958         Implement MaxItemSize.
3959
3960 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
3961
3962         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
3963         for DeviceContext.  Instead, use the static one available in Hwnd.
3964         Informal tests show this saves about 500k on formtest.exe.
3965
3966 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
3967
3968         * ContainerControl.cs: Implement 2.0 AutoScaling.
3969
3970 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3971
3972         * ComboBox.cs: Work around bug #82120 (bug in mcs).
3973
3974 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
3975
3976         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
3977         Darken the focus color.
3978
3979 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
3980
3981         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
3982         for the checkbox.
3983         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
3984         X, Y instead of a rect for drawing text.
3985         - For ControlPaint.DrawCheckBox, center the check a little better when the
3986         checkbox is odd width.  When drawing a flat checkbox, use a white background
3987         when state != inactive.
3988         [Fixes bugs #82097, 82100]
3989
3990 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
3991
3992         * ListControl.cs: When changing CurrencyManager, disconnect event
3993         handlers from previous one. Fixes bug #81771. Code formatting.
3994
3995 2007-07-15  Andreia Gaita <avidigal@novell.com>
3996
3997         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
3998         full preview invalidation from layout invalidation, and only invalidate
3999         the layout when setting zoom or other properties. Invalidation should
4000         always be done even when resetting properties with the same values as
4001         what is there. Fixes #81744 and #79830.
4002
4003 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4004
4005         * ListView.cs: Implement initial support for Groups. Split some of the
4006         LayoutIcons code to render a partial list of the items (needed by
4007         items contained in ListViewGroup instances). Let the
4008         ListViewItemsCollection.ListView property be modifiable (needed when
4009         using Groups, too).
4010         * ListViewGroup.cs: Use a Bounds property rather than a Location
4011         one. Also invalidate the bounds when they get changed.
4012         * ThemeWin32Classic.cs: When drawing items, also draw the group header
4013         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
4014         method as well.
4015
4016 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4017
4018         * ListView.cs: When space gets pressed and CheckBoxes is true, 
4019         don't invoke the Begin and EndUpdate methods. We are generating 
4020         a redraw of the entire control without need to do so.
4021
4022 2007-07-13  William Holmes <billholmes54@gmail.com> 
4023
4024         * Control.cs: Changing logic in FindFlatForward and 
4025           FindFlatBackward to handle multiple Controls with 
4026           the same TabIndex.  
4027           This fixes bug 81687.
4028
4029 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
4030
4031         * OSFeature.cs: Enable IsPresent.
4032
4033 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4034
4035         * Control.cs: Don't do anything in WmShowWindow if the control has been
4036           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
4037           control is created, put on a form, the control is disposed (the
4038           form is never shown), and then we get a MapNotify, triggering a
4039           WM_SHOWWINDOW.
4040         * Form.cs: Exclude the current form when sending Deactivate to all
4041           MdiChildren.
4042         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
4043           there was a race condition because assigning the handle raises
4044           events, we can get more messages, therefore trying to assign the
4045           handle again, which would fail if any of those event handlers
4046           closed/disposed the control.
4047
4048 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4049
4050         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
4051
4052 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
4053
4054         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
4055         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
4056
4057 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4058
4059         * DateTimePicker.cs: If there's no part format specifier, return an
4060           empty string.
4061
4062 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
4063
4064         * FlatButtonAppearance.cs: Throw NotSupportedException for a
4065         Transparent BorderColor.
4066
4067 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4068
4069         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
4070           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
4071           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
4072           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
4073           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
4074           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
4075           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
4076           Remove warnings.
4077         * X11Structs.cs: Remove warnings, add ToString implementations.
4078
4079 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4080
4081         * XplatUIX11.cs: Translate min/max size according to the actual min/max
4082           size, and not the current size. Fixes #81798.
4083
4084 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4085
4086         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
4087           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
4088           to the control yet).
4089
4090 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4091
4092         * PropertyGridTextBox.cs: Add a method that sends any forwarded
4093           mousedowns to the contained textbox.
4094         * X11Structs.cs: More ToString implementation.
4095         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
4096           #81791.
4097
4098 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4099
4100         * PropertyGridView.cs: Add a null-check, fixes a few tests.
4101
4102 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
4103
4104         * TableLayoutPanelCellPosition.cs: TypeConverter.
4105
4106 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4107
4108         [ Fixes #79761]
4109         
4110         * PropertyGridTextBox.cs: Propagate any color changes to all contained
4111           controls.
4112         * PropertyGridView.cs: A few color fixes.
4113
4114 2007-07-10  Jackson Harper  <jackson@ximian.com>
4115
4116         * TextControl.cs: Remove some old unused text formatting stuff.
4117
4118 2007-07-10  Jackson Harper  <jackson@ximian.com>
4119
4120         * TreeView.cs: Update full row select invalidation to match the
4121         newer DrawSelection... method.
4122         - Make sure to invalidate the entire width when selecting a new
4123         node, if we have full row selection enabled.
4124
4125 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4126
4127         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
4128           display of properties again.
4129
4130 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
4131
4132         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
4133         to existing collections.
4134
4135 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4136
4137         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
4138         that changed between 1.1 and 2.0.
4139
4140 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4141
4142         * PowerStatus.cs: Added.  This is just a data class, it is filled
4143         in by SystemInformation.
4144
4145 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4146
4147         * Message.cs: Add op_Equality and op_Inequality.
4148
4149 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4150
4151         * MenuStrip.cs: Finish corcompare work.
4152
4153 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4154
4155         * LinkArea.cs: Add op_Equality and op_Inequality.
4156
4157 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4158
4159         * Application.cs: Add MessageLoopCallback delegate.
4160
4161 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4162
4163         * ListBox.cs: First set of 2.0 stuffs.
4164
4165 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4166
4167         * Control.cs: Make an internal Height property we can override
4168         without messing up the public API.
4169         * ListBox.cs: Override HeightInternal to always return the size
4170         the user set.  [Fixes bug #80466]
4171
4172 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
4173
4174         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
4175         paint cell borders if we haven't calculated where they go yet.
4176         [Fixes bugs #82040 and #82041]
4177
4178 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4179
4180         * ListView.cs: In Details view, set the location of item_control
4181         in the (0,0) position (and the header_control is thus on the
4182         item_control). This way the Bounds of the Items are relative to the
4183         ListView control (before this, they had a Bounds value without the
4184         header_control offset, which wasn't matching .Net). Fixes #82004.
4185
4186 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4187
4188         * ListControl.cs: When DataSource is set to null, pass an empty
4189         array of object to SetItemsCore. This is done to clean the items
4190         in the ListContol children. Fixes #81788.
4191
4192 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4193
4194         * ListControl.cs: Add 2.0 stuffs.
4195
4196 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4197
4198         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
4199         Refresh is overkill for just about every repaint request.
4200
4201 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4202
4203         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
4204         so remove my custom Get method and fix the property getter.
4205
4206 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4207
4208         * Label.cs: DefaultMargin for 2.0.
4209
4210 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4211
4212         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
4213         reported issue where other controls with mnemonics would steal strokes
4214         from a selected ComboBox.
4215
4216 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * ScrollOrientation.cs: Make internal for 1.1.
4219         * ScrollEventArgs.cs: Add 2.0 stuffs.
4220
4221 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
4222
4223         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
4224         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
4225         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
4226
4227 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4228
4229         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
4230
4231 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4232
4233         * ListView.cs: Implement the so-incredibly broken 2.0 
4234         VirtualItemsSelectionRangeChanged event.
4235
4236 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4237
4238         * ListView.cs: When enter is pressed and selection is non empty,
4239         an OnItemActivate event must be fired.
4240
4241 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4242
4243         * ListView.cs: Store the FocusedItem information as an
4244         int instead of a ListViewItem (needed by VirtualMode).
4245         Update the calls to SetFocusedItem to pass an index instead of
4246         an item.
4247         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
4248         the Focused state from the owner ListView. 
4249
4250 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4251
4252         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
4253         property. Also, invalidate previous focused item in the mentioned
4254         property (match .Net).
4255
4256 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4257
4258         * ListView.cs: Implement 2.0 FocusedItem property setter.
4259
4260 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4261
4262         * ListView.cs: Implement 2.0 TopItem property setter.
4263
4264 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
4265
4266         * StatusStrip.cs: The default renderer is System.
4267         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
4268         if the user specifies it.
4269         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
4270         if we are ManagerRenderMode.
4271         * ToolStripMenuItem.cs: Calculate our text color better.
4272         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
4273         from Professional to the base class based off working with the System renderer.
4274         * ToolStripSystemRenderer.cs: Added.
4275
4276 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4277
4278         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
4279
4280 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
4281
4282         * ToolTip.cs: Implement 2.0 Tag property.
4283
4284 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4285
4286         * ListView.cs: Implement 2.0 HitTest methods.
4287
4288 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4289
4290         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
4291         item is under the pointer or not (sugar). Also remove the TODO
4292         regarding to the cursor changes in OneClick activation.
4293         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
4294         the subitems use the parent's HotFont if UseItemStyleForSubItems is
4295         true; otherwise don't show the underline style.
4296
4297 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4298
4299         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
4300         the code to retrieve the item at position only one time. Also
4301         change cursor when Activation is ItemActivation.OneClick as well
4302         as invalidate the item if HotTracking is true (to show/hide the
4303         underline style). Add an internal HotItemIndex property to retrieve
4304         the current hot item's index.
4305         * ListViewItem.cs: Add an internal HotFont property to cache the
4306         font used when HotTracking is true and the pointer moves within the
4307         item's borders.
4308         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
4309         HotFont depending on the hot state of the item.
4310
4311 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4312
4313         * ListView.cs: Implement 2.0 HotTracking property.
4314
4315 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
4316
4317         * ToolStripControlHost.cs: If our hosted control never got created,
4318         don't try to dispose it.  [Fixes bug #81909]
4319
4320 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
4321
4322         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
4323
4324 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
4325
4326         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
4327
4328 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4329
4330         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
4331         Details view.
4332         * DrawListViewColumnHeaderEventArgs.cs:
4333         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
4334         using the DrawText () methods.
4335
4336 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
4337
4338         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
4339         background which got erased in my changes yesterday.
4340
4341 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4342
4343         * ListViewItem.cs: Actually set bounds for subitems in Details view
4344         (2.0 feature).
4345         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
4346         can invoke from the owner draw routines if we need it. Also, add
4347         support for Owner draw in Details view.
4348
4349 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
4350
4351         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
4352         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
4353         ShowImageMargin setting, properly align text in a ToolStripLabel
4354         hosted on a ToolStripDropDown.
4355
4356 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
4357
4358         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
4359         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
4360
4361 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4362
4363         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
4364
4365 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
4366
4367         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
4368         location to match ToolStripMenuItems.
4369
4370 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4371
4372         * DrawListViewColumnHeaderEventArgs.cs:
4373         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
4374         column headers in ListView. 
4375
4376 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
4377
4378         * UserControl.cs: Implement AutoSize.
4379
4380 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4381
4382         * DrawListViewItemEventArgs.cs:
4383         * ListView.cs:
4384         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
4385         ListView.
4386
4387 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
4388
4389         * ToolStripDropDownItemAccessibleObject.cs: Added.
4390         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4391         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
4392         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
4393         ToolStripTextBox.cs: corcompare work.
4394
4395 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
4396
4397         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
4398         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
4399         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
4400                 corcompare.
4401
4402 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
4403
4404         * OSFeature.cs: Add IsPresent.
4405         * PrintPreviewControl.cs: Add RightToLeft.
4406         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
4407         * SplitterPanel.cs: Add AutoSizeMode.
4408
4409 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4410
4411         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
4412         * MdiClient.cs: Add 2.0 ScaleControl.
4413         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
4414         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
4415
4416 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4417
4418         * Form.cs: Implement some scaling methods, stub some RTL methods,
4419         corcompare work.
4420
4421 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4422
4423         * Control.cs: corcompare work.
4424         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
4425
4426 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4427
4428         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
4429         ControlPaint 2.0 stuffs.
4430
4431 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4432
4433         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
4434
4435 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4436
4437         * UpDownBase.cs: Add 2.0 stuffs.
4438
4439 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4440
4441         * NumericUpDown.cs: Add 2.0 stuffs.
4442
4443 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4444
4445         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
4446
4447 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4448
4449         * ErrorProvider.cs: Implement 2.0 stuffs.
4450
4451 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4452
4453         * DomainUpDown.cs: Implement 2.0 stuffs.
4454
4455 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4456
4457         * CheckedListBox.cs: Fix RefreshItems signature.
4458
4459 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4460
4461         * PictureBox.cs: Implement 2.0 stuffs.
4462
4463 2007-06-12  Andreia Gaita  <avidigal@novell.com>
4464         
4465         * TabControl.cs: Check if there are tabpages before checking
4466         the selected index - fix #81802 (font changes raise a ResizeTabs
4467         call on controls.add, which blew up nicely with no tabpages)
4468
4469 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4470
4471         * ListView.cs:
4472         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
4473
4474 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4475
4476         * ListView.cs:
4477         * ListViewItem.cs: In VirtualMode the selection information
4478         resides in the ListView, rather than in the Items. Also, throw
4479         InvalidOperationExceptions when VirtualMode is being used and
4480         CheckedItemCollection is accessed.
4481
4482 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4483
4484         * ComboBox.cs: Add ScaleControl.
4485
4486 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4487
4488         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
4489
4490 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4491
4492         * GroupBox.cs: Add 2.0 stuffs.
4493
4494 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4495
4496         * Panel.cs: Add autosize properties/event.
4497
4498 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
4499
4500         * Control.cs:
4501         - When we remove a control, remove it from the collection before performing the layout.
4502         - Setup an internal property for explicit_bounds.
4503         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
4504         - Perform a layout when we set a new AutoSizeMode.
4505
4506 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
4507
4508         * ScrollableControl.cs: Add 2.0 stuffs.
4509
4510 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4511
4512         * ScrollBar.cs: Add 2.0 stuffs.
4513
4514 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4515
4516         * Splitter.cs: Add 2.0 stuffs.
4517
4518 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4519
4520         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
4521         to have BindingContext simply use base implementation.
4522
4523 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4524
4525         * ColumnHeader.cs: corcompare fix.
4526
4527 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4528
4529         * Button.cs: corcompare fixes.
4530         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
4531
4532 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4533
4534         * Button.cs: Override GetPreferredSizeCore.
4535         * ButtonBase.cs: PerformLayout after changing properties that can affect
4536         AutoSize.  Simplify some mouse/keyboard code.
4537         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
4538         * MouseEventArgs.cs: Make Location internal for 1.1.
4539         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
4540         * Theme.cs: Add CalculateButtonAutoSize.
4541         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
4542
4543 2007-06-05  Miguel de Icaza  <miguel@novell.com>
4544
4545         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
4546
4547 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4548
4549         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
4550         since we can get different item instances every time we retrieve it.
4551
4552 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4553
4554         * ListView.cs: Work around for #81602, since an unkown an pretty
4555         infrequent condition appears only in some systems (old linux boxes, it
4556         seems).
4557
4558 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4559
4560         * Button.cs: Completely reformat and a little refactor to bring
4561         this closer to Mono circa 2007.
4562
4563 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4564
4565         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
4566         to be ButtonBase.Invalidate.
4567
4568 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4569
4570         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
4571
4572 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4573
4574         * ButtonBase.cs: Completely reformat and a little refactor to bring
4575         this closer to Mono circa 2007.
4576
4577 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
4578
4579         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
4580         values for autosize. Fixes #80137.
4581
4582 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4583
4584         * Control.cs: Don't perform layout when AutoSize changes.
4585         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
4586         directly when autosizing, use SetBounds with BoundsSpecified.None.
4587         Fixes unit tests my last commit broke.
4588
4589 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4590
4591         * Control.cs: Perform layout when AutoSize changes.
4592         * Form.cs: Implement AutoSizing.
4593
4594 2007-06-01  Chris Toshok  <toshok@ximian.com>
4595
4596         * DataGrid.cs: remove the XXX'ed check at the top of
4597         ProcessGridKey.  fixes #80464.
4598
4599 2007-06-01  Chris Toshok  <toshok@ximian.com>
4600
4601         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
4602         adding idempotent (add/remove in Edit()), and also make sure we
4603         don't add it until after we set the text, so it's not tripped in
4604         Edit().  Fixes unit test regression.
4605
4606 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4607
4608         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
4609         change is user explicit, not when the layout engine moves stuff.  Fixes
4610         anchoring to bottom and right.  [Fixes bug #81790]
4611
4612 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4613
4614         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
4615
4616 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4617
4618         * ContainerControl.cs: 
4619         Fire enter event for common ancestor if it is not a ContainerControl.
4620         Send focus to the active_control and not the 'value', the active 
4621         control might have been changed in one of the events fired.     
4622         Definitely fixes #80159.
4623
4624 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4625
4626         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
4627
4628 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4629
4630         * PropertyGrid.cs: Anchor the help description to the bottom of the
4631           help panel and refactor SelectGridItem into a
4632           SelectGridItemInternal that can be set to null (and update it to
4633           clear the help texts when it is set to null). Set root item to null
4634           when there's no SelectedObject. Fixes #80438.
4635         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
4636           when we're recalculating after a resize (only).
4637
4638 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4639
4640         * ListView.cs: Implement 2.0 RedrawItems method.
4641
4642 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4643
4644         * ListControl.cs: Disconnect PositionChanged and ItemChanged
4645         handlers from previous data manager when DataSource is set to
4646         null. Fixes #81771.
4647
4648 2007-05-31  Jackson Harper  <jackson@ximian.com>
4649
4650         * TextBoxBase.cs: These seem to be the correct values.
4651
4652 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
4653
4654         * FileDialog.cs: When close dialog with ok set filterindex using combobox
4655         value. Fixes #81784.
4656
4657 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
4658
4659         * Control.cs: Implement 2.0 scaling methods.
4660
4661 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4662
4663         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
4664           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
4665           corcompare issues.
4666
4667 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4668
4669         * ProgressBar.cs: Implemented missing 2.0 members.
4670
4671 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4672
4673         * Control.cs: Corcompare issues.
4674         * MessageBox.cs: Implemented missing 2.0 functions.
4675
4676 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4677
4678         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
4679           Implemented more 2.0 members.
4680
4681 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4682
4683         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
4684           null (strange, but it seems to happen when running unit tests).
4685
4686 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4687
4688         * ContainerControl.cs: Set active_control even earlier, before 
4689         firing any events, and undo it if validation returns false.
4690
4691 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4692
4693         * ContainerControl.cs: Raise Validation and Enter/Leave events
4694         even if there is no Form and set active_control earlier, just
4695         before firing Enter events (toshok's patches). Fixes #80647.
4696
4697 2007-05-30  Jackson Harper  <jackson@ximian.com>
4698
4699         * TextControl.cs: Redid the pageup/pagedown a little to simplify
4700         things and fix bug #81311.
4701
4702 2007-05-30  Jackson Harper  <jackson@ximian.com>
4703
4704         * X11Dnd.cs: Now that we have our own event loop, we need to
4705         cancel when we get a mouseup but it won't be accepted.
4706
4707 2007-05-30  Chris Toshok  <toshok@ximian.com>
4708
4709         * DataGrid.cs (set_CurrentCell): guard against negative
4710         column/row.
4711
4712         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
4713         array index syntax instead of looping over the property names.
4714
4715         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
4716         and set IsInEditOrNavigateMode to false there.
4717
4718 2007-05-30  Jackson Harper  <jackson@ximian.com>
4719
4720         * TreeView.cs: Make sure we don't get a bad visible order when
4721         setting to the top node.  Fixes some misc crashing in
4722         ControlInspector.
4723
4724 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4725
4726         * UserControl.cs: Add 2.0 AutoSizeMode
4727
4728 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4729
4730         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
4731
4732 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4733
4734         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
4735         lines. Fixes #80285. 
4736
4737 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4738
4739         * DataGridColumnStyle.cs: Add char trimming column header text format. 
4740
4741 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4742
4743         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
4744         Fixes #80147.
4745
4746 2007-05-29  Jackson Harper  <jackson@ximian.com>
4747
4748         * TreeNode.cs: Fix off by one on calculating whether or not a node
4749         is visible.
4750
4751 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
4752
4753         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
4754         * ScrollableControl.cs: Force an UpdateDistances when we move the
4755         scrollbars.
4756         [Fixes bug #80605]
4757
4758 2007-05-29  Andreia Gaita  <avidigal@novell.com>
4759
4760         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
4761         update the page setup screen.
4762
4763 2007-05-29  Andreia Gaita  <avidigal@novell.com>
4764
4765         * PageSetupDialog.cs: Fix landscape mode.
4766
4767 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4768
4769         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
4770         IconSizeHorizontalSpacing.
4771
4772 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4773
4774         * ListView.cs: The declaration of prev_tooltip_item should be inside
4775         a NET_2_0 conditional (avoid a warning).
4776
4777 2007-05-28  Andreia Gaita  <avidigal@novell.com>
4778
4779         * PageSetupDialog.cs: Implement PrintPreview control to display
4780         the preview thumbnail. Change unit conversion to use 
4781         PrinterUnitConvert methods.
4782         
4783         Note: there is a huge bug in ms.net where the default margins are 
4784         interpreted as centimeters (?), when in fact they are set in inches. When 
4785         loading the page setup dialog initially (ms.net), the default margins 
4786         are set to 1 inch, and the dialog shows them with value 10, when in fact 
4787         it should be 25 (properly converted). Our dialog doesn't have this bug.
4788         
4789         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
4790         RectangleF.
4791         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
4792
4793 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4794
4795         * ListView.cs:
4796         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
4797         items.
4798
4799 2007-05-28  Andreia Gaita  <avidigal@novell.com>
4800
4801         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
4802         an IntPtr on csc (it builds fine on mcs, could it be a compiler
4803         bug?), convert the ptr to Int32 first.
4804
4805 2007-05-28  Jackson Harper  <jackson@ximian.com>
4806
4807         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
4808         recieved, we will exit the dnd tracking loop.
4809
4810 2007-05-28  Jackson Harper  <jackson@ximian.com>
4811
4812         * X11Dnd.cs: Keep tracking until the xdnd finished event is
4813         recieved. TODO: I should probably stick a timer on the dropped
4814         event, and finish the drag if the XDND Finished event never shows
4815         (because some apps don't seem to send it).
4816
4817 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
4818
4819         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
4820         #81733.
4821
4822 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4823
4824         * MonthCalendar.cs: Only mark the keypresses we actually handle as
4825           handled.
4826
4827 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4828
4829         * MonthCalendar.cs: Set the size after initializing all the relevant
4830           variables. Fixes #81742.
4831
4832 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4833
4834         * KeyEventArgs.cs: Fix typo.
4835
4836 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
4837
4838         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
4839         to match MS. Fixed MinDate to only accept value less than or equal
4840         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
4841         Removed TODO's that are now verified by unit tests.
4842
4843 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
4844
4845         * TreeNodeCollection.cs: Minor corrections to exceptions to match
4846         MS.
4847
4848 2007-05-25  Jackson Harper  <jackson@ximian.com>
4849
4850         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
4851         it's own message loop.
4852         * XplatUIX11.cs: Remove some of the dnd hooks
4853
4854 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
4855
4856         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
4857         instead of MinimizedWindowSize.
4858
4859 2007-05-25  Jackson Harper  <jackson@ximian.com>
4860
4861         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
4862
4863 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4864
4865         * KeyEventArgs.cs: Added SuppressKeyPress.
4866         * Control.cs: Added support for SuppressKeyPress.
4867
4868 2007-05-24  Andreia Gaita  <avidigal@novell.com>
4869
4870         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
4871         problems with PieChart. suppress_validation should not be a counter,
4872         if there are several BeginInit calls, the first EndInit will 
4873         activate validation. Fix exceptions thrown by set_Value.
4874         * UpDownBase.cs: ValidateText only if it's the user editing it.
4875
4876 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4877
4878         * ListControl.cs: FilterItemOnProperty should return the filtered
4879         item proeprty even if DataSource is null. The same applies for
4880         GetItemText. Fixes #80427.
4881
4882 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4883
4884         * Control.cs: If a control doesn't have a parent when it's Dock is
4885         set, but it has children, it needs to do a layout.  Fixes some nested
4886         controls issues.  [Fixes bug #81199]
4887
4888 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4889
4890         * ComboBox.cs: If there are few items in the drop down list, make it
4891           the exact size the items need, no bigger. Fixes #81612.
4892
4893 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4894
4895         * Application.cs: When we have captured the keyboard for a menu,
4896         check for mouse down events in case we need to close the menu.
4897         * Control.cs, Form.cs: Remove mouse down checks for menus.
4898
4899 2007-05-24  Jackson Harper  <jackson@ximian.com>
4900
4901         * TextControl.cs: Handle tabs in non multiline mode a little
4902         differently.
4903
4904 2007-05-24  Jackson Harper  <jackson@ximian.com>
4905
4906         * TextControl.cs: We need to manually break apart tabbed text and
4907         move the tabs, since the system.drawing tabbing mechanism relies
4908         on tab stops.
4909         * TextBoxBase.cs: Move the caret properly when the user enters a
4910         tab.
4911
4912 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4913
4914         * ContainerControl.cs: Don't check CanSelect before calling
4915         ProcessMnemonic.
4916         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
4917         release a KeyboardActive on click if it's not ours.
4918
4919 2007-05-23  Andreia Gaita  <avidigal@novell.com>
4920
4921         * ColumnHeader.cs: Add TypeConverter
4922
4923 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4924
4925         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
4926
4927 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4928
4929         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
4930
4931 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4932
4933         * LinkLabel.cs: Implement public Padding property.
4934
4935 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4936
4937         * LinkLabel.cs: Implement public FlatStyle.
4938
4939 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
4940
4941         * Control.cs: Apply patch from George to call parent.PerformLayout
4942         when Visible is changed.  [Fixes bugs #81118, 81718]
4943
4944 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4945
4946         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
4947
4948 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4949
4950         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
4951
4952 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4953
4954         * ContextMenu.cs: Implement Collapse.
4955
4956 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
4957
4958         * ToolBarButton.cs: Implement Name.
4959
4960 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
4961
4962         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
4963         use current_item, it prevents some NRE. Fixes #81675.  
4964
4965 2007-05-22  Andreia Gaita  <avidigal@novell.com>
4966
4967         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
4968         without updating the text.
4969
4970 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
4971
4972         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
4973         without calling DeleteObject.  [Should fix bug #81709]
4974
4975 2007-05-22  Jackson Harper  <jackson@ximian.com>
4976
4977         * RichTextBox.cs: Set the line endings correctly, when flushing
4978         RTF text.
4979
4980 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
4981
4982         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
4983          {Width=0,Height=0}.
4984
4985 2007-05-22  Jackson Harper  <jackson@ximian.com>
4986
4987         * TreeView.cs: Setting top with a null node should set to the very
4988         top.
4989
4990 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4991
4992         * Form.cs: ShowDialog: destroy the handle when message loop is
4993           finished, matches MS behaviour. Refactor parts of WmClose into
4994           RaiseCloseEvents, that only raises events if they haven't already
4995           been raised. Fixes #81688 and #81521.
4996         * Application.cs: Don't call close on the form when exiting a modal
4997           loop, it will raise all the (Form)Closed/Closing events again if
4998           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
4999           which doesn'r raise any events it they have been raised before.
5000
5001 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
5002
5003         * Control.cs: Add OnPrint.
5004         * ToolStrip.cs: Add GetChildAtPoint.
5005         * ToolStripContainer.cs: Add OnRightToLeftChanged.
5006         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
5007
5008 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
5009
5010         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
5011
5012 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5013
5014         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
5015           isn't visible anymore. Fixes #81651.
5016
5017 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5018
5019         * Control.cs: WmShowWindow: Update children's z-order after setting
5020           their parent. SetParent may show the window, thereby corrupting
5021           z-order, since the window will be shown on top.
5022         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
5023           multiple (and redundant) WM_SHOWWINDOW messages.
5024         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
5025           event has already been raised.
5026         * Form.cs: Change is_changing_visible_state to a counter, since
5027           SetVisibleCore can be called recursively. CreateHandle: when
5028           creating mdi children, send (De)Activated events.
5029         * MdiClient.cs: Update use of is_changing_visible_state.
5030         * Application.cs: OnThreadException: Surround exception handling with
5031           try/finally to ensure we always reset the error-handling state
5032           before leaving.
5033
5034 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5035
5036         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
5037           (#81704).
5038
5039 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5040
5041         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
5042         SmallIcon views, now that we have a standarized horizontal spacing.
5043
5044         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
5045         4, just like the other views (Match .Net).
5046
5047 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
5048
5049         * Control.cs: Delay calculating anchor distances until we actually layout.
5050         Always query the WM for the actual size and location it put us at instead of
5051         only when we send negative values.
5052         [Fixes bugs #81694, 81695]
5053
5054 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5055
5056         * Application.cs: Avoid a possible stack overflow when trying to exit
5057           the application.
5058
5059 2007-05-19  Marek Safar  <marek.safar@gmail.com>
5060
5061         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
5062         enum value.
5063
5064 2007-05-19  Andreia Gaita  <avidigal@novell.com>
5065
5066         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
5067         * NumericUpDownAcceleration.cs, 
5068           NumericUpDownAccelerationCollection.cs: Added 2.0
5069           implementation.
5070
5071 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
5072
5073         * RichTextBox.cs: Recalculate the document after the ScrollBars
5074         property is changed. Fixes bug #81681.
5075
5076 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
5077
5078         * DataObject.cs: Implement 2.0 methods.
5079
5080 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5081
5082         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
5083         in the center of the checkbox, not in the left-top corner. 
5084         Fixes #80037.
5085
5086 2007-05-18  Jackson Harper  <jackson@ximian.com>
5087
5088         * RichTextBox.cs: Recalculate the document after the scrollbars
5089         property is changed.
5090         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
5091         81486.
5092
5093 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5094
5095         * CreateParams.cs: Make HasWindowManager marginally faster.
5096         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
5097           into Hwnd so that other drivers can use it as well.
5098         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
5099           the default location from Hwnd. Fixes MDI client windows always
5100           showing up at (0,0) in Windows (Win32 won't set the default
5101           location since the window styles aren't correct).
5102
5103 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
5104
5105         * TreeView.cs: Modified DoubleBuffered to just use the base
5106         implementation.
5107
5108 2007-05-18  Jackson Harper  <jackson@ximian.com>
5109
5110         * TreeView.cs: Set the top node to the last child node when
5111         expanding all
5112         - When we get focus, if there is no selected node, use the top
5113         node.
5114
5115 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
5116
5117         * KeysConverter.cs: Add CanConvertTo.
5118         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
5119         * LinkConverter.cs: Added.
5120
5121 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5122
5123         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
5124         it prevents error when file dont have write access. Fixes #81669 and #81667.  
5125
5126 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5127
5128         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
5129         button text. Fixes #79640.  
5130
5131 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5132
5133         * Control.cs: According to MSDN controls created in the designer theres 
5134         keyboard accelerators visible by default. So included check for design
5135         in ShowKeyboardCuesInternal.  
5136
5137 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5138
5139         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
5140         text. Fixes #81621.  
5141
5142 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5143
5144         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
5145         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
5146
5147 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
5148
5149         * Control.cs: Finish implementation of UI State using WmChangeUIState
5150         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
5151         in some controls to check for show_keyboard_cues to draw accell keys "_".  
5152
5153 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5154
5155         * ListBox.cs: When calculating the horizontal scrollbar
5156         in single column mode, don't use values less than 0 for
5157         Maximum. Fixes #81474.
5158
5159 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5160
5161         * ListBox.cs: Throw the some missing exceptions in
5162         ListBox.ObjectCollection methods.
5163
5164 2007-05-17  Jackson Harper  <jackson@ximian.com>
5165
5166         * TextBoxBase.cs: Recalculate the document when the word wrap
5167         value has changed. This fixes 81488.
5168
5169 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
5170
5171         * Clipboard.cs: Implement missing GetText overload.
5172
5173 2007-05-17  Chris Toshok  <toshok@ximian.com>
5174
5175         * Control.cs (CheckDataBindings): remove the binding_context arg
5176         to binding.Check.
5177
5178         * CurrencyManager.cs (OnItemChanged): fix this now that
5179         BindingManagerBase is fixed. also remove the comment telling where
5180         the fix should go.  We set transfering_data to true/false around
5181         the call to PushData to keep UpdateIsBinding from being called.
5182         (ListChangedHandler): remove the extra OnMetaDataChanged call for
5183         PropertyDescriptorAdded in the 1.1 case.  The extra call is
5184         actually generated by System.Data generating 2 metadata changed
5185         events of its own per column add.  The fix should go there.  Add a
5186         comment to that affect in our test's Assert.Ignore.
5187
5188         * BindingManagerBase.cs: Rework PullData and PushData slightly.
5189         we keep a boolean flag (transfering_data) that keeps us from
5190         calling UpdateIsBinding multiple times if we re-enter either of
5191         them.
5192
5193         * ControlBindingsCollection.cs (AddCore): remove the
5194         binding_context arg to binding.Check.
5195
5196         * Binding.cs (IsBinding): don't check if we're binding here, just
5197         return our cached value.  we update it in UpdateIsBinding.
5198         (Check): don't take the binding_context arg, we'll just use our
5199         control's.  Also, for some reason MS doesn't use the data member
5200         field when getting the bindingmanager for this binding.  it just
5201         uses the datasource.  Make this method callable multiple times,
5202         and only do the is_null_desc stuff if manager.Position != -1 (so
5203         we don't get an exception accessing manager.Current).
5204         (UpdateIsBinding): move the code from IsBinding here.
5205         (PositionChangedHandler): call Check here to we can initialize
5206         things that require a non- -1 position.
5207
5208 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
5209
5210         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
5211         control.
5212
5213 2007-05-17  Andreia Gaita  <avidigal@novell.com>
5214
5215         * TabControl.cs: Add 2.0 methods and events, including
5216         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
5217         * TabPage.cs: Add 2.0 methods
5218
5219 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
5220
5221         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
5222         keyboard_cues is properly handled by message method.  
5223
5224 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
5225
5226         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
5227
5228 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
5229
5230         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
5231
5232 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
5233
5234         * Control.cs: 
5235         - WmUpdateUIState added to handle state changes, it make call to
5236         OnChangeUICues event.
5237         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
5238         SystemInformation.
5239
5240 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
5241
5242         * ImageKeyConverter.cs: Added.
5243         * TreeViewImageKeyConverter.cs: Added.
5244
5245 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5246         
5247         * ToolTips.cs: Update Text if SetToolTip is called for a control
5248         already showing the tooltip, as well as restarting its timer; show
5249         tooltip if we are inside the control bounds by the time of calling
5250         SetToolTip. Inside ShowTooltip remove the check to not show the 
5251         tooltip again for the active control (it is allowed by .Net to 
5252         show the tooltip on the same control multiple times).
5253
5254 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5255
5256         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5257
5258 2007-05-16  Andreia Gaita <avidigal@novell.com> 
5259
5260         * ContainerControl.cs: only process tab key if there are no 
5261         modifier keys present, otherwise the control does the 
5262         tab processing, if it needs to. Fixes #81622
5263         * TabControl.cs: Fixes calculation for which tab to select on
5264         shift+ctrl+tab.
5265
5266 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5267
5268         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5269
5270 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
5271
5272         * Control.cs: Make IsInputCharInternal to allow controls to
5273         override it and still match MS API.
5274         * TextBoxBase.cs: Override IsInputCharInternal and always
5275         return true.
5276         [Fixes bug #81616]
5277
5278 2007-05-15  Jackson Harper  <jackson@ximian.com>
5279
5280         * TextBox.cs: Disable some of the menu options when using a
5281         readonly textbox.
5282
5283 2007-05-15  Jackson Harper  <jackson@ximian.com>
5284
5285         * TextBox.cs:
5286         * TextBoxBase.cs:
5287         * RichTextBox.cs: Some new 2.0 methods
5288
5289 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
5290
5291         * FileDialog.cs: On 1.0 profile, do not support multidotted 
5292         extensions.
5293
5294 2007-05-14  Jackson Harper  <jackson@ximian.com>
5295
5296         * TextBoxBase.cs: Implement some of the new 2.0 methods.
5297         * RichTextBox.cs: We need to override these methods on 2.0.
5298         * MaskedTextBox.cs: These are implemented now
5299         * TextControl.cs: This was off by one.
5300
5301 2007-05-14  Jackson Harper  <jackson@ximian.com>
5302
5303         * TextControl.cs: Because the line endings are including in the
5304         text, we don't need to add them in anymore.
5305
5306 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5307
5308         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
5309         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
5310
5311 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5312
5313         * ToolBar.cs: Adjust size to default size when button theres no text and
5314         image, it fixes remaining issues from #81524.
5315
5316 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5317
5318         * ToolBar.cs: 
5319         - When not flat call redraw to recalculate sizes on creare handle to match
5320         win32 behavior.
5321         - Revert 77220 because it causes some regressions in toobar
5322         button.
5323
5324 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5325
5326         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
5327           now actually enters a usable state.
5328
5329 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5330
5331         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
5332         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
5333         3 buttons.
5334
5335 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5336
5337         * ToolBar.cs: Save default_size on create handle to use later for buttons
5338         without text, needed to mimic win32 behavior.
5339
5340 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5341
5342         * ToolBar.cs: Fix button layour to best fit width or height according to
5343         vertical or not. Fixes #81524.
5344
5345 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
5346
5347         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
5348         toolbar size info because different styles theres different sizes.
5349         Fixes #81522.
5350
5351 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5352
5353         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
5354         if we are using checkboxes, checked is true, and we have less
5355         than two images in StateImageList; for the 1.1 in the same scenario
5356         draw the first image if we have at least one image in StateImageList.
5357         Fixes part of #81191.
5358
5359 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
5360
5361         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
5362         the owner's Items collection on merge.
5363
5364 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
5365
5366         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
5367         * ToolStripItemCollection.cs: Lots of fixes to when events get called
5368         and parent/owner gets changed based on gert's unit tests.
5369
5370 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5371
5372         * MaskedTextBox.cs: Started implementing parts of it.
5373
5374 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5375
5376         * ListView.cs: When clicking the checkbox on the items
5377         take into account the double clicks even if we have only
5378         one image in StateImageList (only for 1.0/1.1). Also 
5379         generate an extra change of checked state when we receive
5380         the second click on checkbox (match .Net behaviour). 
5381         Fixes part of #81191.
5382
5383 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
5384
5385         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
5386
5387 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
5388
5389         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
5390         even if OnLoad is overriden and base.OnLoad is not called.
5391         [Fixes bug #81582]
5392
5393 2007-05-10  Andreia Gaita  <avidigal@novell.com>
5394
5395         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
5396         shame. (I blame my ever-persisting and annoying cold)
5397
5398 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5399
5400         * ListView.cs: Don't eat navigation keys.  Let them flow through to
5401         KeyDown/KeyPress routines.  [Fixes bug #81569]
5402
5403 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5404
5405         * ListView.cs: When handling keys for selecting the item based off
5406         keyboard input, do not consider keys pressed with Alt or Control.  Also,
5407         correctly handle keys when the Shift key is down. [Fixes bug #81578]
5408
5409 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5410
5411         * Control.cs: When using UseWaitCursor, we have to store the requested
5412         Cursor to use when UseWaitCursor is turned off.
5413
5414 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5415
5416         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
5417         to false.
5418         * Application.cs: Use PreProcessControlMessage instead of
5419         PreProcessMessage.
5420         * PreProcessControlMessage.cs: Make internal for 1.1.
5421
5422 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5423
5424         * Control.cs: Add InternalContains focus property, which hast the same
5425         functionality of ContainsFocus, but also including implicit controls.
5426         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
5427         since we need to know if the focus is contained in our implicit
5428         ItemControl when calculating Layout. Fixes part of #80888.
5429
5430 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
5431
5432         * ToolTip.cs: Remove center form string alignment as it must be align to
5433         left.
5434
5435 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
5436
5437         * ToolStripItemCollection.cs: Set the new item's parent and owner
5438         in Insert like we do in Add.  [Fixes bug #81568]
5439
5440 2007-05-08  Jackson Harper  <jackson@ximian.com>
5441
5442         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
5443         - Off by one error in SetTop
5444         - Disable DoubeBuffering
5445         
5446 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5447
5448         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
5449           control as much as necessary in order to make it entirely visible,
5450           instead of centering the control in the container (matches MS
5451           behaviour). CalculateCanvasSize: we need to take the current scroll
5452           position into account when calculating the maximum canvas,
5453           otherwise the following scenario will fail: resize so that the
5454           scrollbars appear, use the scrollbars to scroll, resize again
5455           smaller, and now the canvas size is too small. Recalculate: when
5456           showing scrollbars make sure they start off at 0, and try to scroll
5457           the active control into view. Fixes #79540. HandleScrollBar: don't
5458           scroll anywhere if the scrollbar isn't visible.
5459
5460 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5461
5462         * ListView.cs: When focus changed, call Layout/Invalidate
5463         in the focused item to update the selected state (should show
5464         entire label when ListView is focused, and a part of it if is not).
5465         * ListViewItem.cs: When doing layout for LargeIcon, take into account
5466         for displaying the entire label not only the Focused state of the
5467         item, but also the Focused state of the ListView (match .Net
5468         behaviour).
5469
5470 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5471
5472         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
5473         Implement UseWaitCursor. 
5474
5475 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5476         Applying contributed patch from Sergey Volk.
5477
5478         * Clipboard.cs: Implement SetDataObject retry logic and new overload
5479         of SetDataObject.
5480         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
5481
5482 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5483
5484         * Control.cs: Implement DrawToBitmap.
5485
5486 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5487         Applying contributed patch from Stefan Noack.
5488         
5489         * Control.cs: Add [Get|Set]AutoSizeMode.
5490
5491 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5492
5493         * MdiClient.cs: Unmerge menus when the last child is closed.
5494
5495 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5496
5497         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
5498         * ToolStripManager.cs: Call Merge on DropDowns.
5499         [Fixes bug #81477]
5500
5501 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5502
5503         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
5504           uints.
5505         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
5506           visibility. We can't create forms visible, since we have to set the
5507           owner before making the form visible (otherwise Win32 will do
5508           strange things with task bar icons). The problem is that we set the
5509           internal is_visible to true before creating the control, so
5510           is_changing_visible_state is the only way of determining if we're
5511           in the process of creating the form due to setting Visible=true -
5512           this works because SetVisibleCore explicitly makes the form
5513           visibile afterwards anyways. Fixes #80775.
5514
5515 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5516
5517         * ThemeWin32Classic.cs: When drawing ListViewItems,
5518         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
5519         or LargeIcon _and_ item is not focused (match .Net behaviour).
5520
5521 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
5522
5523         * Control.cs, Form.cs: Fix some obsolete method warnings.
5524
5525 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
5526
5527         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
5528         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
5529
5530 2007-05-04  Andreia Gaita  <avidigal@novell.com>
5531
5532         * ContainerControl.cs: Fix active_control attribution when going
5533         up the parent chain so that the first parent container gets the control
5534         and the rest of the parent containers get the child containers (skips
5535         non-containers). Fixes #80729
5536
5537 2007-05-04  Randolph Chung  <tausq@debian.org>
5538
5539         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
5540         [Fixes bug #81499]
5541
5542 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5543
5544         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
5545           takes a size parameter, since the CreateParam's size isn't true for
5546           minimized forms. Fixes #81518,
5547
5548 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5549
5550         * Form.cs: Add OnDeactivateInternal.
5551         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
5552
5553 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5554
5555         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
5556           accessing the parent. Fixes #81508.
5557
5558 2007-05-03  Chris Toshok  <toshok@ximian.com>
5559
5560         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
5561         2.0 block, pass listposition + 1 to ChangeRecordState when a row
5562         was added before the current listposition.  Fixes the
5563         TestInsertRowBeforeCurrent unit test.
5564
5565 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
5566
5567         * Application.cs: Add RaiseIdle.
5568         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5569         XplatUIX11.cs: Implement RaiseIdle.
5570
5571 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
5572         corcompare work: N - Z
5573         * NotifyIcon.cs
5574         * ProgressBar.cs
5575         * RadionButton.cs
5576         * ScrollableControl.cs
5577         * SplitContainer.cs
5578         * SplitterPanel.cs
5579         * StatusBar.cs
5580         * SystemInformation.cs
5581         * TabControl.cs
5582         * TableLayoutControlCollection.cs
5583         * TableLayoutPanel.cs
5584         * TabPage.cs
5585         * ToolBar.cs
5586         * ToolBarButton.cs
5587         * ToolStrip.cs
5588         * ToolStripComboBox.cs
5589         * ToolStripContainer.cs
5590         * ToolStripContentPanel.cs
5591         * ToolStripDropDown.cs
5592         * ToolStripDropDownItem.cs
5593         * ToolStripDropDownMenu.cs
5594         * ToolStripItem.cs
5595         * ToolStripItemCollection.cs
5596         * ToolStripMenuItem.cs
5597         * ToolStripPanel.cs
5598         * ToolStripSplitButton.cs
5599         * ToolTip.cs
5600         * TreeNode.cs
5601         * TreeNodeCollection.cs
5602         * TreeNodeMouseHoverEventArgs.cs
5603         * TreeView.cs
5604
5605 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
5606
5607         * ContextMenu.cs: Add public method Show with alignment property to 2.0
5608         stuff. Thanks aatdark for the patch. 
5609
5610 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5611
5612         * GridItem.cs: Implement 2.0 Tag property.
5613
5614 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
5615
5616         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
5617         count instead of Nodes.Length.  [Fixes bug #81448]
5618
5619 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5620
5621         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
5622         [Fixes bug #81506]
5623
5624 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5625         corcompare work: A - M
5626         * BindingNavigator.cs
5627         * Button.cs
5628         * ButtonBase.cs
5629         * CheckBox.cs
5630         * Control.cs
5631         * FlowLayoutPanel.cs
5632         * Form.cs
5633         * Label.cs
5634         * LinkLabel.cs
5635         * ListView.cs
5636
5637 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5638
5639         * Application.cs: Give toolstrips a chance to process mnemonics.
5640         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
5641         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
5642         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
5643
5644 2007-05-01  Jackson Harper  <jackson@ximian.com>
5645
5646         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
5647         wider area too.
5648         - Don't set the BoundsSpecified
5649
5650 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5651
5652         * Application.cs: When using the toolstrip shortcut mechanism, allow the
5653         message to pass through to a regular control if it hosted by a toolstrip.
5654         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5655         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
5656
5657 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5658
5659         * TextRenderer.cs: Use the flags argument when using the MeasureString
5660         fallback algorithm.
5661
5662 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5663
5664         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
5665         the MDI menu item.  [Fixes bug #81483]
5666
5667 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
5668
5669         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
5670         string. When setting Name to null, use zero-length string instead.
5671
5672 2007-04-29  Andreia Gaita  <avidigal@novell.com>
5673
5674         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
5675         DeselectTab). Implement missing 2.0 TabPageCollection methods
5676         (Add, ContainsKey, RemoveByKey, IndexOfKey)
5677
5678 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
5679
5680         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
5681
5682 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
5683
5684         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
5685         Fixes bug #81479. Include details of exception when LoadFile fails.
5686
5687 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
5688
5689         * DrawListViewSubItemEventArgs.cs: Added missing setter
5690
5691 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5692
5693         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
5694         Hide methods (not complete). Implement missing 2.0 OnPopup event.
5695
5696 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5697
5698         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
5699         removed in ly last commit (it was breaking the Label edit feature).
5700
5701         * ThemeWin32Classic.cs: When drawing a ListViewItem use
5702         StringAlignment.Near for LineAlignment (match .Net).
5703
5704 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5705
5706         * TabControl.cs: Change SetTab so it adds the tabpage to the list
5707         of controls if it isn't already there - was blowing up when doing
5708         tabcontrol.TabPages[i]=new TabPage(). 
5709         SetTab now does a replace by removing the page at the index. 
5710         Add a new InsertTab method that inserts a page in a given index 
5711         instead of replacing. 
5712         Implements TabPageCollection.Insert(int, TabPage).
5713
5714 2007-04-27  Chris Toshok  <toshok@ximian.com>
5715
5716         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
5717         internal handler that can be invoked from our subclasses.)  Also,
5718         add a comment to PushData about how we need to fix it.
5719
5720         * CurrencyManager.cs: tons of changes here.  trying to get things
5721         matching the behavior of .net wrt event orders (ItemChanged,
5722         CurrentChanged, PositionChanged.)  I've implemented a private .net
5723         symbol (ChangeRecordState) that appears in stack traces because
5724         it's actually easier to do this than to effective inline all its
5725         various behaviors at every call site.
5726
5727         * RelatedPropertyManager.cs: guard against an exception here by
5728         not using parent.Current if the position is set to -1 (if the
5729         parent datasource is cleared, for instance).
5730
5731         * Binding.cs: don't parse data in PushData (this might be wrong,
5732         but it jives with MS's behavior.)  Also, don't call PushData when
5733         we get a CurrentChanged event.
5734
5735 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5736
5737         * WebBrowser.cs,
5738           WebBrowserBase.cs,
5739           WebBrowserSiteBase.cs,
5740           HtmlDocument.cs: Added stubbed out classes, no real implementations 
5741           yet.
5742
5743 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5744
5745         * MainMenu.cs: In draw method without parameters call draw method with 
5746         PaintEvent, another one (just rect) adjust rectangle and we dont need it
5747         as Rect property is already adjusted. Fixes #80694.
5748
5749 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
5750
5751         * Application.cs: Need to handle keyboard menu deselection here.
5752         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
5753         navigation, allowing keyboard to work on X11.
5754         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
5755
5756 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5757
5758         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
5759         menu bar. It fixes some drawing issues in menu bar.
5760
5761 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5762
5763         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
5764         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
5765         when <alt> key is pressed.
5766
5767 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
5768
5769         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
5770         example just set visible to false and make this prevent from other problems.
5771         In SystrayAdd always remove pending expose. Fixes #81072.
5772
5773 2007-04-26  Marek Safar  <marek.safar@gmail.com>
5774
5775         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
5776         value is set.
5777
5778 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5779
5780         * ListView.cs: Added three missing 2.0 events and corresponding
5781         EventHandlers. Added the OwnerDraw property.
5782         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
5783
5784 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5785
5786         * DrawListViewItemEventArgs.cs
5787         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
5788
5789 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5790
5791         * TextControl.cs: Fixed typo in constructor
5792
5793 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
5794
5795         * Application.cs: Create a shortcut path so that currently selected
5796         MenuStrips can intercept keyboard events without having focus.
5797         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
5798         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
5799         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
5800         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
5801         generate WM_SYSCOMMAND message in X11 for other platforms.
5802         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
5803         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
5804         * ToolStripSplitButton.cs: Add DefaultItem property.
5805         
5806 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
5807
5808         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
5809         fixes some menu draw problem on Windows with border diferent from default
5810         it also fixes #81403.
5811
5812 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5813
5814         * Form.cs: Refactor WndProc into separate methods, just like Control is
5815           doing it.
5816
5817 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5818
5819         * Control.cs: set_Text: move the call to the driver into a seperate
5820           virtual method so that Form can override it.
5821         * MaskedTextBox.cs: Corcompare fixes.
5822         * Form.cs: Override UpdateWindowText and only update the styles if the
5823           form has been shown (fixes #81405).
5824
5825 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
5826
5827         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
5828         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
5829         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
5830         the form lost focus or another control was clicked.
5831
5832 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
5833
5834         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
5835         fixed.
5836
5837 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5838
5839         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
5840           DrawListViewItemEventHandler.cs,
5841           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
5842           Added.
5843         * X11Structs.cs: More ToString implementation.
5844
5845 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
5846
5847         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
5848         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
5849
5850 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5851
5852         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
5853           handle.
5854         * FormCollection.cs: Don't add a form if it's already in the
5855           collection.
5856         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
5857           according to behaviour and MSDN. The ownerWin32 is the active
5858           window at the moment when we call ShowDialog, not the context's
5859           main form (the context's main form may open another form that opens
5860           a form with ShowDialog, the win32 owner is the second form). Add
5861           and remove forms to the Application.OpenForms in other places to
5862           better match MS behaviour. Add an IsActive property that raises
5863           On(de)Activated only if the active state has changed (we were
5864           raising OnDeactivated before OnActivated while creating forms).
5865         * Application.cs: Refactor Enabling/Disabling of windows for modal
5866           dialog loops out to separate methods, and restore the thread
5867           context when we quit the method. Fixes #81407.
5868
5869 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5870
5871         * ListView.cs: In ItemControl.HandleClicks, also fire 
5872         2.0 MouseClick or MouseDoubleClick events on the parent,
5873         not only the Click/DoubleClick events.
5874
5875 2007-04-24  Andreia Gaita  <avidigal@novell.com>
5876
5877         * TableLayoutSettings.cs: 
5878         - Added a GetControls method and a support structure to help the 
5879         TypeConverter to enumerate the controls for     serialization. 
5880         - Added a new serialization constructor. 
5881         - Added a isSerialized flag initialized to true on the 
5882         serialization constructor so that the TableLayoutPanel.LayoutSettings 
5883         setter does not throw the designed NotSupportedOperation exception
5884         when the object is built through deserialization.
5885         - Implemented GetObjectData
5886         
5887         * TableLayoutPanel.cs: Added check on LayoutSettings.
5888
5889 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5890
5891         * ListView.cs: Report Click and DoubleClick events to the parent
5892         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
5893         from breaking the click count state when using dialog forms (Control
5894         reports the clicks in a similar fashion). In the previous behaviour
5895         the last WM_LBUTTONUP message in a  double click was sent to the
5896         ListView's form, instead of the ListView, which was breaking the click
5897         count for it. Fixes #80387.
5898
5899 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
5900
5901         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
5902
5903 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
5904
5905         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
5906         us from created dropdowns for menu items that do not have subitems.
5907         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
5908         Check HasDropDownItems before calling DropDown so a dropdown will not be
5909         created if it isn't needed.
5910
5911 2007-04-24  Jackson Harper  <jackson@ximian.com>
5912
5913         * TreeView.cs: Set the first node to the selected node when we get
5914         focus if there is no selected node.
5915
5916 2007-04-24  Andreia Gaita  <avidigal@novell.com>
5917
5918         * MimeIcon.cs: remove using blocks so that image streams are
5919         not disposed of. Fixes #80151
5920
5921 2007-04-24  Jackson Harper  <jackson@ximian.com>
5922
5923         * TextBoxBase.cs: Fixup the height of textboxes when the control
5924         is created.
5925
5926 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
5927
5928         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
5929         for each ToolStripItem when the parent's RightToLeftChanged is called.
5930
5931 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5932
5933         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
5934           Fixes #80163.
5935         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
5936           property, so that the setter can be overriden too.
5937         * TextBox.cs: Change GetContextMenuInternal() to use
5938           ContextMenuInternal.
5939
5940 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5941
5942         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5943           #81406.
5944
5945 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5946
5947         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5948           #81406.
5949
5950 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5951
5952         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
5953           avoid duplicate work. Mostily skeleton code, it's not working at
5954           all yet.
5955
5956 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
5957
5958         * NotifyIcon.cs : stub for MouseClick event
5959         * Application.cs: stub for SetUnhandledExceptionMode
5960
5961 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
5962
5963         * BindingNavigator.cs : Initial (partial) implementation
5964
5965 2007-04-23  Jackson Harper  <jackson@ximian.com>
5966
5967         * TreeView.cs: Do not create the treeview's handle when setting
5968         the scroll position.
5969         - ExpandAll needs to compute the scrollbars so it knows which
5970         position to set the bar too.
5971         * TreeNode.cs: 
5972         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
5973
5974 2007-04-23  Jackson Harper  <jackson@ximian.com>
5975
5976         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
5977         key. Fixes #81408.
5978
5979 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
5980
5981         * ToolStripItem.cs: Make GetImageSize internal.
5982         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
5983         need to draw an item.  Fixes a reported issue where images on menus
5984         that were not 16x16 were drawing incorrectly.
5985
5986 2007-04-21  Miguel de Icaza  <miguel@novell.com>
5987
5988         * Padding.cs: Use the converter, fixes the resgen2 issue with
5989         XMLNotePad. 
5990
5991 2007-04-21  Jackson Harper  <jackson@ximian.com>
5992
5993         * TreeView.cs: Dont try to unhighlight the selected node if there
5994         isn't a selected node.
5995
5996 2007-04-21  Jackson Harper  <jackson@ximian.com>
5997
5998         * UpDownBase.cs:
5999         * TextBoxBase.cs:
6000         * ListView.cs:
6001         * ListBox.cs:
6002         * TreeView.cs: Use the InternalBorderStyle property to set the
6003         initial border style, this forces the client rectangle to be sized
6004         correctly.
6005
6006 2007-04-20  Jackson Harper  <jackson@ximian.com>
6007
6008         * TreeView.cs: Simplify scrolling to the last node after expanding
6009         all.
6010         - Fix some off by ones with setting the bottom.
6011
6012 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
6013
6014         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
6015         that.  We were incorrectly doing it the other way around.  Also,
6016         update ClientSize if we change the BorderStyle before the control
6017         is created.
6018
6019 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
6020
6021         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
6022         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
6023         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
6024         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
6025         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
6026         Caption to CaptionHeight.
6027         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
6028         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
6029         and FixedFrameBorderSize to return value from current XplatUI driver.
6030         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
6031         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
6032         and FixedFrameBorderSize using win32 API. Renamed Caption to
6033         CaptionHeight.
6034         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
6035         * SystemInformation.cs: Fixed typo in BorderSize.
6036
6037 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
6038
6039         * XplatUI.cs: Added MenuAccessKeysUnderlined.
6040         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
6041         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
6042         returning false.
6043         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
6044         value from XplatUI driver.
6045         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
6046         SystemParametersInfo.
6047         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
6048         override.
6049         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
6050         returning false.
6051
6052 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6053
6054         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
6055
6056 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6057
6058         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
6059
6060 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
6061
6062         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
6063         MenuStrips that contain ToolStripSeparators.
6064
6065 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6066
6067         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
6068           DefineStdCursorBitmap.
6069         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
6070           has been created off a standard cursor. This is used to get a
6071           bitmap of the standard cursor when Draw or DrawStretched is called
6072           in order to draw the cursor.
6073         * X11Structs.cs: Added XcursorImage and XcursorImages.
6074         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
6075           DefineStdCursorBitmap.
6076         * Cursors.cs: Update all relevant creations of Cursor to use the new
6077           internal constructor.
6078
6079 2007-04-19  Jackson Harper  <jackson@ximian.com>
6080
6081         * TextBox.cs: Move the has_been_focused into the base control, so
6082         some of the text adding methods can manipulate it (probably time
6083         for a better name for this flag too).
6084         - Call a new version of selectall that doesn't scroll
6085         * TextBoxBase.cs: When we append text, if the document is empty,
6086         don't scroll.  If the document has text already, we scroll to the
6087         end of the appended text.
6088         - When the text is changed, we reset the has_been_focused, so the
6089         next time the control gets focused, all the text is selected.
6090
6091 2007-04-19  Jackson Harper  <jackson@ximian.com>
6092
6093         * TextControl.cs: Move the margins to the document, add a method
6094         so the margin sizes can be updated.
6095         * TextBoxBase.cs: When the border style is changed, update the
6096         border sizes.
6097
6098 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
6099
6100         * Control.cs: Respect DefaultPadding.
6101         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
6102         padding into account.
6103         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
6104
6105 2007-04-19  Jackson Harper  <jackson@ximian.com>
6106
6107         * TextControl.cs: Oops, we need to use the ClientRect not the
6108         bounds here.
6109
6110 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6111
6112         * ListView.cs: In ItemControl.ItemsMouseDown, take into
6113         account the double clicks when CheckBoxes are used and
6114         the pointer is inside the checkbox. Fixes part of #81191.
6115
6116 2007-04-18  Jackson Harper  <jackson@ximian.com>
6117
6118         * TextControl.cs: Pressing the end key shouldn't move the caret
6119         past the line ending.
6120         * TextBoxBase.cs: We can still delete if we are in the line
6121         ending and the combine will just kill the existing line ending.
6122
6123 2007-04-18  Jackson Harper  <jackson@ximian.com>
6124
6125         * TextControl.cs: We can't move lines, then invalidate their
6126         bounds, we need to get the old bounds and combine that with the
6127         new bounds.
6128         * TextBoxBase.cs: Before combining two lines for a delete, we need
6129         to invalidate the area of the old line, since that will be moved
6130         in the combine operation.
6131
6132 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
6133
6134         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
6135         with transparent background. Fixes #80482.
6136
6137 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
6138
6139         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
6140         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
6141         [Fixes bug #81391]
6142
6143 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6144
6145         * CreateParams.cs: Add a couple of helper methods and do a less string
6146           concatenation in ToString.
6147         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
6148           overload that takes a Control parameter, since this method may be
6149           called before a control is assigned to the hwnd (from
6150           CreateWindow), and update CreateWindow to use the new overload. In
6151           GetMenuOrigin subtract the title bar from the y position if the
6152           form has a window manager (since we're painting it and not X).
6153         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
6154           CreateParams to calculate the origin (since border sizes may vary).
6155           In ScreenToMenu only subtract the title height if we actually have
6156           a title.
6157         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
6158           mdi children never have menus of themselves.
6159         * InternalWindowManager.cs: Implement menu handling like form does.
6160           Added GetMenuOrigin to calculate the menu origin, can't use the
6161           CreateParams from the form like normally since it's lying.
6162         * Hwnd.cs: Implement GetBorderSize better (in the sense more
6163           windows-like) and add Inflate and comparison operators to the
6164           Borders type. When calculating MenuOrigin and it's a form with a
6165           window manager, use the window manager to calculate it.
6166
6167 2007-04-17  Chris Toshok  <toshok@ximian.com>
6168
6169         * Control.cs (CreateControl): turns out in 2.0 we don't need this
6170         OnBindingContextChanged thing here.  It's only generated from
6171         ContainerControl.OnCreateControl.  Fixes a newly written unit test
6172         - BindingTest.BindingContextChangedTest4.
6173         
6174 2007-04-17  Jackson Harper  <jackson@ximian.com>
6175
6176         * ScrollBar.cs: When setting values, make sure the current
6177         position stays within the new values range.
6178
6179 2007-04-17  Chris Toshok  <toshok@ximian.com>
6180
6181         * Control.cs (CreateControl): talk about a bizarre corner case.
6182         Don't emit OnBindingContextChanged here if we're a parentless
6183         control (i.e. if we're a form.).  Fixes
6184         BindingTest.BindingContextChangedTest2.
6185
6186 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
6187
6188         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
6189         from win32. Fixes #81255.
6190
6191 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
6192
6193         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
6194         already present in CalculateButtonTextAndImageLayout.
6195
6196 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6197
6198         * XplatUIX11.cs: When setting min/max size for a window we need to
6199           translate the coordinates to x coordinates. Create an overload of
6200           SetWindowMinMax that takes a CreateParams handling this, and change
6201           SetWMStyles to call this function (can't use Control.FromHandle in
6202           the SetWindowMinMax to get the control/CreateParams from the handle
6203           because the handle might not have been assigned to the control
6204           yet). Fixes #81371.
6205
6206 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6207
6208         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
6209         if StateImageList is non-null and it has less than two items (match MS
6210         behaviour). Also, in HandleNavKeys handle the Space key, calling
6211         the new ToggleItemsCheckState method, which tries to change the
6212         checked state of the selected items. Fixes part of #81191.
6213
6214 2007-04-16  Jackson Harper  <jackson@ximian.com>
6215
6216         * RichTextBox.cs: namespace cleanup.
6217
6218 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
6219
6220         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
6221
6222 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
6223
6224         [Fixes #79447]
6225         * Control.cs: Call invalidate in set_Region.
6226
6227         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
6228         it dont works here.
6229
6230 2007-04-16  Jackson Harper  <jackson@ximian.com>
6231
6232         * TextBoxBase.cs: When enter is pressed, we need to update all
6233         lines below the current.
6234
6235 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
6236
6237         * MdiClient.cs: Implement implicit menu merging for MDI
6238         children.  When a child form is active, if it has a menustrip
6239         and the parent form has a MainMenuStrip, automatically merge
6240         the menus.
6241
6242 2007-04-15  Andreia Gaita  <avidigal@novell.com>
6243
6244         * TabControl.cs: Refactored sizing methods to not repeat
6245         code all over the place. Tab bounds are now calculated
6246         as if alignment is top and single line, and only when 
6247         setting the bounds are the positions adjusted according
6248         to alignment. Replaced hardcoded positions, spacings and
6249         paddings by getting the values the ThemeEngine. 
6250         Fixes #79619.
6251         
6252         * Theme.cs: Change TabControl properties and methods so
6253         that all start with TabControl*. Added more properties
6254         to help remove hardcoded values on tabcontrol.
6255         Add CPDrawBorder3D declaration so the Theming classes
6256         can access it.
6257         
6258         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
6259
6260         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
6261         on the Theming namespace, and call the appropriate methods here.
6262         Change CPDrawBorder3D to public.
6263
6264 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6265
6266         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
6267         the control after firing the OnMouseUp event, instead of sending
6268         the message before the mentioned event. This is so we can match the
6269         MS behaviour. Fixes part of #80385.
6270
6271 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
6272
6273         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
6274         RightToLeft property.
6275
6276 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
6277
6278         * ToolStrip.cs: Add properties and internal methods to support merging.
6279         * ToolStripItem.cs: Add MergeAction and MergeIndex.
6280         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
6281         not trigger reparenting or layouts.
6282         * ToolStripManager.cs: Add Merge and RevertMerge methods.
6283         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
6284         is hosting the overflow menu.
6285
6286 2007-04-13  Jackson Harper  <jackson@ximian.com>
6287
6288         * TextControl.cs: Set the line ending correctly for the first
6289         inserted line.
6290
6291 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
6292
6293         * Theme.cs: Update GetMethod to get the new definition for 
6294         KnownColors.Update (and fix theme color updates).
6295
6296 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
6297
6298         * MessageBox.cs: Fix some test and button position.
6299
6300 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6301
6302         * Form.cs: Consider the implicit controls in
6303         GetRealChildAtPoint. We need it since this method
6304         is called on Form when handling the some messages in
6305         WndProc, and need to consider those implicit ones too.
6306         Fixes #80385.
6307
6308 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
6309
6310         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
6311         if there are no ShortcutKeys set.
6312         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
6313         set, use it when painting.
6314
6315 2007-04-12  Jackson Harper  <jackson@ximian.com>
6316
6317         * TextControl.cs: Fix some off-by-one issues in line duplication
6318         and insertion in the undo manager. Also, overwrite the first tag
6319         of a line on insert, if it is just a zero lengthed tag. This
6320         prevents us from getting an extra stranded tag at the beginning of
6321         the first line.
6322
6323 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
6324
6325         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
6326         to calculated proper size including when handle was not created yet.
6327
6328 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6329
6330         * MdiWindowManager.cs: When moving a form, allow the form to be moved
6331           when the mouse is outside of it's parent's client rectangle. Fixes
6332           #79982 (take 3, part 2).
6333
6334 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6335
6336         * X11Structs.cs: Add a few ToString() overrides.
6337         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
6338           the window location in a window-manager independent way. Reworked
6339           FrameExtents, it now actually works. Reworked AddConfigureNotify
6340           and ReparentNotify handling to use GetTopLevelWindowLocation
6341           instead of the earlier, more hacky solution. Reworked SetWMStyles,
6342           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
6343           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
6344           for all other windows (fixes #81281 part 1), a toolwindow is hidden
6345           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
6346           and generally refactored to do as few calculations as possible
6347           inside the lock.
6348
6349 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
6350
6351         * Theme.cs: Change "reflective-contract" between MWF and SD to 
6352         minimize # of calls, avoid Color serialization and avoid updating 
6353         every "known colors" each time a single one is updated.
6354
6355 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
6356
6357         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
6358         when not readonly and the text is explicitly set. Code style updates.
6359         * DataGridTableStyle.cs: Removed extra line.
6360         * DataGrid.cs: Code style updates. Removed extra whitespace.
6361         * DataGridColumnStyle.cs: Code style updates. Removed extra 
6362         whitespace.
6363
6364 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6365
6366         * XplatUIX11.cs: Added comment that "fixes" #80021.
6367
6368 2007-04-09  Jackson Harper  <jackson@ximian.com>
6369
6370         * TextControl.cs: We don't need this -1 on the line count anymore.
6371
6372 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
6373
6374         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
6375         entered value to underlying type, and convert it back to a string to
6376         apply formatting. Modified GetFormattedValue to use TypeConverter
6377         if available.
6378
6379 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
6380
6381         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
6382         Use SubItems property when we want to ensure there's at least one
6383         subitem. Modified SubItems property to ensure there's always at least
6384         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
6385         the NRE's reported by MS.
6386
6387 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
6388
6389         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
6390         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
6391         Spaces to tabs. Removed extra tabs.
6392
6393 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
6394
6395         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6396         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
6397
6398 2007-04-06  Jackson Harper  <jackson@ximian.com>
6399
6400         * TextBoxBase.cs: When a delete removes a line, recalculate all
6401         lines below that line (they need to get offsets setup correctly)
6402         and invalidate.
6403
6404 2007-04-05  Jackson Harper  <jackson@ximian.com>
6405
6406         * TextControl.cs: We need to invalidate across the width of the
6407         document when we are invalidating multiple lines.
6408         * TextBoxBase.cs: Don't delete into the line ending.
6409
6410 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6411
6412         * ListView.cs: Restore the check for the MouseHover event
6413         in ListView. It looks like the ListView fires more than one MouseHover
6414         event when HoverSelection is true  _only_ in weird-corner scenarios, but
6415         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
6416         event.
6417
6418 2007-04-05  Mike Kestner  <mkestner@novell.com>
6419
6420         * ListView.cs : raise MouseDown before updating selection.
6421         [Fixes #80373 tab 1&3]
6422
6423 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
6424
6425         * ToolStripRenderer.cs: Add static method to mirror image.
6426         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
6427         and RightToLeftAutoMirrorImage.
6428         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
6429
6430 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
6431
6432         * ToolStripSplitStackLayout.cs: Support Alignment property.
6433         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
6434
6435 2007-04-05  Jackson Harper  <jackson@ximian.com>
6436
6437         * TextControl.cs: Move around the line endings when crossing line
6438         boundaries.
6439         - When combining lines, strip the ending text off the first line.
6440
6441 2007-04-05  Jackson Harper  <jackson@ximian.com>
6442
6443         * TextControl.cs:
6444         * TextBoxBase.cs: Try to never move the cursor into the line
6445         ending.
6446         
6447 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6448
6449         * ToolStripItem.cs: Make sure we aren't firing mouse events when
6450         the item is disabled.  Also add a few missing methods.
6451
6452 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6453
6454         * ListView.cs: We don't need the MouseEnter/MouseLeave check
6455         to fire just one MouseHover event when HoverSelection is true, since
6456         .Net does fire more than one MouseHover event in that scenario. Also,
6457         fix the selection in HoverSelection, by invoking UpdateMultiSelect
6458         if MultiSelect is true, instead of only setting ListViewItem.Selected.
6459         Finally, we need to reset the Hover logic in MouseMove, even when we
6460         don't have a selected item.
6461
6462 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6463
6464         * ToolStrip.cs: Add several missing methods, properties, and events.
6465
6466 2007-04-04  Chris Toshok  <toshok@ximian.com>
6467
6468         * DataGridTextBoxColumn.cs: set the bounds of the text box to
6469         (0,0,0,0) in Commit, as MS does.
6470
6471         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
6472         make sure we set CurrentRow on a row header click *before* calling
6473         Select.  This moves the current cell (and the textbox) to the new
6474         row.  The call to Select then hides the textbox, giving us the
6475         correct behavior.  Fixes #80362.
6476
6477         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
6478         (ListChangedHandler): reorder the position/current changed events,
6479         and call UpdateIsBinding in the ItemAdded case.
6480
6481         * GridColumnStylesCollection.cs: add some columns events, one of
6482         which raises the CollectionChanged event.
6483
6484 2007-04-04  Jackson Harper  <jackson@ximian.com>
6485
6486         * TextControl.cs: When we delete multiple selection lines
6487         invalidate the selection area, don't need to do that for single
6488         lines because the final update view will handle it.
6489
6490 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6491
6492         * Control.cs: When we CreateControl, we need to also create all of the
6493         control's children.  The child's OnLoad must also fire before the parent's
6494         OnLoad.  Fixes the toolbox size in PDN.
6495
6496 2007-04-04  Jackson Harper  <jackson@ximian.com>
6497
6498         * TextBoxBase.cs: When the user presses enter, insert a line
6499         ending into the text. (Maybe this would be a good spot for
6500         Environment.NewLine).
6501         * TextControl.cs: Remove undo manager hack, line endings get
6502         inserted properly now.
6503         
6504 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
6505
6506         * MenuAPI.cs: 
6507         - Remove unneeded parameters in UpdateCursor.
6508         - Fix UpdateCursor to check if menu is active.
6509         - Call UpdateCursor when menu deactivate my click.
6510         [Fixes remaining issues from #80410]
6511
6512 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
6513
6514         * Control.cs: GetRealChildAtPoint method added, it make an
6515         recursive child control search for the point. 
6516
6517         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
6518         menu.
6519
6520         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
6521
6522 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
6523
6524         * Form.cs: Fix mouse position when send back mouse event after closes
6525         menu.
6526
6527 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
6528
6529         * Form.cs: Simplify the BUTTONDOWN for active tracker.
6530
6531 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
6532
6533         * Control.cs: Fix an issue where if a user resized a control inside
6534         a sizing method like OnResize, we would overwrite their explicit
6535         value.  Also, only call DefaultSize once in the constructor instead
6536         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
6537         nothing actually changed.
6538
6539 2007-04-03  Jackson Harper  <jackson@ximian.com>
6540
6541         * TextControl.cs: Don't attempt to copy text for lines with no
6542         text in them (technically this shouldn't happen, but we aren't
6543         always inserting line endings when we should be).
6544
6545 2007-04-03  Jackson Harper  <jackson@ximian.com>
6546
6547         * TextBoxBase.cs: Calculate the scrollbars before calculating the
6548         document, because this sets some of the document size properties
6549         that are needed.
6550
6551 2007-04-03  Jackson Harper  <jackson@ximian.com>
6552
6553         * TextBoxBase.cs: We need to calculate maximums even if this is
6554         not a multiline control, because the maxs are used for scrolling.
6555         - Display the caret after doing a page up/down, we need to
6556         manually display it because a proper CaretMoved event isn't
6557         triggered (this is because of the way the math is done to
6558         determine how far to scroll).
6559
6560 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
6561
6562         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
6563         (ToolBar was relying on SetBoundsCore to default the values sent 
6564         base off of BoundsSpecified.)
6565
6566 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6567
6568         * DateTimePicker.cs: Change Text so that when a null value or empty
6569           string is assigned to the test we always raise ValueChanged and
6570           TextChanged (earlier implementation would only raise ValueChanged
6571           if the current date value was different from DateTime.Now).
6572
6573 2007-04-03  Andreia Gaita <avidigal@novell.com> 
6574
6575         * ButtonBase: Call update after invalidation, fixes #80194
6576
6577 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6578
6579         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
6580           #79335.
6581
6582 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6583
6584         * XplatUIX11.cs: SetWMStyles: If the control is a form with
6585           FormBorderStyle = None, don't give the window any decorations.
6586           Fixes #81276.
6587
6588 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6589
6590         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6591         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
6592           to check for is a mix of several styles (such as WS_CAPTION for
6593           instance).
6594         * Control.cs: Don't paint an area bigger than the client area when
6595           painting the background colour. Add an internal GetCreateParams.
6596           Update calls to XplatUI.CalculateWindowRect due to API change.
6597         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
6598           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
6599           the size if it hasn't been handled by any windows. When creating
6600           and moving windows, X wants the location of the entire window, but
6601           the size of the client window, so add
6602           TranslateClientRectangleToXClientRectangle,
6603           TranslateWindowSizeToXWindowSIze and
6604           TranslatedXWindowSizeToWindowSize to cope with this, and call them
6605           before every window creation and move. Update CalculateWIndowRect
6606           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
6607           In AddConfigureNotify don't do anything if the hwnd is a zombie
6608           (fixes the BadWindow we were getting while running the tests),
6609           always calculate the offsets when it's a parentless window, not
6610           only when reparented, and translate the window size, since we're
6611           getting the client size of the whole window, excluding entire
6612           window.
6613         * Theme.cs: Added BorderSizableSize.
6614         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6615           anymore. Update calls to XplatUI.CalculateWindowRect due to API
6616           chang
6617         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
6618           change. Fake the window styles here instead of in XplatUIWin32 so
6619           that all back-ends get the same window styles (and it's Form that's
6620           deciding when to use wm, not the Win32 backend anyways)
6621         * Hwnd.cs: Completely reworked GetWindowRectangle and
6622           GetClientRectangle - they are now passed a CreateParams and they
6623           only use Style and ExStyle to determine the rectangles (they should
6624           now work just like Win32AdjustWindowRectEx - though quite a few
6625           special cases are probably missing). They should also be 100%
6626           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
6627           == rect), and all numbers (borders, menu sizes) are taken from the
6628           current theme. Added a GetBorders helper function that will return
6629           the borders for any given CreateParams (including captions and
6630           menus), and GetBorderSize that returns the given border size only.
6631         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6632           Hwnd.GetClientRectangle.
6633
6634 2007-04-02  Chris Toshok  <toshok@ximian.com>
6635
6636         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
6637         logic between the values we present to the user and the values
6638         which are stored in the column's property.  Also, don't call
6639         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
6640
6641 2007-04-02  Jackson Harper  <jackson@ximian.com>
6642
6643         * TextBoxBase.cs: Scroll faster!
6644
6645 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
6646
6647         * StatusStrip.cs: Layout fixes for PDN.
6648         * ToolStrip.cs: Set item's available to true, and placement to main when
6649         added.
6650         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
6651         changing in setter before doing any work, add InternalVisible.
6652         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
6653         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6654         infinite loop.
6655
6656 2007-04-02  Jackson Harper  <jackson@ximian.com>
6657
6658         * TextBox.cs: LBUTTON does not make the textbox select all of it's
6659         text on focus.
6660
6661 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6662
6663         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
6664           Makes ToolStripComboBoxes show up again.
6665
6666 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6667
6668         * ListView.cs: Add a hover_pending field in ListView
6669         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
6670         cycle (we are resetting the MouseHover logic in XplatUI
6671         to handle HoverSelection). Fixes #80429.
6672
6673 2007-04-02  Jackson Harper  <jackson@ximian.com>
6674
6675         * TextControl.cs: Make sure the attributes get set on the last
6676         tag.
6677         - Still have to do the end tag if we have stepped all the ways to
6678         the end.
6679
6680 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
6681
6682         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
6683         on an internal libgdiplus call when the information is already 
6684         available via the public API.
6685
6686 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6687
6688         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
6689           control is removed from a control collecftion.
6690         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
6691           Fixes FormPropertyTest (failed on rare occasions).
6692         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
6693           of Win32SetParent (when changing from no parent to a parent it
6694           might add the new parent's location in screen coordinates to this
6695           window's location).
6696         * Form.cs: Rework ChangingParent once again, now the handle is
6697           recreated whenever a FormWindowManager is added or removed (that is
6698           whenever a normal form is parented or abandoned). Also change
6699           CreateParams so that all non-toplevel windows always get the
6700           specified sice (StartupPosition is never considered for
6701           non-TopLevel forms).
6702         * ContainerControl.cs: Add ChildControlRemoved, the container control
6703           needs to be notified when a control is removed from it's
6704           collection, in the case the removed control is the active control.
6705
6706 2007-04-02  Jackson Harper  <jackson@ximian.com>
6707
6708         * RichTextBox.cs: Use the new methods for setting the font and
6709         color, these methods set the specified attribute without
6710         overriding the other attributes.
6711
6712 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
6713
6714         * ToolStripPanel.cs: Fixes for better layouts in PDN.
6715
6716 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
6717
6718         * TextBox.cs: Added internal ChangeBackColor method to special-case
6719         Color.Empty. Added check for invalid ScrollBars value.
6720         * TextBoxBase.cs: Added internal ChangeBackColor method.
6721         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
6722         internal ChangeBackColor method to special-case Color.Empty. Added
6723         check for invalid ScrollBars value.
6724
6725 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
6726
6727         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
6728
6729 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
6730
6731         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
6732         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
6733         [Based on submitted patch from Olivier Duff.]
6734
6735 2007-03-30  Jackson Harper  <jackson@ximian.com>
6736
6737         * TextBox.cs: Only select all on initial focus if the user has not
6738         specified a selection area.
6739
6740 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
6741
6742         * UserControl.cs: Override CreateParams.
6743
6744 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6745
6746         [ Fixes #80995 ]
6747
6748         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6749         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
6750           check for is a mix of several styles (such as WS_CAPTION for instance).
6751         * Control.cs: Don't paint an area bigger than the client area when painting
6752           the background colour. Add an internal GetCreateParams. Update calls to
6753           XplatUI.CalculateWindowRect due to API change.
6754         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
6755           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
6756           hasn't been handled by any windows. When creating and moving windows, X
6757           wants the location of the entire window, but the size of the client
6758           window, so add TranslateClientRectangleToXClientRectangle,
6759           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
6760           to cope with this, and call them before every window creation and move.
6761           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
6762           removing DeriveStyles). In AddConfigureNotify don't do anything if the
6763           hwnd is a zombie (fixes the BadWindow we were getting while running the
6764           tests), always calculate the offsets when it's a parentless window, not
6765           only when reparented, and translate the window size, since we're getting
6766           the client size of the whole window, excluding entire window.
6767         * Theme.cs: Added BorderSizableSize.
6768         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6769           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
6770         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
6771           Fake the window styles here instead of in XplatUIWin32 so that all
6772           back-ends get the same window styles (and it's Form that's deciding when
6773           to use wm, not the Win32 backend anyways)
6774         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
6775           they are now passed a CreateParams and they only use Style and ExStyle
6776           to determine the rectangles (they should now work just like
6777           Win32AdjustWindowRectEx - though quite a few special cases are probably
6778           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
6779           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
6780           sizes) are taken from the current theme. Added a GetBorders helper
6781           function that will return the borders for any given CreateParams
6782           (including captions and menus), and GetBorderSize that returns the given
6783           border size only.
6784         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6785           Hwnd.GetClientRectangle.
6786
6787 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6788
6789         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
6790           layout of the mdi children is handled by CreateParams. Fixes
6791           #79964,
6792
6793 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6794
6795         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
6796         processed.
6797
6798         * Form.cs: When active tracker mouse down is not processed, send event 
6799         back to control inside mouse position. [Fixes #81227]
6800
6801 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
6802
6803         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
6804         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
6805         stealing focus from the active form on Windows.  (Control will be made
6806         visible in ShowWindow.)
6807
6808 2007-03-29  Mike Kestner  <mkestner@novell.com>
6809
6810         * ImageList.cs : add internal Changed event.
6811         * ListView.cs : hook up to StateImageList.Changed to perform
6812         invalidations when the the state icon list changes. [Fixes #81191]
6813
6814 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
6815
6816         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
6817         to prevent tooltips from stealing focus from the active form on Windows.
6818
6819 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6820
6821         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
6822
6823         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
6824
6825 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6826
6827         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
6828         balloons.
6829
6830 2007-03-29  Jackson Harper  <jackson@ximian.com>
6831
6832         * TextControl.cs: When deleting text from non multiline textboxes,
6833         we need to update the entire document, because line offsets will
6834         be shifting.
6835
6836 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6837
6838         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
6839         added to theme, now we can create themes that uses diferent notify engines
6840         like notification-daemon from galago project or growl for Mac OS.
6841
6842 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6843
6844         * NotifyIcon.cs: Prevent Balloon to show in task bar.
6845
6846 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6847
6848         * XplatUIX11.cs: Prevent system to open more than one balloon.
6849
6850         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
6851         some compiler warning messages.
6852
6853 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6854
6855         [Fixes #79149]
6856
6857         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
6858
6859         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
6860         implemented, this methods is used by NotifyIcon.BalloonWindow class.
6861
6862         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
6863         systems.
6864
6865 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6866
6867         * ListViewItem.cs: Forgot to make Invalidate internal.
6868
6869 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6870
6871         * ListView.cs: Add a InvalidateSelection method to
6872         invalidate methods which are currently selected, and call
6873         it when setting FullRowSelect and HideSelection, instead of
6874         calling Redraw.
6875
6876 2007-03-28  Chris Toshok  <toshok@ximian.com>
6877
6878         * XplatUIX11.cs (UnmapWindow): reindent this block.
6879
6880         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
6881         the selection_start if we're moving the selection (that is, not
6882         extending it). Fixes bug #80461.
6883
6884 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6885
6886         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
6887         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
6888         create private ControlCollection.
6889
6890 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6891
6892         * Control.cs: We need to call OnVisibleChanged for our implicit
6893         children as well as our normal children.  Fixes scrollbars in
6894         comboboxes not showing up.
6895
6896 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6897
6898         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
6899         the check for IsHandleCreated first.  The check in CreateHandle is not
6900         good enough because CreateHandle can be overriden, and the override 
6901         should not be called if the handle is already created.
6902
6903 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * ToolStrip.cs: Remove MonoTODO for tooltips.
6906         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
6907         * ToolStripContainer.cs: Add custom ControlCollection class.
6908         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
6909         * ToolStripDropDown.cs: Add some missing properties/methods.
6910         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
6911         * ToolStripItem.cs: Remove MonoTODO for tooltips.
6912         * ToolStripManager.cs: Add IsShortcutDefined.
6913         * ToolStripOverflow.cs: Override LayoutEngine.
6914         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
6915         * ToolStripSeparator.cs: Add ImageKey.
6916
6917 2007-03-28  Jackson Harper  <jackson@ximian.com>
6918
6919         * TextControl.cs: If a char delete removes a line ending, we need
6920         to update the ending style.
6921         - Make sure the line ending calcs get called.
6922
6923 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6924
6925         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
6926           it was making the new code not work. Fixed a typo in the new code
6927           as well. Fixes #79826.
6928
6929 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6930
6931         * XplatUIWin32.cs:
6932         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
6933         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
6934         - SystrayBalloon method implemented.
6935         [Add support for notifyicon balloon on win32, #79149]
6936
6937 2007-03-27  Mike Kestner  <mkestner@novell.com>
6938
6939         * ThemeWin32Classic.cs : update StateImageList selection to mirror
6940         the ms behavior when only one image is added to the list.
6941         [Fixes #81191]
6942
6943 2007-03-27  Jackson Harper  <jackson@ximian.com>
6944
6945         * TextControl.cs: Improvements to non multiline line ending
6946         drawing/measuing.
6947
6948 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6949
6950         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
6951
6952 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6953
6954         * NotifyIcon.cs: 
6955         - Balloon message handling added.
6956         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
6957
6958         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6959         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
6960         to SystrayBalloon to me like other Systray method, also a
6961         handle parameter added.
6962
6963 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6964
6965         * ListView.cs: Show scrollbars even when items.Count == 0
6966         but the columns Width is bigger than the ListView.Width.
6967         Also, when columns.Count == 0 set layout_wd and layout_ht
6968         to the ClientRectangle values, so we don't show any scrollbar
6969         in that case.
6970
6971 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6972
6973         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
6974
6975 2007-03-27  Jackson Harper  <jackson@ximian.com>
6976
6977         * RichTextBox.cs: The RTF library decodes the text properly for us
6978         now.
6979
6980 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6981
6982         * ListView.cs: Display HeaderControl even when columns.Count == 0.
6983         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
6984         ListView header (HeaderControl), instead of Control.BackColor.
6985
6986 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
6987
6988         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
6989         Fixes tab control issues where controls would not show up because they
6990         never received their OnVisibleChanged call.
6991
6992 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6993
6994         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
6995         BalloonTipShown).
6996
6997 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
6998
6999         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
7000         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
7001         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
7002         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
7003         the handle.  Fix WindowState by using the internal variable until we are 
7004         sure that we've been shown.
7005         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
7006         max or min.
7007         [Fixes bug #81198]
7008
7009 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7010
7011         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
7012           (at least borders). Fixes #79386 on Linux (with a small difference
7013           in behaviour: when trying to resize a caption-less window metacity
7014           shows the sysmenu. Resizing is still possible though).
7015         * XplatUIWin32.cs: When setting window styles send request an extra
7016           WM_NCCALCSIZE when it's a form without title (due to no text and no
7017           caption), since Win32 seems to calculate it wrong the first time we
7018           get the message, though the second time things work as they should.
7019         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
7020           newly reparented window might show up unparented. Update
7021           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
7022           there's no title text. Fixes #79386.
7023
7024 2007-03-27  Mike Kestner  <mkestner@novell.com>
7025
7026         * ListBox.cs : don't perform invalidations if the handle hasn't been
7027         created.  [Fixes #80753]
7028
7029 2007-03-27  Mike Kestner  <mkestner@novell.com>
7030
7031         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
7032         [Fixes #80428]
7033
7034 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
7035
7036         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
7037         needed to implement Balloon.
7038
7039 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7040
7041         * ListViewItem.cs: In the constructors that take
7042         an array of strings, don't use ListViewSubItemCollection.AddRange
7043         method to add items, since we need to have a different behaviour (in
7044         the constructors we add an item for each null string, opposed to
7045         the behaviour of AddRange, which adds nothing).
7046
7047 2007-03-26  Andreia Gaita  <avidigal@novell.com>
7048
7049         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
7050
7051 2007-03-26  Jackson Harper  <jackson@ximian.com>
7052
7053         * TextControl.cs: Draw and measure line endings when in non
7054         multiline mode.
7055         - When searching the text, count the end of the last line as a
7056         word boundary.
7057
7058 2007-03-26  Jackson Harper  <jackson@ximian.com>
7059
7060         * RichTextBox.cs: The selection_start and selection_end don't
7061         really track the correct tags for the selection. So we'll manually
7062         compute the correct tag here.
7063
7064 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7065
7066         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
7067           and Continuous styles. Fixes #79469.
7068
7069 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
7070
7071         * ToolStrip.cs: Implement Tooltips.
7072         * ToolStripItem.cs: Create internal method for determining tooltip.
7073
7074 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
7075
7076         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
7077
7078 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
7079
7080         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
7081         it prevents a problem thak keeps icon visible after application 
7082         closes on win32.
7083
7084 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
7085
7086         * NotifyIcon.cs: Balloon properties and methods created.
7087
7088         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
7089         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
7090
7091 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
7092
7093         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
7094
7095 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
7096
7097         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
7098         parameter indicates which aspects were explicit/user-set.
7099         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
7100
7101 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
7102
7103         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
7104         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
7105         SmallChange, and Value (2.0).
7106         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
7107
7108 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7109
7110         * ListView.cs: Always set item_control.Width in LayoutDetails
7111         if View is Details. Setting it later in CalculateScrollBars
7112         in a not-so-corner scenario (the sum of columns width is
7113         not bigger than the ListView width when handle is created, and then
7114         that sum gets bigger by increasing the width of the columns)
7115         causes a very weird recursion path (which shouldn't be happening,
7116         since header_control sets it in CalculateScrollBars too). This bug
7117         appeared after Chris' fixes for handle created issues, so probably
7118         it's related to some handle-creation time.
7119
7120 2007-03-23  Chris Toshok  <toshok@ximian.com>
7121
7122         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
7123         case where there's an add row, just so we don't end up in a case
7124         where it's not displayed (this happens when the row is partially
7125         obscured).  Fixes bug #79574.
7126
7127 2007-03-23  Jackson Harper  <jackson@ximian.com>
7128
7129         * TextControl.cs:
7130         * TextBoxBase.cs:
7131         * RichTextBox.cs: Preserve line endings in the lines text buffer,
7132         also added an enum that represents the line ending type. 
7133
7134 2007-03-23  Andreia Gaita  <avidigal@novell.com>
7135
7136         * NumericUpDown.cs: Fix logic so Text and Value properties are not
7137         messed with in every method call, but only from DownButton, 
7138         UpButton, UpdateEditText() and ValidateText. Fixes #80346
7139
7140 2007-03-23  Chris Toshok  <toshok@ximian.com>
7141
7142         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
7143         format objects if the format spec is "".  Fixes bug #80889.
7144
7145 2007-03-22  Miguel de Icaza  <miguel@novell.com>
7146
7147         * ToolStripPanel.cs (Join): added stubs to build PDN3
7148
7149         * Control.cs (AutoScrollOffset): Add.
7150
7151         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
7152         property, its only implemented for Win32, on X11 it defaults to
7153         some hardcoded value.
7154
7155         * ToolStripItem.cs (AllowDrop): Add property
7156
7157 2007-03-22  Mike Kestner  <mkestner@novell.com>
7158
7159         * ListView.cs : in FullRowSelect Details mode, only enable box
7160         selection if the user clicks over the "item" column outside of the
7161         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
7162
7163 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7164
7165         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
7166           handle is not created yet.
7167         * Form.cs: Select: Don't call CreateHandle if the handle is already
7168           created, avoids a stack overflow on Windows when we are recreating
7169           controls.
7170         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
7171           they are made visible, and override AfterTopMostControl to keep
7172           them on top when other controls are brought to front.
7173           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
7174           or force_*scroll_visible is true (old implementation always shows
7175           scrollbars when needed, no matter what auto_scroll was set to).
7176         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
7177           IsHandleCreated check.
7178
7179 2007-03-22  Andreia Gaita  <avidigal@novell.com>
7180
7181         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
7182         row or col separator.
7183         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
7184
7185 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
7186
7187         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
7188
7189 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
7190
7191         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
7192         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
7193         every time. Fixes #80410.
7194
7195 2007-03-22  Chris Toshok  <toshok@ximian.com>
7196
7197         * BindingSource.cs (AddNew): partially implement.
7198
7199         remove a couple of NotImplementedException's
7200         to get bug #81148 closed.
7201
7202 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
7203
7204         [Fixes #80380]
7205         
7206         * Control.cs:
7207         - UpdateCursor method added to update the screen cursor.
7208         - GetAvailableCursor method added to return cursor for enabled tree,
7209         it searches for cursor on control and it's parent's for enabled control.
7210         - Call UpdateCursor method on setter of Cursor property.
7211         - On setter of Enabled call UpdateCursor when it is false, we need to
7212         change cursor to normal (or to this parent cursor) because cursor 
7213         setting theres no effect to disabled controls.
7214         - Some minor source changes to follow the coding style guidelines.
7215
7216         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
7217         controls.
7218
7219 2007-03-22  Chris Toshok  <toshok@ximian.com>
7220
7221         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
7222         generates.
7223
7224 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7225
7226         * XplatUIX11.cs: Implement default locations for forms.
7227         * Form.cs: Completely rework startup location for forms. Fixes #79964.
7228         * Hwnd.cs: Add previous_child_startup_location (to track the current
7229           startup location for any child forms of the current form) and
7230           previous_main_startup_location (to track the startup location for
7231           the current toplevel form).
7232
7233 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
7234
7235         * Control.cs: Don't trigger a layout if an implicit control is added
7236         that isn't visible.  Also, don't notify the owner when an implicit control
7237         is added.  (Owners shouldn't even know about their implicit controls.)
7238
7239 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
7240
7241         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
7242         to save some re-layouts.
7243
7244 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
7245
7246         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
7247         [Fixes #81203]
7248
7249 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
7250
7251         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
7252         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
7253
7254 2007-03-21  Mike Kestner  <mkestner@novell.com>
7255
7256         * ListView.cs : disable selection update for non-left button clicks
7257         with mods and over selected items.  [Fixes #80524]
7258
7259 2007-03-20  Jackson Harper  <jackson@ximian.com>
7260
7261         * TextControl.cs:
7262         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
7263         \r\r\n, \n.
7264
7265 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7266
7267         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
7268           very probably a more complicated calculation there. Update the
7269           textbox' ForeColor and BackColor when the ComboBox' colors are
7270           changed. Change the border change in LayoutComboBox to only affect
7271           the textbox, not all the calculations there. Seems to fix most of
7272           #79436.
7273
7274 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7275
7276         * ComboBox.cs: Handle Home and End keys as well as all combinations of
7277           modifiers + navigation keys as input keys, enables advanced text
7278           selection in the combobox (like Shift+Left Arrow for instance).
7279           ComboTextBox now overrides Focused and returns whatever
7280           ComboBox.Focused returns, since it really should be focused
7281           whenever the ComboBox is. Fixes #80795. Also make the border around
7282           the text box one pixel bigger, as mentioned in #79436.
7283
7284 2007-03-20  Jackson Harper  <jackson@ximian.com>
7285
7286         * TreeView.cs: Don't offset the images, this was causing some
7287         artifacts when expanding/collapsing with images that were the
7288         exact height of the treenode.
7289
7290 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7291
7292         * TrackBar.cs: Query the theme for the correct value when the mouse
7293           moves and the thumb is pressed. 
7294         * Theme.cs: Added TrackBarValueFromMousePosition
7295         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
7296           implementation was updating the trackbar value when drawing, now
7297           the drawing methods only draw. Fixes #80900. Refactored the
7298           calculations out to TrackBarValueFromMousePosition and
7299           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
7300           according to the mouse position whenever it wants to. Changed the
7301           light coloured pen when drawing the thumb from ControlLight to
7302           ControlLightLight, because the ControlLight is the same colour as
7303           the background so the 3D effect is lost. 
7304
7305 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7306
7307         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
7308         defined. Fixes #80784.
7309
7310 2007-03-20  Marek Habersack  <mhabersack@novell.com>
7311
7312         * ContextMenuStrip.cs: align with the change introduced in
7313         revision 74664.
7314
7315 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7316
7317         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
7318         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
7319         in SetTopmost.
7320
7321 2007-03-19  Chris Toshok  <toshok@ximian.com>
7322
7323         * Control.cs (WmPaint): don't make use of the Handle property
7324         after an event is emitted, as the user could have closed the
7325         form/destroyed the control.  Store the Handle in a local variable
7326         and make use of that.  Fixes bug #80768.
7327
7328 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7329
7330         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
7331         behavior in X11 environments.
7332
7333 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7334
7335         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
7336         because on setter of topmost we dont call SetTopmost when handle is not
7337         created.
7338
7339 2007-03-20  Jackson Harper  <jackson@ximian.com>
7340
7341         * TextControl.cs: Need to use SelectionLength () not
7342         selection_length, since that var is reset to -1.
7343         - Draw the caret when we don't have focus.
7344         * TextBox.cs: The selectall actually doesn't occur until the first
7345         focus.
7346         * TextBoxBase.cs: Need to update the caret position after a
7347         selectall.
7348         
7349 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7350
7351         * ListView.cs: Enable scrolling when using Tile view.
7352
7353 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7354
7355         [Fixes #80902]
7356
7357         * XplatUIDriver.cs: Abstract SetOwner method created.
7358
7359         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
7360         must be implemented and was masked as todo.
7361
7362         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
7363         GWL_HWNDPARENT.
7364
7365         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
7366         cheking for null owner to remove transient. The SetTopmost will be change
7367         on a decond step.
7368
7369         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
7370         SetTopmost. Now owned forms will work properly in win32 and X11.
7371
7372 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7373
7374         * MdiWindowManager.cs: Update function name.
7375         * Form.cs: After closing a form MdiParent is always null.
7376         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
7377           better what it should do: necessary book-keeping when the form is
7378           closed, it should not close the form itself.
7379
7380 2007-03-19  Andreia Gaita  <avidigal@novell.com>
7381
7382         * ListViewItem.cs: Fix back and fore color. The subitems only
7383         use their own colors if they are set, otherwise use the listview's
7384         colors. Don't set default colors on constructor for subitem.
7385         Fixes #79315.
7386
7387 2007-03-19  Mike Kestner  <mkestner@novell.com>
7388
7389         * ListView.cs : make box selection for Details views with 
7390         FullRowSelect conform to MS behavior when clicking in the "item" 
7391         column and clicking outside the defined columns.
7392         [Fixes case 5-6 of #80374]
7393
7394 2007-03-19  Chris Toshok  <toshok@ximian.com>
7395
7396         * ScrollableControl.cs: create the controls from within the ctor,
7397         but don't actually add them until our handle is created.  this
7398         fixes a NRE possibility jpobst found (if you override OnLayout in
7399         a subclass, it's called before your ctor).  Also, add a
7400         IsHandleCreated guard to UpdateSizeGripVisibility as well.
7401
7402 2007-03-19  Jackson Harper  <jackson@ximian.com>
7403
7404         * TextBox.cs: Reduce the amount of invalidation we do.
7405         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
7406         some of them are true by default on MS.
7407         - Add some functions to reduce the amount of invalidates we do.
7408         * TextControl.cs: Less invalidation.
7409
7410 2007-03-19  Chris Toshok  <toshok@ximian.com>
7411
7412         [ Fixes #81773, and *seems* to fix #81553 as well ]
7413
7414         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
7415         AccumulateDestroyedHandles.  We need to do it *after* we send
7416         WM_DESTROY, as the user's code can access Control.Handle in
7417         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
7418         move the WM_DESTROY/zombie handling to before the call to
7419         XDestroyWindow.  For some reason without this ordering
7420         FormTest.RecreateHandle hangs.  This ordering is semantically
7421         equivalent, however, as XDestroyWindow is async anyway.
7422
7423 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
7424
7425         * RichTextBox.cs: Reset backcolor_set after setting default.
7426
7427 2007-03-19  Chris Toshok  <toshok@ximian.com>
7428
7429         * ScrollableControl.cs: the scroll position should not effect the
7430         canvas size.  commit patch from georgegiolfan@yahoo.com, which
7431         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
7432         
7433 2007-03-19  Chris Toshok  <toshok@ximian.com>
7434
7435         * ScrollableControl.cs: clean this up a bit.  create the
7436         scrollbars in the ctor and just show/hide them as needed.  Also,
7437         make hscroll_visible/vscroll_visible internal to Recalculate, and
7438         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
7439         everywhere else.  This seems to fix the scrollbars appearing
7440         beneath the content for me (i have *no* idea why that is,
7441         however.)
7442
7443 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
7444
7445         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
7446         some redundacy for stuff in Anchor and Dock that base will take care of.
7447         [Fixes #80762]
7448
7449 2007-03-19  Mike Kestner  <mkestner@novell.com>
7450
7451         * ListView.cs : make box selection for Details views without 
7452         FullRowSelect dependent on the text bounds, not item bounds.
7453         * ListViewItem.cs : add an internal property to obtain the TextBounds
7454         in Details view.  [Fixes case 1-4 of #80374]
7455
7456 2007-03-19  Andreia Gaita  <avidigal@novell.com>
7457
7458         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
7459         we're < 2.0. #78448 && #80316
7460
7461 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
7462
7463         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
7464         have the same style available as the previously selected one.  Also,
7465         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
7466
7467 2007-03-19  Jackson Harper  <jackson@ximian.com>
7468
7469         * TextControl.cs: Add an alignment property that all new lines
7470         will be given.
7471         - Make sure to use the align shift when calculating the line's X
7472         position.
7473         * TextBox.cs: Set the alignment on the document as well as on all
7474         the document lines.
7475
7476 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7477
7478         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
7479           throw if setting the parent of an mdichild that already has an
7480           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
7481           AssemblyProductAttribute in the assembly, use the type's namespace (as
7482           MS seems to do). CreateControl: don't create the handle if the control
7483           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
7484           create handle if the control is not a form. Change FocusInternal to
7485           virtual so that it can be overriden by Form.
7486         * TextBox.cs: Update call to FocusInternal.
7487         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
7488           form is not a toplevel form when it's a mdi child, so update is_toplevel
7489           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
7490           hasn't been created. Show (IWin32Window): Don't allow this overload for
7491           toplevel windows. CenterToParent/CenterToScreen/Select: create the
7492           handle as MS does. SetVisibleCore: if called on a MdiChild and the
7493           parent isn't visible yet, save the visibility and restore it when the
7494           parent is made visible.
7495         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
7496           methods, since the visibility of the scrollbars can be changed from
7497           several places, not only from AutoScroll.
7498           [Fixes #81179]
7499
7500 2007-03-19  Jackson Harper  <jackson@ximian.com>
7501
7502         * RichTextBox.cs: Enable shortcuts by default.
7503         * TextBoxBase.cs: Add conditional shortcuts.  
7504
7505 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
7506
7507         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
7508
7509 2007-03-19  Chris Toshok  <toshok@ximian.com>
7510
7511         [ Fixes bug #80604]
7512         
7513         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
7514         swallow the message we're waiting on, instead of delivering it, as
7515         this is only used for the WM_SHOWWINDOW raised from
7516         MapWindow/UnmapWindow, and the message needs to be generated
7517         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
7518         before doing the Map/Unmap.  Also make sure that the Hwnd is still
7519         alive after the message has been handled.
7520
7521         *before* the window is shown.
7522
7523         * Control.cs (CreateControl): guard a few more things inside the
7524         if (!is_created) block, as we might end up being called again -
7525         yay .net.
7526         (WmShowWindow): call CreateControl if we're showing the control.
7527
7528 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7529
7530         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
7531           controls without a handle if they have any parent with a handle. In
7532           Dispose add a check whether the handle is created or not before
7533           calling BeginInvoke, this removes the need of the extra disposing
7534           parameter (which was bogus anyway since it didn't prevent the
7535           invoke from happening, it only skipped the check for an existing
7536           handle, meaning that the invoke would call on an inexistent
7537           handle).
7538
7539 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
7540
7541         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
7542         appears in taskbar.
7543
7544 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
7545
7546         * MessageBox.cs:
7547         - Fixed a problem that dont show help button for messages with 3 buttons.
7548         - Refactory button size and position calculations, now dont use fixed 
7549         values, also fixed button sizes (#80043) and form's border space.
7550         - AddButton method created, now all other AddButton methods call this one.
7551         - Some other source code cosmetic changes.
7552
7553 2007-03-18  Jackson Harper  <jackson@ximian.com>
7554
7555         * RichTextBox.cs: Don't do this all fonts must match check if
7556         there is only one char selected.
7557
7558 2007-03-18  Jackson Harper  <jackson@ximian.com>
7559
7560         * TreeView.cs: ScrollWindow works properly now, so we don't need
7561         to screw around with the scroll area.  This fixes some artifacts
7562         when expanding and collapsing.
7563
7564 2007-03-18  Jackson Harper  <jackson@ximian.com>
7565
7566         * TextBoxBase.cs: Allow updating the selection position when the
7567         cursor is outside the textarea, but we have a capture.
7568         * TextControl.cs: A special case for when the cursor is outside
7569         the bounds of the TB.
7570         
7571 2007-03-18  Jackson Harper  <jackson@ximian.com>
7572
7573         * TextBoxBase.cs: Remove image pasting code for now.  There is no
7574         way to get an image on the clipboard right now anyways.
7575         * TextControl.cs:
7576         * RichTextBox.cs: Use the new RTF Picture class for pictures.
7577
7578 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
7579
7580         * MessageBox.cs:
7581         - Set window properties in constructor intead of on CreateParams.
7582         - Remove topmost from Window ExStyle.
7583         - Set ShowInTaskbar to false.
7584         - Set form border to FixedDialog.
7585         - Some cosmetic changes and remove unneeded comments.
7586         - It fixes itens 2,3 and 4 of bug #80043.
7587
7588 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
7589
7590         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
7591         none was explicitly set. Fixes part of bug #79949.
7592
7593 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
7594
7595         * ToolStripComboBox.cs: Add AutoComplete*.
7596
7597 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
7598
7599         * ToolStripComboBox.cs: Add FlatStyle.
7600
7601 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
7602
7603         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
7604         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
7605
7606 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7607
7608         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
7609           CheckBox.cs, RadioButton.cs, BindingSource.cs,
7610           DataGridColumnStyle.cs: Remove warnings.
7611
7612 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7613
7614         * Menu.cs: MergeMenu: Check menu argument for null before looping over
7615           it.
7616         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
7617           visibility of mdi child forms. FormSizeChangedHandler: update the
7618           maximized size if size has changed while maximized.
7619         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
7620           creating the handle.
7621         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
7622           avoid creating the handle if not created.
7623         * XplatUI.cs: Update debug output.
7624         * XplatUIStructs.cs: Added ToString's for a couple of structs.
7625
7626 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
7627
7628         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
7629         ProcessCmdKey().
7630         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
7631         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
7632         Implement keyboard shortcuts.
7633
7634 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
7635
7636         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
7637         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
7638         ColorDialog and all derived classes.
7639
7640 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
7641
7642         [ Fixes bug #79828 ]
7643
7644         * ToolBar.cs:
7645         - Rename ToolBarButtonInfor to ToolBarItem.
7646         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
7647         - Maintain an array of ToolBarItem, used instead of ToolBarButton
7648         collection to be able add same button more than one time on a toolbar.
7649         - Refactory all properties and methods to use ToolBarItem. 
7650
7651         * ToolBarButton.cs: 
7652         - Remove all propeties and methods that is now in ToolBarItem.
7653         - Rectangle propery now gets the rectangle from first ToolBarItem to
7654         mimic win32 behavior.
7655         - Size calculation and layout methods also removed.
7656
7657         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
7658         ToolBarItem instead of ToolBarButton to right drawing buttons when
7659         same button/separator was added more than one time to ToolBar.
7660
7661         * ThemeNice.cs: Same as above. 
7662
7663 2007-03-15  Andreia Gaita  <avidigal@novell.com>
7664
7665         * XplatUIX11.cs: Fire extra MouseMove events right after
7666         MouseDown and MouseUp, emulating win32's <censored> behaviour
7667         for apps that rely on it.
7668
7669 2007-03-15  Jackson Harper  <jackson@ximian.com>
7670
7671         * TextControl.cs:
7672         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
7673         it is drawn on the controls client window and there is no NC
7674         area.
7675         - Set the background color to gray on 2.0 when we are readonly.
7676
7677 2007-03-15  Chris Toshok  <toshok@ximian.com>
7678
7679         [ Fixes bug #81144 ]
7680         
7681         * XplatUIX11.cs: implement VirtualScreen independently of
7682         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
7683         property.
7684
7685 2007-03-15  Chris Toshok  <toshok@ximian.com>
7686
7687         * Hwnd.cs: add an internal field for the cached_window_state.
7688
7689         * XplatUIX11.cs: cache the window state, invalidating the cache
7690         (and thus re-querying the X server) only when we see an update to
7691         the _NET_WM_STATE property.
7692
7693 2007-03-15  Chris Toshok  <toshok@ximian.com>
7694
7695         * BindingSource.cs: get a lot of the unit tests working.
7696
7697 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
7698
7699         * Control.cs: Modify UpdateStyles to store distances when bounds >=
7700         0 instead of just bounds > 0.  [Fixes bug #80912]
7701
7702 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
7703
7704         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
7705         and methods.
7706
7707 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
7708         
7709         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
7710         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
7711         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
7712         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
7713
7714 2007-03-15  Chris Toshok  <toshok@ximian.com>
7715
7716         [ Fixes #81101 ]
7717         
7718         * Control.cs: add Ivan's fix for 81101, with a slight modification
7719         - you can set control.Target to null.
7720
7721 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
7722
7723         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
7724         HideDropDown, use Hide instead to prevent an NRE.
7725         [Fixes bug #81147]
7726
7727 2007-03-14  Jackson Harper  <jackson@ximian.com>
7728
7729         * TextBoxBase.cs: Mess with the creation stuff a little. We need
7730         to calculate the document before the handle is created, in some
7731         cases. (Actually just one case).
7732
7733 2007-03-14  Jackson Harper  <jackson@ximian.com>
7734
7735         * TextBoxBase.cs: Need to display the caret after letting the base
7736         wndproc handle the focus methods, because the caret display
7737         methods check the focus state.
7738         - Try to display the caret after updating it's position with SelectWord.
7739         - Don't need to do an immediate update on this recalc, since there
7740         will be an invalidate anyways.
7741
7742 2007-03-14  Jackson Harper  <jackson@ximian.com>
7743
7744         * TreeView.cs: Some workarounds so that we can match event order a
7745         little better.
7746
7747 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
7748
7749         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
7750         #80803. Avoid NullReferenceException when Control does not have
7751         parent. Fixed different blinkstyle issues. Only subscribe to Tick
7752         event a single time. Only draw error icon when control is created and
7753         visible. Fixes failing unit tests.
7754
7755 2007-03-14  Andreia Gaita  <avidigal@novell.com>
7756
7757         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
7758         Selecting events. Fire Leave and Enter events when changing tabs.
7759
7760 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
7761
7762         * TreeView.cs: Add TreeViewNodeSorter.
7763         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
7764
7765 2007-03-14  Chris Toshok  <toshok@ximian.com>
7766
7767         * Form.cs: go ahead and remove the RecreateHandles that jpobst
7768         removed earlier and I had him add back it.  It turns out metacity
7769         *does* in fact handle the MOTIF_WM_HINTS property changing, it
7770         just doesn't redraw the window titlebar until you resize the
7771         window.  This also means we aren't recreating the entire window
7772         hierarchy on X when you change this property.  And it looks better
7773         on windows, too.
7774
7775 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7776
7777         * ListViewItem.cs:
7778         * ListView.cs: Collecting selection information
7779         is now done in SelectedIndexCollection rather than in
7780         SelectedListViewItemCollection. This is done so we can
7781         have the selection information code in one single place
7782         (virtual mode selection information entirely depends on
7783         SelectedIndexCollection).
7784
7785 2007-03-13  Miguel de Icaza  <miguel@novell.com>
7786
7787         * ErrorProvider.cs: Add stubs for ISupportInitialize
7788
7789 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7790
7791         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
7792         in the right order with the right values, from the Checked property, 
7793         just as MS does (instead of triggering them from ListView).
7794
7795         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
7796
7797 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7798
7799         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
7800         the correct handler in OnItemCheck method (ItemCheckEventHandler 
7801         instead of EventHandler). This used to throw an InvalidCastException.
7802
7803 2007-03-13  Jackson Harper  <jackson@ximian.com>
7804
7805         * TextBoxBase.cs: Calculate the document before the handle is
7806         created, so there isn't an extra invalidate called.
7807
7808 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
7809
7810         * Form.cs: Don't set owner in ShowDialog until we are sure
7811         that we aren't going to throw an exception.  [Fixes bug #80773]
7812
7813 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
7814
7815         * TreeView.cs: Make it compile.
7816
7817 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7818
7819         * Control.cs: Another place we don't call SizeFromClientSize.
7820         * Form.cs: Another place we don't call SizeFromClientSize.
7821         [Fixes bug #81125]
7822
7823 2007-03-12  Jackson Harper  <jackson@ximian.com>
7824
7825         * TreeView.cs: Basically emulating some strangness here with
7826         exanding nodes and setting node positions when windows aren't
7827         created.
7828         - Also attempting to walk the node tree less than previously, and
7829         just use visible order calculations for determining offsets.
7830         - oops made scrolling backwards.
7831         * TreeNode.cs: We need to start nodes with a zero visible order,
7832         because the order calcs are based on the first nodes order.
7833
7834 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7835
7836         * Form.cs: Don't exit the program if RecreateHandle is called on
7837         the main form.
7838
7839 2007-03-12  Chris Toshok  <toshok@ximian.com>
7840
7841         * XEventQueue.cs: remove the use of PostQuitState.
7842
7843         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
7844         WM_QUIT message in GetMessage, return false (and if we're in the
7845         nested WaitForHwndMessage, repost the WM_QUIT message).
7846
7847 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7848
7849         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
7850         or the MaximizeBox properties.  [Part of bug #80640]
7851
7852 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
7853
7854         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
7855         no links.
7856
7857 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7858
7859         * ToolStripItem.cs: Fix some tests I broke by checking Visible
7860         instead of visible.
7861
7862 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
7863
7864         * FileDialog.cs: Use text of File name combobox to determine what
7865         files the user selected. Added tokenizer to parse the file names.
7866         Fixes bug #81123.
7867
7868 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7869
7870         * Control.cs: We can't call SizeFromClientSize in the constructor,
7871         but we still need to do the same work, so make an internal version.
7872         [Fixes bug #80621]
7873
7874 2007-03-12  Jackson Harper  <jackson@ximian.com>
7875
7876         * TreeView.cs:
7877         * TreeNode.cs:
7878         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
7879         IsExpanded.
7880
7881 2007-03-12  Jackson Harper  <jackson@ximian.com>
7882
7883         * TextBoxBase.cs: Now that the handles are being created a little
7884         later, we need to make sure that the document is recalculated when
7885         the handle is created.
7886
7887 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
7888
7889         * Theme.cs: GetLinkFont abstract method added.
7890         
7891         * LinkLabel.cs: 
7892         - Remove CalcTrimRectangle, no longer needed.
7893         - Factor also remove, position issues must be fixed in libgdiplus.
7894         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
7895         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
7896         care about font used to draw links.
7897         - Set TabStop to true when control is "Selectable", control is selectable
7898         when have one or more links. Fixes #80501 (test case is also added).
7899         - Set the LinkArea values after links change, LinkArea values must be
7900         based in first link position and size, a test case was created.
7901         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
7902         the attribute must be true LinkArea.Length > 0. The same was applied to
7903         TabStop.
7904         
7905         * ThemeWin32Classic.cs: 
7906         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
7907         in draw method.
7908         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
7909         color change.
7910         - Draw focus rectangle for every parts focused, including parts that 
7911         is on another line, its because regions returns various rectangles
7912         and not only one. Needed to mimic W32 look.
7913         - Uses Graphics.Clip to delimite region painted, it mean that now 
7914         complete text is passed to DrawString, with this we solve layout
7915         issues without create another text renderer.
7916         - Uses Region.Intersect to fix some flickers problems, now only needed
7917         parts will redrawed.
7918         - This changes fixes #79614 and some other unreported issues, on Linux 
7919         some layout problems still remain, the problem is under 
7920         MeasureCharacterRanges but it is an libgdiplus bug.
7921
7922 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
7923
7924         * TextBox.cs: Set for foreground color.
7925         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
7926         this is already done in Control.
7927
7928 2007-03-10  Jackson Harper  <jackson@ximian.com>
7929
7930         * TextBox.cs: Set the background color, but reset the
7931         backcolor_set flag which is just for the user setting the
7932         background color.
7933
7934 2007-03-09  Chris Toshok  <toshok@ximian.com>
7935
7936         * Control.cs: really remove the call to XplatUI.SetVisible from
7937         CreateHandle(), like I said I did when I merged the branch.
7938
7939         * BindingSource.cs: implement some more of this stuff.
7940
7941 2007-03-09  Jackson Harper  <jackson@ximian.com>
7942
7943         * TextBox.cs: Don't explicitly set our background colors.
7944         * TextControl.cs:
7945         * TextBoxBase.cs: Draw readonly text.
7946         - Need to invalidate when backcolor or readonly are changed.
7947         
7948 2007-03-09  Jackson Harper  <jackson@ximian.com>
7949
7950         * TextBoxBase.cs: Don't set the forecolor until the handle is
7951         created.
7952         - Do not raise OnPaint, and removed some old debug code.
7953
7954 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
7955
7956         * ScrollableControl.cs: Fix mouse wheel scrolling.
7957
7958 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
7959
7960         * Control.cs: Wire up MouseDoubleClick event.
7961
7962 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
7963
7964         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
7965         top or bottom.
7966         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
7967         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
7968         item is added.  This logic was moved to ToolStrip.OnItemAdded.
7969         [Fixes bug #81090]
7970
7971 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7972
7973         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
7974
7975 2007-03-08  Jackson Harper  <jackson@ximian.com>
7976
7977         * TreeView.cs: Show the correct image for selected node (this used
7978         to work, not sure how the code got deleted). Also implemented 2.0 feature
7979         SelectedImageKey.
7980
7981 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7982
7983         * ListView.cs:
7984         * ListViewItem.cs: Cache index in items when retrieving them
7985         in VirtualMode.
7986
7987 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
7988
7989         * ToolStripItem.cs: Don't return the explicit_size if we are using 
7990         AutoSize.  Fixes invalidation issue when user has explicitly set a
7991         size and has AutoSize = true.
7992
7993 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
7994
7995         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
7996
7997 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
7998
7999         * DataGridView.cs: Remove event handler from DataView when a
8000         DataTable is used as DataSource.
8001
8002 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * Control.cs: Create internal setter for client_size to allow it to be
8005         set without triggering resizing code.
8006         * Form.cs: Calculate client_size in constructor, only change client_size
8007         in FormBorderStyle property if Handle has been created.
8008         [Fixes #80574, #80791]
8009
8010 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
8011
8012         * SystemInformation.cs: Add TerminalServerSession.
8013
8014 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
8015
8016         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
8017         TreeView code.
8018
8019 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
8020
8021         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
8022         Handle before we were supposed to.  Now checks ActivateOnShow property
8023         in Control.
8024         * Control.cs: Add internal ActivateOnShow property.
8025         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
8026         for ActivateOnShow.
8027         * Hwnd.cs Remove no longer needed no_activate field.
8028
8029 2007-03-07  Jackson Harper  <jackson@ximian.com>
8030
8031         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
8032         2.0 properties
8033         * DrawTreeNodeEventHandler.cs: Add
8034         * DrawTreeNodeEventArgs.cs: Correct default value.
8035         
8036 2007-03-07  Chris Toshok  <toshok@ximian.com>
8037
8038         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
8039         to be called before NativeWindow.WndProc.  Put the HwndCreating
8040         magic there to hook up our Hwnd's to handles.
8041
8042 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
8043
8044         * DataGridView.cs: Comment out debug code.
8045
8046 2007-03-07  Chris Toshok  <toshok@ximian.com>
8047
8048         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
8049         to make the rest of the world happy]
8050
8051         * Control.cs (CreateHandle): there's no need to call
8052         XplatUI.SetVisible here, it's effectively done by
8053         XplatUI.CreateWindow on X now, and always was on windows.
8054
8055         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
8056         shortcircuit out of the loop if we have a message loop running on
8057         this thread.
8058
8059         [Changelog from merge]
8060
8061         2007-03-05  Chris Toshok  <toshok@ximian.com>
8062
8063                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
8064                 causes handle creation.
8065
8066         2007-02-28  Chris Toshok  <toshok@ximian.com>
8067
8068                 * ApplicationContext.cs: Add a flag to make sure we only raise the
8069                 ThreadExit event once (ExitThreadCore can be indirectly called
8070                 from a few places.)  I don't like the additional flag, but it
8071                 makes the event ordering/count correct.
8072
8073                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
8074                 without locking the collection.  An enumerator doesn't give us any
8075                 protection from modification anyway.  Lock the thread hash and
8076                 replace the complicated enumerator loop with a foreach.
8077                 (Application.CloseForms): make internal so it can be called from
8078                 ApplicationContext.  This should probably be moved to MWFThread.
8079                 (Application.ExitThread): don't call MWFThread.Current.Exit()
8080                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
8081                 when the runloop exits (in response to WM_QUIT.)
8082                 (Application.RunLoop): add a comment (and check) for
8083                 context.MainForm being null after setting context.MainForm.Visible
8084                 = true.  This is because you're perfectly free to dispose of a
8085                 form in VisibilityChanged.  Chalk this up to another case where we
8086                 need to synchronously generate WM_ACTIVATE from Control.Show.
8087                 Also, add handling for WM_QUIT here so we'll exit the loop.
8088                 
8089                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
8090                 fact that we don't wait if we're only unmapping the whole_window
8091                 makes me a bit nervous, but it doesn't seem to cause any problems
8092                 yet.
8093
8094                 also, add a comment about the stupid, broken and wrong resetting
8095                 of PostQuitState to false in GetMessage().
8096
8097                 In PostQuitMessage, we need to add a WM_QUIT message to the
8098                 thread's queue.  We use the FosterParent to get the right
8099                 handle/hwnd/queue.
8100
8101                 Lastly, in SetVisible, we need to unmap both windows, since the
8102                 waiting only happens when we're unmapping the client window.  So
8103                 now, the *only* time we unmap just the whole_window is in the hack
8104                 for resizing a control to 0,0.
8105                 
8106         2007-02-21  Chris Toshok  <toshok@ximian.com>
8107
8108                 * Application.cs (CloseForms): rewrite this so that we don't
8109                 modify the list while we're traversing it.
8110
8111         2007-02-20  Chris Toshok  <toshok@ximian.com>
8112
8113                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
8114                 of OnHandleCreated.
8115                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
8116                 handle is created.  otherwise we'll create it here.
8117                 (VerticalScrollEvent): same here.
8118
8119                 * Application.cs (CloseForms): call Form.Dispose, don't post
8120                 WM_CLOSE_INTERNAL.
8121
8122                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
8123                 here. Application should Dispose() of the Form's.
8124
8125                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
8126                 WM_DESTROY as well.
8127                 (MapWindow,UnmapWindow): only actually do the waiting for
8128                 SHOWWINDOW if the control we're dealing with is a Form.
8129                 (CreateWindow): if the control isn't a form, SendMessage
8130                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
8131
8132                 * Control.cs (SetVisibleCore): always use is_visible here, not
8133                 value.  If we use value, we can end up re-setting something
8134                 visible if, for instance, you do Control.Hide() in a delegate
8135                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
8136
8137         2007-02-20  Chris Toshok  <toshok@ximian.com>
8138
8139                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
8140                 the message we need.  PeekMessage returning false should not be a
8141                 condition under which we exit the loop.
8142
8143         2007-02-15  Chris Toshok  <toshok@ximian.com>
8144
8145                 * Control.cs (Refresh): only refresh if we've got a handle and are
8146                 visible.
8147                 (CreateAccessibilityInstance): CreateControl() here.
8148                 (UpdateChildrenZOrder): complicate the code loop even more by
8149                 taking into account controls that haven't had their handle
8150                 created, and those that aren't visible.  But on the flip side,
8151                 simplify the code by splitting it into two loops.  one which
8152                 builds up the list of child controls we're interested in, and the
8153                 other that sets the z order of those children.
8154
8155         2007-02-14  Chris Toshok  <toshok@ximian.com>
8156
8157                 * Control.cs: Control.AccessibilityObject causes the control to be
8158                 created, not just the handle.
8159
8160         2007-02-14  Chris Toshok  <toshok@ximian.com>
8161
8162                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
8163                 problem on X where a window might have its handle created (and be
8164                 visible) while the window is unmapped.  calling XConfigureWindow
8165                 on an unmapped window is bad, and generates X errors.
8166
8167         2007-02-13  Chris Toshok  <toshok@ximian.com>
8168
8169                 * Control.cs (CreateHandle): don't loop over our children setting
8170                 their parent here.  do it when in WndProc when we're shown.
8171                 (UpdateChildrenZOrder): make this internal so we can call it from
8172                 ScrollableControl.
8173                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
8174                 creating its handle.  Also, remove the calls to PerformLayout from
8175                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
8176                 OnVisibleChanged only seems to be called directly here for the
8177                 toplevel control.  It's propagated down the window hierarchy by
8178                 calls to child.OnParentVisibleChanged.
8179                 (OnVisibleChanged): don't do layout here - it's done (oddly
8180                 enough, according to a glance at stack traces on ms.net..) in
8181                 ScrollableControl.
8182                 
8183                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
8184                 z order of our children before calling PerformLayout.
8185
8186         2007-02-12  Chris Toshok  <toshok@ximian.com>
8187
8188                 [big change, fixes #80020]
8189                 
8190                 * AccessibleObject.cs: we need to make owner internal again to fix
8191                 some of ControlAccessibleObject.
8192
8193                 * Control.cs: lots of changes here.  add support for WM_CREATE,
8194                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
8195                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
8196                 we create child controls.  leave the MonoTODO's for the
8197                 accessibility calls, but fix the exceptions so the tests pass.
8198
8199                 Add the InvalidOperationExceptions to Invoke methods, and remove a
8200                 couple of InvokeInternal methods we aren't using.
8201                 
8202                 Also, add a couple of CreateHandle calls in places where we know
8203                 the handles are being created but our code doesn't reference
8204                 .Handle.
8205
8206                 Make SetVisibleCore call OnVisibleChange if the handle isn't
8207                 created.  If the handle is created, we rely on XplatUI.SetVisible
8208                 generating the event synchronously.
8209                 
8210                 Lastly, make sure we don't use this.Handle inside CreateHandle,
8211                 because we can call back into client (and that code can dispose of
8212                 the control).
8213
8214                 * XplatUIStructs.cs: misc/cleanup.
8215
8216                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
8217                 although we don't populate the wParam properly.
8218                 (CreateWindow): generate WM_CREATE.
8219                 (MapWindow,UnmapWindow): make these calls synchronous, at great
8220                 performance expense (particularly in the unmap case), to match
8221                 win32 behavior.
8222
8223                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
8224                 to call it.
8225                 (set_MdiParent): don't recreate the handle unless it's been
8226                 created already.
8227                 
8228                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
8229                 it's created.
8230
8231                 * NativeWindow.cs: this is probably the weirdest part of the
8232                 patch.  We need a way to link up the window being created to the
8233                 WM_CREATE message.  Since we can only be creating one window at a
8234                 time on a given thread, we keep track of a per-thread reference so
8235                 we can dispatch it properly.  We also need to keep track of the
8236                 Hwnd currently being created so that the win32 backend doesn't
8237                 have problems.
8238                 
8239                 * XplatUIWin32.cs: a similar change to the one we made in
8240                 NativeWindow.cs.
8241
8242 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
8243
8244         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
8245         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
8246         to draw the menu shortcut string.
8247
8248 2007-03-07  Jackson Harper  <jackson@ximian.com>
8249
8250         * TreeNode.cs: Add the 2.0 collapse method.
8251
8252 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8253
8254         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
8255
8256 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8257
8258         * DataGridView.cs: Change DataSource will clear column and row
8259         lists. Call Invalidate() to reflect DataSource change.
8260
8261 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8262
8263         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
8264         and a new row is added to it.
8265
8266 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8267
8268         * DataGridView.cs: Add columns when DataSource is en empty list but
8269         is a System.Data.DataView (from a System.Data.DataTable).
8270
8271 2007-03-06  Andreia Gaita  <avidigal@novell.com>
8272
8273         * Label.cs: Implement AutoEllipsis (2.0)
8274
8275 2007-03-06  Jackson Harper  <jackson@ximian.com>
8276
8277         * TreeView.cs: Implement 2.0 TopNode setter property.
8278         - Use a local var instead of the skipped_nodes field for computing
8279         how many nodes to skip.  Otherwise we won't scroll because the
8280         valuechanged handler checks if skipped_nodes is equal to the new
8281         value.
8282         - Implement 2.0 Sort method.
8283         - Add useless 2.0 DoubleBuffer property
8284         - Implement 2.0 LineColors property.  Lets you change the color of
8285         the lines in the tree. Terribly useful for creating non cohesive
8286         desktops.
8287         - Implement 2.0 image key feature.
8288
8289 2007-03-06  Jackson Harper  <jackson@ximian.com>
8290
8291         * TreeView.cs: We can't get the bounds of the nodes before raising
8292         the AfterSelect event, because that event could change the node's
8293         bounds (scrolling, font change, etc).
8294
8295 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8296
8297         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
8298         * Form.cs: Don't recreate handle when creating FormWindowManager, just
8299           update window styles. In CreateParams us VisibleInternal instead of
8300           VIsible to get the actual visible flag set for this form.
8301         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
8302           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
8303           handle the case when the form is already maximized, in which case
8304           it should be restored. Fixes #81043.
8305
8306 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8307
8308         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
8309
8310 2007-03-05  Jackson Harper  <jackson@ximian.com>
8311
8312         * TreeViewHitTestInfo.cs: implement.
8313
8314 2007-03-05  Jackson Harper  <jackson@ximian.com>
8315
8316         * InternalWindowManager.cs: class status fix.
8317
8318 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8319
8320         * InternalWindowManager.cs: All windows that have a parent
8321         are confined to their parent when they're being moved.
8322         Fixes #80822.
8323
8324 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
8325
8326         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
8327         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
8328
8329 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8330
8331         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
8332           buttons invisible before deciding which ones should be visible
8333           (fixes minimize/maximize buttons showing up in toolwindows). Remove
8334           an unused variable.
8335         * InternalWindowManager.cs: Remove warning.
8336
8337 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8338
8339         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
8340         to throw an InvalidOperationException is virtual mode is being used.
8341
8342 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
8343
8344         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
8345         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
8346         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
8347         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8348         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
8349         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
8350
8351 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8352
8353         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
8354           driver.KeyboardDelay from XplatUI.KeyboardDelay 
8355         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
8356           (patch by Sergey Volk)
8357
8358 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8359
8360         * ToolWindowManager.cs: Added, contains logic for
8361           tool windows.
8362         * CreateParams.cs: Add a few helper methods and an
8363           internal variable to know which control the CreateParams belongs
8364           to.
8365         * Control.cs: Call Form.ChangingParent when the
8366           parent is about to be changed.
8367         * XplatUIX11.cs: DeriveStyles (): Set
8368           caption_height for all windows that have captions and are children.
8369           Update to use ToolWindowManager instead of InternalWindowManager
8370           for ToolWindows.
8371         * XplatUIWin32.cs: Set fake window styles for all
8372           windows that have window managers.
8373         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
8374           now duplicated for mdi windows when they are
8375           maximized, first for the buttons the window itself has, then for
8376           the buttons that appear in the menu bar. Makes things a little
8377           easier). Updated UpdateWindowDecorations, SetWindowState and the
8378           mouse eventhandlers accordingly.
8379         * Form.cs: Add ChangingParent (), contains the
8380           logic of what should happen when the parent changes. In MdiParent
8381           don't set things that ChangingParent () is doing. When handling
8382           WM_CLOSE, we can close the form if there are any other modal forms
8383           and the current form is a descendent of the modal form.
8384         * InternalWindowManager.cs: A lot of refactoring,
8385           the title buttons are now extracted to a separate container class
8386           that takes care of all button code (clicks, tooltips, etc). Moved
8387           Iconic|Maximized|Normal Bounds properties to this class from
8388           MdiWindowManager, so that the window state logic can succeed for
8389           other than mdi wm's. Implemented general window state change logic.
8390           Moved CreateButtons to ThemeWin32Classic, since the theme might
8391           override which buttons are available when as well as the exact
8392           location.
8393         * FormWindowManager.cs: Added, contains logic for
8394           normal forms.
8395         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
8396           which buttons go where (and if they are at all visible). 
8397           Removed special handling of maximized windows, since they aren't special. 
8398           In DrawManagedWindowDecorations don't try to draw the text if it is
8399           empty.
8400         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
8401           use whatever the wm gives us.
8402
8403 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
8404
8405         * ButtonBase.cs: Add 2.0 properties.
8406         * Button.cs: Override Draw for 2.0.
8407         * Control.cs: Add Entered and Selected properties.
8408         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
8409         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
8410         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
8411         buttons.
8412         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
8413
8414 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
8415
8416         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
8417
8418 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
8419
8420         * XplatUIWin32.cs: Register a new class with Windows each time we get
8421         a new ClassStyle.  [Fixes bugs #79432, #80817]
8422         * Controls.cs: Set the correct ClassStyle in CreateParams.
8423         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
8424
8425 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
8426
8427         * ListView.cs: Add fireEvent argument to ReorderColumn since the
8428         ColumnReordered event must not be signaled when modifying DisplayIndex
8429         of a ColumnHeader. Added internal ReorderColumns method which takes
8430         care of drawing, and updating the internal DisplayIndex of the
8431         ColumnHeader. Added AddColumn method which is invoked from
8432         ColumnHeaderCollection when adding or inserting columns, and which
8433         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
8434         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
8435         Recalculated dispay indices after removing a ColumnHeader.
8436         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
8437         match MS. Allows last display index to be returned after ListView
8438         is disposed. Update actual location of ColumnHeader when DisplayIndex
8439         is modified.
8440
8441 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
8442
8443         * LinkLabel.cs: Improve CalcTrimRectangle.
8444         
8445         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
8446
8447 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
8448
8449         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
8450         get rectangle as a result value.
8451
8452 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
8453
8454         * LinkLabel.cs: Theres some diferences between rectangle return from 
8455         MeasureCharacterRanges and the area used for DrawString to fix this 
8456         CalcMeasurementFactor method was created, it calcules the diferences
8457         to be use later to adjust rectangle in draw operations. Fixes #80473.
8458         
8459         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
8460         to adjust draw rectangle.
8461
8462 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
8463
8464         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
8465         text and some other changes to reduce and optimize source code.
8466
8467 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
8468
8469         * RadioButton.cs: Implement 2.0 event.
8470         * RelatedImageListAttribute.cs: Implement new class.
8471
8472 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
8473
8474         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
8475
8476 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
8477
8478         * CheckBox.cs: Implement 2.0 functionality.
8479
8480 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8481
8482         * ListView.cs: Refactor Add and AddRange methods of
8483         ListViewItemCollection, to not update the ListView
8484         everytime an item is added in AddRange. Also move the update
8485         code to a new CollectionChanged method, and call it
8486         from other methods that need it as well (this should also fix some
8487         bugs when Sorting is used).
8488
8489 2007-02-27  Jackson Harper  <jackson@ximian.com>
8490
8491         * TextControl.cs: Try to never let the caret stay in a non-text
8492         tag.
8493         * TextBoxBase.cs: Update the caret.
8494
8495 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
8496
8497         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
8498         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
8499         delete POINT structure, duplicate of one in XplatUIStructs.
8500         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
8501
8502 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
8503
8504         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
8505         edit box since otherwise the Label would immediately be set (even if
8506         the user did not modify the label). In OnKeyDown set Handled to true
8507         if Return or Escape was pressed. In ColumnHeaderCollection unlink
8508         columns that are to be removed. In ListViewItemCollection unlink items
8509         that are to be removed.
8510
8511 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
8512
8513         * TextRenderer.cs: If we set a GDI clip region, we need to clear
8514         it when we are done.  [Fixes bug #80949]
8515
8516 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8517
8518         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
8519
8520 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8521
8522         * ListView.cs: I forgot to commit the changes for ListView 
8523         in my previous patch.
8524
8525 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8526
8527         * Clipboard.cs: Partially implement an overload of SetDataObject.
8528         * Form.cs: Implement ShowWithoutActivation.
8529         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
8530
8531 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8532
8533         This is a first set of changes to make the Virtual mode works,
8534         by avoiding the retrieval of ListViewItem instances until
8535         draw time.
8536
8537         * ListView.cs: Store item position in the ListView instead of the
8538         ListViewItem, this way we don't request the Bounds property of
8539         ListViewItem inside the ListView calculations, as well as cache the item
8540         size in item_size field. Store indexes instead of ListViewItem
8541         instances in the matrix used by icon view. Add a ItemMatrixLocation
8542         struct to hold the row and col info of the matrix info.
8543
8544         * ListViewItem.cs: Don't store the location anymore, and only cache
8545         the rectangles for GetBounds. Use the ListView.GetItemLocation
8546         method to retrieve the actual location.
8547
8548 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8549
8550         * TextRenderer.cs: Add clipping support, thanks to George.
8551         [Fixes bug #80949]
8552
8553 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8554
8555         * ListViewItem.cs: Cancel label edit when item is removed from 
8556         ListView.
8557         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
8558         event before the edit textbox is displayed.  Added CancelEdit method
8559         which is used end to editing while ignoring the value set by the
8560         user. In EndEdit, set focus to ListView to avoid losing focus to
8561         other controls. In ListViewItemCollection.Clear, cancel editing of
8562         any of the items.  In Remove, cancel editing of item being removed.
8563         Avoid udplicate code by modifing RemoveAt to invoke Remove.
8564
8565 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8566
8567         * FileDialog.cs: Update FSEntry when move is successful. Fixes
8568         bug #80948.  
8569
8570 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8571
8572         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
8573         compatible with non X11 systems. Fixes #80901.
8574
8575 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8576
8577         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
8578         whether the item should be unselected and reselect. We do no want this
8579         when we're starting to edit the label. Do not fire the 
8580         SelectedIndexChanged event from ListView when its already been fired
8581         by modifying ListViewItem.Selected. Fixes bug #80943.
8582
8583 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8584
8585         * TextRenderer.cs: Previos commit logic was backwards.
8586
8587 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8588
8589         * TextRenderer.cs: Don't add padding on MeasureText if we were
8590         sent the NoPadding flag.
8591
8592 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8593
8594         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
8595         after DrawButton. To prevent image overlaps button borders SetClip and 
8596         ResetClip added before and after draw image. Fixes #79129.
8597
8598 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8599
8600         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
8601         window size, it fix problem when you run under win32 that theres
8602         Size diferent than ClientSize. Also fix controls size and positions
8603         to mimic Win32. Fixes #80837.
8604
8605 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
8606
8607         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
8608         menu area to fix some problems for non X11 systems. Fixes #80613.
8609
8610 2007-02-22  Jackson Harper  <jackson@ximian.com>
8611
8612         * TreeNode.cs: When a node is expanded, set its is_expanded flag
8613         even if it doesn't have any children.
8614
8615 2007-02-22  Jackson Harper  <jackson@ximian.com>
8616
8617         * TreeView.cs: Calculate the top node 'on the fly', this
8618         eliminates issues where you need to click on the tree before
8619         scrolling it to get the top node computed correctly.
8620         * TreeNodeCollection.cs: We don't need to mess with the top node
8621         anymore.
8622
8623 2007-02-22  Jackson Harper  <jackson@ximian.com>
8624
8625         * DataGridViewRow.cs: Fix typo so height can actually be set.
8626         Patch by Peter Grimm.
8627
8628 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8629
8630         * FileDialog.cs: Fixed support for renaming files and directories.
8631         * ListView.cs: Do not lose focus when edit is canceled. Process
8632         Escape as regular key (to prevent closing of dialogs).
8633
8634 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8635
8636         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
8637         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
8638
8639 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8640
8641         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
8642         did not modify label.
8643         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
8644         modified the text. Reset Label when user presses Escape in edit mode.
8645         Move focus to ListView after having cancelled or finished editing the
8646         label.
8647
8648 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
8649
8650         * ComboBox.cs: Removed unnecessary initializations. Marked items field
8651         private. Clear textbox when Text is set to null and SelectedIndex is
8652         already -1.
8653         * FileDialog.cs: Removed unnecessary initializations. Removed 
8654         workarounds for ComboBox bugs that are now fixed. Modified
8655         DefaultExt, InitialDirectory and Title property to change null to
8656         zero-length string in getters. Avoid directly accessing fields.
8657
8658 2007-02-20  Jackson Harper  <jackson@ximian.com>
8659
8660         * TextControl.cs: Remove RecalAlignments call, that was some
8661         debugging leftovers.
8662         - Don't use the line indent when we shouldn't.
8663         * RichTextBox.cs: Add support for paragraph left indents.
8664
8665 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8666
8667         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
8668         Seems like the class status pages doesn't catch params differences.
8669
8670 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
8671
8672         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
8673
8674 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
8675
8676         * ComboBox.cs: Setting Text should have no effect if item text of
8677         selected item exactly matches value. First lookup text using
8678         case-sensitive comparison, and fallback to case-insensitive comparison.
8679         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
8680         allow startIndex to be last index. Changed ArgumentOutOfRangeException
8681         paramname to match MS. Restart from first item if string is not found
8682         after startIndex. Fixed paramname of ArgumentNullException that is
8683         thrown for null value in ObjectCollection.Contains.
8684
8685 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
8686
8687         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
8688
8689 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8690
8691         * ListControl.cs: In SelectedValue use value.Equals to compare for
8692         equality instead of ==, otherwise it will fail for strings.
8693         Fixes #80794.
8694
8695 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8696         
8697         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
8698         since the caret won't show up unless ShowSelection is true. 
8699         Fixes #80795.
8700
8701 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8702
8703         * Application.cs: When disabling all forms but the main form, do not
8704           disable any descendants of the main form (such as mdi children or
8705           other parented forms). Fixes #80822 on Windows.
8706         * Form.cs: If we have a parent, set the WS_CHILD style.
8707         * Control.cs: Update the window styles if the control whose parent has
8708           changed is a form (the WS_CHILD style has to be switched).
8709
8710 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
8711
8712         * XplatUIStructs.cs: MsgUIState structure added.
8713
8714 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
8715
8716         * FileDialog.cs: Removed need for separate fileName field. On 2.0
8717         profile, do not check filename(s) for illegal character if filename(s)
8718         were set non-interactively but always check on 1.0 profile. Fixed NRE
8719          in DefaultExt and only strip off first leading dot. Improve exception
8720         message when invalid Filter is set. Do not ignore InitialDirectory if
8721         it does no exist. Store specified Title, and if empty use default
8722         title (depending on type of dialog). Added an internal DialogTitle 
8723         property for retrieving dialog title. Fixed logic of displayed dir to
8724         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
8725         string as its buggy.
8726         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
8727         FileName is a zero-length string (it can never be null). Override 
8728         DialogTitle property to set default title of dialog box.
8729         * SaveFileDialog.cs: Override DialogTitle property to set default
8730         title of dialog box.
8731
8732 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
8733
8734         * FileDialog.cs: Modify default text of filename and filetype labels
8735         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
8736         after we've updated the SelectedIndex. Fixes part of bug #80887.
8737         * SaveFileDialog.cs: Set text of filetype label.
8738
8739 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8740
8741         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
8742         label field. Needed by latest Jackson's fixes for ListView.
8743
8744 2007-02-16  Andreia Gaita  <avidigal@novell.com>
8745
8746         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
8747         print preview images.
8748
8749 2007-02-16  Jackson Harper  <jackson@ximian.com>
8750
8751         * ListView.cs: Make AfterLabelEdit work correctly.
8752         * FileDialog.cs: After changing the name of the folder, we have to
8753         make sure that it is created, or that we pop up an error because
8754         it already exists.
8755
8756 2007-02-16  Jackson Harper  <jackson@ximian.com>
8757
8758         * X11Dnd.cs: Implement aliases on mime handlers, so things like
8759         System.String are mapped to text.
8760         - Handle dataobjects, getting all the possible formats out of them
8761         - We dont need the drag event args before we give feedback. This
8762         allows feedback cursors to be immediate before selections have
8763         been converted.
8764
8765 2007-02-16  Jackson Harper  <jackson@ximian.com>
8766
8767         * TextBoxBase.cs: Modified the method for inserting images to
8768         taking a line and position instead of tag and position.
8769         * RichTextBox.cs: Handle PngBlip data by inserting the png image
8770         into the RTF file.
8771         * TextControl.cs: Allow images to be inserted as the first tag of
8772         a line.
8773         - Fix some off by one issues when we assume the first tag is a
8774         text tag, not an image tag.
8775
8776 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8777
8778         * ListView.cs: Set focus to ListView when ItemControl gets a
8779         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
8780         Fixes part of #80467.
8781
8782 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8783
8784         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
8785           validate Text input (if null or empty string reset Value to default
8786           value). Fixes #80830.
8787
8788 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8789
8790         * ListView.cs: Set owner as null for columns and items when
8791         Dispose is invoked. Fixes #80607.
8792
8793 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
8794
8795         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
8796         showing DropDowns, don't show a Grip when doing Flow layout.
8797         [This fixes the toolbox in PDN 2.72.]
8798         * ToolStripItem.cs: Add Anchor property and some internal properties to
8799         reduces needed changes to FlowLayout.
8800         * ToolStripOverflow.cs: Remove unused variable.
8801         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
8802         use it in the layout calculations.
8803
8804 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8805
8806         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
8807         reported in #79640.
8808         
8809         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
8810         size calculation.
8811
8812 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8813
8814         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
8815         MeasureString format, it can make button very large in some cases, it is
8816         strange but is what win32 do.
8817
8818 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8819
8820         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
8821         size calculation.
8822
8823         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
8824         rendering, the value is based on MenuAccessKeysUnderlined.
8825
8826 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8827
8828         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
8829         for most themes.
8830         
8831         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
8832         
8833         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
8834         and use MenuAccessKeysUnderlined instead.
8835
8836 2007-02-13  Andreia Gaita  <avidigal@novell.com>
8837
8838         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
8839         A selected control would not get a Focus call if:
8840                 - the default active control of the container is the same as
8841                   the one that was selected
8842                 - we are switching from one container to another
8843         Under these conditions, the container being selected already has
8844         an active_control, which is the same as the one being activated, 
8845         so set_ActiveControl would always return and not send the Focus
8846         call. Fix to check if the currently active control of the container
8847         is actually focused.
8848
8849 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
8850
8851         * StatusStrip.cs: Implement the spring layout.
8852         * ToolStripControlHost.cs: Make sure the hosted control's visibility
8853         always matches the host.
8854         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
8855         and TextAfterImage.
8856
8857 2007-02-13  Andreia Gaita  <avidigal@novell.com>
8858
8859         * Control.cs: Code reorganization only.
8860           - Reorganize the WndProc cases so that each case has it's own handling method, 
8861           to help with the no-line-numbering stack traces.
8862           - Formatting changes (it's vstudio's fault, really :p)
8863
8864 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8865
8866         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
8867           Thread.CurrentUICulture to match DateTimePicker's (and MS)
8868           behaviour.
8869
8870 2007-02-12  Jackson Harper  <jackson@ximian.com>
8871
8872         * RichTextBox.cs:
8873         * TextBox.cs: By default we have a non multiline document
8874         - use the multiline property instead of the internal variable
8875         * TextBoxBase.cs: Treat multiline and non multiline the same in
8876         most places.
8877         - Use the documents multiline flag instead of tracking it ourself
8878         * TextControl.cs: Attempt at getting multiline to match MS
8879         behavior.  Lines now track an offset, which is either their X or Y
8880         offset depending on whether or not we are in multiline mode.
8881         - Update all the methods to understand that lines have an X value.
8882         - Fix crash in Undo::Duplicate when empty lines are deleted.
8883
8884 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
8885
8886         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
8887         code moved to properties PreferredHeight and PreferredWidth. It solve the
8888         all problems when preferred sizes must be recalculated. Fixes #80801.
8889
8890 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
8891
8892         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
8893         font height when compatible_text_rendering is false. Partially fix #80801.
8894
8895 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8896
8897         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
8898
8899 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8900
8901         * Form.cs: Improved exception messages in ShowDialog.
8902
8903 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8904
8905         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
8906         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
8907         if not set. Fixes bug #80764. Avoid accessing current_settings field
8908         directly.
8909
8910 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
8911
8912         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
8913         false.
8914
8915         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
8916         public in 2.0 and for easy maintenance and dont break compatibility it is 
8917         internal in 1.1.
8918         
8919 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * ToolStripItem.cs: Implement using images from ImageList.
8922
8923 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8924
8925         * DateTimePicker.cs: Change default date-formatting culture from
8926           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
8927           seems to be the way MS does it.
8928
8929 2007-02-08  Andreia Gaita  <avidigal@novell.com>
8930
8931         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
8932         (the 6 was cut off on the right side)
8933
8934 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8935
8936         * Form.cs: Tell MenuStrips to close when the form is clicked.
8937         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
8938         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
8939         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
8940         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
8941         support for Overflow, where items that do not fit are automatically
8942         reparented to a drop down menu.
8943         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
8944         Also: fixes bug #80747.
8945
8946 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8947
8948         * ComboBox.cs: Remove warning (unused code).
8949         * ScrollableControl.cs: Remove warning for 1.1 profile.
8950
8951 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8952
8953         * Form.cs: Remove a warning.
8954
8955 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8956
8957         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
8958           'g' specifier, not documented anywhere, but seems to always show up
8959           as a single space (might have something to do with the DateTime 'g'
8960           specifier, which is the era format, but since DateTimePicker can't
8961           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
8962           won't crash if the format has an unmatched quote. Now shows
8963           single-character formats correctly. Fixes #80744.
8964
8965 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8966
8967         * StatusStrip.cs: Stretch property needs to call base.Stretch,
8968         not this.Stretch to fix stack overflow. [Fixes bug #80760]
8969
8970 2007-02-07  Chris Toshok  <toshok@ximian.com>
8971
8972         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
8973         background color.  it overwrites the background image we've
8974         already painted.  Fixes #80599.
8975
8976 2007-02-07  Chris Toshok  <toshok@ximian.com>
8977
8978         * DataGrid.cs: return immediately from Edit() when there are no
8979         columns.  Fixes #80662.
8980
8981 2007-02-07  Chris Toshok  <toshok@ximian.com>
8982
8983         * MessageBox.cs: fix #80625.  don't always show the Help button in
8984         2.0.  use the displayHelpButton parameter to determine if we
8985         should show it. Also, make the internal show_help field private.
8986
8987 2007-02-07  Chris Toshok  <toshok@ximian.com>
8988
8989         * Control.cs (SetVisibleCore): check in the proposed patch for
8990         80604, and set is_visible before calling CreateControl.
8991
8992 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
8993
8994         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
8995         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
8996         on it.
8997
8998 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
8999
9000         * MenuAPI.cs: hotkey_active internal field added, it is required because
9001         we need to know when hotkeys must be draw, before this change a keystate
9002         Navigating was used but we can have menu in navigating state without
9003         hotkeys. Fixes #80694.
9004         
9005         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
9006
9007 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9008
9009         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
9010           corresponding events and methods to be internal for 1.1 profile and
9011           public for 2.0 profile (required by SizeGrip).
9012         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
9013           implicit control list). Don't set the size nor the location of the
9014           SizeGrip anymore as it's not needed.
9015         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
9016           draw directly on the captured control (fixes #80656). Removed
9017           ShowGrip (it wasn't used anywhere), redraw (always true), added
9018           GetDefaultSize and GetDefaultRectangle to calculate defaults.
9019         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
9020           be called from SizeGrip.
9021
9022 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9023
9024         * Timer.cs: Throw ArgumentException if Interval <= 0.
9025
9026 2007-02-05  Jackson Harper  <jackson@ximian.com>
9027
9028         * TreeView.cs: We need to check scrollbar visibility when window
9029         visibility is updated, because non visible trees don't ever add
9030         scrollbars.
9031         * Cursor.cs: We want the override cursor to be reset to NULL when
9032         we set current cursor to the default cursor.
9033
9034 2007-02-05  Jackson Harper  <jackson@ximian.com>
9035
9036         * TextControl.cs: Don't have crlfs when we are non multiline.
9037         - Consolidate the line position.
9038
9039 2007-02-05  Jackson Harper  <jackson@ximian.com>
9040
9041         * X11Keyboard.cs: BACK+CTRL gets a special char code.
9042
9043 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9044
9045         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
9046           handling LeaveNotify->NotifyUngrab in order to send
9047           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
9048           after calling XUngrabPointer, so we call WindowUngrabbed directly
9049           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
9050         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
9051           MouseCaptureChanged correctly. Also create handles if changing
9052           Capture (matches MS behaviour).
9053
9054 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9055
9056         * SizeGrip.cs: Make the last change 2.0 only.
9057
9058 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9059
9060         * SizeGrip.cs: If resizing and the capture is lost, revert any size
9061           changes to initial size (fixes #80597).
9062
9063 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9064
9065         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
9066
9067 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9068
9069         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
9070           background) and only allow dragging if enabled. This way the
9071           sizegrip can be used to fill the open square that otherwise would
9072           have been shown in the bottom right corner of ScrollableControl
9073           when ScrollableControl is not suppose to support sizing.
9074         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
9075           sizegrip is shown and enabled, and hook up with necessary events.
9076
9077 2007-02-01  Chris Toshok  <toshok@ximian.com>
9078
9079         * DataGridTextBoxColumn.cs: clean up the
9080         GetFormattedString/GetColumnValueAtRow combination of functions.
9081         Also fix UpdateUI, and the initial state of
9082         IsInEditOrNavigateMode.
9083
9084         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
9085         aren't supposed to scroll the textbox here, we're supposed to
9086         scroll the datagrid.
9087
9088 2007-02-01  Chris Toshok  <toshok@ximian.com>
9089
9090         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
9091         setting the position.
9092
9093 2007-02-01  Chris Toshok  <toshok@ximian.com>
9094
9095         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
9096         here, since the most recent focus fixes keep us from generating
9097         the Leave event when our textbox gets focus.
9098         (Edit): we should be passing null for the column style's
9099         instantText parameter.
9100         
9101 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
9102
9103         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
9104         raised.  Fixes menu text/icons not showing up in PDN.
9105
9106 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9107
9108         * Control.cs: Remove code in constructor that makes every
9109         control with WS_CHILD set have initial location -1, -1.
9110
9111 2007-01-31  Jackson Harper  <jackson@ximian.com>
9112
9113         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
9114         XplatUIX11.
9115         * XplatUIX11.cs: Give teh keyboard to teh dnd.
9116
9117 2007-01-31  Jackson Harper  <jackson@ximian.com>
9118
9119         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
9120         - Remove some debug code.
9121
9122 2007-01-31  Jackson Harper  <jackson@ximian.com>
9123
9124         * XplatUIX11.cs: If you set the override cursor during a grab, it
9125         should actually override the grab cursor.  This comes into play
9126         when you are setting custom cursors in a DND feedback method.
9127
9128 2007-01-31  Jackson Harper  <jackson@ximian.com>
9129
9130         * X11Dnd.cs: Add support for handling the QueryContinue and
9131         GiveFeedback events.
9132         - Cancel drag and drop actions when the escape key is clicked.
9133         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
9134         can handle the ESCAPE key.
9135         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
9136         done when dnd events are continued after the button is released.
9137         - Add a new helper method so that dnd can translate key events.
9138
9139 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
9140
9141         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
9142         make it more obvious what is happening.
9143
9144 2007-01-30  Jackson Harper  <jackson@ximian.com>
9145
9146         * XplatUIX11.cs: Don't break when handling button release in drag
9147         and drop operations. We need that BUTTONUP message to get through
9148         so capture is released.
9149         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
9150         this is handled automatically when the mouse is down.
9151
9152 2007-01-30  Jackson Harper  <jackson@ximian.com>
9153
9154         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
9155         is closed, so we need to make sure that we aren't changing the
9156         dialog result when the OK (Open or Save) button has been clicked
9157         and we are closing the window ourselves.  Note we don't need to
9158         worry about the cache being written in this case, because it was
9159         already done in the previous FilOk call.
9160
9161 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9162         
9163         * DateTimePicker.cs: Remove a warning.
9164         * ComboBox.cs: Remove a couple of warnings.
9165
9166 2007-01-29  Chris Toshok  <toshok@ximian.com>
9167
9168         * XplatUIX11.cs: don't crash, and remove the icon if the user has
9169         set one, if SetIcon is passed a null icon.
9170
9171 2007-01-29  Andreia Gaita  <avidigal@novell.com>
9172
9173         * TextBox.cs: Redraw when the password characters changes
9174         * TextControl.cs: Check if textbox has a password char and draw 
9175         a line of password chars instead of the text in the line. LineTag gets 
9176         an extra Draw() method which allows document.Draw to override the text 
9177         that will be drawn. Removes 1024 char limitation on length of passworded 
9178         lines.
9179
9180 2007-01-29  Jackson Harper  <jackson@ximian.com>
9181
9182         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
9183         single chars is not.
9184
9185 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
9186
9187         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
9188         one pixel.  Fix a StackOverflowException caused by an overload wrongly
9189         calling itself.
9190
9191 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
9192
9193         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
9194         also remove ProcessArrowKey and put the code inside ProcessKeys.
9195
9196 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
9197
9198         * PaddingConverter.cs: Added.
9199
9200 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9201         
9202         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
9203         ShowPanels is false (fixes #80600). Only draw up to 127 characters
9204         of text (fixes #80601). For panels clip the text to draw to the
9205         panel (fixes #80603).
9206
9207 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9208
9209         * ComboBox.cs: Fixed implementation of ResetText.
9210
9211 2007-01-25  Jackson Harper  <jackson@ximian.com>
9212
9213         * TextControl.cs: For the last char of a line we need to use the
9214         line size, not that chars width, since it won't actually be
9215         computed since the right side of a char is based on the start of
9216         the left side of the next char, and the next char does not exist.
9217
9218 2007-01-25  Chris Toshok  <toshok@ximian.com>
9219
9220         * Splitter.cs: fix the new unit tests, and reindent some switch
9221         statements.
9222
9223 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9224
9225         * ComboBox.cs: Implemented 2.0 methods and events.
9226         * TextBoxBase.cs: Added OnTextUpdate, so that
9227         ComboBox.ComboTextBox can inform ComboBox of it.
9228
9229 2007-01-25  Jackson Harper  <jackson@ximian.com>
9230
9231         * TextControl.cs: Respect ShowSelection when deciding whether or
9232         not to display the caret, this allows comboboxes to have carets
9233         when the combotextbox does not have focus.
9234
9235 2007-01-25  Jackson Harper  <jackson@ximian.com>
9236
9237         * TextControl.cs: Add a Suspend/Resume for updating, basically the
9238         same as the Suspend/Resume for recalc, except this will do actual
9239         Invalidates.
9240         - New Undo manager, works much like the MS version.
9241         - Implemented Redo
9242         * TextBoxBase.cs: The Cut operation is undoable.
9243
9244 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9245         
9246         * TextBoxBase.cs: Don't antialias text. Makes it look way better
9247         on Windows (no difference on Linux).    
9248
9249 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9250
9251         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
9252         we don't want to activate any windows. Fixes #79433.
9253
9254 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
9255
9256         - ButtonBase.cs: Fix capitalization of parameter: disposing.
9257         [Fixes bug #80609]
9258
9259 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
9260
9261         * FileDialog.cs:
9262         - Move to using System.ComponentModel.EventHandlerList
9263         - Replace Refresh with Invalidate
9264         - Clear the mime filecache on closing
9265         - Some other memory reducing work. After beeing closed FD now uses
9266           only about 300 KB for the fdo mime stuff plus the memory of the
9267           cached icons.
9268         * Mime.cs: Changed coding style and removed unnecessary commented
9269         code. Some more memory memory reducing work.
9270
9271 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9272
9273         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
9274         a few other missing 2.0 properties.
9275         * Theme.cs: Added DrawFlatStyleComboBox.
9276         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
9277
9278 2007-01-24  Chris Toshok  <toshok@ximian.com>
9279
9280         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
9281         wake_waiting flag, not just when there's data to be read.  if we
9282         don't, then future wakeup's won't reach us and we'll be doomed to
9283         wait for the entire 1 second timeout forever (unless there are X
9284         events to be had).
9285
9286 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
9287
9288         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
9289         until you pass Items.Count, not Items.Count - 1 like 1.1.
9290
9291 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
9292
9293         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
9294
9295 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
9296
9297         * ToolStripContainer.cs: The recent Dock fix exposed that I was
9298         adding the panels in the wrong order.
9299
9300 2007-01-24  Jackson Harper  <jackson@ximian.com>
9301
9302         * TextBoxBase.cs: When we move the caret we also need to move the
9303         selection, this fixes some random crashing after doing select
9304         text, unselect, delete a char, paste.
9305
9306 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9307
9308         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
9309
9310 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
9311
9312         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
9313         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
9314         * ToolBar.cs: Force redraw in BackgroundImageChanged.
9315
9316 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
9317
9318         * ToolBar.cs:
9319         - Implement support for vertical toolbars. Fixes #80539;
9320         - Call LayoutToolBar when resize, it fix some other problems in layout.
9321         - Rename requested_height to requested_size, as we can have width on it
9322         when toolbar is vertical.
9323         - Create a private property "Vertical" that uses Dock to verify when 
9324         toolbar is vertical or not.
9325         - Set ControlStyles when change Dock property.
9326         - Refactory in LayoutToolBar to have better variables names and to support
9327         vertical toolbars.
9328         - Fixes default value for ButtonSize when button count is equal zero, size
9329         must be (39, 36) test case writed.
9330
9331 2007-01-23  Chris Toshok  <toshok@ximian.com>
9332
9333         * Control.cs: fix the checks so that they work correctly for mdi
9334         parents/children.
9335
9336 2007-01-23  Chris Toshok  <toshok@ximian.com>
9337
9338         * Control.cs: ControlCollection seems to have super-secret
9339         abstraction breaking knowledge of Mdi containers.  allow MdiClient
9340         to add toplevel controls.
9341
9342 2007-01-23  Chris Toshok  <toshok@ximian.com>
9343
9344         * Control.cs: throw an ArgumentException if a toplevel control is
9345         added to our control collection from ControlCollection.Add, as
9346         well as from ControlCollection.IList.Add.  This fixes the
9347         ControlSetTopLevelTest.TestTopLevelAdd unit test.
9348
9349         Also, in ControlCollection.IList.Add, don't through an
9350         ArgumentNullException, throw an ArgumentException, when value ==
9351         null.  This matches MS.
9352
9353 2007-01-23  Chris Toshok  <toshok@ximian.com>
9354
9355         * BindingSource.cs: initial, incomplete, implementation of
9356         BindingSource.
9357
9358 2007-01-23  Jackson Harper  <jackson@ximian.com>
9359
9360         * TextControl.cs:
9361         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
9362         that I can fix a broken unit test (TextBoxTest::ClearUndo)
9363         
9364 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
9365
9366         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
9367
9368 2007-01-23  Andreia Gaita  <avidigal@novell.com>
9369
9370         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
9371         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
9372         IndexOfKey() for 2.0
9373
9374 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9375
9376         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
9377         to prevent it from changing z-order.
9378         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
9379         leave UI updates in MdiWindowManager.
9380         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
9381         1 sized (NC handling goes weird on Linux otherwise).
9382         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
9383         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
9384         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
9385         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
9386         and SetWindowState(s) to allow for changing the size of an activated child
9387         before activating it (reduces a lot of flicker).
9388
9389 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
9390
9391         * Form.cs: Changing FormBorderStyle has different semantics based
9392         on whether the Form is visible or not.  If not visible, don't change
9393         the Size.  But InvalidateNC needs to be called to force the window
9394         to pick up the changes and redraw itself.  [Fixes bug #80574]
9395
9396 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
9397
9398         [Moma work]
9399         * ContainerControl.cs: ProcessCmdKey.
9400         * ErrorProvider.cs: new constructor.
9401         * Form.cs: fix AutoValidateEvent compiler warning.
9402         * Label.cs: fix OnAutoSizeChanged compiler warning.
9403         * MenuStrip.cs: fix CanOverflow compiler warning.
9404         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
9405         * TextBox.cs: Dispose.
9406         * ToolStrip.cs: CanOverflow, re-enable double buffering.
9407         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
9408         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
9409         * ToolStripItem.cs: Overflow, RightToLeft properties.
9410
9411 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9412
9413         * Form.cs: Move the layout of the main form to MdiWindowManager.
9414         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
9415         do a layout of the main window to update MdiClient's client area to
9416         the right area. Fixes #80533. Remove the calculation of nc size, 
9417         it was just wrong and the correct one is the same as for 
9418         InternalWindowManager. 
9419
9420 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
9421
9422         * Control.cs: Setting Anchor or Dock needs to reset the other
9423         to its default.  [Fixes bug #80556]
9424
9425 2007-01-20  Chris Toshok  <toshok@ximian.com>
9426
9427         * CheckedListBox.cs: class status changes.
9428
9429         * ScrollableControl.cs: same.
9430
9431         * RichTextBox.cs: same.
9432
9433         * ContainerControl.cs: same.
9434
9435         * ListView.cs: same.
9436
9437         * NotifyIcon.cs: same.
9438
9439         * MenuStrip.cs: same.
9440
9441         * RadioButton.cs: same.
9442
9443         * CheckBox.cs: same.
9444
9445         * PrintPreviewDialog.cs: same.
9446
9447         * Form.cs: same.
9448
9449 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
9450
9451         * TreeNode.cs: Apply Alan's patch for Name property.
9452
9453 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9454         
9455         * Form.cs: Implemented SizeGripStyle.
9456         * SizeGrip.cs: Check for minimum and maximum size for the
9457         control being resized and only resize if size has actually
9458         changed.
9459
9460 2007-01-19  Chris Toshok  <toshok@ximian.com>
9461
9462         * DataGridColumnStyle.cs: stop setting _readonly in the
9463         PropertyDescriptor setter.  fixes a unit test failure.
9464
9465         also, rename ParentReadOnly to TableStyleReadOnly, and have it
9466         just consult our table style (if we have one).  We don't need to
9467         consult the datagrid readonly attribute because that's passed in
9468         as the _ro arg to Edit.  this simplifies things a little.
9469         
9470         * DataGrid.cs: use CurrentColumn instead of
9471         current_cell.ColumnNumber just to simplify some of the code.
9472
9473         switch the order of some things in the CurrentCell setter to keep
9474         the previous cell from getting a textbox again -
9475         EnsureCellVisibility causes scrolling to happen, which calls Edit.
9476         So we need to set the new cell before calling it.
9477         
9478         call Edit in OnEnter, as does Microsoft.
9479         
9480         also, make sure the current table style isn't the one we create
9481         initially when checking to see if it's different than the one
9482         we're setting it to in BindColumns (this fixes #80421).
9483
9484         * GridTableStylesCollection.cs: table styles can have "" for a
9485         mapping name.  part of the fix for #80421.
9486
9487         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
9488         Edit significantly.
9489
9490 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9491
9492         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
9493         and less GDI object leaky-er.
9494
9495 2007-01-18  Andreia Gaita  <avidigal@novell.com>
9496
9497         * LinkLabel.cs: Add opaque control style
9498
9499 2007-01-18  Jackson Harper  <jackson@ximian.com>
9500
9501         * TextControl.cs: Calculate width properly.
9502         - Don't store the tag's X offset, this can be figured out very
9503         easily.
9504         - When getting the caret tag make sure to get the last empty tag.
9505
9506 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9507
9508         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
9509         [Fixes bug #79959]
9510
9511         * Control.cs: Color.Empty shouldn't count for previous transparent
9512         redraw changes.
9513
9514 2007-01-18  Jackson Harper  <jackson@ximian.com>
9515
9516         * TextBox.cs:
9517         * RichTextBox.cs:
9518         * TextControl.cs: Starting to merge in some pieces of my older
9519         undo work.  Basically just some slight cleanup of the undo API.
9520
9521 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9522
9523         * TrackBar.cs: Fix signature of RightToLeftLayout.
9524         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
9525         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
9526         * Application.cs: Implemented UseWaitCursor.
9527
9528 2007-01-18  Jackson Harper  <jackson@ximian.com>
9529
9530         * TextControl.cs: We can't skip tags if any part of the tag is
9531         visible.
9532
9533 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9534
9535         * ContainerControl.cs: Override OnLayout.
9536
9537 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9538
9539         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
9540
9541         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
9542         everything else.
9543
9544 2007-01-18  Chris Toshok  <toshok@ximian.com>
9545
9546         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
9547         (leftover from the container_selected days, I'd wager).  fixes bug
9548         #80546.
9549
9550 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9551
9552         * Control.cs: Apply patch from George to fix the new testcase on
9553         bug #80451.  We can't just check for Color.Transparent, we need 
9554         to check if the back color's alpha channel is < 255.
9555
9556 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9557
9558         * Form.cs: Move setting show_icon = true to before the constructor
9559         so that the base constructor has that information when it calculates
9560         the form's size.  Was causing forms to be (6, 6) bigger than they
9561         were supposed to be.  Thanks for catching this Rolf!
9562
9563 2007-01-18  Jackson Harper  <jackson@ximian.com>
9564
9565         * TextControl.cs: When replacing a selection we need to invalidate
9566         from the initial selection start, because selection start is moved
9567         to the end of the replacement.
9568
9569 2007-01-18  Andreia Gaita  <avidigal@novell.com>
9570
9571         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
9572
9573 2007-01-18  Chris Toshok  <toshok@ximian.com>
9574
9575         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
9576         I just added.
9577
9578 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
9579
9580         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
9581         layout methods and properties from ToolBarButton must be available
9582         into ToolBarButtonInfo.
9583
9584 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9585
9586         * Control.cs: If the control has a transparent background, we
9587         need to refresh it when it moves and when it's parent's background
9588         image changes.  [Fixes bug #80451]
9589
9590 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9591
9592         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
9593
9594 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9595
9596         * XplatUIWin32.cs: Implement proper double buffering for Windows.
9597         [Fixes bug #80447, and probably speeds up things as well]
9598
9599 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9600
9601         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
9602         * XplatUIWin32.cs: We need to recalculate NC size after changing 
9603         window style to toolwindow (otherwise the client rectangle will be
9604         3 pixels to small for some reason).
9605         * MdiWindowManager.cs: Revert NC size calculations to match how
9606         they are calculated only based on window styles (to match
9607         Win32AdjustWindowRectEx, since otherwise when setting size or 
9608         location, Control will call Win32AdjustWindowRectEx to update client 
9609         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
9610         calculate a different value of client size causing another paint 
9611         (and flickering))
9612         * InternalWindowManager.cs: When moving or resizing a window only
9613         update size or location if they actually changed.
9614         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
9615         (seems to match Windows behaviour better). Cleaned up 
9616         ManagedWindowDecorations to draw what's needed and nothing else
9617         (was drawing borders and lines where they shouldn't be)
9618         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
9619         (style = 0xFFFF) and takes into account caption height when 
9620         calculating window rectangle.   
9621
9622 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
9623
9624         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
9625         can be added to toolbar multiple times, we need to maintain a list of 
9626         button information for each positions.
9627
9628 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
9629
9630         * ToolBar.cs: Some small stetic changes.
9631
9632 2007-01-16  Jackson Harper  <jackson@ximian.com>
9633
9634         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
9635         that allow us to have nested recalc = false blocks.
9636         - Add paste support for images in the RichTextBox
9637         * RichTextBox.cs: flush the text after the color is changed, so
9638         the change takes effect.
9639         - Use SuspendRecalc
9640         - Some extra debugging info
9641         * TextControl.cs: Tags no longer track their length, it is just
9642         computed from the next tags length, this makes things a little
9643         simpler and reduces places that we have to track length changes.
9644         - Refactored the linetag class a little so we could make it
9645         a base class for different kinds of tags
9646         - Created a image tag, a tag that can have a single image inserted
9647         into it
9648         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
9649         that we can call suspend multiple times.
9650         - Add some debugging methods
9651
9652 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9653
9654         * MdiClient.cs: Add ActivatePreviousChild for 
9655         mdi child window navigation.
9656         * Form.cs: Use MdiClient.ActivateNextChild/
9657         ActivatePreviousChild instead of Form.SelectNextControl
9658         to select the next/previous child since 
9659         SelectNextControl doesn't do it in the same order
9660         as mdi children should do it.
9661
9662 2007-01-16  Chris Toshok  <toshok@ximian.com>
9663
9664         * Control.cs: remove container_selected field.
9665
9666 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9667
9668         * MdiClient.cs: Update main form's ActiveChild when
9669         updating keyboard focus for the mdi child.
9670
9671 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
9672
9673         * Control.cs: PreferredSize fix.
9674
9675         * Form.cs: Add several 2.0 events, properties, and methods.
9676
9677 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
9678
9679         * Form.cs: Provide meaningful message when MdiParent is assigned a
9680         Form that is not an MdiContainer.
9681
9682 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9683
9684         * MdiClient.cs: Update main form's ActiveChild when
9685         activating a mdi child.
9686
9687 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9688
9689         * MdiWindowManager.cs: Fix NRE when merging menus and main form
9690         doesn't have a menu.
9691
9692         * Form.cs: Request NCRecalc after creating a mdi child window.
9693         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
9694         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
9695         
9696         * MdiClient.cs: Add new method SendFocusToActiveChild that either
9697         sends keyboard focus to the active child, or to the MdiClient
9698         if there are no child forms.
9699         
9700 2007-01-15  Chris Toshok  <toshok@ximian.com>
9701
9702         * ListView.cs: drop the *Internal overrides, just do our work in
9703         ItemControl's WndProc instead.
9704
9705         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
9706         of the various controls, and forward the events properly (in the
9707         same manner as MS) from the textbox to the UpDown.  Also the
9708         ActiveControl of the UpDownBase gets set properly now.  Finally,
9709         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
9710
9711         * NumericUpDown.cs: set Text in the ctor.
9712
9713         * DomainUpDown.cs: call UpdateEditText in the ctor.
9714         
9715         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
9716         so even a Selectable = false textbox can be focused if you click
9717         in it.  Go figure.
9718
9719         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
9720         just add their handling in their respective WndProc's.  Also add
9721         an explicit FocusInternal method that doesn't consult CanFocus
9722         before calling Select(this).
9723
9724         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
9725         do our work in WndProc instead.
9726
9727         * TabControl.cs: same.
9728
9729         * ComboBox.cs: same.
9730
9731 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9732
9733         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
9734         Fixes #80006.
9735
9736 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9737
9738         * ListViewItem.cs:
9739         * ThemeWin32Classic.cs: Don't draw the item text outside
9740         item bounds in Details view, as well as use trimming.
9741         Fixes bug #80376.
9742
9743 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9744
9745         * Form.cs: Implement Form.ShowIcon.
9746         
9747         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
9748         null, which when combined with the DlgModalFrame window style removes
9749         the icon from the title bar.
9750
9751 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9752
9753         * Control.cs: Call OnMouseClick after OnClick. (2.0)
9754
9755 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9756
9757         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
9758         menu when mdi child windows theres a menu, uses insert to get icon
9759         at first position. Partially fix #80006.
9760
9761 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9762
9763         * Clipboard.cs: Implement 2.0 methods.
9764
9765 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9766
9767         * Menu.cs: Implement Insert method of MenuItemCollection class
9768         to fix MenuMerge.
9769
9770 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9771
9772         * ListView.cs: Implement 2.0 FindItemWithText method.
9773
9774 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
9775
9776         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
9777         to calculate menu bar size. Fixes #80290.
9778
9779 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
9780
9781         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
9782
9783 2007-01-11  Chris Toshok  <toshok@ximian.com>
9784
9785         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
9786         initial form.
9787
9788 2007-01-11  Chris Toshok  <toshok@ximian.com>
9789
9790         * LinkLabel.cs: make sure to call base.Select in our Select method
9791         if it turns out we're going to be selected (i.e. if we have a link
9792         that is going to receive focus).  That way our container's
9793         ActiveControl is updated properly.
9794
9795 2007-01-11  Chris Toshok  <toshok@ximian.com>
9796
9797         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
9798         they have 1 or more links.  this fixes the crash gert reported.
9799
9800 2007-01-11  Andreia Gaita  <avidigal@novell.com>
9801
9802         * ContainerControl.cs: Remove ContainerSelected flag, not needed
9803         anymore.
9804
9805         * Control.cs (Controls.Add): Check if control to be added to the collection
9806         is a top level control, and throw an ArgumentException if it is.
9807         Remove ContainerSelectedFlag, not needed anymore.
9808
9809         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
9810         top most control doesn't activate the form. This fixes a problem in the
9811         MessageBox, where the default button wouldn't get focus because the form
9812         was activated before being Loaded - when the Owner is set, SetTopMost is
9813         called, and it would activate it.
9814
9815 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
9816
9817         * Button.cs: When clicked and setting the parent form's DialogResult,
9818         use FindForm instead of Parent, since parent could be a container
9819         control and not the Form.  Fixes bug #80495.
9820
9821 2007-01-10  Chris Toshok  <toshok@ximian.com>
9822
9823         * Form.cs: move the call to SendControlFocus into the same
9824         is_loaded check.
9825
9826 2007-01-10  Chris Toshok  <toshok@ximian.com>
9827
9828         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
9829         It breaks in the face of the new ActiveControl stuff, and should
9830         be unnecessary.
9831
9832         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
9833         activecontrol's focus if it's not already set, after we set
9834         ActiveControl, but before we call OnActivated.  Re-fixes #79667
9835         after the previous focus/active control fixes regressed it.
9836
9837         * Control.cs: reindent some code.
9838         
9839 2007-01-10  Chris Toshok  <toshok@ximian.com>
9840
9841         * Splitter.cs: clearing some outstanding changes from my tree.
9842         Replace all accesses (not writes) to the internal dock_style field
9843         with the Dock property.
9844
9845 2007-01-10  Chris Toshok  <toshok@ximian.com>
9846
9847         * Control.cs: make FireEnter, FireLeave, FireValidating, and
9848         FireValidated virtual.
9849
9850         * Form.cs: override and don't chain up calls to FireEnter and
9851         FireLeave.
9852
9853 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9854
9855         * ListView.cs: Add more text padding space when using
9856         auto resize for columns (the previous value didn't work fine).
9857
9858         * ThemeWin32Classic.cs: Update text position inside columns,
9859         to match the appeareance of .Net.
9860
9861         * ColumnHeader.cs: When using auto resize, only the Width should
9862         depend on the sub items, not the Height. Also, set width after
9863         auto resizing (the value of Width should never remain as -1 or -2).
9864
9865 2007-01-10  Chris Toshok  <toshok@ximian.com>
9866
9867         * Application.cs: fix compilation errors when debug is enabled.
9868
9869 2007-01-10  Chris Toshok  <toshok@ximian.com>
9870
9871         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
9872         add some nice ascii art pictures and explanation of the process).
9873         (GetMostDeeplyNestedActiveControl): new utility function we need
9874         because our ActiveControl can refer to a child container with its
9875         own ActiveControl.
9876
9877         * Form.cs (OnActivated): remove the call to SelectActiveControl
9878         from here, since you can override this method and not chain up,
9879         and winforms still sets the active control.
9880         (OnCreateControl): also remove the unnecessary SelectActiveControl
9881         call from here.
9882         (WndProc): it's actually called from the WM_ACTIVATE block, just
9883         before calling OnActivated.
9884
9885         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
9886         inside the else.  the ActiveControl setter will end up setting
9887         focus on @control.  This keeps us from setting it again (and
9888         generating an extra LostFocus/GotFocus pair).
9889         (Select (bool, bool)): reindent.
9890
9891 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
9892
9893         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
9894         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
9895         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
9896         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9897         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
9898         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
9899         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
9900         ToolStripTextBox.cs: Another wave of corcompare work.
9901
9902 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9903
9904         * ColumnHeader.cs: Implement 2.0 AutoResize method using
9905         the Width property.
9906
9907         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
9908         methods by callling Column.AutoResize method on columns.
9909
9910 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
9911
9912         * Control.cs: Provide proper implementations of PreferredSize
9913         and GetPreferredSize (2.0).
9914
9915 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
9916
9917         * Form.cs: Remove one character (!) to make my previous OnClosing
9918         stuff work for modal windows like MessageBox.
9919
9920 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9921
9922         * ListView.cs:
9923         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
9924         ListView.Columns to get the last displayed column. Fixes #80452.
9925
9926 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
9927
9928         * Label.cs, LinkLabel.cs: Source code identation fixes.
9929
9930 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
9931
9932         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
9933         we dont need to invalidate only borders because when we invalidate four
9934         border lines the invalidate's generates a complete redraw of button, 
9935         because it now invalidate a complete rect some other redraws operations
9936         are fixed. Fixes #80196.
9937         
9938         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
9939         Remove ToolBarInvalidateEntireButton as it is not used.
9940
9941 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
9942         
9943         * Form.cs: Make sure that both OnClosing and OnFormClosing are
9944         called for 2.0 profile.
9945         * CloseReason.cs: Make class internal for 1.1.
9946
9947 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
9948
9949         * ToolStripManager.cs: Implement FindToolStrip functionality.
9950         * ToolStrip.cs: Register and unregister with ToolStripManager.
9951
9952 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
9953
9954         * Control.cs: This was messy.  2.0 moves much of ControlCollection
9955         to ArrangedElementCollection.  Implemented this with as few #if's as 
9956         possible (which is still too many).
9957
9958 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
9959
9960         * Control.cs: Implement SizeFromClientSize() [2.0].
9961
9962 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
9963
9964         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
9965         use Theme.BorderSize to calculate area instead of static value 1, 
9966         by the way use new BorderStaticSize instead     Border3DSize when 
9967         border_static is true. Fixes #79537.
9968         
9969         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
9970         
9971         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
9972         it is not needed.
9973
9974 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
9975
9976         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
9977
9978 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
9979
9980         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
9981         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
9982         
9983         * Hwnd.cs: 
9984         - border_static field added, it will used to define when a control 
9985         theres 3D border but it must be static (thin).
9986         - In GetWindowRectangle use Theme.BorderSize to calculate area 
9987         instead of static value 1, by the way use new BorderStaticSize instead
9988         Border3DSize when border_static is true.
9989
9990         * XplatUIX11.cs, XplatUIOSX.cs: 
9991         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
9992         
9993         * Theme.cs: BorderStaticSize field added.
9994
9995 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
9996
9997         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
9998
9999 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
10000
10001         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
10002         mimic same behavior than win32 that set border only in CreateParams,
10003         it fix problems under CreateParams overrides. Fix #79442 and partial
10004         fix #79537.
10005         
10006         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
10007         of thi control you must call recreate handle. 
10008         
10009         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
10010         need to do anything as RecreateHangle will take care about borders.
10011
10012 2007-01-05  Mike Kestner  <mkestner@novell.com>
10013
10014         * ListView.cs: hack to eliminate Lost/Got focus notifications on
10015         cycles between the ItemControl and parent.  Fixes #80388.
10016
10017 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
10018
10019         * Control.cs: Lazy init layout engine. Do not directly use 
10020         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
10021
10022 2007-01-05  Chris Toshok  <toshok@ximian.com>
10023
10024         * DataGrid.cs: don't forceably rebind columns in SetDataSource
10025         unless our list manager has changed (i.e. unless we have reason to
10026         believe our columns have changed).  Fixes #80422.
10027         
10028         also, disable the call do BindColumns in
10029         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
10030         1.1 the event isn't raised in response to a column addition on a
10031         table.)
10032
10033 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
10034
10035         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
10036         that inheritors can not call it if they choose.  Fixes bug #80456.
10037
10038 2007-01-05  Andreia Gaita  <avidigal@novell.com>
10039
10040         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
10041         doesn't blow up with a null exception on marshalling.
10042         
10043 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
10044
10045         * Control.cs: Implement several 2.0 protected properties and methods.
10046         Ensure that all necessary events are being called when properties
10047         are set.
10048
10049 2007-01-05  Mike Kestner  <mkestner@novell.com>
10050
10051         * ListView.cs: implement PgUp/PgDn for Details view.  Also
10052         fixes First/LastVisibleIndex to use the item_control.ClientRect 
10053         instead of the parent control.  Fixes #80378.
10054
10055 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
10056
10057         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
10058           determine whether to use yard-pound or not (bug #78399).
10059
10060 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10061
10062         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
10063         problems. So it is time to bring back the old popupbutton colors.
10064
10065 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10066
10067         * ColumnHeader.cs:
10068         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
10069         property by using the internal information of the
10070         columns order in ListView.
10071
10072 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
10073
10074         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
10075         Add 2.0 Tag properties.
10076
10077         * LinkArea.cs: Add 2.0 ToString method.
10078
10079 2007-01-03  Chris Toshok  <toshok@ximian.com>
10080
10081         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
10082         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
10083         when we're editing, which fixes #80047.
10084
10085 2007-01-03  Chris Toshok  <toshok@ximian.com>
10086
10087         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
10088         #80404.
10089
10090 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
10091
10092         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
10093         property and implementation.
10094
10095         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
10096         for MdiWindowListItem property.
10097
10098         * ToolStripDropDown.cs: Don't consider hidden menu items while
10099         laying out the menu.
10100
10101 2007-01-03  Andreia Gaita  <avidigal@novell.com>
10102
10103         * SendKeys.cs: window handle is not needed in win32, so just
10104         get the active window for X after parsing keys and don't use
10105         it when building the message; it is passed by parameter to the 
10106         Xplat method and used there to build the message instead. Also,
10107         wait for events to be processed on SendWait, as opposed to Send,
10108         which doesn't wait :) Playing with threads and Send() completely 
10109         hangs on ms.net, only SendWait() works.
10110         
10111         XplatUIX11.cs
10112         X11Display.cs: Check for valid window handle.
10113
10114 2007-01-03  Jackson Harper  <jackson@ximian.com>
10115
10116         * TextControl.cs: Need to prevent wrap calculations when replacing
10117         text (this was there before i removed it accidently).
10118         - Don't update the cursor during the positioning, just set it to
10119         selection_start at the end of the operaion.
10120
10121 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10122
10123         * Control.cs:
10124         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
10125         
10126 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10127
10128         * MonthCalendar.cs: Added Click and DoubleClick events again,
10129         but this time they only hide Control's Click and DoubleClick.
10130         
10131 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
10132
10133         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
10134         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
10135
10136 2007-01-02  Jackson Harper  <jackson@ximian.com>
10137
10138         * TextBoxBase.cs: We move the caret with the split now, so we
10139         don't need to explicitly move the caret after splitting.  This
10140         fixes the caret bumping down an extra line on Enter.
10141
10142 2007-01-02  Miguel de Icaza  <miguel@novell.com>
10143
10144         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
10145         2.72). 
10146
10147         * ScrollableControl.cs: Add Scroll event.
10148
10149 2007-01-02  Mike Kestner  <mkestner@novell.com>
10150
10151         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
10152         to fix all hdr height padding codepaths.  Fixes #80207.
10153
10154 2007-01-02  Chris Toshok  <toshok@ximian.com>
10155
10156         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
10157         setting it to the Control defaults anyway, and it being after the
10158         Dock set was screwing up layout.
10159         (set_Dock): don't short circuit out of setting base.Dock.  Also,
10160         no need to call UpdateStatusBar here, as it'll be re-layed out if
10161         it needs to be.
10162
10163 2007-01-02  Mike Kestner  <mkestner@novell.com>
10164
10165         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
10166         to header height for width == -1. Fixes the rest of #80207.
10167
10168 2007-01-02  Mike Kestner  <mkestner@novell.com>
10169
10170         * ListView.cs: rework the mouse event forwarding everaldo added
10171         to translate the coordinates to the parent control not
10172         raise the parent events until after we've done our work. Hover
10173         needs more work, in the case where HoverSelection is on, because
10174         the item control receives more than one MouseHover per Enter
10175         event, so we need to ensure only the "first" hover gets forwarded.
10176         Opening a minor bug for that.
10177
10178 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
10179
10180         * CheckedListBox.cs: Fixed SelectionMode to match MS.
10181         * ListControl.cs: Implemented AllowSelection property. Removed extra
10182         tabs.
10183         * ListBox.cs: Implemented AllowSelection property.
10184
10185 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10186
10187         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
10188         SelectedItem, it prevent for errors when you must disable item
10189         before perform click. Fixes #80409.
10190
10191 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10192
10193         * MenuAPI.cs: Prevent second level and beyond submenus to close
10194         until first level when move out side of popup.
10195         
10196 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10197
10198         * MenuAPI.cs:
10199         - Down submenu positin in three pixels.
10200         - Closes sub menu when mouse leaves from menu. Fixes #80402.
10201
10202 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10203
10204         * ThemeWin32Classic.cs:
10205         - Fix popup menu size adding one pixel on the top.
10206         - Down menu item border from two to one to mimic Win32.
10207         - Some source identation fixes. 
10208
10209 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
10210
10211         * ThemeWin32Classic.cs: Use float numbers to calculate size and
10212         position of menu arrows, it fix wrong arrow size.
10213
10214 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
10215
10216         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
10217         instead of line, it simplify draw operation and fix it using 3D
10218         borders to mimic Win32.
10219
10220 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
10221
10222         * StatusStrip.cs: Add implementation of the sizing grip.
10223
10224         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
10225         StatusStrip rendering.
10226
10227 2006-12-31  Chris Toshok  <toshok@ximian.com>
10228
10229         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
10230         override the layout style (anchor/dock) of the control.  assign to
10231         Dock instead.  Fixes bug #80416.
10232
10233         * ToolStrip.cs: same.
10234
10235 2006-12-31  Andreia Gaita  <avidigal@novell.com>
10236
10237         * ContainerControl.cs: Use ContainerSelected flag to check if 
10238         a Container is directly selected, or if Select is called on a 
10239         non-container. If a container is directly selected, focus events 
10240         should not be raised.
10241         Apply #80411 patch to throw exception on set_ActiveControl if 
10242         control is the same as the current one.
10243         
10244         * Control.cs: Use ContainerSelected flag (see above).
10245         Add invalidation check to raise event but not invalidate if 
10246         dimensions are 0.       
10247         Apply #80411 patch.
10248         
10249
10250 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
10251
10252         * MenuAPI.cs: After click, dont close popup menu when menu is
10253         ContextMenu. Fixes #80399.
10254
10255 2006-12-30  Chris Toshok  <toshok@ximian.com>
10256
10257         * ContainerControl.cs: make sure we throw the exception if the
10258         container control doesn't contain the control we're setting
10259         ActiveControl to.
10260
10261 2006-12-30  Chris Toshok  <toshok@ximian.com>
10262
10263         * Control.cs (SetTopLevel): fix the exception raised by
10264         SetTopLevel for child controls.
10265         (set_Anchor): call UpdateDistances when setting the anchor type.
10266         This fixes bug #80336.
10267
10268 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
10269
10270         * Theme.cs: For now, revert back to 8pt font.
10271
10272 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
10273
10274         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
10275         Fixes #80395.
10276
10277 2006-12-29  Chris Toshok  <toshok@ximian.com>
10278
10279         * Control.cs: reorder the code in OnResize to give the same event
10280         ordering as MS.
10281
10282 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10283
10284         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
10285         TileHorizontally and TileVertically.
10286         
10287 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
10288
10289         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
10290         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
10291         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
10292         Corrected copyright and email adress.
10293
10294 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
10295
10296         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
10297         of Exception in FullPath property if no TreeView is associated with
10298         the TreeNode.
10299
10300 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
10301
10302         * Theme.cs: Marked default_font as private, and initialize it in ctor
10303         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
10304         on 2.0 profile.
10305         * ThemeGtk.cs: Removed default_font intialization.
10306         * ThemeWin32Classic.cs: Removed default_font initialization.
10307
10308 2006-12-28  Chris Toshok  <toshok@ximian.com>
10309
10310         * Control.cs: fix a couple of place where we were creating handles
10311         more aggressively than we should be.  Fixes ControlRefresh unit
10312         tests.
10313
10314 2006-12-28  Chris Toshok  <toshok@ximian.com>
10315
10316         * Control.cs: contrary to what the comment said, Control.Dock does
10317         not supercede Control.Anchor - the last one you assign to decides
10318         the layout behavior.  so we need to keep track of which was the
10319         last set.  Also, fix some of the affected property arguments in
10320         PerformLayout calls, and remove an redundant parent.PerformLayout
10321         call in OnResized.
10322
10323         Add a VisibleInternal property, which returns is_visible.  We
10324         can/should get rid of all the usage of this field elsewhere.
10325
10326 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10327         
10328         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
10329         control style, not DoubleBuffer. Added UseDoubleBuffering property
10330         that indicates whether doublebuffering is enabled and supported.
10331         (comment from and code based on Gert Driesen's patch in #80324).
10332         Fixes #80324.
10333
10334 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10335         
10336         * Control.cs: Fixed a NRE.
10337
10338 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10339
10340         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
10341         for 2.0.
10342
10343 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10344
10345         * Control.cs: Rewrote double buffering, now a seperate
10346         class handles all the buffering, no Graphics is disposed of
10347         until the painting is finished (earlier implementation 
10348         would crash if the control was resized in the OnPaint, 
10349         since it would cause the double buffer to be recreated
10350         and the old one disposed), a separate Graphics is 
10351         created for every paint (MS behaviour and anyways the state
10352         of the Graphics would have to be saved and restored otherwise)
10353         
10354         * XplatUIDriver.cs: 
10355         * XplatUIX11.cs:
10356         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
10357         so that we can get the graphics for the back buffer without
10358         having to create a new one and remove the offscreen_dc parameter
10359         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
10360         
10361 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10362
10363         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
10364         Also make virtual all the key-related methods.
10365
10366         * ListViewItem.cs: Make virtual the key related methods for
10367         ListViewSubItemCollection.
10368
10369 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10370
10371         * ListView.cs:
10372         * ListViewItem.cs:
10373         * ThemeWin32Classic.cs:
10374         * Theme.cs: Initial support for Tile view in ListView,
10375         as well as the implementation of the required bits for it (Item
10376         and Subitem).
10377
10378 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10379
10380         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
10381         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
10382         Provide useful exception messages.
10383
10384 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10385
10386         * TrackBar.cs: Remove a warning.
10387         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
10388         when used by DateTimePicker, fixes #80287. This also requires that 
10389         MonthCalendar implements it's own drawing for the yearly updown control,
10390         otherwise the Capture tracking would be too complicated. Removed the Click 
10391         and DoubleClick events (according to comments they were hiding the base class
10392         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
10393         raise these events, not that they cannot be raised. It is possible to raise 
10394         them by calling OnClick and OnDoubleClick). Added two internal fields in 
10395         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
10396         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
10397         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
10398         event, no longer needed.
10399         
10400 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10401
10402         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
10403         true if new value differs from current value.
10404
10405 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10406
10407         * Control.cs: ControlCollection.Count must be public. Fixed build of
10408         unit tests.
10409
10410 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10411
10412         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
10413
10414 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10415
10416         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
10417
10418 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
10419
10420         * Control.cs: Invalidates control including when Width and Height is 
10421         equal zero or is not visible, only Paint event must be care about 
10422         this. Fixes #79913.
10423
10424 2006-12-26  Chris Toshok  <toshok@ximian.com>
10425
10426         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
10427         more corcompare work.
10428
10429         * DataGridView.cs: fix compiler warning.
10430
10431         * ColumnHeader.cs: some corcompare work, and also take the
10432         opportunity to make the internal fields private.
10433
10434         * ListView.cs: fix the fallout from the above field change.
10435
10436 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
10437
10438         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
10439         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
10440         ToolStripTextBox.cs: Fixes to events and corcompare.
10441
10442 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
10443
10444         * ListView.cs: Call owner.OnMousexx event to propagate events from
10445         item to ListView. Fixes #80367.
10446
10447 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10448
10449         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
10450         if value is less than one. ItemHeight should not be set to a value
10451         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
10452         Removed extra tabs.
10453
10454 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
10455
10456         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
10457         * ToolStripStatusLabel.cs: Add Spring for Moma.
10458
10459 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10460
10461         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
10462         Fixed code formatting. Removed debug code.
10463         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
10464
10465 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10466
10467         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
10468         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
10469         ArgumentOutOfRangeException if ColumnCount is negative. In 
10470         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
10471         less than 4 or higher than 32768.
10472         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
10473         Fixed FormatProvider to return CurrentCulture unless explicitly set.
10474         Fixed IsFormatProviderDefault to return true if FormatProvider has
10475         not been explicitly set.
10476
10477 2006-12-25  Chris Toshok  <toshok@ximian.com>
10478
10479         * Application.cs: add a couple of 2.0 events.
10480
10481 2006-12-25  Chris Toshok  <toshok@ximian.com>
10482
10483         * Control.cs: fix compiler warning.
10484
10485         * AxHost.cs: corcompare fixes.
10486
10487         * ApplicationContext.cs: corcompare fixes.
10488
10489 2006-12-25  Chris Toshok  <toshok@ximian.com>
10490
10491         * Control.cs: only update dist_right/dist_bottom if the
10492         width/height is > 0.  this fixes anchored controls being resized
10493         smaller until they disappear and then resized larger again.
10494
10495 2006-12-25  Chris Toshok  <toshok@ximian.com>
10496
10497         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
10498         since they're nothing more than X/Left and Y/Top, respectively.
10499
10500         Also, move back to a per-control Bitmap/Graphics for
10501         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
10502         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
10503         Height.
10504
10505 2006-12-25  Miguel de Icaza  <miguel@novell.com>
10506
10507         * MessageBox.cs: Implemented overload that takes a new "bool
10508         displayHelpButton" by adding a new internal field "show_help".
10509         When clicked this will raise the HelpRequested on the owner or the
10510         main form. 
10511
10512         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
10513         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
10514
10515         * ListView.cs: Add support ColumnWidthChanged and
10516         ColumnWidthChanging. 
10517
10518         Add support for ColumnReordered event.
10519         (ReorderColumn): Add NET_2_0 specific support for cancelling the
10520         reorder.
10521
10522         Very nice codebase!
10523
10524         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
10525
10526         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
10527
10528 2006-12-24  Chris Toshok  <toshok@ximian.com>
10529
10530         * GridTablesFactory.cs: 2.0 corcompare work.
10531
10532         * ToolStripContainer.cs: add "override" to
10533         ContextMenuStripChanged, and remove the local event object.
10534
10535         * ToolStripDropDown.cs: same with a couple properties.
10536
10537         * ToolStripPanel.cs: same with AutoSizeChanged event.
10538
10539         * TextBoxBase.cs: add "override" to AutoSizeChanged.
10540
10541         * Form.cs: add the remaining 2.0 events, and do some corcompare
10542         attribute work.
10543
10544         * DateTimePicker.cs: add "new" to padding.
10545
10546         * ButtonBase.cs: use Control's use_compatible_text_rendering.
10547
10548         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
10549
10550         * DataGridView.cs: PaddingChanged is overridden.
10551
10552 2006-12-24  Chris Toshok  <toshok@ximian.com>
10553
10554         * Control.cs: corecompare work here too.
10555
10556         * DataGridViewElement.cs, DataGridView.cs,
10557         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
10558         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
10559         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
10560         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
10561         work.
10562
10563 2006-12-24  Miguel de Icaza  <miguel@novell.com>
10564
10565         * Control.cs: Switched the error message on the console for a
10566         todo.  A review of the code will have to cope with this anyways
10567         (since its a large feature, it is in our radar) and it was
10568         producing too much output when running PDN.
10569
10570         * ToolStripComboBox.cs: Set the text when the SelectedIndex
10571         changes.  Applications depend on this (PDN 2.72)
10572
10573 2006-12-23  Chris Toshok  <toshok@ximian.com>
10574
10575         * TableLayoutSettings.cs: finish up the corcompare work for this
10576         class.
10577
10578 2006-12-23  Chris Toshok  <toshok@ximian.com>
10579
10580         * Control.cs: make SetImplicitBounds internal, do some futzing
10581         with LayoutEngine so that it's available in 1.1, and remove the
10582         entire duplicated code mess from PerformLayout.  Use
10583         System.Windows.Forms.Layout.DefaultLayout instead.
10584
10585         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
10586
10587 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
10588
10589         * Form.cs: Add MainMenuStrip property.
10590
10591 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
10592
10593         * Control.cs: Add ContextMenuStrip property and implementation.
10594         Fix ContextMenu implementation to show menu centered on control when
10595         activated using the keyboard instead of showing at screen (0,0).
10596
10597         * ToolStripDropDown.cs: Fix needed overload of Show ().
10598
10599 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10600
10601         * Menu.cs: Name property added for 2.0 profile.
10602         
10603 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10604
10605         * Menu.cs: Update information about FindMenuItem, method to be
10606         implemented soon.
10607
10608 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10609
10610         * MenuAPI.cs: When deselect items deselect also selected subitems.
10611         
10612 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10613
10614         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
10615         FindSubItemByCoord to found itens that is not active, also an
10616         cheking added to FindSubItemByCoord to search for items only 
10617         in visible popup windows. Fixes #80274.
10618
10619 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
10620
10621         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
10622         internal property, it be care about change ExStyle. 
10623
10624 2006-12-22  Andreia Gaita  <avidigal@novell.com>
10625
10626         * ContainerControl.cs: set activeControl for parent forms up the 
10627         tree when the new activecontrol is a container.
10628         When validating the active control, if it is a container, also
10629         raise up the validation for it's active control. Fixes #80280
10630         
10631         * Control.cs: Add internal property flag and check to prevent
10632         Focus events from getting raised when Select() is called for
10633         a ContainerControl. There are still too many focus events being
10634         raised at the moment though.
10635         Cleaned up the code a bit.
10636
10637 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10638
10639         * Control.cs: Added all missing 2.0 events.and
10640         fixed a couple of corcompare issues.
10641         * TrackBar.cs: Implemented missing 2.0 bits.
10642         * MonthCalendar.cs, 
10643         * DateTimePicker.cs, 
10644         * MdiClient.cs: Fixed some corcompare issues.
10645
10646 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10647
10648         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
10649         SplitterPanel.cs: corecompare work.
10650
10651 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10652
10653         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
10654         Clean up warnings for BackgroundImageChanged and PaddingChanged
10655         events now that they are implemented in Control.cs.
10656
10657 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10658
10659         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
10660         
10661         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
10662         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
10663         of TableLayoutPanel and supporting cast.
10664
10665 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10666
10667         * XplatUIWin32.cs: 
10668         - GrabWindow now confines the mouse pointer to the confine window.
10669         - Added Win32ClipCursor and Win32GetClipCursor.
10670
10671         * Control.cs: 
10672         - Added CaptureWithConfine to be able to capture and confine 
10673         mouse pointer.
10674         
10675         * InternalWindowManager.cs: 
10676         - Call CaptureWithConfine instead of Capture if we're an
10677         MdiChild (fixes #79982).
10678
10679 2006-12-21  Chris Toshok  <toshok@ximian.com>
10680
10681         * DataGrid.cs: guard against the initial state of selection, where
10682         selection_start == -1.  make sure we only select from index >= 0.
10683         Fixes bug #80291.
10684
10685 2006-12-21  Chris Toshok  <toshok@ximian.com>
10686
10687         * Control.cs: we don't need to be so draconian with
10688         UpdateDistances, and we thusly don't need to call it before
10689         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
10690
10691 2006-12-21  Daniel Nauck  <dna@mono-project.de>
10692
10693         * ComboBox.cs,
10694         TextBox.cs: Implemented AutoComplete properties.
10695
10696 2006-12-20  Chris Toshok  <toshok@ximian.com>
10697
10698         * DataGridView*.cs: some corecompare work.
10699
10700 2006-12-20  Jackson Harper  <jackson@ximian.com>
10701
10702         * XplatUIX11.cs: We need to hide the caret when deleting it,
10703         otherwise you get carets left lying around everywhere.
10704         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
10705         prevents getting some weird half drawn caret tracers when
10706         scrolling.
10707         * TextControl.cs: Attempt to reduce the number of times we need to
10708         recreate the caret.
10709
10710 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
10711
10712         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
10713
10714 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10715
10716         * DateTimePicker.cs:
10717         - Implemented missing 2.0 bits.
10718         - Changed some default values to match MS.
10719         
10720 2006-12-20  Jackson Harper  <jackson@ximian.com>
10721
10722         * TextBoxBase.cs: When changing the font across the document we
10723         can't recalculate after changing each line, since that will cahnge
10724         the line count.
10725         - PreferredHeight is a little different than i thought.
10726         - When backspacing, move the caret before we do the actual char
10727         delete, because when that delete crosses a wrap boundary the
10728         positional information will change.
10729
10730 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10731
10732         * Control.cs: Added some missing 2.0 bits: 
10733         BackgroundImageLayout, BackgroundImageLayoutChanged, 
10734         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
10735         add IBindableComponent and IDropTarget implementation.
10736         
10737         * MonthCalendar.cs: 
10738         - Added all missing 2.0 features:
10739         BackgroundImageLayout, RightToLeftLayout, 
10740         OnHandleDestroyed, RightToLeftLayoutChanged, 
10741         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
10742         PaddingChanged.
10743         - Rewrote all the BoldDate code, it was completely broken.
10744         - Fixed all the tests (the tests can now be re-enabled, the
10745         problems were not with the tests, but with the control, it was
10746         mostly broken).
10747         
10748         * DateTimePicker.cs: Changed the location where the 
10749         MonthCalendar is shown.
10750         
10751 2006-12-19  Chris Toshok  <toshok@ximian.com>
10752
10753         * DataGridView.cs: add IDropTarget implementation.
10754
10755         * ToolStripPanel.cs: add IDropTarget implementation.
10756
10757 2006-12-19  Jackson Harper  <jackson@ximian.com>
10758
10759         * TextControl.cs: soft now means something different than what it
10760         used to mean, we want to move the caret regardless of whether or
10761         not this break was soft (would we really have wanted the caret
10762         to not move with the break in the old context?)
10763         * TreeView.cs: Make sure we factor in the vert scrollbar when
10764         calculating the horizontal scrollbar's maximum.
10765
10766 2006-12-19  Andreia Gaita  <avidigal@novell.org>
10767
10768         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
10769         check for keywords in alternate casing, close bug #80049.
10770
10771 2006-12-19  Chris Toshok  <toshok@ximian.com>
10772
10773         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
10774         methods (which all do nothing).
10775
10776         * IDropTarget.cs: add the 4 missing methods.
10777
10778 2006-12-19  Chris Toshok  <toshok@ximian.com>
10779
10780         * TableLayoutRowStyleCollection.cs: corcompare work.
10781         
10782         * TableLayoutSettings.cs: same.
10783
10784         * TableLayoutStyle.cs: same.
10785
10786         * TableLayoutColumnStyleCollection.cs: same.
10787
10788 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
10789
10790         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
10791         TableLayoutPanel I've had in my local tree for way too long.
10792
10793 2006-12-19  Miguel de Icaza  <miguel@novell.com>
10794
10795         * TableLayoutSettings.cs: Finish the public API (still needs all
10796         the logic to update on changes). 
10797
10798         * TableLayoutPanelCellPosition.cs: new file.
10799         
10800         * TableLayoutRowStyleCollection.cs,
10801         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
10802         TableLayoutSettings.cs: Track the final 2.0 table api.
10803
10804 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10805
10806         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
10807         and Image List 2.0 members for ColummnHeader.
10808         * ListView.cs: Add key-related 2.0 methods for
10809         ColumnHeaderCollection.
10810
10811 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
10812
10813         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
10814         ArgumentNullException if items argument is null. Ignore null item in
10815         arrays. Removed extra tabs.
10816
10817 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
10818
10819         * MonthCalendar.cs: Fixed InvalidCastException.
10820
10821 2006-12-19  Jackson Harper  <jackson@ximian.com>
10822
10823         * TextControl.cs: Don't increment the position here.
10824         - When calculating char positions only add in the line break size
10825         for hard line breaks.
10826
10827 2006-12-19  Andreia Gaita  <avidigal@novell.org>
10828
10829         * SendKeys.cs: Changed some things to match ms.net behaviour
10830         when parsing shifted capital letters.
10831         
10832         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
10833         Add window handle as parameter to SendInput. X11 needs the 
10834         window handle, and the handle being passed      to it in the keys 
10835         queue is the active control handle (which windows needs), not 
10836         the window handle.
10837         
10838         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
10839         to support SendKeys on X.       
10840         
10841         * X11Keyboard: Implement helper method to lookup a linux keycode
10842         given the virtual keycode. Added table of keycode-2-virtualkey
10843         values to support this.
10844
10845 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10846
10847         * ListView.cs: Add support for SelectedIndexCollection
10848         and SelectedItemCollection 2.0 methods. Implement support
10849         for ImageKey too.
10850         * ListViewItem.cs: Add support for ListViewSubItemCollection
10851         2.0 methods. Also, fix an incorrect behavior of AddRange method
10852         (it shouldn't call Clear).
10853         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
10854
10855 2006-12-19  Jackson Harper  <jackson@ximian.com>
10856
10857         * RichTextBox.cs: 
10858         * TextBoxBase.cs: New args for FormatText
10859         * TextControl.cs: Rewrote the main drawing method, this version
10860         feels a little easier to understand and debug to me.  Hopefully it
10861         does to others also
10862         - Fix FormatText to OR in the new formating values.  Added
10863         FormatSpecified param, basically this works in the same way as
10864         BoundsSpecified in Control.
10865         - Set the caret properties when the caret is positioned.
10866         - When wrapping text make sure that we calculate the width of the
10867         last character
10868         - when calculating alignments we might have wrapped down to the
10869         next line, so don't search for an individual tag, search for the
10870         end of the line
10871         - We need to invalidate the selection area when we replace the
10872         selection.
10873         
10874 2006-12-19  Daniel Nauck  <dna@mono-project.de>
10875
10876         * Application.cs: add Restart () 2.0 support
10877
10878 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10879
10880         * MenuItem.cs: Invalidate menu item rectangle after change Enable
10881         property. Fixes #80268.
10882         
10883 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10884
10885         * MenuAPI.cs: Dont trigger select event when closes top menu
10886         item. Fixes #80270.
10887
10888 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10889
10890         * MenuAPI.cs: When you click on menuitem only trigger onselect
10891         event for top menu itens. Fixes #80271.
10892         
10893 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10894
10895         * MdiWindowManager.cs: Make IconicBounds depend on
10896         the bottom of MdiClient, not the top (fixes #80267)
10897         
10898 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10899
10900         * MdiClient.cs: Added missing 2.0 attribute
10901
10902 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10903
10904         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
10905         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
10906
10907 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10908
10909         * MenuAPI.cs: Fix click when menuitem is not popup,
10910         this regression was caused by last commit (#80272).
10911
10912 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
10913
10914         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
10915         fire click event or close menu. Fixes #80272.
10916
10917 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10918
10919         * ListViewHitTestInfo.cs: add
10920
10921 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10922
10923         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
10924         * FlatButtonAppearance.cs: add
10925         * DockingAttribute.cs: add
10926
10927 2006-12-17  Chris Toshok  <toshok@ximian.com>
10928
10929         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
10930         and rebind our columns when it does - this way, if you make
10931         changes to the DataTable (or set the Table attribute on a DataView
10932         after setting it as the DataGrid's DataSource, the changes are
10933         made visible.)  Fixes bug #80107.
10934
10935 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10936
10937         * ListViewGroup.cs: add internal Location property for layouting.
10938         * Theme.cs: add abstract ListViewGroupHeight function.
10939         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
10940
10941 2006-12-16  Andreia Gaita  <avidigal@novell.com>
10942
10943         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
10944         Added reset of selected index to 0 when adding first tab page.
10945         Fixes #80264
10946         
10947         * NumericUpDown.cs: Fix NET_2_0 check
10948
10949 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10950
10951         * ListViewGroup.cs: fixed DefaultValueAttribute value
10952
10953 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10954
10955         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
10956
10957 2006-12-15  Miguel de Icaza  <miguel@novell.com>
10958
10959         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
10960         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
10961         ScrollableControl.cs: Add a handful of methods that are
10962         overwritten in 2.0 
10963
10964 2006-12-15  Chris Toshok  <toshok@ximian.com>
10965
10966         * XplatUIWin32.cs: initial implementation of the Reversible
10967         drawing functions.  there are some problems.  DrawReversibleFrame
10968         doesn't seem to work at all for Dashed FrameStyle, and in the
10969         Thick case there are drawing errors at the corners (we probably
10970         need to bind Rectangle instead of doing moveto/lineto's.)
10971
10972 2006-12-16  Andreia Gaita  <avidigal@novell.com>
10973         
10974         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
10975         to send blocks of key messages. Send accumulates keys to send with Flush, 
10976         while SendWait sends all keys immediately.
10977                 
10978         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
10979         XplatUIX11.cs,  XplatUIX11-new.cs:
10980         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
10981         to Win32 SendInput.
10982         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
10983         
10984         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
10985         testing for ms.net on this class is very tricky, as the tests run too fast 
10986         to allow the hook to release, essentially freezing the keyboard and the 
10987         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
10988         category :p
10989
10990 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10991
10992         * Padding.cs: fixed serialization compability to MS ("_var" field names),
10993                         added missing attributes.
10994  
10995 2006-12-15  Daniel Nauck  <dna@mono-project.de>
10996
10997         * ListViewGroup.cs: Added missing attributes.
10998         * ListViewGroupCollection.cs: Added missing attributes.
10999
11000 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11001
11002         * ListViewItem.cs: fixed ListViewSubItem text property.
11003
11004 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11005         
11006         * Control.cs: Added missing 2.0 attributes
11007         
11008 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11009         
11010         * MdiClient.cs: Added missing 2.0 attribute.
11011         * MonthCalendar.cs: Added some missing 2.0 attributes 
11012         and properties.
11013         
11014 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11015
11016         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
11017
11018 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
11019
11020         * MainMenu.cs: Add the new 2.0 constructor to help out people
11021         using the MainMenu in VS2005.
11022
11023 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11024         
11025         * MdiChildContext.cs: Removed it, no longer used.
11026         * MdiClient.cs: Added missing 2.0 attributes.
11027         
11028 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11029         
11030         * InternalWindowManager.cs: Fix a NullRef with previous 
11031         changes for toolwindows.
11032         
11033 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11034
11035         * Control.cs: 
11036         - Added AfterTopMostControl to allow for certain controls 
11037         to always stay on top when normal controls are brought to 
11038         front.
11039         
11040         * XplatUIWin32.cs: 
11041         - (DrawInversibleRectangle): Get window rectangle from Win32 
11042         in stead of from control, since Win32 doesn't calculate
11043         screen coords correctly from control's Location if it 
11044         have docked siblings.
11045         
11046         * MdiWindowManager.cs:
11047         - Correct the control menu popup location when clicked on
11048         the maximized form icon. (fixes #80223.1)
11049         - Don't show moving rectangle if mouse hasn't moved from
11050         the original clicked point.
11051         - Removed FormGotFocus handler (not used).
11052         - Calculate the control buttons location from the main
11053         window's size and not client size (fixes #79770).
11054         - Form is now closed when the form icon is double-clicked
11055         (fixes #79775). 
11056         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
11057         
11058         * InternalWindowManager.cs:
11059         - Moved some MDI-only methods to MdiWindowManager.
11060         - Removed unused properties and methods.
11061         - Unified method naming for methods handling wm messages.
11062         - Moved all message handling to seperate methods for
11063         each message.
11064         
11065         * ThemeWin32Classic.cs:
11066         - DrawManagedWindowDecorations now draws the title bar 
11067         with a gradient brush.
11068         - Add a CPDrawButtonInternal that allows us to specify
11069         light, normal and dark colors for the buttons (control 
11070         buttons for MDI children were drawn with the same light
11071         color as the background, therefore loosing the 3D effect).
11072         
11073         * SizeGrip.cs:
11074         - Add a CapturedControl property that is used to 
11075         determine the control to resize (defaults to parent). 
11076         Needed for MdiClient, since its SizeGrip's parent is
11077         MdiClient, but the control to resize is the main form.
11078         
11079         * MdiClient.cs:
11080         - Set SizeGrip's CapturedControl to the main form in order
11081         to resize the main form and not the MdiClient.
11082         - Override AfterTopMostControl to leave the scrollbars 
11083         always on top.
11084
11085 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11086
11087         * ListView.cs: fixed ListViewItemCollection AddRange and
11088                         implemented ListViewItemCollection AddRange 2.0 support.
11089
11090 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11091
11092         * ListViewGroup.cs: Add.
11093         * ListViewGroupCollection.cs: Add
11094         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
11095         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
11096                                 stub for ImageKey 2.0 support.
11097
11098 2006-12-14  Mike Kestner  <mkestner@novell.com>
11099
11100         * ListView.cs: add text padding to the autocalculation for columns
11101         of width -2.  Fixes #80207.
11102  
11103 2006-12-14  Mike Kestner  <mkestner@novell.com>
11104
11105         * ListView.cs: add some index guarding for partial row navigation 
11106         logic.  Fixes #80250.
11107
11108 2006-12-14  Mike Kestner  <mkestner@novell.com>
11109
11110         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
11111         are added or inserted to the collection.  Fixes #81099.
11112
11113 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
11114
11115         * MenuAPI.cs: Closes menu when right click out side of popup
11116         it fix problem in ContextMenu and MainMenu. Fixes #80252.
11117
11118 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11119
11120         * ListViewItem.cs: Fix dumb error.
11121
11122         * ListView.cs: Add Find and ContainsKey methods in 
11123         ListViewItemCollection, and also return true for IsReadOnly
11124         and IsFixedSize (changes for 2.0). 
11125
11126 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
11127
11128         * Control.cs: Allow Region to be set to null.
11129
11130 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11131
11132         * MdiWindowManager.cs: Remove unused (commented out) code.
11133         * Form.cs: When the MdiChild is maximized, the form needs 
11134         WM_NCMOUSELEAVE, so request it.
11135         * InternalWindowManager.cs: 
11136         - Added tooltips to control buttons.
11137         - Removed duplicated control button handling code.
11138         - Removed unused (commented out) code.
11139         
11140 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
11141
11142         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
11143         was used because we must set cursor without trigger ChangeCursor event
11144         and without change Cursor control property. Fixes #79963.
11145
11146 2006-12-12  Andreia Gaita  <avidigal@novell.com>
11147         
11148         * Control.cs: Check if Region setter value is null, and ignore
11149
11150 2006-12-12  Jackson Harper  <jackson@ximian.com>
11151
11152         * TextControl.cs: We were almost always drawing one more line then
11153         needed, since the GetLineByPixel will return the last line found
11154         at that pixel. In most cases though, we were invalidating up to
11155         the junction between two lines.
11156         - Improve debug code.
11157
11158 2006-12-12  Chris Toshok  <toshok@ximian.com>
11159
11160         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
11161         and FillReversibleRectangle.
11162
11163         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
11164         and FillReversibleRectangle.
11165
11166         * XplatUIWin32.cs: add stubs which do nothing for
11167         DrawReversibleFrame, DrawReversibleLine, and
11168         FillReversibleRectangle.
11169
11170         * XplatUIOSX.cs: add stubs which raise NIE for
11171         DrawReversibleFrame, DrawReversibleLine, and
11172         FillReversibleRectangle.
11173
11174         * XplatUIX11.cs: add working implementation for
11175         DrawReversibleFrame, DrawReversibleLine, and
11176         FillReversibleRectangle.
11177         
11178         * ControlPaint.cs: implement DrawReversibleFrame,
11179         DrawReversibleLine, and FillReversibleRectangle, by calling into
11180         the appropriate XplatUI method.
11181
11182 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11183
11184         * Form.cs: Make MdiClient have the focus even if it's
11185         not selectable, since it should receive WM_KEY* and WM_MOUSE 
11186         messages. Fixes #79907.
11187         
11188 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11189
11190         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
11191         queried after the window is created.
11192         
11193         * XplatUIX11.cs: Added SendParentNotify to implement 
11194         WM_PARENTNOTIFY logic. Fixes #79965.
11195         
11196         * Control.cs: Added MakeParam.
11197         
11198 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11199
11200         * MdiClient.cs: Resume Layout before setting window
11201         states (fixes #80201).
11202
11203 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11204
11205         * MenuAPI.cs: Deselect a menu item after performing
11206         the click (fixes #80197).
11207
11208 2006-12-11  Jackson Harper  <jackson@ximian.com>
11209
11210         * TextBoxBase.cs: We need to cap this value, since Maximum -
11211         ViewPortHeight can be less than zero.
11212         - Only do selection with the left mouse button.
11213         * TextBox.cs: Don't tell the world that we have a context menu.
11214         * Control.cs: New method so that we can control whether or not the
11215         context menu is visible outside MWF.
11216
11217 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
11218
11219         * ToolBarButton.cs: Fix text positon. 
11220
11221 2006-12-11  Miguel de Icaza  <miguel@novell.com>
11222
11223         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
11224
11225         * Control.cs (DoubleBuffered): Add implementation.
11226
11227         * Application.cs (OpenForms): Add.
11228
11229 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
11230
11231         * Form.cs: Use opacity instead of Opactiy to determine if we need
11232         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
11233
11234 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
11235
11236         * Control.cs: Fix NRE if Control.Site was set to null.
11237
11238 2006-12-11  Chris Toshok  <toshok@ximian.com>
11239
11240         * Control.cs: ControlCollection.Remove should return if the arg is
11241         null, and ControlCollection.SetChildIndex should raise a ANE.
11242
11243 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
11244
11245         * Control.cs: Verify value set for Dock property. Code formatting
11246         updates.
11247
11248 2006-12-11  Jackson Harper  <jackson@ximian.com>
11249
11250         * TextControl.cs: Draw the caret and the selection when a flag is
11251         set on the owner.
11252         * TextBoxBase.cs: We want to draw the caret and the selection for
11253         TextBox but not for TextBoxBase.
11254         - If the window is resized and scrolling is no longer needed (the
11255         whole doc is visible) set the scroll position to zero.
11256         - The default SelectWord (the one TextBox uses) should move the
11257         caret to the end of the word.
11258         - SelectAll moves the caret to the end of the selection.
11259         * TextBox.cs: We don't selectall on focus, we just do it when the
11260         control is created.
11261         
11262 2006-12-11  Mike Kestner  <mkestner@novell.com>
11263
11264         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
11265
11266 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11267
11268         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
11269         2.0 support.
11270         * ListViewItem.cs: Add Name 2.0 property.
11271
11272 2006-12-11  Andreia Gaita  <avidigal@novell.com>
11273
11274         * TabControl.cs: Set visibility on selected or default tab 
11275         when tabcontrol handle is created, so that it's contents
11276         actually show up (duh). Fixes #80193
11277         Don't redraw the control if there is no handle created, as
11278         the selected index might be completely invalid. Added some tests
11279         to check for this.
11280
11281 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
11282
11283         * ToolBar.cs: Uses maximun width and height of all buttons as 
11284         button rectangle when ButtonSize specified, it looks strange but
11285         is what happens in Win32. Fixes #80189.
11286
11287 2006-12-11  Jackson Harper  <jackson@ximian.com>
11288
11289         * TextControl.cs: Need to track undo levels ourself, since
11290         compound actions will mess them up.
11291
11292 2006-12-10  Andreia Gaita  <avidigal@novell.com>
11293
11294         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
11295         SelectedIndex value is changed (even if it's not valid).
11296         Reset SelectedIndex to 0 when the handle is created and if
11297         the current index is invalid.
11298         Fixes SelectdeIndex unit tests and #80128
11299
11300 2006-12-08  Chris Toshok  <toshok@ximian.com>
11301
11302         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
11303         calls EndEdit, it needs to be called before we set current_cell to
11304         its new value.  Otherwise, we end up committing the value in the
11305         textbox to the new cell as well.  Fixes bug #80160.
11306
11307 2006-12-08  Chris Toshok  <toshok@ximian.com>
11308
11309         * Form.cs (set_CancelButton): if the button's DialogResult is
11310         None, set it to Cancel.  Fixes bug 80180.
11311
11312 2006-12-08  Jackson Harper  <jackson@ximian.com>
11313
11314         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
11315         to watch ourselves when setting the canvas size and setting the
11316         scrollbar values.
11317
11318 2006-12-08  Chris Toshok  <toshok@ximian.com>
11319
11320         * DataGrid.cs: comment out the two MakeTransparent calls for the
11321         time being so people using trunk (and not 1.2.2) on windows can
11322         actually use the datagrid.  This deals with bug #80151.
11323
11324 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
11325
11326         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
11327         Graphics.DrawImage (image, int, int, int, int) overload instead
11328         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
11329         the dpi difference and was blurring images it drew.
11330         [Fixes bug #79960]
11331
11332 2006-12-08  Chris Toshok  <toshok@ximian.com>
11333
11334         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
11335         rowcnt is 0 (such as with an empty datasource), and make sure we
11336         initialize not_usedarea.Y to cells.Y, so we don't draw over the
11337         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
11338
11339 2006-12-08  Chris Toshok  <toshok@ximian.com>
11340
11341         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
11342         grid.
11343
11344 2006-12-08  Chris Toshok  <toshok@ximian.com>
11345
11346         [ Fixes bug #80167 ]
11347         
11348         * ThemeWin32Classic.cs: don't draw the image if the button's flat
11349         style is FlatStyle.System.
11350
11351         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
11352         ButtonBase.flat_style private, and switch uses of it to the public
11353         property.
11354         
11355 2006-12-08  Chris Toshok  <toshok@ximian.com>
11356
11357         [ Fixes bug #80121 ]
11358         
11359         * ThemeWin32Classic.cs: center the caption text in the datagrid
11360         when we draw it.
11361
11362         * DataGrid.cs: lessen the amount we add to the caption height from
11363         6 to 2.  6 was making it huge.
11364
11365 2006-12-08  Andreia Gaita  <avidigal@novell.com>
11366
11367         * UpDownBase: Handle MouseWheel call directly instead of capturing
11368         the inner textbox's OnMouseWheel. Fixes #80166
11369
11370 2006-12-08  Jackson Harper  <jackson@ximian.com>
11371
11372         * TextControl.cs: We need to invalidate the textbox when we empty
11373         it (how had this not been discovered before?)
11374
11375 2006-12-08  Jackson Harper  <jackson@ximian.com>
11376
11377         * TextBoxBase.cs: Reworked the mouse down code so I could get it
11378         to behave like MS, we now ignore the eventargs.Click and just
11379         track state ourself, which we were already doing anyways.
11380         - Constrain the double click handler to the double click size.
11381         
11382 2006-12-08  Chris Toshok  <toshok@ximian.com>
11383
11384         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
11385         direction if that scrollbar isn't shown.  fixes bug #80158.
11386
11387 2006-12-08  Andreia Gaita  <avidigal@novell.com>
11388
11389         * NumericUpDown.cs: Update value on getter. Fixes #79950
11390
11391 2006-12-08  Chris Toshok  <toshok@ximian.com>
11392
11393         * MenuItem.cs: add back in the event cloning code.  I didn't know
11394         how to do it in the face of the EventHandlerList work i'd done
11395         last week.  Fixes bug #80183.
11396
11397 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
11398
11399         * Control.cs: Add an invalidate to the BackgroundImage setter.
11400         [Fixes 80184]
11401
11402 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
11403
11404         * ToolStrip*: Add some small properties reported by MoMA, fix event
11405         firing and default properties based off of unit tests, and add some
11406         attributes based off of the class status page.
11407
11408 2006-12-07  Jackson Harper  <jackson@ximian.com>
11409
11410         * TextBoxBase.cs: Take HideSelection into account when determining
11411         whether or not to show the selection.
11412         * RichTextBox.cs: After inserting the RTF into the document move
11413         the cursor to the beginning of the document.
11414
11415 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
11416
11417         * Control.cs: Remove static ArrayList "controls" which maintained
11418         a reference to every control created.
11419         * Application.cs: Create a static FormCollection to maintain a reference
11420         to every form created.  Use it in places that formerly enumerated through
11421         the controls one looking for forms.
11422         * Form.cs: Add and remove self from above FormCollection.
11423
11424 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
11425
11426         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
11427           not libgdk (though it makes me wonder why I didn't have any
11428           problems)
11429
11430 2006-12-07  Chris Toshok  <toshok@ximian.com>
11431
11432         [ you had to know this was coming after that last commit...]
11433         
11434         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
11435         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
11436         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
11437         XCopyArea).
11438
11439 2006-12-07  Chris Toshok  <toshok@ximian.com>
11440
11441         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
11442         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
11443         all the behavior we need for double buffering.
11444
11445         * XplatUIDriver.cs: implement the 3 double buffer methods using a
11446         client side Bitmap, just like the old Control-based double buffer
11447         code did.  The methods are virtual, so each XplatUI driver
11448         subclass can replace the implementation to use a faster, platform
11449         specific approach.
11450
11451         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
11452         double buffer code, and clean things up a bit in the process.
11453
11454 2006-12-06  Chris Toshok  <toshok@ximian.com>
11455
11456         * Control.cs: reindent WndProc.
11457
11458 2006-12-06  Chris Toshok  <toshok@ximian.com>
11459
11460         [ I wanna be like BenM when I grow up ]
11461         
11462         * Hwnd.cs: create a single static Graphics object on the static
11463         Bitmap we create.  use this for our text measurements.
11464
11465         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
11466         This was causing us to allocate a backbuffer for every control,
11467         even when it wasn't flagged as double buffered.  Instead use the
11468         single graphics instance.  This might have implications for
11469         multithreaded applications.  If we run into problems we can switch
11470         to creating 1 Graphics per control, on the static Hwnd bitmap.
11471
11472         this change nets us a 7M savings in private dirty mappings when
11473         running FormsTest.exe.
11474
11475 2006-12-06  Chris Toshok  <toshok@ximian.com>
11476
11477         * ListView.cs: the BackgroundImage override is just to set
11478         attributes.  chain up to base.BackgroundImage.
11479
11480         * RichTextBox.cs: same.
11481
11482         * ToolBar.cs: same, but we need to also redraw the toolbar when it
11483         changes, so instead a handler for BackgroundImageChanged.
11484         
11485         * Control.cs: make background_image private.
11486
11487 2006-12-06  Chris Toshok  <toshok@ximian.com>
11488
11489         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
11490         sure we even need this assignment, but roll with it for now.
11491
11492         * Control.cs: make the cursor field private.
11493
11494 2006-12-06  Chris Toshok  <toshok@ximian.com>
11495
11496         * Form.cs: we don't need to explicitly set ImeMode to
11497         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
11498         behavior in the face of ImeMode.Inherit.
11499
11500         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
11501         change the ctor's assignment to use ImeMode instead of ime_mode.
11502
11503         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
11504         ImeModeInherit.  Only check for the parent's imemode (and return
11505         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
11506         This fixes the button unit test, which sets both ImeMode and
11507         DefaultImeMode to ImeMode.Disable.
11508
11509         also make the ime_mode field private.
11510
11511 2006-12-06  Chris Toshok  <toshok@ximian.com>
11512
11513         * Control.cs: make control_style private.
11514
11515         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
11516         setting the styles to true, then setting them to false instead of
11517         reverting to their previous values.
11518
11519         also, call SetStyle on the scrollbars instead of using
11520         control_style directly.
11521
11522 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
11523
11524         * FormCollection.cs: Implement. [2.0]
11525
11526 2006-12-06  Chris Toshok  <toshok@ximian.com>
11527
11528         * Control.cs: make tab_stop private.
11529
11530         * Label.cs: set TabStop, not tab_stop.  reformat some event
11531         add/remove methods to make them more compact.
11532
11533 2006-12-06  Chris Toshok  <toshok@ximian.com>
11534
11535         * RadioButton.cs: fix TabStop handling.
11536
11537 2006-12-06  Chris Toshok  <toshok@ximian.com>
11538
11539         * TextBox.cs: remove the explicit assignments to has_focus.
11540         Control does that.
11541
11542         * ButtonBase.cs: remove the assignment to has_focus.  Control will
11543         manage that.
11544         
11545 2006-12-06  Chris Toshok  <toshok@ximian.com>
11546
11547         * ButtonBase.cs: remove all uses of is_enabled from this code.
11548         it's always true when any of the code containing the checks is
11549         executed.
11550
11551 2006-12-06  Chris Toshok  <toshok@ximian.com>
11552
11553         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
11554         with different semantics (some are present in both 1.1 and 2.0
11555         profiles) so that we match MS's behavior in our unit tests.
11556
11557 2006-12-06  Jackson Harper  <jackson@ximian.com>
11558
11559         * TextControl.cs: Make this operation undoable.
11560         * TextBoxBase.cs: Factor the border width into the preferred
11561         height.
11562         - implement Modified as per the spec.
11563
11564 2006-12-06  Chris Toshok  <toshok@ximian.com>
11565
11566         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
11567
11568 2006-12-06  Chris Toshok  <toshok@ximian.com>
11569
11570         * Control.cs: make right_to_left and context_menu fields private.
11571
11572 2006-12-06  Chris Toshok  <toshok@ximian.com>
11573
11574         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
11575         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
11576         Control.child_controls private.  switch all uses over to
11577         Control.Controls.
11578
11579 2006-12-06  Chris Toshok  <toshok@ximian.com>
11580
11581         * System.Windows.Forms/GroupBox.cs,
11582         System.Windows.Forms/AccessibleObject.cs,
11583         System.Windows.Forms/ErrorProvider.cs,
11584         System.Windows.Forms/Control.cs,
11585         System.Windows.Forms/UpDownBase.cs,
11586         System.Windows.Forms/ScrollBar.cs,
11587         System.Windows.Forms/DateTimePicker.cs,
11588         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
11589         System.Windows.Forms/ToolTip.cs,
11590         System.Windows.Forms/RadioButton.cs,
11591         System.Windows.Forms/LinkLabel.cs,
11592         System.Windows.Forms/Splitter.cs,
11593         System.Windows.Forms/TextBoxBase.cs,
11594         System.Windows.Forms/ToolStripTextBox.cs,
11595         System.Windows.Forms/ContainerControl.cs,
11596         System.Windows.Forms/ThemeWin32Classic.cs,
11597         System.Windows.Forms/SizeGrip.cs,
11598         System.Windows.Forms/ToolStripDropDown.cs,
11599         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
11600         private.  switch all uses over to Control.Parent.
11601
11602 2006-12-06  Chris Toshok  <toshok@ximian.com>
11603
11604         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
11605         Control does this before calling emitting these events.
11606
11607         * TabControl.cs: same.
11608
11609         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
11610         Control.client_rect.
11611
11612         * ButtonBase.cs: use the ClientSize property instead of the
11613         client_size field.
11614
11615         * ScrollableControl.cs: same.
11616
11617         * Control.cs: another pass at making properties private.  also,
11618         move the initialization of tab_stop to the ctor.
11619
11620 2006-12-05  Andreia Gaita <avidigal@novell.com>
11621
11622         * TabControl.cs: Let the selected index be set freely if the 
11623         control handle is not yet created.
11624
11625 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
11626
11627         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
11628         internal until I can rewrite DefaultLayout.
11629         * ToolStrip.cs: Fix build error and some general cleaning.
11630         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
11631         Fix build errors caused by making some of Control's fields private.
11632
11633 2006-12-05  Jackson Harper  <jackson@ximian.com>
11634
11635         * TextControl.cs: Redo Insert a little so that it use IndexOf
11636         instead of Split, this prevents it from messing up on things like
11637         \n\n\n. Also more effecient since the split array doesn't need to
11638         be created.
11639         * TextBoxBase.cs: AppendText doesnt handle multiline and non
11640         multiline text differently, this is the first of many fixes that
11641         will make multiline/non-multiline the same thing as far as the
11642         TextBoxBase is concerned.
11643         - Don't split the text and insert lines, this can lose some line
11644         endings (like is the last line a soft or hard break). Instead use
11645         the new Insert.
11646         - Fix an off by one when combining all the lines in the Text
11647         getter.
11648         - Remove separate multiline handling from the Text getter/setter.
11649
11650 2006-12-05  Chris Toshok  <toshok@ximian.com>
11651
11652         * ButtonBase.cs: a few changes:
11653
11654         - don't reinitialize internal Control fields in the ctor when they
11655         have the same values as Control sets them.
11656
11657         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
11658         this before calling those methods.
11659
11660         - we don't need to call Refresh for anything.  use Invalidate
11661         instead.
11662
11663         - OnEnabledChanged doesn't need to redraw at all - Control.cs
11664         calls Refresh in its OnEnabledChanged.
11665         
11666         - several of the events we were registered for in the ctor to
11667         redraw ourselves already include calls to Invalidate in the
11668         property setters that raise the events.  remove the extra
11669         invalidation.
11670
11671         - reformat a switch statement that was 83274658 columns wide.
11672         
11673 2006-12-05  Mike Kestner  <mkestner@novell.com>
11674
11675         * ComboBox.cs: fix a unit test regression from a TextBox
11676         SelectionLength return of -1 when there's no selection.  
11677
11678 2006-12-05  Chris Toshok  <toshok@ximian.com>
11679
11680         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
11681         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
11682         cleaning up some of the internal Control fields being used by
11683         subclasses.
11684
11685 2006-12-05  Mike Kestner  <mkestner@novell.com>
11686
11687         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
11688         listbox after AddImplicit calls since it defaults to hidden. Add a 
11689         hack to preserve requested heights across DropDownStyle changes.
11690
11691 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
11692
11693         * PropertyGrid.cs: Hide FindFirstItem method from public API.
11694
11695 2006-12-05  Chris Toshok  <toshok@ximian.com>
11696
11697         * DataGridView.cs: fix compiler warnings.
11698
11699         * PrintControllerWithStatusDialog.cs: same.
11700
11701         * ToolBar.cs: same.
11702
11703         * FolderBrowserDialog.cs: same.
11704
11705         * Splitter.cs: same.
11706
11707         * DataGridViewComboBoxCell.cs: same.
11708
11709         * XplatUIWin32.cs: same.
11710
11711         * PictureBox.cs: same.
11712
11713         * Win32DnD.cs: same.
11714
11715         * PageSetupDialog.cs: same.
11716
11717         * FileDialog.cs: same.
11718
11719         * PrintDialog.cs: same.
11720
11721         * DataGridTextBoxColumn.cs: same.
11722
11723         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
11724
11725 2006-12-05  Chris Toshok  <toshok@ximian.com>
11726
11727         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
11728         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
11729         System.ComponentModel.EventHandlerList work.
11730
11731 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
11732
11733         * DrawTreeNodeEventArgs.cs: Added.
11734
11735 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11736         
11737         * InternalWindowManager.cs: Remove an unused field.
11738         
11739 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11740
11741         * InternalWindowManager.cs:
11742         - Save the point where the title bar is clicked.
11743         
11744         * MdiWindowManager.cs:
11745         - Only allow moving of the window as long as the 
11746         clicked point on the title bar does not get out of
11747         MdiClient's rectangle. Fixes #79982.
11748         
11749         * MdiClient.cs:
11750         - Added Horizontal/VerticalScrollbarVisible.
11751         - Simplified the scrollbar sizing algorithm.
11752         - Cache the difference in scrolled value in
11753         H/VBarValueChanged and move the calculation out
11754         of the for loop.
11755
11756 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11757
11758         * Control.cs: Make the Console.WriteLine in WndProc 
11759         write more info.
11760
11761 2006-12-05  Chris Toshok  <toshok@ximian.com>
11762
11763         * ToolStripManager.cs, ToolStripButton.cs,
11764         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
11765         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
11766         ToolStripSplitButton.cs, ToolStripSeparator.cs,
11767         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
11768         ToolStripProgressBar.cs, ToolStripContainer.cs,
11769         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
11770         to using System.ComponentModel.EventHandlerList.
11771
11772 2006-12-04  Chris Toshok  <toshok@ximian.com>
11773
11774         * LinkLabel.cs: fix up compiler warnings.
11775
11776         * TableLayoutSettings.cs: same.
11777
11778         * TreeView.cs: same.
11779
11780         * ToolBar.cs: same.
11781
11782         * TabControl.cs: same.
11783
11784         * RichTextBox.cs: same.
11785
11786         * ListViewItem.cs: same.
11787
11788         * PropertyGrid.cs: same.
11789
11790         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
11791
11792         * ToolTip.cs same.
11793
11794         * TextRenderer.cs: fix up compiler warnings.
11795
11796         * Label.cs: same.
11797
11798         * Form.cs: corcompare fixes.
11799
11800         * PictureBox.cs: fix up compiler warnings.
11801
11802         * ImageListStreamer.cs: same.
11803
11804         * TrackBar.cs: corcompare fix.
11805
11806         * Control.cs: fix up compiler warnings.
11807
11808         * SplitterPanel.cs: same.
11809
11810         * NumericTextBox.cs: same.
11811
11812         * ImageList.cs: same.
11813
11814         * StatusStrip.cs: same.
11815
11816         * ProgressBar.cs: corcompare fix.
11817
11818         * ToolStripButton.cs: fix up compiler warnings.
11819
11820         * ToolStripStatusLabel.cs: same.
11821
11822         * ToolStripSplitButton.cs: same.
11823
11824         * ToolStripSeparator.cs: same.
11825
11826         * ToolStripProgressBar.cs: same.
11827
11828         * ToolStripDropDownMenu.cs: same
11829
11830         * ToolStripDropDown.cs: same.
11831
11832         * ToolStripDropDownButton.cs: same.
11833
11834         * ToolStrip.cs: same.
11835
11836         * ToolStripControlHost.cs: same.
11837
11838         * ToolStripContentPanel.cs: same.
11839
11840         * ToolStripDropDown.cs: same.
11841
11842         * ToolStripContainer.cs: same.
11843
11844         * ToolStripPanel.cs: same, and add "new" where we need it to work
11845         with the new ArrangedElementCollection.
11846
11847         * ToolStripItemCollection.cs: add "new" where we need it to work
11848         with the new ArrangedElementCollection.
11849
11850 2006-12-04  Andreia Gaita <avidigal@novell.com>
11851
11852         * TabControl.cs: Fix default tab selection to after TabControl
11853         gets focus and not before. Fixes #80128
11854
11855 2006-12-04  Chris Toshok  <toshok@ximian.com>
11856
11857         * DataGridTableStyle.cs: remove the gross calling of
11858         datagrid.Refresh from here.  It's a broken idea and it doesn't
11859         work anyway.
11860
11861         * DataGrid.cs: instead, just register/unregister from the
11862         DataGridTableStyle events in CurrentTableStyle.  we play it
11863         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
11864         even though some would most likely not require it.  Fixes bug
11865         #80115 (and one portion of #80117 as a side effect).
11866
11867 2006-12-04  Chris Toshok  <toshok@ximian.com>
11868
11869         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
11870         so the textbox (if any) goes away.  Fixes bug #80117.
11871
11872 2006-12-04  Chris Toshok  <toshok@ximian.com>
11873
11874         * DataGridColumnStyle.cs: set the column's readonly property
11875         initially based on the property descriptor's IsReadOnly.  Fixes
11876         bug #80044.
11877
11878 2006-12-04  Chris Toshok  <toshok@ximian.com>
11879
11880         * ComboBox.cs: wrap the dropdown style changing work in
11881         SuspendLayout/ResumeLayout.  Fixes bug #79968.
11882
11883 2006-12-04  Jackson Harper  <jackson@ximian.com>
11884
11885         * TextBoxBase.cs: Fix off by one, since these are one-based.
11886         * TextBox.cs: Select all the text when we get focus.  The TextBox
11887         does this but the RTB does not.
11888
11889 2006-12-04  Chris Toshok  <toshok@ximian.com>
11890
11891         * DataGridTextBoxColumn.cs: remove some spew.
11892
11893         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
11894         but some part of me is saying "it shouldn't be here.."  At any
11895         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
11896         setting the value.
11897
11898 2006-12-04  Chris Toshok  <toshok@ximian.com>
11899
11900         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
11901         to reassign the propertydescriptor.
11902
11903 2006-12-04  Jackson Harper  <jackson@ximian.com>
11904
11905         * TextBoxBase.cs:
11906         * TextControl.cs: Remove some unused variables.  Maybe this will
11907         patch things up between mike and I.
11908         - don't split lines less then one char wide, if the viewport is
11909         that small text won't be visible anyways.
11910         
11911 2006-12-04  Jackson Harper  <jackson@ximian.com>
11912
11913         * TextBoxBase.cs: Default selection length is -1, need to do some
11914         more testing on windows to see when this is used for the property.
11915         - Redid the Lines [] property to that we properly remove soft line
11916         breaks
11917         - added support for preserving carriage returns
11918         -  CanUndo is not a variable like 'is undo enabled' it just returns
11919         true if there is undo operations available.
11920         - AppendText doesn't need to grab the last tag itself anymore,
11921         this happens automatically when we move the cursor.
11922         * TextControl.cs: Add CompoundActions to the undo class. This
11923         allows combining the other operations into one big option.  ie a
11924         paste will combine { delete old, insert new, move cursor }
11925         - Add InsertString undo operation
11926         - New method for deleting multiline text
11927         - Add carriage returns to lines. So we can preserve carriage
11928         returns when text is 'roundtripped'
11929
11930 2006-12-04  Chris Toshok  <toshok@ximian.com>
11931
11932         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
11933         minimum 0.  Fixes the scrollbar exception in bug #80136.
11934
11935 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11936
11937         * MdiClient.cs: 
11938         * MdiWindowManager: Removed unused fields and methods.
11939         
11940 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11941         
11942         * StatusBar.cs: Update all panels when a AutoSize=Contents
11943         panel needs updating.
11944         
11945         * StatusBarPanel.cs: Remove twidth and only use initialize.
11946         Fixes #80031.
11947                 
11948 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11949
11950         * Form.cs: When a form's MdiParent is set add it directly
11951         on top of the z-order in stead of relying on MdiClient's
11952         ActivateChild to do it. Fixes #80135.
11953         
11954         * MdiClient.cs: 
11955         - Remove original_order, mdi_child_list is already doing
11956         the same thing.
11957         - Create mdi_child_list on construction in
11958         stead of first use (avoids a few null checks).
11959
11960         * MenuItem.cs: Use an already existing list of mdi children
11961         to get the correct order of children and remove the other
11962         redundant list.
11963
11964 2006-12-04  Chris Toshok  <toshok@ximian.com>
11965
11966         * PropertyGridView.cs: cached_splitter_location is only used in
11967         !DOUBLEBUFFER code.
11968
11969         * PropertyGrid.cs: implement the ComComponentNameChanged event
11970         using Events, hoping that would fix the warning.  Looks like a
11971         compiler bug instead (#80144).
11972
11973         * PropertyManager.cs: remove unused method.
11974
11975 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
11976
11977         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
11978         include parentesis to fix expression evaluation. Fixes #79634.
11979
11980 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
11981         
11982         * MenuAPI.cs:
11983         - Changes to fix behavior in Menu control, some reported in #80097
11984         and other detected during behavior refactory like a select event
11985         problems.
11986         - Remove unneded "if's" conditions.
11987         - Created an internal to flag when popup is active in control, we need 
11988         it because in .NET you can have menu active but without popup active
11989         when you active menu using popup without visible items.
11990         - Mimic win32 behavior for Select and Popup events.  
11991         - Dont open popup menu when you dont have visible subitems.
11992         - Do nothing when click on disabled menu item.
11993         - Some small changes to follow the coding style guidelines.
11994         - Unselect menu only when another control gives focus. Fixes #80097.
11995         - Remove unused code.
11996         
11997         * MenuItem.cs: internal VisibleItems method to check if menu
11998         theres visible subitems, it will be usefull to fix some 
11999         behavior in Menu control.
12000         
12001 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
12002         
12003         * Timer.cs: Tag property for 2.0 profile.
12004         
12005 2006-12-01  Chris Toshok  <toshok@ximian.com>
12006
12007         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
12008         
12009         * Win32DnD.cs: comment out some unused fields.
12010
12011         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
12012         some unused properties/methods.
12013
12014         * XplatUIX11.cs: fix MousePosition so we override the base class's
12015         property instead of conflicting with it.
12016
12017         * PictureBox.cs: comment out some unused fields
12018
12019         * OSXStructs.cs: make some struct fields public.
12020
12021         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
12022         MousePosition so we override the base class's property instead of
12023         conflicting with it.
12024
12025         * X11Dnd.cs: comment out some unused fields
12026
12027         * X11DesktopColors.cs: fix some struct field visibility to quiet
12028         the compiler.
12029
12030         * X11Dnd.cs: remove some debug code.
12031
12032         * ThemeClearlooks.cs: comment out unused field.
12033
12034         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
12035
12036         * ThemeGtk.cs: comment out some unused pinvokes.
12037
12038         * Timer.cs: remove some unused fields.
12039
12040         * ThemeClearlooks.cs: comment out unused field.
12041
12042         * UpDownBase.cs: comment out unused field.
12043
12044         * DataObject.cs: comment out unused field.
12045
12046         * DataGridBoolColumn.cs: reomve unused field.
12047
12048         * DataGrid.cs: remove unused field.
12049
12050         * Cursor.cs: remove old ToBitmap code.
12051
12052         * ControlPaint.cs: remove unused method.
12053
12054         * ScrollBar.cs: remove unused fields.
12055
12056         * ComboBox.cs: remove unused field, and chain up to
12057         AccessibleObject ctor.
12058
12059         * ListBox.cs: remove unused field.
12060
12061         * ButtonBase.cs: wrap a couple fields in NET_2_0.
12062
12063         * GridEntry.cs: remove unused fields.
12064
12065         * Binding.cs: remove unused fields.
12066
12067         * AxHost.cs: remove unused method.
12068
12069         * ContainerControl.cs: remove unused field.
12070
12071         * ScrollableControl.cs: remove unused fields.
12072
12073 2006-12-01  Chris Toshok  <toshok@ximian.com>
12074
12075         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
12076         the Where/WhereString stuff.  it's easy enough to CWL
12077         Environment.StackTrace.
12078
12079         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
12080         unused private fields.
12081
12082 2006-12-01  Jackson Harper  <jackson@ximian.com>
12083
12084         * TextControl.cs: Do not update the view while inserting multiline
12085         text. If we update the view we might wrap lines, before entering
12086         the new lines, which causes the new line insertion calculations to
12087         be totally fubared.
12088         - Remove an old TODO
12089         - Make debug output a little nicer
12090         
12091 2006-12-01  Chris Toshok  <toshok@ximian.com>
12092
12093         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
12094
12095 2006-12-01  Chris Toshok  <toshok@ximian.com>
12096
12097         [ fix the majority of the CS0108 warnings we've been suppressing ]
12098         
12099         * TreeView.cs: mark BackgroundImageChanged as 'new'.
12100
12101         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
12102         to "LayoutToolBar" to quiet mcs.
12103         
12104         * TabControl.cs: mark our ControlCollection class as 'new'.
12105
12106         * TextBoxBase.cs: mark some events as 'new'.
12107
12108         * Splitter.cs: TabStop is 'new'.
12109
12110         * ControlBindingsCollection.cs: mark a few methods as new since
12111         they change the visibility from protected to public.
12112
12113         * RadioButton.cs: DoubleClick -> base class, and remove unused
12114         HaveDoubleClick.
12115
12116         * MonthCalendar.cs: ImeMode property -> base class, and mark many
12117         events as new.
12118
12119         * NumericUpDown.cs: TextChanged -> base class.
12120
12121         * CheckedListBox.cs: mark our ObjectCollection class as new to
12122         quiet mcs.
12123
12124         * FolderBrowserDialog.cs: make HelpRequest event new and have it
12125         muck with the base class.
12126
12127         * StatusBar.cs: fix some mcs warnings about Update being the same
12128         name as a base class method.
12129
12130         * RichTextBox.cs: mark some events as new, and make them do things
12131         to the base class impl.
12132
12133         * UserControl.cs: mark TextChanged as new, and have it manipulate
12134         base.TextChanged.
12135
12136         * UpDownBase.cs: mark some things new.
12137
12138         * CheckBox.cs: mark DoubleClick "new", and add some text about
12139         what we need to look at.
12140
12141         * Panel.cs: make the events "new", and manipulate the base
12142         version.  these are just here for attributes.
12143
12144         * AccessibleObject.cs: make owner private.
12145
12146         * Control.cs: deal with AccessibleObject.owner being private.
12147         cache our own copy if we need it.
12148
12149         * Button.cs: add "new" to the DoubleClickEvent.
12150
12151         * ListBox.cs: no need to track our own has_focus here.  let
12152         Control.has_focus do it for us.  Also some other work to clear up
12153         warnings about not overriding base class methods of the same name.
12154         
12155         * ComboBox.cs: clear up some warnings about not override base
12156         class methods of the same name.
12157
12158 2006-12-01  Chris Toshok  <toshok@ximian.com>
12159
12160         * Form.cs: flag a few things as "new" to quiet some of the mcs
12161         warnings.
12162
12163         * AxHost.cs: same.
12164
12165         * PrintPreviewDialog.cs: same.
12166
12167         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
12168         now DGV isn't so horrible on the class status page.  also, move
12169         all events to using System.ComponentModel.EventHandlerList.  my
12170         wrists hurt.
12171
12172 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12173
12174         * MdiWindowManager.cs:
12175         - Set form to active mdi child if shown,
12176         and update the active mdi child to the next 
12177         remaining child in the z-order if the form is hidden.
12178
12179         * Form.cs: 
12180         - Track if the form has been visible and if its 
12181         visibility is beeing changed, so that the MdiClient
12182         can properly decide the ActiveMdiChild. The MdiClient 
12183         cannot track this since the form can change visibility 
12184         before MdiClient is created.
12185
12186         * MdiClient.cs:
12187         - Don't activate anything of the parent form is changing
12188         its visibility.
12189         - Rework ActiveMdiChild to only return visible mdi 
12190         children and take into account several other corner 
12191         cases.
12192
12193 2006-12-01  Chris Toshok  <toshok@ximian.com>
12194
12195         * IBindableComponent.cs: new 2.0 interface.
12196
12197 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
12198
12199         * DataGrid.cs: Font for caption area is bold by default.
12200
12201 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
12202
12203         * Menu.cs: Tag property for 2.0.
12204         
12205 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
12206
12207         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
12208         
12209 2006-12-01  Chris Toshok  <toshok@ximian.com>
12210
12211         * TreeView.cs: doh, the Begin* events should be
12212         TreeViewCancelEventHandler.
12213
12214 2006-12-01  Chris Toshok  <toshok@ximian.com>
12215
12216         * Form.cs: Form.ControlCollection already stores off the
12217         form_owner field.  don't access the base class's internal "owner"
12218         field.
12219
12220         * Control.cs: make all the fields in Control.ControlCollection
12221         private.  there's no need for any internal fields here.
12222
12223 2006-12-01  Chris Toshok  <toshok@ximian.com>
12224
12225         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
12226         OnHandleCreated.  Fixes bug #80109.
12227
12228 2006-12-01  Chris Toshok  <toshok@ximian.com>
12229
12230         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
12231         SplitContainer.cs, Control.cs, StatusStrip.cs,
12232         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
12233         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
12234         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
12235         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
12236         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
12237         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
12238         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
12239         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
12240         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
12241         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
12242
12243         do most of the work to convert our code over to use
12244         System.ComponentModel.Component.Events for
12245         adding/removing/dispatching events.
12246
12247
12248 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
12249
12250         * DataGridView.cs: Fix an ArgumentNullException reported 
12251         twice today in IRC.
12252
12253 2006-11-30  Mike Kestner  <mkestner@novell.com>
12254
12255         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
12256         grabbed listbox.  Fixes #80036 and #80101.
12257
12258 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
12259
12260         * Message.cs: Changed ToString() to match MS.
12261         
12262 2006-11-30  Jackson Harper  <jackson@ximian.com>
12263
12264         * TextBoxBase.cs: You can still change the selected text on a read
12265         only textbox.
12266         * TextControl.cs: Lower magic number for wrap calculations. This
12267         lets text get closer to the right (far) edge.
12268
12269 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
12270
12271         * Control.cs: Tweak 2.0 layout properties.
12272         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
12273         * TextRenderer.cs: Add a new overload.
12274         * ToolStrip*: Huge amount of changes and new features.
12275
12276 2006-11-30  Mike Kestner  <mkestner@novell.com>
12277
12278         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
12279         scroll range correct.  Fixes #79994.
12280
12281 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
12282
12283         * MdiWindowManager.cs: Update main form's text when
12284         a form is closed. (fixes #80038)
12285         
12286 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
12287
12288         * ToolBar.cs:
12289         - Fix an regression in ButtonSize.
12290         - Get ImeMode default value change to "Disable".
12291         - Get ShowTooltips default value change to true, default value is 
12292         "false" but after make a test in .NET we get "true" result as default.
12293         
12294 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
12295
12296         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
12297
12298 2006-11-29  Chris Toshok  <toshok@ximian.com>
12299
12300         * XplatUIWin32.cs (GetWindowTransparency): check return value of
12301         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
12302         SetWindowTransparency hasn't been called.
12303
12304 2006-11-29  Chris Toshok  <toshok@ximian.com>
12305
12306         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
12307         if it's supported.
12308         (set_AllowTransparency): reorder things a little so that the
12309         WS_EX_LAYERED style is removed properly.
12310
12311 2006-11-29  Chris Toshok  <toshok@ximian.com>
12312
12313         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
12314         
12315         * Form.cs: only call the XplatUI transparency method (get/set) if
12316         SupportsTransparency says it's supported. Otherwise fallback to
12317         doing nothing (in the set case) or returning the instance field we
12318         cache (in the get case).
12319
12320         * XplatUIStructs.cs: add TransparencySupport flag enum.
12321         
12322         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
12323         change to SupportsTransparency.
12324
12325         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
12326         TransparencySupport.None from SupportsTransparency.
12327
12328         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
12329         TransparencySupport.Set from SupportsTransparency.
12330
12331         * XplatUIWin32.cs: implement GetWindowTransparency calling
12332         GetLayeredWindowAttributes, and implement SupportsTransparency by
12333         checking whether or not both
12334         GetWindowTransparency/SetWindowTransparency are available
12335         entrypoints.  We need to do this since SetWindowTransparency is
12336         available as of win2k, but GetWindowTransparency requires winxp.
12337         yay win32 api.
12338
12339         * XplatUI.cs: Add GetWindowTransparency, and change
12340         SupportsTransparency to allow for either/both Get/Set.
12341
12342 2006-11-29  Chris Toshok  <toshok@ximian.com>
12343
12344         * DataGrid.cs: keep from going into an infinite loop redrawing a
12345         datagrid that has no datasource.  Fixes bug #80033.
12346
12347 2006-11-29  Chris Toshok  <toshok@ximian.com>
12348
12349         * MenuItem.cs: fix the NRE when we assign text (and therefore call
12350         Invalidate) before the mainmenu has been assigned to a control.
12351
12352 2006-11-29  Chris Toshok  <toshok@ximian.com>
12353
12354         * DataGrid.cs: detect when we should be double the double click
12355         row/column autosize stuff, although that codepath has yet to be
12356         written.  part of the work for bug #79891.
12357
12358 2006-11-29  Chris Toshok  <toshok@ximian.com>
12359
12360         * Binding.cs (SetControl): fix unit test.
12361
12362 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12363
12364         * PageSetupDialog.cs: Validate the margins and set them in
12365         PageSettings. 
12366         * NumericTextBox.cs: New class to mimic the behavior of the
12367         textboxes used in the printing dialogs.
12368
12369 2006-11-29  Andreia Gaita  <avidigal@novell.com>
12370         
12371         * Form.cs: Revert previous change (remove call UpdateBounds
12372         from form constructor), because it messes with the handle creation
12373         order, and that one needs lots and lots of love.
12374         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
12375         for valid printer and throw InvalidPrinterException if document
12376         is set but printer not valid), adding a MonoTODO. Once 
12377         handle creation is done properly, we can put this back in.
12378
12379 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
12380
12381         * MenuItem.cs: Create a invalidate method for menu item, to be
12382         calling from set text, it make text changes to imadiate update
12383         on screen. Fixes #80013. 
12384         
12385 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
12386
12387         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
12388         fixes bug #80070 and some other problem on toolbar buttons
12389         layout.
12390
12391 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
12392
12393         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
12394         with dotted brush.      Fixes #79564
12395         
12396 2006-11-28  Andreia Gaita  <avidigal@novell.com>
12397
12398         * Form.cs: Removed call to UpdateBounds on Form
12399         constructor, it was causing a call to CreateHandle
12400         before it was supposed to.
12401         * PrintControllerWithStatusDialog: Applied patch
12402         by Chris Toshok to hide controller when there are
12403         no printers available.
12404         PrintDialog.cs: initialize printer settings to 
12405         null - correct DefaultValues test #5
12406         * PrintPreviewControl.cs: Move PrintController
12407         initialization to GeneratePreview
12408         * PrintPreviewDialog.cs: 
12409         - Remove Preview generation     from Document_set(). It is 
12410         called on OnPaint
12411         - Throw InvalidPrinterException on CreateHandle if
12412         a Document is set but there are no printers or 
12413         printer is not valid.
12414         * ThemeWin32Classic: don't paint PrintPreviewControl
12415         if there is nothing to paint    
12416
12417 2006-11-28  Miguel de Icaza  <miguel@novell.com>
12418
12419         * Form.cs: Add another popular method.
12420
12421         * TabPage.cs: ditto.
12422
12423 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12424
12425         * MenuItem.cs: Fixed a warning.
12426         * InternalWindowManager: Fixed a warning.
12427
12428 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12429
12430         * MenuItem.cs:
12431         - When cloning a menu also clone MdiList and clone the 
12432           window menu items properly (as the forms and menuitems
12433           are kept in an internal hashtable, these need updating 
12434           as well)
12435         - Rewrote the window menu code, menu items are added in the
12436           order the forms were added to their parent, and they are
12437           updated every time the window menu is shown (before the
12438           list was only generated once, in the current order of the
12439           forms, and would never be updated). A checkmark is shown
12440           next to the item corresponding to the active mdi child.
12441
12442 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12443
12444         * XplatUIStructs.cs: 
12445         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
12446         
12447         * XplatUIWin32.cs: 
12448         - Added TME_NONCLIENT to TMEFlags.
12449         - Handles WM_NCMOUSEMOVE in GetMessage to 
12450           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
12451
12452         * MdiWindowManager:
12453         - Now merges mdi child menu to parent menu when maximized.
12454         - Recalculate NC areas of both mdi child and mdi parent. 
12455           Fixes #79757 (4).
12456           on window state and size changes.Fixes #79844 (3).
12457         - Handle WM_NCCALCSIZE to properly calculate borders.
12458
12459         * Form.cs:
12460         - Add/remove to the mdi containers list of mdi children 
12461           in the order they are added.
12462         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
12463           to the maximized mdi child.
12464         
12465         * InternalWindowManager.cs:
12466         - Only execute a click on the control buttons on the mouse up,
12467           not on the mouse down. Show the state of the button 
12468           (was only showing Normal state, never Pressed state). The
12469           pressed button now follows the mouse (if you click the Close 
12470           button and move the mouse over the Maximize button, the 
12471           Maximize button will be shown as pressed). Since Win32 does
12472           not generate WM_NCLBUTTONUP if you release the button outside
12473           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
12474           it as a mouse up.
12475         
12476         * ThemeWin32Classic.cs:
12477         - Draw a missing border around mdi child forms. Fixes #79844 (2).
12478
12479         * MdiClient.cs:
12480         - Added a list of forms which contains the order the forms are
12481           added to the mdi parent.
12482         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
12483         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
12484         - If the active form changes set the scrollbars to the top
12485           of the Z order, otherwise the form could hide them.
12486         - Scrollbars are now sized according to ClientSize, not 
12487           to Size, and they take into account the other scrollbar
12488           to determine maximum.
12489         
12490 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
12491         
12492         * XplatUI.cs:
12493         * XplatUIDriver.cs:
12494         * XplatUIX11.cs:
12495         * XplatUIWin32.cs:
12496         * XplatUIOSX.cs:
12497         - Added RequestAdditionalWM_NCMessages for windows to 
12498           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
12499           Currently only implemented in XplatUIWin32.
12500
12501 2006-11-27  Chris Toshok  <toshok@ximian.com>
12502
12503         * Hwnd.cs: only add the hwnd to the windows hash in
12504         set_WholeWindow and set_ClientWindow if whole_window/client_window
12505         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
12506
12507 2006-11-27  Mike Kestner  <mkestner@novell.com>
12508
12509         * ComboBox.cs: remove redundant OnDropDown call.  It is called
12510         from the ComboListBox.ShowWindow code. Fixes #79969.
12511
12512 2006-11-27  Chris Toshok  <toshok@ximian.com>
12513
12514         * Hwnd.cs: remove the setters for ExposePending and
12515         NCExposePending - noone uses them.
12516
12517 2006-11-27  Jackson Harper  <jackson@ximian.com>
12518
12519         * TextControl.cs: new param for ReplaceSelection which determines
12520         whether we select the new selection, or set the cursor to the end
12521         of the new selection.
12522         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
12523         pasting, select the new text.
12524         * RichTextBox.cs: Use new param for ReplaceSelection.
12525
12526 2006-11-27  Jackson Harper  <jackson@ximian.com>
12527
12528         * TextBoxBase.cs: Set the selection to the caret after the caret
12529         is moved, otherwise they get out of sync.
12530
12531 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
12532
12533         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
12534         it fixes #80015
12535
12536 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
12537
12538         * ThemeWin32Classic.cs: 
12539         - Fix toolbar drop down arrow position.
12540         - Fix drop down appearance when ToolBar.Appearance is normal,
12541         it fixes #80018.
12542         
12543 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
12544
12545         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
12546         * Control.cs: Same.
12547         * UpDownBase.cs: Same.
12548         * ButtonBase.cs: Same.
12549         * ScrollBar.cs: Same.
12550         * TrackBar.cs: Same.
12551         * PictureBox.cs: Same.
12552         * UserControl.cs: Same.
12553         * Label.cs: Same.
12554         * ListControl.cs: Same.
12555         * TextBoxBase.cs: Same.
12556         * ListView.cs: Same.
12557         * RichTextBox.cs: Same.
12558         * TreeView.cs: Same.
12559
12560 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
12561
12562         * PrintDialog.cs:
12563         - Text label for where 
12564         - Text label comment was not shown
12565
12566 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
12567
12568         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
12569
12570 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12571
12572         * InternalWindowManager.cs: 
12573         - Handle WM_PARENTNOTIFY to activate the form
12574         if any child control is clicked.
12575         - The form is only sizable if not minimized.
12576
12577         * MdiWindowManager.cs:
12578         - Save the IconicBounds if the form is moved.
12579         - Rework SetWindowState, now the window bounds 
12580         are stored only if the old window state is Normal.
12581         
12582         * MdiClient.cs:
12583         - In SetWindowStates store the old window state if 
12584         the window is maximized and restore window state if
12585         the window looses focus.
12586         - Don't handle any scrollbar value changes if 
12587         initializing the scroll bars. Fixes #79771.
12588         - Reworked ArrangeIconicWindows. Current algorithm
12589         tests bounds agains all other minimized windows, if
12590         any intersections create new bounds (going left to 
12591         right, bottom to top) and then test again. When 
12592         successful the bounds are saved and never computed
12593         again. Fixes #79774.
12594
12595 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12596
12597         * InternalWindowManager.cs: Added HandleTitleBarUp.
12598
12599 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12600
12601         * NumericUpDown.cs: In .NET 1.1, user entered text is still
12602         hexadecimal in ParseUserEdit.
12603
12604         
12605 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12606
12607         * MdiWindowManager.cs: 
12608         - Handle a click on the form's icon to show the 
12609         system menu (when maximized). Fixes #79775.
12610         - Change the existing click handler for the form's
12611         icon when not maximized to show on MouseUp.
12612         Fixes #79776.
12613
12614         * Form.cs: In OnResize only layout the mdi child's
12615         parent if it actually has a parent. Might not if
12616         the window is closing.
12617
12618
12619 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12620
12621         * MdiClient.cs: Ignore active MDI client for text of parent, if
12622         child has no text set.
12623
12624 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12625
12626         * ToolBar.cs: Fixed ToString to match MS.
12627
12628 2006-11-22  Andreia Gaita  <avidigal@novell.com>
12629
12630         * NumericUpDown: 
12631         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
12632         update inner values on set. Fixes #79966.
12633         - Override OnLostFocus to update value on NET 2. Fixes #79950.
12634         - Fix hexadecimal parsing.
12635         
12636         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
12637         parent. Fixes #79957
12638
12639 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12640
12641         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
12642         the actual size has to be queried, since if height /
12643         width is negative Win32 changes it to 0. 
12644         Fixes #79999 on Windows.
12645         
12646         * XplatUIX11.cs: Set height / width to 0 if negative
12647         in SetWindowPos. Fixes #79999 on Linux.
12648         
12649 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
12650
12651         * ThemeWin32Classic.cs: Fix text redenring when button is
12652         pressed.
12653
12654 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
12655
12656         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
12657         and later navigate by mouse. Fixes #79528.
12658
12659 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
12660
12661         * ToolBar.cs: Set default value for TabStop to false in
12662         constructor, it fixes remaining behavior of bug #79863.
12663
12664 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12665
12666         * MdiWindowManager.cs:
12667         * InternalWindowManager.cs:
12668         - Moved a few methods specific to Mdi from 
12669         InternalWindowManager to MdiWindowManager.
12670         Fixes #79996.
12671         
12672 2006-11-21  Chris Toshok  <toshok@ximian.com>
12673
12674         * XplatUIOSX.cs: stub out InvalidateNC.
12675
12676         * XplatUIWin32.cs: implement InvalidateNC using the call I found
12677         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
12678
12679         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
12680
12681         * XplatUIDriver.cs: add InvalidateNC abstract method.
12682
12683         * XplatUI.cs: add InvalidateNC.
12684
12685 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
12686
12687         * ToolBar.cs: Invalidate complete button area when pressed status 
12688         was changed.
12689         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
12690         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
12691         by 1 when button is pressed.
12692
12693 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12694
12695         * ToolButton.cs: Invalidate middle of DropDown button when
12696         ToolBar theres DropDownArrows.
12697         * ThemeWin32Classic.cs: Change position of DropDown arrow and
12698         fix DropDown drawing operations.
12699
12700 2006-11-20  Chris Toshok  <toshok@ximian.com>
12701
12702         * NativeWindow.cs: fix the formatting of functions ('{' on the
12703         following line), and enable the thread exception dialog.
12704
12705         * Application.cs: remove the duplicate exception catching from
12706         here.
12707
12708 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12709
12710         * Toolbar.cs: Triggers button click event when click on icon
12711         of dropdown ToolBarButton. Fixes #79912.
12712         
12713 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12714
12715         * Theme.cs:
12716         * ThemeWin32Classic.cs:
12717         - Added a property WindowBorderFont to enable themeing
12718           of mdi child windows' Text.
12719           
12720 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12721
12722         * InternalWindowManager.cs:
12723         * Form.cs:
12724         * MdiClient.cs:
12725         * MdiWindowManager.cs: 
12726         - If mdi child is maximized, set mdi parent's
12727           text to "Parent - [Child]". Fixes #79770.
12728         - If there is any maximized mdi child windows, only the active 
12729           window (and any new windows) is maximized, the rest are normal.
12730         - On a WindowState change only save mdi child's window bounds 
12731           if the old window state was normal. Fixes #79774.
12732         - The scroll bars are now calculated on hopefully all
12733           necessary events. Fixed #79771 / #79844->6 / #79906.
12734         - MdiClient.SizeScrollBars() now takes into account docked 
12735           controls in the parent when calculating available space.
12736         - InternalWindowManager now always repaints the entire title
12737           area. Fixes #79844->1/4/5.
12738         - Added RequestNCRecalc on mdi child windowstate changes.
12739           Fixes #79772.
12740
12741 2006-11-20  Mike Kestner  <mkestner@novell.com>
12742
12743         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
12744         in the MouseUp handler of the listbox and move the return handling
12745         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
12746
12747 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12748
12749         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
12750
12751 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
12752
12753         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
12754           working in 1.2.x anymore. So, updated.
12755
12756 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
12757
12758         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
12759         NumberGroupSeparator of current culture instead of assuming en-US.
12760         Fixed bug #79967.
12761
12762 2006-11-17  Mike Kestner  <mkestner@novell.com>
12763
12764         * Control.cs: Add the concept of implicit bounds setting so that
12765         dock/undock round trips preserve explicitly set size/locations.
12766         Fixes #79313.
12767
12768 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
12769
12770         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
12771           can't handle those filters. (Fixes bug #79961)
12772
12773 2006-11-17  Chris Toshok  <toshok@ximian.com>
12774
12775         [ fixes the exit/crashes associated with #79835.  it's clearly
12776         suboptimal though, we need to figure out a better way to solve
12777         this. ]
12778         
12779         * PrintPreviewControl.cs: deal with the new invalid printer
12780         exceptions.
12781
12782         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
12783         and return false (so CommonDialog.ShowDialog doesn't actually show
12784         the form.)
12785
12786         * PrintDialog.cs: enable/disable the Ok button depending on
12787         whether or not the printer is valid.
12788
12789         * CommonDialog.cs (ShowDialog): only actually show the form if
12790         RunDialog returns true.
12791
12792 2006-11-17  Jackson Harper  <jackson@ximian.com>
12793
12794         * TextControl.cs: When soft splitting a line, mark it as a soft
12795         split line. Also carry over the current line break to the next
12796         line.
12797
12798 2006-11-17  Chris Toshok  <toshok@ximian.com>
12799
12800         * XplatUIX11.cs: when scrolling a window with an invalid area, we
12801         only want to shift the part of the invalid area that overlaps the
12802         area we're scrolling.  we also don't want to clear the invalid
12803         area unless the invalid area was entirely contained within the
12804         scrolling area.
12805
12806 2006-11-16  Chris Toshok  <toshok@ximian.com>
12807
12808         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
12809         also make sure to free the memory returned by XGetWindowProperty
12810         in GetText().
12811
12812         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
12813
12814 2006-11-16  Chris Toshok  <toshok@ximian.com>
12815
12816         * XplatUI.cs: add a new super secret way to get at the totally
12817         unsupported X11 backend.
12818
12819 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
12820
12821         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
12822
12823 2006-11-16  Jackson Harper  <jackson@ximian.com>
12824
12825         * TreeView.cs: Allow more explicit setting of top node position
12826         for scrollbars. Slower algo, but more accurate.
12827         - CollapseAll should maintain the current top node.
12828         * TextBoxBase.cs: When positioning the caret, use the line, pos
12829         method, since the x, y method does not grab the correct tag, and
12830         the caret height never gets set correctly. (Maybe I should just do
12831         away with the caret having its own height, and always use the
12832         carets current tag for height).
12833
12834 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
12835
12836         [Fixes 79778, 79923]
12837
12838         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
12839         Parent to the FosterParent instead.
12840
12841 2006-11-16  Jackson Harper  <jackson@ximian.com>
12842
12843         * TreeView.cs: Need to recalc the topnode when we expand or
12844         collapse. The scrolling methods can't handle this on their own,
12845         since they use differences between the last scroll position, and
12846         those difference get completely messed up since we are expanding
12847         nodes.  This problem should probably be fixed in the scrolling
12848         methods, so they can figure out exactly where they are, but this
12849         will slow things down a little.
12850         * ThemeWin32Classic.cs: Special case for groupboxes with empty
12851         strings, makes nunit-gui look a lot nicer.
12852
12853 2006-11-16  Chris Toshok  <toshok@ximian.com>
12854
12855         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
12856         the broken multithreaded event handling we have in here.  File
12857         this entry under "Why we should move to the new X11 backend".
12858
12859         Any thread can make it into UpdateMessageQueue, which gets events
12860         from the X socket - some of which could belong to hwnds being
12861         managed by a different thread.  We can also have multiple threads
12862         in UpdateMessageQueue at the same time, with each one reading from
12863         the X socket.  This leads to many problems, with the following
12864         solutions:
12865
12866         We can't use hwnd.Queue.Enqueue anywhere in here and must use
12867         EnqueueLocked.
12868
12869         The MotionNotify compression we do can't work across threads
12870         (without locking the entire queue, perhaps) since we call
12871         hwnd.Queue.Peek, so we just punt and don't compress motion events
12872         unless the owning thread is the one which got the X event.
12873
12874         ConfigureNotify is another fun one, since it modifies the hwnd's
12875         bounds and then enqueues the event.  We add a lock to Hwnd which
12876         is held when setting configure_pending to true (and enqueuing the
12877         event).
12878
12879         There is a race wrt the wake socket.  we need to make sure that
12880         only 1 thread is waiting on that socket, or else a thread could
12881         sleep waiting for data that never comes.  It's difficult (but not
12882         impossible) to make happen, because it seems to require something
12883         like the following:
12884
12885             1. Thread 1 polls on wake_receive
12886         
12887             2. poll returns saying there's data to be read on
12888                wake_receive.
12889         
12890             3. Thread 2 polls on wake_receive and immediately returns
12891                saying there's data to be read.
12892
12893             4. Thread 2 reads the wakeup byte from wake_receive
12894
12895             5. Thread 1 attempts to read the wakeup byte from
12896                wake_receive.
12897
12898             6. Thread 2 exits (due to a form closing, perhaps).
12899
12900             7. Thread 1 blocks forever.
12901         
12902         Fun, eh?
12903
12904         Fixing the Expose handling isn't done yet, and the races inherent
12905         in that piece of code are responsible for the drawing mistakes you
12906         see when generating expose events in a MT app (like NPlot).  This
12907         one is the likely to be the hardest to bandaid, and it doesn't
12908         appear to cause anything but drawing problems.  The other issues
12909         caused apps to exit or hang.
12910
12911         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
12912         called from a different thread than the one that should be calling
12913         these functions.
12914
12915         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
12916
12917 2006-11-15  Chris Toshok  <toshok@ximian.com>
12918
12919         * Application.cs: null out the context's MainForm when we exit
12920         RunLoop.  Fixes a newly checked in unit test as well as the last
12921         ODE from bug #79933.
12922
12923 2006-11-15  Chris Toshok  <toshok@ximian.com>
12924
12925         * Form.cs (set_Owner): allow a null value so we can clear the
12926         form's owner.
12927         (Dispose): set all our owned_form's Owner properties to null, and
12928         clear the owned_forms collection.
12929         (WM_CLOSE): clean up this a little bit.. still not right though.
12930
12931         * ApplicationContext.cs: OnMainFormClosed should only call
12932         ExitThreadCore if the main form isn't recreating.  Fixes unit
12933         test.
12934
12935 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12936
12937         [Fixes 78346]
12938
12939         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
12940
12941 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12942
12943         [Fixes 79433]
12944
12945         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
12946         keep popup window types from stealing focus from the main form
12947         on Windows.
12948
12949         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
12950
12951         * MenuAPI.cs: Set above flag to true.
12952
12953 2006-11-15  Chris Toshok  <toshok@ximian.com>
12954
12955         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
12956         the button being released is not in wParam.
12957
12958 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12959
12960         * Form.cs: Add the released button to MouseEventArgs.Button
12961         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
12962         on Win32.
12963
12964 2006-11-15  Chris Toshok  <toshok@ximian.com>
12965
12966         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
12967         GetText().  untested because it's unused in our implementation.
12968         Control.Text always caches the text, even if
12969         ControlStyles.CacheText is not set.
12970
12971         fixes bug #79939.
12972
12973 2006-11-15  Chris Toshok  <toshok@ximian.com>
12974
12975         [ fixes #79933 ]
12976         
12977         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
12978         message.  no hiding, no disposing.
12979
12980         in the WM_CLOSE handler, hide the form if it's modal.
12981
12982 2006-11-15  Chris Toshok  <toshok@ximian.com>
12983
12984         * XplatUIX11.cs: use AddExpose instead of sending a message.
12985         fixes textbox border drawing.
12986
12987 2006-11-15  Chris Toshok  <toshok@ximian.com>
12988
12989         * PropertyGridView.cs: keep from crashing on mouse move/down when
12990         the property grid is empty.
12991
12992 2006-11-14  Jackson Harper  <jackson@ximian.com>
12993
12994         * TextControl.cs: Make PageUp and PageDown more like the MS
12995         versions.
12996         * TextBoxBase.cs: When we set the text property position the
12997         cursor at the beginning of the document.
12998
12999 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13000
13001         * Form.cs: if a mdi child's WindowState has changed
13002         before it's creation, it would display wrong control
13003         buttons.
13004         
13005 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
13006
13007         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
13008           (Fixes bug #79927)
13009
13010 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13011
13012         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
13013         the window gets to paint its borders even if the window is
13014         getting smaller.
13015         
13016         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
13017         otherwise the old control buttons would still be painted 
13018         if the window gets bigger.
13019         
13020         * PaintEventArgs.cs: add an internal method so that the clip 
13021         rectangle can be changed.
13022         
13023 2006-11-13  Chris Toshok  <toshok@ximian.com>
13024
13025         [ fixes bug #79745 ]
13026         
13027         * NotifyIcon.cs: lots of cleanup.
13028
13029         * X11Structs.cs: add an enum for XEMBED messages.
13030
13031         * XplatUIX11.cs: reindent one of the giant switch statements, it
13032         was taking up an additional tab stop, and this file is already way
13033         too wide for my laptop's screen.
13034
13035         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
13036         we get it, resize the hwnd to the WMNormalHints max_width/height.
13037
13038 2006-11-13  Jackson Harper  <jackson@ximian.com>
13039
13040         * TextBoxBase.cs: Compute the value changes for the mouse wheel
13041         teh simple way.
13042
13043 2006-11-13  Chris Toshok  <toshok@ximian.com>
13044
13045         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
13046         #79898.  force a reference to the Region to stick around so the
13047         unmanaged object isn't collected (rendering our handle in the MSG
13048         stale).
13049
13050 2006-11-13  Chris Toshok  <toshok@ximian.com>
13051
13052         * XplatUIX11.cs: fix #79917 for window managers which support
13053
13054         using XStoreName on the raw utf8, and we need to convert to
13055         COMPOUND_TEXT if it's non-latin1.
13056
13057 2006-11-13  Chris Toshok  <toshok@ximian.com>
13058
13059         * Form.cs (set_DialogResult): we need to set closing to false if
13060         we're setting our result to None.  fixes bug #79908.
13061
13062 2006-11-13  Jackson Harper  <jackson@ximian.com>
13063
13064         * TextControl.cs: When formatting text, compute the adjusted tag
13065         lengths correctly, using FindTag for the end tag instead of trying
13066         to figure it out outselves.
13067         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
13068         the item, ItemHeight doesn't work, because trees with large
13069         imagelists use those for their height
13070         * TreeView.cs: ActualItemHeight factors in the image height
13071         - compute left edge of checkboxes correctly
13072         - when expanding/collapsing move the bottom down one pixel, so we
13073         aren't moving part of the node
13074
13075 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13076
13077         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
13078         stack in PaintEventStart so that it won't get disposed by the gc
13079         before reaching PaintEventEnd.
13080
13081 2006-11-13  Jackson Harper  <jackson@ximian.com>
13082
13083         * TextBoxBase.cs: Don't select the word if we are on a line with
13084         no text.
13085         - We don't need to position the caret on mouse up, since the mouse
13086         move handler should be doing this
13087         - When double clicking a blank line, the caret is advanced to the
13088         next line.
13089
13090 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
13091
13092         * TreeNodeCollection.cs: Avoid duplicating indexer code.
13093
13094 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
13095
13096         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
13097         Fixes part of bug #79910.
13098
13099 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
13100
13101         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
13102           (bug #79903). Some minor string updates to match ms.
13103
13104 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
13105
13106         * FileDialog.cs: Don't add an extension if the filename
13107           already ends with that extension.
13108
13109 2006-11-10  Jackson Harper  <jackson@ximian.com>
13110
13111         * TreeView.cs: Use the currently highlighted node for the
13112         BeforeSelect event.
13113         * TextBoxBase.cs: There is no need to expand selection on
13114         MouseMove.
13115         - CanUndo means 'is there any undo operations', not 'is undo
13116         allowed on this textcontrol. Fixed ClearUndo unit test.
13117
13118 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
13119
13120         * Button.cs: only perform click when button is Selectable (so as 
13121         not to activate default buttons when they're disabled)
13122         
13123         * Control.cs: Rewrite of the SelectNextControl and related 
13124         methods. HandleClick now selects next control if the current one
13125         is being disabled.
13126         
13127         * Form.cs: OnActivated selects next active control only if Load 
13128         has already occurred. If Load hasn't run, there's no point in 
13129         selecting here, Load might change the state of controls.
13130         
13131         * FocusTest.cs: Tests marked as working again for these fixes
13132
13133 2006-11-10  Chris Toshok  <toshok@ximian.com>
13134
13135         * XplatUIX11.cs: a couple of fixes.
13136
13137         - use XInternAtoms with almost all the atoms we need to register,
13138         instead of many, many calls to XInternAtom.  should help a bit on
13139         startup time, at the expense of making the code look a little
13140         worse.
13141
13142         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
13143         isn't reparented (which seems to be a clue that we're running fon
13144         compiz) and they have an Owner form.  This fixes the tool windows
13145         in paint.net when running under compiz.
13146
13147         - when setting the opacity of a window, support both the case
13148         where the window has been reparented and also when it hasn't been.
13149         Since compiz/beryl doesn't seem to reparent windows, and these are
13150         the only window managers which support translucency, I'm not sure
13151         why we need the hwnd.reparented case at all.. but leave it in.
13152         now we get translucent windows in paint.net under compiz/beryl.
13153
13154 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
13155
13156         * FileDialog.cs: Always return the value for FilterIndex that
13157           was set. Internally convert it to values that make sense.
13158
13159 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
13160         
13161         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
13162
13163 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
13164
13165         * Toolbar.cs: Change default value of DropDownArrows to true, the 
13166         signature still using false to make it compatible with MS but the 
13167         initial value is true. Fixes #79855.
13168
13169 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
13170
13171         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
13172           only available on Linux.
13173
13174 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
13175
13176         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
13177         reduce number of calls to redraw method during toolbar creation.
13178
13179 2006-11-09  Mike Kestner  <mkestner@novell.com>
13180
13181         * ListView.cs : raise SelectedIndexChanged when an item is selected
13182         programmatically via the Item.Selected property.  Gert's nice 
13183         ListViewSelectedIndexChanged test fixture now runs clean.
13184
13185 2006-11-09  Mike Kestner  <mkestner@novell.com>
13186
13187         * ListView.cs : raise SelectedIndexChanged when a selected item is
13188         removed from the item collection using Remove or RemoveAt.
13189
13190 2006-11-09  Mike Kestner  <mkestner@novell.com>
13191
13192         * ListView.cs : raise SelectedIndexChanged once per selected item
13193         for compat with MS.  Fixes #79849+.
13194
13195 2006-11-09  Chris Toshok  <toshok@ximian.com>
13196
13197         * TabControl.cs: initialize row_count to 0, and set it to 1 when
13198         we need to (if we have any tab pages).  Fixes unit test.
13199
13200 2006-11-09  Chris Toshok  <toshok@ximian.com>
13201
13202         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
13203         width is 0, not 3.  Fixes a unit test.
13204
13205 2006-11-09  Mike Kestner  <mkestner@novell.com>
13206
13207         * ListView.cs : use Implicit scrollbars so that focus isn't 
13208         stolen from the listview when they are clicked. Fixes #79850.
13209
13210 2006-11-09  Chris Toshok  <toshok@ximian.com>
13211
13212         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
13213         have a root item.  Fixes #79879.
13214
13215 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
13216
13217         * FileDialog.cs:
13218           - Fix ToString ()
13219           - An ArgumentException is now thrown if a wrong filter
13220             is applied (matches ms). The previous filter doesn't change
13221             anymore if an exception is thrown.
13222           - Changing the FileName property also affects FileNames
13223         * ColorDialog.cs: The length of the CustomColors array is always
13224           16. It doesn't matter if we use a smaller array or null to update
13225           or change the custom colors property.
13226         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
13227           for RootFolder if we get a undefined value.
13228
13229 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13230
13231         * StatusBarPanel.cs: 
13232         - Width is set to MinWidth if Width is smaller than
13233         MinWidth. Fixes #79842.
13234         - MinWidth now always overrides Width (MSDN says MinWidth
13235         is set to Width when AutoSize = None, but they do not 
13236         behave like that).
13237         - Style has now the the correct default value.
13238         
13239 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13240  
13241         * TrackBar.cs: 
13242         - The control is completely invalidated on 
13243         Got/LostFocus to draw the focus rectangle correctly.
13244         - When AutoSize then height is always 45 (width for 
13245         vertical controls).
13246         
13247         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
13248         on the mouse when moved and it doesn't move when grabbed
13249         until the mouse moves as well. Also fixed some wrong 
13250         calculations when clicking on the thumb (control thought
13251         click was outside of thumb and didn't grab it).
13252         Fixes some of the issues in #79718.
13253
13254 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
13255
13256         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
13257
13258 2006-11-08  Chris Toshok  <toshok@ximian.com>
13259
13260         * PropertyGridView.cs: only call ToggleValue if the item is not
13261         readonly.
13262
13263 2006-11-08  Jackson Harper  <jackson@ximian.com>
13264
13265         * TextBoxBase.cs: The RichTextBox and textbox have very different
13266         word selection methods.  Implement the textbox's simple word
13267         selection here, and let the RichTextBox override and provide it's
13268         own.
13269         - Don't do extra selection on mouseup
13270         * RichTextBox.cs: Use the documents word selection algorithm, I
13271         think ideally, this function will be pulled into the
13272         RichTextBox.cs code someday.
13273
13274 2006-11-08  Chris Toshok  <toshok@ximian.com>
13275
13276         * RootGridEntry.cs: new class to represent GridItemType.Root.
13277
13278         * CategoryGridEntry.cs: reformat, and add boilerplate.
13279         
13280         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
13281         returns the UI parent anyway, and we need special handling to
13282         implement the GetTarget method in the face of it.  Also, implement
13283         Select().
13284
13285         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
13286         a root grid item, and use that instead of PropertyGrid.grid_items.
13287         Also, make use of TypeConverters (and add limitted support for
13288         ICustomTypeDescriptors) when initially populating the grid.
13289         Arrays now show up more or less properly.
13290
13291 2006-11-08  Chris Toshok  <toshok@ximian.com>
13292
13293         * Application.cs: set the modal dialog to non modal after we close
13294         it.  Fixes bug #79866.
13295
13296 2006-11-08  Jackson Harper  <jackson@ximian.com>
13297
13298         * TextControl.cs: When combining lines carry over the line end
13299         style from the end line.
13300         - Invalidate the selected area when setting it, if it is visible.
13301         * TextBoxBase.cs: Only rich text box can do full line selects.
13302         - Make sure to set the cursor position when there is a click,
13303         otherwise two clicks in separate areas could cause a large chunk
13304         to be selected.
13305
13306 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13307
13308         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
13309         Fixes #79863.
13310
13311 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13312
13313         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
13314         time. Remove tooltips when ToolButton click events.  Fixes #79856.
13315
13316 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13317
13318         * MenuAPI.cs: Ignore right click for menu actions and fixes
13319         menu border when clicked.  Fixes #79846.
13320
13321 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13322
13323         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
13324         MouseState after create wParam for message, this fixes mouse button 
13325         equal none in mouse up events.
13326         
13327 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
13328
13329         * Control.cs : Focus() now calls Select to set the Container's
13330         Active Control and to give it focus. To avoid infinite recursion
13331         (because ActiveControl also calls Focus at one point), a check 
13332         is made in Focus with the help of a new internal variable
13333         is_focusing.
13334
13335 2006-11-07  Mike Kestner  <mkestner@novell.com>
13336
13337         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
13338         if there's a selection.  Fixes #79849.
13339
13340 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
13341
13342         * PropertyGrid.cs: Avoid fixed height of help description label.
13343         Fixes part of bug #79829.
13344
13345 2006-11-07  Chris Toshok  <toshok@ximian.com>
13346
13347         * XplatUIX11.cs: fix #79790 again, by using the
13348         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
13349
13350 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13351
13352         * ToolBar.cs: Fix left click checking.
13353
13354 2006-11-07  Chris Toshok  <toshok@ximian.com>
13355
13356         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
13357
13358 2006-11-07  Chris Toshok  <toshok@ximian.com>
13359
13360         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
13361         PropertyManager unit tests.
13362
13363         * PropertyManager.cs: make property_name internal.
13364
13365 2006-11-07  Chris Toshok  <toshok@ximian.com>
13366
13367         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
13368         pass a unit test.  Also, don't set image_index to anything in
13369         response to setting the ImageList property.
13370
13371 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13372
13373         * ToolBar.cs: Ignore click events when mouse button is not a
13374         left button, only accepts other button for dropdown menus.  
13375         Fixes #79854.
13376
13377 2006-11-07  Chris Toshok  <toshok@ximian.com>
13378
13379         * DataGrid.cs: make the back and parent row buttons a little less
13380         ugly.
13381
13382 2006-11-07  Jackson Harper  <jackson@ximian.com>
13383
13384         * TextBoxBase.cs: When converting to Text don't put line breaks in
13385         for soft line breaks.
13386         * TextControl.cs: There is an initial "fake" line in the document,
13387         this is now a soft break line, so that an extra line feed doesn't
13388         get added to the end of documents.
13389
13390 2006-11-07  Chris Toshok  <toshok@ximian.com>
13391
13392         [ fix bug #79778 ]
13393         
13394         * CurrencyManager.cs: if the list is readonly, don't bother
13395         checking if IBindingList.AllowNew is true.
13396
13397         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
13398         for non-DataRowView datasources..  or rather, make it not crash.
13399         (DataGridPaintRelationRow): make sure we limit the row painting to
13400         the area not covered by the row header, and make our cell width at
13401         least large enough to cover the relation area.  This allows grids
13402         that have relations but no rows to render correctly.
13403         (DataGridPaintRowContents): same type of changes here.
13404         (SetDataSource): move back to always calling
13405         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
13406         navigating back through relations.
13407         (HitTest): handle the case where we have no cells but have
13408         relations.  Right now we generate a hit in cell 0 of whatever the
13409         row is, not sure if this is strictly correct, but it works for our
13410         purposes.
13411         
13412         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
13413         bother doing anything.
13414
13415 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
13416
13417         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
13418         early version of StatusStrip.  Not responsible for eaten
13419         application or firstborn children.
13420
13421 2006-11-06  Chris Toshok  <toshok@ximian.com>
13422
13423         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
13424         call GetTabRect with a -1 index.  Fixes #79847.
13425
13426 2006-11-06  Jackson Harper  <jackson@ximian.com>
13427
13428         * TreeNodeCollection.cs: Update scrollbars after clearing.
13429
13430 2006-11-06  Chris Toshok  <toshok@ximian.com>
13431
13432         * NumericUpDown.cs: fix the ToString method for some unit test
13433         love.
13434
13435 2006-11-06  Chris Toshok  <toshok@ximian.com>
13436
13437         * PropertyGrid.cs:
13438         - set the initial SelectedGridItem if we can.
13439
13440         - Exclude non-mergable properties only if we're merging > 1
13441         object.  Merging 1 object isn't really merging, obviously.
13442
13443         - Handle PropertySort.NoSort just like Alphabetical, which is
13444         wrong of course, but at least gets things on the screen.
13445         
13446         * PropertyGridView.cs:
13447         - Add method "FindFirstItem" which finds the first property grid
13448         item, so we can select it by default.
13449
13450         - make use of GridEntry.CanResetValue.
13451
13452         - Don't call RedrawBelowItemOnExpansion here anymore, the
13453         individual GridEntry's will do that.
13454
13455         - Remove the ITypeDescriptorContextImpl internal class.
13456         
13457         * GridEntry.cs:
13458         - this class needs to implement ITypeDescriptorContext, as it's
13459         what MS's PropertyDescriptorGridEntry does, which means we can
13460         remove the ITypeDescriptorContextImpl internal class from
13461         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
13462
13463         - keep a reference to our PropertyGridView, and move the call to
13464         RedrawBelowItemOnExpansion here from PGV.  This means
13465         programmaticly setting Expanded actually does something visible.
13466
13467         - add a CanResetValue() function which takes into account our
13468         possibly multiple "selected_objects" in the merged case.  Shifting
13469         PropertyGridView to use this method fixes another unreported
13470         crasher found running the test for #79829.
13471
13472         - when Top or Bounds is updated, make sure the PropertyGridTextBox
13473         is updated to reflect this.
13474
13475         * CategoryGridEntry.cs: the ctor takes the PGV now.
13476         
13477 2006-11-06  Jackson Harper  <jackson@ximian.com>
13478
13479         * TextControl.cs: These are 1 based.
13480         * TextBoxBase.cs: When setting the selected text, don't change the
13481         selected text tags, this is done by ReplaceText, just position the
13482         cursor at the end of the new text.
13483
13484 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
13485
13486         * ListView.cs: Allow label edit only when, when LabelEdit is
13487           set to true.
13488
13489 2006-11-06  Jackson Harper  <jackson@ximian.com>
13490
13491         * TextControl.cs: If a suitable wrapping position isn't found,
13492         just wrap right in the middle of a word.
13493
13494 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
13495
13496         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
13497           bug #79820.
13498
13499 2006-11-06  Jackson Harper  <jackson@ximian.com>
13500
13501         * TreeView.cs: Can't use the VisibleCount property when setting
13502         scrollbar heights, because this doesn't take into account whether
13503         or not the horz scrollbar just came visible.
13504
13505 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
13506
13507         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
13508         activated.  Fixes #79369, #79832.
13509
13510 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
13511
13512         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
13513           had to remove support for links that point to a directory. FileInfo
13514           returns no usefull information (means, the directory they point to)
13515           for such links. Replaced some empty string ("") with String.Empty.
13516
13517 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
13518
13519         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
13520         NullReferenceException when attempting to remove node that is not in
13521         collection. Throw NullReferenceException when null is passed to 
13522         Remove. Allow first element of the collection to be removed. Fixes
13523         bug #79831.  In GetEnumerator ().Current return null if positioned 
13524         before the first element of the collection. In GetEnumerator ().Reset,
13525         position before first element of the collection.
13526
13527 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
13528
13529         * PropertyGrid.cs: To match MS, remove default title and description
13530         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
13531         buttons.
13532
13533 2006-11-04  Chris Toshok  <toshok@ximian.com>
13534
13535         * Theme.cs: add a Clamp method, just for kicks.
13536
13537         * ThemeWin32Classic.cs: clamp all color components to [0..255].
13538
13539 2006-11-04  Chris Toshok  <toshok@ximian.com>
13540
13541         * Form.cs: if the form isn't visible, Close() does nothing.
13542
13543 2006-11-03  Chris Toshok  <toshok@ximian.com>
13544
13545         * Form.cs (Close): if the form is modal, don't Dispose of it, only
13546         Hide it.
13547         (WndProc): don't Dispose after handling the WM_CLOSE message.
13548
13549         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
13550         them as such, instead of using casts from Control to Form.  Also,
13551         don't Dispose of the modal dialog when we fall out of the loop -
13552         Close() it instead.
13553
13554         fixes bug #79813.
13555
13556 2006-11-03  Chris Toshok  <toshok@ximian.com>
13557
13558         * Control.cs (Dispose): only go through the dispose thing if we're
13559         @disposing, and we haven't already been disposed.  Fixes bug
13560         #79814.
13561
13562         * Form.cs: no reason to call "base.Dispose()" here instead of
13563         "Dispose()".
13564
13565 2006-11-03  Mike Kestner  <mkestner@novell.com>
13566
13567         * ComboBox.cs : use ToString instead of casts in AddItem for
13568         sorting functionality.  Fixes #79812.
13569
13570 2006-11-03  Chris Toshok  <toshok@ximian.com>
13571
13572         * Application.cs: pave the way for actually using the thread
13573         exception dialog.  it's ifdefed out at the moment.
13574
13575 2006-11-03  Chris Toshok  <toshok@ximian.com>
13576
13577         * ThreadExceptionDialog.cs: until we get a better layout, actually
13578         hide the details textbox and label when we shouldn't see them.
13579
13580 2006-11-03  Jackson Harper  <jackson@ximian.com>
13581
13582         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
13583         multiline textboxes anymore.  This method also determines the
13584         width/height of a textboxes canvas area.
13585         - Sorta a revert of the last patch.  For multiline just position
13586         the controls, then bail.  This way the scrollbar width won't be
13587         altered.
13588
13589 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
13590
13591         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
13592         it dont need.  Fixes #79537.
13593
13594 2006-11-02  Jackson Harper  <jackson@ximian.com>
13595
13596         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
13597         send the status after firing the DndOver event.
13598
13599 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13600
13601         * TrackBar.cs: Now orientation only switches height / width if
13602         the control's handle is created (Win32 does it like this). Also 
13603         fixed a typo in ToString() for a test to pass, changed the 
13604         exception thrown in set_LargeChange and set_SmallChange to 
13605         match Win32 behaviour, and added TrackBar tests to the unit 
13606         tests.
13607
13608 2006-11-02  Chris Toshok  <toshok@ximian.com>
13609
13610         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
13611         not _NET_WM_STATE_NO_TASKBAR.
13612
13613 2006-11-02  Jackson Harper  <jackson@ximian.com>
13614
13615         * TextControl.cs: Increment count by one, since in the update view
13616         count - 1 is used.
13617
13618 2006-11-02  Jackson Harper  <jackson@ximian.com>
13619
13620         * TextBoxBase.cs: Use client rectangle not bounds for checking if
13621         the mouse is in the client rectangle (duh).
13622
13623 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13624         
13625         * TrackBar.cs: Fixed trackbar jumping around when clicking
13626         on it - the trackbar was not detecting correctly at which
13627         side of the thumb the click was done. (fixes #79718)
13628
13629 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
13630
13631         * ListBox.cs: scroll visible area when change SelectedIndex to
13632         a non visible area.  Fixes #79481.
13633
13634 2006-11-01  Jackson Harper  <jackson@ximian.com>
13635
13636         * TextControl.cs: When replacing the selection move the selection
13637         start/end/anchor to the end of the new text.
13638
13639 2006-11-01  Jackson Harper  <jackson@ximian.com>
13640
13641         * XplatUIWin32.cs: When setting the parent change the controls
13642         visibility to it's visibility flag, not to it's old parents
13643         visibility (.Visible walks the parent chain).
13644
13645 2006-11-01  Chris Toshok  <toshok@ximian.com>
13646
13647         * XplatUIX11.cs: revert the #79790 fix, as the simple.
13648         XSetTransientForHint fix breaks paint .net's tool windows.  more
13649         work needed for that one.
13650
13651 2006-11-01  Chris Toshok  <toshok@ximian.com>
13652
13653         * ScrollBar.cs: throw ArgumentException instead of Exception in
13654         LargeChange/SmallChange setters.  fixes unit tests.
13655
13656 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
13657
13658         * ContainerControl.cs: reverted rev.67183 (which was itself
13659         a reversion of rev.66853... eh).
13660         
13661         * Control.cs: Fixes Reflector hang by changing Focus() call
13662         to what it was before rev.66643 (calling Select() here sets 
13663         ActiveControl, which in some situations calls back Focus and 
13664         eventually does a stack overflow). Temp fix.    
13665         Changes to GetNextControl() to not look for children to select when
13666         parent cannot be selectable (so it looks for siblings instead)  
13667         
13668 2006-10-31  Mike Kestner  <mkestner@novell.com>
13669
13670         * CheckedListBox.cs : off by one error in returned index from
13671         ObjectCollection.Add.  Fixes #79758.
13672
13673 2006-10-31  Chris Toshok  <toshok@ximian.com>
13674
13675         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
13676         calls for the textbox/spinner, to keep from recursing to the point
13677         where we crash.  Fixes #79760.
13678
13679 2006-10-31  Chris Toshok  <toshok@ximian.com>
13680
13681         * ListControl.cs (set_SelectedValue): don't throw exceptions on
13682         null/"" value, just return.  matches ms's behavior and fixes some
13683         failing tests.
13684
13685 2006-10-31  Chris Toshok  <toshok@ximian.com>
13686
13687         * Control.cs (set_Capture): make a logic a little easier to
13688         follow.
13689
13690         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
13691         if it's being destroyed.  A necessary fix surely, but a bandaid
13692         also, to fix the stuck capture problem in bug #78413.
13693
13694 2006-10-31  Chris Toshok  <toshok@ximian.com>
13695
13696         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
13697         convention of clearing hwnd.ClientRect when we set the
13698         width/height (so it'll be recalculated by Hwnd).
13699
13700 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
13701
13702         * ContainerControl.cs: reversed Contains check from
13703         ActiveControl due to hanging problems. This fix
13704         partly regresses #79667 (button does not have
13705         initial focus), so this might be a symptom for 
13706         a larger parenting problem (set_ActiveControl
13707         is being called but the child control does
13708         not have the parent set yet?)   
13709         
13710 2006-10-31  Mike Kestner  <mkestner@novell.com>
13711
13712         * MenuAPI.cs : fix keynav when menu is click activated.
13713
13714 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
13715
13716         * ToolStrip*: Version 0.2.
13717
13718         * MenuStrip.cs: Version 0.1.
13719
13720         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
13721
13722 2006-10-30  Chris Toshok  <toshok@ximian.com>
13723
13724         [ fixes the oversized notify icon issue in bug #79745 ]
13725         
13726         * NotifyIcon.cs: scale the icon down to the size we're given by
13727         the XplatUI layer (this would be faster if we did it once instead
13728         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
13729         since it's never invoked.
13730
13731         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
13732         pixels high by default, so let's hardcode our systray icon to that
13733         size.  The SYSTEM_TRAY protocol should really have a way for
13734         client apps to query for the correct icon size.. but oh well.  A
13735         couple of patches to deal with the screwy client_window ==
13736         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
13737         instance, and also make sure we don't XSelectInput twice).
13738
13739 2006-10-30  Chris Toshok  <toshok@ximian.com>
13740
13741         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
13742         recreating forms.  Control recreation is the bane of my existence.
13743         Fix it in a way that keeps everyone happy.
13744
13745 2006-10-30  Chris Toshok  <toshok@ximian.com>
13746
13747         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
13748         just non-CHILD ones.  otherwise sometimes scrollbars end up with
13749         client_windows not being resized to the proper size (ReportBuilder
13750         shows this extremely well).
13751
13752 2006-10-30  Chris Toshok  <toshok@ximian.com>
13753
13754         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
13755         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
13756         showing up in the gnome taskbar.  Fixes bug #79790.
13757
13758 2006-10-30  Chris Toshok  <toshok@ximian.com>
13759
13760         * ApplicationContext.cs: guard against a NRE.
13761
13762         * Application.cs: null out the old MainForm for the context, so we
13763         don't try to use it again once it's disposed.  Fixes bug #79783.
13764
13765 2006-10-30  Chris Toshok  <toshok@ximian.com>
13766
13767         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
13768         BindingContext, set the data source directly, otherwise do the
13769         lazy approach - the actual ListManager will be created when we get
13770         a BindingContext. Fixes bug #79700.
13771
13772 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
13773
13774         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13775           XplatUIX11.cs: Remove old 2 parameter SetVisible.
13776
13777         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
13778
13779 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
13780
13781         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
13782         of SetVisible that allows a window to be shown, but not activated.
13783         This is needed on Windows for MenuStrip, and can probably be used
13784         with MainMenu and ComboBox to fix the focus stealing issues on
13785         Windows.
13786
13787         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
13788
13789 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
13790
13791         * PictureBox.cs: Fix the output of the ToString method.
13792
13793 2006-10-29  Chris Toshok  <toshok@ximian.com>
13794
13795         * Control.cs (get_TopLevelControl): fix bug #79781.
13796
13797 2006-10-29  Chris Toshok  <toshok@ximian.com>
13798
13799         * ListControl.cs (set_DataSource): throw Exception here, not
13800         ArgumentException, to match MS behavior.
13801
13802 2006-10-29  Chris Toshok  <toshok@ximian.com>
13803
13804         * Form.cs: remove the try-catch's around calls to GetWindowState.
13805         We can just check the return value.
13806
13807         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
13808         Instead return -1.
13809
13810         * XplatUI.cs: Add note about additional return value for
13811         GetWindowState.
13812
13813 2006-10-29  Chris Toshok  <toshok@ximian.com>
13814
13815         * Control.cs (CreateHandle): when we create our handle, we also
13816         create the handles of our child controls.  Fixes one of the
13817         Control unit tests (CH11).
13818
13819 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
13820
13821         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
13822
13823 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
13824
13825         * ThemeClearlooks.cs: A little speedup.
13826
13827 2006-10-27  Chris Toshok  <toshok@ximian.com>
13828
13829         * Control.cs: implement Control.FromChildHandle in a way that
13830         matches the docs (and fixes the failed test.)
13831
13832 2006-10-27  Chris Toshok  <toshok@ximian.com>
13833
13834         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
13835         comments).
13836
13837         * DataGrid.cs: implement ResetForeColor such that the tests
13838         succeed.
13839         
13840 2006-10-27  Chris Toshok  <toshok@ximian.com>
13841
13842         * ToolBarButton.cs: setting text/tooltiptext to null results in it
13843         being set to "".  Fixes bug #79759.
13844
13845 2006-10-27  Jackson Harper  <jackson@ximian.com>
13846
13847         * TextControl.cs: We need to clear the entire selection area when
13848         setting the start, otherwise multiline selections are still
13849         visible.
13850
13851 2006-10-26  Chris Toshok  <toshok@ximian.com>
13852
13853         * PropertyGridView.cs: 
13854
13855         - ifdef all the code specific to the double
13856         buffer case, and provide some alternatives in the non-doublebuffer
13857         code, which makes heavy use of XplatUI.ScrollWindow to move things
13858         around without having to invalidate (and cause flicker).  There
13859         are still some drawing problems in the non-doublebuffered case, so
13860         DOUBLEBUFFER is defined by default.
13861
13862         - Fix the way dropdowns are handled.  now we explicitly watch for
13863         the events which might cause the dropdown to close, and break out
13864         of the nested event loop there.  This gets rid of all Capture
13865         code, at the expense of the Msg special casing.  Seems to work,
13866         though, and fixes bug #79743.
13867
13868 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
13869         * Control.cs: SetIsRecreating now recreates implicitly added
13870         child controls as well. Finally fixes #79629. The flag passed to 
13871         SetIsRecreating has also been removed since it wasn't used.
13872         
13873 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13874
13875         * PageSetupDialog.cs: Clean some code, fix some bits, 
13876         add some checks, and add a printer sub-dialog.
13877
13878 2006-10-26  Chris Toshok  <toshok@ximian.com>
13879
13880         * PropertyGrid.cs: make set_SelectedObject call
13881         set_SelectedObjects, and move the duplicate logic to the
13882         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
13883
13884         * PropertyGridView.cs: hide the textbox when we get a
13885         SelectedObjectsChanged event.
13886
13887         Fixes bug #79748.
13888
13889 2006-10-26  Chris Toshok  <toshok@ximian.com>
13890
13891         * PropertyGridView.cs: deal with the type converter not supporting
13892         GetStandardValues() or GetStandardValues() returning null, which
13893         is does in the default case.  Fixes #79742.
13894
13895 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
13896
13897         * CheckedListBox.cs: nunit no longer crashes when selecting 
13898         Project/Edit menu option
13899         
13900 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
13901
13902         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
13903         is no menu selected. fixes #79739
13904
13905 2006-10-25  Chris Toshok  <toshok@ximian.com>
13906
13907         * PropertyGridView.cs: factor out the splitter invalidation code
13908         into the SplitterPercent setter, and for kicks implement the
13909         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
13910         amount in either direction.
13911
13912 2006-10-25  Chris Toshok  <toshok@ximian.com>
13913
13914         * PropertyGridView.cs: do some cleanup of the brush used to draw
13915         text - read only fields should be grayed out.  not sure how to do
13916         this with the textbox, though.  but the textbox's should also be
13917         readonly now at least.  Also, hide/show the textbox when resizing
13918         the control.
13919         
13920         * CursorConverter.cs: use System.Reflection when getting the
13921         properties of Cursors, as TypeDescriptor.GetProperties isn't
13922         returning static properties.
13923
13924 2006-10-25  Chris Toshok  <toshok@ximian.com>
13925
13926         * PropertyGridView.cs: factor out the up/down handling, and reuse
13927         it for page up/down.  also add End/Home support.
13928
13929 2006-10-25  Chris Toshok  <toshok@ximian.com>
13930
13931         * PropertyGridView.cs:
13932
13933         - ensure the selected grid item is visible in the scrolled area,
13934         fixes bug #79572.
13935
13936         - fix Keys.Down handling when you're on the last item in the
13937         propertygrid.
13938
13939 2006-10-25  Mike Kestner  <mkestner@novell.com>
13940
13941         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
13942         clicks too.  Fixes #79725.
13943
13944 2006-10-24  Chris Toshok  <toshok@ximian.com>
13945
13946         * PropertyGrid.cs: use property.Converter instead of
13947         TypeDescriptor.GetConverter(property.PropertyType), so we catch
13948         TypeConverters declared on the property as well as on the
13949         PropertyType.  Fixes bug #79678.
13950
13951 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
13952
13953         * MimeIcon.cs, Mime.cs:
13954           Fallback to the default platform handler if no shared mime info
13955           stuff exists (fixes #79693).
13956
13957 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13958         * ContainerControl.cs: Incorrect contains check in ActiveControl 
13959         from previous fix (duh).
13960
13961 2006-10-20  Chris Toshok  <toshok@ximian.com>
13962
13963         * PropertyGridView.cs: the dropdown should be MIN(number of items
13964         in list, 15).  Fixes #79551.
13965
13966 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13967         Fixes #79384, #79394, #79652, #79667
13968         * Application.cs: 
13969         
13970         - Modal windows are now destroyed in the proper order for windows
13971         
13972         * ContainerControl.cs:
13973         
13974         - ActiveControl setter has more conditions on when to return:
13975                 - if we're reselecting the active control, but it actually
13976                 didn't have focus (window hidden or some such), it runs
13977                 - if the active control being selected doesn't actually 
13978                 exist in the container, it returns
13979         
13980         * Form.cs
13981         
13982         - The ShowDialog now gets the current form as the owner when
13983         invoking without parameters, and correctly activates the owner 
13984         when returning
13985         
13986         * MessageBox.cs
13987         
13988         - MessageBox now catches the Escape key to exit
13989
13990 2006-10-20  Chris Toshok  <toshok@ximian.com>
13991
13992         * PropertyGridView.cs: fix a number of issues (bug #78565, and
13993         most of bug #79676):
13994
13995         - you can navigate around the property grid with the arrow keys.
13996
13997         - the dropdown is sized properly when the pg has a vertical
13998         scrollbar.
13999
14000         - fix the indentation for subentries, and properly select the
14001         entire label rect.
14002
14003         - fix the gray bar's drawing (only draw it to the last element,
14004         not for the height of the control.  Also make sure we draw that
14005         last horizontal grid line.
14006
14007         - use the same mechanism the datagrid uses wrt the editing textbox
14008         when scrolling/resizing/etc.  Namely, we hide it first, do the
14009         operation, then show it again (if it's still visible).
14010         
14011         - aggressively remove a lot of unnecessary refreshes (and also
14012         calls to Invalidate(). call more limited variants, and only redraw
14013         what we need.)
14014         
14015         * PropertyGrid.cs:
14016
14017         - when we're populating the merged collection, fill in the UI
14018         parent with either the passed in item, or the category item we
14019         create.
14020
14021         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
14022
14023         * GridItem.cs: drop some fully qualified names.
14024         
14025         * GridEntry.cs: add a "UIParent", which is basically the parent
14026         treenode.
14027
14028         * GridItemCollection.cs: add an IndexOf method.
14029
14030 2006-10-20  Mike Kestner  <mkestner@novell.com>
14031
14032         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
14033         a working win32 NC invalidation mechanism, we can't invalidate
14034         menus.  [Fixes #79705]
14035
14036 2006-10-20  Mike Kestner  <mkestner@novell.com>
14037
14038         * ListBox.cs : don't update the VScrollbar if the list is empty,
14039         just hide it.  [Fixes #79692]
14040
14041 2006-10-20  Jackson Harper  <jackson@ximian.com>
14042
14043         * RichTextBox.cs: Handle some special chars better, and don't skip
14044         the entire group when we encounter a special char that we don't
14045         handle correctly.
14046
14047 2006-10-18  Chris Toshok  <toshok@ximian.com>
14048
14049         * PropertyGridView.cs: address a number of issues from bug #79676,
14050         mostly of the cosmetic variety.
14051
14052         - The highlight rectangle for indented items not extends all the
14053         way to the left.
14054
14055         - Indented items aren't indented so much.
14056
14057         - the dropdown is properly sized width-wise if the pg has a
14058         vertical scrollbar.
14059
14060 2006-10-18  Chris Toshok  <toshok@ximian.com>
14061
14062         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
14063         systray stuff is rather convoluted to begin with.
14064
14065         systray icons are a single window for some reason (that I haven't
14066         figured out yet), and for them, client_window == whole_window.
14067         Given the way the tests are structured elsewhere to determine
14068         which paints are pending (client vs. nc), that situation will
14069         always yield PAINT, not NCPAINT.  So, if we have a pending
14070         nc_expose and no pending expose, remove the hwnd from the paint
14071         queue, and also set nc_expose_pending to false, to keep us from
14072         blocking further expose's adding the hwnd to the paint queue.
14073
14074         phew.  like i said, a rather convoluted change.  Fixes the
14075         notifyicon repaint issues in bug #79645.
14076
14077 2006-10-18  Chris Toshok  <toshok@ximian.com>
14078
14079         * Form.cs: when getting the backcolor of the form, don't get
14080         base.BackColor, as this allows parents to influence the background
14081         color.  This breaks mdi forms.  Instead, if the background_color
14082         is empty, return the default.
14083
14084 2006-10-18  Chris Toshok  <toshok@ximian.com>
14085
14086         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
14087         to being private instead of internal static.
14088
14089         * Control.cs: remove all the stupid ParentWaitingOnRecreation
14090         crap, it wasn't working for more deeply nested controls anyway,
14091         and we already have the is_recreating flag - use that instead.
14092         Before calling DestroyHandle in RecreateHandle, recurse through
14093         the control tree setting it to true.  this returns the recreate
14094         code to much of its original simplicity, while now guaranteeing we
14095         actually recreate everything we're supposed to.  This change gets
14096         fyireporting actually showing mdi children.
14097
14098 2006-10-17  Chris Toshok  <toshok@ximian.com>
14099
14100         * Form.cs: remove some debug spew, and collapse some duplicate
14101         code at the end of SetClientSizeCore.
14102
14103         * XplatUIX11.cs: 
14104         - add some more debug spew here too wrt Destroy handling.
14105         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
14106         in Control's handling of WM_DESTROY.
14107         - Remove the handling of zombie window DestroyNotifies from the
14108         event loop - we don't need it.  Now the only DestroyNotifies we
14109         actually handle are ones generated by X.
14110         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
14111         match gtk's (functioning) handling of this. This keep metacity
14112         from leaving droppings in the form of wm borders with no window
14113         contents all over the place.
14114
14115         * Control.cs:
14116         - add a bunch of debug spew wrt control recreation.
14117         - fix a bug where we weren't tracking Visible properly on
14118         recreated hwnds.
14119         - fixed the WM_PAINT double buffer handling to support re-entrant
14120         calls (yes, i know it's gross, but it's happening to us).
14121
14122 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14123         * ThemeWin32Classic.cs: changed drawing of selected days
14124         to make them look better.
14125
14126 2006-10-16  Chris Toshok  <toshok@ximian.com>
14127
14128         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
14129         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
14130
14131         * XplatUIX11.cs: move away from using hwnd.client_dc and
14132         hwnd.non_client_dc and on to a stack of dc's (and in window's
14133         case, PAINTSTRUCT's), so we can deal with nested Paint calls
14134         without puking or not disposing of Graphics objects.
14135
14136         * XplatUIOSX.cs: same.
14137
14138         * XplatUIWin32.cs: same.
14139
14140 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
14141
14142         * FileDialog.cs: Don't call on_directory_changed inside
14143           OnSelectedIndexChanged (it changes the SelectedIndex too).
14144           Instead move it to OnSelectionChangeCommitted.
14145
14146 2006-10-13  Chris Toshok  <toshok@ximian.com>
14147
14148         * XplatUIX11.cs: more Destroy work.  the current code does the
14149         following things, in order:
14150
14151         1. Enumerates all handles of all controls at or below the one
14152         being destroyed, in pre-order.  As it is doing this, it marks the
14153         handles as zombie and clears all references to them.
14154         
14155         2. calls XDestroyWindow on the window passed in.
14156
14157         3. SendMessage's WM_DESTROY to all he handles in the accumulated
14158         list.
14159
14160 2006-10-13  Chris Toshok  <toshok@ximian.com>
14161
14162         * XplatUIX11.cs: set hwnd.zombie to true before calling
14163         SendMessage (WM_DESTROY).  this keeps us from marking the new
14164         window a zombie, and also keeps us from calling sendmessage at
14165         all.
14166
14167 2006-10-13  Jackson Harper  <jackson@ximian.com>
14168
14169         * TextControl.cs: Do not show the caret and selection at the same
14170         time.  Reduces ugliness by 35%.
14171
14172 2006-10-13  Chris Toshok  <toshok@ximian.com>
14173
14174         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
14175         zombie after we do the recursive call, so we actually do call
14176         SendMessage on the children controls.
14177         (GetMessage): if we find a pending paint event for a zombie hwnd,
14178         remove the hwnd from the paint queue, or else it will always be
14179         there (and we'll effectively loop infinitely)
14180
14181 2006-10-13  Mike Kestner  <mkestner@novell.com>
14182
14183         * MenuItem.cs : add Selected format under keynav too.
14184         Fixes #79528.
14185
14186 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
14187
14188         * PropertyGrid.cs: Fixed some NRE's and small difference between our
14189         implementation and that of MS.
14190
14191 2006-10-13  Chris Toshok  <toshok@ximian.com>
14192
14193         * Control.cs (OnInvalidated) only futz with the invalid_region if
14194         the control is double buffered.  this fixes the apparent hang in
14195         the ListView unit tests.  Someone needs to make the
14196         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
14197
14198 2006-10-13  Chris Toshok  <toshok@ximian.com>
14199
14200         * PropertyGridView.cs:
14201
14202         - do a little refactoring so that only one place calls
14203         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
14204         else call that.  Also make it Refresh, since there are redraw bugs
14205         otherwise (we should take a look at that...)
14206
14207         - do a little more refactoring work to share the body of code
14208         involved with the drop down.  it was duplicated in the code
14209         dealing with the listbox handling and in the code dealing with the
14210         UITypeEditors.
14211
14212         - add a Capture to the dropdown form's control once it's
14213         displayed, and add a MouseDown handler that checks to make sure
14214         the position is inside the control.  If it's not, close the
14215         dropdown.  This fixes #78190.
14216
14217         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
14218         if the value is different than the initial value.
14219         
14220 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
14221
14222         * Control.cs: see #78650
14223         - Fixed GetNextControl for several cases:
14224                 - Changed FindFlatForward to return 
14225                 correct sibling control when more than one
14226                 control has same TabIndex as the currently 
14227                 focused one.
14228                 - Changed FindFlatBackward to loop children
14229                 from last to first and apply same logic as in
14230                 FindFlatForward
14231                 - Changed FindControlForward to search for
14232                 children when control is not a container
14233                 but has children, or search for siblings if
14234                 control is a container...
14235                 - Changed FindControlBackward   to continue
14236                 searching for child controls when hitting 
14237                 Panel-like parents
14238                 
14239         - Fixed Focus method to update ActiveControl
14240         (FocusTest.FocusSetsActive failure)
14241         
14242         * TabControl.cs:
14243         - Focus rectangle now refreshes when gaining
14244         or losing focus
14245         - Removed grab for Tab key on IsInputKey that 
14246         was keeping tab navigation from working (#78650)
14247
14248 2006-10-13  Chris Toshok  <toshok@ximian.com>
14249
14250         * PropertyGridView.cs:
14251         - Rewrite SetPropertyValue to loop over SelectedGridItem's
14252         SelectedObjects.
14253
14254         - Deal with GridItem.Value == null a few places.
14255
14256         * PropertyGrid.cs: 
14257         - replace the PopulateGridItemCollection with a pair of methods
14258         which compute the intersection of all the properties in the
14259         SelectedObjects array.  Fixes #79615.
14260
14261         - Throw ArgumentException from set_SelectedObjects if there's a
14262         null in the array.
14263
14264         - Add GetTarget method which can be used to traverse up the
14265         GridItem.Parent chain.  It depends on the assumption that
14266         selected_objects for different GridEntries are always in the same
14267         order (a safe assumption).  Use this method and loop over all the
14268         selected objects in the entry when calling RemoveValueChanged and
14269         AddValueChanged.
14270         
14271         * GridEntry.cs: Make this handle multiple selected objects.
14272         .Value returns null if not all the selected objects share the same
14273         value.
14274
14275 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
14276         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
14277           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
14278           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
14279           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
14280           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
14281         add additional functionality.
14282
14283 2006-10-12  Mike Kestner  <mkestner@novell.com>
14284
14285         * ErrorProvider.cs : new ToolTipWindow ctor sig.
14286         * HelpProvider.cs : new ToolTipWindow ctor sig.
14287         * ToolTip.cs : remove ToolTip param from Window sig since it is
14288         not used.
14289         * ToolBar.cs : add tooltip support.  Fixes #79565.
14290
14291 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14292
14293         * ComboBox.cs: move the events in set_SelectedIndex to 
14294         after the call to HighlightIndex in order to avoid 
14295         possible recursion and subsequent problems with the call
14296         to HighlightIndex and include a range check in 
14297         set_HighlightIndex. Fixes #79588
14298         
14299 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14300
14301         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
14302         to ui thread's settings instead of sunday. 
14303         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
14304
14305 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14306
14307         * DateTimePicker.cs
14308         * MonthCalendar.cs
14309         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
14310         and implement missing functionality (selecting different parts 
14311         of the date and edit them individually with the keyboard).
14312         
14313 2006-10-11  Chris Toshok  <toshok@ximian.com>
14314
14315         * Control.cs (OnInvalidated): fix NRE relating to last change.
14316
14317 2006-10-11  Chris Toshok  <toshok@ximian.com>
14318
14319         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
14320         atoms in _NET_WM_STATE here if the window is maximized.  We need
14321         to do this because we're *replacing* the existing _NET_WM_STATE
14322         property, so those atoms will be lost otherwise, and any further
14323         call to GetWindowState will return Normal for a window which is
14324         actually maximized.  Fixes #79338.
14325
14326 2006-10-11  Jackson Harper  <jackson@ximian.com>
14327
14328         * TextControl.cs: Special case for setting selection end to
14329         selection start, we basically kill the anchor.
14330         - some todo comments.
14331
14332 2006-10-11  Chris Toshok  <toshok@ximian.com>
14333
14334         * Control.cs: switch to using an "invalid_region" to track which
14335         parts of the image buffer need updating.  This is more code than
14336         the simple fix from r66532.  That version just attempted to always
14337         fill the entire buffer on redraw, which turns out to be
14338         inefficient when invalidating small rectangles.  This version
14339         simply adds the invalid rectangle to the invalid region.  When we
14340         get any WM_PAINT message we see if it can be filled using the
14341         image buffer, and if it can't (if the paint event's clip rectangle
14342         is visible in the invalid region) we first fill the image buffer.
14343         So, the image buffer is still a cache, we just fill it lazily.
14344
14345         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
14346         need it any longer.
14347
14348 2006-10-11  Chris Toshok  <toshok@ximian.com>
14349
14350         * XplatUIX11.cs (SetWindowPos): we need to update both position as
14351         well as size after calling XMoveResizeWindow.  This keeps us from
14352         ignoring future SetWindowPos calls.  Fixes the disappearing
14353         DateTimePicker in the ToolBarDockExample from bug #72499.
14354
14355 2006-10-11  Chris Toshok  <toshok@ximian.com>
14356
14357         * TextBoxBase.cs: reorder things a bit when it comes to
14358         resizing-causing-recalculation.  we were recalculating the
14359         document when our position was changed, which shouldn't happen.
14360         We only care about size changes.  Clear up some more redundant
14361         recalculation calls while I'm at it.  This makes the toolbar dock
14362         example snappy when you're just dragging toolbars around (since it
14363         causes a relayout whenever you move one.)
14364
14365 2006-10-11  Chris Toshok  <toshok@ximian.com>
14366
14367         * ToolBarButton.cs (get_Rectangle): this only returns
14368         Rectangle.Empty if Visible == false, or Parent == null.
14369         Parent.Visible doesn't matter.
14370
14371 2006-10-10  Chris Toshok  <toshok@ximian.com>
14372
14373         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
14374         by .net 1.1, so switch to an internal method instead.
14375
14376 2006-10-10  Chris Toshok  <toshok@ximian.com>
14377
14378         * Control.cs (WM_PAINT): when a control is double buffered we draw
14379         initially to the ImageBuffer and then copy from there.  But when a
14380         parent control which has child controls is double buffered, the
14381         initial drawing doesn't encompass the entire ClientRectangle of
14382         the parent control, so we end up with uninitialized bits (this is
14383         easily seen by dragging the top toolbar in
14384         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
14385         manually set the ClipRectangle of the paint_event (only the one we
14386         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
14387         of the nastiness in bug #72499.
14388
14389         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
14390         which we use in Control.cs's WM_PAINT handling.
14391
14392 2006-10-10  Jackson Harper  <jackson@ximian.com>
14393
14394         * TextBoxBase.cs: Finish off the autoscrolling stuff.
14395
14396 2006-10-10  Chris Toshok  <toshok@ximian.com>
14397
14398         * Cursor.cs: Apply a slightly different patch to the one suggested
14399         in #79609.
14400
14401 2006-10-10  Jackson Harper  <jackson@ximian.com>
14402
14403         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
14404         not the parent form.
14405         * TextControl.cs: use difference in old line count vs new count to
14406         calculate how many lines were added, this takes into account soft
14407         line breaks properly.
14408
14409 2006-10-10  Chris Toshok  <toshok@ximian.com>
14410
14411         * LinkLabel.cs: don't call MeasureCharacterRanges against a
14412         rectangle located at 0,0 and the size of the text.  Use
14413         ClientRectangle instead.  This fixes rendering of non-left aligned
14414         link labels.
14415
14416 2006-10-10  Jackson Harper  <jackson@ximian.com>
14417
14418         * TextBoxBase.cs: When we set the selection start position the
14419         caret.
14420         * TextControl.cs: Need to update the caret when we decrement it to
14421         zero.
14422         - Make sure that the selection_visible flag gets reset to false if
14423         the selection isn't visible.  Before this you could get it set to
14424         visible by changing the selection start, then changing the end to
14425         equal the start.
14426
14427 2006-10-09  Jackson Harper  <jackson@ximian.com>
14428
14429         * TreeView.cs: Don't update scrollbars when we aren't visible.
14430         * TreeNodeCollection.cs: Only need to update scrollbars if being
14431         added to an expanded visible node or the root node.
14432
14433 2006-10-09  Chris Toshok  <toshok@ximian.com>
14434
14435         * XplatUIX11.cs (SendMessage): fix NRE.
14436
14437 2006-10-09  Jackson Harper  <jackson@ximian.com>
14438
14439         * TextBoxBase.cs: Implement horizontal autoscrolling.
14440         * TextControl.cs: Add a movement types that allows moving forward
14441         and backwards without wrapping.
14442
14443 2006-10-09  Mike Kestner  <mkestner@novell.com>
14444
14445         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
14446         with focus "expansion" of labels.  Fixes #79532 and then some.
14447         * ThemeWin32Classic.cs : add LineLimit to ListView label format
14448         when wrapping.
14449
14450 2006-10-09  Jackson Harper  <jackson@ximian.com>
14451
14452         * TextBoxBase.cs: Set the default max values to MaxValue since
14453         we use the scrollbar for autoscrolling and the default value is
14454         100.  If we don't do this the caret won't keep up with typing
14455         after about 18 characters.
14456         * TextControl.cs: Make sure the selection is offset by the
14457         viewport x.  This fixes selection when using auto scrolling.
14458
14459 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
14460         
14461         * Form.cs: The active control should be selected after the 
14462         OnLoad so that any child control initialization that affects
14463         the selection is done. Fixes #79406
14464
14465 2006-10-06  Chris Toshok  <toshok@ximian.com>
14466
14467         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
14468         to have no evil effects.
14469
14470         - Stop selecting StructureNotifyMask on non-toplevel windows.
14471
14472           The only way children should be resized is by using the SWF api,
14473           and we already send WM_WINDOWPOSCHANGED messages in those cases.
14474           Toplevel windows can be interacted with via the window manager,
14475           and so we keep the input mask there.
14476
14477           The other event StructureNotifyMask gives us (that we care
14478           about) is DestroyNotify.  The code is already structured such
14479           that it assumes we won't be getting a DestroyNotify event for
14480           the window we pass to XDestroyWindow (which is what
14481           StructureNotifyMask is supposed to guarantee.)  So, that code
14482           shouldn't be affected by this either.
14483
14484         - Stop selecting VisibilityChangeMask altogether.
14485
14486           We weren't doing anything with the resulting events anyway.
14487         
14488         This vastly reduces the number of X requests and events we see
14489         when resizing/laying out a large ui.
14490
14491 2006-10-06  Chris Toshok  <toshok@ximian.com>
14492
14493         * ScrollableControl.cs (DisplayRectangle): we need to take into
14494         account the DockPadding regardless of whether or not auto_scroll
14495         == true.  rework this slightly to this effect, and fix bug #79606,
14496         and part of #72499 (you can now see the drag handles and drag
14497         toolbars around).
14498
14499 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
14500
14501         * ListViewItem.cs: Collections of selected and checked items are now
14502         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
14503         we mark the collection "dirty".
14504         * ListView.cs: Marked collections readonly. Modified UpdateSelection
14505         to only clear SelectedItems when a new item is selected and MultiSelect
14506         is enabled. CheckedItems and SelectedItems now subscribe to Changed
14507         event of ListViewItemCollection, and mark its list dirty whenever
14508         that event is fire. This allows us to return selected/checked items 
14509         in the same order as they are in the Items collection. This matches
14510         the MS behavior.
14511
14512 2006-10-06  Chris Toshok  <toshok@ximian.com>
14513
14514         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
14515         right mouse clicks.  Fixes bug #79593.
14516
14517 2006-10-06  Chris Toshok  <toshok@ximian.com>
14518
14519         * Splitter.cs: doh, fix splitters that don't want to cancel the
14520         movement when you drag them.  Also, impose the limits on the
14521         values we send to the SplitterMovingEvent.  Fixes #79598.
14522
14523 2006-10-06  Jackson Harper  <jackson@ximian.com>
14524
14525         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
14526         since we use this for auto scrolling also.
14527
14528 2006-10-05  Chris Toshok  <toshok@ximian.com>
14529
14530         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
14531         beginning to think that most datagrid column types don't need this
14532         method.  Fixes bug #79392.
14533
14534 2006-10-05  Chris Toshok  <toshok@ximian.com>
14535
14536         * DataGrid.cs: move back to a more lazy scheme for creating the
14537         CurrencyManager, so we aren't updating it every time you set
14538         either DataSource or DataMember.  Also, don't call
14539         RecreateDataGridRows if the currency manager hasn't changed.
14540
14541 2006-10-05  Chris Toshok  <toshok@ximian.com>
14542
14543         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
14544         emitted, SelectedIndex should already be updated.  Fixes bug
14545         #78929.
14546
14547 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
14548
14549         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
14550           ToolStripTextBox.cs: Initial commit.
14551         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
14552
14553 2006-10-05  Jackson Harper  <jackson@ximian.com>
14554
14555         * TabControl.cs: We need to invalidate the tab control area when
14556         new ones are added (duh).
14557
14558 2006-10-03  Chris Toshok  <toshok@ximian.com>
14559
14560         * Form.cs (ProcessDialogKey): if the focused control is in this
14561         form and is a button, call its PerformClick method here.  Fixes
14562         #79534.
14563
14564 2006-10-04  Jackson Harper  <jackson@ximian.com>
14565
14566         * TabPage.cs: Ignore setting of Visible, and add an internal
14567         method for setting the controls visibility.  TabPage's Visible
14568         property is a little strange on MS, this seems to make us
14569         compatible, and fixes cases where people set all the tab pages to
14570         visible.
14571         * TabControl.cs: Use the new internal setting on tab pages
14572         visibility.
14573
14574 2006-10-03  Mike Kestner  <mkestner@novell.com>
14575
14576         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
14577
14578 2006-10-03  Mike Kestner  <mkestner@novell.com>
14579
14580         * ListView.cs : use is_visible instead of Visible to check if 
14581         scrollbars should be placed/sized.  Also some max_wrap_width
14582         love for LargeIcon view.  [Fixes #79533]
14583
14584 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
14585
14586         * TextControl.cs :
14587           Make set_TextAlign() do actually update the align. Fixed #78403.
14588
14589 2006-10-03  Chris Toshok  <toshok@ximian.com>
14590
14591         * DataGrid.cs: fix a crash when switching datasources if the
14592         vertical scrollbar is at someplace other than Value = 0.  Also,
14593         reduce the number of recalculation passes we do in SetDataSource
14594         from 2 to 1.
14595
14596 2006-10-03  Jackson Harper  <jackson@ximian.com>
14597
14598         * TextBoxBase.cs: Move the if value the same bail check up, we
14599         don't want to empty the document if it is already empty, this
14600         seems to severly mess up the caret.  TODO: I should probably fix
14601         the empty statement to update teh caret somehow.
14602
14603 2006-10-03  Chris Toshok  <toshok@ximian.com>
14604
14605         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
14606         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
14607         reflection, an internal row type, properties on said type, etc.)
14608         will work with our datagrid.  Fixes #79531.
14609
14610 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
14611
14612         * FileDialog.cs: Don't crash if a path is not accessible
14613           (System.UnauthorizedAccessException). Fixes #79569.
14614         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
14615           a ':' too. Return unknown icon for those paths/files.
14616
14617 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
14618
14619         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
14620         GetContainerControl returns null.
14621
14622 2006-10-02  Chris Toshok  <toshok@ximian.com>
14623
14624         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
14625         call to XGetWindowAttributes instead of "handle".  fixes an X
14626         error using notifyicon after the NotifyIconWindow to Form base
14627         class switch.
14628
14629 2006-10-02  Chris Toshok  <toshok@ximian.com>
14630
14631         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
14632         server grab and looping we need to do to get down to the most
14633         deeply nested child window.
14634         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
14635         QueryPointer again after the WarpPointer so we can generate a
14636         proper (fake) MotionNotify event to be enqueued in the destination
14637         window's queue.
14638         (GetCursorPos): call QueryPointer.
14639
14640         Fixes #79556.
14641
14642 2006-10-02  Jackson Harper  <jackson@ximian.com>
14643
14644         * NotifyIcon.cs: Derive the notify icon from a form, so things
14645         like FindForm work on it.
14646         - Swallow the WM_CONTEXTMENU message, since that is generated on
14647         mouse down, and context menu is a mouse up kinda guy.  I believe
14648         the correct fix here is probably to make the notify icon entirely
14649         NC area, but this seems to work fine for anyone not manipulating
14650         WndProc.
14651
14652 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
14653
14654         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
14655           ToolStripItemCollection.cs, ToolStripLabel.cs,
14656           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
14657           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
14658           Initial implementation.
14659         * TextRenderer.cs: Provide padding to MeasureText.
14660
14661 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
14662
14663         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
14664         of ButtonBaseAccessibleObject. Fix bug #79552.
14665
14666 2006-10-02  Jackson Harper  <jackson@ximian.com>
14667
14668         * MdiWindowManager.cs: When maximizing use the containers client
14669         rect, not it's bounds, so nc area is accounted correctly.
14670         - Use the parent form's size for the menu position, since the
14671         client isn't always the full form size.
14672
14673 2006-10-01  Chris Toshok  <toshok@ximian.com>
14674
14675         * ScrollableControl.cs: make sure neither right_edge or
14676         bottom_edge are < 0, since they're used as LargeChange for the
14677         horiz/vert scrollbars respectively.  Fixes #79539.
14678
14679 2006-10-01  Chris Toshok  <toshok@ximian.com>
14680
14681         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
14682         the xplatuix11 code can cause us to destroy/recreate our handle.
14683
14684         * XplatUIX11.cs
14685         (SystrayAdd):
14686         - this code can be invoked many times for the same Hwnd.  Make
14687           sure we only destroy the client window once (the first time this
14688           method is called).  This fixes bug #79544.
14689         - Remove the call to the improperly bound XSync.  why we had two
14690           bindings to this, I will never know, but this call resulted in
14691           events being discarded from the queue(!).
14692         - correct a misunderstanding of _XEMBED_INFO - the second atom is
14693           not our current state but the state we wish to be in.  So, 0 if
14694           we don't want to be mapped.  Change it to 1.
14695         (SystrayRemove): The XEMBED spec makes mention of the fact that
14696         gtk doesn't support the reparent of client windows away from the
14697         embedder.  Looking at gtksocket-x11.c seems to agree with this.
14698         The only avenue we have for removing systray icons is to destroy
14699         them.  We don't want the handle to go away for good, though, so
14700         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
14701         #79545.
14702         
14703 2006-10-01  Chris Toshok  <toshok@ximian.com>
14704
14705         * Form.cs (WndProc): inline the native_enabled variable usage into
14706         the cases in which it's used.  Fixes #79536.
14707
14708 2006-09-29  Mike Kestner  <mkestner@novell.com>
14709
14710         * ListView.cs : toggle the selection state for ctrl clicks in 
14711         multiselect mode. [Fixes #79417]
14712
14713 2006-09-29  Mike Kestner  <mkestner@novell.com>
14714
14715         * ListView.cs : kill CanMultiSelect and refactor the selection
14716         code to support multiselection in the absence of mod keys. Steal
14717         arrow/home/end keys by overriding InternalPreProcessMessage to
14718         restore regressed keynav behavior.
14719         [Fixes #79416]
14720
14721 2006-09-29  Jackson Harper  <jackson@ximian.com>
14722
14723         * MdiClient.cs: Repaint the titlebars when the active window is
14724         changed.
14725
14726 2006-09-29  Chris Toshok  <toshok@ximian.com>
14727
14728         * Application.cs: when entering a runloop with a modal, make sure
14729         the hwnd is enabled.  Fixes #79480.
14730
14731 2006-09-29  Chris Toshok  <toshok@ximian.com>
14732
14733         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
14734         when ListManager.CanAddRows == false, bump us back one.
14735
14736         * DataGridColumnStyle.cs (ParentReadOnly): remove the
14737         listmanager.CanAddRows check.  This makes ArrayLists uneditable
14738         using a datagrid, which is not right.
14739         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
14740         is an IEditable, but call property_descriptor.SetValue regardless.
14741         fixes #79435.
14742
14743 2006-09-29  Chris Toshok  <toshok@ximian.com>
14744
14745         * DataGridBoolColumn.cs: we need to test equality in the face of
14746         possible null values (as is the case with the default NullValue).
14747         This patch keeps us from crashing in that case.
14748
14749 2006-09-29  Jackson Harper  <jackson@ximian.com>
14750
14751         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
14752         here, since it will get called for every node collection in the
14753         tree. This is now done in the treeview once the sorting is
14754         finished.
14755         * TreeView.cs: Recalculate the visible order, and update the
14756         scrollbars after sorting, set the top nope to the root so that the
14757         recalc actually works.
14758
14759 2006-09-29  Chris Toshok  <toshok@ximian.com>
14760
14761         * LinkLabel.cs: more handling of the default link collection in
14762         the face of LinkArea manipulation.  The default link collection
14763         contains 1 element (start=0,length=-1).  If the user sets LinkArea
14764         to anything and the links collection is the default, clear it.
14765         Then only add the link if its nonempty.  Fixes #79518.
14766
14767 2006-09-29  Chris Toshok  <toshok@ximian.com>
14768
14769         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
14770         piece correctly when we hit a '\n'.  Fixes #79517.
14771
14772 2006-09-29  Chris Toshok  <toshok@ximian.com>
14773
14774         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
14775         change the binding of gdk_init_check to take two IntPtr's, and
14776         pass IntPtr.Zero for both of them.  Fixes #79520.
14777
14778 2006-09-29  Mike Kestner  <mkestner@novell.com>
14779
14780         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
14781         [Fixes #78779]
14782
14783 2006-09-28  Jackson Harper  <jackson@ximian.com>
14784
14785         * XplatUIX11.cs: When translating NC messages make sure we go from
14786         whole window to screen, not client window to screen.
14787         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
14788         method doesn't exist
14789         - Skip over controls that aren't forms when arranging.
14790
14791 2006-09-28  Jackson Harper  <jackson@ximian.com>
14792
14793         * XplatUIWin32.cs: Clip the rect to the parent window.
14794         * XplatUIStructs.cs: Add clipping modes struct.
14795         * InternalWindowManager.cs: New private method that factors title
14796         bar heights in when calculating the pos of an NC mouse message.
14797         - Use SendMessage to force a paint when the form's size is changed
14798         instead of painting the decorations immediately.
14799         - Don't let the NC button click messages get to DefWndProc,
14800         because they will attempt to handle windowing themself, and this
14801         messes up z-order (it will put them in front of the scrollbars).
14802         * XplatUIX11.cs: Make sure that we don't reset window managers if
14803         we already have one (ie the window is an MDI window).
14804
14805 2006-09-28  Chris Toshok  <toshok@ximian.com>
14806
14807         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
14808         menu code really needs going over.
14809
14810 2006-09-27  Chris Toshok  <toshok@ximian.com>
14811
14812         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
14813         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
14814         window is maximizable.  So, we need to make sure that even if we
14815         clear the border/wm frame of those functions, they're still
14816         available (basically, we remove the decoration without removing
14817         the function).  Half the fix for #79338.
14818
14819 2006-09-27  Chris Toshok  <toshok@ximian.com>
14820
14821         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
14822         Fixes bug #79515.
14823
14824 2006-09-27  Chris Toshok  <toshok@ximian.com>
14825
14826         * Splitter.cs: reorder things a bit so that we don't actually
14827         draw/move the splitter until after calling OnSplitterMoving.  This
14828         lets users cancel/disallow the movement by explicitly setting
14829         event.SplitX/SplitY.  Fixes #79372.
14830
14831 2006-09-27  Jackson Harper  <jackson@ximian.com>
14832
14833         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
14834         because it is most likely on a window being destroyed, and that
14835         will give us an X11 error.
14836
14837 2006-09-27  Chris Toshok  <toshok@ximian.com>
14838
14839         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
14840         the dropdown button now toggles between showing and hiding the
14841         dropdown.  Also, get rid of dropdown_form_showing and just use
14842         dropdown_form.Visible.  We still don't do a grab, but I'll leave
14843         that part to someone who has handled Capture-fu before.
14844
14845 2006-09-27  Chris Toshok  <toshok@ximian.com>
14846
14847         * DataGrid.cs: return false if alt isn't pressed when '0' is
14848         pressed.  this keeps the '0' key from being swallowed, and fixes
14849         bug #79350.
14850
14851 2006-09-27  Chris Toshok  <toshok@ximian.com>
14852
14853         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
14854         Calling Refresh (in response to a scrollbar event) screws up the
14855         scrollbar painting.  Fixes bug #78923.
14856
14857 2006-09-27  Chris Toshok  <toshok@ximian.com>
14858
14859         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
14860         then insert into hashtable" blocks threadsafe.
14861
14862 2006-09-27  Chris Toshok  <toshok@ximian.com>
14863
14864         * MessageBox.cs (CreateParams): the styles should be |'ed with our
14865         baseclass's, since otherwise the
14866         ControlBox/MinimizeBox/MaximizeBox assignments above have no
14867         effect.  This gets the close button back in messageboxes.
14868
14869 2006-09-27  Chris Toshok  <toshok@ximian.com>
14870
14871         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
14872         flag, not just != 0.  this makes flags that are actually multiple
14873         bits (like WS_CAPTION) work.  fixes bug #79508.
14874
14875 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
14876
14877         * PageSetupDialog.cs: add support for getting and settings the 
14878         paper size, source and orientation.
14879
14880 2006-09-26  Chris Toshok  <toshok@ximian.com>
14881
14882         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
14883         and caption == "", we need to remove the resize handles as well as
14884         the title bar.
14885
14886         * Control.cs (set_Text): turns out that setting Text on a form
14887         should change the WM styles on the window, since if ControlBox ==
14888         false, the only way to get a window border is to have a non-""
14889         Text property.  check winforms/forms/text.cs for an example.  so,
14890         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
14891         update both window styles and title.  This fixes a lot of dialogs
14892         (including the preferences dialog in MonoCalendar.)
14893
14894 2006-09-26  Chris Toshok  <toshok@ximian.com>
14895
14896         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
14897         control isn't a Form), call Win32ShowWindow to hide the window,
14898         but don't update the control Visible property.  When we reparent
14899         back to a parent control, call SetVisible in order for the
14900         window's visibility to be reinstated.
14901
14902         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
14903         the FosterParent.
14904
14905         * Control.cs (ControlCollection.Remove): remove that value.Hide()
14906         call for good, since it breaks MonoCalendar (and other things I'm
14907         sure.) Also, set all_controls to null *after* the owner calls,
14908         which end up regenerating it.
14909         (ChangeParent): allow new_parent to be == null, passing
14910         IntPtr.Zero down to XplatUI.
14911
14912         this fixes #79294 the right way.
14913
14914 2006-09-26  Mike Kestner  <mkestner@novell.com>
14915
14916         * GridEntry.cs : internal SetParent method.
14917         * PropertyGrid.cs : attach to property changed on the proper
14918         target if we have a hierarchical grid with subobjects. Setup
14919         GridItem.Parent for hierarchical items.
14920         * PropertyGridView.cs : Set value on the correct target for
14921         hierarchical grids. [Fixes #78903]
14922
14923 2006-09-26  Chris Toshok  <toshok@ximian.com>
14924
14925         * Control.cs (ChildNeedsRecreating): this should return true if
14926         either we're being recreated and the child is in our list, or our
14927         parent is waiting for our recreation.
14928
14929 2006-09-26  Chris Toshok  <toshok@ximian.com>
14930
14931         * Control.cs (ControlCollection.Remove): reinstate the
14932         value.Hide() call as suggested in bug #79294.
14933
14934 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
14935
14936         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
14937         coordinates (versus a relative move).
14938
14939 2006-09-26  Chris Toshok  <toshok@ximian.com>
14940
14941         * Control.cs: rework child recreation a little bit.  It turns out
14942         that we race between the DestroyNotify the WM_DESTROY message.  If
14943         the parent gets its DestroyNotify before the child gets the
14944         WM_DESTROY message, the child ends up not recreating (since the
14945         parent finishes its recreation on DestroyNotify, and the child
14946         checks ParentIsRecreating.)
14947
14948         So, instead we store off a list of all the child controls which
14949         need to be recreated when the parent control starts to recreate
14950         itself.  Then, when child controls get their WM_DESTROY message we
14951         check to see if they're in the parent's pending recreation list,
14952         and if so, we recreate.  This removes all dependency on ordering
14953         from the code and fixes the initial MonoCalendar upgrade dialog.
14954         
14955 2006-09-26  Jackson Harper  <jackson@ximian.com>
14956
14957         * TextControl.cs: Use the Line to get the length of the line,
14958         since soft line breaks can change the end line.
14959
14960 2006-09-26  Chris Toshok  <toshok@ximian.com>
14961
14962         * Control.cs (ControlCollection.AddImplicit): don't add the
14963         control again if it's already in one of our lists.  This keeps us
14964         from adding controls over and over again for comboboxes when their
14965         handle gets recreated (as the combobox adds implicit controls in
14966         OnHandleCreated).  Fixes the X11 errors in bug #79480.
14967
14968 2006-09-26  Jackson Harper  <jackson@ximian.com>
14969
14970         * TextControl.cs: When deleting characters make sure that any
14971         orphaned zero lengthed tags get deleted.
14972         - Fix ToString for zero lengthed tags.
14973
14974 2006-09-25  Jackson Harper  <jackson@ximian.com>
14975
14976         * TextControl.cs: When getting a tag at the location there can be
14977         multiple tags at the same spot, these are 0-lengthed tags that
14978         appear when extra formatting has been stuck in a location.  We
14979         need to pull out the last of these 0 lengthed tags.
14980
14981 2006-09-25  Jackson Harper  <jackson@ximian.com>
14982
14983         * TextControl.cs: Fix print out in debug method.
14984         * TextBoxBase.cs: When text is set bail if we are setting to the
14985         previous value.
14986         
14987 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
14988
14989         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
14990           It is now possible to change the selected index in a FontXXXListBox
14991           with the up and down arrow keys from the FontXXXTextBoxes.
14992           Also, send the FontXXXTextBox mouse wheel event to the corresponding
14993           FontXXXListBoxes to match ms.
14994
14995 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
14996
14997         * SystemInformation.cs: Return a clone of the theme's MenuFont because
14998         anyone can dispose it, anytime. All other properties returns enums, 
14999         structs or basic types so they don't need such tricks.
15000
15001 2006-09-22  Jackson Harper  <jackson@ximian.com>
15002
15003         * XplatUI.cs:
15004         * XplatUIWin32.cs:
15005         * Clipboard.cs:
15006         * DataFormats.cs:
15007         * XplatUIOSX.cs:
15008         * XplatUIDriver.cs: Update interface to add a primary selection
15009         flag, so the driver can use the primary selection buffer if
15010         needed.
15011         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
15012
15013         * RichTextBox.cs: We need to supply the data object to paste now
15014         (so we can choose to supply CLIPBOARD or PRIMARY).
15015         * TextBoxBase.cs: Supply data object to paste (see above).
15016         - Middle click uses the primary selection data object.
15017         
15018 2006-09-21  Chris Toshok  <toshok@ximian.com>
15019
15020         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
15021         of SetWMStyles.  It's still a rat's nest and is largely
15022         order-dependent which I dislike immensely.  This also fixes the X
15023         button disappearing from toplevel forms.
15024
15025 2006-09-21  Mike Kestner <mkestner@novell.com>
15026
15027         * ListBox.cs: move Jordi's click/dblclick raising code to the
15028         mouse up handler.
15029
15030 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
15031
15032         * ListBox.cs: Fixes 79450
15033
15034 2006-09-21  Mike Kestner <mkestner@novell.com>
15035
15036         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
15037         to deal with people updating the TreeNodeCollection after the tree
15038         is disposed.  "Fixes" 79330.
15039
15040 2006-09-20  Jackson Harper <jackson@ximian.com>
15041
15042         * TextControl.cs: Push the cursor record onto the undo stack
15043         before the delete action. This fixes 78651.
15044
15045 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
15046
15047         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
15048         CreateParams. Fixes 79329.
15049
15050 2006-09-19  Chris Toshok  <toshok@ximian.com>
15051
15052         * XplatUIX11.cs: a couple of blanket code massage passes to clean
15053         things up a bit.  First, get rid of the NetAtoms array (and the NA
15054         enum), and just embed the atoms as static fields.  Also, add a
15055         couple of functions (StyleSet and ExStyleSet) to clean up all the
15056         bitmask testing of styles.
15057
15058         * X11Structs.cs: remove the NA enum, not needed anymore.
15059         
15060 2006-09-19  Chris Toshok  <toshok@ximian.com>
15061
15062         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
15063         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
15064         added cleanup to get MessageBox titles appearing again, which were
15065         broken by my earlier fix for caption-less/ControlBox-less windows.
15066
15067 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
15068
15069         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
15070           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
15071           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
15072           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
15073           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
15074           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
15075           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
15076           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
15077           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
15078           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
15079           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
15080             Inital import.
15081         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
15082           ToolStripButton.cs: Stubs needed for above.
15083         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
15084
15085 2006-09-15  Chris Toshok  <toshok@ximian.com>
15086
15087         * XplatUIX11.cs:
15088         - make the MessageQueues hashtable Synchronized.
15089         
15090         - SendMessage: if the Hwnd is owned by a different thread, use the
15091         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
15092         thread.  Fixes bug #79201.
15093
15094 2006-09-15  Chris Toshok  <toshok@ximian.com>
15095
15096         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
15097         ControlBox == false, we disallow maximize/minimize/close.  If the
15098         form Caption is "" we also disallow move (and get rid of the Title
15099         decoration).  Unfortunately, regardless of how things are set,
15100         we're stuck with the Title and WM menu.
15101
15102 2006-09-15  Chris Toshok  <toshok@ximian.com>
15103
15104         * Application.cs: add locking around the static message_filters
15105         ArrayList, part of #79196.
15106
15107 2006-09-15  Chris Toshok  <toshok@ximian.com>
15108
15109         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
15110         Form.ControlBox == false, the window has no titlebar nor resize
15111         handles.  fixes bug #79368.
15112
15113 2006-09-15  Chris Toshok  <toshok@ximian.com>
15114
15115         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
15116         >= 0.  Fixes bug #79370.
15117
15118 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
15119         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
15120         * Control.cs:
15121             Add properties: LayoutEngine, Margin, DefaultMargin.
15122             Add method: GetPreferredSize.
15123             Move layout logic from PerformLayout to layout engines. 
15124
15125 2006-09-13  Chris Toshok  <toshok@ximian.com>
15126
15127         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
15128         fix for #79326 broke #78718, so this change addresses that.
15129
15130         - in SendWMDestroyMessages remove the call to
15131         CleanupCachedWindows, since we might be recreating the control and
15132         need to maintain the references to right Hwnd handles.  Also, set
15133         the zombie flag to true for each of the children in the hierarchy
15134         instead of calling hwnd.Dispose.  This will cause GetMessage to
15135         ignore all events for the window except for DestroyNotify.
15136
15137         - In GetMessage, ignore messages except for DestroyNotify for
15138         zombie hwnds.
15139         
15140         * Control.cs: revert the is_recreating fix from the last
15141         ChangeLog.  It's definitely "right", but it breaks switching from
15142         an MDI form to a non-MDI form.  Will need to revisit that.
15143
15144         * Hwnd.cs: add a zombie flag, which means "the
15145         client_window/whole_window handles are invalid, but we're waiting
15146         for the DestroyNotify event to come in for them".  Set the flag to
15147         false explicitly if setting WholeWindow/ClientWindow, and also
15148         when Disposing.
15149         
15150 2006-09-13  Chris Toshok  <toshok@ximian.com>
15151
15152         * XplatUIX11.cs: rework window destruction slightly.
15153
15154         - when destroying the windows associated with a control, we don't
15155         need 2 separate XDestroyWindow calls.  Just the one for the
15156         whole_window (or for client_window if whole_window is somehow
15157         IntPtr.Zero -- can this happen?) is enough.
15158
15159         - reworked SendWMDestroyMessages slightly, so we always dispose
15160         the child control hwnd's after sending the messages.
15161         
15162         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
15163         the two places it was used (one was even using hwnd.Handle and the
15164         other hwnd.client_window.  ugh), adding another call in
15165         SendWMDestroyMessages.  We need this new call because now the
15166         DestroyNotify events in the queue will be ignored for the child
15167         controls (as their hwnd's were disposed, and the window id's
15168         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
15169
15170         - this fixes bug #79326.
15171
15172 2006-09-13  Chris Toshok  <toshok@ximian.com>
15173
15174         * Control.cs: don't always set is_recreating to false at the end
15175         of RecreateHandle, since sometimes we're not done (and won't be
15176         until WndProc handles the WM_DESTROY message).  Also, set
15177         is_recreating to false in the WM_DESTROY handling code.  Part of
15178         the fix for bug #79326.
15179
15180 2006-09-13  Miguel de Icaza  <miguel@novell.com>
15181
15182         * X11DesktopColors.cs: Start the droppage of debugging messages.
15183
15184         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
15185
15186 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
15187
15188         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
15189
15190 2006-09-12  Chris Toshok  <toshok@ximian.com>
15191
15192         * DataGrid.cs (get_ListManager): if the list_manager is null, try
15193         to create it using SetDataSource.  Fixes bug #79151.
15194
15195 2006-09-11  Chris Toshok  <toshok@ximian.com>
15196
15197         * XEventQueue.cs: add a DispatchIdle property.
15198
15199         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
15200         either the queue is null, or the queue has DispatchIdle set to
15201         true.
15202         (DoEvents): set queue.DispatchIdle to false around the
15203         peek/translate/dispatch message loop in this method.  This keeps
15204         Application.Doevents from emitting idle events.  Part of the fix
15205         for #78823.
15206
15207 2006-09-11  Chris Toshok  <toshok@ximian.com>
15208
15209         * DataGrid.cs (set_DataSource): make this work for both the
15210         winforms/datagrid test and ReportBuilder.  It seems as though when
15211         we've created a ListManager (or maybe it's if we have a
15212         BindingContext?), when we set the DataSource it clears the
15213         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
15214         #79333.
15215
15216 2006-09-11  Chris Toshok  <toshok@ximian.com>
15217
15218         * XplatUIX11.cs: deal with queue being null, which happens in all
15219         the Clipboard functions.  Fixes one of the two problems mentioned
15220         in #78612.
15221
15222 2006-09-11  Chris Toshok  <toshok@ximian.com>
15223
15224         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
15225         button on various spots (including outside the menu) works closer
15226         to MS, and doesn't crash.  Fixes #79343.
15227
15228 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
15229
15230         * ListView.cs: Do not initialize item_sorter in init. To match MS,
15231         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
15232         and the internal comparer is set. When a new ListViewItemSorter is set,
15233         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
15234         was specified. No further processing is necessary if SortOrder is set
15235         to it's current value. If Sorting is modified to None, and View is
15236         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
15237         (either custom or our internal ItemComparer) to null, on 1.0 profile
15238         only set item_sorter to null if its our internal IComparer. If Sorting
15239         is modified to Ascending or Descending, then use our internal IComparer
15240         if none is set, and if the current IComparer is our internal one then:
15241         on 2.0 profile always replace it with one for new Sorting, and on 1.0
15242         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
15243         Enum.IsDefined to verify whether a valid View value is specified in
15244         its setter. Automatically sort listview items when listview is
15245         created. In Sort, do nothing if ListView is not yet created, or if
15246         no item_sorter is set (no Sorting was set, Sorting was explicitly set
15247         to None or ListViewItemSorter was set to null). Added Sort overload
15248         taking a bool to indicate whether the ListView should be redrawn when
15249         items are sorted (we use this in ListViewItemCollection to avoid double
15250         redraws). Modified our internal IComparer to take the sort order into
15251         account. In Add and AddRange methods of ListViewItemCollection, also
15252         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
15253         view), but use overload with noredraw option to avoid double redraw.
15254         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
15255         true when View is Tile, and do the same when attempting to set View to
15256         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
15257         for selected/checked indices, as it involves overhead when sorting is
15258         done while these collections are not used all that often. Instead
15259         we'll build the indices on demand. Modified IList implementation of
15260         CheckedIndexCollection to use public methods if object is int.
15261         Modified CheckedListViewItemCollection to hide checked items if
15262         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
15263         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
15264         IList implementation in SelectedIndexCollection to use public methods
15265         if object is int. Modified SelectedListViewItemCollection to hide
15266         selected items if listview is not yet created.
15267         * ListViewItem.cs: CheckedIndices list no longer needs to be
15268         maintained separately (see ListView changes). Also clone font, fixes
15269         test failure.
15270
15271 2006-09-11  Mike Kestner  <mkestner@novell.com>
15272
15273         * ComboBox.cs: if we are updating the contents of the currently
15274         selected index, refresh the control or the textbox selection.
15275         [Fixes #79066]
15276
15277 2006-09-11  Mike Kestner  <mkestner@novell.com>
15278
15279         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
15280         the 'specified' logic has been moved there.  This seems like a bug 
15281         in Control.cs, since our current SetBoundsCore completely ignores 
15282         the specified parameter.  Peter's commit seems to indicate that is 
15283         the way the MS control implementation works.  [Fixes #79325]
15284
15285 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
15286
15287         * XplatUI.cs: Set default_class_name to be composed
15288         of current domain id. This allows MWF to be loaded in multiple
15289         domains on Win32.
15290
15291 2006-09-09  Miguel de Icaza  <miguel@novell.com>
15292
15293         * X11Keyboard.cs: If we are unable to obtain the input method, do
15294         not call CreateXic to create the input context.   Should fix
15295         #78944/79276.
15296
15297 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
15298
15299         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
15300           Simplified gnome support by adding more pinvokes to get the
15301           icon for a file or mime type.
15302
15303 2006-09-08  Jackson Harper  <jackson@ximian.com>
15304
15305         * MenuAPI.cs: Deslect popup context menu items before closing the
15306         window, so that you don't see the previously selected item
15307         selected when you reopen the menu.
15308         * TextControl.cs: Update the cursor position even if we don't have
15309         focus.  This fixes typing in things like the ComboBox.  I'm not
15310         totally sure we should always set the visibility if we don't have
15311         focus, but couldn't find any corner cases where the cursor showed
15312         up when it shouldn't.
15313
15314 2006-09-08  Chris Toshok  <toshok@ximian.com>
15315
15316         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
15317         our arrays are length 256.  & 0xff before indexing.  Fixes the
15318         crash in bug #78077.
15319         
15320 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15321
15322         * ThemeWin32Classic.cs: 
15323         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
15324         is true. Handle that check box too.
15325
15326 2006-09-07  Chris Toshok  <toshok@ximian.com>
15327
15328         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
15329         79244.
15330
15331 2006-09-07  Chris Toshok  <toshok@ximian.com>
15332
15333         * Control.cs: in set_BackColor only do the work if
15334         background_color != value.
15335
15336         * XplatUIX11.cs: move the clearing of invalid areas (both client
15337         and nc) to the same block of code where we set (nc_)expose_pending
15338         to false.  That is, move it from PaintEventEnd to PaintEventStart,
15339         so things that cause invalidates from within OnPaint will trigger
15340         another call to OnPaint.  Fixes bug #79262.
15341
15342 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
15343
15344         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
15345         * FileDialog.cs: Fix typo
15346
15347 2006-09-07  Jackson Harper  <jackson@ximian.com>
15348
15349         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
15350         for tab pages if they have any.
15351
15352 2006-09-06  Mike Kestner  <mkestner@novell.com>
15353
15354         * Splitter.cs: use the "current" rect when finishing drag handle
15355         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
15356
15357 2006-09-06  Mike Kestner  <mkestner@novell.com>
15358
15359         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
15360         support offset splitters. [Fixes #79298]
15361
15362 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
15363
15364         * Mime.cs: Fixed a bug that could override the global mime type
15365           result.
15366
15367 2006-09-05  Jackson Harper  <jackson@ximian.com>
15368
15369         * TabControl.cs: Better calculation method for setting the slider
15370         pos. Prevents crashes on really wide tabs.
15371         - Draw Image on tab pages if an image list is used.
15372
15373 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15374
15375         * MonthCalendar.cs: When Font changes, the Size should be
15376         updated to fit the new font's space requirements.
15377
15378 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
15379
15380         * ListBox.cs: If the items are cleared with Items.Clear set
15381           top_index to 0.
15382
15383 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15384
15385         * MonthCalendar.cs: Handle arrow keys as input keys. Also
15386         fire DateChanged event instead of DateSelected event when
15387         the date was changed by keyboard interaction.
15388
15389 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15390
15391         * DateTimePicker.cs: Handle DateChanged for the associated
15392         month_calendar control, and set month_calendar.Font from 
15393         OnFontChanged method, as well as resize the height of the
15394         control when needed. Make PreferredHeight proportional.
15395
15396 2006-09-01  Chris Toshok  <toshok@ximian.com>
15397
15398         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
15399         properties.
15400
15401         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
15402
15403 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
15404
15405         * FileDialog.cs: Set ClientSize instead of window size, to allow space
15406           for decorations (Fixes #79219)
15407
15408 2006-09-01  Mike Kestner  <mkestner@novell.com>
15409
15410         * ComboBox.cs: first stab at sorting plus some selection handling
15411         fixes to bring us more in line with MS behavior.  Also switches back
15412         to index based selection.  Alternative patches for index-based 
15413         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
15414         and latency@gmx.de on bug 78848.  I assume they were similar to this
15415         code I've had simmering in my tree forever.
15416         [Fixes #78848]
15417
15418 2006-09-01  Chris Toshok  <toshok@ximian.com>
15419
15420         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
15421         when setting list position guard against ending up with a -1 index
15422         (the other part of the fix for #78812).  Should probably make sure
15423         we don't need the analogous fix in the ItemDeleted case.
15424
15425         * DataGrid.cs:
15426         - in SetDataSource, work around the fact that the way
15427         OnBindingContextChanged is invoked will cause us to re-enter this
15428         method.  I'll remove the hack once I investigate
15429         OnBindingContextChanged.
15430
15431         - fix the logic in set_DataSource and set_DataMember (basically
15432         what to do if the other of the two is null.)
15433         
15434         - in OnListManagerItemChanged, we need to take into account the
15435         edit row when deciding whether or not to call RecreateDataGridRows
15436         (part of the fix for #78812).
15437
15438 2006-09-01  Jackson Harper  <jackson@ximian.com>
15439
15440         * Splitter.cs: Don't do anything if there is no control to affect
15441         (prevents us from crashing in weird tet cases).
15442         * TreeView.cs: Bounding box for the mouse movement reverting
15443         focus/selection back to previously selected node.  This matches
15444         MS, and makes the tree a lot more useable.
15445         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
15446         use clipping so they are not drawn.  This fixes when the control
15447         is set to have a transparent background, or if it was over an
15448         image.
15449
15450 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
15451
15452         * MimeIcon.cs: Improved handling for reading default icons when
15453           using gnome (2.16 made it necessary). Check and read svg icons
15454           first, then 48x48 and then 32x32 icons.
15455
15456 2006-08-31  Chris Toshok  <toshok@ximian.com>
15457
15458         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
15459         visible.
15460
15461         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
15462         ProcessKeyPreview.  Fixes part of #77806.
15463
15464         * DataGrid.cs: big patch.
15465
15466         - revert the queueing up of DataSource/DataMember if inside
15467         BeginInit/EndInit calls.  That's not the way the datagrid achieves
15468         its delayed databinding.  Instead, call SetDataSource in
15469         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
15470         #78811.
15471
15472         - Also, it wasn't mentioned in #78811, but the test case exhibits
15473         behavior that was lacking in our datagrid implementation - Columns
15474         that have mapping names that don't exist in the datasource's
15475         properties aren't shown.  Yuck.  To fix this I added the bound
15476         field to the column style, and basically any calculation to figure
15477         out anything about columns uses a loop to find the bound columns.
15478         still need to investigate if I can cache an array of the bound
15479         columns or if the indices must be the same.
15480
15481         - When setting CurrentCell, we no longer abort if the cell being
15482         edited was in the add row.  This fixes the other part of #77806.
15483
15484         - The new code also fixes #78807.
15485         
15486         * ThemeWin32Classic.cs: perpetrate the same disgusting
15487         column.bound field hack, and only render bound fields.
15488
15489 2006-08-31  Chris Toshok  <toshok@ximian.com>
15490
15491         * DataGridColumnStyle.cs: add bound field.  this field is true if
15492         the datasource has a property corresponding to the mapping name.
15493
15494         * DataGridTableStyle.cs: set the bound field on the column styles
15495         depending on whether or not we have a column for that property.
15496
15497 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
15498
15499         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
15500           splitter control (fixes #79228)
15501
15502 2006-08-31  Chris Toshok  <toshok@ximian.com>
15503
15504         * DataGridColumnStyle.cs: we need to delay the assignment of
15505         property descriptor until the last possible moment due to the lazy
15506         databinding stuff in the datagrid.  Also, fix the exceptions
15507         thrown by CheckValidDataSource to match MS.
15508
15509 2006-08-31  Jackson Harper  <jackson@ximian.com>
15510
15511         * Form.cs: When activated select the active control, if there is
15512         no active control, we select the first control.
15513         * XplatUIX11.cs: If there is no focus control when we get a
15514         FocusIn event, find the toplevel form and activate it.  This
15515         occurs when you popup a window, it becomes the focus window, then
15516         you close that window, giving focus back to the main window.
15517
15518 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15519
15520         * MonthCalendar.cs: 
15521         * ThemeWin32Classic.cs: Cache Font in bold style, as well
15522         as StringFormat with Center alignments in MonthCalendar,
15523         instead of creating new ones when drawing the control. 
15524         Also, draw the month name in bold style.
15525
15526 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
15527
15528         * Control.cs:
15529           - PerformLayout(): It would seem MS performs the fill even if the 
15530             control is not visible (part of #79218 fix)
15531           - ResetBackColor(): Use the setter to reset the color, to allow
15532             overriders to catch the change.
15533         * Form.cs:
15534           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
15535           - CreateHandle(): dito (part of $79218 fix)
15536           - Don't set an icon if we have a dialog
15537         * ScrollableControl.cs:
15538           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
15539           - ScrollIntoView(): No need to scroll if control is already visible
15540             (resolves fixme and fixes #79218)
15541
15542 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15543
15544         * MonthCalendar.cs: Change proportions in SingleMonthSize
15545         to match the aspect of the original control.
15546
15547 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
15548
15549         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
15550           get updated when they get maximized.
15551
15552 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
15553
15554         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
15555
15556 2006-08-29  Chris Toshok  <toshok@ximian.com>
15557
15558         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
15559
15560 2006-08-29  Jackson Harper  <jackson@ximian.com>
15561
15562         * TreeView.cs: Need to track selected node and highlighted node,
15563         they aren't always the same thing, when the mouse is down on a
15564         node it is hilighted, but not selected yet.
15565         - Do the HideSelection stuff right
15566         - Need to focus on rbutton mouse down. And redraw selection when
15567         right click is mouse upped.
15568
15569 2006-08-29  Mike Kestner  <mkestner@novell.com>
15570
15571         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
15572         when SubItems.Count < Columns.Count.  [Fixes #79167]
15573
15574 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
15575
15576         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
15577
15578 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
15579
15580         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
15581           from X. Only send based on ConfigureNotify if we don't have the
15582           correct location in hwnd (if the window manager moved us)
15583
15584 2006-08-28  Mike Kestner  <mkestner@novell.com>
15585
15586         * ListView.cs: remove a TODO. 
15587         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
15588         [Fixes ListView part of #79166]
15589
15590 2006-08-28  Mike Kestner  <mkestner@novell.com>
15591
15592         * ListView.cs: move wheel handler to parent since it is focused
15593         instead of the item_control now.  [Fixes #79177]
15594
15595 2006-08-28  Mike Kestner  <mkestner@novell.com>
15596
15597         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
15598         when the control is focused. [Fixes #79171]
15599
15600 2006-08-28  Mike Kestner  <mkestner@novell.com>
15601
15602         * ListView.cs: size the item and header controls for empty and
15603         unscrollable views.
15604         * ThemeWin32Classic.cs: draw disabled backgrounds.
15605         [Fixes #79187]
15606
15607 2006-08-28  Chris Toshok  <toshok@ximian.com>
15608
15609         * Form.cs: remove unused "active_form" static field.
15610
15611         * Hwnd.cs: lock around accesses to static windows collection.
15612
15613         * Application.cs: lock threads in Exit ().
15614
15615 2006-08-28  Chris Toshok  <toshok@ximian.com>
15616
15617         * NativeWindow.cs: lock around accesses to window_collection.
15618         
15619 2006-08-28  Chris Toshok  <toshok@ximian.com>
15620
15621         * Control.cs: err, fix this the right way, by locking on controls
15622         when using it.  not by making it synchronized.
15623
15624 2006-08-28  Chris Toshok  <toshok@ximian.com>
15625
15626         * Control.cs: make the static "controls" field synchronized, as it
15627         gets updated from multiple threads.
15628
15629 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
15630
15631         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
15632           Prevent other threads from exiting when calling thread sets quit state.
15633         * XEventQueue.cs: Added PostQuitState property
15634
15635 2006-08-27  Chris Toshok  <toshok@ximian.com>
15636
15637         * AsyncMethodData.cs: add a slot for the window handle.
15638
15639         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
15640         window (the destination control's window, not the foster window).
15641
15642         * Control.cs (BeginInvokeInternal): store the window's handle in
15643         the AsyncMethodData.
15644         
15645
15646 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
15647
15648         * XplatUIX11.cs:
15649           - PostQuitMessage: Removed resetting S.D display handle, we might have
15650             another loop started after calling PostQuitMessage (Fixes #79119)
15651           - Created destructor to reset S.D handle
15652
15653 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
15654
15655         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
15656
15657 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15658
15659         * TextControl.cs (Insert): Update the caret position even if we don't
15660           have a handle yet, just don't call the driver in that case.
15661         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
15662           to the end of the new selection text (Fixes #79184)
15663
15664 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15665
15666         * Form.cs (Activate): Only activate if the handle is created)
15667         * Control.c:
15668           - Mark window as invisible when it's disposed
15669           - Check if window handle is created when setting window visible, 
15670             instead of relying just on the is_created variable
15671           - Check if object is disposed when creating the control (Fixes #79155)
15672
15673 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15674
15675         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
15676           when allowing layout again. Otherwise we re-generate the anchoring 
15677           distance to the border again and actually alter what the user wanted
15678           This is ugly, it'd be better if we used DisplayRectangle instead of
15679           ClientRectangle for Control.UpdateDistances, but that causes us to
15680           have other problems (initial anchoring positons would be wrong)
15681           (Fixes #78835)
15682
15683 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15684
15685         * Control.cs:
15686           - The size and location setters shouldn't go directly to 
15687             SetBoundsCore, but to SetBounds, which triggers layout on the
15688             parent, then calls SetBoundsCore. (Related to fix for #78835)
15689           - SetBounds: Moved actual location update code into this function
15690             from SetBoundsCore, to match MS. Added call to PerformLayout if
15691             we have a parent (to trigger resizing of anchored parents if the 
15692             child size has changed (see testcase for #78835) 
15693         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
15694           new control code
15695         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
15696
15697 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15698
15699         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
15700           System.Drawing when a toplevel window gets closed; there might
15701           be other toplevel windows belonging to the same app (Fixes #78052)
15702
15703 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
15704
15705         * FileDialog.cs: After reading FileDialog settings from mwf_config
15706           use Desktop prefix only if a real folder doesn't exist anymore.
15707         * FontDialog.cs: Added char sets.
15708           It is now possible to select the font, size or style with the
15709           textboxes.
15710
15711 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
15712
15713         * PrintPreviewDialog.cs: Use assembly name constants.
15714
15715 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15716
15717         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
15718           scrollbar from whacking it's buttons)
15719
15720 2006-08-24  Chris Toshok  <toshok@ximian.com>
15721
15722         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
15723         in this patch (aggregating setting Left/Top/Width/Height to
15724         setting Bounds on the scrollbars), but the crux of the fix is in
15725         Recalculate, where we scroll by the remaining scroll_position if
15726         we're hiding a scrollbar.  The 2*$5 reward in the comment is
15727         serious.
15728
15729 2006-08-24  Jackson Harper  <jackson@ximian.com>
15730
15731         * MdiClient.cs:
15732         * MdiWindowManager.cs: If the form is made a non-mdi window we
15733         need to remove the form closed event so that closing forms works
15734         correctly.
15735
15736 2006-08-24  Jackson Harper  <jackson@ximian.com>
15737
15738         * Control.cs: Make IsRecreating internal so that the driver can
15739         check it
15740         - Temporarily remove the Hide when controls are removed, its
15741         making a whole bunch of things not work because visibility isn't
15742         getting reset elsewhere correctly
15743         * Form.cs: Need to do a full handle recreation when the mdi parent
15744         is set.
15745         * XplatUIX11.cs: If we are recreating handles don't dispose the
15746         HWNDs.  What was happening is the handles were being recreated in
15747         SendWMDestroyMessages, but then flow continued on in that method
15748         and destroyed the new handles.
15749
15750 2006-08-23  Jackson Harper  <jackson@ximian.com>
15751
15752         * Form.cs: MdiClient is always at the back of the bus
15753         * Control.cs: When the order of items in the collection is changed
15754         we need to reset the all_controls array
15755         - do the same sorta setup thats done when adding a control when a
15756         control is set on the collection.
15757
15758 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15759
15760         * TextBoxBase.cs (get_Text): Return an empty array if our document
15761           is empty (fixes #79052)
15762
15763 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15764
15765         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
15766           on WM_SYSCHAR messages (fixes #79053)
15767
15768 2006-08-23  Chris Toshok  <toshok@ximian.com>
15769
15770         * DataGrid.cs: fix flickering when scrolling vertically.
15771
15772 2006-08-23  Chris Toshok  <toshok@ximian.com>
15773
15774         * DataGrid.cs (EndEdit): only invalidate the row header when we
15775         need to.
15776
15777 2006-08-23  Chris Toshok  <toshok@ximian.com>
15778
15779         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
15780         methods.  fixes the flicker when scrolling around.
15781
15782 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15783
15784         * FileDialog.cs: Making sure the control is created before we get a 
15785           chance to use it with BeginInvoke (Fixes #79096)
15786
15787 2006-08-23  Chris Toshok  <toshok@ximian.com>
15788
15789         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
15790         width to use when painting the rows.
15791
15792 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15793
15794         * TextBoxBase.cs:
15795           - Throw ArgumentException if a negative value is passed to SelectionLength
15796           - Update the selection end if start is moved. end needs to be always
15797             after start. (Fixes #79095)
15798           - Track selection length; MS keeps the selection length even if start
15799             is changed; reset on all other operations affection selection
15800
15801 2006-08-22  Jackson Harper  <jackson@ximian.com>
15802
15803         * TreeView.cs: Make sure both scrollbars get displayed and sized
15804         correctly when the other bar is visible.
15805         - Use the original clip rectangle for checking if the area between
15806         the two scrollbars is visible, not the viewport adjusted clipping
15807         rectangle.
15808
15809 2006-08-22  Jackson Harper  <jackson@ximian.com>
15810
15811         * Binding.cs: We don't use IsBinding because it requires the
15812         control to be created, which really shouldn't be necessary just to
15813         set a property on the control.
15814
15815 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15816
15817         * ComboBox.cs: Some CB.ObjectCollection methods must throw
15818         ArgumentNullReferenceException when the argument is null.
15819
15820 2006-08-21  Jackson Harper  <jackson@ximian.com>
15821
15822         * Timer.cs: Track the thread that the timer is started in (NOT
15823         CREATED), this way messages for it will only be triggered on its
15824         queue.
15825         * XEventQueue.cs: Track the timers here, this makes timers per
15826         thread, like MS.
15827         * XplatUIX11.cs: The timers are moved to the XEventQueue.
15828
15829 2006-08-19  Chris Toshok  <toshok@ximian.com>
15830
15831         * XplatUIX11.cs: after further communication with pdb, we get the
15832         best of both worlds.  SetZOrder working for un-Mapped windows, and
15833         no X errors for un-mapped windows.
15834
15835 2006-08-19  Chris Toshok  <toshok@ximian.com>
15836
15837         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
15838         as it was causing pdn toolbars to not have the correct stacking.
15839
15840 2006-08-18  Mike Kestner  <mkestner@novell.com> 
15841
15842         * ListView.cs : guard against negative ClientArea.Width in scrollbar
15843         calculation.  Not sure why control should ever be setting a negative
15844         width though.  Fixes #78931.
15845
15846 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15847
15848         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
15849         null items in ObjectCollection class.
15850         * ListBox.cs.: Likewise.
15851
15852 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
15853
15854         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
15855           as the base method in ThemeWin32Classic should work fine.
15856           Fixed bug #78607.
15857
15858 2006-08-18  Jackson Harper  <jackson@ximian.com>
15859
15860         * Binding.cs: When validating if the value entered doesn't convert
15861         properly reset to the old value.
15862         * RadioButton.cs: Don't fire click when we get focus.
15863
15864 2006-08-18  Jackson Harper  <jackson@ximian.com>
15865
15866         * FileDialog.cs: Paint the selection on the directory combobox the
15867         same way as on MS. 
15868
15869 2006-08-17  Jackson Harper  <jackson@ximian.com>
15870
15871         * ErrorProvider.cs: Don't allow the error control to be selected.
15872         * Control.cs: Don't send the SetFocus messages, the control
15873         activation will do this, and if we do it blindly here validation
15874         does not work.
15875
15876 2006-08-17  Jackson Harper  <jackson@ximian.com>
15877
15878         * Control.cs:
15879         * ContainerControl.cs: Make validation events fire in the correct
15880         order.  TODO: For some reason the first validation event is not
15881         getting fired.
15882
15883 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15884
15885         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
15886
15887 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15888
15889         * ComboBox.cs : implement scroll wheel support for popped-down
15890         state. Fixes #78945. 
15891
15892 2006-08-17  Jackson Harper  <jackson@ximian.com>
15893
15894         * TreeView.cs: Specify treeview actions (old patch that didn't get
15895         committed for some reason).
15896         - Don't let the mouse wheel scroll us too far.  Just want to make
15897         the bottom node visible, not scroll it all the ways to the top.
15898
15899 2006-08-17  Jackson Harper  <jackson@ximian.com>
15900
15901         * XplatUIX11.cs: Mouse wheel events go to the focused window.
15902
15903 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15904
15905         * ComboBox.cs : don't do mouseover selection in simple mode.
15906
15907 2006-08-16  Jackson Harper  <jackson@ximian.com>
15908
15909         * Form.cs: Fire the closing events for all the mdi child windows
15910         when a window is closed.  If the cancel args are set to true, the
15911         main window still gets the event fired, but it doesn't not close.
15912         * MdiWindowManager.cs: Do this closing cleanup in a Closed
15913         handler, instead of when the button is clicked, so cancelling the
15914         close works correctly.
15915         * ComboBox.cs: Send the mouse down to the scrollbar.
15916
15917 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15918
15919         * ListBox.cs: When passing 'null' to SelectedItem,
15920         set SelectedIndex to -1, to unselect items. This is the
15921         observed behaviour in .Net.
15922
15923 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
15924
15925         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
15926           MS flags saying there won't be any. (fixes #78800)
15927         * Control.cs (HandleClick): Made virtual
15928
15929 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
15930
15931         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
15932           cultures. Fixed bug #78399.
15933
15934 2006-08-16  Jackson Harper  <jackson@ximian.com>
15935
15936         * Form.cs: Use the MdiClients MdiChildren property to access
15937         MdiChildren instead of creating the array from the child controls.
15938         * MdiClient.cs: Maintain a separate array of the mdi children, so
15939         that insertion order is maintained when the Z-order is changed.
15940
15941 2006-08-16  Mike Kestner  <mkestner@novell.com> 
15942
15943         * ListView.cs : add an ItemComparer and default to it for sorting.
15944         Fixes #79076, but sorting needs a complete overhaul to be compat with
15945         MS.
15946
15947 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
15948
15949         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
15950
15951 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15952
15953         * Hwnd.cs (Mapped): Properly traverse the tree
15954
15955 2006-08-15  Chris Toshok  <toshok@ximian.com>
15956
15957         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
15958         pass manager.Current.GetType() to ParseData.  It has to be the
15959         property type.  So, hold off doing the ParseData until we're in
15960         SetPropertyValue where we know the type.  This fixes the crash in
15961         #78821 but the textbox is still empty.
15962
15963 2006-08-15  Chris Toshok  <toshok@ximian.com>
15964
15965         * DataGrid.cs:
15966         - when we're scrolling, only call Edit() again if the
15967         current cell is still unobscured. Fixes bug #78927.
15968         - when handling mousedown on a cell, ensure the cell is visible
15969         before calling Edit.
15970         - remove the properties from DataGridRow, and remove the
15971         DataGridParentRow class altogether.
15972         
15973
15974 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15975
15976         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
15977           fire OnTextChanged by ourselves. There's no point calling base,
15978           we don't set the base value anywhere else. Fixes #78773.
15979
15980 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15981
15982         * ListBox.cs: Call CollectionChanged when modifying
15983         an item from Items indexer, to update the actual items
15984         in the list box.
15985
15986 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15987
15988         * PrintDialog.cs: Small fixes for focus and a pair of checks,
15989         to match .Net behaviour.
15990
15991 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15992
15993         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
15994
15995 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
15996
15997         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
15998
15999 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
16000
16001         * MessageBox.cs: Prevent potential NRE exception.
16002         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
16003
16004 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
16005
16006         * MessageBox.cs: Calculate the owner of a messagebox, also make
16007           it topmost. Fixes #78753
16008
16009 2006-08-14  Chris Toshok  <toshok@ximian.com>
16010
16011         * XplatUIX11.cs: A couple of fixes so that metacity will let us
16012         programmatically move windows.  first, set the PPosition hint as
16013         well as the USPosition hint.  Second include some code from pdb
16014         that sets the window type to NORMAL when we set the transient for
16015         hint.  This is because, in the absence of a window type, metacity
16016         thinks any window with TransientFor set is a dialog, and refuses
16017         to let us move it programmatically.  fascists.
16018
16019 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
16020
16021         * XplatUIX11.cs: When setting normal hints, take into consideration
16022           an different hints previously set so we don't delete them (fixes #78866)
16023
16024 2006-08-12  Chris Toshok  <toshok@ximian.com>
16025
16026         * ToolBarButton.cs: make Layout return a boolean, if something to
16027         do with the button's layout changed.
16028
16029         * ToolBar.cs:
16030         - add another parameter to Redraw, @force, which all existing
16031           calls set to true.
16032         - make the Layout function return a boolean which is true if the
16033           layout has actually changed.  Redraw now uses this (and @force)
16034           to determine when to invalidate.  At present the only place
16035           where @force can be false is the call from OnResize, when
16036           background_image == null.  So, resizing a toolbar when the
16037           layout doesn't change results in no drawing.
16038
16039 2006-08-12  Chris Toshok  <toshok@ximian.com>
16040
16041         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
16042         the VScrollBar and HScrollbar reversed.  oops.
16043
16044         * DataGrid.cs: fix the logic that assigns sizes to the implicit
16045         scrollbars.  we were assigning them twice (once in
16046         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
16047         therefore causing two scrollbar resizes (and redraws?) to happen
16048         per grid resize.
16049
16050 2006-08-12  Chris Toshok  <toshok@ximian.com>
16051
16052         * ToolBarButton.cs: redraw the entire button if the theme tells us
16053         to.
16054
16055         * Theme.cs: add ToolBarInvalidateEntireButton.
16056
16057         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
16058         buttons, just the border.
16059
16060         * ThemeNice.cs: redraw the entire toolbar button since we need to
16061         draw the highlight image.
16062
16063         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
16064         we need to redraw the entire button (not just the border).
16065
16066 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
16067
16068         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
16069           for vertical bars. Fixes the mismatches shown by #78513
16070
16071 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
16072
16073         * FileDialog.cs: If a saved/remembered path doesn't exist
16074           anymore, fall back to "Desktop".
16075
16076 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
16077
16078         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
16079           parent. It's apparently legal to not have one
16080         * XplatUIX11.cs:
16081           - SetZOrder: Don't try to set Z-Order on an unmapped window
16082           - CreateWindow: 0,0 are legal coordinates for a window. don't move
16083             it unless the coordinates are negative
16084
16085 2006-08-10  Mike Kestner  <mkestner@novell.com>
16086
16087         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
16088         when setting to null per msdn docs.  Fixes #78854.
16089
16090 2006-08-10  Chris Toshok  <toshok@ximian.com>
16091
16092         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
16093         flickering by setting a clip rectangle on the Graphics when we
16094         need to redraw just a particular menuitem.  Also, rename "OnClick"
16095         to "OnMouseDown" to reflect what it actually is.
16096         
16097         * Form.cs: track the OnMouseDown change.
16098
16099 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
16100
16101         * CommonDialog.cs: Properly inherit the CreateParams from the form
16102           and only change what we need. Fixes #78865
16103
16104 2006-08-10  Chris Toshok  <toshok@ximian.com>
16105
16106         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
16107         flickering in flat mode (and most of the flickering in general) by
16108         only invalidating the button border (and not the entire rectangle)
16109         when the state changes.  A couple of cases still flicker:
16110         ToggleButtons, and the dropdown arrow case when the user mouse
16111         ups.
16112
16113 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
16114
16115         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
16116           for german keyboards. Numlock state shouldn't affect the behaviour
16117           of the Del key. Fixes bug #78291.
16118
16119 2006-08-10  Chris Toshok  <toshok@ximian.com>
16120
16121         * ListControl.cs: remove the items.Clear line from BindDataItems,
16122         as this is the first thing done by both subclasses in their
16123         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
16124         passed -1, refresh the list.  This gets databinding working when
16125         the datasource is set on the list before the datasource is
16126         populated (as in wf-apps/ReportBuilder.)
16127
16128         * ComboBox.cs: remove the argument to BindDataItems.  This call
16129         should really go away, and be initiated by the ListControl code.
16130
16131         * ListBox.cs: same.
16132
16133 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
16134
16135         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
16136           if no data is in the document when the control is displayed
16137
16138 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
16139
16140         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
16141           yes (fixes #78806)
16142         * TextControl.cs: 
16143           - PositionCaret: Allow positioning of caret but don't call methods 
16144             requiring a handle if the window isn't created yet
16145           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
16146           - owner_HandleCreated: Don't position the caret, just update it's 
16147             location. User might have already set a different position
16148
16149 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
16150
16151         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
16152           windows. Screws up the returned coordinates for child windows. 
16153           Fixes #78825. I'm hoping this doesn't break something, since the
16154           code was explicitly put in 8 months ago, but no bug was attached.
16155           Menus still seem to work properly.
16156
16157 2006-08-08  Chris Toshok  <toshok@ximian.com>
16158
16159         * DataGrid.cs: make BeginInit/EndInit actually do what they're
16160         supposed to do - delay data binding until the EndInit call.  Also,
16161         make the table style collection's CollectionChangeAction.Refresh
16162         work properly.
16163
16164         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
16165         (with action = Refresh) when a consituent table's MappingName is
16166         changed.
16167
16168 2006-08-08  Chris Toshok  <toshok@ximian.com>
16169
16170         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
16171         Invalidate, since changing the text can change the size of the all
16172         toolbar buttons.
16173
16174 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
16175
16176         * Form.cs (AddOwnedForm): Still need to add the form to our listif
16177           we don't have it yet
16178
16179 2006-08-08  Chris Toshok  <toshok@ximian.com>
16180
16181         * PrintControllerWithStatusDialog.cs: don't .Close() the status
16182         dialog, as this causes X errors later on, since we actually
16183         destroy the window.  Instead, .Hide() it.
16184
16185 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
16186
16187         * ComboBox.cs: Added focus reflection for popup window
16188         * XplatUIX11.cs: 
16189           - Removed transient setting for non-app windows for now, not sure it
16190             was needed
16191           - Fixed logic checking if we have captions when deciding 
16192             override_redirect, WS_CAPTION is two bits and a 0 check was not
16193             sufficient
16194           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
16195             complicated
16196         * Form.cs: 
16197           - AddOwnedForm: Don't just add the form to the list, call the property
16198             to ensure the driver is informed about the ownership as well
16199           - CreateHandle: Set the TopMost status in the driver if we have an owner
16200         * XplatUI.cs: Fixed debug statement
16201
16202 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
16203         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16204           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
16205           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
16206           TrackBarRenderer.cs: Make constructor private.
16207         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
16208         * ProfessionalColorTable.cs: Make properties virtual.
16209
16210 2006-08-06  Duncan Mak  <duncan@novell.com>
16211
16212         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
16213         is not changing.
16214
16215 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
16216         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16217           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
16218           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
16219           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
16220           Initial import of new 2.0 classes.
16221
16222 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
16223         * Application.cs: Add 2.0 VisualStyles properties.
16224
16225 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
16226         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16227           XplatUIX11.cs: Create property to allow access to existing private
16228           variable "themes_enabled"
16229
16230 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16231
16232         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
16233         file size, as otherwise our class libraries fail using windows. Fixes
16234         bug #78759.
16235
16236 2006-08-04  Jackson Harper  <jackson@ximian.com>
16237
16238         * Form.cs:
16239         * XplatUIX11.cs: Move the toolwindow window manager creation into
16240         the X11 driver, this way on win32 we can let windows create/handle
16241         the toolwindows.
16242
16243 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16244
16245         * PrintDialog.cs: Remove some redundant checks, add some others,
16246         clean some code, and move the focus to the text boxes when the
16247         values are incorrect.
16248
16249 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
16250
16251         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
16252
16253 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
16254
16255         * NumericUpDown.cs: Setting the Minimum and Maximum is now
16256           handled correctly. Fixes bug #79001.
16257
16258 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16259
16260         * PrintDialog.cs: The "Copies" numeric up down must have
16261         set the Minimum property to 1; only if the value is bigger
16262         than 1, activate "Collate" check box. This is the behaviour of .Net.
16263         Also modify the Document elements only if it is not null.
16264
16265 2006-08-03  Jackson Harper  <jackson@ximian.com>
16266
16267         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
16268         length. (We have a larger array then actual node count).
16269                 
16270 2006-08-03  Jackson Harper  <jackson@ximian.com>
16271
16272         * ComboBox.cs: Don't show selection by default.
16273         - The SelectAll isn't needed here, since the focus code should do
16274         that
16275         - DDL style lists to manual selection drawing, so when they
16276         get/lose focus they have to invalidate.
16277
16278 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
16279
16280         * TextBoxBase.cs: Don't always show all selections by default.
16281
16282 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
16283         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
16284           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
16285           Fixed various typos.
16286
16287 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
16288
16289         * Control.cs: Removing the controls in a ControlCollection with
16290           Clear now hides the controls as expected. Fixes bug #78804. 
16291
16292 2006-08-03  Jackson Harper  <jackson@ximian.com>
16293
16294         * Control.cs: Revert previous focus patch, it breaks reflector.
16295
16296 2006-08-03  Jackson Harper  <jackson@ximian.com>
16297
16298         * ComboBox.cs: Cleanup selection and focus with the combobox.
16299         This also eliminates some duplicated keyboard code, since now
16300         everything is handled by the main class.
16301         - Make list selection work on mouse up instead of down, to match
16302         MS.
16303
16304 2006-08-02  Jackson Harper  <jackson@ximian.com>
16305
16306         * Control.cs: Setting focus needs to go through the whole
16307         selection mechanism.
16308
16309 2006-08-02  Chris Toshok  <toshok@ximian.com>
16310
16311         * PrintPreviewDialog.cs: change MinimumSize to use
16312         base.MinimumSize so it works.
16313
16314 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
16315
16316         * TextControl.cs:
16317           - UpdateCaret: Added sanity check in case caret isn't defined yet
16318           - Line.Delete: Now updating selection and caret markers if we're
16319             transfering a node (Properly fixes #78323)
16320           - SetSelectionEnd: Added sanity check
16321         * TextBoxBase.cs: Removed broken attempt to fix #78323
16322
16323 2006-08-01  Chris Toshok  <toshok@ximian.com>
16324
16325         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
16326         Close() call is handled in Form, not here.
16327
16328 2006-08-01  Chris Toshok  <toshok@ximian.com>
16329
16330         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
16331         layout/rendering.
16332
16333         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
16334         for sizes < 100% zoom.  The code now aggressively attempts to keep
16335         from calling document.Print (), and tries not to use the scaling
16336         g.DrawImage whenever possible (it still does if you scale to >
16337         100%, since usually that involves huge images).
16338
16339         * PrintPreviewControl.cs: hook up the close button.
16340
16341 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
16342         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
16343           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
16344           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
16345           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
16346           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
16347           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
16348           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
16349           Removed [Serializable] for 2.0 Event Handlers.
16350
16351 2006-07-31  Jackson Harper  <jackson@ximian.com>
16352
16353         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
16354         * TextControl.cs: Uncomment out the body of this method.
16355
16356 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
16357
16358         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
16359           standard cursors.
16360
16361 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
16362
16363         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
16364           that embed TextBox and need selections visible even if textbox is not
16365           focused to enforce that behaviour.
16366         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
16367           selection drawing
16368
16369 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
16370
16371         * TextControl.cs:
16372           - Added new SetSelectionStart/SetSelectionEnd overloads
16373           - Fixed viewport width assignment to be accurate
16374           - Adjusted alignment line shift calculations to allow cursor on right
16375             aligned lines to be always visible at the right border (like MS)
16376         * TextBoxBase.cs:
16377           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
16378           - TextBoxBase_SizeChanged: recalculating canvas on size changes
16379           - CalculateScrollBars: Use ViewPort size instead of window size, to
16380             properly consider space occupied by the border and scrollbars 
16381             (Fixes #78661)
16382           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
16383             calculations; no longer leaves artifacts
16384           - CaretMoved: Adjusted window scrolling to match MS and fixed several
16385             calculation bugs (Still missing right/center align calculations)
16386
16387 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
16388
16389         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
16390           use of both scroll rect and clip rect, as they do the same.
16391
16392 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
16393
16394         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
16395           in the event handler (fixes #78912)
16396
16397 2006-07-31  Chris Toshok  <toshok@ximian.com>
16398
16399         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
16400         grid.ListManager.Count, since grid.ListManager might be null.
16401         This of course begs the question "why are we drawing rows for a
16402         grid with no list manager (and therefor no rows)?"  Fixes the
16403         crash in bug #78929.
16404
16405 2006-07-31  Chris Toshok  <toshok@ximian.com>
16406
16407         * RelatedPropertyManager.cs: Don't always chain up to the parent
16408         ctor.  instead, call SetDataSource if the parent's position is !=
16409         -1.  Fixes the crash in #78822.
16410
16411 2006-07-31  Chris Toshok  <toshok@ximian.com>
16412
16413         * DataGrid.cs (get_ListManager): use field instead of property
16414         accessors for datasource and datamember.
16415         (RowsCount): make internal again.
16416         (OnMouseDown): end edits before resizing columns/rows.
16417         (OnMouseUp): restart edits after resizing columns/rows.
16418
16419 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
16420
16421         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
16422           This fixes the situation where the last set cursor is displayed
16423           whenever the mouse is over scrollbars.
16424
16425 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16426
16427         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
16428         Document properties, as well as initial values.
16429
16430 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
16431
16432         * XplatUIWin32.cs (SetBorderStyle): Setting both border
16433           and ClientEdge results in a 3-pixel border, which is
16434           wrong.
16435
16436 2006-07-28  Jackson Harper  <jackson@ximian.com>
16437
16438         * TreeNodeCollection.cs: Fix the clear method.
16439         - Fix the Shrink also
16440
16441 2006-07-27  Jackson Harper  <jackson@ximian.com>
16442
16443         * TreeView.cs: Make sure the visible order is computed when we
16444         attempt to size the scrollbars (for trees that mess with the
16445         scrolling when they shouldn't.
16446         - Make sure to give the scrollbars valid values.
16447
16448 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
16449
16450         * XplatUIX11.cs: Move motion compression code to where it
16451           has less performance impact
16452
16453 2006-07-26  Jackson Harper  <jackson@ximian.com>
16454
16455         * UpDownBase.cs: When the control is selected make the child
16456         controls non selectable, so that a click on them won't do a
16457         focus/unfocus cycle.
16458         - Don't give focus to the text box when the spinner is selected.
16459         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
16460
16461 2006-07-26  Chris Toshok  <toshok@ximian.com>
16462
16463         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
16464         satisfied with this solution.  If the bitmaps are small, we should
16465         just cache them in the PrintPreviewDialog and draw them here.
16466         Also, the layout is broken for the 2-up and 3-up cases.
16467
16468         * Theme.cs: add PrintPReviewControlPaint.
16469
16470         * PrintPreviewDialog.cs: first pass implementation.
16471
16472         * PrintPreviewControl.cs: first pass implementation.  No
16473         scrollbars yet.
16474
16475         * PrintDialog.cs: only validate fields if that particular portion
16476         of the UI is enabled.  Also, set the document's controller to a
16477         PrintControllerWithStatusDialog wrapping the document's print
16478         controller.
16479
16480         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
16481         bring up a SaveFileDialog (i hope we don't want to match the
16482         behavior of the crappy windows file entry) and set the
16483         PrinterSettings.PrintFileName accordingly.
16484
16485 2006-07-26  Jackson Harper  <jackson@ximian.com>
16486
16487         * ContainerControl.cs: Add a field that disables auto selecting
16488         the next control in a container when the container is activated.
16489         * UpDownBase.cs: Don't select the text box when the up down is
16490         selected.
16491
16492 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
16493
16494         * XEventQueue.cs: Added methods for peeking (used for compression
16495           of successive events)
16496         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
16497           mouse move events (fixes #78732)
16498
16499 2006-07-25  Jackson Harper  <jackson@ximian.com>
16500
16501         * UpDownBase.cs: Use an internal class for the textbox so that we
16502         can control focus.  the updown control should always have focus,
16503         if either the text area or the buttons are clicked.
16504         - Send the key messages to the textbox, since it never actually
16505         has focus
16506         - Activate and decativate the textbox caret.
16507
16508 2006-07-24  Jackson Harper  <jackson@ximian.com>
16509
16510         * Control.cs: Use the directed select when selecting a control,
16511         this way the container controls override will get called and the
16512         whole ActiveControl chain will get triggered.  TODO: probably need
16513         to make sure this gets done everywhere instead of the old
16514         Select(Control).
16515         * ContainerControl.cs: Implement the directed Select method to
16516         find and activate the correct child control.    
16517         
16518 2006-07-22  Mike Kestner  <mkestner@novell.com>
16519
16520         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
16521         menu handling code so that clicks without a grab work too.
16522         [Fixes #78914]
16523
16524 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
16525
16526         * FileDialog.cs: Enable the BackButton when dirstack has one element.
16527           Added some small optimizations.
16528
16529 2006-07-21  Matt Hargett  <matt@use.net>
16530
16531         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
16532
16533 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
16534
16535         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
16536           tests pass and match MS in some strange border cases.
16537
16538 2006-07-21  Chris Toshok  <toshok@ximian.com>
16539
16540         * ThemeWin32Classic.cs: handle drawing of the relation links and
16541         parent row buttons.
16542
16543         * Theme.cs: change args to DataGridPaintParentRow.
16544
16545         * DataGrid.cs: Don't use controls for the relation links and
16546         parent buttons, so we have to handle all their interactions in
16547         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
16548         when we're navigating through child tables, so we can reinstate
16549         selection, expanded state, current cell, etc.
16550
16551 2006-07-20  Chris Toshok  <toshok@ximian.com>
16552
16553         * ToolBar.cs: When we redraw a button, for whatever reason,
16554         there's no reason to redraw the entire toolbar.  Also, don't call
16555         Control.Refresh from within Redraw, as it's much heavier than
16556         Invalidate (which is really what we want).
16557
16558 2006-07-20  Chris Toshok  <toshok@ximian.com>
16559
16560         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
16561         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
16562         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
16563         traces from within a debug IBindingList datasource
16564         (in mono/winforms/datagrid) for *days*, I've finally gotten things
16565         to work in a similar fashion.
16566
16567 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16568
16569         * ListBox.cs: Don't call Sort () when setting 
16570         the Sorted property to false (avoid an unnecessary sort).
16571
16572 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16573
16574         * ListControl.cs: DataSource should throw an ArgumentException
16575         instead of a normal exception when the argument is not of the 
16576         correct type.
16577
16578 2006-07-20  Mike Kestner  <mkestner@novell.com>
16579
16580         * Control.cs: add InternalPreProcessMessage to allow us to steal
16581         key events before MWF gets its paws on them.  Adapted from a
16582         suggestion by eno.
16583         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
16584         up/down/left/right navigation. Override the new internal control
16585         method to steal the events since they never make it to WndProc.
16586         * ToolBarButton.cs: don't worry about pushed when setting hilight
16587         since the drawing code prefers pushed to hilight. Invalidate on 
16588         Hilight changes. Fixes #78547 and #78525.
16589
16590 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
16591
16592         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
16593           the canvas size. Fixes #78868
16594
16595 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
16596
16597         * Splitter.cs: Track requested split position until first layout
16598           is performed. Fixes #78871
16599
16600 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
16601
16602         * Application.cs: Removed code that forces 1.x for the version
16603           number if the version started with 0. Not sure why that code was
16604           there and I couldn't find any bugs that indicated we needed it.
16605           Fixes #78869
16606
16607 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
16608
16609         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
16610           ResetDefaults(), just write some output to the console until it's
16611           implemented. Fixes bug #78907 for now. Eliminated two warnings.
16612
16613 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
16614
16615         * PropertyGridView.cs: set StartPosition of drop down forms
16616         so they appear in correct initial spot.  Fixes #78190.
16617
16618 2006-07-19  Mike Kestner  <mkestner@novell.com>
16619
16620         * ThemeWin32Classic.cs: use parent background color when drawing
16621         flat toolbars.  Restructure the conditionals to make sure non-flat
16622         non-Divider toolbars are filled too.  Fixes #78837.
16623
16624 2006-07-19  Mike Kestner  <mkestner@novell.com>
16625
16626         * ListBox.cs: Sort on collection changes even if the handle
16627         isn't created yet.  Fixes #78813.
16628
16629 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16630
16631         * ListControl.cs: DisplayMember should never be null,
16632         and now we assign String.Empty when null is passed to it (this
16633         is the .Net way).
16634
16635 2006-07-17  Mike Kestner  <mkestner@novell.com>
16636
16637         * ListViewItem.cs: restructure Font and subitem Font handling 
16638         to hold a specific font and refer back to owner on null.
16639         Fixes #78761.
16640
16641 2006-07-17  Mike Kestner  <mkestner@novell.com>
16642
16643         * ToolBar.cs: bandaid for side-effect of previous patch which was
16644         discarding explicit heights for non-AutoSize toolbars.  Need to
16645         extend my format tester to deal with AutoSize=false. Fixes #78864.
16646
16647 2006-07-15  Jackson Harper  <jackson@ximian.com>
16648
16649         * LabelEditTextBox.cs:
16650         * TreeView.cs: Use a new LabelEdit class for node editing, this
16651         class automatically 'closes' itself when it gets the enter key or
16652         loses focus.
16653         - Use the client rectangle when setting the trees scrollbars, so
16654         border style is taken into account.
16655         
16656 2006-07-14  Jackson Harper  <jackson@ximian.com>
16657
16658         * TreeNode.cs:
16659         * TreeView.cs: Make the editing work similar to MSs, firing the
16660         events correctly and ending edits correctly.
16661
16662 2006-07-14  Mike Kestner  <mkestner@novell.com>
16663
16664         * ToolBarButton.cs:
16665         * ToolBar.cs: layout restructuring and redraw enhancements to support
16666         formatting changes gracefully, like setting TextAlign, ImageList, 
16667         ButtonSize, and Appearance.  Handles explicit button sizing quirks
16668         of the MS controls.  Things like flat toolbars ignoring button size
16669         but becoming constant sized at the largest button's size.  Normal
16670         toolbars with an image set cannot be shrunk smaller than the image,
16671         but text can be clipped/ignored.
16672         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
16673         is zero.  Seems like DrawString should be smart enough to not put
16674         anything on screen though. Also trim labels and ellipsize at the char
16675         boundary, not word.
16676         Fixes #78711 and #78483.
16677
16678 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16679
16680         * FolderBrowserDialog.cs: Disable "New Folder" button and
16681           "New Folder" contextmenu menuitem if a folder like "My Computer"
16682           is selected.
16683
16684 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16685
16686         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
16687         * FolderBrowserDialog.cs:
16688           - Use MWFConfig to store and read size and position settings
16689           - Added code to create a new folder (button or context menu).
16690             Use TreeView labeledit to change the name of the new folder.
16691
16692 2006-07-14  Jackson Harper  <jackson@ximian.com>
16693
16694         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
16695         when the tree is scrolled we end editing.
16696
16697 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16698
16699         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
16700           Down arrows
16701
16702 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
16703
16704         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
16705         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
16706         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
16707         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
16708         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
16709         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
16710         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
16711         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
16712         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
16713         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
16714         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
16715         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
16716         ListViewItemSelectionChangedEventHandler.cs,
16717         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
16718         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
16719         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
16720         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
16721         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
16722         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
16723         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
16724         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
16725         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
16726         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
16727         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
16728         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
16729         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
16730         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
16731         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
16732         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
16733         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
16734         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
16735         WebBrowserNavigatingEventHandler.cs, 
16736         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
16737
16738 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
16739
16740         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
16741         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
16742         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
16743         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
16744         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
16745         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
16746         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
16747         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
16748         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
16749         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
16750         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
16751         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
16752         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
16753         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
16754         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
16755         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
16756         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
16757         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
16758         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
16759         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
16760         ListViewItemStates.cs, MaskFormat.cs: Added
16761
16762 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
16763
16764         * PropertyGridView.cs: Fix keyboard navigation of drop down.
16765         Patch from eno for bug 78558.
16766         
16767 2006-07-13  Jackson Harper  <jackson@ximian.com>
16768
16769         * TreeView.cs: When an edit is finished make sure that the
16770         selected node is visible.
16771         - When setting the top/bottom use the scrollbars is_visible, so
16772         everything will be set correctly even if the tree isn't visible
16773         yet.
16774
16775 2006-07-13  Jackson Harper  <jackson@ximian.com>
16776
16777         * ComboBox.cs: Revert the item->index part of my previous patch.
16778         * TreeView.cs: Use LostFocus instead of Leave for detecting when
16779         the edit box has lost focus (duh).
16780         - Just make the edit box not visible when we get return, that will
16781         take the focus, which will call EndEdit
16782         * TreeNode.cs When we start editing, notify the treeview.
16783
16784 2006-07-12  Jackson Harper  <jackson@ximian.com>
16785
16786         * ComboBox.cs: Clear out old items before setting the item list.
16787         This prevents databound controls from having their items added
16788         twice.
16789         - Switch the combobox to use indices whereever possible instead of
16790         using Item's.  This allows usto navigate through lists that have
16791         more then one item with the same string value (ie a, b, b, a).
16792         - Scroll the listboxes scrollbar when a non visible item is
16793         highlighted
16794         - Allow keypress to cycle through all the possible values. For
16795         example if you have b1, b2, b3 and hold down the B key all the
16796         values will be cycled through.
16797         
16798 2006-07-12  Jackson Harper  <jackson@ximian.com>
16799
16800         * TextBoxBase.cs:
16801         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
16802         this using the internal methods.
16803         * Control.cs: Add OnGotFocusInternal.  A new method that allows
16804         controls to "override" OnGotFocus and change focus behavior if
16805         needed.
16806         - Same thing for LostFocus
16807         * ComboBox.cs: Pass off focus to the text control properly.
16808
16809 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
16810
16811         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
16812         * FolderBrowserDialog.cs: Almost a complete rewrite.
16813           - Better support for Environment.Specialfolders
16814           - Added support for MWFVFS
16815           - Made setting SelectedPath work
16816
16817 2006-07-12  Jackson Harper  <jackson@ximian.com>
16818
16819         * Control.cs: Optimze getting all the controls.
16820
16821 2006-07-11  Jackson Harper  <jackson@ximian.com>
16822
16823         * ContainerControl.cs: Override SETFOCUS in the container control,
16824         so that it is not selected on mouse click.
16825
16826 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
16827
16828         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
16829           Hopefully we will have a better way once all of focus is complete.
16830
16831 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
16832
16833         * ThemeWin32Classic.cs: Commented out some debug code and fixed
16834           a compile error with csc.
16835
16836 2006-07-11  Jackson Harper  <jackson@ximian.com>
16837
16838         * Control.cs: When hiding a control only select the next control
16839         if the current control was focused.
16840         - Don't handle enter/leave when setting/killing focus, this is
16841         done by the container control.
16842         - Remove is_selected, it's not needed anymore.
16843         - Add utility methods for selecting a child control, and for
16844         firing the Enter/Leave events.
16845         * ContainerControl.cs: When a control is activated fire the
16846         enter/leave events.
16847         - Don't wrap when processing the tab key, so that focus can be
16848         moved outside of the container.
16849         - Use the correct active control
16850
16851 2006-07-11  Jackson Harper  <jackson@ximian.com>
16852
16853         * ComboBox.cs: Remove some debug code that was blinding me.
16854         * UpDownBase.cs: These controls actually aren't implicit, they are
16855         visible to the user.
16856
16857 2006-07-10  Chris Toshok  <toshok@ximian.com>
16858
16859         * DataGrid.cs: move back to the is_adding boolean field.  god i
16860         hate this is_editing/is_adding/is_changing stuff.
16861
16862 2006-07-10  Chris Toshok  <toshok@ximian.com>
16863
16864         * DataGridTableStyle.cs: just check if the property type is bool.
16865         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
16866         Don't use CanRenderType.
16867
16868         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
16869         if our text == NullText.  Remove CanRenderType.
16870
16871         * DataGridBoolColumn.cs: nuke CanRenderType.
16872
16873         * DataGrid.cs: reenable some code to end the current edit inside
16874         of set_CurrentCell.  This fixes the other 1.1.16 regression.
16875         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
16876         Also, remove the visible_row_count arg from CalcRowHeaders, since
16877         we don't need to worry about the actual height of the area.
16878
16879 2006-07-10  Chris Toshok  <toshok@ximian.com>
16880
16881         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
16882         mode, just return.
16883
16884         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
16885         the real sense of the IsInEditOrNavigateMode property (true =
16886         navigate, false = edit).  Also, update OnKeyPress to reflect this.
16887
16888         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
16889         column style exists, we still need to set its property descriptor
16890         to match up with our list manager.
16891
16892 2006-07-10  Chris Toshok  <toshok@ximian.com>
16893
16894         * ThemeWin32Classic.cs: implement the new row/header painting
16895         approach.  The parent row painting will likely go away and
16896         replaced with label controls, but the rest seems to work ok (and
16897         efficiently).
16898
16899         * Theme.cs: change the way we draw datagrid rows.  we don't draw
16900         the row headers as a block now.  Instead we draw them in the
16901         normal draw-row loop.  Add some calls for drawing parent rows and
16902         relation rows.
16903
16904         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
16905         a default table style.  Set the defaults from ThemeEngine.Current,
16906         not SystemColors.  Fix lots of misc issues with property setters.
16907
16908         * DataGrid.cs: move loads of style information out of this class
16909         as it's being duplicated with DataGridTableStyle.  keep track of a
16910         special DataGridTableStyle for the properties we used to mirror
16911         here.  Switch all the style properties to access this table style
16912         instead of instance fields of this class.  Also add a internal
16913         class to represent parent rows (more needs to be stored here, like
16914         the selection state from the parent table, as well as the
16915         expansion state.)  Also, for datasources with relations, do the
16916         right thing for collapse/expand, and add support for the
16917         navigation/parent row buttons.
16918
16919         Lastly, fix the crash in the 1.1.16 build.
16920
16921         * GridTableStylesCollection.cs: make the explicit interface
16922         implementations call the class's methods as opposed to duplicating
16923         them.
16924
16925         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
16926         0 so the text doesn't jump around when we move the cursor.
16927
16928 2006-07-10  Jackson Harper  <jackson@ximian.com>
16929
16930         * TextBoxBase.cs:
16931         * ListBox.cs: Match MS's ToString (this makes debugging focus
16932         stuff infinitely easier).
16933
16934 2006-07-10  Jackson Harper  <jackson@ximian.com>
16935
16936         * Control.cs (SelectNextControl): When checking the control's
16937         parent use this instead of ctrl.parent so that null can be passed
16938         to SelectNextControl. (I have unit tests for this).
16939         - Remove unused var.
16940
16941 2006-07-10  Chris Toshok  <toshok@ximian.com>
16942
16943         * CurrencyManager.cs: correct one regression, the removal of the
16944         finalType field.  Also, add a MonoTODO on CanAddRows, implement
16945         Refresh() correctly, and fix some event emission in
16946         ListChangedHandler.
16947
16948 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
16949
16950         * FileDialog.cs: Don't use brackets for new folders if they exist
16951           under *nix. Instead use -(number of existing folders +1).
16952
16953 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
16954
16955         * FileDialog.cs:
16956           - Fixed really nasty bug #78771
16957           - Don't block the whole GUI when reading directories with a lot of
16958             entries. Use an other thread instead and call BeginInvoke to
16959             update the ListView in MWFFileView
16960
16961 2006-07-07  Chris Toshok  <toshok@ximian.com>
16962
16963         * Control.cs (Dispose): release any Capture when disposing.
16964
16965 2006-07-07  Chris Toshok  <toshok@ximian.com>
16966
16967         * LinkLabel.cs (Select): if we chain up to the parent, set
16968         focused_index to -1 so we'll search for the first available link
16969         the next time the user tabs into us.  Also, if the direction is
16970         backward and focused_index == -1, start the search from the last
16971         element.
16972
16973 2006-07-07  Chris Toshok  <toshok@ximian.com>
16974
16975         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
16976         is beyond the end of the text, don't do anything.
16977         (CreateLinkPieces): set our ControlStyles.Selectable based on
16978         whether or not we have any links.
16979         (Link.Invalidate): use a loop instead of foreach.
16980         (Link.set_Start): null out owner.sorted_links so it'll be
16981         recreated by CreateLinkPieces.
16982
16983 2006-07-06  Chris Toshok  <toshok@ximian.com>
16984
16985         * LinkLabel.cs: revert the SetStyle change.
16986
16987 2006-07-06  Chris Toshok  <toshok@ximian.com>
16988
16989         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
16990         (OnEnableChanged): s/Refresh/Invalidate
16991         (OnGotFocus): if we have a focused index already, refocus it (so
16992         if we mouse out/in to the window it'll focus the right link).
16993         (OnKeyDown): move the tab handling out of here.
16994         (OnLostFocus): don't set focused_index to -1, so we can refocus it
16995         when we lose focus.
16996         (OnMouseDown): don't Capture here - Control handles it.  Also,
16997         focus the active link.
16998         (OnMouseUp): don't deal with Capture.
16999         (OnPaintBackgroundInternal): remove.
17000         (OnTextAlignChanged): CreateLinkPieces before calling the
17001         superclass's method.
17002         (OnTextChanged): call CreateLinkPieces before calling superclass's
17003         method.
17004         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
17005         move around.
17006         (Select): implement this, moving the selection between different
17007         links, and call parent.SelectNextControl if we don't have another
17008         link to focus in the given direction.
17009         (CreateLinkPieces): call Invalidate instead of Refresh.
17010         
17011 2006-07-06  Chris Toshok  <toshok@ximian.com>
17012
17013         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
17014         new LinkLabel internals.
17015
17016         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
17017         over pieces looking for active/focused/etc links.  also, deal with
17018         runs of text (and links) with embedded \n's in them, and use
17019         MeasureCharacterRanges instead of MeasureString to figure out the
17020         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
17021         two-step.
17022
17023 2006-07-04  Jackson Harper  <jackson@ximian.com>
17024
17025         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
17026         XKB or key auto repeat, do it manually.  Without key auto repeat,
17027         when a key is held down we get key press, key release, key press,
17028         key release, ... with auto repeat we get key press, key press, key
17029         press ..., and then a release when the key is actually released.
17030
17031 2006-07-03  Jackson Harper  <jackson@ximian.com>
17032
17033         * TabControl.cs:
17034         * ThemeWin32Classic.cs: Tabs do not obey normal background color
17035         rules, they are always control color regardless of the background
17036         color.
17037
17038 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
17039
17040         * FileDialog.cs: Added internal class MWFConfig.
17041           Removed Registry support and replaced it with support for the new
17042           MWFConfig class. See MWFConfig comments for more information.
17043
17044 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
17045
17046         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
17047           rectangle. Added some patches from eno from bug #78490 and fixed
17048           the arrow position for small up and down CPDrawScrollButtons.
17049
17050 2006-06-30  Jackson Harper  <jackson@ximian.com>
17051
17052         * InternalWindowManager.cs: Remove some debug code.
17053         * Form.cs: When an MdiParent is set to null, the window is
17054         "detatched" and becomes a normal window.
17055         * MdiClient.cs: Don't bring the new child form to the front until
17056         it is activated (setting it as active does this), this makes the
17057         previously active forms titlebar get redrawn as inactive.
17058
17059 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
17060
17061         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
17062           with later controls
17063
17064 2006-06-29  Mike Kestner  <mkestner@novell.com>
17065
17066         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
17067         arrow in keynav state.  Fixes #78682.
17068
17069 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
17070
17071         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
17072           order (fixes #78393)
17073
17074 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
17075
17076         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
17077           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
17078           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
17079           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
17080           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
17081           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
17082           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
17083           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
17084           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
17085           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
17086           enumerations (FlagsAttribute, SerializableAttribute, added/removed
17087           values)
17088
17089 2006-06-28  Mike Kestner  <mkestner@novell.com>
17090
17091         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
17092
17093 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
17094
17095         * PropertyGrid.cs,
17096           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
17097           item lines from other area (It also makes BackColor consistent and
17098           compatible with .NET). Fixed bug #78564.
17099
17100 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
17101
17102         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
17103         Patch from Eno for #78555.
17104
17105 2006-06-27  Chris Toshok  <toshok@ximian.com>
17106
17107         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
17108
17109         * DataGridColumnStyle.cs: same.
17110
17111         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
17112         
17113         * DataGridDrawingLogic.cs: nuke.
17114
17115 2006-06-27  Chris Toshok  <toshok@ximian.com>
17116
17117         * DataGridTableStyle.cs: clean up the constructors, and build the
17118         list of child relations for this table.  I have no idea if this is
17119         where we should be doing it (it probably isn't), but since we're
17120         already iterating over the properties..
17121
17122         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
17123         struct and array for keeping track of row information, similar to
17124         what's shown in a hack on
17125         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
17126
17127         * Theme.cs: be consistent about the naming of DataGrid methods,
17128         prefering ColumnWidths and RowHeights over columnsWidths and
17129         RowsHeights.
17130
17131         * ThemeWin32Classic.cs: same, and also add support for variable
17132         sized rows (and the +/- expansion icons for related rows).
17133
17134 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
17135
17136         * TextBoxBase.cs: Applied Eno's patch from #78660
17137
17138 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
17139
17140         * Form.cs (ScaleCore): We don't want to scale our form if it's
17141           state is minimized or maximized, but we still need to scale our
17142           child windows. Also, added try/finally block to ensure layout
17143           gets reset (Fixes #78697)
17144
17145 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
17146
17147         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
17148
17149 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
17150
17151         * Form.cs: Fixed c+p error and added check to resize form if minimum
17152           size is bigger than current size (Fixes #78709)
17153
17154 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
17155
17156         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
17157
17158 2006-06-26  Mike Kestner  <mkestner@novell.com>
17159
17160         * ComboBox.cs: only do Keypress handling in the combo when there  
17161         are items in the collection. Fixes #78710.
17162
17163 2006-06-26  Chris Toshok  <toshok@ximian.com>
17164
17165         * Binding.cs: make this work bi-directionally.  also, clear up
17166         other mixups between Push/Pull Data (e.g. we're supposed to pull
17167         data when validating).
17168
17169         * BindingManagerBase.cs: trim some fully qualified collection
17170         types.
17171
17172         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
17173
17174 2006-06-23  Chris Toshok  <toshok@ximian.com>
17175
17176         * PropertyManager.cs: It appears (according to the unit tests)
17177         that PropertyManager doesn't use
17178         PropertyDescriptor.AddValueChanged to track propery value changes
17179         in its datasource, but uses the same scheme as Binding, where it
17180         looks for a <Property>Changed event and binds to it.
17181
17182         Also, according to the docs, IsSuspended always returns false for
17183         a property manager with a non-null datasource.
17184
17185 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
17186
17187         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
17188           need to update the actual DialogResult. (Fixes #78613)
17189
17190 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
17191
17192         * Form.cs (ShowDialog): Release any captures before running the
17193           new message pump (fixes #78680)
17194
17195 2006-06-22  Mike Kestner  <mkestner@novell.com>
17196
17197         * ListView.cs: Layout column widths properly in details mode even 
17198         if HeaderStyle.None is set.  Fixes #78691.
17199
17200 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
17201
17202         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
17203
17204 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
17205
17206         * Control.cs (ContainsFocus): Using new driver method to get focused
17207           window, instead of trying to use internal tracking var, which can
17208           recursion issues (Fixes #78685)
17209         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
17210           XplatUIWin32.cs: Added GetFocus method to return focused window
17211
17212 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17213
17214         * ColorDialog.cs: when the mouse button is pressed inside the color
17215         matrix, don't let the cursor move out of it until the button is
17216         released, which is the behavior on windows. Changed 'colours' by
17217         'colors' to use the same word consistently.
17218
17219 2006-06-21  Chris Toshok  <toshok@ximian.com>
17220
17221         * DataGrid.cs: add in some basic navigation stuff (navigating to a
17222         child relation and back, using a stack).  Also, remove
17223         GetDataSource and the code that calls it - it's not needed.  Also,
17224         track CurrencyManager.ListName's removal.
17225
17226 2006-06-21  Chris Toshok  <toshok@ximian.com>
17227
17228         * CurrencyManager.cs: push some of the original type checking from
17229         BindingContext.CreateBindingManager to here, and remove some of
17230         the finalType stuff.  Need more tests to make sure I've got the
17231         ListName part right, and we might need more in SetDataSource.
17232
17233         * PropertyManager.cs: add a ctor that takes just the datasource,
17234         and no property name.  Make SetDataSource work with a null
17235         property_name, and make Current return the data_source if the
17236         property descriptor is null.  this makes 'string foo = "hi";
17237         BindingContext[foo].Current' return "hi" as it should.
17238
17239         * RelatedCurrencyManager.cs: make this code more generic - there's
17240         no reason the parent manager has to be CurrencyManager, and
17241         there's no reason to pass the DataRelation.  It suffices to use a
17242         BindingManagerBase and PropetyDescriptor.
17243
17244         * RelatedPropertyManager.cs: make a similar change here.
17245         
17246         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
17247         flower I knew it could be.
17248
17249 2006-06-20  Chris Toshok  <toshok@ximian.com>
17250
17251         * PropertyManager.cs: the PropertyChangedHandler is invoked when
17252         data in the source has changed and we need to update the control,
17253         so s/PullData/PushData.
17254
17255         * CurrencyManager.cs: Refresh is meant to update the control from
17256         data in the datasource.  So, s/PullData/PushData.
17257
17258         * BindingContext.cs: add more ugliness (we weren't handling the
17259         case where data_source = DataTable and data_member = column_name).
17260
17261         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
17262         from the perspective of the datasource.  PullData pulls from the
17263         control, PushData pushes to the control.
17264
17265 2006-06-20  Chris Toshok  <toshok@ximian.com>
17266
17267         * BindingContext.cs: rewrite the CreateBindingManager code to
17268         handle navigation paths more or less properly.  This could
17269         definitely stand some more work, in particular to push the
17270         recursion up to the toplevel.  But that relies on fixes in other
17271         places (System.Data comes to mind).
17272
17273         Also, move to a flat hashtable (and encode the twolevel nature of
17274         the dictionary into the hash key).  This lets us implement the
17275         IEnumerable.GetEnumerator method.
17276
17277         * RelatedCurrencyManager.cs: new class.  Update our view based on
17278         our relation and our parent CurrencyManager's position.
17279
17280         * CurrencyManager.cs: split out some logic from the ctor into
17281         SetView, so it can be called from the new RelatedCurrencyManager
17282         subclass.
17283
17284         * RelatedPropertyManager.cs: new class.  Update our datasource
17285         based on the position of our parent CurrencyManager.
17286
17287         * PropertyManager.cs: split out some logic from the ctor into
17288         SetDataSource, so it can be called from the new RelatedDataSource
17289         subclass.  Also, make the Current getter return the value
17290         of the PropertyDescriptor, not the data_source.
17291
17292         * Binding.cs: no need to duplicate the string splitting code here.
17293
17294 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
17295
17296         * Control.cs:
17297           - set_Enabled: OnEnabledChanged is not called if the inherited state 
17298             of the control is not altered, even though  we might be changing the
17299             internal state of the control (#78458)
17300           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
17301             OnEnabledChanged, to allow easy altering of any child window state
17302           - OnEnabledChanged: Added code to enable/disable driver window state
17303           - OnParentEnabledChanged: Instead of firing the event, call 
17304             OnEnabledChanged, which will fire the event and also a) set driver
17305             window state and pass the enabled state to any grandchildren (#78458)
17306
17307 2006-06-19  Jackson Harper  <jackson@ximian.com>
17308
17309         * InternalWindowManager.cs: We don't set the cursor explicitly
17310         thats done via the response to NCHITTESTs.
17311         - Don't need to adjust for titlebar heights anymore, the
17312         coordinates are coming in the correct coordinates now (see peters
17313         last patch).
17314
17315
17316 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
17317
17318         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
17319           being translated relative to whole window, instead of client window.
17320           That caused broken offsets on mouseclick (and caused gas for our
17321           InternalWindowManager)
17322
17323 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
17324
17325         * TextControl.cs:
17326           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
17327           - Undo(): Added replay of cursor move on DeleteChars action; added
17328             calling Undo() again if a recorded cursor move is invalid (to
17329             ensure that some action is performed on Undo)
17330         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
17331
17332 2006-06-16  Jackson Harper  <jackson@ximian.com>
17333
17334         * MdiClient.cs: Instead of just sizing maximized windows when
17335         there is a resize we also have to adjust the Y of minimized
17336         windows, so they stay pinned to the bottom of the mdi container.
17337         - Eliminate separate tracking of the active control, we can just
17338         get this from the controls collection.
17339         - Paint the decorations for the newly activated titlebar so we get
17340         a pretty blue bar.
17341         * InternalWindowManager.cs:
17342         * ThemeWin32Classic.cs: Minimized windows get all three buttons
17343         even if they are a tool window.
17344         
17345 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
17346
17347         * TextControl.cs (Undo): Handle non-existent cursor locations in the
17348           undo buffer, these can happen when text was deleted and the cursor
17349           was recorded first. Since we will also have a recorded cursor
17350           after the delete this is not an issue. (Fixes #78651)
17351
17352 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
17353
17354         * AccessibleObject.cs: Remove dependence on Control.is_selected;
17355           instead properly track control states internally (allows us to
17356           remove is_selected from Control)
17357
17358 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17359
17360         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
17361         whose width is not a multiple of 8.
17362
17363 2006-06-13  Jackson Harper  <jackson@ximian.com>
17364
17365         * MdiClient.cs:  Only maximize the next child if the current one
17366         is maximized.
17367
17368 2006-06-13  Chris Toshok  <toshok@ximian.com>
17369
17370         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
17371         modified.  Also, guard against grid or grid_drawing being null in
17372         Invalidate.
17373
17374         * DataGrid.cs: Reformat tons of getters/setters.  In the
17375         DataMember setter, just call SetNewDataSource instead of
17376         duplicating some of its functionality.  In SetNewDataSource, don't
17377         check ListManager for null, since the property getter creates the
17378         object if needed.
17379
17380         * DataGridTableStyle.cs: don't set TableStyle or call
17381         SetDataGridInternal on the column here, it's done in
17382         GridColumnStylesCollection.Add.
17383
17384         * GridColumnStylesCollection.cs: fix all the explicit interface
17385         implementations to just call our methods.  Nuke AddInternal() and
17386         move the body of it to Add().  Also, add a call to
17387         column.SetDataGridInternal to Add().
17388
17389         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
17390         base()+duplicate code.  Also, use the Format property instead of
17391         format to generate an Invalidate ala MS.  Lastly, create the
17392         textbox here, unconditionally.
17393         (set_Format): call Invalidate.
17394         (get_TextBox): no need to call EnsureTextBox.
17395         (Commit): remove the message box.
17396         (Edit) remove the call to EnsureTextBox.
17397         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
17398         (EnterNullValue): no need to check textbox for null.
17399         (HideEditBox): no need to check textbox for null.
17400         (SetDataGridInColumn): add the textbox to the grid's controls.
17401         (EnsureTextBox): nuke.
17402         
17403 2006-06-13  Jackson Harper  <jackson@ximian.com>
17404
17405         * MdiWindowManager.cs: Hook up to the maximized menus paint event
17406         and redraw the buttons when needed. Unhook when the window is
17407         unmaximized.
17408         * MainMenu.cs: Add an internal Paint event, the mdi window manager
17409         needs this so that it can redraw its buttons when the menu is
17410         repainted.
17411         * InternalWindowManager.cs:
17412         * Form.cs: The method order has changed for DrawMaximizedButtons,
17413         so that it can be a PaintEventHandler.
17414         
17415 2006-06-13  Jackson Harper  <jackson@ximian.com>
17416
17417         * MdiClient.cs: When we close a maximized mdi window, the next mdi
17418         window is activated and maximized, even if it wasn't before.
17419         - When  a new window is activated repaint the decorations of the
17420         old one, so that it no longer has the Active "look" (the blue
17421         titlebar).
17422         * InternalWindowManager.cs: Open up CreateButtons to base classes
17423         so they can recreate the buttons on state changes.
17424         - If a window is maximized give it all three buttons
17425         * MdiWindowManager.cs: Create the titlebar buttons when the state
17426         is changed, this is needed because a toolwindow will not have all
17427         three buttons until it is maximized.
17428
17429 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
17430
17431         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
17432           Fixed bug #78609.
17433
17434 2006-06-12  Jackson Harper  <jackson@ximian.com>
17435
17436         * KeysConverter.cs: Make sure we handle the Ctrl special case
17437         if its the only key.
17438         
17439 2006-06-12  Jackson Harper  <jackson@ximian.com>
17440
17441         * Theme.cs: Add a method to get the size of a managed window
17442         toolbar button.
17443         * InternalWindowManager.cs: Remove the ButtonSize property, this
17444         should be retrieved from the theme.
17445         * MdiWindowManager.cs: Get the button size from the theme
17446         * ThemeWin32Classic.cs: Make the method to get the managed window
17447         titlebar button size public.
17448         - Handle the different button sizes of maximized toolwindows
17449         (should match any maximized window).
17450         - Get the titlebar height from the theme, not the WM (which gets
17451         it from the theme).
17452
17453 2006-06-12  Jackson Harper  <jackson@ximian.com>
17454
17455         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
17456         event down to the mdi window manager.
17457         - Expose some extra stuff to base classes
17458         - Make sure to end the Capture on an NC Mouse up, so that we can
17459         get double clicks properly, and the sizing doens't stick.
17460         - When doing PointToClient contain it in the workable desktop
17461         area, this prevents windows from changing size when the cursor is
17462         pulled outside of the working area while sizing.
17463         * MdiWindowManager.cs: When we get a double click maximize the
17464         window.
17465         - Reset the cursor after handling mode changes.
17466
17467 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
17468
17469         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
17470           current desktop, instead of just assuming a 0, 0 origin. This
17471           is needed for our internal window manager, to know the top
17472           margin of the desktop
17473
17474 2006-06-12  Chris Toshok  <toshok@ximian.com>
17475
17476         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
17477         we need this to get rid of the selected background in the bool
17478         column.
17479         (CancelEditing): move the ConcedeFocus call to above the Abort
17480         call.  Also, set is_changing to false and invalidate the row
17481         header if we were changing before.
17482         (ProcessKeyPreviewInternal): remove, since noone outside this
17483         class calls it anymore.  Roll the code into ProcessKeyPreview.
17484         (EndEdit): remove the internal version.
17485         (InvalidateCurrentRowHeader): make private.
17486
17487         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
17488         Keys.Escape handling (and with it the last call to
17489         DataGrid.EndEdit from outside the class.)
17490
17491
17492 2006-06-12  Chris Toshok  <toshok@ximian.com>
17493
17494         * DataGridTextBox.cs (.ctor): isedit defaults to false.
17495         (OnKeyPress): set isedit to true.
17496         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
17497         already handled by the grid.
17498
17499         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
17500         right.  ugh.
17501         (set_DataSource): SetDataSource always returns true, so stop
17502         putting it in an if statement.
17503         (EndEdit): get rid of some {}'s
17504         (ProcessGridKey): return true in case Keys.Escape.
17505         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
17506         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
17507         PositionChanged, stopped connecting to CurrentChanged.
17508         (GetDataSource): simplify this a bunch.
17509         (SetDataSource): change return type from bool to void.
17510         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
17511         to this, and make sure we don't set ListManager.Position inside
17512         set_CurrentCell.
17513         (OnListManagerItemChanged): if we're passed an actual index,
17514         redraw that row.
17515
17516         * CurrencyManager.cs (set_Position): don't call PullData here.
17517
17518 2006-06-09  Jackson Harper  <jackson@ximian.com>
17519
17520         * TreeNode.cs:  Recalculate the visible order before doing the
17521         Expand/Collapse Below calls, because those calls generate an
17522         expose.
17523         - Reduce calls to the TreeView property, which is mildly expensive
17524         by using a local var.
17525         * Form.cs: Layout the MDI child windows when creating the parent
17526         form.
17527         - Don't use the internal constructor anymore
17528         * MdiClient.cs: use the parent form width/height (if available)
17529         when laying out the child windows, we do this because the
17530         mdiclient isn't docked yet when the initial layout is done.
17531         - Don't need an internal constructor anymore.
17532
17533 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17534
17535         * FileDialog.cs: handle access errors when trying to create a folder
17536         or changing to a directory. No need to initialize out parameters.
17537
17538 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17539
17540         * FileDialog.cs: Append a number when creating a new folder if the
17541           folder already exists (use parenthesis instead of square brackets)
17542
17543 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17544
17545         * FileDialog.cs:
17546           - Disabled registry support for windows and added better registry
17547             error checking for other systems (need to investigate why it
17548             works perfectly on my system)
17549           - If a folder already exist show an error MessageBox instead of
17550             trying to create an indexed name.
17551           - Fixed a non intentional typo.
17552
17553 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17554
17555         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
17556
17557 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17558
17559         * FileDialog.cs: When creating a new folder don't crash if the
17560           folder already exists.
17561
17562 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17563
17564         * FileDialog.cs: Allmost a complete rewrite.
17565           - added a "virtual" file system that handles the differences
17566             between unix and windows file systems (especially the directory
17567             structure). Moved most of the directory and file handling code
17568             into the vfs.
17569             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
17570             UnixFileSystem and FSEntry.
17571           - Recently used folder/directory, size, location and used file names
17572             (file name ComboBox) are now stored in the registry and get read
17573             before the dialog shows up (fixes part 6 of bug #78446).
17574           - Creation of new folders/directories is now possible (context menu
17575             or ToolBar). Added TextEntryDialog for this that fills in the gap
17576             until ListView.LabelEdit works.
17577           - Fixed cursor handling (bug #78527) and focus handling for
17578             PopupButtonPanel
17579           - Various "Search in" ComboBox enhancements. The content of the
17580             dropdown listbox now almost matches ms.
17581           - Changed the behaviour when the user switches to SpecialFolder
17582             Recent to show the ListView in View.Details.
17583           - Beside using the ToolBar to change the View property of the
17584             file ListView it is now possible to use the context menu too.
17585
17586 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17587
17588         * ComboBox.cs: Don't create a new ObjectCollection when an item
17589           gets inserted. Just insert the item in the existing object_items
17590           ArrayList.
17591
17592 2006-06-08  Jackson Harper  <jackson@ximian.com>
17593
17594         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
17595         that the treeview and root node checks are done also, this fixes a
17596         regression i caused in the unit tests.
17597
17598 2006-06-07  Wade Berrier <wberrier@novell.com> 
17599
17600         * RichTextBox.cs: More ISO8859-1 -> unicode
17601
17602 2006-06-07  Mike Kestner  <mkestner@novell.com>
17603
17604         * ComboBox.cs : use items to hold highlight/selection so that
17605         collection insertions don't require synchronization.
17606
17607 2006-06-07  Jackson Harper  <jackson@ximian.com>
17608
17609         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
17610         routine.  We now always keep the sized edge at the cursor instead
17611         of computing movement and adjusting rects.  There is one buglet
17612         with this method though when the cursor is moved over area that
17613         the window can not expand too (such as the toolbars on the desktop).
17614
17615 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17616
17617         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
17618         here. Fixes crash on startup in AlbumSurfer.
17619
17620 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
17621
17622         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
17623           values
17624
17625 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17626
17627         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
17628         statement to avoid calling XNextEvent which will block if another thread
17629         took the event that we were expecting. Fixes bug #78605.
17630
17631 2006-06-07  Mike Kestner  <mkestner@novell.com>
17632
17633         * ListView.cs : isolated checkbox clicking from the selection logic.
17634         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
17635
17636 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17637
17638         * Form.cs: Check that the value passed to Form.DialogResult
17639         is a valid enum value.
17640
17641 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17642
17643         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
17644         Computer'. Clicking it in the network view goes to 'My Computer'.
17645         Added CIFS filesystem type. Display the mount point of filesystems.
17646         Avoid duplicate mount points (happens for me with CIFS);
17647
17648 2006-06-06  Jackson Harper  <jackson@ximian.com>
17649
17650         * InternalWindowManager.cs: Draw the maximized windows buttons
17651         when resizing.
17652
17653 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17654
17655         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
17656         all other dialogs. Fixes bug #78585.
17657
17658 2006-06-06  Mike Kestner  <mkestner@novell.com>
17659
17660         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
17661         Only invalidate checkbox on checkstate changes to avoid flicker.
17662         * ListBox.cs : avoid unselect/select when clicking selected item.
17663         avoid reselection flicker for already multiselected items.
17664         Fixes #78382.
17665
17666 2006-06-06  Jackson Harper  <jackson@ximian.com>
17667
17668         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
17669         the parent form so that the menu is removed if needed.
17670
17671 2006-06-06  Mike Kestner  <mkestner@novell.com>
17672
17673         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
17674         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
17675
17676 2006-06-06  Mike Kestner  <mkestner@novell.com>
17677
17678         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
17679
17680
17681 2006-06-06  Jackson Harper  <jackson@ximian.com>
17682
17683         * Control.cs: Use the property (instead of the field) to get the
17684         default cursor so it is instantiated correctly.
17685         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
17686         resizes so we need to manually repaint the window decorations here.
17687         - Set the titlebar button locations as soon as they are created,
17688         otherwise they are not set correctly on win32.
17689         
17690 2006-06-06  Chris Toshok  <toshok@ximian.com>
17691
17692         * CurrencyManager.cs (set_Position): call PullData before
17693         OnCurrentChanged.
17694         (AddNew): after calling IBindingList.AddNew, update our
17695         listposition, and call OnCurrentChanged/OnPositionChanged (without
17696         calling PullData).
17697         (OnCurrentChanged): remove the call to PullData from here.
17698         (OnItemChanged): remove the call to PushData from here.
17699         (OnPositionChanged): change the test from == null to != null to
17700         match the other methods.
17701         (ListChangedHandler): the grossest part of the patch.  Implement
17702         this such that it passes the unit tests in CurrencyManagerTest and
17703         the output more or less matches that of MS's implementation.
17704  
17705 2006-06-06  Mike Kestner  <mkestner@novell.com>
17706
17707         * ListView.cs : only update check state on single click.
17708         * ThemeWin32Classic.cs : fix focus drawing for details view without
17709         fullrowselect.  Fixes #78454.
17710         * XplatUIX11.cs : fix for double click emission.
17711
17712 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
17713
17714         * PropertyGridView.cs : Applied Atsushi's patch to fix
17715         font dialog bug  (#78197).
17716
17717 2006-06-05  Jackson Harper  <jackson@ximian.com>
17718
17719         * TreeNode.cs: Compute the next node for expanding/collapsing
17720         correctly. We now factor in nodes without a NextNode
17721         correctly. (Fixes somes cases in nunit-gui).
17722         * InternalWindowManager.cs: Set the bounds when updating the
17723         virtual position of a tool window.
17724         
17725 2006-06-05  Chris Toshok  <toshok@ximian.com>
17726
17727         * DataGrid.cs: rename cached_currencymgr to list_manager.
17728         (set_CurrentCell): move SetCurrentCell code here, and clean it up
17729         some.
17730         (CurrentRow, CurrentColumn): single accessors so we can make the
17731         cursor movement code a lot easier to understand.
17732         (CurrentRowIndex): implement this in terms of CurrentRow.
17733         (BeginEdit): clean this up a bit.
17734         (CancelEditing): sort out the is_editing/is_changing/is_adding
17735         stuff a little.
17736         (EndEdit): minor changes.
17737         (OnKeyDown): add a comment about a (most likely) unnecessary
17738         check.
17739         (OnMouseDown): cancel editing when we click on a row header.  And
17740         use the CurrentRow setter, not CurrentCell.
17741         (ProcessDialogKey): directly call ProcessGridKey.
17742         (UpdateSelectionAfterCursorMove): factor out this common block of
17743         code (it's used everywhere that we move the cursor by updating row
17744         or column).
17745         (ProcessGridKey): pretty substantial overhaul.  Use the
17746         CurrentRow/CurrentColumn properties to make the code a lot more
17747         readable.  Only use the CurrentCell property when we have to
17748         modify both row and column at once.  Tab behavior is still broken,
17749         and Delete is untested.
17750         (Select): if we have no selected rows, set selection_start to
17751         @row.
17752         (EditCurrentCell): rename EditCell this.  It was only ever invoked
17753         with CurrentCell as the arg, so drop the arg and rename it.
17754
17755         * DataGridColumnStyle.cs: clean up the constructors a little, and
17756         drop CommonConstructor().
17757
17758         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
17759         actually get notified when the user hits it.
17760         (ProcessKeyMessage): *substantially* simplify this method.
17761         There's no reason (that I can see) for the textbox to be making
17762         calls into the datagrid at all.  Remove all of them but the ones
17763         for Enter handling.  those will take some more work.
17764
17765         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
17766         calling HideEditBox.
17767         (HideEditBox): if we have an active textbox, render it invisible
17768         without causing a re-layout of the datagrid.
17769
17770 2006-06-05  Mike Kestner  <mkestner@novell.com>
17771
17772         * ListView.cs : fix NRE crasher when focuseditem is cleared by
17773         collection changes by resetting it to Items[0].  Fixes #78587.
17774
17775 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17776
17777         * MessageBox.cs: if the height of the text is larger than the icon_size,
17778         use that. Fixes bug #78575.
17779
17780 2006-06-05  Jackson Harper  <jackson@ximian.com>
17781
17782         * TreeView.cs: Fix line drawing when scrolling.  To do this each
17783         node is basically responsible for drawing its entire horizontal
17784         area.  When drawing a node it draws its parent node lines if
17785         needed.
17786         - Adjust the clip area to the viewport rectangle
17787         - Fix Left/Right key handling to match MS. (It expand/collapses
17788         and moves to parents/first child but does not move selection to
17789         sibling nodes).
17790         - Fix SetTop to work with new bound calculation code
17791         - When scrollbars are no longer needed we need to reset scrolling
17792         vars and recalculate the visible order so the redraw is correct
17793         * TreeNode.cs: We can't expand/collapse nodes with no children.
17794
17795 2006-06-03  John Luke  <john.luke@gmail.com> 
17796
17797         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
17798         so the colors work without dev packages
17799         
17800 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
17801
17802         * Control.cs 
17803           - Select: Implemented to just use activate. Seems to match MS 
17804             behaviour closest. Documented to only do actual control walking 
17805             based on it's parameters if in a container control so I moved 
17806             the code there.
17807           - Removed selection check logic from our internal Select() method
17808         * ContainerControl.cs:
17809           - Select: Moved selection logic from Control here, since MS documents
17810             that containers obey the bool arguments. No longer calling base
17811
17812 2006-06-02  Jackson Harper  <jackson@ximian.com>
17813
17814         * TreeView.cs: If the selected node isn't changed when we get
17815         focus update the previously selected node so that we see the
17816         selection box.
17817
17818 2006-06-02  Mike Kestner  <mkestner@novell.com>
17819
17820         * ComboBox.cs: restructure grab and general mouse event handling.
17821         Make the composite control raise mouse events like it was a single
17822         control for leaves/enters/motion/up/down events.  fix dropdown list
17823         coordinate mangling and refactor it into the scrollbar subclass to
17824         reduce code duplication.  Fixes #78282 #78361 and #78457.
17825
17826 2006-06-02  Mike Kestner  <mkestner@novell.com>
17827
17828         * ScrollBar.cs: remove Capture setting/clearing, as it happens
17829         automatically in the Control.WndProc.
17830
17831 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17832
17833         * FileDialog.cs: fix crash when running SharpChess, which sets the
17834         FilterIndex to 2 with only one Filter.
17835
17836 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17837
17838         * ToolBar.cs: add SizeSpecified property.
17839         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
17840         try to figure out our real size, otherwise fallback to what the
17841         container says.
17842
17843 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
17844
17845         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
17846         * Control.cs (WndProc): MS always calls the DefWndProc to pass
17847           up the event
17848
17849 2006-06-01  Mike Kestner  <mkestner@novell.com>
17850
17851         * ListView.cs: revamp the focus management in ListView.  It still
17852         causes churn of LostFocus/GotFocus emissions on clicks, but it's
17853         better than not handling focus at all.  Will revisit when pdb feels
17854         the general focus handling is solid.  Fixes #78526.
17855
17856 2006-06-01  Jackson Harper  <jackson@ximian.com>
17857
17858         * TreeView.cs: Set the default border style in the constructor.
17859         - Move painting to use OnPaintInternal instead of capturing
17860         WM_PAINT, this is the correct way of doing things
17861         - UpdateBelow shouldn't invalidate the scrollbar area
17862         - Cap the top on update below in case the node was above the top
17863         of the viewport rectangle.
17864         - ExpandBelow and Collapse below need to obey Begin/End Update.
17865         * TreeNode.cs: Make is_expanded internal so the treenode
17866         collection can change it without firing the whole event chain.
17867         * TreeNodeCollection.cs: When clearing all the child nodes make
17868         sure to recalc the visible order.
17869         - Improve algo for remove the top node
17870
17871 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
17872
17873         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
17874           SendMessage directly calling window procedures, which in turn might
17875           call SetFocus()
17876
17877 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
17878
17879         * Control.cs: Don't handle WM_SETFOCUS if the same window already
17880           has focus (works around X11 sending a FocusIn after our SetFocus)
17881         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
17882
17883 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
17884
17885         * Mime.cs: Fix for the NET_2_0 build.
17886           NameValueCollection needs StringComparer now.
17887
17888 2006-05-31  Chris Toshok  <toshok@ximian.com>
17889
17890         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
17891         return (via an out parameter) the starting X of the column.
17892         (UpdateVisibleColumn): track change to FromPixelToColumn.
17893         (HitTest): add a ColumnResize case here.
17894         (DrawResizeLine): new function, probably poorly named.
17895
17896         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
17897         only need to keep one reference.
17898         (set_ListManager): same.
17899         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
17900         Also, add support for HitTestType.ColumnResize.
17901         (OnMouseMove): add column resize behavior here, and change the
17902         cursor to the correct one as we move around the datagrid.
17903         (OnMouseUp): terminate the column resize if we're resizing.
17904         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
17905         for the current cell.
17906         (ConnectListManagerEvents): use cached_currencymgr.
17907         (DisconnectListManagerEvents): fill this in, using
17908         cached_currencymgr.
17909         (SetCurrentCell): remove cached_currencymgr_events handling.
17910         (SetDataMember): only call DisconnectListManagerEvents if
17911         cached_currencymgr is != null.
17912         (SetDataSource): same.
17913         (OnListManagerCurrentChanged): cached_currencymgr_events ->
17914         cached_currencymgr.
17915
17916 2006-05-31  Jackson Harper  <jackson@ximian.com>
17917
17918         * BindingManagerBase.cs: Remove somedebug code that creeped into
17919         SVN.
17920         * TreeNode.cs: We get the indent level dynamically right now, so
17921         don't track it as a member.
17922         * TreeNodeCollection.cs: Make sure all nodes added to the list
17923         have parents, treeviews/topnodes setup properly.
17924         - Don't attempt to track indent level.
17925
17926 2006-05-30  Jackson Harper  <jackson@ximian.com>
17927
17928         * BindingContext.cs: Create the currency manager tables here.
17929         This allows us to more easily create null tables (when bad data
17930         members are used), and more easily create related currency
17931         managers.
17932         * CurrencyManager.cs: All the table creation stuff is done by the
17933         binding context now.
17934         - Current should throw an exception if listposition is -1.
17935         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
17936         been bound yet.
17937
17938 2006-05-30  Mike Kestner  <mkestner@novell.com>
17939
17940         * ListView.cs: allow reexpansion of zero-width column headers.
17941         Fixes #78528.
17942
17943 2006-05-28  Chris Toshok  <toshok@ximian.com>
17944
17945         * CurrencyManager.cs (get_Current): after the late binding
17946         listposition = -1 fix, we need to guard against it here and return
17947         null, otherwise we raise an exception (which is swallowed
17948         elsewhere, and breaks datagrid databinding.)
17949
17950 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
17951
17952         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
17953           than WM_SYSKEY, don't throw if get something unexpected (#78507)
17954
17955 2006-05-26  Jackson Harper  <jackson@ximian.com>
17956
17957         * ControlPaint.cs:
17958         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
17959         values, it's faster and it's all we care about (we don't care if
17960         the names aren't equal).
17961         * KeyboardLayouts.cs: Eliminate some dead code.
17962         - Lazy init things
17963         * X11Keyboard.cs: Lazy init keyboard detection.
17964         - Cleanup access modifiers a little.
17965
17966 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
17967
17968         * XplatUIX11.cs: Once again, attempting to get layout just right.
17969
17970 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
17971
17972         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
17973           the sizes of each link section, that will result in sizes that
17974           match DrawString's layout (Fixes #78391)
17975
17976 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
17977
17978         * FileDialog.cs: If AddExtension property is true autocomplete the
17979           extensions in SaveFileDialog correctly. Fixes bug #78453.
17980           Set MyNetwork and MyComputer to "C:\" for windows. This should
17981           fix part 8 of bug #78446 for now.
17982
17983 2006-05-26  Chris Toshok  <toshok@ximian.com>
17984
17985         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
17986         invalidate the current row header if we need to, but presumably
17987         we'll invalidate the row corrsponding to the bounds or
17988         editingControl.
17989         (GridHScrolled): switch back to this method, as it's part of the
17990         public api.  *sigh*.
17991         (GridVScrolled): same.
17992         (OnMouseWheel): hack up something that more or less works.  Call
17993         GridHScrolled/GridVScrolled directly, instead of duplicating much
17994         of their code here.
17995         (EnsureCellVisibility): reinstate a bunch of this code, since we
17996         can't just set the scrollbar Value and expect to do all the work
17997         in the ValueChanged handler.  Also, Call Update() after scrolling
17998         in one direction so the other XplatX11.ScrollWindow call has the
17999         proper stuff in the proper places.
18000         (EditCell): set is_editing to true before calling .Edit.
18001
18002         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
18003         don't bother comparing first.
18004         (OnKeyPress): call grid.ColumnStartedEditing before calling
18005         base.OnKeyPress.  this will set is_changing and invalidate the row
18006         header if necessary.
18007         (ProcessKeyMessage): for WM_CHAR messages, call
18008         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
18009         and WM_KEYDOWN.
18010         
18011         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
18012         it's done in the DataGrid.
18013         (NextState): call grid.ColumnStartedEditing, which takes care of
18014         invalidating the row header (and setting is_changing).
18015
18016         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
18017         here.  it's done in the DataGrid.
18018
18019 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18020
18021         * Control.cs: allow changing the cursor when the mouse position is
18022         out of bounds but Capture is set.
18023         * LinkLabel.cs: handle the case when the mouse button is pressed on the
18024         linklabel but released somewhere else.
18025
18026 2006-05-25  Jackson Harper  <jackson@ximian.com>
18027
18028         * TreeView.cs: When we get focus if there is no selected node make
18029         it the top node
18030         - Remove some uneeded setup code from Draw.
18031         * TreeNodeCollection.cs: If the tree doesn't have a top node when
18032         a new node is inserted make the new node the top.
18033         * XplatUIX11.cs:
18034         * Timer.cs: Use Utc time so that no local time zone stuff needs to
18035         be used (should be faster).
18036         
18037 2006-05-25  Chris Toshok  <toshok@ximian.com>
18038
18039         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
18040         problem with the last commit.
18041
18042 2006-05-25  Chris Toshok  <toshok@ximian.com>
18043
18044         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
18045         need the invalidate call here, while scrolling right-to-left via
18046         the left arrow key (i.e. moving the editing cell while scrolling).
18047
18048         * DataGrid.cs (.ctor): remove the initialization of
18049         ctrl_pressed/shift_pressed.  We no longer track them using key
18050         up/down handlers, but by using Control.ModifierKeys.  Also, switch
18051         to using ValueChanged handlers on the scrollbars instead of
18052         Scrolled event handlers.  This simplifies a bunch of the scrolling
18053         code.
18054         (GridHValueChanged): rename from GridHScrolled, and change it to
18055         work with the new event args.
18056         (GridVValueChanged): same.
18057         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
18058         (OnMouseWheel): actually scroll the datagrid.  Don't change the
18059         selected cell.
18060         (ProcessGridKey): correct all the keyboard navigation stuff I
18061         could find.  Ctrl up/down/left/right/home/end work now.
18062         (EnsureCellVisibility): correct method name spelling.  Also,
18063         simplify this a touch by not explicitly calling the
18064         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
18065         scrollbar value.
18066         (OnKeyUpDG): no need for this method now.
18067         
18068 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18069
18070         * LinkLabel.cs: display the OverrideCursor when hovering the label.
18071         Fixes bug #78392.
18072
18073 2006-05-25  Chris Toshok  <toshok@ximian.com>
18074
18075         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
18076         r61019.
18077
18078 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
18079
18080         * Application.cs: Moved setting of is_modal and closing to before
18081           we create the control, to allow the event handlers called as a
18082           result of creation affect closing. Also removed Gonzalo's previous
18083           change to setting DialogResult, the behaviour has been moved to 
18084           Form.ShowDialog()
18085         * Form.cs: 
18086           - ShowDialog(): Removed explicit creation of the form, let RunLoop
18087             handle it instead
18088           - ShowDialog(): If no dialog result is set, we need to return Cancel
18089           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
18090             the close is cancelled
18091
18092 2006-05-25  Jackson Harper  <jackson@ximian.com>
18093
18094         * StatusBar.cs: We only need to update the sizes of the other
18095         panels when we have auto size contents.  Also we are only updating
18096         the contents of the panel, not the borders, so compensate for the
18097         border width (TODO: get this width from the theme somehow).
18098         * TreeView.cs: Scrollable is true by default
18099         - Use invalidate instead of refresh where needed
18100         - Factor the scrollable value into scrollbar updating
18101         - Update the scrollbars if the Scrollable property is altered
18102         - Update the selected node if its ImageIndex is changed
18103         - Handle null nodes in UpdateNode (mainly so we don't have to
18104         check if selected is null when updating it
18105         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
18106         are factored into the visible count
18107         - Use VisibleCount for clarity in the code
18108         - When the font is changed we need to recurse through all the
18109         nodes and invalidate their sizes
18110         
18111 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18112
18113         * Application.cs: set the DialogResult to fixed when the main form is
18114         hidden or destroyed while being modal.
18115
18116 2006-05-25  Miguel de Icaza  <miguel@novell.com>
18117
18118         * Theme.cs: Use Tangoified messagebox icons. 
18119
18120         (GetSizedResourceImage): Also cope with width = 0 and do not
18121         trigger a warning in that case (0 means "give me your icon from
18122         the resouce, no special size needed).
18123
18124 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
18125
18126         * Application.cs: Leave runloop if the the main modal form is 
18127           hidden (fixes #78484)
18128
18129 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
18130
18131         * BindingContext.cs : reject null datasource in Contains() and
18132           Item[].
18133         * CurrencyManager.cs : check data_member validity when data_source
18134           is dataset. When it is late binding, the initial position is -1.
18135
18136 2006-05-24  Jackson Harper  <jackson@ximian.com>
18137
18138         * TreeNodeCollection.cs: Dont't recalculate the visible order on
18139         inserted nodes that aren't visible.  This changes the
18140         max_visible_order which confuses scrollbar settings.
18141         - Use the enumerator to get the prev node instead of duplicating
18142         code.
18143         * TreeView.cs: Use new method for setting scrollbar values
18144         - Don't set the bounds every time the scrollbar is updated
18145         - When updating below the root node use an invalidate instead of a
18146         refresh to prevent the child controls (scrollbars) from being
18147         refreshed. (UpdateBelow still needs to be reworked anyways).
18148         - Reenable SetBottom now that visible orders are set correctly,
18149         added some debug code incase we ever get bad values there again.
18150         - Set the scrollbar max to 2 less then the max value, this
18151         compensates for the max value being one above the node count, and
18152         for scrollbars adding one extra "notch".
18153         - When drawing image nodes if there is an imagelist we draw the
18154         first image in the list if the supplied image index is out of the
18155         image list's bounds.
18156         
18157 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
18158
18159         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
18160           we receive a size change from the WM (Fixes #78503)
18161
18162 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
18163
18164         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
18165           rectangle (Fixes #78501)
18166
18167 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
18168
18169         * ButtonBase.cs: 
18170           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
18171             as a bitfield.
18172           - Fixed MouseMove to no longer switch pressed state unless the left
18173             mouse button is pressed. Atsushi provided the original patch (#78485)
18174           
18175 2006-05-24  Jackson Harper  <jackson@ximian.com>
18176
18177         * ScrollBar.cs: New internal methods that allow us to change a
18178         couple values on the scrollbar (the most common case is maximum
18179         and large change) without getting multiple invalidates.
18180
18181 2006-05-24  Chris Toshok  <toshok@ximian.com>
18182
18183         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
18184         (Edit): save off the original state in oldState, and set
18185         grid.is_editing to true.
18186         (OnKeyDown): abort editing if escape is pressed.  also, call
18187         NextState if space is pressed.
18188         (OnMouseDown): call NextState.
18189         (NextState): factor out shared code from OnKeyDown and OnMouseDown
18190         here.  Also, only invalidate the row header once (on the initial
18191         is_changing switch) to save on redraws.
18192
18193 2006-05-24  Chris Toshok  <toshok@ximian.com>
18194
18195         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
18196         if the value in the cell is different than it was before.  This
18197         keeps us from triggering a layout when we move around a datarid
18198         with a highlighted cell.
18199         (Edit): suspend layout when creating/positining the text box, and
18200         resume passing false so we don't ever actually re-layout.
18201         (ReleaseHostedControl): same.
18202         (EnsureTextBox): reformat slightly, and set WordWrap to false.
18203
18204         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
18205         control-key sequences should go to the datagrid - remove that
18206         lock.  Also, modify the conditions under which we move between
18207         cells when moving the cursor within a cell, and remove the "this"
18208         and "base" from field accesses.  We weren't even consistent, given
18209         they all were in the base class.
18210
18211 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
18212
18213         * Binding.cs : (.ctor)
18214           An obvious NRE fix for BindingTest.CtorNullTest().
18215
18216 2006-05-23  Chris Toshok  <toshok@ximian.com>
18217
18218         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
18219         them between lines.  This fixes some quirks editing cells in the
18220         datagrid.
18221
18222 2006-05-23  Jackson Harper  <jackson@ximian.com>
18223
18224         * TreeView.cs: Use begin/end update when doing expand/collapse all
18225         so that we don't get flicker on the scrollbar.
18226
18227 2006-05-23  Jackson Harper  <jackson@ximian.com>
18228
18229         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
18230         treenode calculations to be independant of the painting code. To
18231         do this nodes track a visible order which is calculated by the
18232         treeview.
18233         - Call new methods for expanding/collapsing nodes.  These methods
18234         use scrollwindow so we don't have to update everything below the
18235         node.
18236         * TreeView.cs: Refactored drawing and scrolling code.  We don't
18237         need to update nodes when drawing anymore or calculate scrollbar
18238         stuff.
18239         - Added new methods for expanding/collapsing nodes. These methods
18240         use ScrollWindow so as to not have to redraw all the nodes below.
18241         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
18242         we add/remove nodes or sort.
18243         - Handle removing the selected and the top node properly.
18244
18245 2006-05-23  Chris Toshok  <toshok@ximian.com>
18246
18247         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
18248         maybe this should actually happen in the datagrid code?
18249         (EndEdit): no need to invalidate anything, given that
18250         ReleaseHostedControl causes the datagrid to relayout, which
18251         invalidates everything anyway.
18252
18253         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
18254         in SetCurrentCell).
18255         (set_SelectionBackColor): call InvalidateSelection instead of
18256         Refresh.
18257         (set_SelectionForeColor): same.
18258         (BeginEdit): Flesh this out a bit.
18259         (CancelEditing): only do any of this if we're editing/adding.
18260         (EndEdit): same.
18261         (OnMouseDown): there's no need to cancel editing here, it's done
18262         in SetCurrentCell.
18263         (SetCurrentCell): only invalidate the current row header if it's a
18264         different row than the new one.
18265         (ShiftSelection): fix this to work like MS does.
18266         (ResetSelection): factor out the invalidation of selected_rows to
18267         InvalidateSelection.
18268         (SetDataSource): cancel any editing that's going on.
18269
18270         * DataGridColumnStyle.cs
18271         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
18272         call the non-interface version.
18273
18274         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
18275         header rectangle with the clip rectangle so we don't redraw the
18276         entire header for just a small area.  Gets rid of the last flicker
18277         when horizontally scrolling.
18278         (DataGridPaintRow): same.
18279
18280 2006-05-23  Mike Kestner  <mkestner@novell.com>
18281
18282         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
18283         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
18284         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
18285         Critical bug report.
18286
18287 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
18288
18289         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
18290           and this fixes #78493
18291
18292 2006-05-23  Miguel de Icaza  <miguel@novell.com>
18293
18294         * Theme.cs (GetSizedResourceImage): Scale images if the proper
18295         size is not found.  
18296         
18297         * FileDialog.cs: Do not change the background for the side bar as
18298         it wont work nicely with the theme, and also reduces the artifacts
18299         in rendering the icons (which I want to fix too).
18300
18301         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
18302         resources, not resgen resources. 
18303
18304         (PlatformDefaultHandler): Pull images using the new API.
18305
18306 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
18307
18308         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
18309           a reference to the hwnd and will not remove it unless there are
18310           no pending exposures (fixes #78341)
18311         * XplatUI.cs: Improved debug
18312
18313 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
18314
18315         * MenuAPI.cs : don't handle OnClick event when it was not the left
18316           button. Fixed bug #78487.
18317
18318 2006-05-23  Mike Kestner  <mkestner@novell.com>
18319
18320         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
18321         prefer submenus to the top menu for item lookup, to avoid popping down
18322         top-row items.
18323
18324 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
18325
18326         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
18327           Graphics.FillRectangle as the visual results are really bad (even
18328           on win). We now draw perfect arrows (and perfect shadows when the
18329           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
18330           Pen.DashPattern to draw the dots of each line.
18331
18332 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
18333
18334         * FileDialog.cs: Update the filename combobox when navigating through
18335           the ListView with the cursor keys. Fixes part 7 of bug #78446.
18336
18337 2006-05-22  Mike Kestner  <mkestner@novell.com>
18338
18339         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
18340         Fixes #78463.
18341
18342 2006-05-22  Mike Kestner  <mkestner@novell.com>
18343
18344         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
18345         requests. Fix a misspelled parameter and a copy paste exception error
18346         in Select.
18347
18348 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
18349
18350         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
18351           to get the same width/height (5/13) on X11 as the default font has on
18352           win32. This means that our DefaultFont emSize is smaller than the 
18353           the MS SWF equivalent (even thought the width/height stays the same)
18354
18355 2006-05-20  Jackson Harper  <jackson@ximian.com>
18356
18357         * MdiClient.cs:
18358         * MdiWindowManager.cs:
18359         * InternalWindowManager.cs: Make sure to use the border width from
18360         the theme.
18361
18362 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
18363
18364         * PrintDialog.cs: Implements printer details
18365
18366 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
18367
18368         * FileDialog.cs: Added focus handling for PopupButtonPanel.
18369           Fixes part 1 and 2 of bug #78446
18370
18371 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
18372
18373         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
18374           instead of sticking to the first ever calculated value
18375
18376 2006-05-19  Mike Kestner  <mkestner@novell.com>
18377
18378         * ComboBox.cs: fix mouse motion selection to use MousePosition and
18379         PointToClient, since Capture is set. Fixes #78344.
18380
18381 2006-05-19  Mike Kestner  <mkestner@novell.com>
18382
18383         * ListView.cs: match MS behavior in Details view where items are not
18384         drawn if Columns.Count == 0. 
18385         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
18386         Use a separate pen to draw the check, since changing the width affects
18387         the box as well.  Fixes #78454.
18388
18389 2006-05-18  Miguel de Icaza  <miguel@novell.com>
18390
18391         * ListView.cs: ArgumentOutOfRangeException, single versions of the
18392         exception should throw the name of the invalid argument.
18393
18394         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
18395         there are no files listed. 
18396
18397 2006-05-18  Jackson Harper  <jackson@ximian.com>
18398
18399         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
18400         up.
18401
18402 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
18403
18404         * Control.cs: Brought back our old UpdateZOrder method as a private
18405           function and switched our calls from UpdateZOrder to the new one.
18406           This fixes the Paint.Net canvas disappearing bug.
18407
18408 2006-05-18  Jackson Harper  <jackson@ximian.com>
18409
18410         * Theme.cs:
18411         * ThemeWin32Classic.cs:
18412         * InternalWindowManager.cs: Move the drawing into the theme,
18413         expose everything the theme should need from the window manager.
18414
18415 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
18416
18417         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
18418           from the call to NativeWindow to avoid walking up the parent chain
18419           further than needed (speeds up setting cursors and avoids setting
18420           the wrong cursor if a parent has another cursor defined)
18421         * Cursor.cs: When loading an icon as cursor, MS uses the center of
18422           the icon as hotspot, not what's contained as hotspot in the icon
18423           file. This fixes the perceived drawing offset seen with Paint.Net
18424         
18425 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
18426
18427         * XplatUIX11.cs: 
18428           - Store the calculated rectangle in Hwnd object and use it when 
18429             setting the client size
18430           - Force Toolwindows to always be type Dock, to ensure they're on top
18431
18432 2006-05-18  Mike Kestner  <mkestner@novell.com>
18433
18434         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
18435         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
18436         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
18437         Substantial refactoring to remove confusing nested classes. Coding
18438         standard and Get+Set->property refactorings.  Shift to index based
18439         highlighting in ComboListBox instead of constantly using IndexOf and
18440         Items[]. Add invalidations on resize for DropDownList to fix ugliness
18441         in FileDialog growth.  Draw borders manually since Simple mode needs
18442         to look like two independent controls.  Make listbox border
18443         conditional to DropDownStyle.  Improved OwnerDraw support.
18444
18445 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
18446
18447         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
18448         Don't set the disposed graphics to null, so we can throw the "right"
18449         exception if the graphics is reused later (added a flag to avoid 
18450         double disposing). Some behaviours are different under 2.0 and are
18451         filled under bug #78448.
18452
18453 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
18454
18455         * Control.cs: When double-buffering is enabled, we need to reset
18456           our graphics context between paint calls. Otherwise, any 
18457           transformations and other alterations on the context will 
18458           become cumulative (#77734)
18459
18460 2006-05-18  Mike Kestner  <mkestner@novell.com>
18461
18462         * ListView.cs: do focused item selection like MS on clicks. 
18463         Rework focus handling for ItemControl so LostFocus invalidates as
18464         well.
18465         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
18466         the ListView ItemControl has focus.
18467
18468 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
18469
18470         * XplatUIX11.cs: If client_window ends up being width or height zero
18471           due to border settings, move it off window inside whole_window (#78433)
18472
18473 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
18474
18475         * Mime.cs: Shrink the mime file cache correctly.
18476
18477 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
18478
18479         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
18480
18481 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18482
18483         * XplatUIX11.cs (AddExpose): More sanity checks
18484
18485 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18486
18487         * XplatUIX11.cs:
18488           - AddExpose: Don't add expose ranges outside the size of our
18489             window
18490           - Cast opacity values to Int32 to avoid crashes with certain
18491             values
18492           - Added disabled code paths that protect against illegal cross-
18493             thread painting (Developers.exe)
18494
18495 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18496
18497         * ProgressBar.cs: Invalidate the control when it's resized
18498           since block size is based on control size. (#78388)
18499
18500 2006-05-16  Miguel de Icaza  <miguel@novell.com>
18501
18502         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
18503         of setting the incoming argument to the "reset" value, we set the
18504         this.datamember to string.empty (before we were invalidating the
18505         incoming data).   
18506
18507         Fixes 78420
18508
18509 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18510
18511         * Form.cs: Only apply transparency settings after the form
18512           is created. (Fixes #77800)
18513
18514 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18515
18516         * ApplicationContext.cs: Grab the HandleDestroyed event so
18517           we know when to fire OnMainFormClosed 
18518
18519 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18520
18521         * Application.cs: Introduced sub-class to allow tracking of
18522           threads and centralized triggering of the event mess for
18523           ThreadExit, AppExit, etc..  (#76156)
18524
18525 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
18526
18527         * MimeIcon.cs:
18528           - Do not return a null icon index value for a mime subclass.
18529             Instead try the main mime type class too.
18530           - Seems that some newer distributions don't have a link to some
18531             gnome default icons anymore. So check the default gnome dir too.
18532           
18533
18534 2006-05-16  Jackson Harper  <jackson@ximian.com>
18535
18536         * MdiClient.cs: Don't paint the parent background image if we have
18537         our own background image.
18538
18539 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18540
18541         * Control.cs:
18542           - PerformLayout: Do not shrink space filled by DockStyle.Fill
18543             controls, all filled controls are supposed to overlap (#78080)
18544           - UpdateZOrder is supposed to update the control's z-order in the
18545             parent's z-order chain. Fixed to behave like that
18546           - BringToFront: Removed obsolete code
18547           - SendToBack: Simplyfied
18548           - SetChildIndex: Trigger layout calculations when Z-order changes
18549             since layout is done by z-order
18550
18551 2006-05-16  Chris Toshok  <toshok@ximian.com>
18552
18553         [ fixes bug #78410 ]
18554         * DataGrid.cs (set_AlternatingBackColor): use
18555         grid_drawing.InvalidateCells instead of Refresh().
18556         (set_BackColor): call grid_drawing.InvalidateCells.
18557         (set_BackgroundColor): use Invalidate instead of Refresh.
18558
18559         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
18560         invalidate the cell area.
18561
18562 2006-05-15  Chris Toshok  <toshok@ximian.com>
18563
18564         [ fixes bug #78011 ]
18565         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
18566         on to DataGridPaintRow.
18567         (DataGridPaintRow): take a clip argument, and only draw the cells
18568         which intersect it.  same with the not_usedarea.
18569
18570         * Theme.cs (DataGridPaintRow) add @clip parameter.
18571
18572         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
18573         XplatUI.ScrollWindow.
18574         (ScrollToRow): same.
18575
18576         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
18577         with last column which was causing a gray swath to appear with the
18578         XplatUI.ScrollWindow code.
18579
18580 2006-05-15  Chris Toshok  <toshok@ximian.com>
18581
18582         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
18583         use XplatUI.ScrollWindow.
18584         (VerticalScrollEvent): use XplatUI.ScrollWindow.
18585
18586 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
18587
18588         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
18589
18590 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
18591
18592         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
18593           file since there are no equivalent X11 cursors
18594
18595 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
18596
18597         * MonthCalendar.cs : DateTimePicker should reflect selected date
18598           on mouse*up*, not mouse*down*. Fixed originally reported part of
18599           bug #76474.
18600
18601 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
18602
18603         * TabControl.cs : When argument index is equal or more than tab
18604           count, just ignore. Fixed bug #78395.
18605
18606 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
18607
18608         * Control.cs: Dispose all child controls when control is diposed (#78394)
18609
18610 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18611
18612         * ColorDialog.cs: Finally it is possible to select the color with
18613           the text boxes
18614
18615 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18616
18617         * PrintDialog.cs: Fix typo
18618
18619 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18620
18621         * PrintDialog.cs: PrintDialog is not resizable
18622         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
18623           color. Made some ToolBar drawing methods protected virtual.
18624
18625 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
18626
18627         * PrintDialog.cs: Implementation of the PrintDialog
18628
18629 2006-05-12  Chris Toshok  <toshok@ximian.com>
18630
18631         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
18632         thumb, instead use MoveThumb.  This has the side effect of making
18633         most of the other thumb moving machinery use MoveThumb as well.
18634         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
18635         need to actually invalidate the rectangle where the new thumb will
18636         go.
18637         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
18638         We force an Update() after, so it's not as fast as it could be,
18639         but at least there's zero flicker and no droppings.
18640         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
18641         (UpdateThumbPos): add another argument (dirty), which says whether
18642         or not to calculate/add dirty regions which we later invalidate.
18643         For cases where we know we're going to use MoveThumb, we pass
18644         false for this.  Otherwise, pass true.
18645
18646 2006-05-12  Jackson Harper  <jackson@ximian.com>
18647
18648         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
18649         the status bar.
18650         
18651 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
18652
18653         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
18654           and GetClipRegion methods and UserClipWontExposeParent property.
18655         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
18656           overriding UserClipWontExposeParent property, setting to false, since
18657           Win32 handles the required expose messages to draw our clipped parent
18658           areas internally
18659         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
18660           PaintEventStart to set the user clip region if set.
18661         * Control.cs: 
18662           - Now internally tracking the Region for the control since we need to
18663             store it if the handle is not yet created and only set it when it
18664             becomes created. Before setting the region forced handle creation
18665           - Added code to draw the parents underneath a user-clipped region
18666         * Hwnd.cs: Added UserClip property
18667
18668 2006-05-12  Chris Toshok  <toshok@ximian.com>
18669
18670         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
18671         (set_Maximum): same.
18672         (set_Minimum): same.
18673         (set_SmallChange): same.
18674         (OnMouseUpSB): remove the call to refresh when releasing the
18675         thumb.  We shouldn't need it.
18676         
18677 2006-05-12  Miguel de Icaza  <miguel@novell.com>
18678
18679         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
18680         AutoSize set to None, we do not need to relayout everything, we
18681         just need to invalidate the current region.
18682
18683         (Draw): Do not draw the entire ClientArea, just redraw the
18684         clip area being passed.
18685
18686         * MdiClient.cs: Make MdiClient constructor with the Form argument
18687         internal. 
18688
18689 2006-05-12  Jackson Harper  <jackson@ximian.com>
18690
18691         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
18692         parents background image,  but strangely not their own.
18693         - (DrawStatusBarPanel): Take into account horizontal alignment
18694         when drawing the strings and icons.
18695
18696 2006-05-12  Mike Kestner  <mkestner@novell.com>
18697
18698         * ListBox.cs: avoid invalidations for focus when the collection is
18699         empty. 
18700
18701 2006-05-12  Chris Toshok  <toshok@ximian.com>
18702
18703         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
18704         invalidate the entire thumb area.  Call InvalidateDirty which
18705         limits the redraw to the thumb itself and surrounding pixels.
18706
18707         * XplatUIX11.cs (ScrollWindow): optimize copying.
18708         
18709 2006-05-12  Chris Toshok  <toshok@ximian.com>
18710
18711         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
18712         Figure out the positioning/layout in a single pass instead of
18713         multiple recursive invocations.  Speeds up the initial display of
18714         the data grid.  Also, make many things private that were
18715         originally public but unused outside this class.
18716
18717 2006-05-11  Jackson Harper  <jackson@ximian.com>
18718
18719         * MdiClient.cs: Improved layout code.
18720
18721 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
18722
18723         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
18724           not SelectedObject.
18725
18726 2006-05-11  Chris Toshok  <toshok@ximian.com>
18727
18728         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
18729         union of that will always be {0,0,width,height}.
18730
18731 2006-05-11  Jackson Harper  <jackson@ximian.com>
18732
18733         * Form.cs: Match MS's DefaultSize for forms (they must have
18734         changed the size in sp2).
18735
18736 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
18737
18738         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
18739
18740 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
18741
18742         * TextControl.cs : Fixed bug #78109. This incorrect position
18743           comparison caused crash on automatic line split.
18744         * TextBoxBase.cs : reduce duplicate code.
18745
18746 2006-05-10  Jackson Harper  <jackson@ximian.com>
18747
18748         * MdiClient.cs: Active form is only sent to the back when using
18749         the Next form functionality, when a form is clicked the current
18750         active shouldn't be sent to the back.
18751         - Layout the mdi windows when the container is first made visible.
18752         * Form.cs: Give the MdiClient a ref to the containing form when we
18753         create it.
18754         
18755 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
18756
18757         * LinkLabel.cs : link_font could be uninitialized, so populate one
18758           before actual use. Fixed bug #78340.
18759
18760 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
18761
18762         * XplatUIX11.cs : clipboard format native value is IntPtr.
18763           Fixed bug #78283.
18764
18765 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18766
18767         * Control.cs: 
18768           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
18769             which is passed up the parent chain by DefWndProc
18770           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
18771             to DefWndProc (#77956)
18772         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
18773
18774 2006-05-10  Jackson Harper  <jackson@ximian.com>
18775
18776         * MdiClient.cs: We need to remove the controls from the mdi
18777         collection, when we close the window.
18778         * MdiWindowManager.cs: Special handling of closing mdi windows.
18779         * InternalWindowManager.cs: Make the close method virtual so the
18780         mdi window manager can handle it specially.
18781
18782 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
18783
18784         * DataGrid.cs:
18785           - Recalculate grid when the data source has changed
18786           - Matches styles provided by user from all data sources types
18787         * DataGridTableStyle.cs: For columns that provided by the user set the
18788         with the preferred value is there was unassigned.
18789         * CurrencyManager.cs: throw OnItemChanged event
18790
18791 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
18792
18793         * PictureBox.cs: Don't animate until handle is created. Start animation
18794           when handle is created.
18795
18796 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18797
18798         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
18799           current codebase.
18800         * XEventQueue.cs: We don't need to provide the extra info
18801
18802 2006-05-10  Jackson Harper  <jackson@ximian.com>
18803
18804         * MdiClient.cs: If the mdi clients parent form has a background
18805         image set, we draw that background image for the mdi area's
18806         background.
18807
18808 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18809
18810         * TextBoxBase.cs: Set IBeam cursor (#78347)
18811
18812 2006-05-10  Mike Kestner  <mkestner@novell.com>
18813
18814         * ToolBar.cs: fix some text padding issues with ButtonSize
18815         calculation. Update the default size to match MS documentation.
18816         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
18817         button size. Fixes #78296.
18818
18819 2006-05-10  Mike Kestner  <mkestner@novell.com>
18820
18821         * ListBox.cs: use is_visible for scrollbar positioning in case the
18822         control isn't on screen yet.  Fix off by one with Right vs Width
18823         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
18824         
18825 2006-05-10  Jackson Harper  <jackson@ximian.com>
18826
18827         * X11Dnd.cs: Drop to a control with another control on top of it.
18828         * ToolBar.cs: Work on a copy of the buttons list, so that it can
18829         be modified in click handlers. TODO: Look for similar problems in
18830         other controls.
18831
18832 2006-05-09  Jackson Harper  <jackson@ximian.com>
18833
18834         * Form.cs: Window managers need the old window state when setting
18835         window state now.
18836         * InternalWindowManager.cs: Allow the base mdi window manager to
18837         handle more of the MDI only stuff (like maximize buttons).
18838         * MdiWindowManager.cs: Fix some snafus in changing the window
18839         state.  Add all the menu functionality, for both popup and
18840         maximized menus.
18841         * MdiClient.cs: When a new form is selected the currently
18842         activated form is sent to the back, this matches MS.
18843         - Implement a new method to activate the next mdi child window.
18844
18845 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
18846
18847         * Control.cs: 
18848           - Added new InternalCapture method to allow controls to prevent
18849             the capture behaviour on the click handlers
18850           - Switched to use InternalCapture
18851         * ComboBox.cs:
18852           - Using InternalCapture to prevent mouse captures from being released
18853             on mouse button release (Fixes #78100)
18854         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
18855           returns Form borders if a caption is present. (Fixes #78310)
18856
18857 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
18858
18859         * TreeNode.cs: Changed serialization .ctor to not require every field
18860           to be present. (#78265)
18861         * OwnerDrawPropertyBag.cs: Added serialization .ctor
18862
18863 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
18864
18865         * MimeIcon.cs: for is faster than foreach for strings.
18866
18867 2006-05-05  Mike Kestner  <mkestner@novell.com>
18868
18869         * CheckedListBox.cs: update check handling code to not use selected.
18870         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
18871         behavior for visual feedback, motion response, shift/ctrl handling,
18872         and properly deal with all 4 selection modes. Updates to bounds
18873         handling logic.  Add scroll wheel support. [Fixes #77842]
18874
18875 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
18876
18877         * ListView.cs:
18878           - Moved adding of Implicit controls into .ctor. That way, subsequent
18879             creation of the controls will not cause them to think they are 
18880             toplevel windows (fixes #78200 header problem)
18881           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
18882           - Switched visibility setting of header control to use internal field
18883             to avoid triggering handle creation
18884           - Now checking if handle is created before causing a refresh when items
18885             are added (This makes us now match handle creation time with MS)
18886         * Splitter.cs: Removed loading of private splitter cursor, switched to
18887           Cursors version now that that is loading the right ones
18888         * Cursors.cs: Load proper splitter cursors from resources
18889         * Cursor.cs: Added second method of loading resource cursors for the 
18890           VS.Net users amongst us
18891
18892 2006-05-05  Mike Kestner  <mkestner@novell.com>
18893
18894         * ListView.cs: give header_control a minimum size based on the
18895         ListView size.
18896
18897 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
18898
18899         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
18900           window seems to do that with metacity, so set that type. (#78120)
18901
18902 2006-05-05  Mike Kestner  <mkestner@novell.com>
18903
18904         * ListViewItem.cs: fix Details mode checkbox layout bug.
18905         * ThemeWin32Classic.cs: draw a ListView column header for unused space
18906         at the end of the header, if it exists. [Fixes for #78200]
18907
18908 2006-05-04  Jackson Harper  <jackson@ximian.com>
18909
18910         * MdiClient.cs: Add a helper property to get the container form.
18911         * MdiWindowManager.cs: We have to make sure to use the menu origin
18912         when drawing the icons and buttons, this fixes maximized window
18913         icons/buttons on win32.
18914         * InternalWindowManager.cs: Reset the restore captions when a
18915         window goes from Maximized to Minimized and vice versa. Move the
18916         DrawMaximizedButtons into the MdiWindowManager source, tool
18917         windows can't be maximized. NOTE: This could use a little
18918         refactoring if time ever permits.
18919         
18920 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
18921
18922         * TextBox.cs: Add MWFCategoryAttributes
18923         * TextBoxBase.cs: Add MWFCategoryAttributes
18924         * Form.cs: Add MWFCategoryAttributes
18925
18926 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
18927
18928         * Control.cs: Add MWFCategoryAttributes
18929         * ScrollableControl.cs: Add MWFCategoryAttributes
18930
18931 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
18932
18933         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
18934           Divider is true. Fix a little glitch in PropertyToolBar
18935           drawing code
18936
18937 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
18938
18939         * Control.cs:
18940           - Dispose: Call base.Dispose, this causes the disposed event
18941             to be fired (and probably other, more important stuff)
18942           - SetVisibleCore: Set is_visible to true after creating the
18943             window so that the window still gets created invisible (if
18944             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
18945             to generate a WM_ACTIVE message
18946         * Form.cs: Call Dispose when we want to destroy the window, instead of
18947           just destroying the handle (Dispose will do that for us)
18948         * XplatUIX11.cs:
18949           - RootWindow also needs a queue, so we can properly process the
18950             property change events from RootWindow (like Activate)
18951           - Generatic synthetic WM_ACTIVE message when the active window is
18952             being destroyed
18953
18954 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
18955
18956         * LinkLabel.cs: Trigger a recalc of our label dimensions when
18957           bounds are changed
18958
18959 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
18960
18961         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
18962           for determining width and height (image might not be assigned if
18963           we're drawing an imagelist)
18964
18965 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
18966
18967         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
18968         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
18969           height from system
18970         * Theme.cs: No longer returns hardcoded menu height, instead calls
18971           new driver method
18972         * Form.cs (OnLoad): Scaling happens before triggering Load events 
18973           on MS (# 78257)
18974
18975 2006-05-01  Mike Kestner  <mkestner@novell.com>
18976
18977         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
18978
18979 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
18980
18981         * TextBoxBase.cs: Removed Fixme
18982         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
18983
18984 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
18985
18986         * XplatUIX11.cs:
18987           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
18988             the rectangle relative to the parent, considering borders. We
18989             don't really want that.
18990           - ScrollWindow: Fixed warning to be more understandable
18991         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
18992           scrollbars and scroll only the visible area
18993         * RichTextBox.cs: Removed debug output
18994
18995 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
18996
18997         * NumericUpDown.cs (Text): Just use base
18998         * UpDownBase.cs: Ensure txtView is created before using it
18999
19000 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
19001
19002         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
19003           casting to IntPtr to avoid 64bit overflow errors
19004
19005 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
19006
19007         * Control.cs:
19008           - AllowDrop: Don't force handle creation.
19009           - CreateHandle: Added call to tell driver if we're allowed to drop
19010
19011 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
19012
19013         * FileDialog.cs: Remember the last directory not only for the
19014           current instance but also for new FileDialog instances.
19015
19016 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
19017         
19018         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
19019           broke sending async messages
19020
19021 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
19022
19023         * XplatUIX11.cs:
19024           - ScrollWindow: Fixed method. We finally generate expose events again
19025             for scrolled areas. This was causing 'garbage' when scrolling
19026             textbox and other controls that used ScrollWindow
19027           - Switched from using the regular queue for paint events to the MS 
19028             model of 'generating' paint events when the queue is empty.
19029             We use the new XQueueEvent.Paint subclass to store which windows
19030             need painting.
19031           - AddExpose now takes the x/y/width/height of the exposed area
19032             and inserts the window into the paint queue if not already there
19033           - InvalidateWholeWindow: Switched to use new AddExpose method
19034           - UpdateMessageQueue: Added which queue to monitor for paint events
19035           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
19036             the unlikely case nothing above handles it. We reset the expose
19037             pending states to get them off the queue.
19038           - GetMessage: Now pulls a paint event if no other events are in the
19039             queue
19040           - Invalidate: Switched to new AddExpose method
19041           - PeekMessage: Updated to understand pending paint events
19042           - UpdateWindow: Fixed logic bug. We were only updating if the window
19043             didn't need updating. Also switched to sending WM_PAINT directly,
19044             like MS does.
19045         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
19046           and random access Remove(). The random access is needed to handle
19047           UpdateWindow() where a WM_PAINT is sent directly without accessing
19048           the queue.
19049         * ScrollBar.cs: Added Update() calls to cause immediate updates to
19050           allow for better feedback when scrolling. Scrollbars are small and
19051           the immediate update should make it 'feel' more responsive without
19052           slowing things down. ScrollBar still needs it's invaliate logic
19053           updated to not always invalidate the whole bar on certain changes.
19054
19055 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19056
19057         * Control.cs:
19058         (BackColor): if the control does not support a transparent background,
19059         return the default backcolor when the parent backcolor is transparent.
19060
19061 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
19062
19063         * Application.cs: Updated to new StartLoop/GetMessage API
19064         * RichTextBox.cs: Provide some output on RTF parsing errors
19065         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
19066           new queue_id argument to GetMessage and PeekMessage to allow faster
19067           handling of per-thread queues in drivers.
19068         * Hwnd.cs: Added Queue tracking and property
19069         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
19070         * XEventQueue.cs: Added thread trackingA
19071         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
19072         * XplatUIX11.cs:
19073           - Implemented new per-thread queue
19074           - GetMessage: Fixed return/break behaviour on several cases. We were
19075             returning stale messages in some cases, instead of just processing
19076             the next message
19077
19078 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
19079
19080         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
19081
19082 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
19083
19084         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
19085           fixed off-by-one comparisons between Width/Height and Right/Bottom.
19086
19087 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
19088
19089         * PropertyGridView.cs: Fix drop down width.
19090
19091 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
19092
19093         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
19094           a mess in DrawToolBar, so I removed one of them.
19095
19096 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
19097
19098         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
19099           needed (clip). Otherwise we get artifacts.
19100
19101 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
19102
19103         * FixedSizeTextBox.cs: Added constructor to allow specifying which
19104           dimension is fixed
19105         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
19106           and switched FixedSizeTextBox to only be fixed vertical (#78116)
19107         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
19108           if it matches the scale base font (avoids unneeded scaling)
19109
19110 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
19111
19112         * X11DesktopColors.cs: One gtk_init_check should be enough
19113
19114 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
19115
19116         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
19117           match MS behaviour
19118
19119 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
19120
19121         * TextBoxBase.cs: 
19122           - Generate OnTextChanged for Backspace even if we're only deleting
19123             the current selection
19124           - When setting the Text property, only select all text if the
19125             control does not have focus when it is being set. Otherwise
19126             just place the cursor at the beginning of the control
19127
19128 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
19129
19130         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
19131           Added a little helper to draw PropertyGrid ToolBar with a different
19132           border and a different BackColor.
19133         * PropertyGrid.cs: Some background parts didn't get painted with the
19134           correct background color. Added a class that helps us to draw the
19135           correct border for PropertyGridView and a class that helps us to
19136           draw ToolBars with a different backcolor
19137         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
19138
19139 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
19140
19141         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
19142         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
19143
19144 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
19145
19146         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
19147           into the palette entries. Also, since we're working on a copy
19148           we needed to copy the palette back onto the bitmap.
19149         * Cursor.cs: Same fix as XplatUIWin32.cs.
19150
19151 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
19152
19153         * ImageListStreamer.cs: Need to read the var (or we're off)
19154
19155 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
19156
19157         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
19158           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
19159           TextBoxBase.cs: Unused var fixes
19160         * AxHost.cs: Small 2.0 fix
19161         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
19162           as it seems that is what at least Metacity expects. This will make
19163           icons show up on 64bit platforms. We still have some 64bit size
19164           issues, though, since the startup app window size still won't match.
19165
19166 2006-04-25  Mike Kestner  <mkestner@novell.com>
19167
19168         * *.cs: cleanup newly reported exception var unused warnings.
19169
19170 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
19171
19172         * ThemeWin32Classic.cs: Button image alignment now matches exactly
19173           ms
19174
19175 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
19176
19177         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
19178           image. The image position is always the same, no matter if the
19179           button is pressed or not.
19180
19181 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
19182
19183         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
19184           selection and set the correct filename for SaveFileDialog.
19185           Patch by Emery Conrad.
19186
19187 2006-04-24  Mike Kestner  <mkestner@novell.com>
19188
19189         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
19190         check for item.X outside the ClientRect instead of item.Y. Fixes
19191         #78151.
19192
19193 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19194
19195         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
19196         trust that value blindly and do some sanity check. Fixes bug #77814.
19197
19198 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19199
19200         * ImageListStreamer.cs: save the mask as a 1bpp image.
19201
19202 2006-04-21  Mike Kestner  <mkestner@novell.com>
19203
19204         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
19205         pass Checked and Indeterminate to the Theme Engine. Improve
19206         encapsulation with ListBox.
19207         * ListBox.cs: Keep a StringFormat instead of calculating it every item
19208         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
19209         nested types.  Move all CheckState functionality to CheckedListBox.
19210         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
19211         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
19212         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
19213         single base list. Fix scrollbar sizing and placement to mirror MS.
19214         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
19215         used.
19216         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
19217         for CheckedListBox by using new DrawItemState info.  Center the
19218         checkboxes on the items. Use new StringFormat property.
19219
19220 2006-04-18  Jackson Harper  <jackson@ximian.com>
19221
19222         * Form.cs: MdiChildren don't do default locations the same way as
19223         regular forms.  This prevents a crash when trying to position the
19224         mdi windows.
19225
19226 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
19227
19228         * PropertyGridTextBox.cs: Formatting, copyright
19229         * PropertiesTab.cs: Formatting
19230         * PropertyGrid.cs: Formatting
19231         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
19232           click toggling of values
19233           
19234 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
19235
19236         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
19237         * Control.cs (.ctor): verify_thread_handle is static, don't reset
19238           every time a control is created
19239         * Application.cs: Removed obsolete EnableRTLMirroring method
19240
19241 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
19242
19243         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
19244         SelectedIndex to -1. Fixes bug #78121.
19245
19246 2006-04-17  Jackson Harper  <jackson@ximian.com>
19247
19248         * Binding.cs: Handle null values for Current and BindingContext.
19249         This occurs when binding is a little delayed.
19250         * CurrencyManager.cs: return null for Current when there are no
19251         items in the list.
19252         - Hookup to the listchanged event on the DataView and update
19253         bindings when the list is changed.  This fixes late binding of
19254         controls.
19255
19256 2006-04-17  Jackson Harper  <jackson@ximian.com>
19257
19258         * X11Dnd.cs:
19259         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
19260         Ringenbach.
19261
19262 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
19263
19264         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
19265           place
19266         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
19267           with the correct ButtonState
19268
19269 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
19270
19271         * XplatUIX11.cs: Improved distinguishing between window types to
19272           tell the WM a type closer to what the app wants (Fixes #78107)
19273
19274 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
19275
19276         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
19277           GrabHandle
19278
19279 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
19280
19281         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
19282           drawing code to reflect the size grip changes
19283
19284 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19285
19286         * ImageListStreamer.cs: fix handling of the mask that follows the main
19287         bitmap when deserializing and serialize it properly. The generated mask
19288         should better be a 1bpp image, but I'll do that later.
19289
19290 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
19291
19292         * FileDialog.cs: Show something in the DirComboBox on *nix if the
19293           path doesn't fit into some of our Current.Places
19294
19295 2006-04-13  Jackson Harper  <jackson@ximian.com>
19296
19297         * ComboBox.cs: Use borders instead of drawing our own decorations,
19298         try to obey correct rules for heights.
19299         * Theme.cs:
19300         * ThemeNice.cs:
19301         * ThemeClearLooks.cs:
19302         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
19303         this is now handled by borders.
19304         - Remove unused DrawListBoxDecorationSize method.
19305         
19306 2006-04-13  Mike Kestner  <mkestner@novell.com>
19307
19308         * MenuAPI.cs: null guarding for the disbled click check fixes crash
19309         reported by Alex.
19310
19311 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
19312
19313         * ThemeWin32Classic.cs: 
19314           - Fixed CPDrawStringDisabled
19315           - Corrected drawing of disabled menu items
19316           - Fixed drawing of disabled radio buttons (bug #78095)
19317           - Draw check in a disabled CheckBox with color ControlDark 
19318
19319 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19320
19321         * Form.cs: Use the provided width when calculating the menu size;
19322           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
19323           and ClientSize.Width won't be updated yet
19324         * Application.cs: Use Visible instead of Show() to make form visible,
19325           this way we create the handle later and menusize is considered
19326
19327 2006-04-12  Mike Kestner  <mkestner@novell.com>
19328
19329         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
19330         reporting.
19331
19332 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19333
19334         * TextBox.cs: Implemented context menu
19335
19336 2006-04-12  Mike Kestner  <mkestner@novell.com>
19337
19338         * ListView.cs: implement box selection. fixes #77838.
19339         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
19340
19341 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
19342
19343         * XplatUIX11.cs: Added setting of window type when transient window
19344           is created (metacity would move it otherwise)
19345         * X11Structs.cs: Added WINDOW_TYPE atoms
19346         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
19347           background (the control is Opaque but still wants transparent
19348           backgrounds)
19349
19350 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19351
19352         * Control.cs: Added OnPaintBackgroundInternal to allow controls
19353           that set Opaque but don't mean it (like all ButtonBase-derived
19354           controls) to still draw their background
19355         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
19356           the background
19357
19358 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
19359
19360         * Control.cs (PaintControlBackground): Set the graphics object
19361           on our PaintEvent to null to prevent it from being disposed
19362           when the PaintEvent gets disposed
19363
19364 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
19365
19366         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
19367         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
19368
19369 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19370
19371         * Control.cs: 
19372           - Added transparency check to BackColor property. Transparent
19373             backgrounds are only allowed if the control styles permit it
19374           - Added recursive painting of parent control background and
19375             foreground if a control with a transparent backcolor is drawn
19376             (Thanks to Tim Ringenback for providing his 'hack' as a base
19377              for this patch) Fixes #77985 and #78026.
19378           - Added Opaque style check before calling OnPaintBackground, no
19379             need to draw the background if the control is opaque
19380           - Removed ControlAccessibleObject owner variable (inherited from
19381             base, no need to define again)
19382           - Added some documentation links explaining the drawing events
19383             and styles
19384
19385 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
19386
19387         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
19388           that the affected control is the located at the left border of our
19389           parent (Fixes #77936)
19390
19391 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
19392
19393         * TextBoxBase.cs: When rendering disabled or readonly controls,
19394           draw the background with 'Control' instead of 'Window' color as
19395           long as the user hasn't specifically set a color
19396
19397 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
19398
19399         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
19400           since that won't be updated if the user types text (only if it's
19401           programatically set)
19402
19403 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
19404
19405         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
19406           layout changes do to app-triggered resizes will have the proper
19407           display rectangle for layout
19408
19409 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
19410
19411         * ThemeWin32Classic.cs:
19412           - Make use of the SystemBrushes and SystemPens wherever possible
19413           - Corrected some highlight colors
19414           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
19415             drawing
19416         * Theme.cs: Added Empty field to CPColor struct
19417
19418 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
19419
19420         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
19421           is displayed when calculating the display rectangle. Thanks to Mike
19422           for teaching me the err of my ways.
19423
19424 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
19425
19426         * ScrollableControl.cs:
19427           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
19428             (instead of 0,0) and we now return the real width/height instead of
19429             just the clientrectangle, adjusted for padding. The rectangle is
19430             now cached and created by the new CalculateDisplayRectangle method.
19431           - Created new CalculateDisplayRectange method, which basically does
19432             what get_DisplayRectangle() did originally, but now using the 
19433             right edge instead of DisplayRectangle to determine the size of
19434             our scrollbars
19435           - get_Canvas(): Fixed it to properly calculate canvas for 
19436             right/bottom controls which seem to be placed to the right/bottom
19437             of any controls that have a fixed location
19438           - Removed TODO that's taken care of
19439           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
19440             and SetDisplayRectLocation according to new MSDN2 docs
19441           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
19442             event when that is called, this is added for compatibility
19443           - ScrollControlIntoView(): Implemented.
19444           - Switched scrollbars to be implicit, they shouldn't be selectable
19445         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
19446           call it when the active control is set/changed
19447         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
19448         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
19449           implicit_control variable (used for native Win32 message generation)
19450         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
19451           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
19452         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
19453         * XplatUIStructs.cs: Added ScrollBarCommands enum
19454
19455 2006-04-10  Jackson Harper  <jackson@ximian.com>
19456
19457         * ButtonBase.cs:
19458         * CheckedListBox.cs:
19459         * ComboBox.cs:
19460         * DataGrid.cs:
19461         * DataGridView.cs:
19462         * Form.cs:
19463         * GroupBox.cs:
19464         * ListBox.cs:
19465         * PrintPreviewControl.cs:
19466         * ProgressBar.cs:
19467         * PropertyGrid.cs:
19468         * Splitter.cs:
19469         * StatusBar.cs:
19470         * TrackBar.cs:
19471         * UpDownBase.cs: Fixup base event overrides.
19472         
19473 2006-04-06  Mike Kestner  <mkestner@novell.com>
19474
19475         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
19476         all user-initiated value changes to min <= value <= max-thumbsz+1.
19477         (set_Value): check for vert/horiz when calculating new thumb position.
19478         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
19479         like MS does.
19480         (OnMouseMoveSB): refactor the thumb dragging code and refine
19481         invalidation logic to reduce flicker.
19482         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
19483         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
19484         (UpdateThumbPosition): small code readability cleanup
19485
19486 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
19487
19488         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
19489           different
19490
19491 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
19492
19493         * ThemeNice.cs: Use a better graphics effect when a button is pressed
19494
19495 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
19496
19497         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
19498         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
19499           This dramatically reduces the number of Pen.Dispose calls. 
19500           Where possible call ResPool methods only once instead of calling it
19501           over and over again (for example for the same color).
19502
19503 2006-04-06  Mike Kestner  <mkestner@novell.com>
19504
19505         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
19506         Also remove an unused private field on the collection. Fixes #77972.
19507
19508 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
19509
19510         * ThemeNice.cs: Added ToolBar drawing code
19511
19512 2006-04-06  Mike Kestner  <mkestner@novell.com>
19513
19514         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
19515         I'm assuming that means we need to look up the toplevel for the
19516         provided control. Fixes the crash trace in #77911 but exposes another
19517         crash in some strange reflection usage in NDocGui.
19518
19519 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
19520
19521         * ThemeNice.cs: Gave it a little silver touch and added Images
19522           method
19523         * FontDialog.cs: FontDialog is not resizable
19524         * FileDialg.cs: Added SizeGripStyle.Show
19525
19526 2006-04-05  Jackson Harper  <jackson@ximian.com>
19527
19528         * KeyboardLayouts.cs: Remove warning.
19529
19530 2006-04-05  Jackson Harper  <jackson@ximian.com>
19531
19532         * Control.cs: Enable OnPaintInternal so we can use it for drawing
19533         all of our controls instead of Paint +=.
19534         * ListBox.cs:
19535         * ListView.cs:
19536         * MenuAPI.cs:
19537         * MessageBox.cs:
19538         * NotifyIcon.cs:
19539         * ProgressBar.cs:
19540         * ScrollBar.cs:
19541         * Splitter.cs:
19542         * StatusBar.cs:
19543         * TabControl.cs:
19544         * TextBoxBase.cs:
19545         * ToolBar.cs:
19546         * TrackBar.cs:
19547         * UpDownBase.cs:
19548         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
19549         use OnPaintInternal. Remove Width/Height and Visible checks in
19550         paint handler, this is done at a higher level now.
19551         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
19552         * PaintEventArgs.cs: Add a handled flag so controls that don't
19553         want anymore painting after OnPaintInternal can make sure OnPaint
19554         isn't called.
19555
19556 2006-04-05  Mike Kestner  <mkestner@novell.com>
19557
19558         * Form.cs: fix the menu WndProc hacks to respect the native enabled
19559         state of the form, so that we don't process events when Modal dialogs
19560         are up. Fixes #77922.
19561
19562 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
19563
19564         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
19565           checking is done.
19566
19567 2006-04-05  Mike Kestner  <mkestner@novell.com>
19568
19569         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
19570
19571 2006-04-05  Mike Kestner  <mkestner@novell.com>
19572
19573         * ListView.cs (HeaderMouseMove): null guarding for the over column
19574         when setting up the drag_to_index.  Fixes #78015.
19575
19576 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
19577
19578         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
19579           in the taskbar. Transient windows seem to accomplish that.
19580
19581 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
19582
19583         * Form.cs:
19584           - Re-enabled CreateParams.X/Y code for FormStartPosition
19585           - Added code for manual placement when creating the Control
19586           - Incomplete patch to treat MDI forms differently when
19587             setting the ClientSizeCore. (Still need to figure out handling
19588             x/y coords there)
19589         * XplatUIX11.cs:
19590           - When we're explicitly setting the X/Y position of a non-Child
19591             window, let the WM know. Metacity really wants this.
19592
19593 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19594
19595         * ThemeNice.cs: Added CPDrawButton
19596
19597 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19598
19599         * ThemeNice.cs: Changed the color for focused buttons and activated
19600           the arrows for small scroll buttons.
19601
19602 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19603
19604         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
19605           anymore. Changed some method modifiers to protected (virtual)
19606         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
19607           changes
19608         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
19609           Updated drawing of menus, buttons and progressbars; added
19610           CPDrawBorder3D 
19611
19612 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19613
19614         * ImageListStreamer.cs: implemented serialization/deserialization
19615         of the images.
19616
19617 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
19618
19619         * ThemeWin32Classic.cs:
19620           - Removed all the DrawFrameControl stuff; CPDrawButton,
19621             CPDrawCheckBox and CPDrawRadioButton are now handled directly
19622             inside the methods
19623           - Updated and corrected the drawing code of CPDrawButton,
19624             CPDrawCheckBox and CPDrawRadioButton to better match ms
19625           - Updated theme checkbox and radiobutton code to use the CP*
19626             methods
19627
19628 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
19629
19630         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
19631           bug is fixed
19632
19633 2006-03-31  Jackson Harper  <jackson@ximian.com>
19634
19635         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
19636         sometimes.
19637         * UpDownBase.cs: Don't CreateGraphics manually, use a
19638         Refresh. Ideally we would invalidate the correct areas here.
19639
19640 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
19641
19642         * XplatUIX11.cs: 
19643           - We now track the mapping state of windows. If a window (or 
19644             one of it's parents) is not mapped we no longer permit
19645             WM_PAINT messages to be generated since we'd otherwise get 
19646             lots of BadMatch X errors. Jackson did all the work figuring
19647             out the problem.
19648           - Destroying the caret if the window it's contained in is 
19649             destroyed. Can't use regular DestroyCaret method since it
19650             might fall into a drawing function (trying to remove the
19651             caret) and with that generate new BadMatch errors. Again,
19652             Jackson tracked this down.
19653           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
19654             make sure we send the messages to all windows. (The old code
19655             would send the WM_DESTROY to the window, and then all child
19656             windows would be 'gone' because the WM_DESTROY handle lookup
19657             would no longer find the destroyed window)
19658         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
19659         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
19660
19661 2006-03-31  Jackson Harper  <jackson@ximian.com>
19662
19663         * ScrollableControl.cs: Dont recalc if we are not visible.
19664
19665 2006-03-31  Mike Kestner  <mkestner@novell.com>
19666
19667         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
19668         the visibility branch.
19669
19670 2006-03-31  Jackson Harper  <jackson@ximian.com>
19671
19672         * ScrollBar.cs: Cap values when incrementing/decrementing.
19673
19674 2006-03-31  Mike Kestner  <mkestner@novell.com>
19675
19676         * MenuAPI.cs: setup menu.tracker for popup/context menus.
19677         * ToolTip.cs: guard against timer expirations with no active control.
19678         Not sure why it happened.
19679
19680 2006-03-31  Mike Kestner  <mkestner@novell.com>
19681
19682         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
19683         text.
19684         * ToolTip.cs: Position the tooltip based on where the cursor is at
19685         popup time, not at MouseEnter time.  Add a Down state so that we don't
19686         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
19687         positioning offset. Lookup DisplaySize at positioning time, since it
19688         can theoretically change during invocation.
19689         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
19690         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
19691
19692 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19693
19694         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
19695           Fixes behaviour when the Text property of the box is String.Empty
19696
19697 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
19698
19699         * XplatUIX11.cs: Only send mouseleave for our client windows, not
19700           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
19701           a window)
19702
19703 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19704
19705         * FileDialog.cs: Visual enhancement for the popup buttons in 
19706           PopupButtonPanel
19707
19708 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19709
19710         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
19711           code
19712
19713 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
19714
19715         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
19716           highlighted menu items to match ms
19717
19718 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
19719
19720         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
19721
19722 2006-03-30  Mike Kestner  <mkestner@novell.com>
19723
19724         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
19725         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
19726         go active to account for HotLight to Selected transition.
19727         * MenuItem.cs: add internal Selected prop. Fill out the Status
19728         property by calculating it from item info. Add HotLight,
19729         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
19730
19731 2006-03-30  Mike Kestner  <mkestner@novell.com>
19732
19733         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
19734
19735 2006-03-29  Jackson Harper  <jackson@ximian.com>
19736
19737         * Form.cs: Implement TODO.
19738
19739 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
19740
19741         * PrintPreviewDialog.cs: Implemented missing methods and events; still
19742           missing proper dialog setup in the constructor
19743
19744 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
19745
19746         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
19747         * Control.cs:
19748           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
19749           - Fixed ResetBindings and removed TODO
19750           - Added check for cross-thread calls to get_Handle()
19751           - Added Marshaller attribute for set_Font to satisfy class status
19752         * FontDialog.cs: Removed TODOs that seemed implemented
19753         * UpDownBase.cs: Removed unneeded TODO and Fixme
19754         * MessageBox.cs: Implemented support for Default button and removed TODO
19755         * FileDialog.cs: Removed obsolete TODO
19756         * DomainUpDown.cs: Removed obsolete TODO
19757         * ButtonBase.cs: Removed obsolete TODO
19758         * XplatUIWin32.cs: Removed obsolete TODO
19759         * Form.cs:
19760           - Removed obsolete TODO
19761           - Calling CheckAcceptButton when the acceptbutton is changed to allow
19762             internal status updates
19763           - Making sure the active control is selected when the control is created
19764         * CurrencyManager.cs: Removed obsolete TODO
19765
19766 2006-03-29  Mike Kestner  <mkestner@novell.com>
19767
19768         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
19769         of PrintPreviewDialog and RichTextBox.
19770
19771 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
19772
19773         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
19774           DarkDark, Light and LightLight colors for a specific color
19775         * ThemeWin32Classic.cs:
19776           - Use Button drawing code to draw RadioButtons and CheckBoxes with
19777             Appearance = Button 
19778           - Make use of the new ResPool helper CPColor
19779           - Draw ProgressBar and StatusBar with correct 3D borders
19780
19781 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
19782
19783         * ColorDialog.cs: Return selected color. Fixes bug #77940.
19784
19785 2006-03-28  Mike Kestner  <mkestner@novell.com>
19786
19787         * ListView.cs: fix Icon layout to plan for scrollbar widths when
19788         calculating col/row counts.
19789
19790 2006-03-28  Mike Kestner  <mkestner@novell.com>
19791
19792         * ColumnHeader.cs:
19793         * ListView.cs:
19794         * ListViewItem.cs:
19795         * Menu.cs: 
19796         switch to explicit interface method implementation for some methods
19797         corcompare identifies as inconsistent with MS.
19798
19799 2006-03-28  Mike Kestner  <mkestner@novell.com>
19800
19801         * MainMenu.cs: 
19802         * Menu.cs:
19803         add a few missing methods from the class status output.
19804
19805 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
19806
19807         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
19808           correct.
19809
19810 2006-03-28  Mike Kestner  <mkestner@novell.com>
19811
19812         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
19813
19814 2006-03-27  Mike Kestner  <mkestner@novell.com>
19815
19816         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
19817         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
19818
19819 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
19820
19821         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
19822
19823 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19824
19825         * ThemeWin32Classic.cs:
19826           - GroupBox: Inserted a little gap between the text and the lines
19827             on the right side
19828           - Made the code in CPDrawBorder3D more readable
19829           - Corrected the drawing location of the up and down arrows in 
19830             CPDrawScrollButton
19831
19832 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19833
19834         * ControlPaint.cs: Corrected line widths in DrawBorder for
19835           ButtonBorderStyle Inset and Outset
19836
19837 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19838
19839         * ThemeWin32Classic.cs:
19840           - Rewrote the totally broken CPDrawBorder3D method. That was
19841             one of the main problems for the terrific ThemeWin32Classic
19842             look
19843           - Updated and corrected Button drawing
19844           - Correct the dimensions of the SizeGrip to match ms ones
19845           - Removed a small drawing glitch in DrawComboBoxEditDecorations
19846         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
19847           Border3DStyle.Sunken to match ms.
19848
19849 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19850
19851         * ThemeWin32Classic.cs: First small part of the "de-uglify
19852           ThemeWin32Classic" effort, SizeGrip
19853
19854 2006-03-24  Jackson Harper  <jackson@ximian.com>
19855
19856         * XplatUIX11.cs: Give a max idle time of one second, this matches
19857         MS and forces an Idle event every second when there are no other
19858         events in the queue.
19859
19860 2006-03-24  Mike Kestner  <mkestner@novell.com>
19861
19862         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
19863         * ListView.Item.cs: fix layout issues with null image lists and images
19864         smaller than checkbox size.
19865         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
19866         mode like MS does.  It's weird, but consistent.  ;-)
19867         Fixes #77890.
19868
19869 2006-03-24  Mike Kestner  <mkestner@novell.com>
19870
19871         * ListView.cs: Scroll wheel support for the item control.  Fixes
19872         #77839.
19873
19874 2006-03-23  Jackson Harper  <jackson@ximian.com>
19875
19876         * ScrollableControl.cs: Special case negative sized areas, not
19877         zero.
19878         * MonthCalendar.cs: Save the rect of the clicked date so we can
19879         use it for invalidation.
19880         - Try to cut down on the number of invalidates
19881         - Invalidate the rect the mouse is over and was over when moving
19882         the mouse, so we get the focus box following the cursor.
19883
19884 2006-03-23  Mike Kestner  <mkestner@novell.com>
19885
19886         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
19887         focus rectangle drawing. Fixes #77835.
19888
19889 2006-03-23  Mike Kestner  <mkestner@novell.com>
19890
19891         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
19892         the if and else if and reverting back to the original == check on the
19893         None conditional.
19894
19895 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
19896
19897         * FontDialog.cs: Update the example panel if the selected index of
19898           the fontListBox changes.
19899
19900 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
19901
19902         * FileDialog.cs: Make FileDialog remember which directory it was in
19903           last in the same execution.
19904
19905 2006-03-22  Mike Kestner  <mkestner@novell.com>
19906
19907         * FileDialog.cs: make the DropDownMenu on the toolbar display
19908         RadioChecks since they are mutually exclusive and that's what MS does.
19909
19910 2006-03-22  Mike Kestner  <mkestner@novell.com>
19911
19912         * Theme.cs: add Color param to CPDrawMenuGlyph.
19913         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
19914         checks and radio marks and arrows are visible on highlighted items.
19915         * ControlPaint.cs: update to use new Theme signature.
19916
19917 2006-03-22  Mike Kestner  <mkestner@novell.com>
19918
19919         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
19920         is active. Fixes #77870.
19921
19922 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
19923
19924         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
19925           to be focused/selected after startup
19926
19927 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
19928
19929         * ColorDialog.cs: 
19930           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
19931             CustomColors and ShowHelp properties
19932           - Some internal rewrites to get better results when using the
19933             ColorMatrix
19934
19935 2006-03-22  Mike Kestner  <mkestner@novell.com>
19936
19937         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
19938         HoverSelection.  Fixes #77836.
19939
19940 2006-03-22  Mike Kestner  <mkestner@novell.com>
19941
19942         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
19943         ToggleButtons.  (De)Sensitize the Back button around a stack count of
19944         1, not 0.  Update ButtonSize based on a pixel count of the win32
19945         control.  Adjust the toolbar size/location for new button size.
19946
19947 2006-03-22  Jackson Harper  <jackson@ximian.com>
19948
19949         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
19950         true.
19951         * ScrollBar.cs: When doing increments and decrements we need to
19952         set the Value property so that ValueChanged gets raised. A
19953         possible optimization here would be to make an internal SetValue
19954         that doesn't invalidate immediately.
19955         * ToolTip.cs: Tooltips get added to their container (when
19956         supplied) so they get disposed when the container is disposed.
19957         - Don't create tooltips for String.Empty. This prevents all these
19958         little 2-3 pixel windows from showing up when running nunit-gui
19959         and driving me mad.
19960         * Form.cs: Don't set topmost when setting the owner if the handles
19961         haven't been created yet.  The topmost set will happen when the
19962         handles are created.
19963
19964 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
19965
19966         * XplatUIX11.cs:
19967           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
19968           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
19969             visible (to allow them to recalculate their sizes)
19970
19971 2006-03-21  Mike Kestner  <mkestner@novell.com>
19972
19973         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
19974         methods. Removed a ton of redundant code.  Still not really happy with
19975         the border rendering, but I think that's mainly because of the
19976         ControlDarkDark being black instead of a dark grey. Depending on how 
19977         close we want to be, we might want to revisit those color choices.
19978         Among the new features added during the refactor were DropDownArrow
19979         pressed rendering, Disabled image rendering.  Proper flat appearance
19980         boundary rendering.  Removed the Divider and Wrapping dividers since I
19981         can't figure out any combination of themes and conditions to make the
19982         MS control draw a horizontal line on a toolbar despite what the
19983         Divider property docs indicate.
19984         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
19985         conditions and incorrect layout.  Updated to coding standard.
19986         * ToolBarButton.cs: refactored layout and positioning code from
19987         ToolBar to here.  Invalidate wherever possible instead of forcing
19988         redraws of the whole toolbar. 
19989         (Known remaining issues: explicit ButtonSize smaller than provided
19990         images.)
19991
19992 2006-03-21  Mike Kestner  <mkestner@novell.com>
19993
19994         * ContextMenu.cs (Show): use the position parameter instead of just
19995         showing at the MousePosition.
19996
19997 2006-03-21  Jackson Harper  <jackson@ximian.com>
19998
19999         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
20000         control handle this.
20001         * TreeNodeCollection.cs: If we are clearing the root node we need
20002         to reset top_node so calcs can still happen.
20003         * ThemeWin32Classic.cs: This is a Flags so we need to check
20004         properly.
20005         
20006 2006-03-21  Jackson Harper  <jackson@ximian.com>
20007
20008         * DataGrid.cs: Create columns when the binding context has been
20009         changed.
20010         * X11Structs.cs: Keysyms are uints.
20011         - Add size to fix build.
20012
20013 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
20014
20015         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
20016           XplatUIOSX.cs: 
20017           - Added ResetMouseHover method to allow controls to retrigger
20018             hovering if they need it more than once
20019           - Implemented MouseHoverTime and MouseHoverSize properties
20020         * Timer.cs: Start() must reset the interval
20021         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
20022           properties
20023
20024 2006-03-21  Jackson Harper  <jackson@ximian.com>
20025
20026         * X11Keyboard.cs: improved layout detection. Move the nonchar
20027         tables into this file.
20028         * KeyboardLayouts.cs: Move the tables into resource files.
20029
20030 2006-03-21  Mike Kestner  <mkestner@novell.com>
20031
20032         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
20033
20034 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
20035
20036         * Mime.cs: Various speed optimizations. Looking up mime types
20037           is now 2 times faster than before
20038
20039 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
20040
20041         * CreateParams.cs: Added internal menu field
20042         * Control.cs: 
20043           - Switched call order for UpdateBounds; now we always call
20044             the one that also takes ClientSize, and we're calculating the 
20045             client size via driver method in the others. The previous
20046             method of tracking client size by difference wasn't working
20047             for forms where even the starting client size wouldn't match
20048             the overall form size (due to borders) (Part of fix for #77729)
20049           - CreateParams(): Do not use parent.Handle unless the handle is
20050             already created. Causes havoc with Nexxia and throws off our
20051             creation of controls
20052         * XplatUIX11.cs:
20053           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
20054           - Switched handling of ConfigureNotify over to new PerformNCCalc 
20055             method (consolidates code)
20056           - Changed RequestNCRecalc to use new PerformNCCalc method
20057           - Added calls to RequestNCRecalc when menus and borders are changed
20058             to allow app to set NC size. (Part of fix for #77729) This matches
20059             when MS send a WM_NCRECALC on Win32 windows.
20060           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
20061             (Part of fix for #77729). This matches what MS does, they also
20062             send that message when the form is made visible.
20063           - XException.GetMessage: Improved usability of X errors by including
20064             a translation of the window into Hwnd and Control class
20065           - Improved debug info for window creation, reparenting and destruction
20066           - Created helper method WindowIsMapped() [Currently not used]
20067         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
20068         * Form.cs:
20069           - CreateParams: Now setting our menu on the new internal menu field
20070           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
20071             avoid calculating the same property twice
20072         * Hwnd.cs:
20073           - Improved usability of ToString() for debugging purposes
20074           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
20075             determine the height of the menu, instead of just the font. This
20076             required to also create a graphics context and to keep a bmp 
20077             around (for performance reasons)
20078
20079 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
20080
20081         * MenuAPI.cs: Added OnMouseUp method
20082         * Form.cs:
20083           - Now remembering the requested client size, avoids size errors
20084           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
20085             instead of base if the menu is active. This is required due to
20086             control now capturing and releasing on down/up and it would
20087             prematurely release our menu capture
20088
20089 2006-03-17  Jackson Harper  <jackson@ximian.com>
20090
20091         * KeyboardLayouts.cs: Add the czech layouts.
20092
20093 2006-03-16  Jackson Harper  <jackson@ximian.com>
20094
20095         * Control.cs: Use the viewport space when sizing not the controls
20096         client size, so things like ScrollableControl that effect the
20097         viewport size (when scrollbars are added) are computed correctly.
20098         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
20099         of ManagerEntrys.
20100         - Handle creating BindingManagers for null data sources.
20101         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
20102         source, otherwise when rows are added they are added to the 'fake'
20103         datasource and we will crash when trying to set the position in
20104         those rows.
20105         - Use Implicit scrollbars on the datagrid so they arent
20106         selectable.
20107         
20108 2006-03-16  Jackson Harper  <jackson@ximian.com>
20109
20110         * Binding.cs:
20111         * InternalWindowManager.cs:
20112         * MdiWindowManager.cs:
20113         * X11Keyboard.cs: I really want Mike to love me again (fix
20114         compiler warnings).
20115
20116 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
20117
20118         * DataGrid.cs:
20119           - OnMouseDown: Switch to editing mode when clicking on the cell
20120                          even if we're clicking on the cell that's currently 
20121                          selected
20122           - ProcessGridKey: Left/Right now wrap like MS.Net does
20123           - ProcessGridKey: Tab now knows to add a new row when tab is
20124                             pressed in the cell of the last column of the 
20125                             last row
20126           - ProcessGridKey: Enter now adds another row  if pressed in the last
20127                             row and selectes the new row, same column cell
20128           - ProcessGridKey: Home/End navigate columns, not rows, like 
20129                             originally implemented
20130           - Broke ProcessKeyPreview code out into an extra Internal method
20131             so it can be called from the edit code
20132         * DataGridTextBox.cs (ProcessKeyMessage):
20133           - Switched to accept Tab keypresses
20134           - Added F2 handling to allow jumping to the end of the edited cell
20135           - Added logic to allow moving caret left/right inside edited cell
20136             and making the edited cell jump when the caret hits cell borders
20137           - Tab and Enter are now passed to the datagrid after being handled
20138         * TextBoxBase.cs:
20139           - Removed capture code now that Control handles it
20140           - set_SelectionStart now ensures caret is visible
20141
20142 2006-03-16  Jackson Harper  <jackson@ximian.com>
20143
20144         * TrackBar.cs: Debackwards the increment/decrement for handling
20145         mouse clicks on the bar with vertical trackbars.
20146         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
20147         bottom to match MS.
20148
20149 2006-03-16  Mike Kestner  <mkestner@novell.com>
20150
20151         * ListView.cs: make shift/ctrl keyboard and mouse selection 
20152         consistent with the MS control. Fix a bug in
20153         SelectedListViewItemCollection.Clear that was pissing me off for the
20154         better part of a day because the collection was being altered
20155         underneath us as we walked the list.
20156
20157 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
20158
20159         * Control.cs: Not sure how we could miss this so long, but it seems
20160           that MS.Net has Capture set all the way from before calling 
20161           OnMouseDown through sending the mouse events until after
20162           OnMouseUp. This will fix DataGrid's selection being set to end
20163           at the location of the MouseUp.
20164
20165 2006-03-15  Jackson Harper  <jackson@ximian.com>
20166
20167         * BindingContext.cs: Check the binding after its added so that it
20168           can initialize the binding managers and hookup to events.
20169         * Binding.cs: Data members seem to sometimes include rows/cols in
20170           the format Row.Column we now take this into account.
20171           - Hookup to the position changed event so we can update the
20172           control when the position has changed in the data set.
20173         * CurrencyManager.cs: Take into account the row/col naming
20174           convention when creating dataset tables.
20175         * BindingContext.cs: Using a newer better way of storing
20176           datasource/datamember pairs.  Hopefully this better matches MS for
20177           looking up binding managers.
20178
20179
20180 2006-03-15  Jackson Harper  <jackson@ximian.com>
20181
20182         * BindingContext.cs: The currency manager needs the data member
20183         name, if the member is a data set we use the name to find the
20184         correct table.
20185         * CurrencyManager.cs: When creating the list prefer an IList over
20186         an IListSource.
20187         - Attempt to create a DataTable from a DataSet (TODO: might need
20188         some better error checking here, although MS doesn't seem to have much)
20189         - If we have a DataTable create a view and use it as our list.
20190
20191 2006-03-15  Mike Kestner  <mkestner@novell.com>
20192
20193         * ListView.cs: keep a matrix of the icon mode layout to facilitate
20194         keyboard navigation. Support Up/Down/Left/Right selection correctly
20195         for all 4 View modes.
20196         * ListViewItem.cs: add internal row/col fields for icon layouts.
20197
20198 2006-03-15  Jackson Harper  <jackson@ximian.com>
20199
20200         * TabControl.cs: Redraw the tabs when we resize so their newly
20201         calculated sizes are drawn on screen.
20202         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
20203         composite characters.
20204         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
20205         - filter events so that composite characters can be created
20206         patches by peter
20207         * X11Structs.cs: Add XIMProperties enum.
20208
20209 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
20210
20211         * Control.cs (BringToFront, SendToBack): Don't use window or handle
20212           unless it's created
20213
20214 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
20215
20216         * Control.cs (PerformLayout): We don't need to consider visiblity
20217           for anchoring, only for docking. This fixes 'whacky' alignment
20218           in listbox and other controls that use implicit scrollbars after
20219           the previous PerformLayout patch
20220         * ListBox.cs: Switched to use implicit scrollbars
20221           
20222 2006-03-14  Mike Kestner  <mkestner@novell.com>
20223
20224         * ToolBar.cs: 
20225         * VScrollBar.cs:
20226         - chain up the "new event" overrides to base and use
20227         OnEvent to raise them.  Part of fix for bug #76509.
20228
20229 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
20230
20231         * FileDialog.cs: Do not select an item in the parent directory
20232           on backspace
20233
20234 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
20235
20236         * Control.cs (PerformLayout): It would seem that we considered
20237           invisible windows for our layout. Not quite the right thing
20238           to do. Now we don't any longer, thereby fixing bug #76889.
20239
20240 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
20241
20242         * Control.cs (CanFocus): I goofed. A control can have focus 
20243           even though it's not selectable. Made it match MS docs.
20244
20245 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
20246
20247         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
20248           center by default (fixes #76895)
20249         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
20250           all uses of Border3DSides.All with the explicit ORd together
20251           Left|Right|Top|Bottom because I assume that nobody was aware 
20252           that All also implies a center fill. Most places I checked had
20253           a fill right above.
20254         * ProgressBarStyle.cs: Added
20255
20256 2006-03-13  Mike Kestner  <mkestner@novell.com>
20257
20258         * ListView.cs: fix breakage in drag shadow header positioning 
20259         from Peter's csc compilation fix.
20260
20261 2006-03-13  Mike Kestner  <mkestner@novell.com>
20262
20263         * ListView.cs: fix NRE produced by backspacing twice in a focused
20264         FileDialog.
20265
20266 2006-03-13  Mike Kestner  <mkestner@novell.com>
20267
20268         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
20269
20270 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
20271
20272         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
20273           be changed
20274         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
20275           the allowed size before making programmatic size changes
20276
20277 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
20278
20279         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
20280           set, metacity is broken and will still use the emty sizes in 
20281           the struct. (Fix for #77089)
20282
20283 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
20284
20285         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
20286           WindowExStyles and marked both enums as Flags
20287         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
20288           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
20289           to match WindowStyles split
20290         * XplatUIX11.cs:
20291           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
20292           - Updated to match WindowStyles split
20293         * XplatUIWin32.cs:
20294           - Fixed FosterParent creation, was using ExStyle on the Style field
20295             (This should help with Popup focus issues)
20296           - Updated to match WindowStyles split
20297
20298 2006-03-13  Jackson Harper  <jackson@ximian.com>
20299
20300         * MdiWindowManager.cs: Use the system menu height. Fixes some
20301         strange sizing issues.
20302
20303 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
20304
20305         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
20306         * TextBoxBase.cs:
20307           - Scroll to caret after inserting text (#77672)
20308           - Make scroll range one pixel higher, fixes off-by-one error (and
20309             makes underlines visible on the last line)
20310
20311 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
20312
20313         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
20314           the keyboard state from being stuck with keys in 'pressed' state when
20315           focus is switched away via keyboard
20316         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
20317           reset the keyboard if no X11 KeyUp events are expected to come
20318         * X11Structs.cs: Switched type of Visible to bool to match driver
20319
20320 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
20321
20322         * TextControl.cs:
20323           - Switched caret to be just 1 pixel wide, matches MS and looks less
20324             clunky
20325           - Moved caret display 1 pixel down from the top of the control
20326             to improve view
20327           - InsertCharAtCharet: Update the selection start if moving the caret
20328             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
20329           - No longer always creating the caret when the caret methods are
20330             called. Only the actual ShowCaret/HideCaret will do that now
20331           - Only setting caret visible if the owner control has focus
20332           - UpdateView: Added invalidation-shortcut logic for center and right 
20333             aligned text. Previously we'd update all according to the left
20334             logic which caused drawing errors. Also fixed height of invalidated
20335             areas, now properly invalidating the whole area (was off-by-one)
20336           - owner_HandleCreated: Always generate the document when the
20337             handle is created; this ensures that 
20338         * TextBoxBase.cs:
20339           - Fixed situation where caret would disappear under the right
20340             window border, also improved scrolling behaviour on left-
20341             aligned textboxes
20342           - Fixed right-aligned textboxes to have a border to the
20343             right instead of the caret being under the right border
20344         * XplatUIX11.cs:
20345           - Switched from 'nested' to simple visible/not visible tracking 
20346             for caret (part of fix for #77671)
20347           - No longer passing through translated FocusIn/FocusOut messages
20348             since we were notifying too often and the wrong windows. Instead
20349             we just notify our focussed window of receiving or loosing focus
20350         * XplatUIWin32.cs: Switched from 'nested' show/hide 
20351           counting for caret to simple visible yes/no behaviour (part of 
20352           fix for #77671)
20353
20354 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
20355
20356         * Mime.cs: Remove debug code...
20357
20358 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
20359
20360         * MimeGenerated.cs: Removed
20361         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
20362           and subclasses) from /usr/(local/)share/mime and
20363           $HOME/.local/share/mime.
20364
20365 2006-03-10  Jackson Harper  <jackson@ximian.com>
20366
20367         * MdiWindowManager.cs: Recalc the NC area when a window is
20368         maximized/restored so that the menu area is drawn on forms that
20369         don't have a menu.
20370
20371 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20372
20373         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20374           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
20375           us to force a WM_NCCALCRESIZE message being sent. This is needed
20376           for MDI maximizing.
20377
20378 2006-03-10  Jackson Harper  <jackson@ximian.com>
20379
20380         * Form.cs: We need to use the ActiveMenu when calculating menu
20381         height.
20382         - Fix nullref when the window manager hasn't been created yet.
20383         * Control.cs: Fix nullref when we try to bring a control to the
20384         front that has no parent.
20385         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
20386         height.
20387         - Add a dummy item to the maximized menu so it always has the
20388         correct height. Otherwise when there are no menus we don't get our
20389         icon and buttons.
20390         
20391
20392 2006-03-10  Jackson Harper  <jackson@ximian.com>
20393
20394         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
20395         stuff.
20396         * Form.cs: Make the window_state internal so the window managers
20397         can track it.
20398         - When an MDI child is maximized let its window manager create the
20399         main menu (so it can add its icon).
20400         - Notify the window managers of state changes
20401         - Let the window manager paint its buttons and handle button
20402         clicks on the menu when it is maximized.
20403         * InternalWindowManager.cs: Move the prev_bounds into the mdi
20404         window manager, since tool windows don't use it, only mdi windows.
20405         - Tell the main form that we don't want it to handle NCPAINT
20406         itself to avoid extra painting.
20407         - Handle clicks on a maximized windows menu.
20408         - Handle window state changes
20409         - Handle minimize/maximize clicks correctly by setting the window state.
20410         * MdiWindowManager.cs: Add an icon menu that (the menu you get
20411         when clicking on the forms icon).
20412         - New method to create a forms maximized menu. This is its normal
20413         menu + an icon.
20414         - Handle window state changes.
20415         - Handle sizing of maximized windows.  Maximized windows are just
20416         drawn bigger then the parent visible area. All controls are still
20417         there, they are just outside the visible area (this matches windows).
20418         * MdiClient.cs: No scrollbars when a child window is maximized.
20419         - Let the children windows figure out how big they should be when
20420         sizing maximized windows.
20421         - Implement a version of ArrangeIconicWindows somewhat similar to
20422         Windows version.  There are some little differences, but I don't
20423         think any app will rely on the layout of minimized mdi windows.
20424
20425 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20426
20427         * Padding.cs: Several fixes to allow compiling with csc 2.0
20428
20429 2006-03-09  Jackson Harper  <jackson@ximian.com>
20430
20431         * Menu.cs:
20432         * MenuItem.cs: Cheap hack so we can add items to the list without
20433         the events being raised.  This allows adding mdi items during
20434         drawing. TODO: Should probably find a better time to add the items.
20435
20436 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20437
20438         * ThemeWin32Classic.cs:
20439           - CheckBox_DrawText: Added logic to not wrap if not enough space
20440             is available (Fix for bug #77727)
20441           - RadioButton_DrawText: Added logic not to wrap if not enough
20442             space is available (Fix for bug #77727). Also removed some
20443             duplicate code, DrawString always drawing the regular text
20444             before hitting the if statement.
20445
20446 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
20447
20448         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
20449
20450 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20451
20452         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
20453         * ContainerControl.cs: Partial implementation of some 2.0 scaling
20454           methods. Moved the new 2.0 properties into alphabetical order with
20455           other properties and added MonoTODO tags
20456
20457 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20458
20459         * AutoScaleMode.cs: Added. Fix build.
20460
20461 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20462
20463         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
20464           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
20465           and was requiring premature handle creation for calls from above
20466         * Form.cs, Control.cs: Removed handle arguments from calls to
20467           CalculateClientRect()
20468
20469 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20470
20471         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
20472           drag_column.column_rect is MarshalByRef and can't be used that way
20473
20474 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20475
20476         * AxHost.cs: Added deserialization constructor for 
20477           AxHost+State (fixes 77743)
20478
20479 2006-03-09  Mike Kestner  <mkestner@novell.com>
20480
20481         * ListView.cs: 
20482         - Added column drag reordering for details view.
20483         - fixed behavior when mouse is dragged off column and
20484         AllowColumnReorder is false.
20485         * ColumnHeader.cs: clone the format too in Clone.
20486         * Theme.cs: add DrawListViewHeaderDragDetails method.
20487         * ThemeWin32Classic.cs:
20488         - impl new method for drawing drag column shadows and targets.
20489         - support column offset for details mode in DrawListViewItem.
20490
20491 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20492
20493         * TextControl.cs: Reset the char_count when the document is cleared
20494           (Fixes bug reported on mono-winforms mailing list)
20495
20496 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20497
20498         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
20499           of calling base we simply process the key ourselves, since both
20500           DefWindowProc and the handled method would set m.Result. 
20501           (Fixes #77732)
20502
20503 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20504
20505         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
20506           method also moves the window; instead implemented a copy of
20507           Control.ScaleCore (Part of fix for #77456)
20508         * TextBoxBase.cs: 
20509           - Created new CreateGraphicsInternal method to allow providing
20510             a graphics context when no handle is created without triggering
20511             handle creation. (Part of fix for #77456)
20512           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20513         * TextControl.cs: 
20514           - Switched Constructor to require TextBoxBase instead of Control (to
20515             allow uncast access to CreateGraphicsInternal)
20516           - Safeguarded use of owner.Handle property. No longer accessing it
20517             unless the handle is already created.
20518           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20519           - Now triggering a recalc when owning control becomes visible
20520         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
20521           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
20522           premature handle creation (Part of fix for #77456)
20523         * Control.cs:
20524           - We now only destroy our double-buffering buffers when the
20525             control is resized or disposed, but not when visibility
20526             changes. (The code even re-created them twice every time)
20527           - Now requiring a redraw of the buffer on visibility changes
20528             (fixes bug 77654 part 2)
20529           - Not passing OnParentVisibleChanged up unless the control
20530             is visible
20531           - CanFocus: Fixed to match MS documentation
20532           - Focus: Fixed to return actual focus state and to check if
20533             setting focus is legal before setting it
20534
20535 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
20536
20537         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
20538           when to draw focus rectangle by looking at parent focus and
20539           selected state instead. This fixes TabPages on Linux sometimes
20540           having none or multiple focus rectangles.
20541         * XplatUIX11.cs (SetFocus): 
20542           - Don't set the focus if the same window already has focus
20543           - Use SendMessage instead of PostMessage (like it's Win32
20544             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
20545             to match MS behaviour
20546         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
20547           are not selectable.
20548
20549 2006-03-07  Jackson Harper  <jackson@ximian.com>
20550
20551         * PictureBox.cs: Revert line I accidently committed last week.
20552
20553 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
20554
20555         * Control.cs: 
20556           - Added new IsRecreating and ParentIsRecreating properties to
20557             allow testing if RecreateHandle has been called on ourselves
20558             or one of our parents
20559           - WndProc(WM_DESTROY): If our control handle is being recreated
20560             we immediately need to create the handle when receiving the
20561             destroy, that way our child windows find a valid parent handle
20562             when they themselves are being recreated upon WM_DESTROY receipt
20563             (fix for bug #77654 part 1)
20564         * XplatUIX11.cs:
20565           - DestroyWindow: WM_DESTROY must be sent to our own window before
20566             notifying any child windows. MS documents that child windows
20567             are still valid when WM_DESTROY is received. (Control now relies on
20568             this behaviour)
20569           - Added some fine-grain debug options
20570
20571 2006-03-06  Jackson Harper  <jackson@ximian.com>
20572
20573         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
20574         box and base calculations off this.
20575         * MdiChildContext.cs:
20576         * MdiWindowManager.cs: Don't need to ensure scrollbars here
20577         anymore.
20578         
20579 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
20580
20581         * Splitter.cs: In situations where the affected control is added
20582           to the parent's control list after the splitter, we would not
20583           populate affected. Now we try populating it on mousedown, if
20584           it's not already set, and force it to be re-set whenever our
20585           parent changes.
20586
20587 2006-03-03  Matt Hargett  <matt@use.net>
20588
20589         * Control.cs: implement Control.Padding
20590         * Padding.cs: -Padding.All returns -1 when constructing with the
20591         implicit default ctor
20592         -Padding.ToString() matches MS.NET
20593         * ContainerControl.cs: implement
20594         ContainerControl.AutoScaleDimensions
20595         * ListControl.cs: implement ListControl.FormattingEnabled
20596         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
20597         * ButtonBase.cs:
20598         * TabPage.cs: Implement UseVisualStyleBackColor.
20599         * PictureBox.cs: Implement PictureBox.InitialImage.
20600
20601 2006-03-03  Mike Kestner  <mkestner@novell.com>
20602
20603         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
20604         event declarations to proxy to base event.
20605         * ListViewItem.cs: update to use ItemControl.
20606         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
20607         * ThemeWin32Classic.cs: update to new ListView theme API and fix
20608         column header label rendering for 0 width columns.
20609
20610 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
20611
20612         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
20613           that causes the control to be created. Fixes #77476.
20614
20615 2006-03-02  Jackson Harper  <jackson@ximian.com>
20616
20617         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
20618         expose_pending.
20619
20620 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
20621
20622         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
20623           passed in for the EventArgs (fixes #77690)
20624
20625 2006-03-01  Jackson Harper  <jackson@ximian.com>
20626
20627         * ScrollBar.cs: Refresh afterbeing resized.
20628
20629 2006-02-28  Mike Kestner  <mkestner@novell.com>
20630
20631         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
20632         Clean up a tracker compile warning.
20633         * MenuItem.cs: add internal PerformPopup method.
20634         [Fixes #77457]
20635
20636 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
20637
20638         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
20639           implicit expose) when the text is set to null
20640
20641 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
20642
20643         * RichTextBox.cs (FlushText): When newline is true, we always
20644           need to split the line, even if no text is on it and we may
20645           never eat newlines. (Fixes #77669)
20646
20647 2006-02-28  Mike Kestner  <mkestner@novell.com>
20648
20649         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
20650         and set Selected instead.
20651         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
20652         collections.
20653
20654 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
20655
20656         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
20657
20658 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
20659
20660         * FontDialog.cs:
20661           - Got rid of the panel. All controls are now directly added to
20662             the dialog form
20663           - It is now possible to set a font with the Font property
20664           - MinSize and MaxSize property do now what they should
20665           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
20666           - Searching and selecting a font with the font textbox works now,
20667             the same applies to the style and size textbox
20668           - Draw the correct 3D border in the example panel
20669           - Fixed a little mem leak (unused fonts didn't get disposed)
20670           - Many other internal updates/rewrites...
20671           - Fix typo
20672
20673 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
20674
20675         * TextControl.cs: 
20676           - InsertRTFFromStream: Added 'number of characters inserted' argument
20677           - set_SelectedRTF: Now using the number of characters to calculate
20678             the new location for the selection and cursor (x/y cannot be used
20679             due to potentially already wrapped text)
20680
20681 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
20682
20683         * TextControl.cs: Added property and implemented means to allow 
20684           disabling recalculation of a document (can be used to speed up
20685           multiple inserts and is needed to make RTF inserts predictable, see
20686           bug #77659)
20687         * RichTextBox.cs: Using the new NoRecalc property of Document to
20688           keep x/y insert locations predictable. Also makes it faster inserting
20689           large chunks of RTF
20690
20691 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
20692
20693         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
20694           it's easier for a child control to handle the other messages without
20695           having to duplicate the special functionality
20696         * TextBoxBase.cs
20697           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
20698             code to handle processing the key ourselves, in order to get 
20699             access to the result of KeyEventArgs.Handled. We now only call 
20700             ProcessKey if they key hasn't been handled already. Fixes #77526.
20701           - set_Text: If null or empty string is given, just clear the 
20702             document. Fixes part of #77526
20703
20704 2006-02-27  Jackson Harper  <jackson@ximian.com>
20705
20706         * SizeGrip.cs: Paint the background color before painting the grip
20707         so things look right.
20708         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
20709
20710 2006-02-27  Mike Kestner  <mkestner@novell.com>
20711
20712         * ListView.cs:
20713           - Restructure layout and invalidation model to remove a ton of
20714           flicker from the control and speed up performance in general.
20715           - Add manual column resize, flickers like crazy, but I already have
20716           some ideas on how I'll fix that. (#76822)
20717           - Merge the three Icon-based views into a single layout method.
20718           - Move item selection interaction logic from the item since 
20719           interaction with the collections is more appropriate to the view.
20720           - Deselection on non-item clicks.
20721         * ListViewItem.cs:
20722           - Encapsulate most of the layout. Add some internal props to trigger
20723           layout.  Move to a model where Items invalidate themselves instead
20724           of just invalidating the whole control every time something changes.
20725           - Invalidate on Text/Caption changes.
20726           - switch to an offset based layout model to avoid having to absolute
20727           position every element on item moves.
20728           - correct checkbox layout to conform to MS layout.
20729         * ThemeWin32Classic.cs:
20730           - refactor some column header drawing code.
20731           - fix string justification for column headers (#76821)
20732           - make SmallIcon labels top justified for compat with MS impl.
20733         * ThemeClearlooks.cs:
20734           - adjust to new ListViewItem internal checkbox bounds api.
20735
20736 2006-02-27  Jackson Harper  <jackson@ximian.com>
20737
20738         * Control.cs:  Change where implicit controls fall in the zorder.
20739         They are now on top of all children.
20740         - Synced AddImplicit code with Add
20741         - Removed unused enumerator.
20742         * SizeGrip.cs: Remove the TODO as its been TODONE.
20743
20744 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
20745
20746         * TextControl.cs(Insert): Combine the last lines unless the insertion
20747           string ends with \n\n, otherwise we leave one line too many (Fixes
20748           something I noticed with the testapp for #77526; the bug itself was
20749           already fixed in the previous checkin)
20750
20751 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
20752
20753         * RichTextBox.cs:
20754           - SelectionColor and SelectionFont methods no longer set absolute
20755             styles. Instead, the keep font or color respectively (This 
20756             resolves a long-standing FIXME in the code)
20757           - When flushing RTF text, the insert code now considers text trailing
20758             behind the insertion point (Fixes the bug where when replacing
20759             the selected text via SelectedRTF the remainder of the line behind 
20760             the selection would stay on the first insertion line)
20761         * TextBoxBase.cs:
20762           - AppendText now updates the selection points after inserting text
20763           - AppendText now ensures that the last tag (sometimes 0-length) of
20764             the document is used for the style information (Fixes part of 
20765             bug #77220)
20766         * TextControl.cs:
20767           - Created new FontDefiniton class to allow describing partial style
20768             changes
20769           - StreamLine() now takes a lines argument, to allow it to decide
20770             whether an encountered zero-length tag is the last in the document
20771             (which must be kept to not loose the font/color contained in it,
20772             for later appends)
20773           - Created Combine() and Split() methods for Marker structs, to 
20774             support marker updates due to reformatted documents (soft line
20775             wraps)
20776           - Implemented Document.CaretTag setter
20777           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
20778             of the last line (Not the cause, but also exposed by bug #77220)
20779           - Added LineTag argument to InsertString method, to allow callers
20780             to force a certain tag to be used (required to force use of the
20781             trailing zero-length tag of a document)
20782           - Now updating markers in Combine(), to avoid stale tag markers
20783           - Added some method descriptions to aid maintenance
20784           - Implemented new FormatText concept, allowing additive/subtractive
20785             formatting by only specifying the components that are to be 
20786             changed. This was needed for resolving the RTB.SelectedColor/
20787             RTB.SelectedFont fixmes
20788           - Added Break() support method to allow breaking up linetags (used
20789             for partial formatting)
20790           - Added GenerateTextFormat() method. It is used for partial 
20791             formatting and allows to generate a full font/color from given
20792             attributes and an existing tag.
20793
20794 2006-02-26  Jackson Harper  <jackson@ximian.com>
20795
20796         * XplatUIX11.cs:  Use the correct caption height.
20797         - Translate hittest coordinates to screen coords to match MS.
20798         * XplatUIWin32.cs: When we create MDI windows we need to reset
20799         some of the style flags, so we get a nice blank window, and can
20800         draw all the decorations ourselves.
20801         - Set a clipping rectangle on the non client paint event, the
20802         window manager drawing code needs one.
20803         * Form.cs: The window manager needs to know when the window state
20804         has been updated.
20805         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
20806         don't need to factor in border and title sizes in these
20807         methods. TODO: Remove the args and fix the call points.
20808         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
20809         properly.
20810         - Let the driver set the cursors.
20811         - Improve active window handling
20812         - Correct sizes for title bars and buttons.
20813         - Match MS drawing better
20814         * MdiWindowManager.cs: We don't need to handle border style
20815         updates specially anymore.
20816         - Check for scrollbars when windows are done moving
20817         - Handle Active properly.
20818         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
20819         correctly. I am spewing the exception though, so we don't hide the
20820         bugs.
20821         
20822 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
20823
20824         * DataGridViewRowPostPaintEventArgs.cs,
20825           DataGridViewCellPaintingEventArgs.cs,
20826           DataGridViewRowCollection.cs,
20827           DataGridViewRowPrePaintEventArgs.cs,
20828           DataGridViewCell.cs: Clear a few warnings and implement a few
20829           exceptions that should be thrown.
20830
20831 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
20832
20833         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
20834           'inheriting' our parent's (non-default) cursor. (Part of
20835            the fix for #77479)
20836
20837 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
20838
20839         * XplatUIX11.cs: Fixed cast to make csc happy
20840
20841 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
20842
20843         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
20844           it's for the client area (part of fix for #77479 and needed
20845           for MDI window cursor handling)
20846         * XplatUIX11.cs
20847           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
20848             the appropriate default cursors and also passing the message
20849             up the parent chain 
20850           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
20851             for non-client areas
20852
20853 2006-02-15  Jackson Harper  <jackson@ximian.com>
20854
20855         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
20856         is a real MDI window
20857
20858 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
20859
20860         * X11DesktopColors.cs: Instead of checking the desktop session
20861           string for "KDE" check if it starts with "KDE"
20862
20863 2006-02-10  Jackson Harper  <jackson@ximian.com>
20864
20865         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
20866         systems).
20867
20868 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
20869
20870         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
20871           errors
20872         * ColorDialog.cs:
20873           - Got rid of the panel. All controls are now directly added to
20874             the dialog form
20875           - Changed to mono coding style
20876
20877 2006-02-10  Jackson Harper  <jackson@ximian.com>
20878
20879         * InternalWindowManager.cs: We don't need the set visibility to
20880         false hack anymore now that peter has written beautiful shutdown
20881         code.
20882
20883 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
20884
20885         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
20886           where already explicitly destroyed
20887
20888 2006-02-10  Jackson Harper  <jackson@ximian.com>
20889
20890         * MdiClient.cs: Handle the case where windows are too high or to
20891         the left and we need scrollbars.
20892
20893 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
20894
20895         * MimeIcon.cs: Added some icons
20896         * FileDialog.cs:
20897           - Fixed bug #77477
20898           - Got rid of the panel. All controls are now directly added to
20899             the dialog form
20900           - Changed to mono coding style
20901           - On Linux "My Computer" and "My Network" will now show some
20902             more usefull information. A new class, MasterMount, gathers
20903             this information from /proc/mount. Updated MWFFileView to make
20904             use of this information
20905           - Fixed a bug that caused FileDialog to crash when
20906             ".recently_used" file had a zero size
20907           - FilterIndex does now what it should
20908           - Some Refactoring
20909         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
20910             FileDialog changes
20911
20912 2006-02-09  Jackson Harper  <jackson@ximian.com>
20913
20914         * ComboBox.cs: Don't touch if null.
20915
20916 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
20917
20918         * Cursor.cs: 64bit safeness fix
20919         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
20920
20921 2006-02-09  Jackson Harper  <jackson@ximian.com>
20922
20923         * Form.cs: If a form is made into an MDI form update the styles so
20924         all the props can get set correctly.
20925         - Kill the mdi_container when we dont need it anymore.
20926         * InternalWindowManager.cs: Add missing NOT
20927
20928 2006-02-08  Jackson Harper  <jackson@ximian.com>
20929
20930         * InternalWindowManager.cs: Respek clipping when drawing MDi
20931         decorations.
20932
20933 2006-02-08  Jackson Harper  <jackson@ximian.com>
20934
20935         * Hwnd.cs: Add bits to track non client expose events.
20936         * XplatUIX11.cs: Track non client expose events on the hwnd. This
20937         gives us a proper invalid rect and will allow for some nice
20938         optimizations with NC client drawing
20939         - MDI windows are children windows, so move their style handling
20940         into the child window block.
20941         * InternalWindowManager.cs: Remove a state reset that was
20942         getting invoked at the wrong time. Fixes managed windows getting
20943         into a 'stuck' captured state.
20944
20945 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
20946
20947         * TextControl.cs (Document.ctor): Now initializing 
20948           selection_anchor. Fixes #77493
20949
20950 2006-02-07  Jackson Harper  <jackson@ximian.com>
20951
20952         * TrackBar.cs: The increment/decrements were backwards.
20953
20954 2006-02-07  Mike Kestner  <mkestner@novell.com>
20955
20956         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
20957         to the instance itself.
20958
20959 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
20960
20961         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
20962           on ulongs and pointers, the size differs between 32bit and 64bit
20963           systems. 
20964
20965 2006-02-07  Mike Kestner  <mkestner@novell.com>
20966
20967         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
20968         for 64 bit platforms to work around a metacity bug. 
20969
20970 2006-02-07  Jackson Harper  <jackson@ximian.com>
20971
20972         * TrackBar.cs: Process the input keys we need, and hookup to
20973         KeyDown instead of using WndProc, so we get key messages.
20974
20975 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
20976
20977         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
20978           machine we're on. 
20979         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
20980           we need to translate the XdndVersion atoms array before sending it
20981
20982 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
20983
20984         * XplatUIX11.cs: 
20985           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
20986             number of bits for the property, not the number of bytes. The
20987             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
20988             but would not crash since it specified 8 bits instead of 4 bits)
20989           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
20990             defined as XID -> long in the C headers)
20991           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
20992             references since those are now IntPtr to begin with
20993           - Switched all Atom.XXX 'int' casts to IntPtr casts
20994           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
20995           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
20996           - Added XChangeActivePointerGrab DllImport (for X11DnD)
20997         * X11Structs.cs:
20998           - Changed 'int' type for Atoms in XEvent structures to IntPtr
20999           - Changed atom in HoverStruct to be IntPtr
21000         * X11DnD.cs:
21001           - Removed local DllImports, switched code to use those from XplatUIX11
21002           - Removed/fixed casts related to the switch of Atom to be a IntPtr
21003
21004 2006-02-06  Mike Kestner  <mkestner@novell.com>
21005
21006         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
21007         method signatures in the import region.  There may still be some
21008         lingering struct marshaling issues, as I didn't drill down into those.
21009         Yet.
21010
21011 2006-02-06  Jackson Harper  <jackson@ximian.com>
21012
21013         * ComboBox.cs: Dont manually set the top_item, this is computed
21014         when the scrollbar position is set.
21015
21016 2006-02-06  Mike Kestner  <mkestner@novell.com>
21017
21018         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
21019         startup crashes on amd64.  There's other fixes needed.  All pinvoke
21020         usage of Atom needs to be mapped to IntPtr for example.  And there are
21021         likely other int/long issues to be addressed.
21022
21023 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
21024
21025         * FileDialog.cs: One more...
21026
21027 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
21028
21029         * FileDialog.cs: Next try
21030
21031 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
21032
21033         * FileDialog.cs: First part of fix for #77464
21034
21035 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
21036
21037         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
21038           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
21039           AcceptButton border drawing.
21040
21041 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
21042
21043         * Form.cs: Moved positioning of form after auto scaling is applied,
21044           otherwise it would possibly use wrong form size.
21045
21046 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
21047
21048         * Control.cs (RecreateHandle): No need to re-create any child
21049           controls, the child windows will get destroyed automatically by
21050           the windowing system or driver, and re-created when the handle
21051           is being accessed the first time. Fixes #77456
21052         * Form.cs: No longer setting the form to closing if the handle is 
21053           being recreated. This seems like the right thing to do, don't
21054           have a bug or testcase for this, though.
21055
21056 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
21057
21058         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
21059           controls to avoid unwanted side effects
21060
21061 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
21062
21063         * Control.cs: 
21064           - ScaleCore needs to scale the bounds, not the ClientSize of the 
21065             control. Fixes #77416.
21066           - DefaultSize is 0,0 for control
21067         * TextBoxBase.cs: 
21068           - DefaultSize is 100, 20
21069           - SetBoundsCore: Now enforcing the height, no matter if the provided
21070             height is more or less than the preferred one, as long as AutoSize
21071             is on
21072         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
21073
21074 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
21075
21076         * Control.cs:
21077           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
21078             call unless both performLayout is true *and* we have a pending
21079             layout change
21080           - ResumeLayout: MS does not completely nest Suspend and Resume,
21081             they bottom out at 0, fixed our code to match that.
21082           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
21083             SetBoundsCore, we were updating even when we shouldn't. This fixes
21084             swf-anchors mis-anchoring when resizing the app fast and lots.
21085           - UpdateDistances: Now only setting the left and top distance if 
21086             we have a parent and are not suspended, this is based on
21087             a suggestion by Don Edvaldson in bug #77355.
21088           - OnVisibleChanged: Fixed logic when to create the control. We may
21089             not create the control if we have no parent or if it's not visible;
21090             switched to using Visible property instead of is_visible field 
21091             since the property also considers parent states. This fixes a bug
21092             when starting Paint.Net
21093
21094 2006-02-02  Jackson Harper  <jackson@ximian.com>
21095
21096         * Form.cs: If the forms handle hasn't been created yet don't call
21097         into xplatui to make it top most, just set the topmost flag on the
21098         form in CreateParams
21099         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
21100
21101 2006-02-01  Jackson Harper  <jackson@ximian.com>
21102
21103         * ScrollableControl.cs: Refactored the Recalculate method a
21104         little, this wasn't handling all the variants of bottom and right
21105         bars needed to be added and added/removed based on their
21106         counterparts being added/removed (which changes the drawable
21107         size). Also we special case client widths and heights of 0 and
21108         don't add the scrollbar for those.
21109
21110 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
21111
21112         * XplatUIX11.cs: 
21113           - Added method to get AbsoluteGeometry(); currently unused, but might
21114             be used in the future, if we try again to figure out toplevel
21115             coordinates with some more crappy window managers
21116           - Added FrameExtents() method to retrieve the WM set decoration size
21117           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
21118             to deal with at least KDE, FVWM and metacity (Fixes #77092)
21119         * Hwnd.cs: 
21120           - Added whacky_wm tracking var for metacity
21121           - Added logic to have default menu height if the actual menu height
21122             has not yet been calculated (part of fix for #77426)
21123         * Form.cs: Keep track whether client size has been set and re-set 
21124           it if a menu is added/removed afterwards (Fixes #77426)
21125
21126 2006-01-31  Jackson Harper  <jackson@ximian.com>
21127
21128         * Control.cs: When a new Site is set on the component attempt to
21129         pull the AmbientProperties from it.
21130
21131 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
21132
21133         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
21134           in the background of the owning form. Fixes #77332
21135
21136 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
21137
21138         * MimeIcon.cs: Fix for #77409
21139
21140 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
21141
21142         * XplatUIX11GTK.cs: Initial import
21143
21144 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
21145
21146         * FixedSizeTextBox: fixes class signature
21147
21148 2006-01-30  Jackson Harper  <jackson@ximian.com>
21149
21150         * FixedSizeTextBox.cs: New internal class that represents a
21151         textBox that will not be scaled.
21152         * TreeView.cs:
21153         * ComboBox.cs:
21154         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
21155         standard TextBox.
21156                 
21157 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
21158
21159         * XplatUIX11.cs: Retrieve default screen number instead of
21160           assuming 0. Attempted fix for #77318
21161
21162 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
21163
21164         * XplatUIWin32.cs: 
21165           - GetWindowPos: When a window is parented by FosterParent, use 
21166             the desktop instead of FosterParent as the base to get coordinates
21167           - CreateWindow: Don't make FosterParent the parent window for Popups
21168             if we don't want a taskbar entry, Popups automatically don't get one
21169         * Hwnd.cs: Need to call remove to actually remove the key from the
21170           hash table
21171
21172 2006-01-30  Mike Kestner  <mkestner@novell.com>
21173
21174         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
21175
21176 2006-01-30  Jackson Harper  <jackson@ximian.com>
21177
21178         * TreeView.cs:
21179         * TreeNode.cs: Raise events no matter how the treenode is
21180         checked. Patch by Don Edvalson.
21181
21182 2006-01-30  Jackson Harper  <jackson@ximian.com>
21183
21184         * TreeNode.cs: Signature fix.
21185
21186 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
21187
21188         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
21189
21190 2006-01-20  Mike Kestner  <mkestner@novell.com>
21191
21192         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
21193         event forwarding when menus are active.
21194         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
21195         Most of the patch is pdb's with a little rework.
21196
21197 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
21198
21199         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
21200           Removed GetMenuDC and ReleaseMenuDC methods; replaced
21201           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
21202         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
21203         * InternalWindowManager.cs: Added use of PaintEventStart/End to
21204           handling of WM_NCPAINT message, now passing the PaintEventArgs to
21205           the PaintWindowDecorations method
21206         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
21207         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
21208         * MenuAPI.cs: Made tracker window invisible
21209         * XplatUIWin32.cs:
21210           - Removed GetMenuDC and ReleaseMenuDC methods
21211           - Implemented the client=false path for PaintEventStart and
21212             PaintEventEnd
21213
21214 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
21215
21216         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
21217         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
21218           styles
21219         * Form.cs: 
21220           - MaximizeBox, MinimizeBox: Recreate the handle when setting
21221             the style
21222           - CreateParams: Reworked the styles to match MS look'n'feel,
21223             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
21224             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
21225
21226 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
21227
21228         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
21229           window is not mapped, since otherwise every form that's being 
21230           created is considered minimized, which is wrong.
21231         * Form.cs: Catching the exception and returning our internal value
21232           instead
21233
21234 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
21235
21236         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
21237           SetWindowMinMax() to have means to tell the driver about the minimum,
21238           maximum and maximized state window sizes. (Part of the fix for #76485)
21239         * Form.cs:
21240           - Implemented tracking of minimum and maximum window size, now calling
21241             new SetWindowMinMax() driver method to tell the driver (Part of the
21242             fix for #76485)
21243           - Finished handling of WM_GETMINMAXINFO method, now setting all values
21244             (Completes fix for #76485)
21245           - Calling new SetWindowMinMax driver method when the handle for a 
21246             form is created, to make sure the driver knows about it even if
21247             the values have been set before the window was created
21248           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
21249             to avoid messing up our anchoring calculations (partial fix
21250             for #77355)
21251         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
21252         * XplatUIX11.cs:
21253           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
21254           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
21255             (and presumably other freedesktop.org compliant WMs). Left the
21256             assumption unmapped=minimized, needed for SetVisible to work.
21257           - Now setting the window state when creating windows
21258           - Fixed SetVisible to consider/set the window state when mapping
21259             a Form. We cannot set the state before it's mapped, and we cannot
21260             use Form.WindowState once it's mapped (since it would ask the
21261             driver and get 'normal'. Therefore, we grab the state before
21262             mapping, map, and then set state.
21263           - Implmemented SetWindowMinMax method; Metacity does not seem to
21264             honor the ZoomHints, though.
21265         * XplatUIWin32.cs:
21266           - Removed MINMAXINFO (moved to XplatUIStructs)
21267           - Added SetWindowMinMax stub (on Win32 the only way to set that
21268             information is in response to the WM_GETMINMAXINFO message, which
21269             is handled in Form.cs)
21270           - Added logic to SetVisible to set the proper window state when a 
21271             form is made visible (fixes #75720)
21272
21273 2006-01-26  Jackson Harper  <jackson@ximian.com>
21274
21275         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
21276         same way we handle them with Invoke.
21277
21278 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
21279
21280         * Form.cs:
21281           - Added tracking of window state so CreateParams can return
21282             the appropriate style
21283           - Moved setting of WS_CAPTION style in CreateParams to allow
21284             styles without caption
21285         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
21286           control if the TextBox property is accessed. Fixes #77345
21287         * Control.cs:
21288           - get_Created: now uses is_disposed and is_created to determine
21289             return value (suggested by Jackson)
21290           - CreateHandle: No longer exits if the handle is being recreated
21291           - RecreateHandle: If the handle is not yet created call the 
21292             appropriate method to create either control or handle. If the
21293             control is already created CreateHandle will simply exit instead
21294             of just creating the handle
21295         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
21296           now SendMessage WM_DESTROY directly to the control when DestroyWindow
21297           is called.
21298         * XplatUIX11.cs: 
21299           - When DestroyWindow is called, instead of waiting for the 
21300             DestroyNotification from X11, we directly post it to the WndProc
21301             and immediately dispose the hwnd object.
21302             Same applies to DestroyChildWindows, and this obsoletes the
21303             expose_pending tracking. Contrary to Win32 behaviour we destroy our
21304             child windows before our own, to avoid X11 errors.
21305           - Removed the direct sending of WM_PAINT on UpdateWindow
21306         * XplatUIWin32.cs:
21307           - Reworked DoEvents and GetMessage to allow access to internal queue
21308             even when trying non-blocking access to the queue.  Fixes #77335. 
21309             Based on a patch suggestion by Don Edvalson. The new private
21310             GetMessage can now also be used as a backend for a PeekMessage
21311             frontend version.
21312         * XplatUI.cs: Improved debug output for CreateWindow
21313
21314 2006-01-25  Jackson Harper  <jackson@ximian.com>
21315
21316         * Help.cs: Allow param to be null. Patch by Don Edvalson.
21317
21318 2006-01-24  Jackson Harper  <jackson@ximian.com>
21319
21320         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
21321         when we have a MaxDropItems lower then the selected index.
21322
21323 2006-01-24  Jackson Harper  <jackson@ximian.com>
21324
21325         * Control.cs: Don't allow selection of non visible controls, allow
21326         selection of controls without parents.
21327
21328 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
21329
21330         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
21331         * DataGridDrawingLogic.cs: Add editing row only when is necessary
21332
21333 2006-01-23  Jackson Harper  <jackson@ximian.com>
21334
21335         * UpDownBase.cs: Make the textbox handle all the selection and
21336         tabbing. This fixes tabing to updown controls.
21337
21338 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
21339
21340         * TextBoxBase.cs: fixes exception thown the object was null
21341
21342 2006-01-23  Jackson Harper  <jackson@ximian.com>
21343
21344         * ButtonBase.cs: Just use the base CreateParams. They set
21345         visibility and enabled correctly.
21346         * ComboBox.cs:
21347         * TrackBar.cs:
21348         * MonthCalendar.cs: Lets let the base set as much of the
21349         createparams as possible so we don't have duplicate code all over
21350         the place.
21351
21352 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
21353
21354         * ThemeGtk.cs: Added TrackBar and some experimental code to
21355           get double buffering back
21356
21357 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
21358
21359         * DataGrid.cs: Allows row number set internally higher than the last
21360         when creating a new row. Restores the editing functionality.
21361
21362 2006-01-20  Mike Kestner  <mkestner@novell.com>
21363
21364         * MimeIcon.cs: delay Image creation until the icons are accessed
21365         instead of creating 190 scaled images on GnomeHandler startup.
21366
21367 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
21368
21369         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
21370           first call base before processing the event. Fixes #77279
21371
21372 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
21373
21374         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
21375           that the stride for the GDI bitmap would match the stride of
21376           a DIB or a Cursor.
21377
21378 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
21379
21380         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
21381
21382 2006-01-19  Jackson Harper  <jackson@ximian.com>
21383
21384         * ComboBox.cs: Hookup the text controls keydown event so we get
21385         those when the text control has the focus.
21386
21387 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
21388
21389         * Label.cs: Now using the base events instead of defining new ones;
21390           this allows us to just call the base properties without having to
21391           duplicate all base property logic 
21392
21393 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
21394
21395         * Label.cs: A label by default is not a tabstop (Fixes one of our
21396           failing nunit tests)
21397
21398 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
21399
21400         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
21401         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
21402
21403 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
21404
21405         * Cursor.cs: Reimplemented creating cursor bitmaps without using
21406           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
21407           This fixes #77218
21408         * XplatUIWin32.cs: 
21409           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
21410             constructor creates images that can't be saved. Part of the fix
21411             for #76103
21412           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
21413           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
21414             bug fix for handling window state in forms properly)
21415
21416 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21417
21418         * ThemeGtk.cs: Simplify ScrollBar drawing
21419
21420 2006-01-18  Jackson Harper  <jackson@ximian.com>
21421
21422         * Splitter.cs: Set the default dock style for the splitter control
21423         in the constructor.
21424
21425 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21426
21427         * ThemeGtk.cs: Corrected StateType and ShadowType for
21428           gtk_paint_box
21429
21430 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21431
21432         * Control.cs: Make use of Theme.DoubleBufferingSupported
21433         * ThemeGtk.cs:
21434           - Added drawing for flat style buttons
21435           - Added ScrollBar drawing
21436
21437 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21438
21439         * ThemeClearlooks.cs: Removed some unneeded code.
21440         * ThemeGtk.cs: First part of ThemeGtk enhancements.
21441
21442 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
21443
21444         * LinkLabel.cs: We need to update the hover drawing when
21445           leaving the control as well.
21446
21447 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
21448
21449         * DataGrid.cs: Clicking on non empty areas in the columns
21450            area was giving an exception
21451
21452 2006-01-17  Jackson Harper  <jackson@ximian.com>
21453
21454         * ThemeWin32Classic.cs:
21455         * ListView.cs: Do not draw/clip the headers when the header style
21456         is None.
21457
21458 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
21459
21460         * DataGrid.cs: Fixes 77260
21461         
21462 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
21463
21464         * DataGrid.cs: Clicking on a column on a empty grid was giving
21465           an exception
21466
21467 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
21468
21469         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
21470           or any keypress will crash the grid.
21471
21472 2006-01-17  Mike Kestner  <mkestner@novell.com>
21473
21474         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
21475         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
21476         invisible/previously-visible items.
21477         [Fixes #76909]
21478
21479 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
21480
21481         * ThemeClearlooks.cs:
21482         - Added CL_Draw_Button method; now other theme controls that are 
21483           not derived from button or do not have a button can draw buttons
21484           too
21485         - Updated ComboBox drawing
21486         - Beautified RadioButton drawing
21487         - Corrected drawing of bottom and left tabs
21488         - Beautified DateTimePicker and MonthCalendar
21489         - Added CPDrawButton and CPDrawRadioButton
21490
21491 2006-01-16  Jackson Harper  <jackson@ximian.com>
21492
21493         * ComboBox.cs: Set the initial value of the scrollbar to the
21494         current index. Reduce the numbers of refreshs and IndexOfs called.
21495
21496 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
21497
21498         * FileDialog.cs: When the file listview is focused hitting the
21499           backspace key moves the fileview to the parent directory
21500
21501 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
21502
21503         * Form.cs: 
21504           - Added RecreateHandle call when changing taskbar visibility to 
21505             trigger reparenting in Win32 driver (Fixes #75719)
21506           - If a window has minimize or maximize buttons, it cannot have
21507             a help button
21508         * XplatUIWin32.cs:
21509           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
21510             the toplevel form with FosterParent (A toolwindow not on the
21511             taskbar) (Fixes #75719)
21512           - Made FosterParent a toolwindow
21513
21514 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21515
21516         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
21517
21518 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21519
21520         * ToolTip.cs: If SetToolTip is called from a control and the mouse
21521           is currently over that control, make sure that tooltip_window.Text
21522           gets updated
21523
21524 2006-01-13  Mike Kestner  <mkestner@novell.com>
21525
21526         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
21527
21528 2006-01-13  Jackson Harper  <jackson@ximian.com>
21529
21530         * TreeView.cs: On MS GetNodeAt never actually factors in the X
21531         value passed.  Also redraw the selected node when we recieve
21532         focus, so tabbing between trees works correctly.
21533
21534 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21535
21536         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
21537           ~/.gconf/%gconf-tree.xml, so use
21538           .gconf/desktop/gnome/interface/%gconf.xml
21539
21540 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
21541
21542         * TextControl.cs: Draw text in gray if control is disabled
21543
21544 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
21545
21546         * TreeView.cs: Draw the focus rectangle outside the highlight, to
21547           make sure it's always visible. Fixes #76680.
21548
21549 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
21550
21551         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
21552
21553 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
21554
21555         * PageSetupDialog.cs: Added.
21556         * PrintDialog.cs: Attributes.
21557         * PrintPreviewControl.cs: Updates.
21558         * PrintPreviewDialog.cs: Updates.
21559         
21560 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21561
21562         * Control.cs: Undid my selection check fix, since it's not needed
21563         * TextBoxBase.cs:
21564           - Now considering the presence of hscroll/vscroll when sizing
21565             vscroll/hscroll respectively. Fixed bug #77077
21566           - Added Left/Up/Down/Right to IsInputKey list to prevent
21567             ContainerControl from stealing them. This fixes what I broke
21568             with my last checkin.
21569
21570 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
21571
21572         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
21573           I finally understand how the property can be set without a setter :-)
21574
21575 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21576
21577         * Application.cs:
21578           - Switched RunLoop to use static Message.Create to create a 
21579             Message object
21580           - Added PreProcessMessage call in runloop for keyboard events; this
21581             is part of the fix for #77219, I overlooked this originally in the
21582             MSDN doc for PreProcessMessage
21583         * Control.cs:
21584           - Removed call to PreProcessMessage from handling of keyboard 
21585             messages; it's supposed to be done in the message pump
21586           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
21587             per MSDN documentation.
21588           - IsInputChar: All chars are input chars by default; removed the 
21589             parent calling chain, MS does not document that
21590           - PreProcessMessage: If IsInputChar is true, we want to return false
21591             to allow dispatching of the message
21592           - When selecting the next control, now also check that we're not
21593             selecting ourselves again and therefore return a false positive.
21594         * TextBoxBase.cs:
21595           - Tried to match return values for IsInputKey and ProcessDialogKey
21596             to what MS returns; moved processing of our special keys outside
21597             ProcessDialogKey since MS does not seem to return true on those.
21598           - Moved code that previously was in ProcessDialogKey into new private
21599             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
21600           - Reworked handling of WM_CHAR to not have to duplicate code from
21601             Control.cs anymore, instead we simply call down to base.
21602            
21603 2006-01-12  Jackson Harper  <jackson@ximian.com>
21604
21605         * ComboBox.cs: We always need to refresh the text area when
21606         EndUpdate is called. Fixes the combobox in the file dialog.
21607         * Control.cs: Don't create the creator_thread until the controls
21608         handle is created.  Also in InvokeRequired we check if the
21609         creator_thread is null. This gives the effect of InvokeRequired
21610         returning true if the controls handle is not created yet, and
21611         matches MS.
21612
21613 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21614
21615         * XplatUI.cs:
21616           - Added StartLoop() driver method. This is used to allow drivers to
21617             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
21618             loop for a particular thread
21619           - Added EndLoop() driver method. This is called once the message
21620             pump for the thread is shut down
21621           - Added SupportsTransparency method to allow the driver to indicate
21622             opacity support for windows
21623         * Form.cs:
21624           - Removed TODO attribute, completed AllowTransparency property
21625           - Added documented logic to Opacity
21626         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
21627           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
21628           versions of CompatibleTextRendering
21629         * X11Structs.cs: Added opacity atom to our atom enumeration
21630         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
21631           of a form might be set before it's reparented by the WM, and we need
21632           the opacity value without calling up to Form)
21633         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
21634           SupportsTransparency() driver methods
21635         * Application.cs: Now calling StartLoop and EndLoop driver methods
21636         * XplatUIX11.cs:
21637           - Added opacity atom registration
21638           - Added StartLoop()/EndLoop() methods. They're empty right now but
21639             will need to get implemented when we switch to a per-thread queue
21640           - Implemented SupportsTransparency() method
21641           - Implemented SetWindowTransparency() method
21642           - Added support for setting the opacity value when a window is
21643             reparented (since the opacity needs to be set on the WM frame)
21644         * XplatUIOSX.cs, XplatUIWin32.cs:
21645           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
21646
21647 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
21648
21649         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
21650
21651 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
21652
21653         * FileDialog.cs: Added ToolTip for MWFFileView
21654         * MimeIcon.cs: Rewrote GnomeHandler.
21655           - Get currently used gnome icon theme from
21656             ($HOME)/.gconf/%gconf-tree.xml
21657           - Make use of inherited icon themes
21658           - Support SVG icon themes like Tango via librsvg
21659
21660 2006-01-12  Miguel de Icaza  <miguel@novell.com>
21661
21662         Revert's Jackson's revert which broke 2.0 builds.   Fix both
21663         builds. 
21664         
21665         * Application.cs: Move the use_compatible_text_rendering outside
21666         the NET_2_0 define.  If we ever need to use the
21667         use_compatible_text_rendering on the individual controls they will
21668         access the variable from the common shared code paths.
21669
21670 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21671
21672         * XplatUI.cs:
21673           - Added more granular debug options
21674           - Added method to print both window text and id
21675           - Switched debug output to use new Window() debug method
21676           - Added IsEnabled() driver method
21677           - Added EnableWindow() driver method
21678         * Form.cs:
21679           - Removed end_modal; no longer needed, new loop handles termination
21680             via 'closing' variable
21681           - If form is modal, setting DialogResult will now initiate loop
21682             termination via 'closing' variable
21683           - Added support for is_enabled/WS_DISABLED to CreateParams
21684           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
21685             does all the work
21686           - Removed code that's now in RunLoop from ShowDialog()
21687           - Added various documented sanity checks to ShowDialog()
21688           - Added handling of WM_DESTROY message; we set 'closing' on getting
21689             the message to indicate the message pump to terminate
21690           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
21691             send by the Application.ExitThread method. (We send the message
21692             to destroy the window after all other events have been
21693             processed through the queue, instead of destroying the handle 
21694             directly)
21695           - Moved code from Close() method to WM_CLOSE handler; added logic
21696             to only send close-related events if the form is not displayed
21697             modal
21698         * Splitter.cs (..ctor): Fixed typo in resource name
21699         * Control.cs:
21700           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
21701             brush now
21702           - set_Cursor: Now only setting calling into XplatUI if the handle for
21703             the control is already created; this avoids implict handle creation
21704             or crashes if it's not created
21705           - set_Enabled: Now setting the enabled state via the new driver method
21706             instead of just tracking it
21707           - CreateParams: Added logic to set WS_DISABLED based on enabled state
21708           - CreateControl: Reordered event firing and method calls to more
21709             closely fire events in the order MS does. Now setting the
21710             enabled state in the driver when creating the control.
21711           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
21712             match MS order
21713         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
21714           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
21715         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
21716         * Hwnd.cs:
21717           - Added tracking of window enabled state (get_Enabled/set_Enabled)
21718           - Added EnabledHwnd property to easily allow a driver to find the
21719             handle of the first enabled window in the parent chain (this is
21720             used by drivers to pass up input events of disabled windows)
21721         * XplatUIDriver.cs: Added IsEnabled() method
21722         * Application.cs:
21723           - Removed crude and obsolete exiting tracking variable
21724           - Removed internal ModalRun(); replaced by RunLoop()
21725           - Implemented private CloseForms() method to allow closing all 
21726             windows owned by a particular (or all) threads
21727           - Exit() now properly closes all windows without forcing the message
21728             pump to quit
21729           - Removed obsolete InternalExit() method
21730           - Changed Run() methods to use new RunLoop() message pump
21731           - Implemented new RunLoop() method for both modal and non-modal forms
21732         * CommonDialog.cs:
21733           - get_CreateParams: Added setting of WS_DISABLED
21734           - Simplified ShowDialog(); now all the work is done in RunLoop(),
21735             invoked via Form.ShowDialog()
21736         * NativeWindow.cs: We don't remove the window from the collection when
21737           the handle is destroyed; there might still be messages for it in the
21738           queue (mainly the resulting WM_DESTROY); instead it will be removed
21739           when Control calls InvalidateHandle in the WM_DESTROY handler
21740         * XplatUIX11.cs:
21741           - CreateWindow: Added logic to handle the WS_DISABLED window style
21742           - EnableWindow: Implemented based on Hwnd.Enabled
21743           - GetMessage: Reset PostQuitState so the method can be called again
21744           - Implemented support for disabled windows (passing messages to the
21745             first enabled parent) in handling all input messages
21746           - Added optimizations for handling Expose events
21747           - Implemeted new driver method IsEnabled()
21748           - Now always resetting paint pending tracking vars when we start paint
21749           - Re-implemented UpdateWindow via just sending a WM_PAINT message
21750         * XplatUIOSX.cs: Added IsEnabled method stub
21751         * XplatUIWin32.cs: Implemented new IsEnabled() method
21752
21753 2006-01-11  Jackson Harper  <jackson@ximian.com>
21754
21755         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21756         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
21757         variables a little.
21758         * ColorDialog.cs: Clear out the old form before adding the new
21759         panel.  
21760
21761 2006-01-11  Jackson Harper  <jackson@ximian.com>
21762
21763         * X11Dnd.cs: Make sure to add all the text formats when adding
21764         strings to the data object.
21765         * TreeNodeCollection.cs: When adding to a sorted tree we need to
21766         do some redrawing too.  Also change the UpdateNode to an
21767         UpdateBelow so the newly added node gets painted.
21768         
21769 2006-01-11  Miguel de Icaza  <miguel@novell.com>
21770
21771         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21772         LinkLabel.cs, PropertyGrid.cs: Implement the
21773         UseCompatibleTextRendering property for 2.x
21774
21775         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
21776
21777 2006-01-11  Jackson Harper  <jackson@ximian.com>
21778
21779         * TreeView.cs: Use the property for setting the selected node so
21780         the correct events get raised.
21781         * TreeNode.cs: Update the tree when the fore/back colours of a
21782         node are set.
21783
21784 2006-01-10  Jackson Harper  <jackson@ximian.com>
21785
21786         * TreeView.cs: Allow setting SelectedNode to null.
21787
21788 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21789
21790         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
21791
21792 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21793
21794         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
21795
21796 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21797
21798         * PrintDialog.cs: Added attributes and set default property values.
21799
21800 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21801
21802         * PrintControllerWithStatusDialog.cs: 
21803         Added PrintControllerWithStatusDialog.
21804
21805 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21806
21807         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
21808         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
21809
21810 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21811
21812         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
21813
21814 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
21815
21816         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
21817         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
21818
21819 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
21820
21821         * MimeIcon.cs: Added internal class SVGUtil.
21822
21823 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
21824
21825         * FileDialog.cs: Don't crash if there are two files with the
21826           same name but different locations.
21827
21828 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
21829
21830         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
21831         dates across multiple month grids. Used to not highlight entire 
21832         month, but does now.
21833         
21834 2006-01-06  Jackson Harper  <jackson@ximian.com>
21835
21836         * MonthCalendar.cs: Removed DoEvents call to prevent a running
21837         message loop. Change timer intervals to numbers that seem more
21838         natural.
21839
21840 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
21841
21842         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
21843           object for location info since screen object is now implemented.
21844
21845 2006-01-05  Jackson Harper  <jackson@ximian.com>
21846
21847         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
21848         * AsyncMethodResult.cs: We no longer use a WeakReference for the
21849         AsyncMethodResult, this is because we ALWAYS want the
21850         ManualResetEvent to get set.
21851         * Control.cs: When disposing use an async invoke to call shutdown
21852         code, so that thigns don't block on the finalizer thread.  Also
21853         check if we even have a message loop before trying to send
21854         messages, if we don't then don't bother sending messages.
21855         - No more weak references for async methods
21856         * XplatUIDriver.cs: No more weak references for async methods.
21857
21858 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21859
21860         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
21861           returns two FontFamily with the same name
21862
21863 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
21864
21865         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
21866           drawing disabled text. Instead using the ColorGrayText color
21867
21868 2006-01-04  Jackson Harper  <jackson@ximian.com>
21869
21870         * TreeNode.cs: redraw the node when its image index is changed.
21871
21872 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
21873
21874         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
21875           time I checked there are no others like it.
21876
21877 2006-01-04  Jackson Harper  <jackson@ximian.com>
21878
21879         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
21880         this gives the behavoir I was looking for.
21881         * Control.cs: Special case Invoking EventHandlers, this matches MS
21882         and fixes part of bug #76326.
21883
21884 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21885
21886         * ThemeClearlooks.cs, FileDialog.cs:
21887           - Reflect the latest Theme class changes
21888           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
21889             with DateTime
21890             
21891 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21892
21893         * Theme.cs: Cache UI resource images and resize them if needed
21894
21895 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
21896
21897         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
21898           is called. This fixes the crash in Nexxia when setting the font
21899           attributes in the chat. [However, RTF needs a look-over to make sure
21900           that all SelectionXXX methods handle the special case that selection
21901           is empty and therefore the change must be applied to all text starting
21902           at the cursor/selection start]
21903
21904 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
21905
21906         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21907           XplatUIOSX.cs: Added SendMessage and PostMessage methods
21908         * X11Keyboard.cs: Switched to new way of calling PostMessage
21909
21910 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
21911
21912         * Theme.cs: Added theme interface for images to allow the theme to
21913           control what images are used for things like FileDialog, MessageBox
21914           icons, etc.
21915         * MessageBox.cs: Now uses the new Theme icon/image interfaces
21916
21917 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
21918
21919         * FileDialog.cs:
21920           - Removed some dead code
21921           - Opening a recently used file does work now
21922           - Small UI enhancements
21923           - Refactoring
21924
21925 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
21926
21927         * FileDialog.cs: Forgot too add __MonoCS__
21928
21929 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
21930
21931         * FileDialog.cs: We are able to read recently used files now let's
21932           go on and write them.
21933
21934 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
21935
21936         * FileDialog.cs: Breathe some life into "last open"/"recently used"
21937           button
21938         * MimeIcon.cs: Do a check for the top level media type also
21939
21940 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
21941
21942         * ThemeClearlooks.cs:
21943           - Added CPDrawStringDisabled
21944           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
21945             some chars if the text doesn't fit into text_rect
21946           - DrawListViewItem: If View = View.LargeIcon center the image;
21947             rewrote the drawing of ListViewItem.Text if View = 
21948             View.LargeIcon
21949
21950 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
21951
21952         * MimeIcon.cs: Use default KDE icon theme if there is no
21953           "48x48" directory for the current icon theme, fixes #77114
21954         * Mime.cs: Disable not working and actually not used code. 
21955         * ThemeWin32Classic.cs:
21956           - Replace "new SolidBrush" in GetControlBackBrush and
21957             GetControlForeBrush with ResPool.GetSolidBrush
21958           - Changed DrawListViewItem from private to protected virtual
21959         * FileDialog.cs:
21960           - Added form.MaximizeBox = true
21961           - Don't throw an exception if there is a broken symbolic link
21962
21963 2005-12-23  Jackson Harper  <jackson@ximian.com>
21964
21965         * TabControl.cs: Give the panels focus, keyboard navigation is
21966         fixed so this works correctly now.
21967         - We need these key events also.
21968         * ToolBar.cs: Remove some of the poor mans double buffering.
21969         
21970 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
21971
21972         * ComboBox.cs: The internal TextBox now returns the focus.
21973
21974 2005-12-23  Jackson Harper  <jackson@ximian.com>
21975
21976         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
21977
21978 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
21979
21980         * Control.cs: Removed debug code
21981         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
21982           implicit children
21983
21984 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
21985
21986         * Control.cs: When creating the control, update the Z-order after
21987           all it's children are created, too. (Fixes nexxia not showing
21988           picturebox bug)
21989
21990 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
21991
21992         * Control.cs: Do not update the anchoring distances if layout is
21993           suspended, instead do it once layout is resumed
21994
21995 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
21996
21997         * Control.cs: 
21998           - After many hours of debugging, for both Jackson and
21999             myself, it turns out that it helps to set the parent of a control
22000             if you want to actually see it onscreen. In the spirit of that
22001             discovery, we're now setting the parent of the control and
22002             it's children when the control's handle is created. This fix
22003             will make Lutz Roeder's Reflector run happily. 
22004           - now just creating the handle instead of the whole control when
22005             getting a graphics context for the control.
22006
22007 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
22008
22009         * ScrollableControl.cs: When calculating the canvas, don't consider
22010           the scrollbar widths. Instead, predict if horizontal scrollbar
22011           will affect canvas when deciding on vertical display and vice versa.
22012
22013 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
22014
22015         * RichTextBox.cs: Set default RTF font for documents that don't
22016           have a font table (Fixes #77076)
22017
22018 2005-12-22  Jackson Harper  <jackson@ximian.com>
22019
22020         * TextBoxBase.cs: It's difficult to do, but you can have an empty
22021         clipboard. This prevents a NullRef in that case.
22022         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
22023         clipboard. PRIMARY is for the currently selected text only. (We
22024         should implement PRIMARY at some point.
22025
22026 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
22027
22028         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
22029           a Unicode function with a structure that was defined in Ansi way.
22030           This fixes #76942.
22031
22032 2005-12-21  Jackson Harper  <jackson@ximian.com>
22033
22034         * StatusBar.cs: Statusbar handles its fore/back colours on it's
22035         on. Because thats how it rolls. (and this avoids it using ambient
22036         colours).
22037         * ThemeWin32Classic.cs: Use the proper back color for filling.
22038         * Menu.cs: Use the system menu bar color for drawing menu
22039         bars. Using the window back color will bring ambient colours into
22040         the picture.
22041
22042 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
22043
22044         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
22045           Bitmaps were created and not disposed.
22046
22047 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
22048
22049         * Control.cs (CreateControl): Don't do anything if the control is
22050           already created, otherwise we'd fire the OnCreated event more than
22051           once
22052
22053 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
22054
22055         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
22056           will always match. Instead return -1. Fixes #76464.
22057
22058 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
22059
22060         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
22061           neither the beginning nor the end of the line (Fixes bug #76479)
22062
22063 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
22064
22065         * Control.cs:
22066           - ControlNativeWindow.ControlFromHandle(): Now handling situation
22067             where handle is invalid
22068           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
22069             instead of slower linear search
22070         * NativeWindow.cs: Don't remove the window from the hashtable until
22071           after the driver has destroyed it (since the driver might use
22072           Control.FromHandle to lookup the control object
22073         * Hwnd.cs: Added DestroyPending property to track if a window is 
22074           already destroyed as far as the driver is concerned and only hasn't
22075           yet notified the control
22076         * XplatUIX11.cs:
22077           - Activate(): Check if the window is still valid before using the 
22078             handle
22079           - Implemented DestroyChildWindow() method to mark child windows as
22080             destroyed when a window is destroyed. This prevents situations 
22081             where we might call an X method based on queued events for a
22082             window that already has been destroyed but we haven't yet pulled
22083             the destroy method from the queue.
22084           - Added a call to the new DestroyChildWindow() method to the drivers
22085             DestroyWindow code. Also now marking the destroyed window itself
22086             as pending
22087
22088 2005-12-20  Jackson Harper  <jackson@ximian.com>
22089
22090         * StatusBar.cs:
22091         * StatusBarPanel.cs: Don't calculate panel sizes on draw
22092         anymore. Just do them when needed, also track the rects of panels
22093         so that we can optimize refreshing more in the future.
22094
22095 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
22096
22097         * ColorDialog.cs: Fixed focus drawing in small color controls
22098
22099 2005-12-19  Jackson Harper  <jackson@ximian.com>
22100
22101         * InternalWindowManager.cs:
22102         * MdiWindowManager.cs: Cleanup some coordinate system changes so
22103         moving windows works properly.
22104
22105 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
22106
22107         * Control.cs: 
22108           - Removed call to InitLayout() from SetBoundsCore(); doc says
22109             it's only called when a control is added to a container
22110           - Split InitLayout logic, moved to separate UpdateDistances() method
22111             since we need to perform those calculations more often than just
22112             when adding the control to a container. (Needed to fix #77022)
22113           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
22114           - Reduced the OnBindingContextChanged events count, don't send them
22115             unless the control is created, we still aren't totally matching
22116             MS, but I can't quite figure out some of their rules
22117
22118 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
22119
22120         * ThemeClearlooks.cs: Corrected distance between ProgressBar
22121           stripes
22122
22123 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
22124
22125         * ThemeClearlooks.cs:
22126           - Updated ProgressBar drawing
22127           - Corrected drawing of ScrollBars and scroll buttons
22128           - Some temporary fixes for minor pixel artefacts
22129
22130 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
22131
22132         * Control.cs:
22133           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
22134             cause events to be sent in the same order as MS does.
22135           - Added ChangeParent() method to trigger various OnXXXChanged events
22136             that need to be fired when a parent changes (This is a reworking
22137             of the patch from r54254, with the X11 errors fixed)
22138           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
22139             since on MS we get OnLayoutChanged events when calling Clear()
22140           - Changed Enabled property to consider parent state as well, if a
22141             parent is not enabled, the control will not be either
22142           - Changed Parent property to simply call Controls.Add() since that
22143             now does all the work required, this way we avoid code duplication
22144           - Threw in a few OnBindingsContextChanged calls to try and match
22145             when MS sends them. We seem to send a few too many, though.
22146           - Added call to CreateControl when adding the control to a parent.
22147             We were never calling CreateControl. Still needs some work, in
22148             some places we treat HandleCreated and ControlCreated as equal, 
22149             which is wrong
22150           - Removed obsolete commented out code from UpdateZOrder()
22151
22152 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
22153
22154         * ThemeClearlooks.cs: Updated TrackBar drawing.
22155
22156 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
22157
22158         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
22159
22160 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
22161
22162         * FileDialog.cs: Add the Help button and the open readonly
22163           checkbox only if needed
22164
22165 2005-12-16  Jackson Harper  <jackson@ximian.com>
22166
22167         * Control.cs: Make sure we have an active menu before trying to
22168         process commands on it. Prevents menu-less forms from crashing
22169         when Alt is pressed.
22170         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
22171         Dieter Bremes.
22172         * RichTextBox.cs: Expand statement to help out gmcs and fix the
22173         2.0 build.
22174
22175 2005-12-16  Jackson Harper  <jackson@ximian.com>
22176
22177         * InternalWindowManager.cs: Don't translate tool windows screen
22178         coordinates. This fixes windows 'bouncing' around when being moved.
22179
22180 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
22181
22182         * TextBoxBase.cs:
22183           - MaxLength now treats 2^31-1 equal to unlimited length (this is
22184             not quite MS compatible, MS uses that number only for single line
22185             and 2^32-1 for multi-line, but I figure it won't hurt keeping
22186             the limit at 2GB)
22187           - Now enforcing the MaxLength limit when entering characters
22188           - Added argument to internal Paste() method to track if it's called
22189             from programatically or via keyboard, since keyboard driven pastes
22190             need to enforce max-length
22191           - Added logic to Paste to only paste as many chars as MaxLength 
22192             allows
22193         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
22194         * TextControl.cs:
22195           - Added Length property to return number of characters in document
22196           - Added private CharCount property which only tracks actual chars
22197             in the document (no linefeeds) and fires event when CharCount
22198             changes
22199           - Added tracking of character count to all methods that alter it
22200           - Added LengthChanged event to allow applications to subscribe
22201             to any changes to the document
22202
22203 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
22204
22205         * TextBox.cs: 
22206           - Removed local password_char field (moved to TextBoxBase)
22207           - Now setting the document's password var when password is
22208             set
22209         * TextBoxBase.cs:
22210           - Added password_char field (needed here so MultiLine can
22211             access it)
22212           - Added logic to MultiLine property setter to set the document's
22213             variable when password display is allowed
22214           - Removed debug code and made some debug code conditional
22215         * TextControl.cs:
22216           - Added RecalculatePasswordLine() method to handle special password
22217             char only lines
22218           - Added PasswordChar property, also added related tracking vars
22219           - Draw() method now uses local text var for grabbing text to draw,
22220             this var is set to line.text unless we're doing password display,
22221             then it is set to the pre-generated all-password-chars line
22222           - Added calling RecalculatePasswordLine() method for password lines
22223
22224 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
22225
22226         * Hwnd.cs: 
22227           - Added Reparented property to allow tracking of Window Manager
22228             reparenting actions (which affect X/Y calculations of toplevel 
22229             windows)
22230           - Made ToString() print window handles in hex
22231         * XplatUIX11.cs:
22232           - AddConfigureNotify(): Now uses reparented state off Hwnd to
22233             determine if X/Y needs offsetting
22234           - AddConfigureNotify(): Fixed offset calculations
22235           - Now adds ReparentNotify messages into the queue
22236           - Now processes ReparentNotify messages and causes a 
22237             WM_WINDOWPOSCHANGED message to be sent upstream if a window
22238             is reparented (as most likely it's X/Y coordinates are changed
22239             due to that)
22240
22241 2005-12-14  Jackson Harper  <jackson@ximian.com>
22242
22243         * XplatUIX11.cs: Tool windows still need to respek focus.
22244
22245 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
22246
22247         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
22248           have a working release
22249
22250 2005-12-13  Jackson Harper  <jackson@ximian.com>
22251
22252         * Form.cs: Update styles after setting the border style regardless
22253         of whether or not the window is using a window manager.
22254
22255 2005-12-13  Jackson Harper  <jackson@ximian.com>
22256
22257         * Form.cs: We now hook into an internal window manager instead of just an
22258         MDI subsystem, this is so we can have properly behaving tool windows.
22259         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
22260         * InternalWindowManager.cs: New internal class that acts as a
22261         window manager for tool windows and as a base for mdi windows.
22262         * MdiWindowManager.cs: New class that acts as a window manager for
22263         mdi windows.
22264
22265 2005-12-12  Jackson Harper  <jackson@ximian.com>
22266
22267         * Control.cs: Updates so we match behavoir for for implicit
22268         controls. Fixes explosions in MDI.
22269
22270 2005-12-12  Jackson Harper  <jackson@ximian.com>
22271
22272         * Control.cs: Implement Invalidate (Region).
22273
22274 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
22275
22276         * Control.cs: 
22277           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
22278             the same events as MS does. MS fires events for each property 
22279             except, for unknown reasons, Cursor, when the control is reparented. 
22280             I can't seem to totally match add/remove since MS also fires some 
22281             VisibleChanged events, which makes no sense. Consolidated the
22282             parenting code into a separate method so it can be called from
22283             both Add and Remove. set_Parent no longer needs any special logic
22284             as it calls the parent's add method which implicitly fires
22285             all events
22286           - Removed some obsolete code and debug output
22287           - Enabled state is inherited from parents, if this is enabled
22288
22289 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
22290
22291         * Form.cs: Removed commented out code
22292
22293 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
22294
22295         * Control.cs:
22296           - Added internal version of Invoke, with additional argument 
22297             indicating if we're calling it from a Dispose() handler. That
22298             way we can avoid BeginInvoke throwing an exception if we're
22299             calling for an already destroyed window.
22300           - Added a dispose argument to BeginInvokeInternal, and made the
22301             check if a valid window handle chain exists conditional on
22302             it not being a dispose call
22303           - Removed code in DestroyHandle to destroy our children. Since we
22304             now handle the WM_DESTROY message we will catch all our children
22305             being destroyed.
22306           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
22307         * Form.cs:
22308           - Added a field to track the application context of the form.
22309           - No need to set closing variable as response to WM_CLOSE, instead
22310             we destroy the window. We also call PostQuitMessage if the form
22311             has an application context (which makes it the main app form,
22312             which, when closed terminates the app)
22313         * XplatUI.cs:
22314           - Dropped Exit() method, it's naming was confusing
22315           - Added PostQuitMessage() which causes GetMessage to return false
22316             once the message queue is empty
22317         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
22318           PostQuitMessage()
22319         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
22320           no longer a valid XplatUI method, but left it in since it's used
22321           internally. Added empty PostQuitMessage() method.
22322         * MenuAPI.cs: Replaced call to Exit() with call to
22323           PostQuitMessage, even though this is probably no longer needed.
22324         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
22325         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
22326         * Application.cs:
22327           - Replaced call to XplatUI.Exit() with PostQuitMessage()
22328           - Removed old debug code that would call XplatUI for exception
22329             display, enabled standard exception handling (Still not enabled
22330             though, until NativeWindow's ExternalExceptionHandler define
22331             is removed
22332         * NativeWindow.cs:
22333           - Added internal method to allow control to update NativeWindow
22334             after a window has been destroyed
22335           - Added handling of already destroyed windows when calling i
22336             DestroyWindow
22337           - Added removal of handle from list on ReleaseHandle
22338         * XplatUIX11.cs:
22339           - Dropped GetMessageResult var and related code
22340           - Added PostQuitState to field to track if PostQuitMessage has been
22341             called
22342           - Dropped Exit() method
22343           - Added PostQuitMessage() method
22344           - GetMessage now will return false if PostQuitState is set and no
22345             more messages are in the queue.
22346           - Expose handler will no longer generate WM_PAINT messages if we are
22347             in PostQuitState since it's very likely any windows have already
22348             been destroyed, and since Hwnd won't get updated until we have
22349             processed the DestroyNotify we'd be causing X errors.
22350         
22351 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22352
22353         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
22354           Thanks to Mike for pointing out the err of my ways.
22355
22356 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22357
22358         * Control.cs(PreProcessMessage): Moved menu handling back, but
22359           after all other key handling, to match MS (who handles Menu in
22360           DefWndProc)
22361         * Menu.cs (WndProc): Removed my brainfart
22362
22363 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22364
22365         * Control.cs(PreProcessMessage): Removed special menu handling 
22366         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
22367
22368 2005-12-07  Mike Kestner  <mkestner@novell.com>
22369
22370         * Control.cs : special case SYSKEYUP so that we can adjust keynav
22371         state according in tracker.
22372         * Menu.cs : promote tracker field to base class and provide a tracker
22373         lookup capability.  Add/Remove shortcuts dynamically if the top menu
22374         has a tracker. Unparent items that are removed from the collection.
22375         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
22376         * Theme*.cs: add always_show_hotkeys field to support configurability
22377         of mnemonic display.  win32 doesn't show mnemonics until Alt is
22378         pressed.
22379
22380 2005-12-07  Jackson Harper  <jackson@ximian.com>
22381
22382         * MdiChildContext.cs: Use Control.ResetCursor.
22383         * Control.cs: ResetCursor needs to set the property so that the
22384         correct XplatUI call gets made.
22385
22386 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22387
22388         * Control.cs: More fixes to make our key events match MS. We
22389           were not setting the modifier state on KeyData, and we were
22390           not generating any events when Alt was pressed with a key
22391           since handling of WM_SYSxxx was missing for the OnKey methods.
22392
22393 2005-12-07  Jackson Harper  <jackson@ximian.com>
22394
22395         * MdiChildContext.cs: reenable the sizing code.
22396         - When the mouse leaves a window reset its cursor.
22397
22398 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
22399
22400         * ThemeClearlooks.cs: Reflect latest Hwnd changes
22401
22402 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22403
22404         * Hwnd.cs: Now using the theme 3d bordersize to calculate
22405           widths of Fixed3D borders
22406
22407 2005-12-07  Jackson Harper  <jackson@ximian.com>
22408
22409         * MdiClient.cs: Fix warnings. Earn Mike's love.
22410
22411 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
22412
22413         * ThemeClearlooks.cs:
22414           - Adjusted mouse over button color
22415           - Added first parts of CheckBox drawing
22416           - Added correct color for selected text background
22417           - Fixed ComboBox drawing
22418           - Added CPDrawBorder3D and CPDrawBorder
22419
22420 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
22421
22422         * XplatUIX11.cs: Added call to XBell for AudibleAlert
22423
22424 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
22425
22426         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22427           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
22428           alert users via sound. We could add an enum arg with different
22429           types of alerts in the future
22430
22431 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
22432
22433         * Control.cs: Fix behaviour problems pointed out by Mike
22434
22435 2005-12-05  Mike Kestner  <mkestner@novell.com>
22436
22437         * StatusBarPanel.cs: add Invalidate method and hook it into all the
22438         prop setters.  Calls parent.Refresh for now, but could be maybe be
22439         optimized with an internal method on StatusBar at some point.
22440         [Fixes #76513]
22441
22442 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
22443
22444         * RichTextBox.cs: Implemented get_SelectionColor
22445
22446 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
22447
22448         * ThemeClearlooks.cs:
22449           - Removed dead code
22450           - Draw black button border only if button is Form.AcceptButton
22451           - Draw correct button color for pressed RadioButton if the mouse 
22452             has entered the button
22453           - Updated ProgressBar drawing!
22454           - Updated CPDrawSizeGrip drawing
22455           - Updated StatusBarPanel drawing
22456
22457 2005-12-05  Mike Kestner  <mkestner@novell.com>
22458
22459         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
22460         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
22461
22462 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
22463
22464         * ThemeClearlooks.cs: Initial check-in, activate with
22465           export MONO_THEME=clearlooks
22466         * ThemeEngine.cs: Added ThemeClearlooks
22467
22468 2005-12-03  Mike Kestner  <mkestner@novell.com>
22469
22470         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
22471         [Fixes #76897]
22472
22473 2005-12-02  Jackson Harper  <jackson@ximian.com>
22474
22475         * Form.cs: If the child form has no menu the default main menu is
22476         used as the active menu.
22477
22478 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
22479
22480         * ListBox.cs: Check if any items exist before trying to resolve 
22481           coordinates into items
22482
22483 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
22484
22485         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
22486           as the second color for the background hatch
22487
22488 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
22489
22490         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
22491         * RichTextBox.cs: FormatText position arguments are 1-based, now making
22492           sure that what we pass to FormatText is always 1-based. Fixes #76885
22493
22494 2005-11-29  Miguel de Icaza  <miguel@novell.com>
22495
22496         * NumericUpDown.cs (EndInit): When we are done initializing,
22497         reflect any updates on the UI.
22498
22499 2005-12-02  Jackson Harper  <jackson@ximian.com>
22500
22501         * ImplicitHScrollBar.cs:
22502         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
22503         their container controls.
22504         * TreeView.cs: Use the new implicit scrollbars.
22505
22506 2005-12-02  Jackson Harper  <jackson@ximian.com>
22507
22508         * TreeView.cs: Make top_node internal so the TreeNodeCollections
22509         can play with it.
22510         * TreeNodeCollection.cs: If we remove the topnode we need to
22511         update topnode to the next node in line.
22512         - When clearing nodes go through the same process as removing
22513         them, so they get depareneted and checked if they are top node.
22514
22515 2005-12-01  Jackson Harper  <jackson@ximian.com>
22516
22517         * TreeView.cs: When imagelists are used the image area is
22518         selectable as well as the text.
22519         - If there are no selected nodes select the first one.
22520         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
22521         so don't do it more then we need to.
22522
22523 2005-12-01  Jackson Harper  <jackson@ximian.com>
22524
22525         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
22526         that arrows can be scaled.
22527
22528 2005-12-01  Jackson Harper  <jackson@ximian.com>
22529
22530         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
22531         fail. Patch by Dieter Bremes
22532
22533 2005-11-30  Jackson Harper  <jackson@ximian.com>
22534
22535         * Form.cs: Property is 2.0 only
22536         * PrintDialog.cs: Signature fix.
22537
22538 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
22539
22540         * TextControl.cs: 
22541           - No longer artificially moves text 2 pixels down (now that we have
22542             borders this is no longer needed)
22543           - Added calcs for left, hanging and right indent
22544
22545 2005-11-23  Mike Kestner  <mkestner@novell.com>
22546
22547         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
22548
22549 2005-11-30  Jackson Harper  <jackson@ximian.com>
22550
22551         * MdiChildContext.cs: Set the cloned menus forms, as these don't
22552         get cloned as part of CloneMenu ().
22553         * Menu.cs: Make sure the parent of the items get set correctly
22554         when they are added.  And the owners are notified of the changes.
22555         * Form.cs: Create an ActiveMenu property, so that when MDI is used
22556         we can change the menu being displayed/handled by the form without
22557         changing the menu assosciated with the form.
22558         - Don't let Mdi children draw/handle menus.
22559         
22560 2005-11-30  Jackson Harper  <jackson@ximian.com>
22561
22562         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
22563         a MenuChanged event. Just to make the API a little more
22564         consistent.
22565         * MainMenu.cs:
22566         * MenuItem.cs: Use the new OnMenuChanged
22567         * MdiChildContext.cs: Handle menu merging.
22568         * Form.cs: Implement MergedMenu.
22569         
22570 2005-11-30  Jackson Harper  <jackson@ximian.com>
22571
22572         * Menu.cs: We were misusing Add. Add goes behind the specified
22573         index according to the docs, and does not replace the specified
22574         index. So I added an Insert method.
22575
22576 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
22577
22578         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
22579           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
22580           is for Jackson
22581         * RichTextBox.cs: Added calls to base for DnD events
22582
22583 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
22584
22585         * TextControl.cs:
22586           - Fixed drag-selection related crash; style fixes
22587           - Implemented undo class
22588             o Implemented method to capture document state for specified
22589               range in document tree
22590             o Implemented method to restore captured document state
22591             o Implemented cursor tracking
22592             o Implemented basic undo stack
22593           - Added undo cursor tracking to methods altering cursor location
22594           - Added undo tracking to selection deletion (still missing
22595             other text-altering hookups)
22596         * RichTextBox.cs:
22597           - Added SelectionLength property
22598           - Implemented CanPaste()
22599           - Implemented Paste()
22600           - Added missing protected methods
22601           - Fixed RTF->Document conversion; now uses font index 0 and color 
22602             index 0 as the default font for the parsed text
22603           - Fixed RTF<->Document font size translation
22604           - Fixed RTF generation, now properly handles cross-tag boundaries
22605             for single line selection
22606           - No longer always appends blank line to generated RTF
22607           - Removed TODOs
22608           - Added missing attributes
22609           - Hooked up undo-related methods
22610         * TextBoxBase.cs:
22611           - Implemented Copy()
22612           - Implemented Paste()
22613           - Implemented Cut()
22614           - Fixed caret mis-behaviour on backspace across line-boundaries
22615
22616 2005-11-29  Jackson Harper  <jackson@ximian.com>
22617
22618         * MdiClient.cs: Add a method for activating mdi children. Very
22619         basic right now. I imagine someday it might need more girth.
22620         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
22621         children windows names are added to the menu item.
22622         * ThemeWin32Classic.cs: Draw the arrow if the item is an
22623         mdilist. This happens regardless of whether or not there are any
22624         mdi windows to see in the list, and according to my tests happens
22625         before the items are even added. Also happens if there isn't even
22626         an mdi client to get windows from.
22627
22628 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
22629
22630         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
22631         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
22632
22633 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
22634
22635         * DataGridTableStyle.cs:
22636           - Create always the styles for the missing columns even if they are
22637             provided by the user (not default table style)
22638         * DataGrid.cs:
22639           - Fixes bug 76770
22640           - Fixes SetDataBinding (always re-attach source)
22641           - Fixes SetNewDataSource (only clear styles if they are not for 
22642             this source)
22643          -  Expands OnTableStylesCollectionChanged to handle style refresh 
22644             and remove properly
22645
22646 2005-11-29  Jackson Harper  <jackson@ximian.com>
22647
22648         * FileDialog.cs: Implement missing bits, remove some dead
22649         code.
22650         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
22651         creation of the panel so that the options set on the dialog are
22652         seen when the panel is created.
22653         * TreeView.cs: raise a click when items are clicked.
22654         
22655 2005-11-29  Jackson Harper  <jackson@ximian.com>
22656
22657         * MdiClient.cs: Pass some signature methods through to base.
22658
22659 2005-11-28  Jackson Harper  <jackson@ximian.com>
22660
22661         * ListView.cs: Raise the click event when items are clicked.
22662
22663 2005-11-28  Jackson Harper  <jackson@ximian.com>
22664
22665         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
22666         a nullref.
22667
22668 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
22669
22670         * ThemeNice.cs: - Removed 1 pixel bitmaps
22671           - Use SmoothingMode.AntiAlias where it makes sense
22672             (ScrollButton arrow for example)
22673           - Enhanced Button focus drawing
22674           - Fixed ComboBox drawing (no artefacts anymore, focus
22675             rectangle is back again, reduced size of ComboButton, etc.)
22676           - Fixed RadioButton focus drawing for Appearence.Button
22677           - Slight ScrollButton redesign
22678           - Some LinearGradientBrush size fixes
22679           - GroupBoxes have now rounded edges
22680           - Fixed StatusBar drawing
22681
22682 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
22683
22684         * ThemeNice.cs: - Remove dead code
22685           - use correct background colors for menus, etc.
22686           - Fake pixel drawing with 1 pixel bitmaps
22687
22688 2005-11-24  Jackson Harper  <jackson@ximian.com>
22689
22690         * MdiClient.cs: Size the scrollbars when resizing the window.
22691         - Resize the maximized windows when the client is resized
22692         * Form.cs: Make the child context available
22693         
22694 2005-11-23  Jackson Harper  <jackson@ximian.com>
22695
22696         * MdiChildContext.cs: Don't size windows if they are maximized.
22697
22698 2005-11-23  Mike Kestner  <mkestner@novell.com>
22699
22700         * ContextMenu.cs: use MenuTracker.
22701         * Control.cs: remove menu handle usage.
22702         * Form.cs: remove menu handle usage.
22703         * Hwnd.cs: remove menu handle usage.
22704         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
22705         motion and clicks to the new Tracker handlers.
22706         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
22707         and handle usage.
22708         * MenuAPI.cs: refactored to combine popup and menubar event handling.
22709         Killed the MENU and MENUITEM data types and associated collections
22710         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
22711         MenuTracker class that exposes the leftovers from the old MenuAPI
22712         static methods. Restructured Capture handling so that only one grab is
22713         done for the entire menu hierarchy instead of handing off grabs to
22714         submenus. Tracker now has an invisible control to Capture when active.
22715         * MenuItem.cs: add sizing accessors, kill Create
22716         and handle usage.
22717         * Theme.cs: remove menu handle and MENU(ITEM) usage.
22718         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
22719         MENU(ITEM). remove menu handle usage, use Menu directly.
22720         * XplatUIDriver.cs: remove menu handle usage.
22721         * XplatUIOSX.cs: remove menu handle usage.
22722         * XplatUIWin32.cs: remove menu handle usage.
22723         * XplatUIX11.cs: remove menu handle usage.
22724
22725 2005-11-22  Jackson Harper  <jackson@ximian.com>
22726
22727         * Hwnd.cs: Don't compute the menu size for
22728         DefaultClientRectangle.
22729         - Reenable menu sizes being computed for GetClienRectangle.
22730         * Form.cs: Remove comment of trechery
22731         
22732 2005-11-22  Jackson Harper  <jackson@ximian.com>
22733
22734         * Hwnd.cs: The adjustments for the menu bar are made when it is
22735         attached to the form.
22736
22737 2005-11-19  Jackson Harper  <jackson@ximian.com>
22738
22739         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
22740         (just like on windows).
22741
22742 2005-11-19  Jackson Harper  <jackson@ximian.com>
22743
22744         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
22745         use real buttons anymore because they are in non client area. The
22746         one TODO here is that I need to somehow invalidate a section of
22747         the non client area.
22748
22749 2005-11-18  Jackson Harper  <jackson@ximian.com>
22750
22751         * Control.cs: Put the enum check back in now that MDI doesnt have
22752         to use this to set border styles.
22753         * Form.cs: Only set mdi child windows borders if the handle has
22754         been created.
22755         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
22756         this directly on to the driver.
22757         - Get the move start position before adjusting for the titlebar
22758         height, this fixes the windows "skipping" when they are first
22759         moved.
22760
22761 2005-11-18  Jackson Harper  <jackson@ximian.com>
22762
22763         * XplatUIX11.cs: Just compute the mdi borders separately as they
22764         don't totally match up with normal form borders.
22765
22766 2005-11-18  Jackson Harper  <jackson@ximian.com>
22767
22768         * Control.cs: Set WS_ styles for borders, so that the driver does
22769         not have to retrieve the control instance to figure out what kind
22770         of borders it should have.
22771         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
22772         driver can know its an mdi child easily.
22773         * XplatUIX11.cs: Get the border styles and whether the window is
22774         MDI from the Styles and ExStyles params instead of having to get a
22775         control. This prevents a chicken and egg problem.       
22776
22777 2005-11-18  Jackson Harper  <jackson@ximian.com>
22778
22779         * MdiClient.cs: Fix typo so scrollbars show up correctly.
22780
22781 2005-11-18  Jackson Harper  <jackson@ximian.com>
22782
22783         * MdiClient.cs: Calculate when to add and remove scrollbars
22784         correctly.
22785         * MdiChildContext.cs: Adjust the y position to take the titlebar
22786         into account.
22787         - No height for FormBorderStyle.None
22788
22789 2005-11-18  Jackson Harper  <jackson@ximian.com>
22790
22791         * Control.cs: Allow non enum values to be used for
22792         InternalBorderStyle.  MDI does this to set a special border style.
22793         - New utility methods for converting points to/from client coords
22794         - Add the newly created control to the Controls collection before
22795         updating its style. This way UpdateStyle can walk the control
22796         heirarchy to find the control if needed.
22797         so I don't need to create a new Point object all the time.
22798         * Form.cs: Let MDI windows handle their border styles.
22799         - Set styles on MDI windows so the correct title style is derived.
22800         * MdiChildContext.cs: Move all the painting and window handling
22801         into the non client area.
22802         - Use correct sizing and put correct buttons on frames based on
22803         the FormBorderStyle.
22804         - Notify the mdi client about scrolling
22805         - Need to handle the buttons ourselves now, because they are all
22806         in non client areas and we can't add controls there.
22807         * MdiClient.cs: Halfway to scrolling, this implementation is
22808         somewhat broken though, we need to check to make sure other
22809         windows aren't causing scrolling before removing the bars. Also
22810         the bars need to be drawn on top, maybe I can switch implicit
22811         controls to be on top.
22812         * Hwnd.cs: caption_height and tool_caption_height are now
22813         properties of an hwnd, this way they can be set by the driver
22814         based on the type of window they are.  In X11 the window manager
22815         handles the decorations so caption_height is zero unless its an
22816         MDI window.
22817         - Add 3 pixel borders for MDI windows (0xFFFF).
22818         - Get rid of some code duplication, have DefaultClientRectanle
22819         just call GetClientRectangle.
22820         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
22821         Hwnd now.
22822         - Set border styles differently for mdi windows.
22823         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
22824         Hwnd now.
22825         
22826 2005-11-15  Mike Kestner  <mkestner@novell.com>
22827
22828         * Menu.cs: when adding an item to the collection, if item is already 
22829         parented, remove it from the parent.
22830
22831 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
22832
22833         * X11DesktopColors.cs: Added KDE support
22834
22835 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
22836
22837         * XplatUIWin32.cs: 
22838           - Clipboard methods now can translate Rtf format
22839           - No longer removes clipboard contents whenever a new format is added
22840             to allow placing multiple formats on the clipboard
22841         * Clipboard.cs: Clipboard now supports getting a IDataObject and
22842           will place all formats contained in it onto the clipboard. Also
22843           now cleans the clipboard before placing a new object onto it
22844         * RichTextBox.cs:
22845           - Implemented set_Rtf
22846           - Implemented set_SelectedRtf
22847           - Created InsertRTFFromStream() method to allow single code base
22848             for all properties and methods that insert RTF into document
22849           - Removed debug output
22850         * TextControl.cs:
22851           - Fixed Delete(int) to fix up line numbers
22852           - Fixed ReplaceSelection to combine start and end line
22853           - Fixed serious DeleteChars bug that would leave the document tree
22854             broken
22855           - Improved DumpTree with several logic checks to detect broken
22856             document trees
22857           - Removed debug lines
22858           - Fixed Caret.WordForward/WordBack moving code, now always also 
22859             updates caret.tag (fixes crash when word-selecting across tag
22860             boundaries via keyboard)
22861           - Added Insert() method for inserting multiline text into documents
22862           - Fixed DeleteChars() calculation errors that would cause a broken
22863             tag chain with multiple tag lines
22864           - DeleteChars() no longer crashes on multi-tag lines if not all tags
22865           - Split() no longer moves caret if split is at caret location
22866           - ReplaceSelection() now updates the cursor and re-displays it
22867           - ReplaceSelection() now uses new Insert() method to avoid code
22868             duplication
22869           - FormatText() can now handle formatting partial lines
22870         * TextBoxBase.cs:
22871           - Append now uses new TextControl.Insert() method (this avoids 
22872             duplicate code)
22873           - Implemented Ctrl-X (Cut) (
22874           - Implemented Ctrl-C (Copy)
22875           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
22876             regeneration when pasting text; roundtripping Copy&Paste within
22877             edit control still fails due to some calculation bugs in GenerateRTF)
22878           - The Delete key will now remove the current selection if it is visible
22879         * TextBox.cs: Removed debug lines
22880         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
22881           driver to be initialized and can't therefore be done via a static ctor)
22882
22883 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
22884
22885         * TextControl.cs: Added backend code for finding char arrays and strings
22886         * TextBoxBase.cs:
22887           - Added mouse wheel scroll support
22888           - Added support for VScroll and HScroll events
22889         * RichTextBox.cs:
22890           - Implemented all seven Find() variants
22891           - Implemented GetCharFromPosition()
22892           - Implemented GetCharIndexFromPosition()
22893           - Implemented GetLineFromIndex()
22894           - Implemented GetPositionFromCharIndex();
22895           - Implemented SaveFile for PlainText and UnicodeText
22896           - Fixed set_Font, now setting a new font applies that font to
22897             the whole document
22898           - Implemented generic Document to RTF converter
22899           - Implemented SaveFile for RichText format (still missing unicode
22900             conversion for non-ansi chars)
22901           - Implemented get_Rtf
22902           - Implemented get_SelectedRtf
22903
22904 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
22905
22906         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
22907           to allow any captures to be released before triggering OnClick. This
22908           way a click handler may capture the mouse without interference.
22909         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
22910           This way we send them even though X may not allow a grab (if the window
22911           isn't visible, for example)
22912
22913 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
22914
22915         * DataGridViewRowEventArgs.cs: DataGridView implementation
22916         * DataGridViewElement.cs: DataGridView implementation
22917         * DataGridViewComboBoxCell.cs: DataGridView implementation
22918         * DataGridViewDataErrorContexts.cs: DataGridView implementation
22919         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
22920         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
22921         * ImageLayout.cs: DataGridView implementation
22922         * DataGridViewComboBoxColumn.cs: DataGridView implementation
22923         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
22924         * DataGridViewSelectionMode.cs: DataGridView implementation
22925         * IDataGridViewEditingControl.cs: DataGridView implementation
22926         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
22927         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
22928         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
22929         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
22930         * DataGridViewColumnSortMode.cs: DataGridView implementation
22931         * DataGridView.cs: DataGridView implementation
22932         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
22933         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
22934         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
22935         * Padding.cs: DataGridView implementation
22936         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
22937         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
22938         * DataGridViewRowEventHandler.cs: DataGridView implementation
22939         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
22940         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
22941         * DataGridViewButtonCell.cs: DataGridView implementation
22942         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
22943         * DataGridViewEditMode.cs: DataGridView implementation
22944         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
22945         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
22946         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
22947         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
22948         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
22949         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
22950         * DataGridViewCellEventHandler.cs: DataGridView implementation
22951         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
22952         * DataGridViewCellStyleConverter.cs: DataGridView implementation
22953         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
22954         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
22955         * DataGridViewColumnEventArgs.cs: DataGridView implementation
22956         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
22957         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
22958         * QuestionEventArgs.cs: DataGridView implementation
22959         * IDataGridViewEditingCell.cs: DataGridView implementation
22960         * DataGridViewTriState.cs: DataGridView implementation
22961         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
22962         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
22963         * DataGridViewColumnCollection.cs: DataGridView implementation
22964         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
22965         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
22966         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
22967         * DataGridViewColumn.cs: DataGridView implementation
22968         * DataGridViewCellBorderStyle.cs: DataGridView implementation
22969         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
22970         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
22971         * DataGridViewRow.cs: DataGridView implementation
22972         * DataGridViewImageCellLayout.cs: DataGridView implementation
22973         * DataGridViewImageCell.cs: DataGridView implementation
22974         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
22975         * DataGridViewCheckBoxCell.cs: DataGridView implementation
22976         * DataGridViewHeaderCell.cs: DataGridView implementation
22977         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
22978         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
22979         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
22980         * DataGridViewTextBoxColumn.cs: DataGridView implementation
22981         * QuestionEventHandler.cs: DataGridView implementation
22982         * DataGridViewCellStyleScopes.cs: DataGridView implementation
22983         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
22984         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
22985         * DataGridViewCell.cs: DataGridView implementation
22986         * DataGridViewCellEventArgs.cs: DataGridView implementation
22987         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
22988         * DataGridViewCellStyle.cs: DataGridView implementation
22989         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
22990         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
22991         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
22992         * TextFormatFlags.cs: DataGridView implementation
22993         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
22994         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
22995         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
22996         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
22997         * DataGridViewButtonColumn.cs: DataGridView implementation
22998         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
22999         * HandledMouseEventArgs.cs: DataGridView implementation
23000         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
23001         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
23002         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
23003         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
23004         * DataGridViewRowCollection.cs: DataGridView implementation
23005         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
23006         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
23007         * DataGridViewHitTestType.cs: DataGridView implementation
23008         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
23009         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
23010         * DataGridViewColumnEventHandler.cs: DataGridView implementation
23011         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
23012         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
23013         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
23014         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
23015         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
23016         * DataGridViewContentAlignment.cs: DataGridView implementation
23017         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
23018         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
23019         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
23020         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
23021         * DataGridViewPaintParts.cs: DataGridView implementation
23022         * DataGridViewCellCollection.cs: DataGridView implementation
23023         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
23024         * DataGridViewImageColumn.cs: DataGridView implementation
23025         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
23026         * DataGridViewElementStates.cs: DataGridView implementation
23027         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
23028         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
23029         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
23030         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
23031         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
23032         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
23033         * DataGridViewRowHeaderCell.cs: DataGridView implementation
23034         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
23035         * DataGridViewTextBoxCell.cs: DataGridView implementation
23036         * DataGridViewBand.cs: DataGridView implementation
23037         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
23038         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
23039         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
23040         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
23041         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
23042         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
23043         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
23044         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
23045         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
23046         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
23047         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
23048
23049 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
23050
23051         * ThemeWin32Classic.cs: 
23052           - Draw the outside focus rectangle around buttons
23053           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
23054             doesn't use end caps for every dash of a line anymore. This
23055             workaround ignores the forecolor.
23056
23057 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
23058
23059         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
23060           endian safe.
23061
23062 2005-11-07  Jackson Harper  <jackson@ximian.com>
23063
23064         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
23065
23066 2005-11-07  Jackson Harper  <jackson@ximian.com>
23067
23068         * ScrollableControl.cs: Calculate the maximum and change vars
23069         (more) correctly so that scrollbars appear as a sensible size.
23070
23071 2005-11-04  Jackson Harper  <jackson@ximian.com>
23072
23073         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
23074         collection.
23075         * TreeView.cs: When the tree is sorted null out the top_node so
23076         that it is recalculated.
23077         - Use dotted lines instead of dashed lines to match MS better.
23078
23079 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
23080
23081         * ListView.cs: 
23082           - Implements key search for items. Useful when browsing files with FileDialog
23083           - When changing view mode or when clear the items reset scrollbar positions
23084
23085 2005-11-04  Jackson Harper  <jackson@ximian.com>
23086
23087         * CurrencyManager.cs: Implement the MetaDataChanged event, the
23088         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
23089         as to what the method may do as there is no real way of creating a
23090         derived CurrencyManager and calling the method. 
23091
23092 2005-11-03  Jackson Harper  <jackson@ximian.com>
23093
23094         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
23095         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
23096         method which seems to just be used internally to refresh the tabs.
23097
23098 2005-11-03  Jackson Harper  <jackson@ximian.com>
23099
23100         * TabControl.cs: Implement the remove method. Fix some broken
23101         comments.
23102
23103 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
23104
23105         * DateTimePicker.cs:
23106           - Added missing DateTimePickerAccessibleObject class
23107           - Added missing events
23108           - Added OnFontChanged method
23109         * Form.cs: Added missing attributes
23110         * TreeView.cs: Added missing attributes
23111
23112 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
23113
23114         * GridItemCollection.cs: Fix signatures
23115
23116 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
23117
23118         * XplatUI.cs: Updated build rev/date
23119         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
23120           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
23121         * Application.cs: Trigger context-specific ExitThread events
23122
23123 2005-11-03  Jackson Harper  <jackson@ximian.com>
23124
23125         * Menu.cs:
23126         * MainMenu.cs:
23127         * GridTableStylesCollection.cs:
23128         * Timer.cs:
23129         * TabPage.cs:
23130         * HelpProvider.cs:
23131         * StatusBar.cs:
23132         * MonthCalendar.cs: Signature fixes
23133
23134 2005-11-03  Jackson Harper  <jackson@ximian.com>
23135
23136         * TreeNodeCollection.cs: Remove should not be virtual.
23137         * TreeView.cs: Implement the last of the missing methods.
23138
23139 2005-11-03  Jackson Harper  <jackson@ximian.com>
23140
23141         * TreeNodeConverter.cs: Implement to get off my class-status back.
23142
23143 2005-11-03  Jackson Harper  <jackson@ximian.com>
23144
23145         * TreeView.cs: Hookup the bits for drag and drop.
23146         * TreeNode.cs: Don't cache the tree_view or index anymore, now
23147         that nodes can be moved from tree to tree easily this just causes
23148         all sorts of problems.
23149         * TreeNodeCollection: Don't need to give treenodes an index and
23150         treeview anymore when they are added, these are computed on the
23151         fly. Also make sure to remove a node before its added.
23152
23153 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
23154
23155         * TextControl.cs:
23156           - Added CaretSelection enum
23157           - Added comparison methods to Marker struct, makes selection code
23158             more readable
23159           - Added SelectionStart and SelectionEnd as 'moveable' location for
23160             the CaretDirection enum and handler
23161           - Added selection_prev variable to track optimized invalidation for
23162             word and line selection
23163           - Added SelectionVisible property (returns true if there is a valid 
23164             selection)
23165           - Switched CaretHasFocus to only display the caret if there is no
23166             visible selection
23167           - Avoiding StringBuilder.ToString to retrieve a single char, instead
23168             using the direct character index; should be much faster
23169           - Added various conditional debug statements
23170           - Fixed invalidation calculation for selection ranges
23171           - Added ExpandSelection() method to support word and line selection
23172           - Switched SetSelectionToCaret to use new Marker compare overloads
23173           - Added central IsWordSeparator() method to determine word 
23174             separators/whitespace and FindWordSeparator() to streamline common
23175             usage of IsWordSeparator()
23176         * TextBoxBase.cs:
23177           - Removed unneeded grabbed variable, it was just mirroring
23178             Control.Capture
23179           - No longer firing OnTextChanged event when Text setter is called,
23180             since the base will fire the event for us
23181           - Added handling of Ctrl-Up/Down selection
23182           - Added handling of Shift-Cursorkey selection
23183           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
23184             words
23185           - Added handling of Shift and Ctrl-Shift-Home/End selection
23186           - Removed some debug output
23187           - Added handling for single/double/tripple-click to place caret/
23188             select word/select line respectively (Fixes bug #76031)
23189           - Added support for drag expansion of word/line selection
23190         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
23191           current selection
23192
23193 2005-11-02  Jackson Harper  <jackson@ximian.com>
23194
23195         * X11Dnd.cs: If the drag is going to and from a MWF window just
23196         copy the data instead of sending it out through the X Selection
23197         mechanism.
23198
23199 2005-11-02  Jackson Harper  <jackson@ximian.com>
23200
23201         * X11Dnd.cs:
23202         * XplatUIX11.cs: When in a drag we don't want motion notify
23203         messages to get passed on to the other controls. This prevents
23204         mouse move messages from showing up in the drag source.
23205
23206 2005-11-02  Jackson Harper  <jackson@ximian.com>
23207
23208         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
23209         the correct button is release to end a drag.
23210         * XplatUIX11.cs: Make the button state internal so the drag system
23211         can access it.  Dragging needs to know about all button releases,
23212         not just left button.
23213
23214 2005-11-02  Miguel de Icaza  <miguel@novell.com>
23215
23216         * Form.cs (Icon): If the icon is null, reset the icon to the
23217         default value. 
23218
23219         * Cursor.cs: When writing the AND-mask bitmap do not include the
23220         number of colors, but hardcode those to two (black and white),
23221         fixes the loading of color cursors (Paint Dot Net).
23222
23223         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
23224         turn off autoscaling.
23225
23226         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
23227
23228 2005-11-02  Jackson Harper  <jackson@ximian.com>
23229
23230         * X11Dnd.cs: Make sure to send a status message if the pointer
23231         enters a control that can not accept a drop, otherwise the cursor
23232         isn't updated correctly. Also tried to compress the lines of code
23233         a bit.
23234
23235 2005-11-02  Jackson Harper  <jackson@ximian.com>
23236
23237         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
23238         set actions correctly.  This isn't perfect as XDND and win32 have
23239         some differences on how you allow actions. I'll clear this up by
23240         adding a path for drag from MWF to MWF windows.
23241         * XplatUIX11.cs: Hook into the dnd system.
23242
23243 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
23244
23245         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
23246         previously shown but they are no longer need it. Very obvious when 
23247         browsing files with FileDialog.
23248
23249 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
23250
23251         * Control.cs: We always need to call OnPaintBackground. We pretty much
23252           ignore AllPaintingInWmPaint and always do the painting there, whether 
23253           it's set or not, since we always ignore the WM_ERASEBKGND message 
23254           (which we don't generate on X11). This fixes #76616.
23255         * Panel.cs: Removed unneeded background painting. This happens properly
23256           in Control.cs already
23257
23258 2005-10-31  Mike Kestner  <mkestner@novell.com>
23259
23260         * Menu.cs: Add items to collection before setting their index.
23261         * MenuItem.cs : add range checking with ArgumentException like MS.
23262         [Fixes #76510]
23263
23264 2005-10-31  Jackson Harper  <jackson@ximian.com>
23265
23266         * ListBox.cs: Invalidate if the area is visible at all not just
23267         contained in the visible rect. Fixes unselection of semi visible
23268         items.
23269
23270 2005-10-31  Jackson Harper  <jackson@ximian.com>
23271
23272         * Control.cs: Consistently name the dnd methods. Make them
23273         internal so we can override them to match some MS behavoir
23274         internally.
23275         * Win32DnD.cs: Use the new consistent names.
23276
23277 2005-10-31  Jackson Harper  <jackson@ximian.com>
23278
23279         * TreeView.cs: Don't draw the selected node when we lose focus.
23280
23281 2005-10-31  Jackson Harper  <jackson@ximian.com>
23282
23283         * X11Dnd.cs: We still need to reset the state even though a full
23284         reset isn't being done, otherwise status's still get sent all over
23285         the place.
23286
23287 2005-10-31  Jackson Harper  <jackson@ximian.com>
23288
23289         * Control.cs: Make the dnd_aware flag internal so the dnd
23290         subsystem can check it. Catch exceptions thrown in dnd handlers to
23291         match MS behavoir.
23292         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
23293         * X11Dnd.cs: Handle null data in the converters. Set the XDND
23294         version when sending a XdndEnter. Use the control/hwnd dnd_aware
23295         flags to reduce the number of dnd enters/status's sent.
23296
23297 2005-10-31  Jackson Harper  <jackson@ximian.com>
23298
23299         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
23300
23301 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
23302
23303         * PictureBox.cs: Fixes 76512
23304
23305 2005-10-28  Jackson Harper  <jackson@ximian.com>
23306
23307         * X11Dnd.cs: Early implementation to support winforms being a drag
23308         source for data on X11. Also restructured the converters so they
23309         can go both ways now.
23310         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
23311         
23312 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
23313
23314         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
23315           clipboard requests
23316
23317 2005-10-27  Jackson Harper  <jackson@ximian.com>
23318
23319         * TreeNode.cs: Implement serialization so my DnD examples will work.
23320
23321 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
23322
23323         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
23324           TreeView.cs: Don't dispose objects that are not owned.
23325           
23326 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
23327
23328         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
23329           should retrieve the current cursor and report that, but XplatUI
23330           doesn't (yet) have an interface for that (and I'm not sure I even
23331           can, on X11)
23332         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
23333           until any message loop processing is done (and the WM_SETCURSOR
23334           replaces the cursor to the proper one)
23335         * XplatUIX11.cs: 
23336           - Fixed override behaviour, we can't set the cursor globally on X11, 
23337             just for our windows.
23338           - Invalidating the System.Drawing X11 display handle when we are
23339             shutting down
23340         * Control.cs: Fix to make csc happy
23341
23342 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
23343
23344         * TextBoxBase.cs: 
23345           - get_Text: Add last line (without trailing newline) to returned
23346             value (Fixes 76212)
23347           - get_TextLength: Count last line in returned length
23348           - ToString: Call Text property instead of duplicating code
23349
23350 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
23351
23352         * ImageList.cs: Dispose ImageAttributes objects.
23353
23354 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
23355
23356         * ImageList.cs: Use attribute constructors with less arguments where
23357           possible.
23358
23359 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
23360
23361         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
23362           Use typeof instead of strings when assembly is referenced. Added
23363           some more comments.
23364
23365 2005-10-21  Jackson Harper  <jackson@ximian.com>
23366
23367         * ListView.cs: Raise a double click event. Also tried to somewhat
23368         fix when the selectedindexchanged event is raised. Its still
23369         broken though.
23370
23371 2005-10-21  Jackson Harper  <jackson@ximian.com>
23372
23373         * TreeView.cs: New method to invalidate the plus minus area of a
23374         node without invalidating the whole node (maybe this can be used
23375         in some more places).
23376         * TreeNodeCollection.cs: When adding to an empty node we need to
23377         invalidate its plus minus area so the little block shows up.
23378         
23379 2005-10-21  Jackson Harper  <jackson@ximian.com>
23380
23381         * TreeView.cs: Make sure that when we invalidate a node the bounds
23382         are big enough to cover the selected box and the focus
23383         rectangle. Use a different colour for the lines connecting nodes
23384         so they show up with all themes.
23385
23386 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
23387
23388         * NativeWindow.cs: Don't call anything that could call into the driver,
23389           we might be on a different thread.
23390
23391 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
23392
23393         * Control.cs(Dispose): Since Dispose might run on a different thread,
23394           make sure that we call methods that could call into the driver via
23395           invoke, to avoid thread issues
23396
23397 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
23398
23399         * XplatUI.cs: Removed finalizer
23400         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
23401           not allowing to be called on the finalizer thread.
23402
23403 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
23404
23405         * ImageList.cs:
23406           - Reverted r51889 and r51891.
23407           - Added ImageListItem class that stores unmodified image items and image
23408             properties required to create list images until handle is created.
23409           - Added AddItem and moved image creation logic to AddItemInternal.
23410           - Added CreateHandle method that creates images based on unmodified items.
23411           - Added DestroyHandle that changes state to store unmodified items.
23412           - Add and AddStrip methods no more create handle.
23413           - ReduceColorDepth has no return value.
23414           - Dispose destroys handle.
23415           - Modified other methods to reflect the above changes.
23416           - Implemented key support.
23417           - Added profile 2.0 members and attributes.
23418           - Added private Reset and ShouldSerialize methods that provide the same
23419             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
23420             them as they are private.
23421           - Added some more comments about implementation details.
23422
23423 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
23424
23425         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
23426
23427 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
23428
23429         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
23430
23431 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
23432
23433         * DataGridDrawingLogic.cs: Fixes column hit calcultation
23434         * DataGridColumnStyle.cs: Remove debug message
23435
23436 2005-10-20  Jackson Harper  <jackson@ximian.com>
23437
23438         * TreeView.cs: We can always get input keys regardless of whether
23439         or not editing is enabled. They are used for navigation.
23440
23441 2005-10-20  Jackson Harper  <jackson@ximian.com>
23442
23443         * TreeNode.cs: Use the viewport rect for determining if a node
23444         needs to be moved for visibility. Don't use Begin/End edit. This
23445         calls a full refresh when its done.
23446         * TreeView.cs: New SetBottom works correctly.  Make the viewport
23447         rect property internal so the treenodes can see it. When clicking
23448         on a node we need to ensure that its visible because it might just
23449         be partly visible when clicked.
23450
23451 2005-10-20  Jackson Harper  <jackson@ximian.com>
23452
23453         * TreeNodeCollection.cs: Remove debug code.
23454
23455 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
23456
23457         * Datagrid.cs: Implements column sorting in Datagrid
23458         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
23459
23460 2005-10-20  Jackson Harper  <jackson@ximian.com>
23461
23462         * TreeNodeCollection.cs: Remove items properly. Update the correct
23463         area after removing them.
23464
23465 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
23466
23467         * Datagrid.cs: Should not call base.OnPaintBackground
23468
23469 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
23470
23471         * XplatUIX11.cs (GetMessage):
23472           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
23473             window instead of client window
23474           - Now properly calculates NC_xBUTTONUP message coordinates
23475           - ScreenToMenu now properly calculates it's coordinates of whole 
23476             window, since menus are in the whole window, not in the client
23477             window
23478           - Added WholeToScreen coordinate translation method
23479
23480 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
23481
23482         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
23483           want to return a message, loop back to the beginning of the function
23484           and grab the next real message to process instead.
23485
23486 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
23487
23488         * Splitter.cs: Properly set limits if no filler control is used
23489
23490 2005-10-19  Jackson Harper  <jackson@ximian.com>
23491
23492         * ColorDialog.cs: Don't show the help button if it is not enabled
23493         instead of disabling it (this is what MS does). Don't create the
23494         panel until the dialog is run, otherwise the vars (such as
23495         ShowHelp) are not set yet.
23496
23497 2005-10-19  Jackson Harper  <jackson@ximian.com>
23498
23499         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
23500         are reduced when adding nodes.
23501         * TreeNode.cs:
23502         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
23503         tree.
23504         
23505 2005-10-19  Jackson Harper  <jackson@ximian.com>
23506
23507         * FolderBrowserDialog.cs: End editing our treeview so the window
23508         actually gets refreshed.
23509
23510 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
23511
23512         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
23513           Obsoleted handling of WM_ERASEBKGND, now always draws our background
23514           inside of WM_PAINT
23515
23516 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23517
23518         * MenuAPI.cs: Returns after Hidding window
23519         * XplatUIX11.cs: Added TODO found while debugging menu issues
23520
23521 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
23522
23523         * XplatUIX11.cs: Do not re-map the whole window when it's size
23524           becomes non-zero unless it's supposed to be actually visible
23525
23526 2005-10-18  Jackson Harper  <jackson@ximian.com>
23527
23528         * TreeView.cs: We don't need to keep a count anymore.
23529         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
23530         use the Grow method.
23531
23532 2005-10-18  Jackson Harper  <jackson@ximian.com>
23533
23534         * TreeNodeCollection.cs: Insert is not supported on arrays, so
23535         implement it manually here.
23536
23537 2005-10-18  Jackson Harper  <jackson@ximian.com>
23538
23539         * ImageList.cs: Dont kill the list when the colour depth is
23540         changed, just change the colour depth of all the images.
23541         - Same goes for setting the image size. Just resize them all
23542         instead of killing the list softly.
23543
23544 2005-10-18  Jackson Harper  <jackson@ximian.com>
23545
23546         * Control.cs: Don't invalidate empty rectangles.
23547
23548 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23549
23550         * ListViewItem.cs:
23551           - Adds checked item to the Checked/Item lists (where empty before)
23552           - Do not add items to the Selected lists if they are already present
23553         * ListView.cs:
23554           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
23555           - When deleting items make sure that we delete them for the Selected
23556           and Checked list also.
23557
23558 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23559
23560         * Label.cs: Dispose objects no longer used
23561         * ThemeWin32Classic.cs: Dispose objects no longer used
23562
23563 2005-10-18  Jackson Harper  <jackson@ximian.com>
23564
23565         * TabControl.cs: Don't refresh the whole control when the tabs are
23566         scrolled, we just need to refresh the tab area.
23567
23568 2005-10-17  Jackson Harper  <jackson@ximian.com>
23569
23570         * XplatUIX11.cs: Compress code a little bit. Only calculate the
23571         after handle when we need it.
23572
23573 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
23574
23575         * Control.cs: When the parent size changes, recalculate anchor 
23576           positions. Partial fix for #76462
23577
23578 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
23579
23580         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
23581           drawn. Fixes #76462
23582
23583 2005-10-17  Jackson Harper  <jackson@ximian.com>
23584
23585         * MonthCalendar.cs: Don't create the numeric up down until our
23586         handle is created. Otherwise our handle is created in the
23587         constructor and we don't know if we are a WS_CHILD or WS_POPUP
23588         yet.
23589
23590 2005-10-17  Jackson Harper  <jackson@ximian.com>
23591
23592         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
23593         correctly.
23594
23595 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
23596         * TreeNode.cs : small logical fix (was using local var instead of field)
23597         
23598 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
23599
23600         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
23601
23602 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
23603
23604         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
23605
23606 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
23607
23608         * Control.cs: 
23609           - Re-implemented anchoring code. My first version was really broken.
23610             This fixes bug #76033. Unlike the previous implementation we will
23611             no longer have round errors since all numbers are calculated from
23612             scratch every time. Removed various anchor-related obsolete vars.
23613           - InitLayout no longer causes layout event firing and layout to be 
23614             performed
23615
23616 2005-10-16  Jackson Harper  <jackson@ximian.com>
23617
23618         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
23619         which was broken).
23620
23621 2005-10-16  Jackson Harper  <jackson@ximian.com>
23622
23623         * TabControl.cs: Remove debug code.
23624
23625 2005-10-16  Jackson Harper  <jackson@ximian.com>
23626
23627         * XEventQueue.cs: Increase the default queue size (very simple
23628         apps needed to grow the queue).
23629         * Hwnd.cs: No finalizer so we don't need to suppress
23630         finalization. Compute the invalid area manually so a new rectangle
23631         does not newto be created.
23632         * ScrollableControl.cs: Don't set any params (otherwise visibility
23633         isn't set correctly).
23634         * MdiChildContext.cs: New constructor takes the mdi parent so it
23635         doesn't have to be computed and avoids a crash on windows. Draw
23636         the window icon properly, and allow the text to be seen.
23637         * Form.cs: Use new MdiChildContext constructor. Make sure the
23638         child context isn't null in wndproc.
23639         * TabControl.cs: Don't set focus, this is muddling keyboard
23640         behavoir. Expand the tab rows when a window size increase will
23641         allow extra tabs to be seen. Don't allow tabs smaller than the
23642         width of a window to be scrolled out of view.
23643         * TreeNode.cs:
23644         * TreeView.cs: Use measure string to calculate a nodes width, the
23645         width is cached and only updated when the text or the font is
23646         changed. Don't check for expand/collapse clicks on the first level
23647         nodes if root lines are disabled.
23648         
23649 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
23650
23651         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
23652
23653 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
23654
23655         * DataGridBoolColumn.cs: fixes warning
23656
23657 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
23658
23659         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
23660         to match more to match more precisely the MS Net behavior
23661
23662 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
23663
23664         * Hwnd.cs: Added field to track if window is mapped
23665         * XplatUIX11.cs: 
23666           - Unmap windows if they become 0-size, re-map when 
23667             they are >0 again; fixes #76035
23668           - Re-set our error handler after initializing X11Desktop
23669             to override any error handlers Gtk or whatever was called
23670             may have set.
23671
23672 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
23673
23674         * CheckedListBox.cs: Removed unused vars
23675         * ListView.cs: Fixed signatures
23676         * RichTextBox.cs: Removed unused vars
23677         * TextBoxBase.cs: Removed unused vars
23678         * XplatUIWin32.cs: Removed unused vars
23679         * XplatUIX11.cs: Removed unused vars
23680         * XplatUI.cs: Updated version and date to latest published
23681
23682 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
23683
23684         * Cursor.cs: Added private .ctor to work around a bug in
23685           resourceset (Thanks to Geoff Norton for the help on this)
23686         * SplitterEventArgs.cs: Made fields accessible so we don't
23687           waste boatloads of objects and can reuse the same one
23688           in Splitter
23689         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
23690           any captions and borders when generating screen coordinates
23691         * Splitter.cs: Reimplemented control, now fully complete, uses
23692           rubberband drawing, supports and obeys all properties, has
23693           proper cursors
23694
23695 2005-10-13  Miguel de Icaza  <miguel@novell.com>
23696
23697         * Form.cs (Form): Setup default values for autoscale and
23698         autoscale_base_size;  Make these instance variables, not static
23699         variables. 
23700
23701         (OnLoad): on the first load, adjust the size of the form.
23702
23703 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
23704
23705         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
23706           width argument to DrawReversibleRectangle()
23707         * XplatUIWin32.cs, XplatUIX11.cs: 
23708           - Implemented width for DrawReversibleRectangle()
23709           - Added logic to DrawReversibleRectangle that recognizes a zero
23710             width or height and only draws a line in that situation
23711         
23712 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
23713
23714         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
23715         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
23716         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
23717           method (it uses our FosterParent window to get a graphics context)
23718
23719 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
23720
23721         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
23722           and SetWindowBackground methods
23723         * Control.cs:
23724           - Setting proper ControlStyles
23725           - We no longer call XplatUI.SetWindowBackground and XplatUI.
23726             EraseWindowBackground, instead we draw the window background
23727             ourselves in PaintControlBackground. This behaviour is
23728             required to match MS, where, when OnPaintBackground is not
23729             called, the background is not drawn.
23730           - Removed unneeded Refresh() in set_Text
23731         * Hwnd.cs: Dropped the ErasePending support. No longer needed
23732         * XplatUIX11.cs:
23733           - Created DeriveStyles method to translate from CreateParams to
23734             FormBorderStyle and TitleStyle, also handles BorderStyle (which
23735             matches FormBorderStyle enum values)
23736           - Consolidated SetHwndStyles and CalculateWindowRect border/title
23737             style calculations into single DeriveStyles method
23738           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
23739             from redrawing the whole window on any resize or expose.
23740           - Fixed CreateWindow usage of SetWindowValuemask. Before not
23741             all styles were applied to our whole/client window appropriately
23742           - Removed EraseWindowBackground() and SetWindowBackground() methods
23743           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
23744             no longer clear/redraw the background through X
23745           - Removed handling of erase_pending bit, we have no use for it (or
23746             so it seems)
23747         * XplatUIOSX.cs:
23748           - Removed generation and handling of WM_ERASEBKGND message
23749           - Removed EraseWindowBackground() and SetWindowBackground() methods
23750           - Removed handling of hwnd.ErasePending flag
23751         * XplatUIWin32.cs:
23752           - Removed EraseWindowBackground() and SetWindowBackground() methods
23753           - We no longer call EraseWindowBackground on PaintEventStart, we 
23754             ignore the fErase flag, erasing is handled in Control in the
23755             background handler
23756         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
23757           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
23758           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
23759           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
23760           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
23761           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
23762           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
23763
23764 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
23765
23766         * PropertyGrids.cs: Get sub properties
23767         * PropertyGridView.cs: Fix drawing code
23768
23769 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23770
23771         * ListBox.cs: Fixes 76383
23772
23773 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23774
23775         * DataGridTextBoxColumn.cs: Sets location and size before attachment
23776         * ThemeWin32Classic.cs: Fixes border drawing and calculations
23777         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
23778
23779
23780 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23781
23782         * ComboBox.cs: Fixes border drawing
23783
23784 2005-10-10  Miguel de Icaza  <miguel@novell.com>
23785
23786         * MimeIcon.cs: Ignore errors if the file can not be read.
23787
23788 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23789
23790         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
23791          - Fixed border calculations
23792          - Fixed horizontal scrolling in single column listboxes
23793          - Fixed drawing issues
23794
23795 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
23796
23797         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
23798           FormBorderStyle enum
23799         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
23800           code to determine FormBorderStyles from CreateParams
23801         * Form.cs:
23802           - Fixed bug where we'd set the wrong window styles if we were
23803             not creating an MDI window
23804           - Added call to XplatUI.SetBorderStyle when form borders are set
23805         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
23806         * Hwnd.cs:
23807           - Removed obsolete edge style
23808           - Switched from BorderStyle to FormBorderStyle
23809         
23810 2005-10-10  Jackson Harper  <jackson@ximian.com>
23811
23812         * Form.cs: Use the property to get the window handle instead of
23813         accessing it directly. Prevents a null reference exception.
23814
23815 2005-10-10  Jackson Harper  <jackson@ximian.com>
23816
23817         * TreeView.cs: Don't adjust the rect given to DrawString now that
23818         our libgdiplus draws correctly.
23819
23820 2005-10-08  Jackson Harper  <jackson@ximian.com>
23821
23822         * TreeView.cs: Don't try to find the clicked on node if there are
23823         no nodes in the tree.
23824
23825 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
23826
23827         * RichTextBox.cs:
23828
23829           restore
23830
23831 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
23832
23833         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
23834           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
23835           ErrorProvider.cs:
23836           Use ResPool for brushes and dispose System.Drawing objects that
23837           are not used anymore.
23838
23839 2005-10-07  Jackson Harper  <jackson@ximian.com>
23840
23841         * MdiChildContext.cs: Use the new borders instead of drawing them
23842         ourselves.
23843
23844 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
23845
23846         * Calling UpdateBounds after changing the window's BorderStyle 
23847         since the style can change the ClientSize
23848
23849 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23850
23851         * Control.cs: Made PaintControlBackground virtual
23852         * Panel.cs: Overriding PaintControlBackground instead of using paint
23853           event; paint event method was interfering with 'real' users of the
23854           event.
23855
23856 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
23857
23858         * ThemeWin32Classic.cs: remove border drawing since it is handled
23859         by the base control class now and was causing double border drawing.
23860
23861 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23862
23863         * Panel.cs: Redraw our background on paint. Not a pretty solution,
23864           but it does seem to match MS behaviour. This fixes bug #75324
23865
23866 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23867
23868         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
23869           somewhat hackish looking
23870
23871 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23872
23873         * TextBoxBase.cs:
23874           - We now accept Enter even if AcceptEnter is false, if the containing
23875             form does not have an AcceptButton configured (fixes bug #76355)
23876           - Calculations are now fixed to no longer use Width/Height, but
23877             ClientSize.Width/Height, since we now support borders (this was
23878             a result of fixing borders and therefore bug #76166)
23879           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
23880             true (fixes bug #76354)
23881         
23882 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23883
23884         * Control.cs: 
23885           - Defaulting BorderStyle and setting it in XplatUI when our window 
23886             is created
23887           - Added enum check to InternalBorderStyle setter
23888         * XplatUIX11.cs: 
23889           - Added drawing of window borders
23890           - Now properly calculates WM decorations offset for toplevel 
23891             windows (fixes bug #74763)
23892         * XplatUIWin32.cs: 
23893           - Implemented BorderStyles for windows (we're letting win32 draw 
23894             the border for us)
23895           - Fixed the signature for SetWindowLong
23896         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
23897           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
23898           setting borders
23899         * UpDownBase.cs: Remove drawing of borders, this is handled by
23900           the driver, outside the client area
23901         * ListView.cs: Removed bogus border calculations. The control should
23902           be oblivious to borders, since those are not part of the client
23903           area. 
23904         * X11DesktopColors.cs: Commented out (currently) unneeded variables
23905         * ThemeWin32Classic.cs: Removed border calculations from ListView 
23906           drawing code
23907
23908 2005-10-06  Jackson Harper  <jackson@ximian.com>
23909
23910         * MdiChildContext.cs: Clear out the old virtual position remove
23911         all the unneeded calls to CreateGraphics.
23912
23913 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23914
23915         * TextControl.cs: Use proper color for highlighted text; fixes #76350
23916
23917 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23918
23919         * Form.cs: 
23920           - Added loading and setting of our new default icon
23921           - Only set icon if window is already created
23922
23923 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23924
23925         * Label.cs:
23926           - Do not explicitly set the foreground and background colors, to
23927             allow inheriting from parents (fixes #76302)
23928           - Use Control's InternalBorderStyle property to deal with borders
23929
23930 2005-10-06  Jackson Harper  <jackson@ximian.com>
23931
23932         * MdiChildContext.cs: Use the new xplatui function to draw a
23933         reversible rect.
23934
23935 2005-10-06  Jackson Harper  <jackson@ximian.com>
23936
23937         * Form.cs: Add the parent before creating the child context cause
23938         we need the parent when setting up the child.
23939
23940 2005-10-06  Jackson Harper  <jackson@ximian.com>
23941
23942         * FolderBrowserDialog.cs: redo the tree population code so a
23943         second thread isn't used. Should be a lot faster and more stable
23944         now.
23945
23946 2005-10-05  Jackson Harper  <jackson@ximian.com>
23947
23948         * TreeView.cs: There are no expand/collapse boxes if the node has
23949         no children.
23950
23951 2005-10-05  Jackson Harper  <jackson@ximian.com>
23952
23953         * X11DesktopColors.cs: Get menu colours for the gtk theme.
23954
23955 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
23956
23957         * FileDialog.cs: Fix InitialDirectory
23958
23959 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
23960
23961         * ComboBox.cs:
23962                 - Fixes changing between styles
23963                 - Fixes simple mode
23964                 - Fixes last item crashing when navigating with keyboard
23965
23966 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
23967
23968         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
23969
23970 2005-10-05  Jackson Harper  <jackson@ximian.com>
23971
23972         * TreeView.cs: If updating the root node do a full refresh.
23973         * TreeNode.cs: The root node should be expanded by default. Also
23974         added a utility prop to tell if we are the root node.
23975         * TreeNodeCollection.cs: Only refresh if the node we are being
23976         added to is expanded. Also added a comment on a potential
23977         optimization.
23978         
23979 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
23980
23981         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
23982           in dispose method. Fixes #76330
23983
23984 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
23985
23986         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
23987
23988                 - Implements vertical and horizontal scrolling using XplatUI
23989                 - Fixes keyboard navagation
23990                 - Fixes EnsureVisible
23991                 - Drawing fixes
23992                 - Handles and draws focus properly
23993
23994
23995 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
23996
23997         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
23998           Create handle. NET_2_0: Destroy handle when value is null.
23999
24000 2005-10-03  Jackson Harper  <jackson@ximian.com>
24001
24002         * ScrollBar.cs: My last scrollbar patch was broken. This is a
24003         revert and a new patch to prevent the thumb from refreshing so
24004         much.
24005
24006 2005-10-02  Jackson Harper  <jackson@ximian.com>
24007
24008         * ScrollBar.cs: Don't update position if it hasn't actually
24009         changed. This occurs when you hold down the increment/decrement
24010         buttons and the thumb gets to the max/min.
24011
24012 2005-10-01  Jackson Harper  <jackson@ximian.com>
24013
24014         * Form.cs:
24015         * MdiChildContext.cs:
24016         * MdiClient.cs: Implement ActiveMdiChild in Form.
24017
24018 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
24019
24020         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
24021
24022 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
24023
24024         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
24025           be found
24026
24027 2005-09-30  Jackson Harper  <jackson@ximian.com>
24028
24029         * ListBox.cs: Don't do a full refresh unless some data has
24030         actually changed.
24031
24032 2005-09-30  Jackson Harper  <jackson@ximian.com>
24033
24034         * TreeView.cs: Make sure that the checkboxes size is factored in
24035         even when not visible.
24036
24037 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
24038
24039         * FileDialog.cs: Fix Jordi's build break
24040
24041 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
24042
24043         * FileDialog.cs: 
24044                 - Use standard the Windows colours for the combobox as espected
24045                 - Dispose objects that use resouces when no longer need them
24046
24047 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
24048
24049         * X11DesktopColors.cs: Initial incomplete implementation
24050         * XplatUIX11.cs: Added call to initialize X11DesktopColors
24051
24052 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
24053
24054         * Theme.cs: 
24055           - Switched Theme color names to match the names defined in 
24056             System.Drawing.KnownColors. Life's hard enough, no need to make 
24057             it harder.
24058           - Added setters to all theme color properties so themes can set
24059             their color schemes. The setters also propagate the color changes
24060             to System.Drawing.KnownColors via reflection
24061         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
24062           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
24063           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
24064           use the new, more logical theme color names
24065         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
24066           post-NT colors
24067         * ThemeWin32Classic.cs:
24068           - Removed code to set the old classic Windows colors. Instead it
24069             now relies on the colors returned by System.Drawing.KnownColors
24070             which will be either modern static colors (Unix) or colors
24071             read from the user's configuration (Win32)
24072           - Updated to use the new, more logical theme color names
24073           - Switched DataGrid drawing code to use only Theme colors instead of
24074             a mix of System.Drawing.KnownColors and Theme colors
24075           - DrawFrameControl(): Removed code that fills the button area, the
24076             fill would overwrite any previous fill done by a control. This
24077             fixes bug #75338 
24078           - Added DrawReversibleRectangle() stub
24079         * ScrollableControl.cs: Set visible state to false when scrollbars
24080           are removed (pdn fix)
24081         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
24082           DrawReversibleRectangle() method to allow drawing primitive 
24083           'rubber bands'
24084         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
24085
24086 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24087
24088         * ImageList.cs: Add(Icon): Create handle.
24089
24090 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
24091
24092         * ListView.cs:
24093         * ThemeWin32Classic.cs:
24094                 - Fixes detail mode
24095                 - Sets clippings
24096                 - Issues with drawing
24097
24098 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24099
24100         * ImageList.cs: Moved RecreateHandle back to ImageList as event
24101           source has to be the ImageList.
24102
24103 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24104
24105         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
24106
24107 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24108
24109         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
24110
24111 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24112
24113         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
24114
24115 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
24116         * GridItem.cs: Fixed TODOs
24117         * GridItemCollection.cs: Added ICollection interface
24118
24119 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24120
24121         * ImageList.cs: Resize icons when needed.
24122
24123 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
24124
24125         * ListViewItem.cs
24126                 - Fixes GetBounds and returns on screen rects
24127         * ListView.cs:
24128                 - Fixes vertical and horzintal scrolling of items
24129         * ThemeWin32Classic.cs:
24130                 - Fixes drawing
24131                 
24132 2005-09-29  Raja R Harinath  <harinath@gmail.com>
24133
24134         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
24135
24136 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
24137
24138         * ImageList.cs: Added comments about handle creation. Moved Handle,
24139           HandleCreated and OnRecreateHandle implementations to ImageCollection.
24140           Handle is created in Add methods.
24141
24142 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
24143          
24144         * DataGridDrawingLogic.cs: 
24145                 - Takes rows into account on Colum calculations
24146                 - Returns the column when clickig
24147         * DataGrid.cs:
24148                 - Fixes default HitTestInfo values
24149                 - Fixes HitTestInfo.ToString
24150                 - Fixes ResetBackColor          
24151         
24152 2005-09-28  Jackson Harper  <jackson@ximian.com>
24153
24154         * MdiChildContext.cs: Obey rules for fixed sized windows (no
24155         sizing or cursor changes). Also added some temp code to draw the
24156         titlebars text (Makes dev a little easier).
24157
24158 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
24159
24160         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
24161
24162 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
24163          
24164         * ListBox.cs: Fixes bug 76253
24165
24166 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
24167
24168         * ImageList.cs: Added comments about the current implementation. Added
24169           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
24170           Format32bppArgb to preserve transparency and can use Graphics.FromImage
24171           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
24172           with Bitmap.LockBits for better performance. Revised the whole file to
24173           match MS.NET behaviour and provide better performance. Non-public
24174           interface members are calling public members even when they throw
24175           NotSupportedException for better maintainability. Moved ColorDepth,
24176           ImageSize, ImageStream and TransparentColor implementations to
24177           ImageCollection for better performance as these properties are not used
24178           by ImageList.
24179         * ImageListStreamer.cs: Added a new internal constructor that takes an
24180           ImageList.ImageCollection and serializes Images based on
24181           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
24182           match ImageList property name.
24183
24184 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
24185
24186         * ListBox.cs: Fixes IndexFromPoint for last item
24187
24188 2005-09-27  Jackson Harper  <jackson@ximian.com>
24189
24190         * Form.cs: Set the position of new mdi children correctly.
24191
24192 2005-09-27  Jackson Harper  <jackson@ximian.com>
24193
24194         * MdiClient.cs: New mdi children need to be added to the back of
24195         the controls collection so the zorder is set correctly. Also add a
24196         count of all the child windows that have been created.
24197
24198 2005-09-27  Jackson Harper  <jackson@ximian.com>
24199
24200         * Form.cs (CreateParams): Setup MDI forms correctly.
24201
24202 2005-09-27  Jackson Harper  <jackson@ximian.com>
24203
24204         * MdiChildContext.cs:
24205         * MonthCalendar.cs:
24206         * UpDownBase.cs:
24207         * ListBox.cs:
24208         * ListView.cs:
24209         * TextBoxBase.cs:
24210         * TreeView.cs:
24211         * ScrollableControl.cs:
24212         * ComboBox.cs: Add implicit controls using the new implict control
24213         functionality in ControlCollection. Also try to block multiple
24214         control add in a suspend/resume layout to save some cycles.
24215         
24216 2005-09-27  Jackson Harper  <jackson@ximian.com>
24217
24218         * Control.cs: Add functionality to the controls collection to add
24219         'implicit controls' these are controls that are created by the
24220         containing control but should not be exposed to the user. Such as
24221         scrollbars in the treeview.
24222         * Form.cs: The list var of the ControlsCollection is no longer
24223         available because of the potential of implicit controls getting
24224         ignored by someone accessing the list directly.
24225
24226 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
24227
24228         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
24229           loose it's parent. (Fixed bug introduced in r49103 when we added
24230           setting the child parent to null on Remove)
24231
24232 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
24233
24234         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
24235         * Splitter.cs: Added missing attributes for BorderStyle property.
24236         * TextBoxBase.cs: Marked Calculate* methods internal.
24237         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
24238         MS.NET.
24239
24240 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
24241          
24242         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
24243
24244 2005-09-25  Jackson Harper  <jackson@ximian.com>
24245
24246         * TreeView.cs: Update the node bounds correctly regardless of
24247         whether the node is visible.
24248
24249 2005-09-25  Jackson Harper  <jackson@ximian.com>
24250
24251         * ImageList.cs: Don't dispose the image after it is added to the
24252         image list. Only reformat images that need to be resized.
24253
24254 2005-09-25  Jackson Harper  <jackson@ximian.com>
24255
24256         * ImageList.cs: Don't set the format when changing the image.
24257
24258 2005-09-25  Jackson Harper  <jackson@ximian.com>
24259
24260         * TreeView.cs: We can't just assume the node has a font. Use the
24261         treeviews font if no node font is available.
24262
24263 2005-09-25  Jackson Harper  <jackson@ximian.com>
24264
24265         * TreeView.cs: Allow the scrollbars to be reset with negative
24266         values.
24267         - Don't add scrollbars to negative sized windows.
24268
24269 2005-09-23  Jackson Harper  <jackson@ximian.com>
24270
24271         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
24272         old Mono.Posix. Also remove some stray code that shouldn't have
24273         been committed.
24274
24275 2005-09-23  Jackson Harper  <jackson@ximian.com>
24276
24277         * TreeView.cs: Attempt at proper sizing of the horizontal
24278         scrollbar. Also don't resize the scrollbars unless they are
24279         visible.
24280
24281 2005-09-23  Jackson Harper  <jackson@ximian.com>
24282
24283         * TreeView.cs: We don't need to expand the invalid area when the
24284         selection changes, as this is all drawn in the node's bounding
24285         box. The area needs to be expanded (previous typo was contracting
24286         it) when the focus rect moves.
24287
24288 2005-09-23  Jackson Harper  <jackson@ximian.com>
24289
24290         * TreeView.cs: Display the selection box under the correct
24291         circumstances. We were rendering white text with no selection box
24292         before.
24293
24294 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
24295
24296         * TextControl.cs(Split): Now updates selection start/end if it points 
24297           into a line that's being split. Fixes a FIXME and bug #75258
24298
24299 2005-09-23  Jackson Harper  <jackson@ximian.com>
24300
24301         * Binding.cs:
24302         * ListControl.cs: Don't use the path when retrieving binding
24303         managers from the binding context. My bat sense tells me that the
24304         path is only used on insertion.
24305
24306 2005-09-22  Jackson Harper  <jackson@ximian.com>
24307
24308         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
24309
24310 2005-09-22  Jackson Harper  <jackson@ximian.com>
24311
24312         * Splitter.cs: There are special cursors used for splitting.
24313         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
24314
24315 2005-09-22  Jackson Harper  <jackson@ximian.com>
24316
24317         * Splitter.cs: Change the cursor appropriately when the splitter
24318         is moused over, so the user actually knows there is a splitter
24319         there.
24320
24321 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24322
24323        * Label.cs : Fix ToString method to give same output as MS.NET
24324
24325 2005-09-22  Jackson Harper  <jackson@ximian.com>
24326
24327         * TreeView.cs: Create the scrollbars when the handle is created
24328         and add them right away, just make them invisble. Also account for
24329         the window being shrunk vertically to the point that the vert
24330         scrollbar needs to be added.
24331         - Remove some 0.5 adjustments to get around anti aliasing issues.
24332         
24333 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
24334          
24335         * MainMenu.cs: Fixes default value
24336         * MenuItem.cs: Fixes default value
24337
24338 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
24339
24340         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
24341
24342 2005-09-21  Jackson Harper  <jackson@ximian.com>
24343
24344         * Control.cs: Don't try to set the border style on the window if
24345         it hasn't been created. When the window is created the border
24346         style will be used.
24347
24348 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
24349
24350         * Control.cs (Update): Don't call XplatUI if we don't have a
24351           window handle yet
24352
24353 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
24354
24355         * ContainerControl.cs: Instead of throwing an exception, print
24356           a one-time warning about Validate not being implemented
24357         * XplatUIWin32.cs: Removed debug output
24358
24359 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
24360
24361         * Control.cs: Only set XplatUI background if we expect the windowing
24362           system to handle the background. This stops controls that draw their
24363           own background from flickering
24364
24365         * XplatUIX11.cs: Support custom visuals and colormaps for window 
24366           creation. This allows, amongst other things, using MWF X11 windows 
24367           with OpenGL.
24368
24369 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
24370
24371         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
24372           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
24373           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
24374           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
24375           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
24376           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
24377           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
24378           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
24379           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
24380           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
24381           GridColumnStylesCollection.cs, 
24382           IDataGridColumnStyleEditingNotificationService.cs,
24383           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
24384           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
24385           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
24386           TreeNodeCollection.cs, AmbientProperties.cs, 
24387           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
24388           DataObject.cs, ErrorProvider.cs, Splitter.cs,
24389           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
24390           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
24391           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
24392           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
24393           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
24394           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
24395           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
24396           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
24397           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
24398           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
24399           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
24400           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
24401           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
24402           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
24403           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
24404           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
24405           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
24406           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
24407           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
24408           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
24409           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
24410           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
24411           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
24412           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
24413           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
24414           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
24415           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
24416           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
24417           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
24418           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
24419           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
24420           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
24421           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
24422           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
24423           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
24424
24425 2005-09-21  Jackson Harper  <jackson@ximian.com>
24426
24427         * TreeNode.cs: Call Before/After Expand not Collapse when
24428         expanding.
24429
24430 2005-09-20  Jackson Harper  <jackson@ximian.com>
24431         
24432         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
24433
24434 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
24435          
24436         * ListViewItem.cs:
24437                 - Fixes bug 76120
24438                 - Fixes proper storing of subitems
24439                 - Fixes not updated items
24440
24441 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
24442
24443         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
24444           things if our window handle isn't created yet. Also disabled 
24445           debug for TextBoxBase
24446
24447 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
24448
24449         * MenuAPI.cs: Remove filtering of events to allow menu usage
24450
24451 2005-09-20  Miguel de Icaza  <miguel@novell.com>
24452
24453         * Cursor.cs: Allow null to be passed to Cursor.Current.
24454
24455 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
24456
24457         * ThemeWin32Classic.cs:
24458           - Change some private methods/fields to protected virtual so that 
24459             they can be accessed and overriden in derived classes
24460           - First refactoring of some methods. Derived themes now don't 
24461             need to duplicate the complete code from ThemeWin32Classic
24462         * ThemeNice.cs:
24463           - Added nice StatusBar
24464           - Derive from ThemeWin32Classic and not Theme
24465           - Removed duplicate ThemeWin32Classic code
24466
24467 2005-09-20  Miguel de Icaza  <miguel@novell.com>
24468
24469         * Control.cs (ControlCollection.Add): If the value null is passed
24470         the control is ignored. 
24471
24472         Optimize this loop.
24473
24474 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
24475
24476         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
24477           PostQuitMessage state.
24478         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
24479
24480 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
24481
24482         * Application.cs: Our constructor will never get called, move 
24483           initialization to fields; fixes bug #75933
24484
24485 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24486
24487         * FileDialog.cs :
24488                 - Allow files to be selected properly using file name
24489                 combo box.
24490                 - Add ability to change diretory (absolute / relative)
24491                 using file name combo box.
24492
24493 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
24494          
24495         * ListBox.cs: 
24496                 - Fixes Multicolumn listboxes item wrong calculations
24497                 - Allows to click when only one item is in the listbox
24498                 - Fixes crash when no items using keyboard navigation
24499
24500 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
24501
24502         * ComboBox.cs: Reverted almost everything from the latest patch which
24503           broke ComboBox
24504
24505 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
24506         
24507         * ToolTip.cs:
24508                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
24509         * ComboBox.cs:
24510                 - When DropDownStyle is Simple, it does not show scrollbar 
24511                 to the last item of the list.
24512                 - When DropDownStyle is Simple, it crashed when the list was 
24513                 scrolled down with the down cursor key.
24514                 - Fixed a bug that when DropDownStyle is DropDownList, the 
24515                 selected item was not shown.
24516                 - The position of the selected item was not preserved when 
24517                 the next dropdown happened.
24518         * ThemeWin32Classic.cs:
24519                 - Items were wrapped at the right end.
24520         * CheckedListBox.cs:
24521                 - Fixed Add method
24522         * ListBox.cs:
24523                 - Items should be fully shown.
24524                 - When resizing and vertical scrollbar disappeared, the item 
24525                 of index 0 should be on the top of the list.
24526                 - GetItemRectangle should consider the size of ver. scrollbar
24527         * StatusBar.cs:
24528                 - SizingGrip area should not be allocated when it is not 
24529                 displayed.
24530                 - Now it reflects MinWidth of the containing panel and 
24531                 fixed a crash that happens when its width becomes so small.
24532
24533 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
24534
24535         * CheckedListBox.cs: Fixes bug 76028
24536         * ListBox.cs: Fixes bug 76028
24537
24538 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
24539
24540         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
24541         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
24542
24543 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
24544
24545         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
24546
24547 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24548
24549         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
24550
24551 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24552
24553         * IRootGridEntry.cs: Added
24554         * PropertyGridCommands.cs: Added
24555         * PropertiesTab.cs: Added missing methods and property
24556         * PropertyGridView.cs: Made class internal
24557         * PropertyGridTextBox.cs: Made class internal
24558
24559 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24560
24561         * MimeIcon.cs: Try to check some other environment variables
24562           if "DESKTOP_SESSION" returns "default"
24563
24564 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24565
24566         * ThemeNice.cs: Corrected background colors (e.g. menus)
24567         * ColorDialog.cs: Use correct background colors for controls
24568
24569 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24570
24571         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
24572
24573 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
24574
24575         * RichTextBox.cs: Added initial implementation
24576         * lang.cs: Removed. Was accidentally checked in long time ago
24577         * TODO: Removed. Contents were obsolete
24578
24579 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
24580                                                                                 
24581         * PropertiesTab.cs : Added
24582
24583 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
24584                                                                                 
24585         * PropertyGrid.cs : Update
24586         * PropertyGridView.cs : Update
24587         * System.Windows.Forms.resx : Added images and strings
24588
24589 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
24590
24591         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
24592  
24593 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
24594
24595         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
24596           a busy loop right after the Ungrab the X11 display is otherwise 
24597           blocked
24598
24599 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
24600
24601         * ThemeWin32Classic.cs: Optimise the use of clipping
24602
24603 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
24604
24605         * DataGrid.cs: fixes recursion bug
24606
24607 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
24608
24609         * ThemeNice.cs: 
24610           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
24611           - Cleanup
24612
24613 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
24614
24615         * ThemeNice.cs: Draw nice ProgressBars
24616
24617 2005-09-01  Miguel de Icaza  <miguel@novell.com>
24618
24619         * VScrollBar.cs: Another buglet found by Aaron's tool. 
24620
24621         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
24622         bug finder.
24623
24624 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
24625
24626         * ThemeNice.cs:
24627           - Added nicer menu drawing
24628           - Updated DrawTab
24629           - some refactoring
24630
24631 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
24632
24633         * CreateParams.cs (ToString): Made output match MS
24634         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
24635             handle is already created (to avoid forcing window creation)
24636         * XplatUIX11.cs: Set window text to caption after creating window,
24637           in case Text was set before window was created
24638         * Form.cs: Use this.Text instead of a static string as caption
24639
24640 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24641
24642         * NotifyIcon.cs: Don't set the window to visible; this screws
24643           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
24644           OnPaint without a bitmap)
24645         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
24646           happen very often anyway; we could add the check to the WM_PAINT 
24647           event generation code
24648
24649 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
24650
24651         * NotifyIcon.cs: Fill the icon area with a background color, to 
24652           avoid 'residue' when transparent icons are drawn
24653         * XplatUIX11.cs:
24654           - Handle whole_window == client_window when destroying windows
24655           - SystrayAdd(): Set client_window to whole_window value to
24656             get mouse and other events passed to NotifyIcon
24657
24658 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24659
24660         * Form.cs: Set proper default for Opacity property
24661         * NotifyIcon.cs:
24662           - ShowSystray(): Don't bother creating telling the OS
24663             about the systray item if no icon is provided
24664           - Now handles WM_NCPAINT message to deal with whole/client window
24665             split
24666           - Create window as visible to not get caught by Expose optimization
24667         * Hwnd.cs: Removed debug message
24668         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
24669           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
24670             PaintEventStart/End to use new client argument
24671         * TextBoxBase.cs:
24672           - Commented out debug messages
24673           - Switched PaintEventStart/End to use new client argument
24674         * XplatUI.cs: Added client window bool to PaintEventStart()/
24675           PaintEventEnd() calls, to support drawing in non-client areas
24676         * XplatUIDriver.cs: 
24677           - Added client window bool to PaintEventStart()/PaintEventEnd() 
24678             calls, to support drawing in non-client areas
24679           - Added conditional compile to allow using MWF BeginInvoke 
24680             on MS runtime
24681         * XplatUIX11.cs:
24682           - Added some conditional debug output
24683           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
24684             whole/client window split
24685           - Implemented handling of client argument to PaintEventStart()/End()
24686         * Control.cs:
24687           - Throw exception if BeginInvoke() is called and the window handle
24688             or one of the window's parent handles is not created
24689           - Added conditional compile to allow using MWF BeginInvoke on
24690             MS runtime
24691           - get_Parent(): Only sets parent if handle is created. This avoids
24692             forcing window handle creation when parent is set.
24693           - Now fires Layout and Parent changed events in proper order
24694           - Switched to use Handle instead of window.Handle for Z-Order setting,
24695             the get_Parent() patch above causes us to possibly get null for 'window'
24696           - Implemented handling of client argument to PaintEventStart()/End()
24697           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
24698             default handling)
24699           - Now sends a Refresh() to all child windows when Refresh() is called
24700
24701 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
24702
24703         * Form.cs: Added (non-functional) Opacity property
24704         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
24705
24706 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
24707         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
24708           use export MONO_THEME=nice to activate it.
24709           Currently supported controls:
24710           - Button
24711           - ComboBox
24712           - ScrollBar
24713           - TabControl (TabAlignment.Top only, other will follow)
24714         * ThemeEngine.cs: Add theme nice
24715         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
24716           if enabled
24717
24718 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
24719
24720         * Splitter.cs: Resize docked control and its neighbor.
24721
24722 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
24723         -- Making Windows with Menus layout correctly --
24724         * Form.cs : The first leg of the fix
24725                 Menu setter - adjust Client Size as needed to make space for the menu
24726                 SetClientSizeCore - doesn't call base version to be able to pass the 
24727                         menu handle to XplatUI.CalculateWindowRect
24728         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
24729         * XplatUIX11.cs: The critical second leg of the fix
24730                 GetWindowPos needs to use a recalculated client_rect
24731                 so that resizing the window doesn't break layout of child controls. 
24732                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
24733                 Lots of \t\n killed
24734
24735 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24736
24737         * Label.cs: Now properly recalculates width and height on Font and Text
24738           changes if AutoSize is set
24739
24740 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
24741         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
24742
24743 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
24744
24745         * ImageList.cs: Makes ToString method compatible with MS
24746
24747 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
24748
24749         * MenuAPI.cs: fixes bug 75716
24750
24751 2005-08-11 Umadevi S <sumadevi@novell.com>
24752         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
24753
24754 2005-08-11 Umadevi S <sumadevi@novell.com>
24755         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
24756
24757 2005-08-10  Umadevi S <sumadevi@novell.com>
24758         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
24759
24760 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
24761
24762         * Menu.cs: fixes bug 75700
24763         * MenuAPI.cs: fixes navigation issues
24764
24765 2005-08-09  Umadevi S <sumadevi@novell.com>
24766         * CheckedListBox.cs - simple fix for GetItemChecked.
24767
24768 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
24769
24770         * ComboBox.cs: Serveral fixes
24771         * ListBox.cs: Serveral fixes
24772
24773 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
24774
24775         * ComboBox.cs: Fixes FindString methods and GetItemHeight
24776         * ListBox.cs: Fixes FindString methods
24777
24778 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
24779
24780         * DataGrid.cs: fixes bugs exposed by new tests
24781
24782 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
24783
24784         * Mime.cs: Compile Mono assembly references only if compiling
24785           with Mono (Allows to build with VS.Net again)
24786
24787 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
24788
24789         * Control.cs (PaintControlBackground): Draw background image
24790         corrrectly.
24791         (CheckForIllegalCrossThreadCalls): Stubbed.
24792         
24793         * Form.cs (OnCreateControl): Center when should be centered.
24794         
24795         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
24796
24797 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
24798
24799         * Binding.cs: Binding to properties should be case unsensitive
24800
24801 2005-07-18 vlindos@nucleusys.com
24802
24803         * DataGrid.cs: fixes setmember order
24804
24805 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
24806
24807         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
24808         * FileDialog.cs: FileDialog is now resizable and uses the new
24809           MimeIconEngine
24810
24811 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
24812
24813         * DataGridTextBoxColumn.cs: default value
24814         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
24815         * GridTableStylesCollection.cs: fixes checking MappingName
24816         * DataGridDrawingLogic.cs: fixes drawing logic issues
24817         * DataSourceHelper.cs: rewritten to make compatible with more data sources
24818         * DataGrid.cs: fixes    
24819
24820 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
24821
24822         * MimeGenerated.cs: Use case sensitive comparer for
24823           NameValueCollections
24824
24825 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
24826
24827         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
24828         * ThemeWin32Classic.cs: bug fixes, code refactoring
24829         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
24830         * DataGrid.cs: bug fixes, code refactoring
24831         * DataGridTextBox.cs: bug fixes, code refactoring
24832         * DataGridColumnStyle.cs:  bug fixes, code refactoring
24833         * Theme.cs:  bug fixes, code refactoring
24834
24835 2005-07-01  Peter Bartok  <pbartok@novell.com> 
24836
24837         * TextControl.cs: Quick fix for the reported crash on ColorDialog
24838           and other text box usage
24839
24840 2005-07-01  Jackson Harper  <jackson@ximian.com>
24841
24842         * TabControl.cs: Make sure the bottom of the tab covers the pages
24843         border.
24844
24845 2005-06-30  Peter Bartok  <pbartok@novell.com> 
24846
24847         * Form.cs (ShowDialog): Assign owner of the dialog
24848         * TextBoxBase.cs: Always refresh caret size when deleting, caret
24849           might have been moved to a tag with different height
24850
24851 2005-06-30  Jackson Harper  <jackson@ximian.com>
24852
24853         * Form.cs: Don't create an infinite loop when setting focus
24854         * MenuItem.cs: Don't dirty the parents if we don't have any
24855
24856 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
24857
24858         * LibSupport.cs: Rename
24859
24860 2005-06-29  Peter Bartok  <pbartok@novell.com>
24861
24862         * TextBoxBase.cs: Re-align caret after deleting a character
24863         * TextControl.cs:
24864           - DeleteChars(): Ensure that tag covers the provided position
24865           - StreamLine(): Drop reference for dropped tag
24866
24867 2005-06-29  Peter Bartok  <pbartok@novell.com> 
24868
24869         * TextControl.cs: 
24870           - Selections now work properly, anchoring at the initial location
24871             and properly extending in either direction (SetSelectionToCaret(),
24872             SetSelectionStart() and SetSelectionEnd())
24873           - No longer redraws the whole control on selection change, now
24874             calculates delta between previous and new selection and only
24875             invalidates/redraws that area
24876           - Fixed FindPos() math off-by-one errors
24877           - Changed DeleteChars() to verify the provided tag covers the
24878             provided position, selections may have a tag that doesn't cover
24879             the position if the selection is at a tag border
24880           - Fixed off-by-one errors in DeleteChars()
24881           - Added missing streamlining check in DeleteChars() to remove
24882             zero-length tags
24883           - Implemented Invalidate() method, now properly calculates exposures
24884             between two given lines/positions
24885           - Implemented SetSelection()
24886           - Obsoleted and removed FixupSelection()
24887           - Improved RecalculateDocument() logic, removing code duplication
24888
24889 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24890
24891         * LibSupport.cs: changes to match different input/output arguments.
24892
24893 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24894
24895         * LibSupport.cs: added libsupport.so init routine.
24896
24897 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
24898         
24899         * ControlBindingsCollection.cs
24900                 - Throws an exception on null datasource when adding
24901                 - Checks for duplicated bindings when adding
24902
24903 2005-06-28  Jackson Harper  <jackson@ximian.com>
24904
24905         * TreeView.cs (OnKeyDown): Support left and right properly
24906         (navigates as well as expanding and collapsing.
24907         - Add support for Multiply, this expands all the selected nodes
24908         children.
24909         - Fix some tabbing.
24910
24911 2005-06-28  Jackson Harper  <jackson@ximian.com>
24912
24913         * TreeView.cs: Implement keyboard navigation, currently supports,
24914         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
24915         support for toggling checkboxes with the space bar.
24916
24917 2005-06-28  Jackson Harper  <jackson@ximian.com>
24918
24919         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
24920         tree.
24921
24922 2005-06-28  Jackson Harper  <jackson@ximian.com>
24923
24924         * TreeView.cs: Add missing event.
24925
24926 2005-06-27  Peter Bartok  <pbartok@novell.com> 
24927
24928         * TextControl.cs:
24929           - Made line ending size configurable (now allows for counting 
24930             lineendings as \n or \r\n)
24931           - Added margin to viewport to keep caret visible on right side
24932           - Fixed translation routines for line/pos to documentpos to consider
24933             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
24934           - Fixed some line-endings to be unix style
24935           - Fixed Document.FormatText to perform it's calculations 1-based
24936           - Added descriptions for a few methods that might otherwise get 
24937             used wrong
24938           - Added NOTE section with some basic conventions to remember at 
24939             the top of the file
24940           - Major fixup for RichTextBox selection drawing:
24941             * Fixed crashes when multiple tags on a single line were selected
24942             * fixed selection box drawing not overlaying text
24943             * fixed bogus offset calculation for tags not starting at index 1
24944             * Switched behaviour from using multiple Substrings of a 
24945               StringBuilder.ToString() to using multiple 
24946               StringBuilder.ToString(start, length) statements, hoping this is
24947               faster (kept original version commented out in the code, in case
24948               original version was faster)
24949         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
24950           alignment != Left
24951         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
24952           call it as well
24953
24954 2005-06-27  Jackson Harper  <jackson@ximian.com>
24955
24956         * TabControl.cs: Move to the left and right with the arrow
24957         keys. These keys don't cycle beyond first and last like
24958         tab. Refresh all the tabs when scrolling them to the left or
24959         right.
24960
24961 2005-06-27  Jackson Harper  <jackson@ximian.com>
24962
24963         * TabControl.cs:
24964           - ToString: Added method
24965           - CreateParams: Remove TODO and comment
24966           - OnKeyDown: Cycle through bounds properly.
24967           - SelectedIndex: Scroll to the right or left if we need to
24968           display the newly selected tab.
24969
24970 2005-06-23  Jackson Harper  <jackson@ximian.com>
24971
24972         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
24973         set.
24974
24975 2005-06-23  Jackson Harper  <jackson@ximian.com>
24976
24977         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
24978         CTRL-SHIFT-TAB, and HOME, END are there any others?
24979
24980 2005-06-23  Jackson Harper  <jackson@ximian.com>
24981
24982         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
24983
24984 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
24985         
24986         * DataGridTextBoxColumn.cs: fixes and enhancements
24987         * ThemeWin32Classic.cs: fixes and enhancements
24988         * DataGridBoolColumn.cs:  fixes and enhancements
24989         * DataGridDrawingLogic.cs:  fixes and enhancements
24990         * CurrencyManager.cs: fixes and enhancements
24991         * DataGrid.cs: fixes and enhancements
24992         * DataGridColumnStyle.cs:  fixes and enhancements
24993
24994 2005-06-22  Jackson Harper  <jackson@ximian.com>
24995
24996         * TabControl.cs: Add some missing methods that just call into the
24997         base. Make the TabPageCollection's IList interface behave in the
24998         same manner as the MS implementation.
24999
25000 2005-06-22  Peter Bartok  <pbartok@novell.com> 
25001
25002         * TextControl.cs: Added sanity check
25003         * TextBoxBase.cs: 
25004           - Fixed wrapping behaviour, don't set wrap on single line controls
25005             (this fixes the breakage of colordialog introduced in an earlier
25006              checkin)
25007           - Added rudimentary support for autoscrolling right-aligned controls
25008             (still needs fixing, also, center alignment scroll is missing)
25009
25010 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
25011         
25012         * ScrollBar.cs: Fixes thumbpos on Maximum values
25013
25014 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
25015         
25016         * PropertyGridView.cs: Pass context information to UITypeEditors 
25017
25018 2005-06-21  Peter Bartok  <pbartok@novell.com> 
25019
25020         * TextBoxBase.cs:
25021           - Now calling PositionCaret with absolute space coordinates
25022           - Enabled vertical scrolling
25023           - Better tracking of scrollbar changes, tied into WidthChange
25024             event
25025           - Improved cursor tracking
25026           - Removed debug output
25027         * TextControl.cs:
25028           - PositionCaret coordinates are now works in absolute space, not 
25029             the canvas
25030           - Improved tracking of document size
25031           - Added events for width and height changes
25032
25033 2005-06-21  Peter Bartok  <pbartok@novell.com>
25034
25035         * Form.cs: Set focus to active control when form is activated
25036         * TextControl.cs: 
25037           - Added word-wrap functionality to RecalculateLine() 
25038           - Added some short function descriptions for VS.Net to aid in
25039             writing dependent controls
25040           - Added Caret property, returning the current coords of the caret
25041           - Added ViewPortWidth and ViewPortHeight properties
25042           - Added Wrap property
25043           - Added CaretMoved event
25044           - Removed some old debug code
25045           - Split() can now create soft splits
25046           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
25047           - Added method to format existing text
25048           - Fixed size/alignment calculations to use viewport
25049           - RecalculateDocument now can handle changing line-numbers while
25050             calculating lines
25051
25052         * TextBox.cs:
25053           - Added some wrap logic, we don't wrap if alignment is not left
25054           - Added casts for scrollbar var, base class switched types to
25055             also support RichTextBoxA
25056           - Implemented handling of scrollbar visibility flags
25057
25058         * TextBoxBase.cs:
25059           - Switched scrollbars type to RichTextBoxScrollBars to support
25060             RichTextBox
25061           - Added tracking of canvas width/height
25062           - Switched scrollbars to be not selectable (to keep focus on text)
25063           - Added central CalculateDocument() method to handle all redraw
25064             requirements
25065           - Added ReadOnly support
25066           - Added WordWrap support
25067           - Fixed handling of Enter key (we now treat it as a DialogKey)
25068           - Fixed caret positioning when h or v scroll is not zero
25069           - Fixed placing/generation of vertical scrollbar
25070           - Added CalculateScrollBars() method to allow updating scrollbar
25071             limits and visibility
25072           - Fixed handling of horizontal scroll
25073           - Added handling of vertical scroll
25074           - Implemented auto-'jump' when caret moves to close to a left or
25075             right border and there is text to be scrolled into view (currently
25076             there's the potential for a stack overflow, until a bug in
25077             scrollbar is fixed)
25078
25079 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
25080         
25081         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
25082
25083 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
25084
25085         * Mime.cs:
25086         - added inodes.
25087         - return application/x-zerosize for files with size zero
25088           (if no extension pattern matches).
25089         - check matches collection for strings too.
25090         - return only the first mime type if the name value
25091           collection has more than one mime type.
25092
25093 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
25094         
25095         * PropertyGrid.cs: Cleaned up some TODOs
25096         * PropertyGridView.cs: Added support for UITypeEditors
25097
25098 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
25099         
25100         * DataGrid.cs: clears cached value
25101
25102 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
25103
25104         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
25105         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
25106         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
25107         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
25108         
25109 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
25110
25111         * ThemeWin32Classic.cs: fixes colour
25112
25113 2005-06-15  Peter Bartok  <pbartok@novell.com>
25114
25115         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
25116         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
25117         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
25118         * Control.cs: Added some MWFCategory and MWFDescription attributes
25119         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
25120
25121 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
25122
25123         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
25124         usage
25125
25126 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
25127
25128         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
25129         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
25130         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
25131         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
25132         * DataGrid.cs: default datagrid settings for Default Styles, fixes
25133         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
25134
25135 2005-06-13  Jackson Harper  <jackson@ximian.com>
25136
25137         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
25138         isn't printed when the user enables dropping. (X11 does accept
25139         drops).
25140         
25141 2005-06-13  Jackson Harper  <jackson@ximian.com>
25142
25143         * TreeView.cs: Remove some TODOS.
25144
25145 2005-06-13  Jackson Harper  <jackson@ximian.com>
25146
25147         * Form.cs: Hook into the mdi framework.
25148         * MdiClient.cs: Use the base control collections add method so
25149         parents get setup correctly. Set the default back colour and dock
25150         style.
25151         * MdiChildContext.cs: New class, this bad actor handles an
25152         instance of an MDI window. Right now there is only basic
25153         support. You can drag, close, and resize windows. Minimize and
25154         Maximize are partially implemented.
25155
25156 2005-06-13  Jackson Harper  <jackson@ximian.com>
25157
25158         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
25159         freaky when both vals are negative. NOTE: There are probably other
25160         places in XplatUIX11 that this needs to be done.
25161
25162 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
25163
25164         * DataGrid.cs: implement missing methods, move KeyboardNavigation
25165         * DataGridColumnStyle.cs: fixes signature
25166
25167 2005-06-12  Jackson Harper  <jackson@ximian.com>
25168
25169         * XplatUIX11.cs: Use sizing cursors similar to the ones on
25170         windows.
25171
25172 2005-06-11  Jackson Harper  <jackson@ximian.com>
25173
25174         * StatusBarPanel.cs: Signature cleanups. Implement
25175         BeginInit/EndInit.
25176
25177 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
25178
25179         * DataGridTextBoxColumn.cs: Honors aligment
25180         * GridColumnStylesCollection.cs: Contains is case unsensitive
25181         * GridTableStylesCollection.cs: several fixes
25182         * DataGridTableStyle.cs: default column creation
25183         * DataGridDrawingLogic.cs: fixes
25184         * CurrencyManager.cs: ListName property
25185         * DataGrid.cs: multiple styles support
25186         * DataGridColumnStyle.cs: fixes
25187         
25188
25189 2005-06-10  Peter Bartok  <pbartok@novell.com>
25190
25191         * Control.cs(Select): Moved SetFocus call to avoid potential
25192           loops if controls change the active control when getting focus
25193         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
25194           the up/down buttons
25195
25196 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
25197
25198         * ImageListConverter.cs: Implemented
25199
25200 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
25201
25202         * MonthCalendar.cs: Wired in NumericUpDown control for year
25203
25204 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
25205
25206         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
25207           DoubleClick events, since they are not meant to be fired.
25208
25209 2005-06-09  Peter Bartok  <pbartok@novell.com>
25210
25211         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
25212           Jonathan's standalone controls into MWF, implemented missing
25213           events, attributes and methods; added xxxAccessible classes
25214         * AccessibleObject.cs: Made fields internal so other classes
25215           can change them if needed
25216
25217 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
25218
25219         * UpDownBase.cs: Complete implementation
25220         * NumericUpDown.cs: Complete implementation
25221         * DomainUpDown.cs: Complete implementation
25222
25223 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
25224
25225         * DataGridTextBoxColumn.cs: drawing fixes
25226         * DataGridCell.cs: fixes ToString method to match MSNet
25227         * DataGridTableStyle.cs: fixes
25228         * DataGridBoolColumn.cs: fixes, drawing
25229         * DataGridDrawingLogic.cs: fixes, new methods
25230         * DataGridTextBox.cs: Keyboard and fixes
25231         * DataGrid.cs:
25232                 - Keyboard navigation
25233                 - Scrolling fixes
25234                 - Row selection (single, multiple, deletion, etc)
25235                 - Lots of fixes
25236         
25237 2005-06-07  Jackson Harper  <jackson@ximian.com>
25238
25239         * ThemeWin32Classic.cs: Clear the background area when drawing
25240         buttons.
25241
25242 2005-06-06  Peter Bartok  <pbartok@novell.com>
25243
25244         * ImageListStreamer.cs: Fixed signature for GetData
25245         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
25246         * ComboBox.cs:
25247           - Added missing ChildAccessibleObject class
25248           - Added missing OnXXXFocus overrides, switched to using those
25249             instead of the event handler
25250         * Control.cs:
25251           - Added Parent property for ControlAccessibleObject
25252           - Fixed signatures
25253           - Fixed attributes
25254           - Added ResetBindings()
25255         * ListBindingConverter.cs: Implemented some methods
25256         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
25257         * ImageList.cs: Implemented basic handle scheme, removed TODOs
25258         * ContainerControl.cs: Fixed signature, now subscribing to the
25259           ControlRemoved event instead of overriding the handler, LAMESPEC
25260         * CurrencyManager.cs: Added missing attribute
25261         * MonthCalendar.cs: Added missing properties
25262
25263 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
25264
25265         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
25266         
25267 2005-06-06  Gaurav Vaish and Ankit Jain
25268
25269         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
25270         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
25271         
25272 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
25273
25274         * Control.cs: fixes CreateParams Width / Height.
25275
25276 2005-06-05  Peter Bartok  <pbartok@novell.com>
25277
25278         * Win32DnD.cs: Removed compilation warnings
25279
25280 2005-06-05  Peter Bartok  <pbartok@novell.com>
25281
25282         * Control.cs (CreateParams): Since we don't know if one of the
25283           properties we use is overridden, lets make sure if we fail accessing
25284           we continue with a backup plan
25285
25286 2005-06-05  Peter Bartok  <pbartok@novell.com>
25287
25288         * Win32DnD.cs:
25289           - Removed debug output
25290           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
25291             struct
25292           - Plugged resource leak
25293         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
25294           MS size
25295
25296 2005-06-05  Peter Bartok  <pbartok@novell.com>
25297
25298         * XplatUIWin32.cs: Removed DnD code
25299         * Win32DnD.cs: Implemented drop source and drop target functionality
25300
25301 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25302
25303         * UpDownBase.cs: remove duplicate addition of event, enable some code
25304         that was commented out.
25305         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
25306         Validate input when a key is pressed. It works fine now for every
25307         combination of Hexadecimal. Only missing some drawing love when sharing
25308         space with other controls.
25309
25310 2005-06-04  Peter Bartok  <pbartok@novell.com>
25311
25312         * Control.cs:
25313           - We need to pass a window for DragDrop, so enable callback events
25314           - Added DnD callback events when being a DragSource
25315         * XplatUI.cs (StartDrag): Added window handle argument
25316         * XplatUIDriver.cs (StartDrag): Added window handle argument
25317         * QueryContinueDragEventArgs: Made fields internally accessible so
25318           drivers can set them
25319         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
25320           can set them
25321
25322 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
25323
25324         * DataGridTextBoxColumn.cs: column text editing
25325         * DataGridTableStyle.cs: Respect columns styles created by the user
25326         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
25327         * DataGridBoolColumn.cs: bool column editing
25328         * DataGrid.cs: fixes to scrolling, properties, etc
25329         * DataGridTextBox.cs: handle keyboard
25330         * DataGridColumnStyle.cs: fixes
25331
25332 2005-06-02  Jackson Harper  <jackson@ximian.com>
25333
25334         * ImageListStreamer.cs: Somewhat broken implementation of
25335         GetObjectData. The RLE needs some work to match MS properly.
25336
25337 2005-06-02  Jackson Harper  <jackson@ximian.com>
25338
25339         * X11Dnd.cs: Attempting to keep at least one file in MWF
25340         monostyled.
25341
25342 2005-06-02  Peter Bartok  <pbartok@novell.com>
25343
25344         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
25345           that way
25346
25347 2005-06-02  Peter Bartok  <pbartok@novell.com>
25348
25349         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
25350         * XplatUI.cs: Added DoDragDrop() method
25351         * XplatUIDriver.cs: Added DoDragDrop() method
25352
25353 2005-06-02  Jackson Harper  <jackson@ximian.com>
25354
25355         * Splitter.cs: Implement BorderStyle.
25356
25357 2005-06-02  Jackson Harper  <jackson@ximian.com>
25358
25359         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
25360         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
25361         X11 using XDND.
25362
25363 2005-06-02  Peter Bartok  <pbartok@novell.com>
25364
25365         * DataObject.cs:
25366           - Added Data setter
25367           - Fixed broken insertion code for SetData, now also
25368             overwrites any existing entry of the same format name
25369         * Hwnd.cs: Added list of pointers that automatically gets
25370           freed when the window is disposed
25371         * XplatUI.cs: Call driver initialization method when loading
25372           a driver
25373         * Control.cs:
25374           - OnDragLeave takes EventArgs, not DragEventArgs
25375           - Added setting of WS_EX_ACCEPTFILES style when dropping is
25376             supported
25377           - Forces style update when drop state changes
25378         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
25379           not perfect since we cannot (yet) call the IDataObject.GetData()
25380           method, we keep getting 0x80004005 error, dunno why)
25381
25382 2005-06-02  Peter Bartok  <pbartok@novell.com>
25383
25384         * DragEventArgs.cs: Make fields internal so we can cache the
25385           object and re-set the fields from XplatUI
25386
25387 2005-06-02  Jackson Harper  <jackson@ximian.com>
25388
25389         * Control.cs: Add some internal methods so the DnD subsystem can
25390         raise DnD events. Also call into the driver when AllowDrop is set.
25391         * XplatUI.cs:
25392         * XplatUIDriver.cs: New method for setting whether or not a window
25393         is allowed to accept drag and drop messages.
25394                 
25395 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
25396         
25397         * ScrollBar.cs: Make sure that values sent in Scroll events
25398         are always between Maximum and Minimum.
25399
25400 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
25401
25402         * Menu.cs: Call MenuChanged when menuitem visibility has been
25403         changed.
25404         * MenuItem.cs: Rebuild menu when item is (not) visible.
25405         * MainMenu.cs: MainMenu has special MenuChanged.
25406         * Theme.cs: Caption and FrameBorderSize are not fixed.
25407         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
25408         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
25409         * XplatUIX11.cs,
25410         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
25411         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
25412
25413 2005-05-30  Jackson Harper  <jackson@ximian.com>
25414
25415         * DataFormat.cs: We can't statically initialize this stuff because
25416         it calls into the xplatui and could create a loop. So we lazy init
25417         it.
25418
25419 2005-05-28  Jackson Harper  <jackson@ximian.com>
25420
25421         * Control.cs: Proper implementation of Product(Name/Version).
25422
25423 2005-05-27  Jackson Harper  <jackson@ximian.com>
25424
25425         * DataObject.cs: Dont crash if no data is found.
25426
25427 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
25428         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
25429                 as per status page, guessing it should be set to true
25430
25431 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
25432
25433         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
25434         * DataGridTableStyle.cs: set proper formatting text, def header text
25435         * ThemeWin32Classic.cs: new themable paramaters
25436         * DataGridBoolColumn.cs: paint check box, get data, fixes
25437         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
25438         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
25439         * DataGridColumnStyle.cs: fixes
25440         * Theme.cs: new themable paramaters
25441                 
25442 2005-05-26  Peter Bartok  <pbartok@novell.com>
25443
25444         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
25445
25446 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25447         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
25448
25449 2005-05-24  Peter Bartok  <pbartok@novell.com>
25450
25451         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
25452           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
25453           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
25454           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
25455           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
25456           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
25457           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
25458           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
25459           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
25460           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
25461           missing attributes, etc
25462         * DataGridPreferredColumnWidthTypeConverter.cs: Added
25463
25464 2005-05-24  Peter Bartok  <pbartok@novell.com>
25465
25466         * Help.cs: Added, implemented trivial functions, throws up MessageBox
25467           when user tries to get help
25468         * DataObject.cs, DataFormats.cs, LinkArea.cs,
25469           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
25470           to suppress warnings
25471         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
25472           avoid unreachable code warning
25473
25474 2005-05-20  Peter Bartok  <pbartok@novell.com>
25475
25476         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
25477
25478 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25479
25480         * DataGridTextBoxColumn.cs: Basic painting methods
25481         * DataGridTableStyle.cs: Set table style in the column
25482         * ThemeWin32Classic.cs: Use Theme for colors
25483         * DataGridDrawingLogic.cs: Implement more drawing
25484         * DataGrid.cs: drawing, theming, enhacements, fixes
25485         * DataGridColumnStyle.cs: fixes, drawing
25486         * Theme.cs: theming for Datagrid
25487
25488 2005-05-20  Peter Bartok  <pbartok@novell.com>
25489
25490         * Cursor.cs: Implemented GetObjectData() method
25491
25492 2005-05-20  Peter Bartok  <pbartok@novell.com>
25493
25494         * Cursors.cs: Added setting of cursor name
25495         * Cursor.cs:
25496           - Implemented constructors
25497           - Implemented Draw and DrawStretched
25498           - Implemented Current property
25499           - Implemented == and != operators
25500           - Implemented Dispose()
25501           - Implemented ToString
25502           - Added missing attributes
25503         * XplatUIX11.cs:
25504           - Added missing reset for OverrideCursor when DoEvents is called
25505           - Fixed creation of cursor, logic was wrong
25506         * XplatUIWin32.cs:
25507           - Added missing reset for OverrideCursor when DoEvents is called
25508           - Fixed creation of cursor, bit arrays were swapped
25509         * Clipboard.cs: Removed obsolete MonoTODO attribute
25510
25511 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25512
25513         * ComboBox.cs: fixes OnSelectedItemChanged
25514         * ControlBindingsCollection.cs: fixes item range check
25515
25516 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25517
25518         * UpDownBase.cs:
25519                 - Calc preferred height properly
25520                 - Implement missing properties
25521                 
25522         * NumericUpDown.cs: Implement missing events
25523
25524 2005-05-19  Jackson Harper  <jackson@ximian.com>
25525
25526         * TabControl.cs: New method that resizes the tab pages before
25527         redrawing them. This as needed as the control is double buffered
25528         and sizing will not be recalculated unless ResizeTabPages is
25529         called.
25530         * TabPage.cs: Set base.Text instead of Text in the constructor so
25531         that UpdateOwner does not get called. Use the new Redraw method of
25532         TabControl instead of Refresh so the sizing is recalculated.
25533         * ThemeWin32Classic.cs: Draw the text for button tabs.
25534
25535 2005-05-19  Jackson Harper  <jackson@ximian.com>
25536
25537         * Control.cs: Paint control background images. Fix typo where
25538         PaintControlBackground was not getting called correctly.
25539
25540 2005-05-19  Peter Bartok  <pbartok@novell.com>
25541
25542         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
25543           I can investigate, apparently I broke FileDialog
25544
25545 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
25546
25547         * AxHost.cs: Some simple properties.
25548         * Control.cs: window must be accessible after ctor.
25549         * Form.cs: Added TransparencyKey property.
25550         * TextBoxBase.cs: Implemented Clear. Text property can be null.
25551         * XplatUIWin32.cs: SetBorderStyle implemented.
25552
25553 2005-05-18  Peter Bartok  <pbartok@novell.com>
25554
25555         * DataObject.cs: Entries are not global but particular to the
25556           DataObject, now it behaves that way
25557         * XplatUIWin32.cs: Implemented Clipboard methods
25558         * Clipboard.cs: Implemented
25559         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
25560         * XplatUIOSX.cs: Updated to final clipboard prototypes
25561         * XplatUIX11.cs: Implemented Clipboard methods
25562         * XplatUIDriver.cs: Updated to final clipboard prototypes
25563         * XplatUIStructs.cs:
25564           - Added BITMAPINFOHEADER struct
25565           - Added ClipboardFormats enum
25566         * X11Structs.cs:
25567           - Added ClipboardStruct
25568           - Added Atom enum items for clipboard types
25569           - Fixed atom types for Selection event structures
25570         * DataFormats.cs:
25571           - Added internal properties and methods for drivers to enumerate
25572             all known formats
25573           - Switched initialization method to allow drivers to assign their
25574             own IDs even for the MS predefined clipboard IDs
25575         * XplatUI.cs: Updated to final clipboard interface
25576
25577 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25578         * PropertyGridView.cs: Fixed compiler warnings.
25579
25580 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25581         * PropertyGrid.cs: Added some event calls
25582         * PropertyGridView.cs: Change drawing code to use double buffering
25583         * PropertyGridTextBox.cs: Changed Text property name
25584         * GridItem.cs: Added Bounds property.
25585         * GridEntry.cs: Added Bounds property.
25586
25587 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
25588
25589         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
25590         since GetType() may not return the correct type if the object is
25591         a remoting proxy.
25592
25593 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
25594
25595         * TreeNodeCollection.cs: fixes get/set item ranges
25596         
25597 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
25598
25599         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
25600                 
25601 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
25602
25603         * ComboBox.cs: Fix item range comparation
25604         * ListView.cs: Fix item range comparation
25605
25606 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
25607
25608         * FontDialog.cs:
25609           - Clear example panel when OnPaint is called
25610           - Better solution for displaying the example panel text
25611           - Select default indexes in the ListBoxes
25612
25613 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
25614
25615         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
25616
25617 2005-05-11  Peter Bartok  <pbartok@novell.com>
25618
25619         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
25620         * SelectionRangeConverter.cs: Implemented
25621         * PropertyGrid.cs: Fixed attribute value
25622         * Control.cs:
25623           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
25624           - Added Sebastien Pouliot's CAS Stack Propagation fixes
25625         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
25626           that's common to all drivers. First methods to go there are
25627           Sebastien Pouliot's CAS Stack Propagation helper methods
25628         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
25629           Sebastien Pouliot for CAS Stack Propagation
25630
25631 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
25632
25633         * OSXStructs.cs:
25634           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
25635
25636 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
25637
25638         * DataGridTextBoxColumn.cs: fixed some members
25639         * GridColumnStylesCollection.cs: indexed column is case insensitive
25640         * DataGridTableStyle.cs: fixes
25641         * ThemeWin32Classic.cs: add new theme parameter
25642         * Theme.cs: add new theme parameter
25643         * DataGridDrawingLogic.cs: Datagrid's drawing logic
25644         * DataGrid.cs: fixes, new internal properties, etc.
25645         * DataGridColumnStyle.cs: allows to set grid value
25646         *
25647
25648 2005-05-10  Peter Bartok  <pbartok@novell.com>
25649
25650         * AccessibleObject.cs:
25651           - Removed MonoTODO attribute on help, method is correct
25652           - Fixed Bounds property
25653         * AxHost.cs: Moved MonoTODO
25654         * ButtonBase.cs: Now setting AccessibleObject properties
25655         * RadioButton.cs: Setting proper AccessibleObject role
25656         * CheckBox.cs: Setting proper AccessibleObject role
25657         * ControlBindingsCollection.cs: Added properties, methods and attributes
25658         * DataFormats.cs: Fixed awkward internal API, and changed to enable
25659           userdefined DataFormats.Format items as well
25660         * ListControl.cs: Removed data_member from the public eye
25661         * OpenFileDialog.cs:
25662           - Made class sealed
25663           - Added missing attributes
25664         * SaveFileDialog.cs: Added missing attributes
25665         * ImageListStreamer.cs: Fixed code that caused warnings
25666         * LinkLabel.cs: Removed unreachable code
25667         * TreeView.cs: Fixed code that caused warnings
25668         * PropertyGridView.cs: Fixed code that caused warnings
25669         * GridColumnStylesCollection.cs: Added missing attributes
25670         * GridTableStylesCollection: Added missing attribute
25671         * PropertyManager: Added .ctor
25672         * SecurityIDType: Added
25673         * DataObject.cs: Implemented class
25674         * LinkArea.cs: Added missing attribute
25675
25676 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
25677
25678         * RadioButton.cs: call base method to allow to fire OnClick event
25679         * UpDownBase.cs: OnMouseUp call base method
25680         * CheckedListBox.cs: call base method before returning
25681         * TrackBar.cs: call base method before returning
25682         
25683
25684 2005-05-10  Peter Bartok  <pbartok@novell.com>
25685
25686         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
25687           for messages
25688
25689 2005-05-10  Peter Bartok  <pbartok@novell.com>
25690
25691         * DataFormats.cs: Implemented
25692         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
25693           XplatUIX11.cs: Added Clipboard APIs
25694         * XplatUIWin32.cs: Implemented Clipboard APIs
25695         * FolderBrowserDialog.cs: Added missing event, attributes
25696
25697 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
25698
25699         * CheckBox.cs: call base method to allow to fire OnClick event
25700
25701 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
25702
25703         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
25704
25705 2005-05-06  Peter Bartok  <pbartok@novell.com>
25706
25707         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
25708         * Screen.cs: Implemented
25709         * HelpNavigator.cs: Added
25710         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
25711           property
25712         * HelpProvider.cs: Implemented all we can do until we have a CHM
25713           help library (which means that "What's This" does work now)
25714
25715 2005-05-06  Jackson Harper  <jackson@ximian.com>
25716
25717         * XplatUIX11.cs: Fix waking up the main loop.
25718                 
25719 2005-05-05  Peter Bartok  <pbartok@novell.com>
25720
25721         * XplatUI.cs: Updated revision
25722         * Form.cs: Removed enless loop
25723         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
25724         * Label.cs (OnPaint): Added call to base.OnPaint()
25725         * ToolTip.cs: Made ToolTipWindow reusable for other controls
25726         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
25727         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
25728         * AxHost.cs: Added
25729         * ButtonBase.cs: Moved base.OnPaint() call to end of method
25730         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
25731           to ToolTip.ToolTipWindow for drawing and size methods; this allows
25732           reuse of ToolTipWindow by other controls
25733         * SizeGrip.cs: Moved base.OnPaint() call to end of method
25734         * XplatUIX11.cs: Now clipping drawing area (experimental)
25735         * PictureBox.cs: Moved base.OnPaint() call to end of method
25736         * Theme.cs: Fixed ToolTip abstracts to match new format
25737         * ErrorProvider.cs: Implemented
25738
25739 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
25740
25741         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
25742         * LinkLabel.cs:
25743                 - Adds cursors
25744                 - Handles focus
25745                 - Implements LinkBehavior
25746                 - Fixes many issues
25747
25748 2005-05-03  Jackson Harper  <jackson@ximian.com>
25749
25750         * ListView.cs: Calculate the scrollbar positioning on resize and
25751         paint, so they get put in the correct place.
25752
25753 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
25754
25755         * ColorDialogs.cs: The small color panels are now handled by
25756           SmallColorControl. This fixes drawing of the focus rectangle
25757           and adds a 3D border.
25758
25759 2005-05-03  Peter Bartok  <pbartok@novell.com>
25760
25761         * Control.cs: Modified version of Jonathan Chamber's fix for
25762           double-buffering
25763
25764 2005-05-03  Jackson Harper  <jackson@ximian.com>
25765
25766         * ListView.cs: Remove redraw variable. Control now handles whether
25767         or not a redraw needs to be done, and will only raise the paint
25768         event if redrawing is needed.
25769
25770 2005-05-03  Jackson Harper  <jackson@ximian.com>
25771
25772         * Splitter.cs: No decorations for the splitter form. Cache the
25773         hatch brush.
25774
25775 2005-05-03  Jackson Harper  <jackson@ximian.com>
25776
25777         * TreeView.cs: Use dashed lines to connect nodes. Use the
25778         ControlPaint method for drawing the focus rect instead of doing
25779         that in treeview.
25780
25781 2005-05-02  Peter Bartok  <pbartok@novell.com>
25782
25783         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
25784
25785 2005-04-29  Jackson Harper  <jackson@ximian.com>
25786
25787         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
25788         entire image buffer. Just clear the clipping rectangle.
25789
25790 2005-04-29  Jackson Harper  <jackson@ximian.com>
25791
25792         * ThemeWin32Classic.cs: Don't draw list view items that are
25793         outside the clipping rectangle.
25794
25795 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
25796
25797         * ListBox.cs: added horizontal item scroll
25798
25799 2005-04-29  Jackson Harper  <jackson@ximian.com>
25800
25801         * ThemeWin32Classic.cs: Remove some old debug code that was
25802         causing flicker with the new double buffering code.
25803
25804 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
25805
25806         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
25807         behave like combobox and comboboxlist (still not sure if this is
25808         correct though).
25809
25810 2005-04-28  Jackson Harper  <jackson@ximian.com>
25811
25812         * ThemeWin32Classic.cs: Don't fill the middle of progress
25813         bars. This fills areas outside of the clip bounds that don't need
25814         to be filled.
25815
25816 2005-04-28  Jackson Harper  <jackson@ximian.com>
25817
25818         * Control.cs: Don't expose functionality to touch the image buffers.
25819         * ProgressBar.cs:
25820         * ListView.cs: We do not need to (and no longer can) manipulate
25821         the image buffers directly. All of this is handled by Control.
25822
25823 2005-04-28  Peter Bartok  <pbartok@novell.com>
25824
25825         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
25826           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
25827           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
25828
25829 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
25830
25831         * Combobox:
25832                 - Adjust control's height for non-simple comboboxes (bug fix)
25833                 - Remove dead code
25834         * MenuAPI.cs: remove unused var
25835         * ScrollBar.cs: remove unsed var
25836                  
25837         * ListBox.cs: unselect items when clearing
25838
25839 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
25840
25841         * ListControl.cs: honors OnPositionChanged and default Selected Item
25842         * ListBox.cs: unselect items when clearing
25843
25844 2005-04-27  Jackson Harper  <jackson@ximian.com>
25845
25846         * X11Keyboard.cs: Initialize a default keyboard and give a warning
25847         if a "correct" keyboard is not found. This will make us not crash,
25848         but might give some users bad keyboard layouts...seems to be the
25849         same thing rewind does.
25850
25851 2005-04-27  Jackson Harper  <jackson@ximian.com>
25852
25853         * BindingManagerBase.cs: Attach the current/position changed
25854         handlers to their respective events.
25855
25856 2005-04-27  Jackson Harper  <jackson@ximian.com>
25857
25858         * Control.cs: Make sure that the first WM_PAINT does a full draw,
25859         not just a blit.
25860         * ThemeWin32Classic.cs: Don't fill the background for picture
25861         boxes. This could overright user drawing.
25862         * ComboBox.cs: Just fill the clipping rect not the entire client
25863         rect when drawing the background. This prevents pieces of the
25864         image buffer from getting overwritten and is theoretically faster.
25865
25866 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
25867
25868         * ComboBox.cs: Databinding support fixes, fire missing events
25869         * ListControl.cs: implement missing methods and properties, fixes
25870         * ThemeWin32Classic.cs: Databiding support on Drawing
25871         * CheckedListBox.cs: Databinding support fixes, fire missing events
25872         * ListBox.cs: Databinding support fixes, fire missing events
25873         
25874 2005-04-25  Peter Bartok  <pbartok@novell.com>
25875
25876         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
25877
25878 2005-04-25  Jackson Harper  <jackson@ximian.com>
25879
25880         * TreeView.cs: Use the horizontal scrollbars height not width when
25881         determining how much of the client area is available.
25882
25883 2005-04-25  Jackson Harper  <jackson@ximian.com>
25884
25885         * Control.cs: Double buffering is handled differently now. As per
25886         the spec, the extra buffer is created in the WM_PAINT message and
25887         passed down to the control's drawing code.
25888         * GroupBox.cs:
25889         * Label.cs:
25890         * CheckBox.cs:
25891         * ProgressBar.cs:
25892         * RadioButton.cs:
25893         * ColorDialog.cs:
25894         * ComboBox.cs:
25895         * PropertyGridView.cs:
25896         * UpDownBase.cs:
25897         * MessageBox.cs:
25898         * MenuAPI.cs:
25899         * ListView.cs:
25900         * ButtonBase.cs:
25901         * SizeGrip.cs:
25902         * ScrollBar.cs:
25903         * ListBox.cs:
25904         * TrackBar.cs:
25905         * ToolBar.cs:
25906         * PictureBox.cs:
25907         * DateTimePicker.cs:
25908         * StatusBar.cs:
25909         * TreeView.cs: Update to new double buffering system.
25910         * MonthCalendar.cs: Uncomment block, as Capture is now
25911         working. Update to new double buffering
25912         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
25913         * PaintEventArgs.cs: New internal method allows us to set the
25914         graphics object. This is used for double buffering.
25915         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
25916         rectangle. The internal paint_area var has been removed from
25917         StatusBar. The clipping rect should be used instead.
25918         * Theme.cs: Give the PictureBox drawing method a clipping rect.
25919         * TabPage.cs: The RefreshTabs method was removed, so just call the
25920         tab controls Refresh method now.
25921         * TabControl.cs: Update to new double buffering. Make sure the
25922         handle is created before sizing the tab pages, otherwise we will
25923         get stuck in a loop.
25924
25925 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
25926
25927         * LinkLabel.cs: Fix typo, bug #74719; patch
25928           from Borja Sanchez Zamorano
25929
25930 2005-04-22  Jackson Harper  <jackson@ximian.com>
25931
25932         * TreeNode.cs: Implement Handle stuff.
25933         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
25934
25935 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
25936
25937         * DataGridTextBoxColumn.cs: call base constructors, fixes
25938         * GridColumnStylesCollection.cs: missing events, methods, and functionality
25939         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
25940         * DataGridTableStyle.cs: implements create default column styles
25941         * DataGridBoolColumn.cs: which types can handle
25942         * DataGrid.cs: missing methods, fixes, new functionality
25943         * DataGridColumnStyle.cs: fixes
25944
25945 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
25946         * FolderBrowserDialog.cs:
25947         - Use a thread to fill the TreeView
25948         - Adjusted some sizes
25949
25950 2005-04-19  Peter Bartok  <pbartok@novell.com>
25951
25952         * LinkLabel.cs: (Re-)create the pieces when setting the Text
25953           property. Fixes #74360.
25954
25955 2005-04-19  Jackson Harper  <jackson@ximian.com>
25956
25957         * XEventQueue.cs: Lock when getting the lockqueue size.
25958         * PictureBox.cs: Call base OnPaint
25959         
25960 2005-04-19  Peter Bartok  <pbartok@novell.com>
25961
25962         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
25963           messages were no longer being processed (this broke BeginInvoke)
25964
25965           
25966 2005-04-18  Jackson Harper  <jackson@ximian.com>
25967
25968         * TreeView.cs: buglet that caused node images to get drawn
25969         regardless of whether or not they were in the clipping rectangle.
25970
25971 2005-04-18  Jackson Harper  <jackson@ximian.com>
25972
25973         * CurrencyManager.cs: There are four rules for GetItemProperties:
25974         - If the type is an array use the element type of the array
25975         - If the type is a typed list, use the type
25976         - If the list contains an Item property that is not an object, use
25977         that property
25978         - use the first element of the list if there are any elements in
25979         the list.
25980         
25981 2005-04-17  Jackson Harper  <jackson@ximian.oom>
25982
25983         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
25984         click. This handles offsets for scrolling properly and reduces
25985         memory. Also fixed GetNode to not offset now that TopNode works
25986         properly.
25987         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
25988         
25989 2005-04-17  Jackson Harper  <jackson@ximian.com>
25990
25991         * CursorConverter.cs: Initial implementation.
25992
25993 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
25994
25995         * ListControl.cs: work towards complex data binding support on ListControl
25996         * CurrencyManager.cs: work towards complex data binding support on ListControl
25997         * ListBox.cs: work towards complex data binding support on ListControl
25998
25999
26000 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
26001
26002         * GridTableStylesCollection.cs: fixes name and constructor
26003         * DataGridTableStyle.cs: fixes
26004         * DataGridBoolColumn.cs: fixes names and constructors
26005         * DataGrid.cs: define methods and properties. Some init implementations
26006         * DataGridCell.cs: define methods and properties. Some init implementations
26007         * GridTablesFactory.cs: Define methods and properties
26008
26009 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
26010
26011         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
26012         graphics port changes.  We still want the coordinates in global screen
26013         coordinates.
26014
26015 2005-04-14  Jackson Harper  <jackson@ximian.com>
26016
26017         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
26018         check plus minus or checkbox clicks unless those features are enabled.
26019
26020 2005-04-14  Jackson Harper  <jackson@ximian.com>
26021
26022         * TreeView.cs: Add methods for setting the top and bottom visible
26023         nodes. TreeNode::EnsureVisible uses these methods.
26024         * TreeNode.cs: Implement EnsureVisible
26025
26026 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
26027
26028         * Form.cs: Pospone menu assignation if the window has not been created yet
26029         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
26030         size and position
26031
26032 2005-04-12  Jackson Harper  <jackson@ximian.com>
26033
26034         * TreeView.cs: Set the TopNode properly when scrolling
26035         occurs. This has the added benifit of reducing the amount of
26036         walking that needs to be done when drawing. Also removed an old
26037         misleading TODO.
26038         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
26039         
26040 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
26041
26042         * Timer.cs: fixes interval setting when the timer is already enabled
26043         
26044 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
26045
26046         * FolderBrowserDialog.cs: First approach
26047
26048 2005-04-09  Peter Bartok  <pbartok@novell.com>
26049
26050         * FolderBrowserDialog: Added
26051
26052 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
26053
26054         * LinkLabel.cs: move drawing code into the theme
26055         * ThemeWin32Classic.cs: drawing code and painting background bugfix
26056         * Theme.cs: define DrawLinkLabel method
26057
26058 2005-04-05  Jackson Harper  <jackson@ximian.com>
26059
26060         * BindingContext.cs: Use weak references so these bad actors don't
26061         stay alive longer then they need to.
26062
26063 2005-04-05  Jackson Harper  <jackson@ximian.com>
26064
26065         * ListControl.cs: Basic implementation of complex databinding.
26066         * ComboBox.cs:
26067         * ListBox.cs: Add calls to ListControl databinding methods.
26068
26069 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
26070
26071         * FileDialog.cs:
26072           - Don't change PopupButtonState to Normal when the
26073             PopupButton gets pressed several times.
26074           - Renamed ButtonPanel to PopupButtonPanel
26075
26076 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
26077
26078         * ColorDialog.cs: Use cached objects instead of creating them
26079         * LinkLabel.cs: Use cached objects instead of creating them
26080         * Splitter.cs: Use cached objects instead of creating them
26081         * FontDialog.cs: Use cached objects instead of creating them
26082         * PropertyGridView.cs: Use cached objects instead of creating them
26083         * MessageBox.cs: Use cached objects instead of creating them
26084         * FileDialog.cs: Use cached objects instead of creating them
26085         * ThemeWin32Classic.cs: Use cached objects instead of creating them
26086         * TreeView.cs: Use cached objects instead of creating them
26087         
26088 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
26089
26090         * Control.cs: use Equals to compare the font since no == op
26091         * ScrollBar.cs: use Equals to compare the font since no == op
26092
26093 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
26094
26095         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
26096
26097 2005-04-01  Jackson Harper  <jackson@ximian.com>
26098
26099         * Binding.cs: Implement IsBinding.
26100         * BindingManagerBase.cs:
26101         * PropertyManager.cs:
26102         * CurrencyManager.cs: Add IsSuspended property.
26103
26104 2005-04-01  Jackson Harper  <jackson@ximian.com>
26105
26106         * Binding.cs: Had some IsAssignableFrom calls backwards.
26107
26108 2005-04-01  Jackson Harper  <jackson@ximian.com>
26109
26110         * Binding.cs: Handle null data members when pulling data.
26111         * PropertyManager.cs: Handle the data member being a property that
26112         does not exist.
26113
26114 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
26115
26116         * DataGridTextBoxColumn.cs: fixes signature
26117         * DataGrid.cs: calls right constructor
26118
26119 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
26120
26121         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
26122         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
26123         * GridTableStylesCollection.cs: implements GridTableStylesCollection
26124         * DataGridTableStyle.cs: implements DataGridTableStyle
26125         * DataGridBoolColumn.cs: implements DataGridBoolColumn
26126         * DataGridTextBox.cs: implements DataGridTextBox
26127         * DataGridColumnStyle.cs: implements DataGridColumnStyle
26128
26129 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
26130
26131         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
26132
26133 2005-03-29  Peter Bartok  <pbartok@novell.com>
26134
26135         * Application.cs:
26136           - Properly implemented CompanyName property
26137           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
26138             returns a path that includes CompanyName, ProductName and
26139             Version (fixes bug #70330)
26140
26141 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
26142
26143         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
26144           fixes bug #72588.
26145
26146 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
26147
26148         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
26149         
26150           - Added ReadOnly CheckBox
26151           - Further refactoring: moved some code from Open-/SaveFileDialog
26152             to FileDialog
26153
26154 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
26155
26156         * OpenFileDialog.cs: Fixed CheckFileExists
26157         * FileDialog.cs:
26158           Moved FileView and DirComboBox outside FileDialog class.
26159           They can now be used outside FileDialog
26160
26161 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
26162
26163         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
26164         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
26165
26166 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
26167
26168         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26169           - Added missing CreatePrompt property in SaveDialog
26170           - Overall SaveDialog handling should be better now
26171           - Added non standard ShowHiddenFiles property
26172           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
26173           - Added InitialDirectory and RestoreDirectory support
26174
26175 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
26176
26177         * FileDialog.cs: Made dirComboBox usable
26178
26179 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
26180
26181         * FileDialog.cs: Added Filter support (case sensitiv)
26182
26183 2005-03-24  Jackson Harper  <jackson@ximian.com>
26184
26185         * TabControl.cs: Need a couple more pixels for the lines.
26186
26187 2005-03-23  Jackson Harper  <jackson@ximian.com>
26188
26189         * TabControl.cs: Give the tab page focus when it is selected.
26190
26191 2005-03-23  Jackson Harper  <jackson@ximian.com>
26192
26193         * TabControl.cs: Account for the drawing of tabs borders when
26194         invalidating. If the slider was clicked dont do click detection on
26195         the tabs.
26196
26197 2005-03-23  Jackson Harper  <jackson@ximian.com>
26198
26199         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
26200
26201 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
26202
26203         * CategoryGridEntry.cs: Added
26204         * GridItem.cs: Added helper properties
26205         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
26206         * GridEntry.cs: Updated code for collection
26207         * PropertyGrid.cs: Cleaned up some formatting
26208         * PropertyGridView.cs: Added drop down functionality for enums.
26209         * GridItemCollection.cs: Added enumerator logic
26210         * PropertyGridEntry.cs: Added
26211
26212 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
26213
26214         * FileDialog.cs:
26215           - Removed unnecessary commented code
26216           - Fixed handling for entering the filename manually in the combobox
26217
26218 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
26219
26220         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
26221
26222 2005-03-18  Peter Bartok  <pbartok@novell.com>
26223
26224         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
26225           them being touching the border
26226
26227 2005-03-18  Peter Bartok  <pbartok@novell.com>
26228
26229         * TextControl.cs: Quick hack to center text better
26230
26231 2005-03-18  Peter Bartok  <pbartok@novell.com>
26232
26233         * ControlPaint.cs:
26234           - Don't throw NotImplemented exceptions, just print a notice once
26235             instead (requested by Miguel). This makes running existing SWF
26236             apps a bit easier
26237         * Control.cs:
26238           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
26239           - Added context menu trigger on right click
26240         * Panel.cs: Trigger invalidate on resize
26241         * StatusBar.cs:
26242           - Removed old double-buffer drawing
26243           - Added ResizeRedraw style to force proper update of statusbar
26244         * ListView.cs:
26245           - Removed debug output
26246         * ThemeWin32Classic.cs:
26247           - Fixed drawing of status bar, now draws Text property if there
26248             are no defined panels
26249
26250 2005-03-18  Jackson Harper  <jackson@ximian.com>
26251
26252         * ImageList.cs: When the image stream is set pull all the images
26253         from it.
26254         * ImageListStreamer.cs: Implement reading image list streams.
26255
26256 2005-03-18  Peter Bartok  <pbartok@novell.com>
26257
26258         * ThemeWin32Classic.cs (DrawPictureBox):
26259           - Fixed calculations for centered drawing
26260           - Fixed drawing for normal mode, not scaling the image on normal
26261
26262 2005-03-18  Peter Bartok  <pbartok@novell.com>
26263
26264         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
26265           textbox
26266         * FileDialog.cs:
26267           - Made Open/Save button the accept button for FileDialog
26268           - Tied the cancel button to the IButtonControl cancel button
26269           - Save/Open now properly builds the pathname
26270           - Now handles user-entered text
26271           - Preventing crash on right-click if no item is selected
26272           - Fixed Text property, now uses contents of textbox
26273           - Fixed SelectedText property, now just returns the text part that
26274             is selected in the text box
26275
26276 2005-03-18  Jackson Harper  <jackson@ximian.com>
26277
26278         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
26279         rect, make sure to de-adjust the interior rect after drawing the
26280         tab text.
26281
26282 2005-03-18  Peter Bartok  <pbartok@novell.com>
26283
26284         * MenuAPI.cs: Remove menu *before* executing selected action to
26285           prevent the menu from 'hanging around'
26286           
26287 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
26288
26289         * XplatUIOSX.cs: Implemented WorkingArea property
26290
26291 2005-03-17  Peter Bartok  <pbartok@novell.com>
26292
26293         * XplatUIX11.cs: Fixed menu coord calculations
26294         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
26295           for calculating offsets
26296
26297 2005-03-17  Peter Bartok  <pbartok@novell.com>
26298
26299         * Hwnd.cs: Do not consider menu presence for default client
26300           rectangle location/size
26301         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26302           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
26303           translation functions
26304         * FileDialog.cs: Fixed (what I presume is a) typo
26305
26306 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
26307
26308         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
26309           X access (avoids X-Async errors)
26310
26311 2005-03-16  Jackson Harper  <jackson@ximian.com>
26312
26313         * TabControl.cs: Raise the SelectedIndexChanged event.
26314
26315 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
26316
26317         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26318           - Removed vertical ToolBar and replaced it with a custom panel
26319             (desktop and home button already work)
26320           - Added Help button (some controls get resized or relocated then)
26321           - Draw correct text depending on Open or Save.
26322           - Fixed some typos...
26323
26324 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
26325
26326         * ScrollBar.cs:
26327           - Only change Maximum and Minimum when need it (bug fix)
26328
26329 2005-03-15  Peter Bartok  <pbartok@novell.com>
26330
26331         * Form.cs: Use Handle for icon, to trigger creation if
26332           the window does not yet exist
26333         * Control.cs:
26334           - CanSelect: Slight performance improvement
26335           - Focus(): Preventing possible recursion
26336           - Invalidate(): Removed ControlStyle based clear flag setting
26337           - WM_PAINT: fixed logic for calling OnPaintBackground
26338           - WM_ERASEBKGND: Fixed logic, added call to new driver method
26339             EraseWindowBackground if the control doesn't paint background
26340         * XplatUIWin32.cs:
26341           - Moved EraseWindowBackground() method to internal methods
26342           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
26343             is sent via SendMessage on BeginPaint call on Win32
26344         * XplatUIX11.cs:
26345           - Added EraseWindowBackground() method
26346           - No longer sends WM_ERASEBKGND on .Expose, but on call to
26347             PaintEventStart, which more closely matches Win32 behaviour
26348           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
26349           - Fixed SetFocus() to properly deal with client and whole windows
26350         * Hwnd.cs: Added ErasePending property
26351         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
26352         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
26353
26354 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
26355
26356         * XplatUIOSX.cs:
26357           - Fix hard loop when timers exist.
26358           - Fix bugs with middle and right click for 3 button mice.
26359
26360 2005-03-11  Peter Bartok  <pbartok@novell.com>
26361
26362         * XplatUIX11.cs:
26363           - get_WorkingArea: Need to call X directly, GetWindowPos only
26364             returns cached data now
26365           - Added sanity check to GetWindowPos hwnd usage
26366
26367 2005-03-11  Jackson Harper  <jackson@ximian.com>
26368
26369         * BindingManagerBase.cs: This method isn't used anymore as
26370         PullData now updates the data in the control.
26371
26372 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
26373
26374         * Form.cs: fixes menu drawing on X11
26375         * MenuAPI.cs:  fixes menu drawing on X11
26376
26377 2005-03-11  Peter Bartok  <pbartok@novell.com>
26378
26379         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
26380           from Jonathan Gilbert; should fix bug #73606
26381         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
26382           in Screen coordinates. Thanks, Jordi.
26383         * Form.cs: Added missing attribute
26384
26385 2005-03-11  Peter Bartok  <pbartok@novell.com>
26386
26387         * Form.cs:
26388           - Rudimentary Mdi support
26389           - Removed outdated FormParent code
26390           - Implemented lots of missing properties and methods, still missing
26391             transparency support
26392           - Added missing attributes
26393           - Implemented support for MaximumBounds
26394           - Added firing of various events
26395         * XplatUI.cs: Added SetIcon() method
26396         * XplatUIDriver.cs: Added SetIcon() abstract
26397         * XplatUIOSX.cs: Stubbed out SetIcon() method
26398         * XplatUIX11.cs:
26399           - Implemented SetIcon() support
26400           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
26401           - Switched to unix line endings
26402         * XplatUIWin32.cs:
26403           - Made POINT internal so for can access it as part of MINMAX
26404           - Implemented SetIcon() support
26405           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
26406             native Mdi support again, might have to go managed)
26407         * Control.cs: Now fires the StyleChanged event
26408         * MdiClient.cs: Added; still mostly empty
26409
26410 2005-03-10  Peter Bartok  <pbartok@novell.com>
26411
26412         * SaveFileDialog.cs: Added emtpy file
26413
26414 2005-03-08  Peter Bartok  <pbartok@novell.com>
26415
26416         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
26417           in turn triggers OnCreateContro) when creating a handle for the
26418           first time.
26419         * TextControl.cs: Fixed endless loop in certain cases when
26420           replacing the current selection
26421
26422 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
26423
26424         * ScrollBar.cs:
26425           - Honors NewValue changes in Scroll events allowing apps to change it
26426           - Adds First and Last Scroll events
26427           - Fixes Thumb events
26428
26429 2005-03-07  Peter Bartok  <pbartok@novell.com>
26430
26431         * Hwnd.cs: Added DefaultClientRectangle property
26432         * XplatUI.cs: Now using the X11 driver Where() method, which provides
26433           more detailed debug information
26434         * XplatUIX11.cs:
26435           - Fixed size-change feedback loop, where we would pull an old size
26436             off the queue and mistakenly change our window's size to an
26437             earlier value
26438           - Now compressing ConfigureNotify events, to reduce looping and
26439             redraw issues
26440         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
26441           is called
26442
26443 2005-03-07  Jackson Harper  <jackson@ximian.com>
26444
26445         * Binding.cs: Push data pushes from data -> property. Check if the
26446         property is readonly when attempting to set it.
26447
26448 2005-03-07  Jackson Harper  <jackson@ximian.com>
26449
26450         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
26451         instead of IsSubclassOf. Pulling data now sets the value on the
26452         control.
26453         * PropertyManager.cs:
26454         * CurrencyManager.cs: Just need to pull data when updating now,
26455         because PullData will set the value on the control.
26456
26457 2005-03-04  Jackson Harper  <jackson@ximian.com>
26458
26459         * Binding.cs: Implement data type parsing and converting on pulled
26460         data. TODO: Are there more ways the data can be converted?
26461
26462 2005-03-04  Jackson Harper  <jackson@ximian.com>
26463
26464         * Binding.cs: Support <Property>IsNull checks. Also bind to the
26465         controls Validating method so we can repull the data when the
26466         control loses focus.
26467
26468 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
26469
26470         * ColumnHeader.cs:
26471           - Fixes null string format
26472           
26473         * ListView.cs:
26474           - Adds enum type checks
26475           - Fixes redrawing and recalc need after changing some properties
26476           - Fixes on focus_item set after the event
26477           - Fixes adding columns after the control has been created
26478           
26479         * ThemeWin32Classic.cs:
26480           - Fixes CheckBox focus rectangle
26481           - Fixes ColumnHeader drawing
26482
26483
26484 2005-03-03  Jackson Harper  <jackson@ximian.com>
26485
26486         * Binding.cs: Bind to <Property>Changed events so we can detect
26487         when properties are changed and update the data.
26488
26489 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
26490
26491         * ImageList.cs:
26492           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
26493           - Fixes ImageList constructor with ImageList container
26494           - Fixes image scaling (wrong parameters at DrawImage)
26495
26496 2005-02-02  Jackson Harper  <jackson@ximian.com>
26497
26498         * Binding.cs: Make property searches case-insensitive. Eliminate
26499         some duplicated code.
26500
26501 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
26502
26503         * ComboBox.cs:
26504                 - Handle focus event
26505                 - Fix scrollbar events
26506                 - Discard highlighted item if remove it
26507                 - Fixes SelectedItem with strings
26508
26509 2005-03-01  Peter Bartok  <pbartok@novell.com>
26510
26511         * Control.cs:
26512           - Fixed Visible property, now follows (once again) parent chain
26513             to return false if any control in the chain is visible=false
26514           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
26515           - Fixed several places where is_visible instead of Visible was used
26516           - Implemented FIXME related to focus selection when setting focused
26517             control to be invisible
26518
26519         * XplatUIWin32.cs: Now using proper method to find out if window is
26520           visible. Thanks to Jordi for pointing it out
26521
26522 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
26523
26524         * ComboBox.cs: show/hide scrollbar instead of creating it
26525
26526 2005-02-27  Jackson Harper  <jackson@ximian.com>
26527
26528         * CurrencyManager.cs: Add PositionChanged stuff.
26529
26530 2005-02-27  Peter Bartok  <pbartok@novell.com>
26531
26532         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
26533         * XplatUIOSX.cs: Added GetMenuOrigin() stub
26534         * XplatUIWin32.cs: Implemented GetMenuOrigin()
26535         * XplatUIX11.cs:
26536           - Implemented GetMenuDC()
26537           - Implemented GetMenuOrigin()
26538           - Implemented ReleaseMenuDC()
26539           - Implemented generation of WM_NCPAINT message
26540           - Implemented generation and handling of WM_NCCALCSIZE message
26541         * Form.cs: Added debug helper message for Jordi's menu work
26542         * Hwnd.cs:
26543           - Modified ClientRect property; added setter, fixed getter to handle
26544             setting of ClientRect
26545           - Added MenuOrigin property
26546
26547 2005-02-26  Peter Bartok  <pbartok@novell.com>
26548
26549         * XplatUIX11.cs:
26550           - Destroys the caret if a window that's being destroyed contains it
26551           - Ignores expose events coming from the X11 queue for windows that
26552             already are destroyed
26553           - Now uses the proper variable for handling DestroyNotify, before we
26554             marked the wrong window as destroyed
26555           - Improved/added some debug output
26556
26557 2005-02-26  Peter Bartok  <pbartok@novell.com>
26558
26559         * X11Keyboard.cs: Fixes to work on 64bit systems
26560
26561 2005-02-26  Peter Bartok  <pbartok@novell.com>
26562
26563         * Control.cs:
26564           - Now calling OnHandleDestroyed from DestroyHandle()
26565             instead of Dispose()
26566           - Removed bogus call to controls.Remove() from DestroyHandle()
26567
26568 2005-02-26  Peter Bartok  <pbartok@novell.com>
26569
26570         * Control.cs: Properly destroy child windows when our handle is
26571           destroyed
26572
26573 2005-02-25  Peter Bartok  <pbartok@novell.com>
26574
26575         * XplatUI.cs:
26576           - Added 'DriverDebug' define to allow tracing XplatUI API calls
26577           - Alphabetized Static Methods and Subclasses
26578
26579         * XplatUIX11.cs:
26580           - Added XException class to allow custom handling of X11 exceptions
26581           - Created custom X11 error handler, tied into XException class
26582           - Added support for MONO_XEXCEPTIONS env var to allow the user
26583             to either throw an exception on X errors or continue running
26584             after displaying the error
26585           - Added handling of DestroyNotify message
26586           - Added handler for CreateNotify message (still disabled)
26587           - Improved (tried to at least) Where method to provide file and lineno
26588         * X11Structs.cs:
26589           - Added XErrorHandler delegate
26590           - Added XRequest enumeration (to suppor translation of errors)
26591
26592 2005-02-25  Jackson Harper  <jackson@ximian.com>
26593
26594         * PropertyManager.cs: Implement editing features
26595         * CurrencyManager.cs:
26596         * Binding.cs: First attempt at UpdateIsBinding
26597         * BindingManagerBase.cs: Call UpdateIsBinding before
26598         pushing/pulling data.
26599
26600 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
26601
26602         * MenuAPI.cs: Respect disabled items
26603         * ThemeWin32Classic.cs
26604                 - Caches ImageAttributes creation for DrawImageDisabled
26605                 - Fixes vertical menu line drawing
26606                 - Draws disabled arrows in disable menu items
26607
26608 2005-02-24  Peter Bartok  <pbartok@novell.com>
26609
26610         * Hwnd.cs:
26611           - Added UserData property to allow associating arbitrary objects
26612             with the handle
26613           - Fixed leak; now removing Hwnd references from static windows array
26614         * XplatUIWin32.cs:
26615           - Fixed Graphics leak in PaintEventEnd
26616           - Removed usage of HandleData, switched over to Hwnd class
26617         * HandleData.cs: Removed, obsoleted by Hwnd.cs
26618
26619 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
26620
26621         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
26622         * ScrollBar.cs: Fixes bug
26623         * TrackBar.cs: removes death code, clipping, mimize refreshes,
26624          keyboard navigation enhancements
26625
26626 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
26627
26628         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
26629         * GroupBox.cs: Add control styles
26630         * Label.cs: Add control styles
26631         * UpDownBase.cs: Add control styles
26632         * ListBox.cs: Add control styles
26633         * XplatUIWin32.cs: Fixes wrong parameter order
26634
26635
26636 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
26637
26638         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
26639
26640 2005-02-23  Jackson Harper  <jackson@ximian.com>
26641
26642         * PropertyManager.cs: Implement property binding. This doesn't
26643         seem to work yet though as (I think) there are some bugs in
26644         System.ComponentModel.PropertyDescriptor.
26645         * BindingContext.cs: Use new PropertyManager constructor.
26646
26647 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
26648
26649         * ProgressBar.cs: use clip region in ProgressBar
26650         * ThemeWin32Classic.cs: use clip region in ProgressBar
26651
26652 2004-02-22  Jackson Harper  <jackson@ximian.com>
26653
26654         * BindingsCollection.cs: Remove some debug code.
26655
26656 2005-02-22  Jackson Harper  <jackson@ximian.com>
26657
26658         * BindingContext.cs:
26659         * ControlBindingsCollection.cs:
26660         * CurrencyManager.cs:
26661         * Binding.cs:
26662         * BindingManagerBase.cs: Initial implementation
26663         * BindingsCollection.cs: Add an internal contains method that the
26664         BindingManagerBase uses to ensure bindings aren't added twice to
26665         the collection.
26666         * PropertyManager.cs: Stubbed out.
26667         * Control.cs:
26668         * ContainerControl.cs: Hook up databinding
26669         
26670 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
26671
26672         * XplatUIOSX.cs:
26673           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
26674           Fixed Invalidate/Update chain.
26675           Fixed tons of other minor bugs (this is almost a complete rewrite).
26676
26677 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
26678
26679         * ComboBox.cs: do subcontrol creation when the control is created
26680
26681 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26682
26683         * Label.cs: fixes image drawing (image and imagelist)
26684         * ThemeWin32Classic.cs: cache brushes
26685         
26686 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26687
26688         * Form.cs: Move menu drawing code to Theme class
26689         * ComboBox.cs: Move ComboBox drawing code to Theme class
26690         * MenuItem.cs: Move menu drawing code to Theme class
26691         * MenuAPI.cs: Move menu drawing code to Theme class
26692         * ThemeWin32Classic.cs: New methods
26693         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
26694         * ListBox.cs: Move Listbox drawing code to Theme class
26695         * Theme.cs: New methods
26696
26697 2005-02-20  Peter Bartok  <pbartok@novell.com>
26698
26699         * Control.cs:
26700           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
26701             only process mnemonics on those)
26702           - Fixed event sequence for key handling; first calling
26703             ProcessKeyEventArgs now
26704         * TextBoxBase.cs:
26705           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
26706             for processing non-character keys
26707           - Fixed WM_CHAR to generate proper event sequence before processing
26708         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
26709           generation
26710
26711 2005-02-19  Peter Bartok  <pbartok@novell.com>
26712
26713         * UserControl.cs: Added TextChanged event; added attributes
26714         * SizeGrip.cs: Implemented resizing and optional display of grip
26715         * Form.cs: Fixed attribute
26716         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26717           Changed meaning of ScrollWindow bool argument; instead of the
26718           clear attribute (which will be true usually anyway), it gives the
26719           option of moving child controls as well.
26720         * XplatUIX11.cs:
26721           - Changed to match new ScrollWindow argument
26722           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
26723             now handles the implicit parent window a WM puts around us
26724         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
26725           to work)
26726         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
26727         * TreeView.cs: Adjusted to new ScrollWindow arguments
26728
26729 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26730
26731         * Form.cs: Menu integration with non-client area
26732         * MenuItem.cs: Menu integration with non-client area
26733         * MenuAPI.cs: Menu integration with non-client area
26734
26735 2005-02-18  Peter Bartok  <pbartok@novell.com>
26736
26737         * MethodInvoker.cs: Added
26738         * MdiLayout.cs: Added
26739         * SendKeys.cs: Started implementation
26740         * ErrorIconAlignment.cs: Added
26741
26742 2005-02-18  Peter Bartok  <pbartok@novell.com>
26743
26744         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
26745         * Form.cs: Added handling for Menu-related Non-client messages
26746
26747 2005-02-17  Peter Bartok  <pbartok@novell.com>
26748
26749         * UpDownBase.cs: Fixed typo, compilation errors
26750         * DomainUpDown.cs: Fixed attribute value
26751
26752 2005-02-16  Miguel de Icaza  <miguel@novell.com>
26753
26754         * UpDownBase.cs: Attach entry events.
26755         Propagate events.
26756         Add ForeColor property, Focused, InterceptArrowKeys (interception
26757         does not work yet).
26758
26759 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
26760
26761         * Form.cs:
26762                 - Redraw non client are on Setmenu
26763                 - Calc proper menu starting point
26764
26765 2005-02-17  Peter Bartok  <pbartok@novell.com>
26766
26767         * Application.cs: Fixed message_filter check
26768
26769 2005-02-17  Peter Bartok  <pbartok@novell.com>
26770
26771         * Application.cs: Now calls registered message filters
26772         * DockStyle.cs: Fixed attribute
26773         * Form.cs: Fixed attribute
26774         * Menu.cs: Fixed attribute
26775         * ToolTip.cs: Fixed attribute
26776         * TreeNode.cs: Added missing attributes and arranged in regions
26777         * PropertyGrid.cs: Fixed signatures
26778         * TreeNodeCollection.cs: Added attributes
26779         * Splitter.cs: Added missing attributes; arranged into regions
26780         * TabPage.cs: Added missing attributes; arranged into regions
26781         * TextBoxBase.cs: Added missing attributes
26782         * TextBox.cs: Added missing attributes
26783         * ArrangeDirection.cs: Added missing attributes
26784         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
26785         * ToolBarButton.cs: Fixed attributes
26786         * AnchorStyles.cs: Fixed attribute
26787         * TrackBar.cs: Fixed attributes
26788         * TabControl.cs: Added missing attributes and arranged into regions
26789         * ToolBar.cs: Fixed attribute
26790         * StatusBar.cs: Fixed signature, organized into regions and added
26791           attributes
26792         * StatusBarPanel.cs: Fixed attributes
26793         * ContentsResizedEventArgs.cs: Implemented
26794         * ContentsResizedEventHandler.cs: Implemented
26795         * DateBoldEventArgs.cs: Implemented
26796         * DateBoldEventHandler.cs: Implemented
26797         * UpDownEventArgs.cs: Implemented
26798         * UpDownEventHandler.cs: Implemented
26799         
26800 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
26801
26802         * Form.cs: first Menu NC refactoring
26803         * MenuAPI.cs: first Menu NC refactoring
26804         
26805 2005-02-16  Peter Bartok  <pbartok@novell.com>
26806
26807         * ImeMode.cs: Added missing attributes
26808         * Menu.cs: Fixed attribute
26809         * GroupBox.cs: Fixed attribute
26810         * Label.cs: Fixed attribute
26811         * ColorDialog.cs (RunDialog): Removed TODO attribute
26812         * ComboBox.cs: Fixed attributes
26813         * ListControl.cs: Added missing attributes
26814         * PropertyGrid.cs: Fixed attributes
26815         * Control.cs: Fixed attributes
26816         * ListViewItem.cs: Added TypeConverter attribute
26817         * NotifyIcon.cs: Fixed attributes
26818         * ListView.cs: Fixed attributes
26819         * ButtonBase.cs: Fixed attribute
26820         * ImageList.cs: Added missing attributes
26821         * ContainerControl.cs: Fixed signature
26822         * CheckedListBox.cs: Fixed attribute; added missing attributes
26823         * Panel.cs: Fixed attributes
26824         * PropertyTabChangedEventArgs.cs: Added missing attribute
26825         * PropertyValueChangedEventArgs.cs: Added missing attribute
26826         * Binding.cs: Fixed attribute
26827         * ListViewItemConverter: Implemented ListViewSubItemConverter class
26828         * ListBox.cs: Fixed attribute; added missing attributes;
26829         * ScrollableControl.cs: Added missing attributes
26830         * PictureBox.cs: Added missing attributes; implemented missing property
26831         * DateTimePicker.cs: Added missing attributes
26832         * Theme.cs (ToolWindowCaptionHeight): Fixed type
26833         * MonthCalendar.cs: Fixed attributes
26834         * StatusBarPanel.cs: Added missing attributes
26835         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
26836
26837 2005-02-16  Peter Bartok  <pbartok@novell.com>
26838
26839         * TextBoxBase.cs: The previous method to enforce height yet remember
26840           the requested high was less than ideal, this is an attempt to do
26841           it better.
26842         * Control.cs: Added comment about possible problem
26843         * Copyright: Updated format
26844         * GridItemType.cs: Fixed swapped values
26845
26846 2005-02-15  Jackson Harper  <jackson@ximian.com>
26847
26848         * BaseCollection.cs: Use property so we never access an
26849         uninitialized list. Also initialize the list in the property.
26850
26851 2005-02-15  Peter Bartok  <pbartok@novell.com>
26852
26853         * GroupBox.cs (ProcessMnemonic): Implemented
26854         * Label.cs (ProcessMnemonic): Implemented
26855         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
26856           hotkeys
26857
26858 2005-02-15  Peter Bartok  <pbartok@novell.com>
26859
26860         * RadioButton.cs (ProcessMnemonic): Implemented
26861         * CheckBox.cs (ProcessMnemonic): Implemented
26862         * Control.cs:
26863           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
26864             handling
26865           - Added internal method to allow calling ProcessMnemonic from other
26866             controls
26867         * ContainerControl.cs:
26868           - Started support for handling validation chain handling
26869           - Implemented ProcessMnemonic support
26870           - Added Select() call to Active, to make sure the active control
26871             receives focus
26872         * Form.cs: Setting toplevel flag for Forms (this was lost in the
26873           FormParent rewrite)
26874         * ThemeWin32Classic.cs:
26875           - DrawCheckBox(): Fixed stringformat to show hotkeys
26876           - DrawRadioButton(): Fixed stringformat to show hotkeys
26877         * CommonDialog.cs: Removed WndProc override, not needed
26878
26879 2005-02-14  Peter Bartok  <pbartok@novell.com>
26880
26881         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
26882           missed those in the rewrite
26883
26884 2005-02-14  Miguel de Icaza  <miguel@novell.com>
26885
26886         * NumericUpDown.cs (Increment, ToString): Add.
26887         (DecimalPlaces): implement.
26888         
26889         Add attributes.
26890         
26891         * UpDownBase.cs: Add the designer attributes.
26892
26893 2005-02-13  Peter Bartok  <pbartok@novell.com>
26894
26895         * Panel.cs: Removed border_style, now in Control
26896         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
26897           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
26898
26899 2005-02-13  Peter Bartok  <pbartok@novell.com>
26900
26901         * MouseButtons.cs: Added missing attributes
26902         * XplatUIStructs.cs: Added enumeration for title styles
26903         * LeftRightAlignment.cs: Added missing attributes
26904         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
26905           it compatible with Graphics.FromHwnd()
26906         * SelectedGridItemChangedEventArgs.cs: Fixed property type
26907         * Keys.cs: Added missing attributes
26908         * SelectionRange.cs: Added missing attributes
26909         * SelectionRangeConverter.cs: Added
26910         * XplatUI.cs:
26911           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
26912             ReleaseMenuDC methods
26913           - Renamed ReleaseWindow to UngrabWindow
26914           - Added proper startup notice to allow version identification
26915         * Form.cs:
26916           - Added missing attributes
26917           - Removed FormParent concept
26918         * Label.cs: Removed border_style field, now in Control
26919         * RadioButton.cs: Now properly selects RadioButton when focus is
26920           received
26921         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
26922         * Control.cs:
26923           - Added missing attributes
26924           - Added borderstyle handling
26925           - Removed FormParent concept support
26926           - Fixed calls to XplatUI to match changed APIs
26927           - Fixed bug that would case us to use disposed Graphics objects
26928           - Removed unneeded internal methods
26929           - PerformLayout(): Fixed to handle DockStyle.Fill properly
26930           - SelectNextControl(): Fixed to properly check common parents
26931         * TextBoxBase.cs: Removed border_style field (now in Control)
26932         * MessageBox.cs:
26933           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
26934             fixed calculations for form size
26935           - Added support for localized strings and icons
26936           - Improved form size calculations, added border
26937         * ListView.cs: Removed border_style field (now in Control)
26938         * X11Structs.cs: Moved several structs from X11 driver here
26939         * X11Keyboard.cs: Changed debug message
26940         * Application.cs: Removed FormParent concept support
26941         * CommonDialog.cs:
26942           - Resetting end_modal flag
26943           - Removed FormParent concept support
26944         * NativeWindow.cs: Removed FormParent concept support
26945         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
26946           Client area and Non-Client whole window to allow support for WM_NC
26947           messages
26948         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
26949           prevent using it until it supports Hwnd as per Geoff Norton's request
26950         * ToolBar.cs: Fixed drawing, was not doing proper drawing
26951         * PictureBox.cs: Removed border_style field, now in Control
26952         * XplatUIWin32.cs: Added new driver methods
26953
26954 2005-02-12  Peter Bartok  <pbartok@novell.com>
26955
26956         * OpacityConverter.cs: Implemented
26957         * Hwnd.cs: Internal class to support drivers that need to emulate
26958           client area/non-client area window behaviour
26959
26960 2005-02-11  Peter Bartok  <pbartok@novell.com>
26961
26962         * KeysConverter.cs: Implemented
26963
26964 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
26965
26966         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
26967         * LinkLabel: Added missing attributes
26968         * MainMenu.cs: fixes ToString
26969         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
26970         * ListBox.cs: fixes event position
26971         * TrackBar.cs: adds missing attributes and events
26972         
26973 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
26974
26975         * MenuItem.cs: Use SystemInformation and bug fixes
26976         * MenuAPI.cs: Use SystemInformation and bug fixes
26977
26978 2005-02-09  Jackson Harper  <jackson@ximian.com>
26979
26980         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
26981         their keystate otherwise things like VK_MENU get stuck "on".
26982
26983 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
26984
26985         * ListBox.cs: Fixes AddRange bug
26986         
26987 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
26988
26989         * ProgressBar.cs
26990                 - Add missing attributes
26991                 - Add missing method
26992                 
26993         * CheckedListBox.cs: Added missing attributes
26994                 - Add missing attributes
26995                 - Remove extra method
26996         
26997         * ComboBox.cs: Added missing attributes
26998         * VScrollBar.cs: Added missing attributes
26999         * ScrollBar.cs:  Added missing attributes
27000         * ListBox.cs: Fixes signature, add missing consts
27001         * LinkArea.cs:   Added missing attributes
27002         
27003
27004 2005-02-08  Peter Bartok  <pbartok@novell.com>
27005
27006         * Menu.cs: Added missing attributes
27007         * MainMenu.cs: Added missing attributes
27008         * GroupBox.cs: Added missing attributes
27009         * Label.cs: Added missing attributes
27010         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
27011         * ColorDialog.cs:
27012           - Added Instance and Options properties
27013           - Added missing attributes
27014         * Cursor.cs: Made Serializable
27015         * NotifyIcon: Added missing attributes
27016         * MenuItem.cs: Added missing attributes
27017         * TextBoxBase.cs: Implemented AppendText() and Select() methods
27018         * Panel.cs: Added Missing attributes
27019         * MonthCalendar.cs: Fixed CreateParams
27020
27021 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
27022         
27023         * LinkLabel.cs:
27024                 - Fixes signature
27025                 - Fixes issues with links
27026                 - Adds the class attributes
27027
27028 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
27029         
27030         * ComboBox.cs:
27031                 - Fixes button when no items available in dropdown
27032                 - Fixes repainting problems
27033                 - Adds the class attributes
27034                 
27035 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
27036
27037         * XplatUIOSX.cs: Detect the menu bar and title bar height from
27038         the current theme.  Cache these on startup.
27039
27040 2005-02-07  Jackson Harper  <jackson@ximian.com>
27041
27042         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
27043         the scrollbar buttons when they are depressed.
27044
27045 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
27046
27047         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
27048         Get the display size from the main displayid.  We currently dont
27049         support multiple display configurations.
27050
27051 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
27052
27053         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
27054
27055 2005-02-07  Miguel de Icaza  <miguel@novell.com>
27056
27057         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
27058
27059 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
27060
27061         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
27062
27063 2005-02-04  Jackson Harper  <jackson@ximian.com>
27064
27065         * ThemeWin32Classic.cs: Respect the clipping rect when
27066         drawing. Only fill the intersection of clips and rects so there
27067         isn't a lot of large fills.
27068         * ScrollBar.cs: Pass the correct clipping rect to the theme
27069         engine. Remove some debug code.
27070
27071 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
27072         
27073         * DateTimePicker.cs:
27074                 - Fixed crash on DateTime.Parse, use Constructor instead
27075
27076 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
27077         
27078         * MenuItem.cs:
27079         * MenuAPI.cs:
27080                 - Owner draw support (MeasureItem and DrawItem)
27081
27082 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
27083         
27084         *  Menu.cs:
27085                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
27086                 - Fixes MenuItems.Add range
27087         * MenuItem.cs:
27088                 - MergeMenu and Clone and CloneMenu functions
27089
27090 2005-02-03  Jackson Harper  <jackson@ximian.com>
27091
27092         * ScrollBar.cs: Make abstract
27093         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
27094         is abstract.
27095
27096 2005-02-03  Jackson Harper  <jackson@ximian.com>
27097
27098         * ScrollBar.cs: First part of my scrollbar fixups. This removes
27099         all the unneeded refreshes and uses invalidates with properly
27100         computed rects.
27101
27102 2005-02-03  Peter Bartok  <pbartok@novell.com>
27103
27104         * ComponentModel.cs: Added
27105         * IDataGridEditingService.cs: Added
27106         * Timer.cs: Added missing attributes
27107         * ToolTip.cs: Added missing attributes
27108
27109 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27110
27111         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
27112
27113 2005-02-03  Peter Bartok  <pbartok@novell.com>
27114
27115         * ListBox.cs: Added missing attributes
27116
27117 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
27118         
27119         * ListBox.cs:
27120                 - Fixes font height after font change
27121                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
27122                 
27123 2005-02-02  Peter Bartok  <pbartok@novell.com>
27124
27125         * HandleData.cs: Introduced static methods to allow class
27126           to be more self-contained and track it's own HandleData objects
27127         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
27128           HandleData to use new static methods
27129
27130 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
27131
27132         * Combobox.cs:
27133                 - Fixes default size and PreferredHeight
27134                 - Missing events
27135                 - ObjectCollection.Insert implementation
27136                 
27137         * ListControl.cs
27138                 - Fixes signature
27139         * ListBox.cs:
27140                 - Several fixes
27141                 - ObjectCollection.Insert implementation
27142                 - No selection after clean
27143                 - Small fixes
27144
27145 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
27146
27147         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
27148
27149 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
27150
27151         * Combobox.cs:
27152                 - Caches ItemHeight calculation for OwnerDrawVariable
27153                 - Handles dropdown properly
27154                 - Fixes several minor bugs
27155
27156 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
27157
27158         * ListBox.cs:
27159                 - Fixes 71946 and 71950
27160                 - Fixes changing Multicolumn on the fly
27161                 - Fixes keyboard navigation on Multicolumn listboxes
27162
27163 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
27164         
27165         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
27166         crash reporter log.
27167
27168 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
27169
27170         * XplatUIOSX.cs: Allow applications to actually exit.
27171
27172 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
27173
27174         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
27175         their parent at creation time rather than lazily later.  Fixes a major
27176         regression we were experiencing.
27177
27178 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
27179
27180         * ThemeWin32Classic.cs: more date time picker painting fixes
27181         * DateTimePicker.cs: more monthcalendar drop down fixes
27182         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
27183
27184 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
27185
27186         * ScrollBar.cs:
27187                 - When moving the thumb going outside the control should stop the moving
27188                 - Adds the firing of missing events
27189                 - Fixes no button show if Size is not specified
27190                 - End / Home keys for keyboard navigation
27191
27192 2005-01-30  Peter Bartok  <pbartok@novell.com>
27193
27194         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
27195           sanity check to prevent theoretical loop
27196         * XplatUIWin32.cs (SetVisible): Removed debug output
27197         * XplatUIX11.cs (SystrayChange): Added sanity check
27198         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
27199         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
27200           behaviour, valid until the X11 client window rewrite is done
27201         * TextBox.cs (ctor): Setting proper default foreground and background
27202           colors
27203
27204 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
27205
27206         * Theme: Added DrawDateTimePicker to interface
27207         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
27208         * DateTimePicker.cs: Created (still needs keys and painting code)
27209         * DateTimePickerFormat.cs: added
27210         * MonthCalendar.cs: fixed CreateParams for popup window mode
27211           
27212 2005-01-29  Peter Bartok  <pbartok@novell.com>
27213
27214         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
27215           this should also the calculations for ligher/darker
27216         * Theme.cs: Fixed defaults for ScrollBar widths/heights
27217
27218 2005-01-29  Peter Bartok  <pbartok@novell.com>
27219
27220         * ArrangeDirection.cs: Added
27221         * ArrangeStartingPositon.cs: Added
27222         * SystemInformation.cs: Implemented
27223         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27224           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
27225           used by SystemInformation class
27226         * X11Strucs.cs: Added XSizeHints structure
27227         * MenuAPI.cs:
27228           - Fixed CreateParams to make sure the menu window is always visible
27229           - TrackPopupMenu: Added check to make sure we don't draw the
27230             menu offscreen
27231
27232 2005-01-29  Peter Bartok  <pbartok@novell.com>
27233
27234         * HandleData.cs: Added method for altering invalid area
27235         * TextBoxBase.cs: Implemented TextLength
27236
27237 2005-01-28  Peter Bartok  <pbartok@novell.com>
27238
27239         * XplatUIX11.cs: Improvement over last patch, not sending
27240           the WM_PAINT directly anymore, instead we scroll any pending
27241           exposed areas and let the system pick out the WM_PAINT later
27242
27243 2005-01-28  Peter Bartok  <pbartok@novell.com>
27244
27245         * SWF.csproj: Deleted, no longer used. Instead,
27246           Managed.Windows.Forms/SWF.csproj should be used
27247         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
27248           directly, to avoid a potential race condition with the next
27249           scroll
27250
27251 2005-01-28  Peter Bartok  <pbartok@novell.com>
27252
27253         * XplatUI.cs: Made class internal
27254
27255 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
27256
27257         * CheckedListBox.cs:
27258                 - Draw focus
27259                 - Fixed Drawing
27260                 - Missing methods and events
27261
27262 2005-01-27  Peter Bartok  <pbartok@novell.com>
27263
27264         * Application.cs (Run): Don't use form if we don't have one
27265
27266 2005-01-27  Peter Bartok  <pbartok@novell.com>
27267
27268         * TextBoxBase.cs (get_Lines): Fixed index off by one error
27269
27270 2005-01-27  Peter Bartok  <pbartok@novell.com>
27271
27272         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
27273         * GridItem.cs: Added; Patch by Jonathan S. Chambers
27274         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
27275         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
27276         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
27277         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
27278         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27279         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27280         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27281         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27282         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27283         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27284
27285 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
27286
27287         * Combobox.cs:
27288                 - Draw focus on Simple Combobox
27289                 - Fixes drawing issues
27290                 - fixes 71834
27291
27292 2005-01-27  Peter Bartok  <pbartok@novell.com>
27293
27294         * Form.cs:
27295           - Place window in default location, instead of hardcoded 0/0
27296           - Send initial LocationChanged event
27297         * Control.cs:
27298           - UpdateBounds after creation to find out where the WM placed us
27299           - Make sure that if the ParentForm changes location the Form
27300             is notified
27301         * XplatUIX11.cs: XGetGeometry will not return the coords relative
27302             to the root, but to whatever the WM placed around us.
27303             Translate to root coordinates before returning toplevel
27304             coordinates
27305         * XplatUIWin32.cs: Removed debug output
27306         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
27307           flag to GetWindowPos, to allow translation of coordinates on X11
27308
27309 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
27310
27311         * ListBox.cs: connect LostFocus Event
27312
27313 2005-01-27  Peter Bartok  <pbartok@novell.com>
27314
27315         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27316           XplatUIX11.cs: Extended the Systray API
27317         * Form.cs: Removed debug output
27318         * Application.cs: Fixed focus assignment, always need to call
27319           XplatUI.Activate() since Form.Activate() has rules that may
27320           prevent activation
27321         * NotifyIcon.cs: Should be complete now
27322         * ToolTip.cs: Worked around possible timer bug
27323
27324 2005-01-27  Jackson Harper  <jackson@ximian.com>
27325
27326         * TabControl.cs:
27327         - Only invalidate the effected tabs when the
27328         selected index changes. This reduces drawing and gets rid of some
27329         flicker.
27330         - Only refresh if the tabs need to be shifted, otherwise only
27331         invalidate the slider button.
27332         - On windows the tabs are not filled to right if the slider is
27333         visible.
27334         
27335 2005-01-27  Jackson Harper  <jackson@ximian.com>
27336
27337         * TabControl.cs: Only refresh on mouseup if we are showing the
27338         slider. Also only invalidate the button whose state has changed.
27339
27340 2005-01-26  Peter Bartok  <pbartok@novell.com>
27341
27342         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
27343         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
27344           and SystrayRemove() methods
27345         * XplatUIOSX.cs: Stubbed Systray methods
27346         * XplatUIX11.cs:
27347           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
27348             methods
27349           - Fixed broken XChangeProperty calls (marshalling messed up things)
27350         * X11Structs.cs: Added enums and structs required for Size hinting
27351         * NotifyIcon.cs: Added & implemented
27352
27353 2005-01-26  Jackson Harper  <jackson@ximian.com>
27354
27355         * TabControl.cs: Space vertically layed out tabs properly.
27356
27357 2005-01-26  Peter Bartok  <pbartok@novell.com>
27358
27359         * Form.cs (CreateClientParams): Always set the location to 0,0
27360           since we're a child window.
27361
27362         * Control.cs (SetVisibleCore): Always explicitly setting the location
27363           of a toplevel window, apparently X11 doesn't like to move windows
27364           while they're not mapped.
27365
27366 2005-01-26  Jackson Harper  <jackson@ximian.com>
27367
27368         * TabControl.cs: Implement FillToRight size mode with vertically
27369         rendered tabs.
27370
27371 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
27372
27373         * ControlPaint.cs, ThemeWin32Classic.cs
27374                 - Fixes DrawFocusRectangle
27375
27376 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
27377
27378         * MenuAPI.cs:
27379                 - MenuBar tracking only starts when item is first clicked
27380                 - Fixes menu hidding for multiple subitems
27381                 - Unselect item in MenuBar when item Executed
27382                 - Fixes bug 71495
27383
27384 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
27385
27386         * ListControl.cs:
27387                 - IsInputKey for ListBox
27388         * ListBox.cs:
27389                 - Focus item
27390                 - Shift and Control item selection
27391                 - Implement SelectionMode.MultiExtended
27392                 - Fixes RightToLeft
27393         * ComboBox.cs:
27394                 - IsInputKey implemented
27395                 - Do not generate OnTextChangedEdit on internal txt changes
27396                 
27397 2005-01-23  Peter Bartok  <pbartok@novell.com>
27398
27399         * AccessibleObject.cs: Partially implemented Select()
27400         * MonthCalendar.cs: Added missing attributes and events
27401         * Form.cs: Fixed CreateParams behaviour, now controls derived from
27402           form can properly override CreateParams.
27403         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27404           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
27405           Control performs Invalidate & Update
27406         * NativeWindow (CreateHandle): Added special handling for Form
27407           and Form.FormParent classes to allow overriding of From.CreateParams
27408         * Control.cs:
27409           - ControlNativeWindow: Renamed 'control' variable to more intuitive
27410             name 'owner'
27411           - ControlNativeWindow: Added Owner property
27412           - Removed usage of Refresh() on property changes, changed into
27413             Invalidate(), we need to wait until the queue is processed for
27414             updates, direct calls might cause problems if not all vars for
27415             Paint are initialized
27416           - Added call to UpdateStyles() when creating the window, to set any
27417             styles that CreateWindow might have ignored.
27418           - Added support for Form CreateParent overrides to UpdateStyles()
27419         * MessageBox.cs: Removed no longer needed FormParent override stuff,
27420           CreateParams are now properly overridable
27421         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
27422           CreateParams are now properly overridable
27423
27424 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
27425
27426         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
27427         OnTextBoxChanged.
27428
27429         Capture LostFocus and OnTextBoxChanged.  The later introduces a
27430         recursive invocation that I have not figured out yet.
27431
27432         Reset the timer when not using (it was accumulating).
27433
27434
27435         (OnTextBoxChanged): Set UserEdit to true here to track whether the
27436         user has made changes that require validation.
27437
27438         Reset changing to avoid loops.
27439
27440 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
27441
27442         * NumericUpDown.cs: Display value at startup.
27443
27444         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
27445         ValidateEditText.
27446
27447         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
27448         filled in.  Added some basic parsing of text.
27449
27450         Still missing the OnXXX method overrides, and figuring out the
27451         events that must be emitted.
27452
27453         * UpDownBase.cs: Handle UserEdit on the Text property.
27454         
27455 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
27456
27457         * ComboBox.cs:
27458           - Fixes IntegralHeight
27459           - ToString method
27460
27461 2005-01-21  Jackson Harper  <jackson@ximian.com>
27462
27463         * TabControl.cs: Set the SelectedIndex property when SelectedTab
27464         is set so that the page visibility is updated and the tabs are
27465         sized correctly.
27466
27467 2005-01-21  Jackson Harper  <jackson@ximian.com>
27468
27469         * TabControl.cs: Use cliping rectangle for blitting. Give the
27470         theme the clipping rect so we can do clipping while
27471         drawing. Remove some debug code.
27472
27473 2005-01-21  Jackson Harper  <jackson@ximian.com>
27474
27475         * TabPage.cs: Add a new method so tab pages can force the tab
27476         control to recalculate the tab page sizes.
27477         * TabControl.cs: UpdateOwner needs to make the tab control recalc
27478         sizes.
27479
27480 2005-01-20  Jackson Harper  <jackson@ximian.com>
27481
27482         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
27483
27484 2005-01-20  Jackson Harper  <jackson@ximian.com>
27485
27486         * TreeView.cs: Set the bounds for nodes properly. They were
27487         getting screwed up when checkboxes were not enabled, but images
27488         were.
27489
27490 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
27491
27492         * ListBox.cs:
27493                 - Owner draw support
27494                 - Fixes
27495                 
27496 2005-01-20  Jackson Harper  <jackson@ximian.com>
27497
27498         * XplatUIStructs.cs: More misc keys
27499         * X11Keyboard.cs: Ignore some control keys.
27500
27501 2005-01-20  Jackson Harper  <jackson@ximian.com>
27502
27503         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
27504         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
27505
27506 2005-01-19  Peter Bartok  <pbartok@novell.com>
27507
27508         * Control.cs: Un-selecting the control when it is loosing focus
27509
27510 2005-01-19  Jackson Harper  <jackson@ximian.com>
27511
27512         * TreeView.cs: Hook up to the text controls leave event so we can
27513         end editing when the users clicks outside the text box.
27514         
27515 2005-01-19  Jackson Harper  <jackson@ximian.com>
27516
27517         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
27518         get set in the conversion array.
27519
27520 2005-01-19  Peter Bartok  <pbartok@novell.com>
27521
27522         * Application.cs (ModalRun): Added a call to CreateControl to ensure
27523           focus is properly set
27524         * Button.cs:
27525           - Added missing attributes
27526           - removed styles, those are already set in the base class
27527         * ButtonBase.cs:
27528           - Added missing attributes
27529           - Added clip window styles
27530         * CheckBox.cs: Added missing attributes
27531         * CommonDialog.cs:
27532           - FormParentWindow.CreateParams: Added required clip styles
27533         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
27534           also filters modifier keys
27535         * MessageBox.cs:
27536           - Added assignment of Accept and Cancel button to enable Enter
27537             and Esc keys in MessageBox dialogs
27538           - FormParentWindow.CreateParams: Added required clip styles
27539         * RadioButton.cs: Added missing attributes
27540         * TextControl.cs: No longer draws selection if control does not
27541           have focus
27542         * TextBoxBase.cs:
27543           - Now draws simple rectangle around test area to make it obvious
27544             there's a control. This is a hack until we properly support borders
27545           - A few simple fixes to support selections better, now erases selected
27546             text when typing, and resets selection when using movement keys
27547
27548 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
27549
27550         * UpDownBase.cs: Added some new properties.
27551
27552         * DomainUpDown.cs: Implement a lot to get my test working.
27553
27554 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27555
27556         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
27557
27558 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27559
27560         * OSXStructs (WindowAttributes): Fixed csc complaints
27561
27562 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27563
27564         * XplayUIOSX.cs:
27565           OSXStructs.cs: Initial refactor to move enums and consts into
27566           OSXStructs and use them in the driver for greater readability.
27567
27568 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27569
27570         * XplatUIOSX.cs: Initial support for Standard Cursors.
27571         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
27572
27573 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
27574
27575         * ComboBox.cs: ability to change style when the ctrl is already
27576         created, missing methods and events, bug fixes, signature fixes
27577
27578 2005-01-19  Peter Bartok  <pbartok@novell.com>
27579
27580         * Cursors.cs (ctor): Added ctor to fix signature
27581
27582 2005-01-18  Peter Bartok  <pbartok@novell.com>
27583
27584         * Button.cs: Implemented DoubleClick event
27585         * ButtonBase.cs:
27586           - Fixed keyboard handling to behave like MS, where the press of
27587             Spacebar is equivalent to a mousedown, and the key release is
27588             equivalent to mouseup. Now a spacebar push will give the same
27589             visual feedback like a mouse click.
27590           - Added missing attributes
27591           - Added ImeModeChanged event
27592           - Added support for generating DoubleClick event for derived classes
27593         * CheckBox.cs:
27594           - Implemented DoubleClick event
27595           - Added missing attributes
27596         * CommonDialog.cs: Added missing attribute
27597         * ContextMenu.cs: Added missing attributes
27598         * RadioButton.cs:
27599           - AutoChecked buttons do not allow to be unselected when clicked
27600             (otherwise we might end up with no selected buttons in a group)
27601           - Added missing attributes
27602           - Implemented DoubleClickEvent
27603         * ThreadExceptionDialog.cs: Enabled TextBox code
27604
27605 2005-01-18  Peter Bartok  <pbartok@novell.com>
27606
27607         * Form.cs: Removed debug output
27608         * Button.cs: Added support for DoubleClick method
27609
27610 2005-01-18  Peter Bartok  <pbartok@novell.com>
27611
27612         * Form.cs:
27613           - Added method to parent window that allows triggering size
27614             calculations when a menu is added/removed
27615           - set_Menu: Cleaned up mess from early days of Form and Control,
27616             now properly triggers a recalc when a menu is added/removed
27617           - Added case to select form itself as focused form if no child
27618             controls exist
27619           - Added PerformLayout call when showing dialog, to ensure properly
27620             placed controls
27621         * Control.cs:
27622           - Select(): Made internal so Form can access it
27623           - Focus(): Only call Xplat layer if required (avoids loop), and sets
27624             status
27625         * Application.cs (Run): Removed hack and calls PerformLayout instead
27626           to trigger calculation when Form becomes visible
27627
27628 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
27629
27630         * ComboBox.cs: fixes for ownerdraw
27631
27632 2005-01-18  Peter Bartok  <pbartok@novell.com>
27633
27634         * TextControl.cs:
27635           - Sentinel is no longer static, each Document gets it's own, this
27636             avoids locking or alternatively overwrite problems when more
27637             than one text control is used simultaneously.
27638           - Switched to use Hilight and HilightText brushes for text selection
27639
27640         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
27641
27642 2005-01-18  Peter Bartok  <pbartok@novell.com>
27643
27644         * Control.cs:
27645           - Hooked up the following events:
27646                 o ControlAdded
27647                 o ControlRemoved
27648                 o HandleDestroyed
27649                 o ImeModeChanged
27650                 o ParentChanged
27651                 o TabStopChanged
27652                 o Invalidated
27653                 o SystemColorsChanged
27654                 o ParentFontChanged
27655                 o Move
27656           - Removed debug output
27657           - Added a call to the current theme's ResetDefaults when a color change
27658             is detected
27659         * Form.cs: Now setting the proper ImeMode
27660         * Theme.cs: Defined a method to force recreation of cached resources
27661           and rereading of system defaults (ResetDefaults())
27662         * ThemeWin32Classic.cs: Added ResetDefaults() stub
27663
27664 2005-01-17  Peter Bartok  <pbartok@novell.com>
27665
27666         * Control.cs: Added missing attributes
27667
27668 2005-01-17  Jackson Harper  <jackson@ximian.com>
27669
27670         * TreeNode.cs: Implement editing. Add missing properties selected
27671         and visible.
27672         * TreeView.cs: Implement node editing. Also some fixes to use
27673         Invalidate (invalid area) instead of Refresh when selecting.
27674
27675 2005-01-17  Peter Bartok  <pbartok@novell.com>
27676
27677         * Control.cs:
27678           - Implemented InvokeGotFocus() method
27679           - Implemented InvokeLostFocus() method
27680           - Implemented InvokePaint() method
27681           - Implemented InvokePaintBackground() method
27682           - Implemented InvokeClick() method
27683           - Implemented FindForm() method
27684           - Implemented RectangleToClient() method
27685           - Implemented ClientToRectangle() method
27686           - Implemented ResetBackColor() method
27687           - Implemented ResetCursor() method
27688           - Implemented ResetFont() method
27689           - Implemented ResteForeColor() method
27690           - Implemented ResetImeMode() method
27691           - Implemented ResetLeftToRight() method
27692           - Implemented ResetText() method
27693           - Implemented Scale() methods
27694           - Implemented ScaleCore() method
27695           - Implemented Update() method
27696           - Removed unused variables
27697           - Stubbed AccessibilityNotifyClients and
27698             ControlAccessibleObject.NotifyClients() methods (dunno what to do
27699             with those yet)
27700           - Now setting proper default for RightToLeft property
27701           - Fixed bug in SetClientSizeCore that would cause windows to get
27702             really big
27703           - Now sending Click/DoubleClick events
27704           - Now selecting controls when left mouse button is clicked on
27705             selectable control
27706         * AccessibleEvents.cs: Added
27707         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
27708         * XplatUIOSX.cs: Stubbed UpdateWindow() method
27709         * XplatUIWin32.cs: Implemented UpdateWindow() method
27710         * XplatUIX11.cs: Implemented UpdateWindow() method
27711         * Form.cs: Removed stray semicolon causing CS0162 warning
27712         * ThemeWin32Classic.cs: Fixed unused variable warnings
27713         * ScrollableControl.cs: Now calls base method for ScaleCore
27714         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
27715           style to avoid interference with internal click handler (which is
27716           different than standard Control click handling)
27717         * RadioButton.cs:
27718           - Now unchecks all sibling radio buttons when control is
27719             selected (Fixes #68756)
27720           - Removed internal tabstop variable, using the one inherited from
27721             Control
27722
27723 2005-01-17  Jackson Harper  <jackson@ximian.com>
27724
27725         * NavigateEventArgs.cs: Fix base type.
27726         * LinkLabel.cs: Sig fix
27727         
27728 2005-01-17  Jackson Harper  <jackson@ximian.com>
27729
27730         * TreeView.cs: Only invalidate the effected nodes bounds when
27731         selecting nodes.
27732
27733 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27734
27735         * XplatUIWin32.cs: fixes Win32 marshaling
27736         * XplatUIX11.cs: fixes method signature
27737
27738 2005-01-17  Peter Bartok  <pbartok@novell.com>
27739
27740         * XplatUIX11.cs: Clean up resources when we no longer need them
27741
27742 2005-01-17  Peter Bartok  <pbartok@novell.com>
27743
27744         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
27745           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
27746           and DestroyCursor() methods.
27747         * Cursor.cs: Partially implemented, now supports standard cursors;
27748           still contains some debug code
27749         * Cursors.cs: Implemented class
27750         * Control.cs:
27751           - WndProc(): Added handling of WM_SETCURSOR message, setting the
27752             appropriate cursor
27753           - Implemented Cursor property
27754           - Replaced break; with return; more straightforwar and possibly
27755             faster
27756           - Now properly setting the result for WM_HELP
27757         * X11Structs.cs: Added CursorFontShape enum
27758         * XplatUIStructs.cs:
27759           - Added StdCursor enum (to support DefineStdCursor() method)
27760           - Added HitTest enum (to support sending WM_SETCURSOR message)
27761         * XplatUIX11.cs:
27762           - Now sends the WM_SETCURSOR message
27763           - Implemented new cursor methods
27764         * XplatUIOSX.cs: Stubbed new cursor methods
27765         * XplatUIWin32.cs:
27766           - Implemented new cursor methods
27767           - Added GetSystemMetrics function and associated enumeration
27768
27769 2005-01-15  Peter Bartok  <pbartok@novell.com>
27770
27771         * Control.cs:
27772           - WndProc(): Now handles EnableNotifyMessage
27773           - SelectNextControl(): Fixed bug where if no child or sibling
27774             controls exist we looped endlessly
27775
27776 2005-01-14  Jackson Harper  <jackson@ximian.com>
27777
27778         * TreeView.cs: Recalculate the tab pages when a new one is added
27779         so that the proper bounding rects are created.
27780
27781 2005-01-14  Jackson Harper  <jackson@ximian.com>
27782
27783         * TreeView.cs: Draw a gray box instead of a grip in the lower
27784         right hand corner when there are both horizontal and vertical
27785         scroll bars.
27786
27787 2005-01-14  Jackson Harper  <jackson@ximian.com>
27788
27789         * Control.cs: When erasing backgrounds use FromHwnd instead of
27790         FromHdc when there is a NULL wparam. This occurs on the X driver.
27791         * XplatUIX11.cs: Set the wparam to NULL.
27792
27793 2005-01-13  Jackson Harper  <jackson@ximian.com>
27794
27795         * PictureBox.cs: Implement missing methods (except ToString, need
27796         to test that on windows) and events. When visibility is changed we
27797         need to redraw the image because the buffers are killed. When size
27798         is changed refresh if the sizemode needs it.
27799
27800 2005-01-13  Peter Bartok  <pbartok@novell.com>
27801
27802         * Control.cs (SelectNextControl): Was using wrong method to select
27803           a control
27804
27805 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27806
27807         * ComboBox.cs: fixes dropstyle
27808
27809 2005-01-13  Peter Bartok  <pbartok@novell.com>
27810
27811         * Form.cs:
27812           - Implemented Select() override
27813           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
27814           - Now sets keyboard focus on startup
27815         * Control.cs (SelectNextControl): Now properly handles directed=true
27816         * TextBoxBase.cs:
27817           - WndProc: Now passes tab key on to base if AcceptTabChar=false
27818           - Added (really bad) focus rectangle (mostly for testing)
27819         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
27820           to enforce redraw on focus changes
27821         * ContainerControl.cs:
27822           - Fixed detection of Shift-Tab key presses
27823           - Fixed traversal with arrow keys
27824         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
27825           gonna keep this or if it's complete yet
27826         
27827 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27828
27829         * ComboBox.cs: missing properties, fixes
27830
27831 2005-01-13  Peter Bartok  <pbartok@novell.com>
27832
27833         * Panel.cs (ctor): Setting Selectable window style to off
27834         * Splitter.cs (ctor): Setting Selectable window style to off
27835         * GroupBox.cs (ctor): Setting Selectable window style to off
27836         * Label.cs (ctor): Setting Selectable window style to off
27837
27838 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
27839
27840         * UpDownBase.cs (InitTimer): If the timer has been already
27841         created, enable it.
27842
27843         Use a TextBox instead of a Label.
27844
27845 2005-01-12  Jackson Harper  <jackson@ximian.com>
27846
27847         * TreeView.cs: Refresh the tree after sorting the nodes. Always
27848         draw the connecting node lines (when ShowLines is true).
27849         * TreeNode.cs: The nodes index can now be updated. This is used
27850         when a node collection is sorted.
27851         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
27852         insert or an existing unsorted node collection can be sorted.
27853         
27854 2005-01-12  Peter Bartok  <pbartok@novell.com>
27855
27856         * ContainerControl.cs: Implemented ProcessDialogKeys()
27857
27858 2005-01-12  Peter Bartok  <pbartok@novell.com>
27859
27860         * Control.cs:
27861           - Implemented SelectNextControl() method
27862           - Several focus related bug fixes
27863           - Fixed Docking calculations to match MS documentation and
27864             behaviour
27865
27866 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
27867
27868         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
27869         bug fixes
27870
27871 2005-01-12  Peter Bartok  <pbartok@novell.com>
27872
27873         * Control.cs:
27874           - Fixed broken Contains() method
27875           - Implemented GetNextControl() method. Finally. This is the pre-
27876             requisite for focus handling.
27877
27878 2005-01-12  Peter Bartok  <pbartok@novell.com>
27879
27880         * OSXStrucs.cs: Added
27881
27882 2005-01-12  Peter Bartok  <pbartok@novell.com>
27883
27884         * XplatUIWin32.cs:
27885           - Removed PeekMessageFlags
27886           - Implemented SetWindowStyle() method
27887         * XplatUIStructs.cs: Added PeekMessageFlags
27888         * X11Structs: Added missing border_width field to XWindowChanges struct
27889         * XplatUIX11.cs:
27890           - PeekMessage: Now throws exception if flags which are not yet
27891             supported are passed
27892           - Implemented SetWindowStyle() method
27893           - Fixed SetZOrder to handle AfterHwnd properly
27894         * XplatUI.cs: Added SetWindowStyle() method
27895         * XplatUIDriver.cs: Added SetWindowStyle() abstract
27896         * Control.cs:
27897           - Implemented UpdateStyles() method
27898           - Implemented UpdateZOrder() method
27899         * XplatUIOSX.cs: Added SetWindowStyle() stub
27900
27901 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
27902
27903         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
27904         button mouse).
27905
27906
27907 2005-01-11  Jackson Harper  <jackson@ximian.com>
27908
27909         * TreeView.cs: Still need to draw lines to siblings even if out of
27910         the current node is out of the clip.
27911
27912 2005-01-11  Jackson Harper  <jackson@ximian.com>
27913
27914         * TreeView.cs: When setting the hbar/vbar/grip position use
27915         SetBounds so that perform layout is only called once. Also suspend
27916         and resume layout so layout is only done once for all controls.
27917         - Removed some debug fluff
27918         * SizeGrip.cs: Call base implmentation in overriding methods.
27919         - When visibility is changed the drawing buffers are killed so we
27920         need to redraw.
27921
27922 2005-01-11  Jackson Harper  <jackson@ximian.com>
27923
27924         * TreeView.cs: Calculate the open node count while drawing. This
27925         saves us an entire tree traversal for every paint operation. Use
27926         a member var for the open node count so less vars are passed around.
27927
27928 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
27929
27930         * MonthCalendar.cs:
27931         - fixed selection to use mousemove, not mouse polling on timer
27932         * ThemeWin32Classic.cs
27933         - removed redundant unused variable "no_more_content"
27934         
27935 2005-01-11  Peter Bartok  <pbartok@novell.com>
27936
27937         * XplatUIX11.cs (DoEvents): Needs to return when no more events
27938           are pending, so it now calls PeekMessage instead of GetMessage;
27939           implemented a incomplete version of PeekMessage
27940         
27941 2005-01-11  Peter Bartok  <pbartok@novell.com>
27942
27943         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
27944           I18n issues
27945         * TextBoxBase.cs: Added sending of TextChanged event
27946
27947 2005-01-10  Jackson Harper  <jackson@ximian.com>
27948
27949         * TreeView.cs: Try not to draw outside the clipping rectangle on
27950         each node element.
27951
27952 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
27953
27954         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
27955
27956 2005-01-10  Jackson Harper  <jackson@ximian.com>
27957
27958         * TreeView.cs:
27959         - Implement fast scrolling. Now only the newly
27960         exposed nodes are drawn and the old image is moved using the
27961         XplatUI::ScrollWindow method.
27962         - Factor in height of nodes when calculating whether or not the
27963         node is in the clipping rect.
27964
27965 2005-01-10  Jackson Harper  <jackson@ximian.com>
27966
27967         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
27968
27969 2005-01-10  Peter Bartok  <pbartok@novell.com>
27970
27971         * Application.cs: Added temporary hack to resolve all our resize
27972           required issues on startup. This will get fixed properly at
27973           some point in the future
27974
27975 2005-01-10  Jackson Harper  <jackson@ximian.com>
27976
27977         * SizeGrip.cs: New internal class that is used as a sizing
27978         grip control...hence the name.
27979
27980 2005-01-10  Peter Bartok  <pbartok@novell.com>
27981
27982         * Control.cs: Implemented proper TabIndex handling, now assigning
27983           a tabindex when a control is added to a container
27984         * GroupBox.cs (ctor): Now sets the Container style bit, required
27985           for Control.GetNextControl()
27986
27987 2005-01-09  Jackson Harper  <jackson@ximian.com>
27988
27989         * TextBoxBase.cs: Clear window when scrolling (fixes build).
27990
27991 2005-01-09  Peter Bartok <pbartok@novell.com>
27992
27993         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27994           XplatUIX11.cs: Added ability to control ScrollWindow expose and
27995           an overload for ScrollWindow to allow only scrolling a rectangle
27996
27997 2005-01-09  Peter Bartok <pbartok@novell.com>
27998
27999         * Form.cs:
28000           - Implemented SetDesktopBounds method
28001           - Implemented SetDesktopLocation method
28002
28003 2005-01-08  Jackson Harper  <jackson@ximian.com>
28004
28005         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
28006         the node count has changed, this removes to VScroll::Refresh calls
28007         when drawing.
28008
28009 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
28010
28011         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
28012
28013 2005-01-07  Jackson Harper  <jackson@ximian.com>
28014
28015         * TreeNode.cs: Just update the single node when it is
28016         checked. Don't refresh after toggling, the Expand/Collapse already
28017         handles this.
28018         * TreeView.cs: Respect clipping a little more when drawing. Try
28019         not to redraw things that don't need to be redrawn. Just hide the
28020         scrollbars when they are no longer needed instead of removing
28021         them, so they don't have to be created again and again.
28022         
28023 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
28024
28025         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
28026         coordinates to window space to place the caret properly, FIXED.
28027         Implement GetWindowState & SetWindowState
28028
28029 2005-01-06  Peter Bartok <pbartok@novell.com>
28030
28031         * Form.cs:
28032           - Implemented ClientSize property
28033           - Implemented DesktopBounds property
28034           - Implemented DesktopLocation property
28035           - Implemented IsRestrictedWindow property
28036           - Implemented Size property
28037           - Implemented TopLevel property
28038           - Implemented FormWindowState property
28039         * Control.cs:
28040           - Implemented GetTopLevel() method
28041           - Implemented SetTopLevel() method
28042         * X11Structs.cs (Atom):
28043           - Added AnyPropertyType definition
28044           - Added MapState definiton and updated XWindowAttribute struct
28045         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
28046         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
28047         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
28048         * XplatUIWin32.cs:
28049           - Implemented GetWindowState() and SetWindowState() methods
28050           - Fixed Win32GetWindowLong return type
28051         * XplatUIX11.cs:
28052           - Introduced central function for sending NET_WM messages
28053           - Implemented GetWindowState() and SetWindowState() methods
28054         * TextBoxBase.cs (set_Lines):
28055           - Now uses Foreground color for text added via Text property (Duh!)
28056           - Added code to remember programmatically requested size (fixes
28057             behaviour when Multiline is set after Size)
28058           - Added AutoSize logic
28059
28060 2005-01-06  Jackson Harper  <jackson@ximian.com>
28061
28062         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
28063
28064 2005-01-06  Jackson Harper  <jackson@ximian.com>
28065
28066         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
28067         set to less then 0.
28068
28069 2005-01-06  Jackson Harper  <jackson@ximian.com>
28070
28071         * ScrollableControl.cs: Lazy init the scrollbars.
28072         
28073 2005-01-06  Jackson Harper  <jackson@ximian.com>
28074
28075         * Theme.cs: Speed up getting pens and solid brushes, by using
28076         their ARGB as a hash instead of tostring and not calling Contains.
28077
28078 2005-01-06  Peter Bartok <pbartok@novell.com>
28079
28080         * Form.cs:
28081           - Implemented OnActivated and OnDeactivate event trigger
28082           - Implemented Activate() method
28083           - Fixed ShowDialog() to activate the form that was active before
28084             the dialog was shown
28085         * XplatUIX11.cs:
28086           - Added global active_window var that tracks the currently active
28087             X11 window
28088           - Now always grabs Property changes from the root window to always
28089             catch changes on the active window property
28090           - Added code to PropertyNotify handler to send Active/Inactive
28091             messages when state changes. This puts X11 and Win32 en par on
28092             WM_ACTIVATE notifications (except for double notifications when
28093             the user clicks away from our modal window to another one of our
28094             windows)
28095
28096 2005-01-05  Jackson Harper  <jackson@ximian.com>
28097
28098         * ImageList.cs: Implment ctor
28099
28100 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
28101
28102         * XplatUIOSX.cs: Implement Activate/SetTopmost
28103
28104 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
28105
28106         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
28107
28108 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
28109
28110         * XplatUIOSX.cs: Implement GetActive/SetFocus.
28111
28112 2005-01-05  Peter Bartok <pbartok@novell.com>
28113
28114         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
28115           XplatUIOSX.cs: Added GetActive method to return the currently
28116           active window for the application (or null, if none is active)
28117         * Form.cs:
28118           - Implemented ActiveForm
28119           - Commented out owner assignment for modal dialogs (causes problems
28120             on Win32, since the owner will be disabled)
28121           - Reworked some Active/Focus handling (still incomplete)
28122         * CommonDialog.cs: Commented out owner assignment for modal dialogs
28123           (causes problems on Win32, since the owner will be disabled)
28124         * IWin32Window: Added ComVisible attribute
28125
28126 2005-01-05  Peter Bartok <pbartok@novell.com>
28127
28128         * ToolTip.cs (WndProc): Enable setting focus now that we have the
28129           required XplatUI functions.
28130
28131 2005-01-05  Peter Bartok <pbartok@novell.com>
28132
28133         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
28134           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
28135           to implement focus and activation handling; still incomplete and
28136           with debug output
28137
28138 2005-01-04  Peter Bartok <pbartok@novell.com>
28139
28140         * TextBoxBase.cs: Changed access level for Document property to
28141           match switch to internal for TextControl
28142
28143 2005-01-04  Peter Bartok <pbartok@novell.com>
28144
28145         * AccessibleObject: Added ComVisible attribute
28146
28147 2005-01-04  Jackson Harper  <jackson@ximian.com>
28148
28149         * X11Keyboard.cs: Remove unneeded var.
28150
28151 2005-01-04  Jackson Harper  <jackson@ximian.com>
28152
28153         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
28154         but PAINT.
28155         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
28156         ClientMessage. This makes apps exit cleanly (more often).
28157         
28158 2005-01-04  Jackson Harper  <jackson@ximian.com>
28159
28160         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
28161         handling focus, return correct colors and fonts,
28162         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
28163         handle selection, horizontal scrolling, and mouse interaction.
28164
28165 2005-01-04  Peter Bartok <pbartok@novell.com>
28166
28167         * ICommandExecutor.cs: Added
28168         * IDataGridColumnStyleEditingNotificationService.cs: Added
28169         * IFeatureSupport.cs: Added
28170         * IFileReaderService.cs: Added
28171         * IDataObject.cs: Added ComVisible attribute
28172         * AmbientProperties.cs: Added
28173         * BaseCollection.cs: Added missing attributes
28174         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
28175         * BaseCollection.cs: Added missing attributes
28176         * Binding.cs: Added TypeConverter attribute
28177         * BindingContext.cs: Added DefaultEvent attribute
28178         * BindingsCollection.cs: Added DefaultEvent attribute
28179         * Button.cs: Added DefaultValue attribute
28180         * DragEventArgs.cs: Added ComVisible attribute
28181         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
28182         * KeyEventArgs.cs: Added ComVisible attribute
28183         * KeyPressEventArgs.cs: Added ComVisible attribute
28184         * MouseEventArgs.cs: Added ComVisible attribute
28185         * NavigateEventArgs.cs: Added
28186         * NavigateEventHandler.cs: Added
28187         * FeatureSupport.cs: Added
28188         * OSFeature.cs: Added
28189         * Theme.cs: Added abstract Version property to support OSFeature
28190         * ThemeWin32Classic.cs: Added Version property to
28191           support OSFeature.Themes
28192         * ProgressBar.cs: Removed OnPaintBackground override, not required since
28193           the proper styles to avoid background drawing are set, also doesn't
28194           match MS signature
28195         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
28196         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
28197         * ScrollEventArgs.cs: Added ComVisible attribute
28198         * SplitterEventArgs.cs: Added ComVisible attribute
28199         * AccessibleSelection.cs: Added Flags attribute
28200         * Appearance.cs: Added ComVisible attribute
28201         * Border3DSide.cs: Added ComVisible attribute
28202         * Border3DStyle.cs: Added ComVisible attribute
28203         * BorderStyle.cs: Added ComVisible attribute
28204         * DragAction.cs: Added ComVisible attribute
28205         * ErrorBlinkStyle.cs: Added
28206         * ScrollEventType.cs: Added ComVisible attribute
28207         * AnchorStyles.cs: Added Editor attribute
28208         * DockStyle.cs: Added Editor attribute
28209         * HorizontalAlignment.cs: Added ComVisible attribute
28210         * HelpEventArgs.cs: Added ComVisible attribute
28211         * PaintEventArgs.cs: Added IDisposable
28212
28213 2005-01-04  Peter Bartok <pbartok@novell.com>
28214
28215         * TextControl.cs: Switched Line, LineTag and Document classes to
28216           internal
28217
28218 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
28219
28220         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
28221         Simple mode, fixes, IntegralHeight, etc.
28222
28223 2005-01-04  Peter Bartok <pbartok@novell.com>
28224
28225         * TextBoxBase.cs: Using proper font variable now
28226
28227 2005-01-04  Peter Bartok <pbartok@novell.com>
28228
28229         * Form.cs (ShowDialog): Set parent to owner, if provided
28230         * GroupBox.cs: Removed unused vars
28231         * TextControl.cs:
28232           - Added GetHashCode() for Document and LineTag classes
28233           - Removed unused variables
28234           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
28235             to allow translation between continuous char position and line/pos
28236         * CheckBox.cs: Removed vars that are provided by base class
28237         * RadioButton.cs: Removed vars that are provided by base class, added
28238           new keyword where required
28239         * LinkLabel.cs: Added new keyword where required
28240         * Control.cs (WndProc): Removed unused variable
28241         * TextBoxBase.cs:
28242           - Finished SelectionLength property
28243           - Implemented SelectionStart property
28244           - Implemented Text property
28245           - Removed unused vars
28246         * MessageBox.cs: Added new keyword where required
28247         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
28248           WndProc signature
28249         * MenuAPI.cs: Added new keyword where required
28250         * ButtonBase.cs: Removed vars that are provided by base class, added
28251           new keyword where required
28252         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
28253           argument to double, to allow compiling with csc 2.0 (Atsushi ran
28254           into this)
28255         * Application.cs (Run): Now triggers the ThreadExit event
28256         * CommonDialog.cs: Added new keyword where required; now properly sets
28257           parent (owner) for dialog
28258         * XplatUIX11.cs: Commented out unused vars
28259         * StatusBar.cs: Fixed signature for Text property
28260         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
28261
28262 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
28263
28264         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
28265         TrackBar.cs, MonthCalendar.cs: remove unused vars
28266
28267 2005-01-03  Jackson Harper  <jackson@ximian.com>
28268
28269         * ThemeWin32Classic.cs:
28270         * X11Keyboard.cs: Remove unused vars.
28271
28272 2005-01-03  Peter Bartok  <pbartok@novell.com>
28273
28274         * TextBox.cs:
28275           - set_Text: Tied into TextControl
28276           - set_TextAlignment: Tied into TextControl
28277         * TextControl.cs:
28278           - Added alignment properties and implemented alignment handling
28279             and drawing (still has a bug, not generating proper expose events)
28280           - Added new Line() constructor to allow passing the line alignment
28281           - Fixed selection setting, properly handling end<start now
28282           - Added aligment considerations to RecalculateDocument()
28283         * TextBoxBase.cs:
28284           - Now properly enforces control height for single line controls
28285           - Added support for CharacterCasing
28286           - Added IsInputKey override
28287           - Fixed Keys.Enter logic
28288           - Added SetBoundsCore override
28289           - Fixed mouse selection handling
28290
28291 2005-01-03  Jackson Harper  <jackson@ximian.com>
28292
28293         * TreeView.cs:
28294           - Collapse and uncheck all nodes when CheckBoxes is disabled.
28295           - Checkboxes are always aligned to the bottom of the node,
28296           regardless of item height.
28297           - Use the node bounds to draw the text so we can center it when
28298           the item height is greater then the font height.
28299           - Node::Bounds are only the text part of the node.
28300         * TreeNode.cs: New method to combine collapsing and unchecking all
28301           nodes recursively.
28302
28303 2005-01-02  Jackson Harper  <jackson@ximian.com>
28304
28305         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
28306         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
28307         tree when a check is changed. TODO: Only refresh the checked node.
28308
28309 2004-12-30  Jackson Harper  <jackson@ximian.com>
28310
28311         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
28312         * TreeNode.cs: When collapsing make sure to never collapse the
28313         root node.
28314
28315 2004-12-29  Jackson Harper  <jackson@ximian.com>
28316
28317         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
28318         
28319 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
28320
28321         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
28322
28323 2004-12-28  Peter Bartok  <pbartok@novell.com>
28324
28325         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
28326           not yet assigned
28327
28328 2004-12-28  Peter Bartok  <pbartok@novell.com>
28329
28330         * Control.cs (WndProc): Added WM_HELP handler, now generates
28331           HelpRequested event
28332         * Form.cs: Added HelpButton property and required support code
28333         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
28334
28335 2004-12-28  Peter Bartok  <pbartok@novell.com>
28336
28337         * CommonDialog.cs:
28338           - Made DialogForm.owner variable internal
28339           - Added check to ensure owner form is set before setting
28340             owner properties in CreateParams
28341
28342 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
28343
28344         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
28345           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
28346           GetCursorPos.  Fix major visibility issues.  Rework the windowing
28347           system to support borderless/titleless windows (implements menus).
28348           Fix GetWindowPos.  Implement initial background color support for
28349           views.
28350
28351 2004-12-28  Peter Bartok  <pbartok@novell.com>
28352
28353         * Form.cs (get_CreateParams): Make sure we have an owner before using
28354           the owner variable. Implement proper default if no owner exists
28355
28356 2004-12-28  Peter Bartok  <pbartok@novell.com>
28357
28358         * In preparation for making Managed.Windows.Forms the default build target
28359           for System.Windows.Forms, the following stubbed files were added.
28360           Dialogs are currently being implemented by contributors and are only
28361           short-term place holders.
28362         * ColorDialog.cs: Initial check-in (minmal stub)
28363         * DataGrid.cs: Initial check-in (minimal stub)
28364         * DataGridLineStyle.cs: Initial check-in (minimal stub)
28365         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
28366         * DataGridTableStyle.cs: Initial check-in (minimal stub)
28367         * FontDialog.cs: Initial check-in (minimal stub)
28368         * FileDialog.cs: Initial check-in (minimal stub)
28369         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
28370         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
28371         * OpenFileDialog: Initial check-in (minimal stub)
28372         * IComponentEditorPageSite.cs: Initial check-in
28373         * Splitter.cs: Initial check-in (for Jackson)
28374         * SplitterEventArgs.cs: Initial check-in (for Jackson)
28375         * SplitterEventHandler.cs: Initial check-in (for Jackson)
28376         * TextBox.cs: Initial check-in; still needs some wiring to
28377           TextControl backend
28378         * Form.cs: Implemented ControlBox property
28379         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
28380         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
28381         * TextControl.cs: Added selection functionality; added todo header
28382         * TextBoxBase.cs:
28383           - Implemented Lines property
28384           - Implemented TextHeight property
28385           - Implemented SelectedText property
28386           - Implemented SelectionLength property
28387           - Implemented SelectAll method
28388           - Implemented ToString method
28389           - Removed and cleaned up some debug code
28390           - Implemented (still buggy) mouse text selection
28391
28392 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
28393
28394         * ComboBox.cs: Complete DropDownList implementation, fixes.
28395
28396 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
28397
28398         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
28399         * ComboBoxStyle.cs: ComboBoxStyle enum
28400         * ComboBox.cs: Initial work on ComboBox control
28401
28402 2004-12-21  Peter Bartok  <pbartok@novell.com>
28403
28404         * Control.cs (ctor, CreateParams): Moved setting of is_visible
28405           forward so that anything that creates a window gets the default,
28406           also no longer uses Visible property in CreateParams to avoid
28407           walking up the parent chain and possibly get the wrong visible
28408           status. Fixed IsVisible to no longer walk up to the parent.
28409
28410 2004-12-21  Peter Bartok  <pbartok@novell.com>
28411
28412         * Form.cs (ShowDialog): Unset modality for the proper window
28413  
28414 2004-12-20  Peter Bartok  <pbartok@novell.com>
28415
28416         * CommonDialog.cs: Initial check-in
28417
28418 2004-12-20  Peter Bartok  <pbartok@novell.com>
28419
28420         * Control.cs (Visible): Now uses the parent window instead of the
28421           client area window for the property
28422
28423         * Form.cs
28424           - ShowDialog(): Now uses the proper window for modality
28425           - The default visibility state for the form parent is now false. This
28426             will prevent the user from seeing all the changes to the form and
28427             its controls before the application hits Application.Run()
28428           - Removed some stale commented out code
28429
28430         * NativeWindow.cs:
28431           - Added FindWindow() method to have a method to check for existence
28432             of a window handle
28433           - Added ability to override default exception handling (for example
28434             when debugging with VS.Net; to do this the ExternalExceptionHandler
28435             define must be set
28436           - Removed some useless debug output
28437
28438         * XplatUIX11.cs:
28439           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
28440             not working as expected
28441           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
28442             property to allow switching back to the modal window if focus is
28443             given to another one of our windows (Application Modal)
28444           - Now only sets override_redirect if we create a window
28445             without WS_CAPTION
28446           - Moved EventMask selection before mapping of newly created window
28447             so we can catch the map event as well
28448           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
28449           - Added various Atom related DllImports
28450           - Implemented Exit() method
28451           - .ctor() : No longer shows window if WS_VISIBLE is not defined
28452             in the CreateParams
28453
28454         * MessageBox.cs: Now properly deals with the FormParent window by
28455           providing an override the FormParent CreateParams property to
28456           set as POPUP instead of OVERLAPPED window.
28457
28458 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
28459
28460         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
28461         Minor code cleanup.
28462
28463 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
28464         
28465         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
28466
28467 2004-12-18  Peter Bartok  <pbartok@novell.com>
28468
28469         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
28470           implementing SetModal() method
28471
28472 2004-12-18  Peter Bartok  <pbartok@novell.com>
28473
28474         * X11Structs.cs (XGCValues): Fixed type of function element
28475         * XplatUI.cs: Added ScrollWindow() method
28476         * XplatUIDriver.cs: Added ScrollWindow() abstract
28477         * XplatUIWin32.cs: Implemented ScrollWindow() method
28478         * XplatUIX11.cs: Implemented ScrollWindow() method
28479         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
28480
28481 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28482
28483         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
28484         Some more keyboard support (INCOMPLETE)
28485
28486 2004-12-17  Peter Bartok  <pbartok@novell.com>
28487
28488         * TextControl.cs:
28489         - Added color attribute to line tags.
28490         - Added color argument to all functions dealing with tags
28491         - Added color argument support to various functions
28492         - Fixed miss-calculation of baseline/shift in certain circumstances
28493
28494         * TextBoxBase.cs: Added new color option to test code
28495
28496 2004-12-17  Jackson Harper  <jackson@ximian.com>
28497
28498         * TreeNode.cs:
28499         * MonthCalendar.cs: Signature fixes
28500
28501 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28502
28503         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
28504         keyboard event moved it.  Create a new graphics context for each paint resolves this
28505
28506 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28507
28508         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
28509         Make caret exist and go blink blink.  Initial keyboard support.
28510         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
28511         works.
28512
28513 2004-12-17  Jackson Harper  <jackson@ximian.com>
28514
28515         * XplatUIStructs.cs: Updated set of virtual keycodes.
28516         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
28517
28518 2004-12-17  Jackson Harper  <jackson@ximian.com>
28519
28520         * XplatUIX11.cs: Prune old keyboard code.
28521
28522 2004-12-17  Jackson Harper  <jackson@ximian.com>
28523
28524         * XplatUIX11.cs: When generating mouse wparams get the modifier
28525         keys from the ModifierKeys property.
28526
28527 2004-12-17  Jackson Harper  <jackson@ximian.com>
28528
28529         * X11Keyboard.cs: Send up/down input when generating
28530         messages. Remove some unused vars.
28531
28532 2004-12-17  Jackson Harper  <jackson@ximian.com>
28533
28534         * TabControl.cs:
28535         * TreeView.cs: get rid of warnings.
28536
28537 2004-12-17  Jackson Harper  <jackson@ximian.com>
28538
28539         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
28540
28541 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
28542
28543         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
28544           CheckedListBox.cs: Implementation
28545
28546 2004-12-17  Peter Bartok  <pbartok@novell.com>
28547
28548         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
28549
28550 2004-12-16  Peter Bartok  <pbartok@novell.com>
28551
28552         * TextControl.cs:
28553           - InsertCharAtCaret(): Fixed start pos fixup
28554           - CaretLine_get: No longer derives the line from the tag, the tag
28555             could be stale if lines in the document have been added or deleted
28556           - RebalanceAfterDelete(): Fixed bug in balancing code
28557           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
28558           - Line.Streamline(): Now can also elminate leading empty tags
28559           - DumpTree(): Added a few more tests and prevented exception on
28560             uninitialized data
28561           - Added Debug section for Combining lines
28562           - Delete(): Now copies all remaining properties of a line
28563           
28564         * TextBoxBase.cs:
28565           - Left mousebutton now sets the caret (and middle button still acts
28566             as formatting tester, which must go away soon)
28567           - Added Debug section for Deleting/Combining lines
28568           - Fixed calculations for UpdateView after Combining lines
28569
28570 2004-12-16  Peter Bartok  <pbartok@novell.com>
28571
28572         * TextControl.cs: Now properly aligns text on a baseline, using the
28573           new XplatUI.GetFontMetrics() method. Simplified several calculations
28574         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
28575           defined
28576
28577 2004-12-16  Peter Bartok  <pbartok@novell.com>
28578
28579         * XplatUI.cs: Added GetFontMetrics() method
28580         * XplatUIDriver.cs: Added GetFontMetrics() abstract
28581         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
28582           into libgdiplus, our private GetFontMetrics function
28583         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
28584         * XplatUIWin32.cs: Implemented GetFontMetrics() method
28585
28586 2004-12-16  Jackson Harper  <jackson@ximain.com>
28587
28588         * XplatUIStruct.cs: Add enum for dead keys
28589         * X11Keyboard.cs: Map and unmap dead keys.
28590
28591 2004-12-16  Jackson Harper  <jackson@ximian.com>
28592
28593         * X11Keyboard.cs: Detect and use the num lock mask.
28594
28595 2004-12-16  Peter Bartok  <pbartok@novell.com>
28596
28597         * Control.cs (CreateGraphics): Added check to make sure the
28598           handle of the window exists before calling Graphics.FromHwnd()
28599
28600 2004-12-16  Peter Bartok  <pbartok@novell.com>
28601
28602         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
28603           contains a lot of code that's not supposed to be there for the
28604           real thing, but required for developing/testing the textbox
28605           backend.
28606
28607 2004-12-16  Peter Bartok  <pbartok@novell.com>
28608
28609         * TextControl.cs:
28610         - Fixed Streamline method
28611         - Added FindTag method to Line
28612         - Added DumpTree method for debugging
28613         - Added DecrementLines() method for deleting lines
28614         - Fixed UpdateView to update the cursor to end-of-line on single-line
28615           updates
28616         - Added PositionCaret() method
28617         - Fixed MoveCaret(LineDown) to move into the last line, too
28618         - Added InsertChar overload
28619         - Fixed InsertChar tag offset calculations
28620         - Added DeleteChar() method
28621         - Added Combine() method for folding lines
28622         - Fixed Delete() method, no longer allocates wasted Line object and
28623           now copies all properties when swapping nodes
28624         - Delete() method now updates document line counter
28625
28626 2004-12-15  Jackson Harper  <jackson@ximian.com>
28627
28628         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
28629         * X11Keyboard.cs: Expose the currently selected modifier keys
28630         through a property.
28631
28632 2004-12-15  Peter Bartok  <pbartok@novell.com>
28633
28634         * TextControl.cs: Initial check-in. Still incomplete
28635
28636 2004-12-15  Jackson Harper  <jackson@ximian.com>
28637
28638         * TreeNode.cs:
28639         * TreeView.cs: Fix build on csc (second time today ;-))
28640
28641 2004-12-15  Jackson Harper  <jackson@ximian.com>
28642
28643         * TreeView.cs: Store the treenodes plus/minus box bounds when it
28644         is calculated and use this for click testing.
28645         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
28646
28647 2004-12-15  Jackson Harper  <jackson@ximian.com>
28648
28649         * TreeView.cs: Pass the nodes image index to the image list when
28650         drawing that image.
28651
28652 2004-12-15  Jackson Harper  <jackson@ximian.com>
28653
28654         * X11Keyboard.cs: Set messages hwnd.
28655         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
28656         post_message calls.
28657
28658 2004-12-15  Jackson Harper  <jackson@ximian.com>
28659
28660         * X11Keyboard.cs: Fix to compile with csc.
28661         
28662 2004-12-15  Jackson Harper  <jackson@ximian.com>
28663
28664         * X11Structs.cs: Add key mask values
28665         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
28666         * X11Keyboard.cs: New file - Extrapolates and interpolates key
28667         down/up foo into WM_CHAR foo
28668         * KeyboardLayouts.cs: Common keyboard layouts
28669         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
28670         post messages into the main queue.
28671
28672 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
28673
28674         * Button.cs: implement ProcessMnemonic
28675         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
28676           brushes everytime
28677         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
28678         * ButtonBase.cs: Show HotkeyPrefix (not the &)
28679
28680 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
28681         
28682         * MonthCalendar.cs: Implemented click-hold for next/previous month
28683           and date selection
28684           
28685 2004-12-11  Peter Bartok  <pbartok@novell.com>
28686
28687         * X11Structs.cs:
28688           - Added XKeyboardState (moved from XplatUIX11.cs)
28689           - Added XCreateGC related enums and structures
28690           - Added GXFunction for XSetFunction
28691
28692         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
28693
28694         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
28695           CaretVisible() calls
28696
28697         * ToolTip.cs: Added code to prevent stealing focus from app windows
28698
28699         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
28700           DestroyCaret, SetCaretPos and CaretVisible)
28701
28702         * XplatUIX11.cs:
28703           - Added implementation for caret functions
28704           - Moved hover variables into a struct, to make it a bit easier
28705             on the eyes and to debug
28706           - Removed XKeyboardState (moved to XplatUIX11.cs)
28707           - Moved Keyboard properties into the properties region
28708
28709         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
28710           call to get a graphics context for our control
28711
28712         * XplatUIOSX.cs: Added empty overrides for the new caret functions
28713
28714         * TreeView.cs: Fixed bug. No matter what color was set it would always
28715           return SystemColors.Window
28716
28717         * XplatUIWin32.cs: Implemented caret overrides
28718
28719 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
28720
28721         * ListBox.cs: fire events, implement missing methods and properties,
28722         sorting.
28723
28724 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
28725
28726         * MonthCalendar.cs: invalidation bug fixing
28727         * ThemeWin32Classic.cs: paint fixing
28728
28729 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
28730
28731         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
28732         prepare the CGContextRef there now.
28733
28734 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
28735
28736         * MonthCalendar.cs:
28737           - optimisationL only invalidate areas that have changed
28738         * ThemeWin32Classic.cs:
28739           - only paint parts that intersect with clip_area
28740
28741 2004-12-09  Peter Bartok  <pbartok@novell.com>
28742
28743         * Application.cs: Undid changes from r37004 which cause problems
28744         on X11
28745
28746 2004-12-09  Ravindra  <rkumar@novell.com>
28747
28748         * ToolBar.cs: Added support for displaying ContextMenu
28749         attached to a button on ToolBar.
28750         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
28751         property.
28752
28753 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
28754
28755         * Label.cs: autosize works in text change and removes unnecessary
28756         invalidate
28757
28758 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
28759
28760         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28761         remove warnings
28762
28763 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
28764
28765         * XplatUIOSX.cs: Added mouse move/click/grab support
28766         Remove some debugging WriteLines not needed anymore.
28767         Add window resizing/positioning.
28768         Fix visibility on reparenting.
28769
28770 2004-12-08  Peter Bartok  <pbartok@novell.com>
28771
28772         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
28773
28774 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
28775
28776         * XplatUIOSX.cs: Initial checkin
28777         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
28778
28779 2004-12-03  Ravindra <rkumar@novell.com>
28780
28781         * ListView.cs: Added some keybindings and fixed scrolling.
28782         ScrollBars listen to ValueChanged event instead of Scroll
28783         Event. This would let us take care of all changes being
28784         done in the scrollbars' values programmatically or manually.
28785         * ListView.cs (CanMultiselect): Added a check for shift key.
28786         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
28787         * ListViewItem.cs (Clone): Fixed. We need to make a copy
28788         of ListViewSubItemCollection as well.
28789
28790 2004-12-06  Peter Bartok <pbartok@novell.com>
28791
28792         * Control.cs (Parent): Added check and exception to prevent
28793         circular parenting
28794
28795 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
28796
28797         * ListBox.cs: implemented clipping, selection single and multiple,
28798         bug fixing
28799
28800 2004-12-03  Ravindra <rkumar@novell.com>
28801
28802         * ListView.cs (ListView_KeyDown):
28803         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
28804         when CTRL key is pressed.
28805         * ListViewItem.cs (Selected): Fixed setting the property.
28806
28807 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
28808
28809         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
28810
28811         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
28812         MinimizeBox, ShowInTaskbar, TopMost properties.
28813
28814         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
28815         will be implemented).
28816
28817 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
28818
28819         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
28820
28821         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
28822         tests.
28823         
28824         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
28825         
28826         * TreeView.cs: BackColor is Colors.Window.
28827
28828 2004-12-01  Jackson Harper  <jackson@ximian.com>
28829
28830         * TreeView.cs: When resizing the tree if the user is making it
28831         smaller we don't get expose events, so we need to handle adding
28832         the horizontal scrollbar in the size changed handler as well as
28833         the expose handler.
28834
28835 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
28836
28837         * DrawItemState.cs: fixes wrong enum values
28838
28839 2004-12-01  Jackson Harper  <jackson@ximian.com>
28840
28841         * TreeView.cs: Resize the hbar as well as the vbar on resize.
28842
28843 2004-12-01  Jackson Harper  <jackson@ximian.com>
28844
28845         * NodeLabelEditEventArgs.cs:
28846         * NodeLabelEditEventHandler.cs:
28847         * OpenTreeNodeEnumerator.cs:
28848         * TreeNode.cs:
28849         * TreeNodeCollection.cs:
28850         * TreeView.cs:
28851         * TreeViewAction.cs:
28852         * TreeViewCancelEventArgs.cs:
28853         * TreeViewCancelEventHandler.cs:
28854         * TreeViewEventArgs.cs:
28855         * TreeViewEventHandler.cs: Initial implementation.
28856
28857 2004-12-01  Ravindra <rkumar@novell.com>
28858
28859         * ListView.cs (CalculateListView): Fixed scrolling related
28860         calculations. Also, removed some debug statements from other
28861         places.
28862         * ListViewItem.cs: Changed access to 'selected' instance variable
28863         from private to internal.
28864         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
28865
28866 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
28867
28868         * ThemeWin32Classic.cs: remove cache of brush and pens for
28869         specific controls and use the global system, fixes scrollbutton
28870         bugs (for small sizes, disabled, etc)
28871         
28872         * ScrollBar.cs: does not show the thumb for very small controls
28873         (as MS) and allow smaller buttons that the regular size
28874
28875 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
28876
28877         * UpDownBase.cs: Add abstract methods for the interface.
28878         Add new virtual methods (need to be hooked up to TextEntry when it
28879         exists).
28880         Add override methods for most features.
28881         Computes the size, forces the height of the text entry.
28882
28883         * NumericUpDown.cs: Put here the current testing code.
28884
28885         * Set eol-style property on all files that do not have mixed line
28886         endings, to minimize the future problems.  There are still a few
28887         files with mixed endings, and someone should choose whether they
28888         want to move it or not.
28889
28890 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
28891
28892         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
28893         System.Colors
28894         
28895 2004-11-30  Ravindra <rkumar@novell.com>
28896
28897         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
28898         drawing and replaced use of SystemColors by theme colors.
28899         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
28900         * ListView.cs (ListViewItemCollection.Add): Throw exception when
28901         same ListViewItem is being added more than once.
28902
28903 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
28904
28905         * MonthCalendar.cs:
28906           - ControlStyles love to make the control not flicker
28907           
28908 2004-11-30  Peter Bartok  <pbartok@novell.com>
28909
28910         * CharacterCasing.cs: Added
28911
28912 2004-11-29  Peter Bartok  <pbartok@novell.com>
28913
28914         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28915           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
28916           I am removing these files as they conflict with already completed
28917           work. While it is fantastic to get contributions to MWF, I
28918           respectfully ask that everyone please coordinate their contributions
28919           through mono-winforms-list or #mono-winforms at this time. We're
28920           explicitly avoiding stubbing and don't want controls that don't have
28921           their basic functionality implemented in svn. Please also see
28922           http://www.mono-project.com/contributing/winforms.html
28923
28924
28925 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
28926
28927         * Application.cs (ModalRun): Don't hang after exit.
28928
28929         * Theme.cs: New TreeViewDefaultSize property.
28930
28931         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
28932         with less hardcoded SystemColors constant.
28933         Implemented TreeViewDefaultSize.
28934
28935         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28936         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
28937
28938
28939 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
28940
28941         * MonthCalendar.cs:
28942           - Fix NextMonthDate and PrevMonthDate click moving calendar
28943
28944 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
28945
28946         * MonthCalendar.cs:
28947           - Fix usage of ScrollChange Property when scrolling months
28948
28949 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
28950
28951         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
28952          - Fixes menu destroying
28953          - Support adding and removing items on already created menus
28954
28955 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
28956
28957         * MonthCalendar.cs:
28958           - Re-worked all bolded dates handling to match win32
28959         * ThemeWin32Classic.cs:
28960           - Fixed rendering with bolded dates
28961
28962 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
28963
28964         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
28965         - Horizontal scroolbar
28966         - Multicolumn
28967         - Fixes
28968
28969
28970 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
28971
28972         * MonthCalendar.cs:
28973           - Fix Usage of MaxSelectionCount from SelectionRange
28974           - Fixed Shift + Cursor Selection
28975           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
28976           - Fixed normal cursor selection to be compat with win32
28977           - Fixed Shift + Mouse Click selection
28978
28979 2004-11-24  Peter Bartok <pbartok@novell.com>
28980
28981         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
28982         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
28983         * XplatUIX11.cs:
28984           - CreatedKeyBoardMsg now updates keystate with Alt key
28985           - Added workaround for timer crash to CheckTimers, Jackson will
28986             develop a proper fix and check in later
28987           - Implemented DispatchMessage
28988           - Removed calling the native window proc from GetMessage (call
28989             now moved to DispatchMessage)
28990
28991         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
28992           the keydata (Fixes bug #69831)
28993
28994         * XplatUIWin32.cs:
28995           - (DispatchMessage): Switched to return IntPtr
28996           - Added DllImport for SetFocus
28997
28998 2004-11-24  Ravindra <rkumar@novell.com>
28999
29000         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
29001         background drawing.
29002         * ListViewItem.cs: Fixed various properties, calculations
29003         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
29004         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
29005         and some internal properties. Fixed MouseDown handler and Paint
29006         method.
29007
29008 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
29009
29010         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
29011
29012 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
29013
29014         * ContainerControl.cs: correct accidental check in of local changes
29015
29016 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
29017
29018         * ThemeWin32Classic.cs:
29019                 - Fixed Drawing Last month in grid (sometimes not showing)
29020         * MonthCalendar.cs:
29021                 - Fixed title width calculation bug (makeing title small)
29022
29023 2004-11-23  Peter Bartok <pbartok@novell.com>
29024
29025         * XplatUIX11.cs:
29026           - Added generation of WM_MOUSEHOVER event
29027           - Added missing assignment of async_method atom
29028           - Fixed WM_ERASEBKGND; now only redraws the exposed area
29029
29030 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
29031
29032         * ThemeWin32Classic.cs:
29033                 - Fixed Drawing of today circle when showtodaycircle not set
29034                 - fixed drawing of first and last month in the grid (gay dates)
29035         * MonthCalendar.cs:
29036                 - Fixed Drawing of today circle
29037                 - Fixed drawing of grady dates
29038                 - Fixed HitTest for today link when ShowToday set to false
29039                 - Fixed DefaultSize to obey ShowToday
29040
29041 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
29042
29043         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
29044         * System.Windows.Forms/Theme.cs
29045         * MonthCalendar.cs: added for MonthCalendar
29046         * SelectionRange.cs: added for MonthCalendar
29047         * Day.cs: added for MonthCalendar: added for MonthCalendar
29048         * DateRangeEventArgs.cs: added for MonthCalendar
29049         * DateRangeEventHandler.cs: added for MonthCalendar
29050
29051 2004-11-22  Ravindra <rkumar@novell.com>
29052
29053         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
29054         property.
29055
29056 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
29057
29058         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
29059         event handler.
29060         
29061         * NumericUpDown.cs: Added new implementation.
29062         * UpDownBase.cs: Added new implementation.
29063
29064         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
29065         implementations.
29066         
29067         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
29068         implementations.
29069
29070         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
29071         methods.
29072
29073 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
29074
29075         * Timer.cs  (Dispose): Should call the base dispose when
29076         overriding.
29077
29078 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
29079
29080         * ScrollBar.cs: updates thumb position when max, min or increment
29081         is changed
29082
29083 2004-11-21  Ravindra <rkumar@novell.com>
29084
29085         * ListView.cs: Implemented item selection, activation and
29086         column header style. Fixed properties to do a redraw, if
29087         required. Added support for MouseHover, DoubleClick, KeyDown
29088         and KeyUp event handling and some minor fixes.
29089         * ListViewItem.cs: Fixed constructor.
29090         * ThemeWin32Classic.cs: Improved drawing for ListView.
29091
29092 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
29093
29094         * ThemeWin32Classic.cs: initial listbox drawing code
29095         * DrawMode.cs: new enumerator
29096         * ListControl.cs: stubbed class
29097         * ListBox.cs: initial implementation
29098         * Theme.cs: new methods definitions
29099         * SelectionMode.cs: new enumerator
29100
29101 2004-11-17  Peter Bartok  <pbartok@novell.com>
29102
29103         * XplatUIWin32.cs: Added double-click events to the class style
29104         * Control.cs (WndProc):
29105           - Added handling of click-count to MouseDown/ MouseUp events.
29106           - Added handling of middle and right mouse buttons
29107           - Removed old debug code
29108
29109 2004-11-17  Jackson Harper  <jackson@ximian.com>
29110
29111         * XplatUIX11.cs: Use the new Mono.Unix namespace.
29112
29113 2004-11-17  Ravindra <rkumar@novell.com>
29114
29115         * ListView.cs: Added event handling for MouseMove/Up/Down.
29116         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
29117         * ThemeWin32Classic.cs: We need to clear the graphics context and
29118         draw column header in a proper state.
29119
29120
29121 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
29122
29123         *  Menu.cs: fixes signature
29124
29125 2004-11-16  Peter Bartok  <pbartok@novell.com>
29126
29127         * XplatUIX11.cs (GetMessage): Implemented generation of
29128           double click mouse messages
29129
29130 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
29131
29132         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
29133         not by menu
29134
29135 2004-11-11  Peter Bartok  <pbartok@novell.com>
29136
29137         * HandleData.cs: Added Visible property
29138         * XplatUIX11.cs (IsVisible): Now uses Visible property from
29139           HandleData
29140         * XplatUIX11.cs: Removed old debug leftovers
29141         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
29142         * Control.cs (WndProc): Removed old debug leftovers,
29143           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
29144           needed WM_SIZE handling
29145
29146 2004-11-11  Jackson Harper  <jackson@ximian.com>
29147
29148         * OwnerDrawPropertyBag.cs:
29149         * TreeViewImageIndexConverter.cs: Initial implementation
29150
29151 2004-11-10  Jackson Harper  <jackson@ximian.com>
29152
29153         * ThemeWin32Classic.cs:
29154         * TabControl.cs: instead of moving tabs by the slider pos just
29155         start drawing at the tab that is offset by the slider. This way
29156         scrolling always moves by exactly one tab.
29157
29158 2004-11-10  Jackson Harper  <jackson@ximian.com>
29159
29160         * TabControl.cs: You can only scroll left when the slider has
29161         already ben moved right.
29162         
29163 2004-11-10  Jackson Harper  <jackson@ximian.com>
29164
29165         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
29166         the clip area.
29167         
29168 2004-11-10  Jackson Harper  <jackson@ximian.com>
29169
29170         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
29171         clip area.
29172         
29173 2004-11-09  Jackson Harper  <jackson@ximian.com>
29174
29175         * TabControl.cs (CalcXPos): New helper method so we can determine
29176         the proper place to start drawing vertical tabs.
29177         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
29178         
29179 2004-11-09  Jackson Harper  <jackson@ximian.com>
29180
29181         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
29182         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
29183         and Bottom, left and right are illegal values for this and
29184         multiline is enabled when the alignment is set to left or right.
29185         (DrawTab): Each alignment block should draw the text itself now
29186         because Left requires special love. Also add rendering for Left
29187         aligned tabs.
29188         
29189 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
29190
29191         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
29192         does not destroy the windows, removes debugging messages
29193
29194 2004-11-09  jba  <jba-mono@optusnet.com.au>
29195
29196         * ThemeWin32Classic.cs
29197         (DrawButtonBase): Fix verticle text rect clipping in windows
29198         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29199         rendering and incorrect text rect clipping
29200         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29201         rendering and incorrect text rect clipping
29202         
29203 2004-11-08  Jackson Harper  <jackson@ximian.com>
29204
29205         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
29206         bottom when they are bottom aligned so the bottoms of the tabs get
29207         displayed.
29208         * TabControl.cs (DropRow): Move rows up instead of down when the
29209         tab control is bottom aligned.
29210
29211 2004-11-08 13:59  pbartok
29212
29213         * XplatUIX11.cs:
29214           - Added handling for various window styles
29215           - Added handling for popup windows
29216           - Added SetTopmost handling
29217
29218 2004-11-08 13:55  pbartok
29219
29220         * XplatUIWin32.cs:
29221           - Added argument to SetTopmost method
29222           - Fixed broken ClientToScreen function
29223
29224 2004-11-08 13:53  pbartok
29225
29226         * XplatUIStructs.cs:
29227           - Added missing WS_EX styles
29228
29229 2004-11-08 13:53  pbartok
29230
29231         * XplatUI.cs, XplatUIDriver.cs:
29232           - Added argument to SetTopmost
29233
29234 2004-11-08 13:52  pbartok
29235
29236         * X11Structs.cs:
29237           - Added XSetWindowAttributes structure
29238           - Improved XWindowAttributes structure
29239           - Added SetWindowValuemask enum
29240           - Added window creation arguments enum
29241           - Added gravity enum
29242           - Added Motif hints structure
29243           - Added various Motif flags and enums
29244           - Added PropertyMode enum for property functions
29245
29246 2004-11-08 13:50  pbartok
29247
29248         * Form.cs:
29249           - Fixed arguments for updated SetTopmost method
29250
29251 2004-11-08 13:49  pbartok
29252
29253         * ToolTip.cs:
29254           - Fixed arguments for updated SetTopmost function
29255           - Fixed usage of PointToClient
29256
29257 2004-11-08 13:44  pbartok
29258
29259         * MenuAPI.cs:
29260           - Added Clipping of children and siblings
29261
29262 2004-11-08 13:41  pbartok
29263
29264         * MainMenu.cs:
29265           - Removed SetMenuBarWindow call. We do this in Form.cs
29266
29267 2004-11-08 13:40  jackson
29268
29269         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
29270           scrolling jimmi in the correct location with bottom aligned tabs
29271
29272 2004-11-08 13:36  pbartok
29273
29274         * ContainerControl.cs:
29275           - Implemented BindingContext
29276           - Implemented ParentForm
29277
29278 2004-11-08 12:46  jackson
29279
29280         * TabControl.cs: Put bottom rendered tabs in the right location
29281
29282 2004-11-08 07:15  jordi
29283
29284         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
29285           removes dead code
29286
29287 2004-11-05 17:30  jackson
29288
29289         * TabControl.cs: When selected tabs are expanded make sure they
29290           don't go beyond the edges of the tab control
29291
29292 2004-11-05 14:57  jackson
29293
29294         * TabControl.cs: Reset show_slider so if the control is resized to
29295           a size where it is no longer needed it's not displayed anymore
29296
29297 2004-11-05 13:16  jackson
29298
29299         * TabControl.cs: Make tab pages non visible when added to the
29300           control
29301
29302 2004-11-05 12:42  jackson
29303
29304         * TabControl.cs: Implement SizeMode.FillToRight
29305
29306 2004-11-05 12:16  jackson
29307
29308         * Control.cs: Do not call CreateHandle if the handle is already
29309           created
29310
29311 2004-11-05 11:46  jackson
29312
29313         * TabControl.cs: Remove superflous call to CalcTabRows
29314
29315 2004-11-05 09:07  jackson
29316
29317         * XplatUIX11.cs: Update for Mono.Posix changes
29318
29319 2004-11-05 07:00  ravindra
29320
29321         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
29322           scrolling.
29323
29324 2004-11-04 22:47  jba
29325
29326         * ThemeWin32Classic.cs:
29327           - Fix Button rendering for FlatStyle = Flat or Popup
29328           - Fix RadioButton and CheckBox rendering when Appearance = Button
29329             (normal and flatstyle).
29330           - Correct outer rectangle color when drawing focus rectangle
29331           - Adjust button bounds to be 1 px smaller when focused
29332           - Make button not draw sunken 3d border when pushed (windows compat)
29333           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
29334           - Offset the text in RadioButton and Checkbox when being rendered as
29335           a button.
29336           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
29337           radiobuttons
29338           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
29339           - Fixed disabled text rendering for normally rendered radiobuttons
29340
29341 2004-11-04 10:26  jackson
29342
29343         * TabControl.cs: Recalculate tab rows when resizing
29344
29345 2004-11-04 07:47  jordi
29346
29347         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
29348           collection completion, drawing issues, missing features
29349
29350 2004-11-04 05:03  ravindra
29351
29352         * ScrollBar.cs:
29353                 - We need to recalculate the Thumb area when
29354                 LargeChange/maximum/minimum values are changed.
29355           - We set the 'pos' in UpdatePos() method to minimum, if it's less
29356                 than minimum. This is required to handle the case if large_change is
29357                 more than max, and use LargeChange property instead of large_change
29358                 variable.
29359           - We return max+1 when large_change is more than max, like MS does.
29360
29361 2004-11-04 04:29  ravindra
29362
29363         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
29364                 - Changed default value signatures (prefixed all with ListView).
29365                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
29366                 ListView.
29367           - Fixed calculations for ListViewItem and implemented Clone()
29368           method.
29369
29370 2004-11-04 04:26  ravindra
29371
29372         * Theme.cs, ThemeWin32Classic.cs:
29373                 - Changed default ListView values signatures (prefixed all with
29374                 ListView).
29375           - Fixed default size values for VScrollBar and HScrollBar.
29376                 - Fixed DrawListViewItem method.
29377
29378 2004-11-04 04:05  ravindra
29379
29380         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
29381
29382 2004-11-04 04:04  ravindra
29383
29384         * ImageList.cs: Implemented the missing overload for Draw method.
29385
29386 2004-11-03 19:29  jackson
29387
29388         * TabControl.cs: Handle dropping rows on selection properly
29389
29390 2004-11-03 11:59  jackson
29391
29392         * TabControl.cs: remove debug code
29393
29394 2004-11-03 11:52  jackson
29395
29396         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
29397           the scrolly widgerywoo
29398
29399 2004-11-02 13:52  jackson
29400
29401         * TabControl.cs: Resize the tab pages and tabs when the tab control
29402           is resized
29403
29404 2004-11-02 13:40  jackson
29405
29406         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
29407           selected tab to the bottom
29408
29409 2004-11-02 13:39  jackson
29410
29411         * TabPage.cs: Store the tab pages row
29412
29413 2004-11-02 12:33  jordi
29414
29415         * MenuItem.cs: fixes handle creation
29416
29417 2004-11-02 11:42  jackson
29418
29419         * TabControl.cs: signature fix
29420
29421 2004-11-02 08:56  jackson
29422
29423         * TabControl.cs: Calculate whether the tab is on an edge properly.
29424           Remove top secret debugging code
29425
29426 2004-11-01 19:57  jackson
29427
29428         * TabControl.cs: Add click handling, and proper sizing
29429
29430 2004-11-01 19:47  jackson
29431
29432         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
29433           tab controls
29434
29435 2004-11-01 19:39  jackson
29436
29437         * TabPage.cs: add internal property to store the bounds of a tab
29438           page
29439
29440 2004-10-30 04:23  ravindra
29441
29442         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
29443           values.
29444
29445 2004-10-30 04:21  ravindra
29446
29447         * ListView.cs, ListViewItem.cs: Added support for scrolling and
29448           fixed calculations.
29449
29450 2004-10-30 03:06  pbartok
29451
29452         * XplatUIX11.cs:
29453           - Removed extension of DllImported libs
29454
29455 2004-10-29 09:55  jordi
29456
29457         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
29458           navigation, itemcollection completion, menu fixes
29459
29460 2004-10-27 22:58  pbartok
29461
29462         * XplatUIX11.cs:
29463           - Now throws a nice error message when no X display could be opened
29464
29465 2004-10-26 13:51  jordi
29466
29467         * ListView.cs: removes warning
29468
29469 2004-10-26 03:55  ravindra
29470
29471         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
29472           ThemeWin32Classic.cs: Some formatting for my last checkins.
29473
29474 2004-10-26 03:36  ravindra
29475
29476         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
29477           control and default values.
29478
29479 2004-10-26 03:35  ravindra
29480
29481         * Theme.cs: Added some default values for ListView control.
29482
29483 2004-10-26 03:33  ravindra
29484
29485         * ToolBar.cs: ToolBar should use the user specified button size, if
29486           there is any. Added a size_specified flag for the same.
29487
29488 2004-10-26 03:33  ravindra
29489
29490         * ColumnHeader.cs: Added some internal members and calculations for
29491           ColumnHeader.
29492
29493 2004-10-26 03:32  ravindra
29494
29495         * ListViewItem.cs: Calculations for ListViewItem.
29496
29497 2004-10-26 03:31  ravindra
29498
29499         * ListView.cs: Added some internal members and calculations for
29500           ListView.
29501
29502 2004-10-22 13:31  jordi
29503
29504         * MenuAPI.cs: speedup menus drawing
29505
29506 2004-10-22 13:16  jackson
29507
29508         * XplatUIX11.cs: Make sure to update exposed regions when adding an
29509           expose event
29510
29511 2004-10-22 11:49  jackson
29512
29513         * Control.cs: oops
29514
29515 2004-10-22 11:41  jackson
29516
29517         * Control.cs: Check to see if the window should have its background
29518           repainted by X when drawing.
29519
29520 2004-10-22 11:31  jackson
29521
29522         * XplatUIX11.cs: When invalidating areas only use XClearArea if
29523           clear is true, this way we do not get flicker from X repainting the
29524           background
29525
29526 2004-10-22 11:28  jackson
29527
29528         * XEventQueue.cs: Queue properly
29529
29530 2004-10-21 09:38  jackson
29531
29532         * XEventQueue.cs: Fix access modifier
29533
29534 2004-10-21 09:36  jackson
29535
29536         * XEventQueue.cs: Don't loose messages
29537
29538 2004-10-21 09:22  jackson
29539
29540         * XEventQueue.cs: Don't loose messages
29541
29542 2004-10-20 04:15  jordi
29543
29544         * BootMode.cs: enum need it by SystemInfo
29545
29546 2004-10-19 21:58  pbartok
29547
29548         * XplatUIWin32.cs:
29549           - Small sanity check
29550
29551 2004-10-19 21:56  pbartok
29552
29553         * Form.cs:
29554           - Added private FormParentWindow class which acts as the container
29555             for our form and as the non-client area where menus are drawn
29556           - Added/Moved required tie-ins to Jordi's menus
29557           - Fixed/Implemented the FormStartPosition functionality
29558
29559 2004-10-19 21:52  pbartok
29560
29561         * Control.cs:
29562           - Removed unneeded locals
29563           - Added code to all size and location properties to understand and
29564             deal with the parent container of Form
29565
29566 2004-10-19 21:33  pbartok
29567
29568         * Application.cs:
29569           - Fixed to deal with new Form subclasses for menus
29570
29571 2004-10-19 17:48  jackson
29572
29573         * XEventQueue.cs: commit correct version of file
29574
29575 2004-10-19 16:50  jackson
29576
29577         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
29578
29579 2004-10-19 16:15  jordi
29580
29581         * MenuAPI.cs: MenuBarCalcSize returns the height
29582
29583 2004-10-19 08:31  pbartok
29584
29585         * Control.cs:
29586           - Added missing call to PreProcessMessage before calling OnXXXKey
29587           methods
29588
29589 2004-10-19 00:04  ravindra
29590
29591         * ToolTip.cs: Fixed constructor.
29592
29593 2004-10-18 09:31  jordi
29594
29595         * MenuAPI.cs: menuitems in menubars do not have shortcuts
29596
29597 2004-10-18 09:26  jordi
29598
29599         * MenuItem.cs: fixes MenuItem class signature
29600
29601 2004-10-18 08:56  jordi
29602
29603         * MenuAPI.cs: prevents windows from showing in the taskbar
29604
29605 2004-10-18 00:28  ravindra
29606
29607         * ToolTip.cs: Suppressed a warning message.
29608
29609 2004-10-18 00:27  ravindra
29610
29611         * Control.cs: Default value of visible property must be true.
29612
29613 2004-10-17 23:19  pbartok
29614
29615         * ToolTip.cs:
29616           - Complete implementation
29617
29618 2004-10-17 23:19  pbartok
29619
29620         * XplatUIX11.cs:
29621           - Added EnableWindow method
29622           - Added SetModal stub
29623           - Added generation of WM_ACTIVATE message (still needs testing)
29624           - Added SetTopMost stub
29625           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
29626
29627 2004-10-17 23:17  pbartok
29628
29629         * XplatUIWin32.cs:
29630           - Removed VirtualKeys to XplatUIStructs
29631           - Implemented SetTopMost method
29632           - Implemented EnableWindow method
29633           - Bugfix in ScreenToClient()
29634           - Bugfixes in ClientToScreen()
29635
29636 2004-10-17 22:51  pbartok
29637
29638         * XplatUIStructs.cs:
29639           - Added WS_EX styles to WindowStyles enumeration
29640
29641 2004-10-17 22:50  pbartok
29642
29643         * XplatUI.cs, XplatUIDriver.cs:
29644           - Added method for enabling/disabling windows
29645           - Added method for setting window modality
29646           - Added method for setting topmost window
29647
29648 2004-10-17 22:49  pbartok
29649
29650         * ThemeWin32Classic.cs:
29651           - Added ToolTip drawing code
29652
29653 2004-10-17 22:49  pbartok
29654
29655         * Theme.cs:
29656           - Added ToolTip abstracts
29657
29658 2004-10-17 22:47  pbartok
29659
29660         * Form.cs:
29661           - Fixed Form.ControlCollection to handle owner relations
29662           - Added Owner/OwnedForms handling
29663           - Implemented Z-Ordering for owned forms
29664           - Removed unneeded private overload of ShowDialog
29665           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
29666             so I hope)
29667           - Fixed Close(), had wrong default
29668           - Added firing of OnLoad event
29669           - Added some commented out debug code for Ownership handling
29670
29671 2004-10-17 22:16  pbartok
29672
29673         * Control.cs:
29674           - Fixed/implemented flat list of controls
29675
29676 2004-10-17 22:14  pbartok
29677
29678         * Application.cs:
29679           - Added code to simulate modal dialogs on Win32
29680
29681 2004-10-17 16:11  jordi
29682
29683         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
29684           mouse event
29685
29686 2004-10-17 13:39  jordi
29687
29688         * MenuAPI.cs: menu drawing fixes
29689
29690 2004-10-15 09:10  ravindra
29691
29692         * StructFormat.cs: General Enum.
29693
29694 2004-10-15 09:09  ravindra
29695
29696         * SizeGripStyle.cs: Enum for Form.
29697
29698 2004-10-15 09:08  ravindra
29699
29700         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
29701           in Theme for ListView.
29702
29703 2004-10-15 09:06  ravindra
29704
29705         * ColumnHeader.cs: Flushing some formatting changes.
29706
29707 2004-10-15 09:05  ravindra
29708
29709         * ListViewItem.cs: Implemented GetBounds method and fixed coding
29710           style.
29711
29712 2004-10-15 09:03  ravindra
29713
29714         * ListView.cs: Implemented Paint method and fixed coding style.
29715
29716 2004-10-15 07:34  jordi
29717
29718         * MenuAPI.cs: fix for X11
29719
29720 2004-10-15 07:32  ravindra
29721
29722         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
29723                 - Renamed Paint() method to Draw() for clarity. Also, moved
29724                 DrawImage() to OnPaint().
29725
29726 2004-10-15 07:25  ravindra
29727
29728         * CheckBox.cs, RadioButton.cs:
29729                 - Removed Redraw (), we get it from ButtonBase.
29730                 - Implemented Paint (), to do class specific painting.
29731
29732 2004-10-15 07:16  ravindra
29733
29734         * ButtonBase.cs:
29735                 - Redraw () is not virtual now.
29736                 - Added an internal virtual method Paint (), so that
29737                 derived classes can do their painting on their own.
29738                 - Modified OnPaint () to call Paint ().
29739
29740 2004-10-15 06:43  jordi
29741
29742         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
29743           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
29744
29745 2004-10-15 00:30  ravindra
29746
29747         * MessageBox.cs:
29748                 - MessageBox on windows does not have min/max buttons.
29749                 This change in CreateParams fixes this on Windows. We
29750                 still need to implement this windowstyle behavior in
29751                 our X11 driver.
29752
29753 2004-10-14 05:14  ravindra
29754
29755         * ToolBar.cs:
29756                 - Changed Redraw () to do a Refresh () always.
29757                 - Fixed the MouseMove event handling when mouse is pressed,
29758                 ie drag event handling.
29759                 - Replaced the usage of ToolBarButton.Pressed property to
29760                 ToolBarButton.pressed internal variable.
29761
29762 2004-10-14 05:10  ravindra
29763
29764         * ToolBarButton.cs:
29765                 - Added an internal member 'inside' to handle mouse move
29766                 with mouse pressed ie mouse drag event.
29767                 - Changed 'Pressed' property to return true only when
29768                 'inside' and 'pressed' are both true.
29769                 - Some coding style love.
29770
29771 2004-10-14 00:17  ravindra
29772
29773         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
29774           public method.
29775
29776 2004-10-14 00:15  ravindra
29777
29778         * ButtonBase.cs: Redraw () related improvements.
29779
29780 2004-10-14 00:14  ravindra
29781
29782         * MessageBox.cs: Moved InitFormSize () out of Paint method and
29783           removed unnecessary calls to Button.Show () method.
29784
29785 2004-10-13 17:50  pbartok
29786
29787         * XplatUIX11.cs:
29788           - Formatting fix
29789           - Removed destroying of window until we solve the problem of X
29790             destroying the window before us on shutdown
29791
29792 2004-10-13 16:32  pbartok
29793
29794         * ButtonBase.cs:
29795           - Now Redraws on MouseUp for FlatStyle Flat and Popup
29796
29797 2004-10-13 14:18  pbartok
29798
29799         * XplatUIX11.cs:
29800           - Added code to destroy the X window
29801
29802 2004-10-13 14:18  pbartok
29803
29804         * XplatUIWin32.cs:
29805           - Added code to destroy a window
29806
29807 2004-10-13 14:12  pbartok
29808
29809         * ButtonBase.cs:
29810           - Added the Redraw on Resize that got dropped in the last rev
29811
29812 2004-10-13 09:06  pbartok
29813
29814         * ThemeWin32Classic.cs:
29815           - Path from John BouAntoun:
29816             * Fix check rendering (centre correctly for normal style, offset
29817               correctly for FlatStyle).
29818             * Fix border color usage (use backcolor) for FlatStyle.Popup
29819             * Use checkbox.Capture instead of checkbox.is_pressed when
29820               rendering flatstyle states.
29821
29822 2004-10-12 21:48  pbartok
29823
29824         * ThemeWin32Classic.cs:
29825           - Removed all occurences of SystemColors and replaced them with the
29826             matching theme color
29827
29828 2004-10-12 21:41  pbartok
29829
29830         * ThemeWin32Classic.cs:
29831           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
29832             him using the function for flatstyle drawing
29833           - Changed functions to use the new version of CPDrawBorder3D
29834
29835 2004-10-12 21:15  pbartok
29836
29837         * ControlPaint.cs:
29838           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
29839             match MS documentation. They need to return defined colors if the
29840             passed color matches the configured control color. Thanks to John
29841             BouAntoun for pointing this out.
29842
29843 2004-10-12 20:57  pbartok
29844
29845         * Control.cs:
29846           - Fix from John BouAntoun: Raise ForeColorChanged event when text
29847             color is changed
29848
29849 2004-10-12 20:46  pbartok
29850
29851         * CheckBox.cs:
29852           - Fix from John BouAntoun: Now properly sets the Appearance property
29853
29854 2004-10-12 20:45  pbartok
29855
29856         * ThemeWin32Classic.cs:
29857           - Fixes from John BouAntoun: now handles forecolors and backcolors
29858             for flatstyle rendered controls much better; It also fixes normal
29859             checkbox rendering when pushed or disabled.
29860
29861 2004-10-08 02:50  jordi
29862
29863         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
29864           work
29865
29866 2004-10-07 08:56  jordi
29867
29868         * ThemeWin32Classic.cs: Removes deletion of cached brushes
29869
29870 2004-10-06 03:59  jordi
29871
29872         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
29873           XplatUIWin32.cs: removes warnings from compilation
29874
29875 2004-10-05 12:23  jackson
29876
29877         * RadioButton.cs: Fix ctor
29878
29879 2004-10-05 11:10  pbartok
29880
29881         * MessageBox.cs:
29882           - Partial implementation by Benjamin Dasnois
29883
29884 2004-10-05 10:15  jackson
29885
29886         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
29887           by John BouAntoun
29888
29889 2004-10-05 03:07  ravindra
29890
29891         * ToolBar.cs:
29892                 - Removed a private method, Draw ().
29893                 - Fixed the ButtonDropDown event handling.
29894                 - Fixed MouseMove event handling.
29895
29896 2004-10-05 03:04  ravindra
29897
29898         * ThemeWin32Classic.cs:
29899                 - Added DrawListView method and ListViewDefaultSize property.
29900                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
29901                 - Changed DOS style CRLF to Unix format (dos2unix).
29902
29903 2004-10-05 03:03  ravindra
29904
29905         * Theme.cs:
29906                 - Added DrawListView method and ListViewDefaultSize property.
29907
29908 2004-10-05 02:42  ravindra
29909
29910         * ToolBarButton.cs: Added an internal member dd_pressed to handle
29911           clicks on DropDown arrow.
29912
29913 2004-10-04 22:56  jackson
29914
29915         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
29916           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
29917           Control handle the buffers, derived classes should not have to
29918           CreateBuffers themselves.
29919
29920 2004-10-04 21:20  jackson
29921
29922         * StatusBar.cs: The control handles resizing the buffers now.
29923
29924 2004-10-04 21:18  jackson
29925
29926         * Control.cs: When resizing the buffers should be invalidated. This
29927           should be handled in Control not in derived classes.
29928
29929 2004-10-04 14:45  jackson
29930
29931         * TabPage.cs: oops
29932
29933 2004-10-04 02:14  pbartok
29934
29935         * LeftRightAlignment.cs:
29936           - Initial check-in
29937
29938 2004-10-04 01:09  jordi
29939
29940         * ThemeWin32Classic.cs: fixes right button position causing right
29941           button not showing on horizontal scrollbars
29942
29943 2004-10-02 13:12  pbartok
29944
29945         * XplatUIX11.cs:
29946           - Simplified the Invalidate method by using an X call instead of
29947             generating the expose ourselves
29948           - Added an expose when the window background is changed
29949           - Implemented ClientToScreen method
29950
29951 2004-10-02 13:08  pbartok
29952
29953         * XplatUIWin32.cs:
29954           - Added Win32EnableWindow method (test for implementing modal
29955           dialogs)
29956           - Added ClientToScreen method and imports
29957
29958 2004-10-02 13:07  pbartok
29959
29960         * XplatUI.cs, XplatUIDriver.cs:
29961           - Added ClientToScreen coordinate translation method
29962
29963 2004-10-02 13:06  pbartok
29964
29965         * KeyPressEventArgs.cs:
29966           - Fixed access level for constructor
29967
29968 2004-10-02 13:06  pbartok
29969
29970         * NativeWindow.cs:
29971           - Changed access level for the window_collection hash table
29972
29973 2004-10-02 13:05  pbartok
29974
29975         * Form.cs:
29976           - Added KeyPreview property
29977           - Added Menu property (still incomplete, pending Jordi's menu work)
29978           - Implemented ProcessCmdKey
29979           - Implemented ProcessDialogKey
29980           - Implemented ProcessKeyPreview
29981
29982 2004-10-02 13:02  pbartok
29983
29984         * Control.cs:
29985           - Added private method to get the Control object from the window
29986           handle
29987           - Implemented ContextMenu property
29988           - Implemented PointToScreen
29989           - Implemented PreProcessMessage
29990           - Implemented IsInputChar
29991           - Implemented IsInputKey
29992           - Implemented ProcessCmdKey
29993           - Completed ProcessKeyEventArgs
29994           - Fixed message loop to call the proper chain of functions on key
29995           events
29996           - Implemented ProcessDialogChar
29997           - Implemented ProcessDialogKey
29998           - Implemented ProcessKeyMessage
29999           - Implemented ProcessKeyPreview
30000           - Added RaiseDragEvent stub (MS internal method)
30001           - Added RaiseKeyEvent stub (MS internal method)
30002           - Added RaiseMouseEvent stub (MS Internal method)
30003           - Added RaisePaintEvent stub (MS Internal method)
30004           - Added ResetMouseEventArgs stub (MS Internal method)
30005           - Implemented RtlTranslateAlignment
30006           - Implemented RtlTranslateContent
30007           - Implemented RtlTranslateHorizontal
30008           - Implemented RtlTranslateLeftRight
30009           - Added generation of KeyPress event
30010
30011 2004-10-02 05:57  ravindra
30012
30013         * ListViewItem.cs: Added attributes.
30014
30015 2004-10-02 05:32  ravindra
30016
30017         * ListView.cs: Added attributes.
30018
30019 2004-10-01 11:53  jackson
30020
30021         * Form.cs: Implement the Close method so work on MessageBox can
30022           continue.
30023
30024 2004-09-30 14:06  pbartok
30025
30026         * XplatUIX11.cs:
30027           - Bug fixes
30028
30029 2004-09-30 11:34  jackson
30030
30031         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
30032
30033 2004-09-30 07:26  ravindra
30034
30035         * ListViewItemConverter.cs: Converter for ListViewItem.
30036
30037 2004-09-30 07:26  ravindra
30038
30039         * SortOrder.cs: Enum for ListView control.
30040
30041 2004-09-30 07:25  ravindra
30042
30043         * ColumnHeader.cs: Supporting class for ListView control.
30044
30045 2004-09-30 07:24  ravindra
30046
30047         * ListView.cs, ListViewItem.cs: Initial implementation.
30048
30049 2004-09-30 07:20  ravindra
30050
30051         * ItemActivation.cs: Enum for ListView Control.
30052
30053 2004-09-29 20:29  pbartok
30054
30055         * XplatUIX11.cs:
30056           - Added lookup of pixel value for background color; tries to get a
30057             color 'close' to the requested color, it avoids having to create a
30058             colormap.  Depending on the display this could mean the used color
30059             is slightly off the desired color. Might have to change it to a more
30060             resource intensive colormap approach, but it will work as a
30061           workaround to avoid red screens.
30062
30063 2004-09-29 14:27  jackson
30064
30065         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
30066
30067 2004-09-28 12:44  pbartok
30068
30069         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
30070           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
30071           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
30072           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
30073           TrackBar.cs, VScrollBar.cs:
30074           - Streamlined Theme interfaces:
30075             * Each DrawXXX method for a control now is passed the object for
30076               the control to be drawn in order to allow accessing any state the
30077               theme might require
30078
30079             * ControlPaint methods for the theme now have a CP prefix to avoid
30080               name clashes with the Draw methods for controls
30081
30082             * Every control now retrieves it's DefaultSize from the current
30083             theme
30084
30085 2004-09-28 12:17  jackson
30086
30087         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
30088           drawing
30089
30090 2004-09-24 14:57  jackson
30091
30092         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
30093           Gives us a nice little performance boost.
30094
30095 2004-09-24 12:02  jackson
30096
30097         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
30098           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
30099           Control and supporting classes. Initial checkin
30100
30101 2004-09-23 13:08  jackson
30102
30103         * Form.cs: Temp build fixage
30104
30105 2004-09-23 01:39  ravindra
30106
30107         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
30108           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
30109           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
30110           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
30111           EventHandlers needed by ListView Control.
30112
30113 2004-09-22 14:12  pbartok
30114
30115         * ScrollableControl.cs:
30116           - Implemented DockPadding property
30117           - Implemented AutoScroll property
30118           - Implemented AutoScrollMargin property
30119           - Implemented AutoScrollMinSize property
30120           - Implemented AutoScrollPosition property
30121           - Implemented DisplayRectangle property (still incomplete)
30122           - Implemented CreateParams property
30123           - Implemented HScroll property
30124           - Implemented VScroll property
30125           - Implemented OnVisibleChanged property
30126
30127 2004-09-22 14:09  pbartok
30128
30129         * Form.cs:
30130           - Added Form.ControllCollection class
30131           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
30132             RemoveOwnedForm (still incomplete, missing on-top and common
30133             minimize/maximize behaviour)
30134           - Added StartPosition property (still incomplete, does not use when
30135             creating the form)
30136           - Added ShowDialog() methods (still incomplete, missing forcing the
30137             dialog modal)
30138
30139 2004-09-22 14:05  pbartok
30140
30141         * Application.cs:
30142           - Added message loop for modal dialogs
30143
30144 2004-09-22 14:02  pbartok
30145
30146         * GroupBox.cs:
30147           - Fixed wrong types for events
30148
30149 2004-09-22 14:00  pbartok
30150
30151         * Shortcut.cs, FormWindowState.cs:
30152           - Fixed wrong values
30153
30154 2004-09-22 12:01  jackson
30155
30156         * Control.cs: Text is never null
30157
30158 2004-09-20 22:14  pbartok
30159
30160         * XplatUIWin32.cs:
30161           - Fixed accessibility level for Idle handler
30162
30163 2004-09-20 18:54  jackson
30164
30165         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30166           XplatUIX11.cs: New message loop that uses poll so we don't get a
30167           busy loop
30168
30169 2004-09-17 10:43  pbartok
30170
30171         * ScrollBar.cs:
30172           - Fixed behaviour of arrow buttons. Now properly behaves like
30173             Buttons (and like Microsoft's scrollbar arrow buttons)
30174
30175 2004-09-17 10:14  pbartok
30176
30177         * ScrollBar.cs:
30178           - Added missing release of keyboard/mouse capture
30179
30180 2004-09-17 06:18  jordi
30181
30182         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
30183           Theme.cs: Very early menu support
30184
30185 2004-09-16 17:45  pbartok
30186
30187         * XplatUIWin32.cs:
30188           - Fixed sending a window to the front
30189           - Added overload for SetWindowPos to avoid casting
30190
30191 2004-09-16 17:44  pbartok
30192
30193         * Control.cs:
30194           - Added SendToBack and BringToFront methods
30195
30196 2004-09-16 07:00  ravindra
30197
30198         * Copyright: Added Novell URL.
30199
30200 2004-09-16 07:00  ravindra
30201
30202         * ToolBar.cs: Invalidate should be done before redrawing.
30203
30204 2004-09-15 21:19  ravindra
30205
30206         * ColumnHeaderStyle.cs: Enum for ListView Control.
30207
30208 2004-09-15 21:18  ravindra
30209
30210         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
30211           ListView Control.
30212
30213 2004-09-13 18:26  jackson
30214
30215         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
30216           properly
30217
30218 2004-09-13 18:13  jackson
30219
30220         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
30221           a second thread and post messages into the main threads message
30222           queue. This makes timing much more consistent. Both win2K and XP
30223           have a minimum timer value of 15 milliseconds, so we now do this
30224           too.
30225
30226 2004-09-13 15:18  pbartok
30227
30228         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30229           XplatUIX11.cs:
30230           - Added Z-Ordering methods
30231
30232 2004-09-13 10:56  pbartok
30233
30234         * Form.cs:
30235           - Fixed #region names
30236           - Moved properties and methods into their proper #regions
30237
30238 2004-09-13 10:51  pbartok
30239
30240         * Form.cs:
30241           - Added Accept and CancelButton properties
30242           - Added ProcessDialogKey() method
30243
30244 2004-09-13 08:18  pbartok
30245
30246         * IWindowTarget.cs:
30247           - Initial check-in
30248
30249 2004-09-10 21:50  pbartok
30250
30251         * Control.cs:
30252           - Added DoDragDrop() [incomplete]
30253           - Properly implemented 'Visible' handling
30254           - Added SetVisibleCore()
30255           - Implemented FindChildAtPoint()
30256           - Implemented GetContainerControl()
30257           - Implemented Hide()
30258
30259 2004-09-10 19:28  pbartok
30260
30261         * Control.cs:
30262           - Moved methods into their appropriate #regions
30263           - Reordered methods within regions alphabetically
30264
30265 2004-09-10 18:57  pbartok
30266
30267         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30268           - Added method to retrieve text from window
30269
30270 2004-09-10 18:56  pbartok
30271
30272         * Control.cs:
30273           - Moved some internal functions into the internal region
30274           - Implemented FontHeight
30275           - Implemented RenderRightToLeft
30276           - Implemented ResizeRedraw
30277           - Implemented ShowFocusCues
30278           - Implemented ShowKeyboardCues
30279           - Implemented FromChildHandle
30280           - Implemented FromHandle
30281           - Implemented IsMnemonic
30282           - Implemented ReflectMessage
30283           - All public and protected Static Methods are now complete
30284
30285 2004-09-10 16:54  pbartok
30286
30287         * Control.cs:
30288           - Implemented remaining missing public instance properties
30289           - Alphabetized some out of order properties
30290
30291 2004-09-10 05:51  ravindra
30292
30293         * PictureBox.cs: Added a check for null image.
30294
30295 2004-09-10 00:59  jordi
30296
30297         * GroupBox.cs: remove cvs tag
30298
30299 2004-09-09 05:25  ravindra
30300
30301         * ToolBar.cs: Make redraw accessible from ToolBarButton.
30302
30303 2004-09-09 05:23  ravindra
30304
30305         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
30306           parent redraw.
30307
30308 2004-09-09 02:28  pbartok
30309
30310         * ThemeWin32Classic.cs:
30311           - Improve disabled string look
30312
30313 2004-09-09 01:15  jordi
30314
30315         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
30316           args and handler
30317
30318 2004-09-08 23:56  ravindra
30319
30320         * ItemBoundsPortion.cs: It's enum, not a class!
30321
30322 2004-09-08 23:47  ravindra
30323
30324         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
30325           Enums for Form.
30326
30327 2004-09-08 21:13  ravindra
30328
30329         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
30330           ListView control.
30331
30332 2004-09-08 21:03  ravindra
30333
30334         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
30335           avoid crash.
30336
30337 2004-09-08 21:01  ravindra
30338
30339         * ScrollableControl.cs: Removed unreachable code.
30340
30341 2004-09-08 06:45  jordi
30342
30343         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
30344
30345 2004-09-08 01:00  jackson
30346
30347         * XplatUIX11.cs: Only run the timers when updating the message
30348           queue. This effectively gives X messages a higher priority then
30349           timer messages. Timers still need love though
30350
30351 2004-09-07 14:01  jackson
30352
30353         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
30354           this for us and the handle is no longer valid.
30355
30356 2004-09-07 13:59  jackson
30357
30358         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
30359           loop that manages to not crash. TODO: Add poll and cleanup timers
30360
30361 2004-09-07 11:12  jordi
30362
30363         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
30364
30365 2004-09-07 03:40  jordi
30366
30367         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
30368           fixes, methods, multiple links
30369
30370 2004-09-06 06:55  jordi
30371
30372         * Control.cs: Caches ClientRectangle rectangle value
30373
30374 2004-09-05 02:03  jordi
30375
30376         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
30377           certain situations
30378
30379 2004-09-04 11:10  jordi
30380
30381         * Label.cs: Refresh when font changed
30382
30383 2004-09-02 16:24  pbartok
30384
30385         * Control.cs:
30386           - Added sanity check to creation of double buffer bitmap
30387
30388 2004-09-02 16:24  pbartok
30389
30390         * ButtonBase.cs:
30391           - Fixed selection of text color
30392           - Fixed handling of resize event; now properly recreates double
30393             buffering bitmap
30394           - Added missing assignment of TextAlignment
30395           - Added proper default for TextAlignment
30396
30397 2004-09-02 14:26  pbartok
30398
30399         * RadioButton.cs:
30400           - Added missing RadioButton.RadioButtonAccessibleObject class
30401
30402 2004-09-02 14:26  pbartok
30403
30404         * Control.cs:
30405           - Added missing Control.ControlAccessibleObject class
30406           - Started to implement Select()ion mechanisms, still very incomplete
30407
30408 2004-09-02 14:25  pbartok
30409
30410         * AccessibleObject.cs:
30411           - Added missing methods
30412
30413 2004-09-02 14:23  pbartok
30414
30415         * AccessibleNavigation.cs, AccessibleSelection.cs:
30416           - Initial check-in
30417
30418 2004-09-02 10:32  jordi
30419
30420         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
30421           pool for pens, brushes, and hatchbruses
30422
30423 2004-09-01 15:30  jackson
30424
30425         * StatusBar.cs: Fix typo
30426
30427 2004-09-01 14:44  pbartok
30428
30429         * RadioButton.cs:
30430           - Fixed state
30431
30432 2004-09-01 14:39  pbartok
30433
30434         * Button.cs, RadioButton.cs:
30435           - Functional initial check-in
30436
30437 2004-09-01 14:01  pbartok
30438
30439         * CheckBox.cs:
30440           - Added missing default
30441           - Added missing region mark
30442
30443 2004-09-01 09:10  jordi
30444
30445         * Label.cs: fixes method signatures, new methods, events, fixes
30446           autosize
30447
30448 2004-09-01 07:19  jordi
30449
30450         * Control.cs: Init string variables with an empty object
30451
30452 2004-09-01 04:20  jordi
30453
30454         * Control.cs: fires OnFontChanged event
30455
30456 2004-08-31 20:07  pbartok
30457
30458         * ButtonBase.cs:
30459           - Enabled display of strings
30460
30461 2004-08-31 20:05  pbartok
30462
30463         * Form.cs:
30464           - Added (partial) implementation of DialogResult; rest needs to be
30465             implemented when the modal loop code is done
30466
30467 2004-08-31 19:55  pbartok
30468
30469         * CheckBox.cs:
30470           - Fixed to match the removal of the needs_redraw concept
30471
30472 2004-08-31 19:55  pbartok
30473
30474         * ButtonBase.cs:
30475           - Removed the rather odd split between 'needs redraw' and redrawing
30476           - Now handles the events that require regeneration (ambient
30477             properties and size)
30478
30479 2004-08-31 19:41  pbartok
30480
30481         * Control.cs:
30482           - Added firing of BackColorChanged event
30483           - Added TopLevelControl property
30484           - Fixed handling of WM_ERASEBKGRND message
30485
30486 2004-08-31 12:49  pbartok
30487
30488         * ButtonBase.cs:
30489           - Removed debug
30490           - Minor fixes
30491
30492 2004-08-31 12:48  pbartok
30493
30494         * CheckBox.cs:
30495           - Finished (famous last words)
30496
30497 2004-08-31 04:35  jordi
30498
30499         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
30500           scrolling bugs, adds new methods
30501
30502 2004-08-30 14:42  pbartok
30503
30504         * CheckBox.cs:
30505           - Implemented CheckBox drawing code
30506
30507 2004-08-30 14:42  pbartok
30508
30509         * ButtonBase.cs:
30510           - Made Redraw() and CheckRedraw() virtual
30511           - Improved mouse up/down/move logic to properly track buttons
30512
30513 2004-08-30 09:44  pbartok
30514
30515         * CheckBox.cs:
30516           - Updated to fix broken build. Not complete yet.
30517
30518 2004-08-30 09:28  pbartok
30519
30520         * CheckState.cs:
30521           - Initial checkin
30522
30523 2004-08-30 09:17  pbartok
30524
30525         * Appearance.cs:
30526           - Initial check-in
30527
30528 2004-08-27 16:12  ravindra
30529
30530         * ToolBarButton.cs: Added TypeConverter attribute.
30531
30532 2004-08-27 16:07  ravindra
30533
30534         * ImageIndexConverter.cs: Implemented.
30535
30536 2004-08-27 14:17  pbartok
30537
30538         * Control.cs:
30539           - Removed unneeded stack vars
30540           - First attempt to fix sizing issues when layout is suspended
30541
30542 2004-08-25 15:35  jordi
30543
30544         * ScrollBar.cs: more fixes to scrollbar
30545
30546 2004-08-25 14:04  ravindra
30547
30548         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
30549           Added the missing divider code and grip for ToolBar Control.
30550
30551 2004-08-25 13:20  pbartok
30552
30553         * Control.cs:
30554           - Control now properly passes the ambient background color to child
30555             controls
30556
30557 2004-08-25 13:20  jordi
30558
30559         * ScrollBar.cs: small bug fix regarding bar position
30560
30561 2004-08-25 12:33  pbartok
30562
30563         * Timer.cs:
30564           - Now only calls SetTimer or KillTimer if the enabled state has
30565           changed
30566
30567 2004-08-25 12:33  pbartok
30568
30569         * XplatUIWin32.cs:
30570           - Fixed timer handling, now seems to work
30571           - Improved error message for window creation
30572
30573 2004-08-25 12:32  pbartok
30574
30575         * Control.cs:
30576           - Fixed generation of MouseUp message
30577
30578 2004-08-25 12:29  jordi
30579
30580         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
30581           and fixes for progressbar
30582
30583 2004-08-24 18:43  ravindra
30584
30585         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
30586           in ToolBar control.
30587
30588 2004-08-24 17:15  pbartok
30589
30590         * Panel.cs:
30591           - Added #region
30592           - Added missing events
30593           - Alphabetized
30594
30595 2004-08-24 17:14  pbartok
30596
30597         * StatusBar.cs, PictureBox.cs:
30598           - Now uses Control's CreateParams
30599
30600 2004-08-24 16:36  pbartok
30601
30602         * XplatUIX11.cs:
30603           - Fixed background color handling
30604           - Fixed sending of enter/leave events on a grab
30605
30606 2004-08-24 16:35  pbartok
30607
30608         * X11Structs.cs:
30609           - Refined definitions for CrossingEvent
30610
30611 2004-08-24 12:37  jordi
30612
30613         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
30614           formmating, methods signature, and adds missing events
30615
30616 2004-08-24 12:24  jordi
30617
30618         * Control.cs: fire OnEnabledChanged event
30619
30620 2004-08-24 11:17  pbartok
30621
30622         * XplatUIWin32.cs:
30623           - Implemented SetTimer() and KillTimer()
30624
30625 2004-08-24 11:16  pbartok
30626
30627         * XplatUIX11.cs:
30628           - Now uses Remove instead of Add to kill the timer
30629
30630 2004-08-24 10:16  jackson
30631
30632         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
30633           picture boxes in the theme now. Draw picture box borders and obey
30634           sizing modes
30635
30636 2004-08-24 05:49  jackson
30637
30638         * Timer.cs: Remove top secret debugging code
30639
30640 2004-08-24 05:34  jackson
30641
30642         * PictureBox.cs: Temp hack to make picture boxes draw their full
30643           image
30644
30645 2004-08-24 05:29  jackson
30646
30647         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30648           XplatUIX11.cs: Move timers to the driver level. On X they are
30649           queued by the driver and checked on idle.
30650
30651 2004-08-24 01:07  jackson
30652
30653         * XplatUIX11.cs: Use a queue for async messages instead of passing
30654           them as ClientMessages since that was totally broken. Also simply
30655           check for events and return an idle message if none are found. This
30656           gives us an idle handler, and prevents deadlocking when no messages
30657           are in the queue.
30658
30659 2004-08-23 18:19  ravindra
30660
30661         * XplatUIWin32.cs: Removed the unwanted destructor.
30662
30663 2004-08-23 17:27  pbartok
30664
30665         * ButtonBase.cs:
30666           - Finishing touches. Works now, just needs some optimizations.
30667
30668 2004-08-23 16:53  jordi
30669
30670         * ScrollBar.cs: small fix
30671
30672 2004-08-23 16:45  pbartok
30673
30674         * Application.cs:
30675           - Removed debug output
30676           - Simplifications
30677
30678 2004-08-23 16:43  jordi
30679
30680         * ScrollBar.cs: [no log message]
30681
30682 2004-08-23 16:10  pbartok
30683
30684         * Form.cs:
30685           - Fixed handling of WM_CLOSE message
30686           - Removed debug output
30687
30688 2004-08-23 16:09  pbartok
30689
30690         * Application.cs:
30691           - Added handling of Idle event
30692           - Added handling of form closing
30693           - Fixed reporting of MessageLoop property
30694           - Removed some unneeded code, should provide a bit of a speedup
30695
30696 2004-08-23 15:22  pbartok
30697
30698         * Control.cs:
30699           - Added InitLayout() method
30700           - Added code to properly perform layout when Anchor or Dock property
30701             is changed
30702           - Changed 'interpretation' of ResumeLayout. MS seems to have a
30703             LAMESPEC, tried to do it in a way that makes sense
30704
30705 2004-08-23 14:10  jordi
30706
30707         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
30708           properties and methods
30709
30710 2004-08-23 13:55  pbartok
30711
30712         * Control.cs:
30713           - Properly fixed Jordi's last fix
30714           - Now uses Cursor's Position property instead of calling XplatUI
30715           directly
30716
30717 2004-08-23 13:44  jordi
30718
30719         * PaintEventHandler.cs: Adding missing attribute
30720
30721 2004-08-23 13:39  pbartok
30722
30723         * Cursor.cs:
30724           - Implemented Position property
30725
30726 2004-08-23 13:39  pbartok
30727
30728         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30729           - Added method to move mouse cursor
30730
30731 2004-08-23 13:39  pbartok
30732
30733         * XplatUIX11.cs:
30734           - Fixed setting of background color
30735           - Added method to move mouse cursor
30736
30737 2004-08-23 13:16  jordi
30738
30739         * Control.cs: avoids null exception
30740
30741 2004-08-22 17:46  jackson
30742
30743         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
30744           PictureBox
30745
30746 2004-08-22 17:40  jackson
30747
30748         * XplatUIX11.cs: Add some missing locks
30749
30750 2004-08-22 15:10  pbartok
30751
30752         * Control.cs, Form.cs:
30753           - Removed OverlappedWindow style from Control, instead it's default
30754             now is child
30755           - Made form windows OverlappedWindow by default
30756
30757 2004-08-22 13:34  jackson
30758
30759         * ScrollBar.cs: Update the position through the Value property so
30760           the OnValueChanged event is raised.
30761
30762 2004-08-22 12:04  pbartok
30763
30764         * SWF.csproj:
30765           - Added Cursor.cs and UserControl.cs
30766
30767 2004-08-22 12:03  pbartok
30768
30769         * Cursor.cs:
30770           - Started implementation, not usable yet
30771
30772 2004-08-22 12:00  pbartok
30773
30774         * UserControl.cs:
30775           - Implemented UserControl (complete)
30776
30777 2004-08-21 19:20  ravindra
30778
30779         * ToolBar.cs: Correcting the formatting mess of VS.NET.
30780
30781 2004-08-21 18:49  ravindra
30782
30783         * ToolBar.cs: Probably this completes the missing attributes in
30784           toolbar control.
30785
30786 2004-08-21 18:03  ravindra
30787
30788         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
30789           Fixed toolbar control signatures.
30790
30791 2004-08-21 16:32  pbartok
30792
30793         * LinkLabel.cs:
30794           - Signature Fixes
30795
30796 2004-08-21 16:30  pbartok
30797
30798         * Label.cs:
30799           - Signature fixes
30800
30801 2004-08-21 16:19  pbartok
30802
30803         * Control.cs, Label.cs:
30804           - Signature fixes
30805
30806 2004-08-21 15:57  pbartok
30807
30808         * ButtonBase.cs:
30809           - Added loads of debug output for development
30810           - Fixed typo in method name
30811
30812 2004-08-21 15:52  pbartok
30813
30814         * ToolBarButtonClickEventArgs.cs:
30815           - Added missing base class
30816
30817 2004-08-21 14:53  pbartok
30818
30819         * Control.cs:
30820           - Updated to match new GrabWindow signature
30821
30822 2004-08-21 14:51  pbartok
30823
30824         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30825           - Added method to get default display size
30826
30827 2004-08-21 14:23  pbartok
30828
30829         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30830           - Added method to query current grab state
30831           - Added argument to allow confining a grab to a window
30832
30833 2004-08-21 14:22  pbartok
30834
30835         * Keys.cs:
30836           - Added [Flags] attribute so that modifiers can be used in bitwise
30837           ops
30838
30839 2004-08-21 14:21  pbartok
30840
30841         * TrackBar.cs, ScrollBar.cs:
30842           - Replaced direct XplatUI calls with their Control counterpart
30843
30844 2004-08-21 13:32  pbartok
30845
30846         * Control.cs:
30847           - Implemented Created property
30848
30849 2004-08-21 13:28  pbartok
30850
30851         * Control.cs:
30852           - Implemented ContainsFocus
30853
30854 2004-08-21 13:26  pbartok
30855
30856         * Control.cs:
30857           - Implemented CausesValidation
30858
30859 2004-08-21 13:21  pbartok
30860
30861         * Control.cs:
30862           - Implemented CanFocus
30863           - Implemented CanSelect
30864           - Implemented Capture
30865
30866 2004-08-21 12:35  pbartok
30867
30868         * XplatUIWin32.cs:
30869           - Fixed bug with Async message handling
30870           - Implemented getting the ModifierKeys
30871
30872 2004-08-21 12:32  jackson
30873
30874         * AsyncMethodResult.cs: Make sure we have the mutex before we
30875           release it. Fixes BeginInvoke on windows
30876
30877 2004-08-21 11:31  pbartok
30878
30879         * XplatUIWin32.cs, XplatUIX11.cs:
30880           - Drivers now return proper mouse state
30881
30882 2004-08-21 10:54  jackson
30883
30884         * Control.cs: Implement EndInvoke
30885
30886 2004-08-21 10:48  jackson
30887
30888         * Timer.cs: Remove unneeded finalizer
30889
30890 2004-08-20 19:52  ravindra
30891
30892         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
30893           in mouse event handling in the ToolBar control.
30894
30895 2004-08-20 19:50  ravindra
30896
30897         * ImageList.cs: Changed draw method to use the arguments passed in
30898           to draw the image.
30899
30900 2004-08-20 18:58  pbartok
30901
30902         * XplatUIStructs.cs:
30903           - Added private message for async communication
30904
30905 2004-08-20 17:38  ravindra
30906
30907         * Control.cs: Made RightToLeft property virtual and removed a
30908           Console.WriteLine.
30909
30910 2004-08-20 14:39  jordi
30911
30912         * ThemeGtk.cs: use style_attach
30913
30914 2004-08-20 14:39  pbartok
30915
30916         * XplatUIWin32.cs:
30917           - Added jackson's Async code from X11 to Win32
30918
30919 2004-08-20 14:09  pbartok
30920
30921         * SWF.csproj:
30922           - Added all new files
30923
30924 2004-08-20 14:09  pbartok
30925
30926         * Control.cs:
30927           - Added call to set window background color
30928
30929 2004-08-20 14:03  pbartok
30930
30931         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
30932           - Added method for setting the window background
30933
30934 2004-08-20 14:02  pbartok
30935
30936         * XplatUIWin32.cs:
30937           - Added method for setting the background color
30938           - Added handling for erasing the window background
30939
30940 2004-08-20 13:45  jordi
30941
30942         * TrackBar.cs: fixes timer, new properties and methods
30943
30944 2004-08-20 13:34  jackson
30945
30946         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
30947           correct thread
30948
30949 2004-08-20 13:22  jackson
30950
30951         * Timer.cs: Timer Tick events are now handed through Controls Async
30952           mechanism so the callbacks are executed in the same thread as X
30953
30954 2004-08-20 13:19  jackson
30955
30956         * XplatUIDriver.cs: Expose functionality to send async messages
30957           through the driver
30958
30959 2004-08-20 13:18  jackson
30960
30961         * Control.cs: Implement Begininvoke
30962
30963 2004-08-20 13:14  jackson
30964
30965         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
30966           messages through the driver
30967
30968 2004-08-20 13:12  jackson
30969
30970         * XplatUIX11.cs: Lock before all X operations. Also added Async
30971           method functionality through XSendEvent
30972
30973 2004-08-20 13:11  jackson
30974
30975         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
30976           This will screw up on 64 bit systems)
30977
30978 2004-08-20 13:10  jackson
30979
30980         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
30981           Async messages through X/Win32
30982
30983 2004-08-19 19:39  pbartok
30984
30985         * XplatUIX11.cs:
30986           - Updated code to match new HandleData.DeviceContext type
30987
30988 2004-08-19 19:38  pbartok
30989
30990         * HandleData.cs:
30991           - Made DeviceContext a generic object to allow usage from various
30992           drivers
30993           - Added support for queueing Windows messages
30994
30995 2004-08-19 19:37  pbartok
30996
30997         * XplatUIWin32.cs:
30998           - Added generation of MouseEnter, MouseLeave and MouseHover events
30999           - Added cleanup on EndPaint
31000
31001 2004-08-19 19:17  pbartok
31002
31003         * Control.cs:
31004           - Added handling of WM_MOUSEHOVER
31005           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
31006           code
31007
31008 2004-08-19 18:55  jordi
31009
31010         * ThemeGtk.cs: fixes button order
31011
31012 2004-08-19 18:12  jordi
31013
31014         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
31015
31016 2004-08-19 17:09  pbartok
31017
31018         * Control.cs:
31019           - Added Right property
31020           - Added RightToLeft property
31021
31022 2004-08-19 16:27  jordi
31023
31024         * ThemeGtk.cs: experimental GTK theme support
31025
31026 2004-08-19 16:26  jordi
31027
31028         * ITheme.cs, Theme.cs: move themes from an interface to a class
31029
31030 2004-08-19 16:25  jordi
31031
31032         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
31033           theme enhancaments
31034
31035 2004-08-19 16:04  pbartok
31036
31037         * XplatUIX11.cs:
31038           - Added colormap basics
31039           - Added a way to re-initialize with a different display handle
31040           - Fixed setting of the window background color
31041           - Added various X11 imports related to colors and colormaps
31042
31043 2004-08-19 15:51  pbartok
31044
31045         * X11Structs.cs:
31046           - Removed packing hints (Paolo suggested this a while back)
31047           - fixed colormap type
31048           - Added default Atom types
31049           - Added Screen and color structs and enums
31050
31051 2004-08-19 15:39  pbartok
31052
31053         * ImageList.cs:
31054           - Added missing Draw() method
31055           - Added missing RecreateHandle event
31056
31057 2004-08-19 15:30  pbartok
31058
31059         * Form.cs:
31060           - Added handling of WM_CLOSE
31061
31062 2004-08-18 13:16  jordi
31063
31064         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
31065           a table
31066
31067 2004-08-18 09:56  jordi
31068
31069         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
31070
31071 2004-08-17 15:31  ravindra
31072
31073         * SWF.csproj: Updated project.
31074
31075 2004-08-17 15:25  pbartok
31076
31077         * Control.cs:
31078           - Drawing improvement; don't call UpdateBounds if we are not visible
31079             (or have been minimized)
31080
31081 2004-08-17 15:24  pbartok
31082
31083         * XplatUIWin32.cs:
31084           - Finished IsVisible
31085           - Added Win32GetWindowPlacement
31086
31087 2004-08-17 15:08  jackson
31088
31089         * Panel.cs: Initial checkin of the Panel
31090
31091 2004-08-17 14:25  pbartok
31092
31093         * Control.cs:
31094           - Fixed broken handling of default window sizes
31095
31096 2004-08-17 13:29  jackson
31097
31098         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
31099           has a large startup time.
31100
31101 2004-08-17 10:25  jackson
31102
31103         * HandleData.cs: union areas properly
31104
31105 2004-08-17 10:12  jackson
31106
31107         * HandleData.cs: union areas properly
31108
31109 2004-08-16 20:00  ravindra
31110
31111         * ToolBar.cs, ToolBarButton.cs: Added attributes.
31112
31113 2004-08-16 18:48  ravindra
31114
31115         * ToolBar.cs: Added attributes.
31116
31117 2004-08-16 17:17  ravindra
31118
31119         * SWF.csproj: Updated project.
31120
31121 2004-08-16 17:16  jackson
31122
31123         * XplatUIX11.cs: Check for more expose events before sending a
31124           WM_PAINT so they can all be grouped together. This makes dragging a
31125           window across another window redraw in a sane way.
31126
31127 2004-08-16 15:47  pbartok
31128
31129         * Control.cs:
31130           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
31131             support OnMouseEnter/Leave()
31132           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
31133             exposure handling
31134
31135 2004-08-16 15:46  pbartok
31136
31137         * XplatUIStructs.cs, XplatUIX11.cs:
31138           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
31139           OnMouseEnter/Leave()
31140
31141 2004-08-16 15:34  jackson
31142
31143         * XplatUIX11.cs: Group multiple expose events in HandleData, make
31144           sure messages get the message field set to WM_NULL if they are not
31145           handled.
31146
31147 2004-08-16 15:24  jackson
31148
31149         * HandleData.cs: HandleData is used for storing message information
31150           for window handles
31151
31152 2004-08-15 17:23  ravindra
31153
31154         * ColorDepth.cs: Added attribute.
31155
31156 2004-08-15 17:23  ravindra
31157
31158         * SWF.csproj: Updated project for ToolBar Control.
31159
31160 2004-08-15 17:20  ravindra
31161
31162         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
31163           control and also dos2unix format.
31164
31165 2004-08-15 17:13  ravindra
31166
31167         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
31168           ToolBarButtonClickEventArgs.cs,
31169           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
31170           ToolBarTextAlign.cs: First Implementation of ToolBar control.
31171
31172 2004-08-15 15:31  pbartok
31173
31174         * ButtonBase.cs:
31175           - First (mostly) working version
31176
31177 2004-08-13 16:15  pbartok
31178
31179         * Control.cs:
31180           - Fixed Anchor default
31181
31182 2004-08-13 15:43  pbartok
31183
31184         * Control.cs:
31185           - Changed GetCursorPos signature
31186
31187 2004-08-13 15:42  pbartok
31188
31189         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
31190           - Changed signature for GetCursorPos
31191
31192 2004-08-13 15:25  pbartok
31193
31194         * XplatUIX11.cs:
31195           - Cleanup
31196           - Fixed resizing/exposure handling
31197
31198 2004-08-13 15:22  jordi
31199
31200         * ThemeWin32Classic.cs: removes redundant code and fixes issues
31201           with tickposition
31202
31203 2004-08-13 14:55  jordi
31204
31205         * TrackBar.cs: change from wndproc to events
31206
31207 2004-08-13 13:00  jordi
31208
31209         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31210           XplatUIX11.cs: implements PointToClient (ScreenToClient)
31211
31212 2004-08-13 12:53  pbartok
31213
31214         * XplatUIWin32.cs:
31215           - Changed GetWindowPos to also provide client area size
31216           - Fixed broken prototypes for several win32 functions
31217
31218 2004-08-13 12:53  pbartok
31219
31220         * XplatUI.cs, XplatUIDriver.cs:
31221           - Changed GetWindowPos to also provide client area size
31222
31223 2004-08-13 12:52  pbartok
31224
31225         * XplatUIX11.cs:
31226           - Added generation of WM_POSCHANGED
31227           - Changed GetWindowPos to also provide client area size
31228
31229 2004-08-13 12:52  pbartok
31230
31231         * Control.cs:
31232           - Added Dispose() and destructor
31233           - Fixed resizing and bounds calculation
31234           - Fixed Layout
31235           - Added memory savings for invisible windows
31236
31237 2004-08-13 12:46  jordi
31238
31239         * TrackBar.cs: adds timer and grap window
31240
31241 2004-08-13 10:25  jackson
31242
31243         * Timer.cs: SWF Timer
31244
31245 2004-08-12 16:59  pbartok
31246
31247         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31248           - Implemented method to get current mouse position
31249
31250 2004-08-12 14:29  jordi
31251
31252         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
31253           enhancement, fix mouse problems, highli thumb, etc
31254
31255 2004-08-12 13:31  pbartok
31256
31257         * Control.cs:
31258           - Fixed Anchoring bugs
31259
31260 2004-08-12 13:01  jackson
31261
31262         * StatusBar.cs: Don't forget things
31263
31264 2004-08-12 12:54  jackson
31265
31266         * ThemeWin32Classic.cs: Handle owner draw status bars
31267
31268 2004-08-12 12:54  jackson
31269
31270         * StatusBar.cs: Implement missing properties, events, and methods.
31271           Handle mouse clicking
31272
31273 2004-08-12 10:19  jackson
31274
31275         * StatusBarPanelClickEventArgs.cs,
31276           StatusBarPanelClickEventHandler.cs: Classes for handling status
31277           bar panel click events
31278
31279 2004-08-12 10:10  jackson
31280
31281         * Control.cs: Add missing properties
31282
31283 2004-08-12 09:46  pbartok
31284
31285         * BindingsManagerBase.cs:
31286           - Name changed to BindingManagerBase.cs
31287
31288 2004-08-12 09:25  jordi
31289
31290         * ScrollableControl.cs: calls ctrlbase instead of exeception
31291
31292 2004-08-11 16:28  pbartok
31293
31294         * InputLanguageChangingEventArgs.cs:
31295           - Never check in before compiling. Fixes the last check-in
31296
31297 2004-08-11 16:26  pbartok
31298
31299         * InputLanguageChangingEventArgs.cs:
31300           - More signature fixes
31301
31302 2004-08-11 16:20  pbartok
31303
31304         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
31305           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
31306           ImageListStreamer.cs, InputLanguage.cs,
31307           InputLanguageChangedEventArgs.cs,
31308           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
31309           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
31310           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
31311           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31312           - Signature fixes
31313
31314 2004-08-11 16:16  pbartok
31315
31316         * Application.cs:
31317           - Fixed Signature
31318           - Added .Net 1.1 method
31319
31320 2004-08-11 15:25  pbartok
31321
31322         * SWF.csproj:
31323           - Fixed BindingManagerBase.cs filename
31324
31325 2004-08-11 15:22  pbartok
31326
31327         * BindingManagerBase.cs:
31328           - Was checked in with wrong filename
31329
31330 2004-08-11 14:50  pbartok
31331
31332         * SWF.csproj:
31333           - Updated
31334
31335 2004-08-11 13:41  jordi
31336
31337         * XplatUIWin32.cs: Fixes ClientRect
31338
31339 2004-08-11 13:19  pbartok
31340
31341         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31342           XplatUIX11.cs:
31343           - We had SetWindowPos and MoveWindow to set window positions and
31344             size, removed MoveWindow. We have GetWindowPos, so it made sense to
31345             keep SetWindowPos as matching counterpart
31346           - Added some X11 sanity checking
31347
31348 2004-08-11 12:59  pbartok
31349
31350         * Control.cs:
31351           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
31352             (It seems that SetBounds is just a front for SetBoundsCore and
31353              SetBoundsCore updates the underlying window system and
31354              UpdateBounds is responsible for updating the variables associated
31355              with the Control and sending the events)
31356           - Major cleanup of Size handling; we now have two sizes, client_size
31357             and bounds. Bounds defines the window with decorations, client_size
31358             without them.
31359
31360 2004-08-11 12:55  pbartok
31361
31362         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31363           - Added method to calculate difference between decorated window and
31364             raw client area
31365
31366 2004-08-11 12:54  pbartok
31367
31368         * Label.cs:
31369           - Forcing redraw on resize
31370
31371 2004-08-11 11:43  pbartok
31372
31373         * ImageList.cs:
31374           - Removed disposing of the actual images when the list is disposed
31375
31376 2004-08-11 09:13  pbartok
31377
31378         * Control.cs:
31379           - Now properly reparents windows
31380
31381 2004-08-11 08:37  pbartok
31382
31383         * Control.cs:
31384           - Duh!
31385
31386 2004-08-11 07:47  pbartok
31387
31388         * Control.cs:
31389           - Rewrote the collection stuff. Might not be as fast now, not
31390             keeping the number of children around and accessible directly, but
31391             it's more straightforward
31392
31393 2004-08-11 07:44  pbartok
31394
31395         * AccessibleObject.cs:
31396           - Fixed to match ControlCollection rewrite
31397
31398 2004-08-11 07:43  pbartok
31399
31400         * ImageList.cs:
31401           - Added missing creation of the collection list
31402
31403 2004-08-10 20:08  jackson
31404
31405         * StatusBar.cs: Get the paint message from WndProc
31406
31407 2004-08-10 19:31  jackson
31408
31409         * ThemeWin32Classic.cs: Create Brushes as little as possible
31410
31411 2004-08-10 19:20  jackson
31412
31413         * UICues.cs: Add Flags attribute
31414
31415 2004-08-10 19:19  jackson
31416
31417         * StatusBarPanel.cs: Signature cleanup
31418
31419 2004-08-10 19:10  jackson
31420
31421         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
31422           Initial implementation of status bar item drawing
31423
31424 2004-08-10 17:27  jordi
31425
31426         * TrackBar.cs: add missing methods, properties, and restructure to
31427           hide extra ones
31428
31429 2004-08-10 16:24  jackson
31430
31431         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
31432           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
31433           attribute
31434
31435 2004-08-10 13:21  jordi
31436
31437         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
31438           enhancements and standarize on win colors defaults
31439
31440 2004-08-10 12:52  jackson
31441
31442         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
31443           ThemeWin32Classic.cs: Implement DrawItem functionality
31444
31445 2004-08-10 12:47  jordi
31446
31447         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
31448
31449 2004-08-10 12:32  jordi
31450
31451         * Control.cs: throw ontextchange event
31452
31453 2004-08-10 11:43  pbartok
31454
31455         * Control.cs:
31456           - Added more to the still unfinished Dock/Anchor layout code
31457
31458 2004-08-10 11:39  pbartok
31459
31460         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
31461           - Added GetWindowPos method
31462
31463 2004-08-10 11:36  pbartok
31464
31465         * XplatUIWin32.cs:
31466           - Implemented several methods
31467
31468 2004-08-10 09:47  jackson
31469
31470         * TrackBar.cs: Allow control to handle buffering
31471
31472 2004-08-10 09:41  jackson
31473
31474         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
31475
31476 2004-08-10 09:24  jackson
31477
31478         * Label.cs, LinkLabel.cs: Let Control handle buffering.
31479
31480 2004-08-10 09:09  jackson
31481
31482         * StatusBar.cs: Let Control handle all the buffering.
31483
31484 2004-08-10 09:08  jackson
31485
31486         * Control.cs: Control will now handle the buffering code, so each
31487           control does not have to implement this.
31488
31489 2004-08-10 08:34  jackson
31490
31491         * XplatUIDriver.cs: Use default colors from the theme
31492
31493 2004-08-09 17:12  pbartok
31494
31495         * ImageList.cs:
31496           - Fixed several bugs Ravindra pointed out
31497
31498 2004-08-09 16:11  pbartok
31499
31500         * Control.cs:
31501           - Added incomplete dock layout code
31502           - Added support for mouse wheel
31503
31504 2004-08-09 16:09  pbartok
31505
31506         * XplatUIX11.cs:
31507           - Added handling for middle and right mousebutton
31508           - Added handling for mouse wheel
31509           - Added handling for key state and mouse state and position
31510           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
31511           messages
31512
31513 2004-08-09 15:40  jackson
31514
31515         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
31516           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
31517           checkin
31518
31519 2004-08-09 15:37  jackson
31520
31521         * StatusBar.cs: Initial implementation of StatusBar
31522
31523 2004-08-09 15:36  jackson
31524
31525         * ITheme.cs: Add support for drawing status bar and getting status
31526           bar item sizes
31527
31528 2004-08-09 15:35  pbartok
31529
31530         * MouseButtons.cs:
31531           - Fixed values
31532
31533 2004-08-09 15:34  jackson
31534
31535         * ThemeWin32Classic.cs: Add support for drawing status bar and get
31536           status bar item sizes
31537
31538 2004-08-09 15:21  jackson
31539
31540         * ThemeWin32Classic.cs: Use known colors for default control
31541           colours
31542
31543 2004-08-09 15:12  jackson
31544
31545         * ThemeWin32Classic.cs: Make the default font static, it is static
31546           in control so this doesn't change functionality and creating fonts
31547           is sloooooow.
31548
31549 2004-08-09 14:56  pbartok
31550
31551         * X11Structs.cs:
31552           - Added GrabMode enum
31553
31554 2004-08-09 14:55  pbartok
31555
31556         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31557           - Removed Run method, was only required for initial development
31558
31559 2004-08-09 14:51  pbartok
31560
31561         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31562           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
31563           capture
31564
31565 2004-08-09 13:48  pbartok
31566
31567         * XplatUIX11.cs:
31568           - Fixed default sizing for child windows
31569
31570 2004-08-09 12:56  pbartok
31571
31572         * XplatUIX11.cs:
31573           - Added generation of WM_DESTROY message
31574           - Added handling of window manager induced shutdown
31575
31576 2004-08-09 11:31  jackson
31577
31578         * ThemeWin32Classic.cs: New names for control properties
31579
31580 2004-08-09 11:25  jackson
31581
31582         * Control.cs: Use new color names
31583
31584 2004-08-09 11:02  jackson
31585
31586         * XplatUI.cs: Get default window properties from the theme
31587
31588 2004-08-09 11:01  jackson
31589
31590         * ITheme.cs: The theme engine now controls default window
31591           properties
31592
31593 2004-08-09 11:00  jackson
31594
31595         * ThemeWin32Classic.cs: Add default window color properties
31596
31597 2004-08-09 10:17  jackson
31598
31599         * ThemeWin32Classic.cs: Use correct default back color
31600
31601 2004-08-09 10:05  jackson
31602
31603         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
31604           the theme now.
31605
31606 2004-08-09 09:56  jackson
31607
31608         * XplatUI.cs: Remove defaults, these are handled by the theme now.
31609
31610 2004-08-09 09:54  jackson
31611
31612         * Control.cs: Get default properties from the theme.
31613
31614 2004-08-09 09:53  jackson
31615
31616         * ITheme.cs: Themes now handle default control properties
31617
31618 2004-08-09 09:53  jackson
31619
31620         * ThemeWin32Classic.cs: Themes now handle default control
31621           properties so coloring will be consistent
31622
31623 2004-08-08 16:54  jordi
31624
31625         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
31626
31627 2004-08-08 15:08  jordi
31628
31629         * XplatUIX11.cs: fixes keyboard crash
31630
31631 2004-08-08 13:47  jordi
31632
31633         * Label.cs: add cvs header info
31634
31635 2004-08-08 12:09  jackson
31636
31637         * ThemeWin32Classic.cs: Add pen_buttonface
31638
31639 2004-08-08 11:52  jordi
31640
31641         * Label.cs, LinkLabel.cs: [no log message]
31642
31643 2004-08-08 11:34  jordi
31644
31645         * ThemeWin32Classic.cs: Use Windows Standard Colours
31646
31647 2004-08-07 17:32  jordi
31648
31649         * TrackBar.cs: throw exceptions of invalid enums values
31650
31651 2004-08-07 17:31  jordi
31652
31653         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
31654           draw method name
31655
31656 2004-08-07 16:56  jackson
31657
31658         * HorizontalAlignment.cs: Initial checkin
31659
31660 2004-08-07 13:16  jordi
31661
31662         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
31663           methods
31664
31665 2004-08-07 13:05  jordi
31666
31667         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
31668           GetSysColor defines
31669
31670 2004-08-06 18:01  pbartok
31671
31672         * ThemeWin32Classic.cs:
31673           - Fixed some rounding issues with float/int
31674
31675 2004-08-06 18:00  jackson
31676
31677         * DockStyle.cs, AnchorStyles.cs:
31678
31679                   Add flags and serializable attributes.
31680
31681 2004-08-06 17:46  pbartok
31682
31683         * XplatUIX11.cs:
31684           - Implemented GetParent
31685
31686 2004-08-06 17:18  pbartok
31687
31688         * TrackBar.cs:
31689           - Fixed some rounding issues with float/int
31690
31691 2004-08-06 17:17  pbartok
31692
31693         * X11Structs.cs, XplatUIX11.cs:
31694           - Fixed Refresh and Invalidate
31695
31696 2004-08-06 15:30  pbartok
31697
31698         * Control.cs, X11Structs.cs, XplatUIX11.cs:
31699           - Fixed recursive loop when resizing
31700           - Improved/fixed redrawing on expose messages
31701
31702 2004-08-06 09:53  jordi
31703
31704         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
31705           keyboard navigation
31706
31707 2004-08-06 08:02  pbartok
31708
31709         * X11Structs.cs, XplatUIX11.cs:
31710           - Fixed reparenting
31711           - Fixed window border creation
31712
31713 2004-08-05 15:38  pbartok
31714
31715         * XplatUIX11.cs:
31716           - Attempted fix for reparenting problems
31717
31718 2004-08-04 15:14  pbartok
31719
31720         * Control.cs:
31721           - Fixed Invalidation bug (calculated wrong client area)
31722           - Added ClientSize setter
31723
31724 2004-08-04 15:13  pbartok
31725
31726         * Form.cs:
31727           - Added AutoScale properties
31728
31729 2004-08-04 15:13  pbartok
31730
31731         * SWF.csproj:
31732           - Added latest files
31733
31734 2004-08-04 14:11  pbartok
31735
31736         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31737           XplatUIX11.cs:
31738           - Added Invalidate handling
31739
31740 2004-08-03 17:09  jordi
31741
31742         * XplatUIDriver.cs: fixes spelling mistake
31743
31744 2004-07-27 09:53  jordi
31745
31746         * TrackBar.cs: fixes trackbar events, def classname, methods
31747           signature
31748
31749 2004-07-27 09:29  jordi
31750
31751         * ScrollBar.cs: fixes scrollbar events
31752
31753 2004-07-27 04:38  jordi
31754
31755         * Control.cs: changes to be able to run winforms samples
31756
31757 2004-07-26 11:42  jordi
31758
31759         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
31760           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
31761
31762 2004-07-26 05:41  jordi
31763
31764         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
31765           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
31766           implementation
31767
31768 2004-07-22 09:22  jordi
31769
31770         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
31771           check link overlapping, implement events, and fixes
31772
31773 2004-07-21 10:28  jordi
31774
31775         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
31776
31777 2004-07-21 10:19  jordi
31778
31779         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
31780           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
31781           LinkLabelLinkClickedEventArgs.cs,
31782           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
31783           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
31784           implementation
31785
31786 2004-07-19 13:09  jordi
31787
31788         * Control.cs, Label.cs: label control re-written: added missing
31789           functionlity, events, and properties
31790
31791 2004-07-19 10:49  jordi
31792
31793         * Control.cs: fixes SetBounds logic
31794
31795 2004-07-19 01:29  jordi
31796
31797         * Control.cs: Call RefreshWindow only if the window has created
31798
31799 2004-07-15 14:05  pbartok
31800
31801         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
31802           - Implemented ImageList and ImageList.ImageCollection classes
31803           - Added ColorDepth enumeration
31804           - Updated SWF VS.Net project
31805
31806 2004-07-15 11:06  jordi
31807
31808         * XplatUIStructs.cs: added MsgButons enum
31809
31810 2004-07-15 11:03  jordi
31811
31812         * Control.cs: added basic mouse handeling events
31813
31814 2004-07-15 03:38  jordi
31815
31816         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
31817           Vertical TrackBar control implementation
31818
31819 2004-07-13 09:33  jordi
31820
31821         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
31822
31823 2004-07-13 09:31  jordi
31824
31825         * Control.cs, Form.cs: commit: new properties and fixes form size
31826           problems
31827
31828 2004-07-09 14:13  miguel
31829
31830         * ProgressBar.cs: Spelling
31831
31832 2004-07-09 11:25  pbartok
31833
31834         * ProgressBar.cs:
31835           - Removed usage of Rectangle for drawing. Miguel pointed out it's
31836           faster
31837
31838 2004-07-09 11:17  miguel
31839
31840         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
31841
31842                 * ProgressBar.cs: Fixed spelling for `block'
31843
31844                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
31845                 style guidelines.
31846
31847                 Avoid using the += on rect.X, that exposed a bug in the compiler.
31848
31849 2004-07-08 23:21  pbartok
31850
31851         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
31852           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
31853           BaseCollection.cs, Binding.cs, BindingContext.cs,
31854           BindingMemberInfo.cs, BindingsCollection.cs,
31855           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
31856           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
31857           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
31858           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
31859           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
31860           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
31861           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
31862           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
31863           FrameStyle.cs, GiveFeedbackEventArgs.cs,
31864           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
31865           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
31866           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
31867           InputLanguageChangedEventArgs.cs,
31868           InputLanguageChangedEventHandler.cs,
31869           InputLanguageChangingEventArgs.cs,
31870           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
31871           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
31872           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
31873           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
31874           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
31875           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
31876           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
31877           QueryAccessibilityHelpEventArgs.cs,
31878           QueryAccessibilityHelpEventHandler.cs,
31879           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
31880           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
31881           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
31882           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
31883           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
31884           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
31885           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
31886           XplatUIX11.cs, lang.cs:
31887           - Initial check-in
31888
31889