In System.Windows.Forms:
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-02-04  Geoff Norton  <gnorton@novell.com>
2
3         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
4         SYSKEYUP if any other key has been pressed in the mean time.
5         Fixes #324404
6
7 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8
9         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
10         when the item in current position is different than 0. Also, save the
11         item index in the beginning of the operation, instead of getting the
12         index of the item when the event is actually performed. Lastly clean
13         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
14         triggered.
15         [Fixes #357873]
16
17 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
18
19         * Form.cs: Alt-Minus for MDI children system menu should work
20         with both the minus keys on the keyboard.
21         [Fixes bug #336295]
22
23 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
24
25         * Control.cs: Don't invalidate on region change.  The WM should
26         take care of this automagically.  Keeps us out of an infinite
27         paint loop if someone changes the Region in the OnPaint.
28         [Fixes bug #358327]
29
30 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
31
32          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
33
34 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
35
36         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
37         down the MonthCalendar only on F4, not Alt+F4.
38         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
39         [Fixes bug #358340]
40
41 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
42
43         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
44         if its part of a DateTimePicker, else, use the back color.
45         [Fixes bug #358339]
46
47 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
48
49         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
50         [Fixes bug #358342]
51
52 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
53
54         * CurrencyManager.cs: When we get a ListChanged event from our source,
55         always fire our own ListChanged event, as .Net does.
56
57 2008-02-03  Luke Page  <luke.a.page@gmail.com>
58
59         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
60         #358379.
61
62 2008-02-03  Luke Page  <luke.a.page@gmail.com>
63
64         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
65         property. Removed if for richtext property that was always true.
66         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
67
68 2008-02-03  Luke Page  <luke.a.page@gmail.com>
69
70         * TextBoxBase.cs - commited patch from James Purcell that
71         correctly sets the FixedHeight control style when the MultiLine
72         property is changed on a TextBox control. Fixes bug 358229.
73
74 2008-02-02  Luke Page  <luke.a.page@gmail.com>
75
76         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
77         Fixes bug 351938 - caret is positioned correctly when drawn
78         and when calculating textual position of caret, no longer
79         has a NRE in certain situations.
80         
81 2008-02-01  Geoff Norton  <gnorton@novell.com>
82
83         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
84         get that region removed from the paint event.
85         * XplatUICarbon.cs: Remove the window mapping after disposing of 
86         window.  Prevents a crash with handle reuse.  Optimize exposes
87         only onto visible windows (rare; but possible).
88
89 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
90
91         * UpDownBase.cs: Make sure the internal textbox calls the base's
92         OnMouseDown and OnMouseUp so the textbox will function correctly.
93         There were notes saying it doesn't chain up, but its an internal
94         class, so our implementation may differ.
95         [Fixes bug #357482]
96
97 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
98
99         * ListBox.cs: Fix a logic error and don't process MouseDown
100         for mouse buttons other than Left.
101
102 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
103
104         * Control.cs: Remove HeightInternal.
105         * ListBox.cs: Commit patch from James Purcell that correctly
106         calculates heights for ListBoxen.
107         [Fixes bug #357152]
108
109 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
110
111         * Label.cs: Apply patch from James Purcell that corrects the 
112         signature of the AutoSize property.
113         [Fixes bug #357605]
114
115 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
116
117         * ListBox.cs: Don't throw [Mouse]Click events for buttons
118         other than the left mouse button.
119
120 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
121
122         * Control.cs: Remove my awesome optimization as it caused some
123         regressions with control ordering.  :(
124         [Fixes bug #357467]
125
126 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
127
128          * PropertyGridView.cs: Fix a NRE on double click when there is no
129          selected object.
130
131 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
132
133         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
134
135 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
136
137         * ListBox.cs: Call MouseClick and MouseDoubleClick.
138         [Fixes bug #357146]
139
140 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
141
142         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
143         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
144         instead of Hwnd.bmp_g.
145
146 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
147
148         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
149         Use the Hwnd one instead.
150
151 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
152
153         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
154
155 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
156
157         * Form.cs: corcompare for RestoreBounds.
158
159 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
160
161         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
162
163 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
164
165         * Form.cs: Handle Alt-Minus for MDI children forms.
166         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
167         Add mnemonics to the control menu.
168         [Fixes bug #336295]
169
170 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
171
172         * Binding.cs: Initial implementation bits of FormattingEnabled
173         property and BindingComplete event (2.0). 
174         * BindingCompleteEventArgs.cs: Internal methods for setting error text
175         and exception.
176
177 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
178
179         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
180         table.Location.  [Fixes bug #354672]
181
182 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
183
184         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
185         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
186
187 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
188
189         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
190         of doing all the re-bound work, just invalidate and call SetControlText 
191         to set the updated text of selected item to our textbox.
192         Fixes #333750.
193
194 2008-01-28  Andreia Gaita <avidigal@novell.com>
195
196         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
197         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
198         missing properties and methods. Add Load, Unload, Error, GotFocus, 
199         LostFocus, Resize, Scroll events (only load and unload are connected)
200
201 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
202
203         * AccessibleObject.cs: Modified argument names to match MS.
204         * Button.cs: Modified argument names to match MS.
205         * BindingContext.cs: Modified argument names to match MS.
206         * BindingMemberInfo.cs: Modified argument names to match MS.
207         * ButtonBase.cs: Modified argument names to match MS.
208         * ComboBox.cs: Modified argument names to match MS.
209         * Control.cs: Modified argument names to match MS.
210         * CheckedListBox.cs: Modified argument names to match MS.
211         * CommonDialog.cs: Modified argument names to match MS.
212         * DataGrid.cs: Modified argument names to match MS.
213         * CursorConverter.cs: Modified argument names to match MS.
214         * ControlPaint.cs: Modified argument names to match MS.
215         * CheckBox.cs: Modified argument names to match MS.
216         * ControlBindingsCollection.cs: Modified argument names to match MS.
217         * BindingSource.cs: Modified argument names to match MS.
218         * DataFormats.cs: Modified argument names to match MS.
219         * ContainerControl.cs: Modified argument names to match MS.
220         * CurrencyManager.cs: Modified argument names to match MS.
221         * Application.cs: Modified argument names to match MS.
222         * ContextMenuStrip.cs: Modified argument names to match MS.
223         * ContextMenu.cs: Modified argument names to match MS.
224         * BindingManagerBase.cs: Modified argument names to match MS.
225         * WindowsFormsSection.cs: Fixed line ending.    
226
227 2008-01-27  Andreia Gaita <avidigal@novell.com>
228
229         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
230         detecting that the dropdown toolwindow is hidden. EndLoop outside the
231         while.
232
233 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
234
235         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
236         MS. Code formatting.
237
238 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
239
240         * Binding.cs: Don't avoid the Format event if the control 
241         property type is object. Also, if the value retrieved by 
242         the data source is null _and_ the control proeprty type 
243         is object, return Convert.DBNull (match .Net).
244         Fixes part of #324286.
245
246 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
247
248         * ListControl.cs: Since we are getting two BinginContextChanged events
249         for the same binding context instance (when the control is added to
250         form, and when the form is actually shown), take it into account only the
251         first time for a given binding context instance.
252         Fixes part of #324286.
253
254 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
255
256          * PropertryGridView.cs: Ops.
257
258 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
259
260          * PropertyGridView.cs: Close dropdown form if the owner form is
261          moved or minimized.
262          [Fixes bug #322446]
263
264 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
265
266          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
267          RootGridEntry.cs, CategoryGridEntry.cs:
268          PropertyGrid rewrite.
269          - Rewrite all of the control logic in PropertyGrid.
270          - Rewrite all of the ComponentModel logic in GridEntry.
271          - Rewrite all UI work in PropertyGridView.
272          - Many bugfixes, etc.
273
274 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
275
276         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
277         when all contained controls are autosize or dock-fill.  Also take into
278         account when the total percentage of column/row sizes is not 100%.
279         [Fixes bug #354672]
280
281 2008-01-24  Andreia Gaita <avidigal@novell.com>
282
283         * HtmlDocument.cs:
284         - Save a reference to the IDocument in the instance and
285           use that one instead of going to WebHost.Document; the document that the 
286           WebHost returns might not be the right one (in case of frames).
287         - Use the hashcode returned from the IDocument interface.
288         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
289           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
290           LinkColor, Url, VisitedColor, Window
291
292         * HtmlElement.cs: 
293         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
294           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
295           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
296           SetAttribute, Equals, equality operators.
297         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
298           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
299         
300         * HtmlElementCollection.cs: Change implementation to use a generic
301         collection. Implemented Enumerator and CopyTo
302
303         * HtmlHistory.cs: Add constructor, no implementation yet.
304
305         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
306         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
307         Equals, equality operators.
308
309         * HtmlWindowCollection.cs: Implemented. 
310
311         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
312         has been deprecated).
313
314         * WebBrowserBase.cs: Use Completed event to track document loading
315         (Navigated has been deprecated)
316
317 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
318
319         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
320         level MenuItems do not respect tabs.
321         [Fixes bug #355196]
322
323 2008-01-23  Geoff Norton  <gnorton@novell.com>
324
325         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
326         FormWindowState.  Finished fixing Fullscreen windows on Carbon
327
328 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
329
330         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
331         be used as grab_control. Also save status of capture before show ContextMenu
332         and restore it after close.
333
334 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
335
336         * Control.cs: Internal FindRootParent method added to return high control
337         in parent tree.
338
339 2008-01-23  Geoff Norton  <gnorton@novell.com>
340
341         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
342         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
343         it work again.  Handle HITTEST events.
344
345 2008-01-23  Geoff Norton  <gnorton@novell.com>
346
347         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
348         a crash in certain cases.  Support for fullscreen windows in certain cases.
349
350 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
351
352         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
353         [Fixes bug #355703]
354
355 2008-01-23  Geoff Norton  <gnorton@novell.com>
356         
357         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
358
359 2008-01-23  Geoff Norton  <gnorton@novell.com>
360
361         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
362
363 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
364
365         * SplitContainer.cs: Remove unused declarations.
366         * Binding.cs: Remove unused declarations.
367
368 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
369
370         * Form.cs: Remove unused declaration of 'active' in Activate method.
371         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
372         prevent compilation warnings.
373         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
374         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
375         * Bindings.cs: Remove unused formatting_enabled declaration.
376         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
377         warnings.
378         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
379         warnings.
380         * PropertyGridView.cs: Remove usused 'ex' declaration.
381         * DataGridView.cs: Remove unused declarations.
382
383 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
384
385         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
386         
387         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
388         to Control class, it makes possible to grab menu to controls that can't 
389         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
390         WmMouseMove removed since it was used only to track menu events.
391
392         * Control.cs:
393         - Moved all active_tracker stuff from Form.
394         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
395         can call this method instead of reimplement all necessary code handle for
396         menu tracker.
397         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
398         and WmMouseMove).
399         
400         * MenuAPI.cs: 
401         - Remove special handle to ToolStripOverflow, now we can grab menu to 
402         controls that can't reach Form using parent tree.
403         - Change type of grab_control from Form to Control.
404
405 2008-01-22  Geoff Norton  <gnorton@novell.com>
406
407         * TextBoxBase.cs: Split up the sizing of controls and placing of 
408         controls.  Fixes a bug where scrollbars in Reflector could be sized
409         wrong and have non-working thumbers.
410
411 2008-01-23  Geoff Norton  <gnorton@novell.com>
412
413         * XplatUI.cs: Refactor environment variables to default support to the
414         Carbon driver on the Mac.
415
416 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
417
418         * Label.cs: Uses new LabelPainter for drawing operations.
419         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
420         * Theme.cs: DrawLabel and LabelDefaultSize removed.
421
422 2008-01-22  Geoff Norton  <gnorton@novell.com>
423
424         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
425
426 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
427
428         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
429         through the normal flat button code and don't draw the checkbox glyph.
430         * Theme.cs: Button->ButtonBase signature change.
431         [Fixes bug #324755]
432
433 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
434
435         * LinkLabel.cs: Uses new class LinkLabelPainter.
436
437 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
438
439         * MessageBox.cs: Adjust right border space, we don't need to add 
440         "space_border*2" two times.
441
442 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
443
444         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
445         becomes a wrapper around Padding.
446         [Fixes a part of bug #354676]
447
448 2008-01-22 Geoff Norton  <gnorton@novell.com>
449
450         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
451         acquired.  Also ensure the buffer is large enough to grab the header
452         we need on linux boxes.
453
454 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
455
456         * Control.cs: Implement a custom enumerator so people can delete
457         from the Controls collection while in a foreach.
458         [Fixes bug #355074]
459
460 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
461
462          * PropertyGridView.cs: Fix focusing behavior:
463          - Tab should focus the grid text box.
464          - Clicking on the labels shouldn't focus the grid text box.
465
466 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
467
468          * PropertyGridView.cs: IsValueTypeGridItem should return true 
469          for Arrays as well.
470
471 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
472
473          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
474           - Renamed GridEntry.SelectedObjects to TargetObjects to better
475           reflect the property name role.
476           - PropertyGrid.GetTarget is not required as the target is known
477           (TargetObjects).
478           - Setting values will handle value types as a special case now and
479           populate them up in the chain.
480           [Fixes #354990]
481
482 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
483
484         * Hwnd.cs: Create a public property for the Graphics we keep around.
485
486 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
487
488          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
489          when the current object selection changes. 
490          Fixes failing test SelectedObject_Null2.B5.
491
492 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
493
494          * PropertyGrid.cs: Process Browsable properties with 
495          DesignerSerializationVisibilityAttribute.Content as being expandable.
496          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
497          will not be expandable. We should be nested components-friendly now.
498
499 2008-01-21  Andreia Gaita <avidigal@novell.com>
500
501         * WebBrowserBase.cs: Check if control was loaded properly, 
502         don't bind if it wasn't.
503
504         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
505         GetElementFromPoint, equality operators, OpenNew, Write.
506         Remove extra set_Body
507
508 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
509
510         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
511         that makes our AutoScale* stuff more tolerant to different orders
512         of being set.  [Fixes bug #354669]
513
514 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
515
516          * PropertyGridView.cs, PropertyGridTextBox.cs: 
517          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
518          [Fixes #339005 and #348209]
519
520 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
521
522          * PropertyGridView.cs: Hide the grid text box before adjusting it
523          for the newly selected GridItem.
524          [Fixes #338999]
525
526 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
527
528         * Form.cs: Give MDI children the opportunity to cancel the parent form
529         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
530         properly for both the parent and child.
531         * Application.cs: Signature of internal method changed, pass the previous
532         default of false.
533         [Fixes bug #354286]
534
535 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
536
537         * PropertyGridView.cs: Set the property value only if it has changed.
538         [Fixes bug #338997]
539
540 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
541
542         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
543         If the mouse hasn't actually moved, ignore these messages so the currently
544         highlighted menuitem isn't reset to the one under the mouse.
545         [Fixes bug #333668]
546
547 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
548
549         * PropertyGridView.cs: When the property changes Invalidate the GridItem
550         in order for the properties with UITypeEditor.GetPaintValueSupported == true
551         to reflect the change visually.
552         [Fixes bug #338998]
553
554 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
555
556         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
557         to 2.0 button drawing.
558         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
559         the button text is tall enough for one line.  LineLimit says it will
560         always draw at least one line, but it is a lie.
561         [Fixes bug #324941]
562
563 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
564
565         * XplatUIStructs.cs, X11Keyboard.cs :
566           added some more VK_* keys to be handled.
567
568 2008-01-16  Andreia Gaita <avidigal@novell.com>
569
570         * Control.cs: Check if there is a container before setting or getting
571         the validation flag.
572
573 2008-01-16  Andreia Gaita <avidigal@novell.com>
574
575         * ContainerControl.cs: Add flag to track if a control cancels validation, 
576         so we don't fire click events.
577
578         * Control.cs: 
579         - (HandleClick) Check if validation was cancelled before  firing the click
580         events (doubleclicks are fired, but not clicks)
581         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
582         ContainerControl.set_ActiveControl, but in the case of non-selectable
583         controls, like a Label, activecontrol is not set. 
584
585         * ButtonBase.cs: Only fire clicks if validation passes.
586         
587         Fixes #353310
588
589 2008-01-16  Geoff Norton  <gnorton@novell.com>
590
591         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
592         trunk
593
594 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
595
596         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
597         SelectedPath, just display the default dialog instead of crashing.
598         [Fixes bug #348989]
599
600 2008-01-16  Geoff Norton  <gnorton@novell.com>
601
602         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
603         AddExpose instead of trusting apples compositing manager which doesn't
604         work for our use case.  Remove some dead code causing warnings and 
605         redecorate some other code to prevent warnings.
606
607 2008-01-16  Geoff Norton  <gnorton@novell.com>
608
609         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
610         carbon signals us to redraw.  Fixes another portion of the flickering bug
611
612 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
613
614         * Form.cs: Prevent the MdiParent property to be set when value is the same
615         as value already set. Fixes bug #328019.
616
617 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
618
619         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
620         it prevents NRE when closing mdi child windows. Fixes bug #325211.
621
622 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
623
624         * InternalWindowManager.cs: Invalidade close button after mouse up when 
625         mdi form is prevented to close.
626
627 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
628
629         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
630         thanks to Andy Hume. Fixes bug #325433.
631
632 2008-01-16  Andreia Gaita <avidigal@novell.com>
633
634         * LinkLabel.cs: Reset focused_index when resellecting the control.
635         Fixes #323190
636
637 2008-01-15  Geoff Norton  <gnorton@novell.com>
638
639         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
640         messages.
641
642 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
643
644         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
645         of truncate.
646
647 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
648
649         * ContainerControl.cs: Setting AutoScaleMode to anything should set
650         Form.AutoScale to false.
651         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
652         AutoScaleBaseSize should be changed on Font change unless it has been
653         explicitly set.
654         [Fixes bug #353827]
655
656 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
657
658         * MenuAPI.cs: On instance of MenuTracker check if source control is
659         ToolStripOverflow and use properly method to find form.
660         [Fixes bug #338511]
661
662 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
663
664         [Fixes bug #323241 Transparent toolbar support]
665
666         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
667         is flat.
668
669         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
670         defined in control style to mimic win32 behavior.
671
672         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
673         it will be transparent.
674
675 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
676
677         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
678         CreateParams for ToolBar controls.
679
680 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
681
682         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
683         FixedToolWindow, SizeableToolWindow, or None for border styles have
684         different minimum sizes than regular forms.  Implemented to fix
685         regression in PDN with toolbox being too wide.
686
687 2008-01-14  Andreia Gaita <avidigal@novell.com>
688
689         * HtmlElementCollection.cs: Implemented
690
691         * HtmlElement.cs: Implemented:
692           - All
693           - InnerHtml
694           - InnerText
695           - Id
696           - Name
697           - FirstChild
698
699         * HtmlDocument.cs: Implemented GetElementsByTagName.
700
701 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
702
703         * Screen.cs: Stub BitsPerPixel to always return 32.
704
705 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
706
707         * Form.cs: Implement RestoreBounds.
708
709 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
710
711         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
712         Sebastien and his fabulous magical problem-finding machine:
713         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
714         respect the value set.
715
716 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
717
718         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
719         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
720
721 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
722
723         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
724         messages (to match .Net), we need to remove the capture ourselves.
725
726 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
727
728         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
729         will process the message and close our window.
730         [Fixes bug #324328]
731
732 2008-01-10  Geoff Norton  <gnorton@novell.com>
733
734         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
735         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
736         window manager.
737
738 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
739
740         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
741         failing test.
742
743 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
744
745         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
746         Linux doesn't care, having a minimum matches MS and keeps the window
747         from becoming too small to use window decorations.
748         [Fixes bug #338996]
749
750 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
751
752         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
753         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
754         control.  [Fixes bug #325419]
755
756 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
757
758         * ComboBox.cs: Guard against an NRE if the user open a new form from a
759         SelectedIndexChanged event.  This closes the combobox dropdown, and we
760         were trying to dispose it.  [Fixes bug #352830]
761
762 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
763
764         * Control.cs, Form.cs: Implement the necessary semantics for
765         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
766         to determine if a focus rectangle should be drawn.
767         * PropertyGrid.cs: Fix property visibility to match override.
768         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
769
770 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
771
772         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
773         [Fixes bug #323552]
774
775 2008-01-09  Geoff Norton  <gnorton@novell.com>
776         
777         * XplatUICarbon.cs: Scroll windows in the correct direction.
778
779 2008-01-09  Geoff Norton  <gnorton@novell.com>
780
781         * XplatUICarbon.cs: Track all created utility windows so we can hide them
782         when the app is deactivated or spaces is enabled.
783
784 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
785
786         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
787         extra separation pixel for the label rect origin if SmallImageList is
788         null, and thus we don't need that separation between icon and label
789         rects.
790         Patch by Ernesto Carrea.
791         Fixes # 340195.
792
793 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
794
795         * StatusStrip.cs: Invalidate after completing a layout.  The base
796         OnLayout does this, but we don't call the base.
797         * ToolStripItem.cs: Revert the previous change to invalidate after
798         the item moves.
799         [Fixes bug #351341 better.]
800
801 2008-01-07  Geoff Norton  <gnorton@novell.com>
802
803         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
804         not a notification to exit the application.  Listen for WM_QUIT
805         instead.
806
807 2008-01-07  Andreia Gaita <avidigal@novell.com>
808
809         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
810
811 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
812
813         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
814         so it can repaint at the correct location.
815         [Fixes bug #351341]
816
817 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
818
819         * ListControl.cs: SelectedValue should return a null value if
820         SelectedIndex is -1. Also, when setting it, it should throw an
821         ArgumentNullException if the value is null, as well as taking
822         into account the String.Empty value, instead of ignoring it (we have
823         tests for that now).
824         Fixes part of #324286.
825
826 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
827
828         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
829         SelectionStart is updated after pressing enter.  Fixes bug #351918.
830
831 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
832
833         * TextControl.cs: Revert a piece r92316 that prevented the fix
834         from working when there were multiple tags in the text box.
835         Fixes bug #351881.
836
837 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
838
839         * TextControl.cs: Apply patch from Luke Page that prevents an
840         NRE when determining the beginning of a paragraph.
841         Fixes bug #351886.
842
843 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
844
845         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
846         caret gets moved with clicking away from a selected block of
847         text.  Fixes bug #351885.
848
849 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
850
851         * TextControl.cs: Apply patch from Luke Page that takes line
852         alignment into account for mouse selection, so that center and
853         right aligned text can be selected.
854         Fixes bug #351881.
855
856 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
857
858         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
859         issues after loading an RTF file by using the correct line feeds.
860         Fixes bug #351841.
861
862 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
863
864         * TextControl.cs: When deleting multiple line selections, we need
865         to invalidate every line beginning at the first line of the selection.
866         Patch from Luke Page fixes bug #351791.
867
868 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
869
870         * ListControl.cs: When getting a CurrencyManager.PositionChanged
871         event, don't set SelectedIndex if the number of items is 1. This is
872         because, for the first item, PositionChanged is fired _before_
873         ItemChanged (the place where we actually populate the items), and
874         leave us in a temporary invalid state (since items collection is
875         empty).
876         Fixes #349655.
877
878 2008-01-04  Geoff Norton  <gnorton@novell.com>
879
880         * XplatUICarbon.cs:  Create native toolwindows instead of
881         the managed drawing ones.
882
883 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
884
885         * LineTag.cs: If the line doesn't have any characters, return
886         0 for GetCharIndex.  Fixes an AOORE exception after certain
887         caret movements.  Fixes bug #351683.  Patch by Luke Page.
888
889 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
890
891         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
892         is hit when there is selected text, only the selected text gets
893         deleted, not the character in front of the selection as well.
894         Fixes bug #351578.
895
896 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
897
898         * ComboBox.cs: When the values are displayed, calculate the
899         ComboListBox scrollbar's LargeChange based on the visible area's
900         height and  the actuall ItemHeight, instead of calculating it
901         based on MaxDropItems value, since it's not used by our _current_ 
902         2.0 profile.
903         Fixes #332366.
904
905 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
906
907         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
908         Patch from Luke Page that fixes issues with font colors and styles
909         not showing up in a readonly RichTextBox.  Fixes bug #324354.
910
911 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
912
913         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
914         from Luke Page.  This one fixes bug #349926.
915
916 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
917
918         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
919         an item in the IBindingList source changes with
920         ListChangedType.ItemAdded. Ignore for now firing the event for other
921         changes, since we want to have tests for those cases as well.
922
923 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
924
925         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
926         created.
927
928 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
929
930         * TextBoxTextRenderer.cs: Implement a cache for measuring each
931         character.  This is effective because the typical usage of a
932         TextBox is with a limited amount of fonts and characters, and
933         the current implementation of TextBox measures everything one
934         character at a time.  Another second or two speedup for bug #347238.
935
936 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
937
938         * Control.cs: Rewrite the Font getter to only query the parent's
939         Font property once instead of twice.  Since this operation is
940         recursive, the queries were growing exponentially as the control
941         tree got deeper.  Another second or two speedup for bug #347238.
942
943 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
944
945         * Control.cs: Avoid setting a parent (and more importantly, updating
946         the zorder of all its children) if the parent is already correct in
947         WmShowWindow.  Decreases the startup time of the test case on bug
948         #347238 from 35 seconds to 11 seconds.
949
950 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
951
952         * X11Dnd.cs: When the dnd operation has started and we are 
953         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
954         This is done to match .Net, which doesn't send those messages after
955         dnd operation was completed/cancelled.
956         Fixes #349922.
957
958 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
959
960         * ToolStrip.cs: Previous change should be != null, not == null.
961         Thanks Gert!
962
963 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
964
965         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
966         user may have moved the mouse off the current item during the event.
967
968 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
969
970         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
971         calling GetItemAt for every MouseMove event by also taking into
972         account whether any mouse button is pressed (probably dragging); 
973         if so, we can call GetItemAt, and if not, try to not call it 
974         (GetItemAt can be quite expensive when used with a large number of items).
975
976 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
977
978         * ListView.cs: Implement -finally- support for dnd, by calling
979         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
980         authors list ;-).
981         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
982         simple calculation of distances for all the items in the owner
983         listview.
984
985 2007-12-21  Geoff Norton  <gnorton@novell.com>
986
987         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
988         for windows that are originally created as invisible.  Fixes missing
989         main window in paint-mono.
990
991 2007-12-21  Geoff Norton  <gnorton@novell.com>
992
993         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
994         subclass handler for com.novell.mwfview subclassing HIView.  Implement
995         Pasteboard and Dnd methods.
996
997 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
998
999         * ListBox.cs: When we got focus, give focus to first item if there
1000         wasn't any pervious focused item. Also update navigation to depend on
1001         SelectedIndex rather than FocusedItem, just as .Net does.
1002         Fixes #349174.
1003
1004 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1005
1006         * ListBox.cs: Both FindString and FindStringExact methods must do an
1007         case insensitive search, should allow the last valid index to be
1008         passed in the overload taking an initial index, and should also
1009         continue searching from the top back to the specified index when it
1010         reaches the bottom.
1011
1012 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1013
1014         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
1015         redraw issue, and allows RichTextBox to draw colored text even while
1016         disabled or readonly.
1017
1018 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1019
1020         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
1021         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
1022         and doesn't grey text in a disabled RichTextBox.
1023
1024 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1025
1026         * RichTextBox.cs: Apply patch from Luke Page that adds better support
1027         for many RTF commands: quad alignment, separate formatting for blocks
1028         inside groups, and ParDef support.  Makes the test case from bug #324589
1029         look much better.
1030
1031 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1032
1033         * LineTag.cs: Fix an error in the new Draw method that caused
1034         a crash when rendering the document on bug #324589.
1035
1036 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
1037
1038         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
1039         TextControl.cs: Apply patch from Luke Page that adds support
1040         for URL links in RichTextBox.
1041         [Fixes enhancement #342516]
1042
1043 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
1044
1045         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
1046         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
1047
1048 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1049
1050         * ListBox.cs: When a key gets pressed, try to find a string
1051         if the key is a character or a digit.
1052         Fixes #343971.
1053
1054 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
1055
1056         * TableLayoutPanel.cs: Remove some unused variables.
1057
1058 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
1059
1060         * DateTimePicker.cs: Commit patch from Luke Page that ensures
1061         we don't end up at an invalid date when we click the up/down
1062         spinner to change the month or year.  Fixes bug #348682.
1063
1064 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
1065
1066         * Application.cs: Calling Exit in 2.0 should chain to the
1067         Exit (CancelEventArgs) version so it can be cancelled.
1068         * Form.cs: Create a flag to allow raising the Closing
1069         events to be skipped.  We raise them once in Application.Exit
1070         and don't want to raise them again when the Form is actually
1071         closed.  [Fixes bug #349073]
1072
1073 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
1074
1075         * ToolStripDropDown.cs: Guard against an NRE when there
1076         hasn't been a mainform set in the application context.
1077         [Fixes bug #349108]
1078
1079 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1080
1081         * ListBox.cs: When SetBoundsCore gets called, besides
1082         calling UpdateScrollBars, update the value of
1083         last_visible_index, since we could need to show more items
1084         than before, and we need to let the paint routines know that.
1085         Fixes #344445.
1086
1087 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1088
1089         * ListView.cs: Add DesignerSerializationVisibility attribute to
1090         InsertionMark property.
1091         * ListViewItem.cs: Add same attribute to Position property.
1092
1093 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1094
1095         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
1096         is 2.0 only.
1097
1098 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
1099
1100         * ThemeWin32Classic.cs: Don't draw the background on a
1101         flat button if there is a background image.
1102         [Fixes bug #348649]
1103
1104 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1105
1106         * ListBox.cs: If we remove the item currently selected,
1107         remove it not only from SelectedItems, but also
1108         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
1109         the items count decreased and focused_item has bigger value than that.
1110
1111 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
1112
1113         * Control.cs: Perform our layout after we resize ourselves
1114         if we had to adjust our AutoSize.  Missed commit for bug
1115         #346246.
1116
1117 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
1118
1119         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
1120         we can provide an implementation of AutoSize.
1121         [Fixes bug #346246]
1122
1123 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1124
1125         * ListBox.cs: Add the internal overload Sort (bool paint),
1126         to indicate whether we actually need a paint or we will
1127         call Refresh ourselves. This way we don't request a paint
1128         _before_ having an updated and valid layout.
1129         Fixes #347233.
1130
1131 2007-12-12  Andreia Gaita <avidigal@novell.com>
1132
1133         * XPlatUIX11.cs: Send paint messages when updating a systray icon
1134         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
1135         properly invalidated. 
1136         Fixes #324237
1137
1138 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1139
1140         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
1141         don't simply assign it to our internal group field, but instead 
1142         use our Group property, which should do all the neccessary work
1143         required to support groups. Fixes an issue reported to me (mail) by a 
1144         guy using this new feature.
1145
1146 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
1147
1148         * Control.cs: Use Scale instead of ScaleControl to ensure the
1149         whole hierarchy gets scaled.
1150         [Fixes bug #347282]
1151
1152 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
1153
1154         * DateTimePicker.cs: Don't set the internal MonthCalendar's
1155         Parent property.  Doing this causes the control to be hosted by
1156         the Form instead of being a popup window.
1157         [Fixes bug #347665]
1158
1159 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
1160
1161         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
1162         at an index higher than Count, just use Add instead of Insert.
1163         [Fixes bug #347669]
1164
1165 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
1166
1167         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
1168         DrawPictureBox, this is handled by Control.PaintBackground.
1169         [Fixes bug #347276]
1170
1171 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
1172
1173         * MenuAPI.cs: When process menu keys return true by default only if menu is
1174         active. Fixes bug #342892.
1175
1176 2007-12-09  Andreia Gaita <avidigal@novell.com>
1177
1178         * Control.cs: check if windows are actually mapped before
1179         trying to zorder. Fixes #342509, #346955
1180
1181 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1182
1183         * ListView.cs:
1184         * ListViewInsertionMark.cs:
1185         * ThemeWin32Classic.cs: Implement the drawing side of the
1186         new 2.0 ListView.InsertionMark property.
1187
1188 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
1189
1190         * CurrencyManager.cs: Silence some debug spew.
1191
1192 2007-12-07  Geoff Norton  <gnorton@novell.com>
1193         
1194         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
1195         masks for our children as well as siblings to avoid having to query
1196         Quartz for this information.
1197         * XplatUICarbon.cs: Implement a delegate based system to pass
1198         information to System.Drawing.  Implement Async methods.  Remove
1199         the hack for the resize thumb and imlpement a transparent Grow Box.
1200         Rework the messaging system to proplery create window's and messages,
1201         fixes TabControl.
1202
1203 2007-12-06  Andreia Gaita <avidigal@novell.com>
1204
1205         * X11Keyboard.cs: Use Xutf8LookupString to support international 
1206         characters under alternate codepages. Patch from #340878
1207
1208 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1209
1210         * ListView.cs: When doing layout computations, set position in the
1211         ListView instances (we cache the position just as .Net does).
1212         * ListViewItem.cs: New internal setter method for Position. Also set
1213         position field as also available in 1.1, since we are going to use it
1214         now in the common case.
1215
1216 2007-12-06  Andreia Gaita <avidigal@novell.com>
1217
1218         * Control.cs: When removing controls, get the actual container
1219         to notify about active control changes. Fixes 341314.
1220
1221 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1222
1223         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
1224
1225 2007-12-05  Andreia Gaita <avidigal@novell.com>
1226
1227         * Control.cs: When updating the zorder, ignore windows that are not
1228         mapped. Fixes #342509
1229
1230 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1231
1232         * ListViewItem.cs: Actually implement serialization on this class.
1233
1234 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
1235
1236         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
1237         LinkCollection. Spaces to tabs, and removed extra tabs.
1238
1239 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1240
1241         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
1242           tests to fail (hopefully).
1243
1244 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
1245
1246         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
1247         the image margin so custom renderers can correctly place it.
1248
1249 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
1250
1251         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
1252         so custom renderers can correctly place it.
1253
1254 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
1255
1256         * Application.cs: Let WM_CHAR messages flow through to controls
1257         hosted in Strips.  [Fixes bug #343972]
1258
1259 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
1260
1261         * ToolStripManager.cs: Guard against an NRE I ran into.
1262
1263 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
1264
1265         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
1266         a Link is manually added to the Links collection, we need to set
1267         its owner, so it can invalidate properly.
1268         [Fixes bug #344012]
1269
1270 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1271
1272         * ListView.cs: When changing ListViewItem.Position (which calls
1273         ListView.ChangeItemLocation), invalidate not only the area
1274         corresponding to the main item, but also to the area occupied
1275         by the items being moved.
1276
1277 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1278
1279         * ListView.cs: When changing the position of a given item,
1280         don't use item bounds, but item areas (which includes the item spacing
1281         between them). Also, use first/last position if the requested
1282         position is outside bounds (as .Net does). Invalidate the previous and
1283         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
1284         in a specific position, instead of directly accessing Items collection
1285         (this is done to get the right item - remember an Item can have a
1286         different position in the grid than in the Items collection).
1287
1288 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
1289
1290         * MessageBox.cs: Calculate text area instead of just top left, this rect 
1291         area will be used in DrawString. Fixes bug #343364.
1292
1293 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
1294
1295         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
1296         screen width. Partially fixes bug #343364.
1297
1298 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
1299
1300         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
1301         code inside recalculate, it makes code more simple.
1302
1303 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
1304
1305         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
1306         between update or add icon. Fixes bug #324344.
1307
1308 2007-11-21  Andreia Gaita <avidigal@novell.com>
1309
1310         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
1311         window manager, since that stretches the drawing area to include
1312         the window decorations, and they get hidden. Reverts r84444 and fixes
1313         #335849 and #342790 (mdi and pdn3 regression)
1314
1315 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1316
1317         * ListView.cs: When setting focused item, try to give focus to the
1318         previous one _only_ if the previous one remains valid. 
1319         Fixes #342504.
1320
1321 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
1322
1323         * Application.cs: Revert r89650, as it broke a common case to fix
1324         an obscure case.  Fixes bug #342606.
1325
1326 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
1327
1328         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
1329
1330 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
1331
1332         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
1333         alignment. [Fixes #324228]
1334
1335 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
1336
1337         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
1338         [Fixes bug #342123]
1339
1340 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
1341
1342         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
1343         it prevent problems when empty captions. [Fixes #342141]
1344
1345 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
1346
1347         * Label.cs: Use Size instead of None.  Fixes bug #342077.
1348
1349 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1350
1351         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
1352
1353 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
1354
1355         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
1356         but there isn't a MdiContainer.
1357         [Fixes bug #342358]
1358
1359 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
1360
1361         * TextControl.cs: Don't recalculate document if the recalc_start and
1362         recalc_end hasn't changed.
1363         [Fixes bug #342505]
1364
1365 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
1366
1367         * DataGridViewTextBoxCell.cs: Removed CWL.
1368
1369 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370
1371         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
1372
1373 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
1374
1375         * TextControl.cs: Missed some code for bug 341534 to trigger a
1376         recalculation when the font changes.
1377
1378 2007-11-16  Andreia Gaita <avidigal@novell.com>
1379
1380         * Control.cs: When updating the zorder, check if the child to update is
1381         the same control that is set to always be on top (i.e., scrollbars), and 
1382         just put it on top directly. Fixes BadMatch error on pdn3
1383
1384 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1385
1386         * ListView.cs: Throw the needed exceptions for FindNearestItem.
1387
1388 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
1389
1390         * Control.cs: Don't perform a new layout when a label changes its text,
1391         cause label handles its own autosizing.
1392         [Fixes bug #342077]
1393
1394 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1395
1396         * ListView.cs: Implement 2.0 FindNearestItem methods.
1397
1398 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
1399
1400         * ToolStripPanel.cs: Make Join at least add the control to the panel,
1401         even if the rest of what Join does isn't supported.  Add some more
1402         support for vertical toolbars.
1403         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
1404         [Fixes the application breaking parts of bug #341998]
1405
1406 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
1407
1408         * ToolStripItem.cs: When determining if we have a check/image margin,
1409         we need to look at ShowCheckMargin as well as ShowImageMargin.
1410
1411 2007-11-15  Geoff Norton  <gnorton@novell.com>
1412
1413         * XplatUIOSX.cs: Rename to...
1414         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
1415         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
1416
1417 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
1418
1419         * KeysConverter.cs: The default values should be an array of Keys, not
1420         strings.  Also, the array has more values for 2.0.
1421         [Fixes bug #341851]
1422
1423 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
1424
1425         * Application.cs: Change ExecutablePath to use 
1426         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
1427         [Fixes bug #323552]
1428
1429 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
1430
1431         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
1432         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
1433         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
1434         be ignored.  Create a new GetLineEnding that can specify which types of
1435         line endings to look for.  On Insert, only create new lines for \n and \r\n.
1436         [Fixes bug #324274]
1437
1438 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
1439
1440         * TextBoxBase.cs: As we loop through each line changing the font, tell
1441         the document that the line needs to be recalculated.  Fixes bug #341534.
1442
1443 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
1444         [Another round of refactoring]
1445         * Line.cs: Add DeleteCharacters.
1446         * LineTag.cs: Add Delete.
1447         * TextBoxBase.cs: Update to use new methods.
1448         * TextControl.cs: Refactor the Delete* methods.
1449
1450 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
1451
1452         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
1453         the patch. [Fixes #324856]
1454
1455 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1456
1457         * ListView.cs:
1458         * ListViewItem.cs: Add an initial implementation of
1459         2.0 ListViewItem.Position getter.
1460
1461 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1462
1463         * ListView.cs: Add a reordered_items_indices array, to allow us
1464         to have a different sorting than that of Items (the sorting in Items
1465         could not match the actual sorting in screen). This is needed to
1466         implement a pair of 2.0 features.
1467         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
1468         actual position in the ListView grid, since it could have a position
1469         different than its Index (position in ListViewItemCollection). 
1470
1471 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
1472
1473         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
1474         not draw partial lines.
1475         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
1476         LineLimit flag from the base is preserved.
1477         Fixes the windows part of bug #338965.
1478
1479 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
1480
1481         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
1482         so that it can be canceled in KeyPress.
1483         Fixes bug #340078.
1484
1485 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1486
1487         * ListView.cs: In ItemControl, reset mouse-handling related
1488         fields even if we dont' have items (we still should reset them when
1489         we had items but then called Items.Clear). Partially based in a patch
1490         by George Giolfan.
1491         Fixes #338399.
1492
1493 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
1494
1495         * Application.cs: In ProductVersion first try AssemblyFileVersion
1496         before falling back to assembly version. Fixes bug #339787.
1497
1498 2007-11-08  Andreia Gaita <avidigal@novell.com>
1499
1500         * HtmlElement.cs: Implement InnerText setter.
1501         * WebBrowserBase.cs: Implement Navigated event support.
1502         Add flag to track when the browser "document" is ready to be retrieved.
1503         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
1504         Make sure browser document is ready before retrieving it.
1505         Clean up cached objects (document) when moving to a new page through
1506         any of the navigation methods.
1507         Use the new Mono.WebBrowser.INavigation interface to control navigation.
1508         Implement OnNavigated event.
1509
1510 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
1511
1512         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
1513         DrawLinkLabel, this is handled by OnPaintBackground.
1514         Fixes bug #339565, part II.
1515
1516 2007-11-07  Andreia Gaita <avidigal@novell.com>
1517
1518         * Control.cs: Revert r88915. Selecting text on a textbox depends on
1519         getting a Select call on click, so this call needs to be here for now.
1520         Unfixes #325809
1521
1522 2007-11-07  Geoff Norton  <gnorton@novell.com>
1523
1524         * OSXStructs.cs: Add the kEventClassApplication constants.
1525         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
1526         application is deactivated otherwise Menu overlays linger on top of
1527         other application windows.
1528
1529 2007-11-07  Geoff Norton  <gnorton@novell.com>
1530
1531         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
1532         dont support cursors yet anyways.  This allows Reflector to run.
1533
1534 2007-11-07  Geoff Norton  <gnorton@novell.com>
1535
1536         * XplatUIOSX.cs: Implement DragSize.
1537
1538 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1539
1540         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
1541         ItemControl, request the focus, as .Net does. This is needed after 
1542         Control does not request focus anymore when it receives a
1543         WM_LBUTTONDOWN.
1544
1545 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
1546
1547         * Label.cs: Make DrawImage internal so it can be called from Theme code.
1548         Remove the DrawImage call from OnPaint.
1549         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
1550         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
1551         but before we draw the text for DrawLabel and DrawLinkLabel.
1552         Fixes bug #339565.
1553
1554 2007-11-05  Andreia Gaita <avidigal@novell.com>
1555
1556         * Control.cs: Remove select call on click. Fixes #325809
1557
1558 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1559
1560         * ListViewItem.cs: Add 2.0 Position property getter.
1561
1562 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1563
1564         * ListView.cs: Add 2.0 BackgroundImageTiled property.
1565         Also, to make it work properly, change item's BackColor and
1566         BackgroundImageLayout as needed.
1567         * ThemeWin32Classic.cs: Don't fill any background rectangle 
1568         in ListView.ItemControl when drawing items; just let the Control
1569         base implementation fill it.
1570
1571 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1572
1573         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
1574         as well as adding a custom 'dummy' Converter, as .net does.
1575
1576 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1577
1578         * PropertyGridView.cs: When clicking drop-down button,
1579         select an index in the listbox only if our standard values collection 
1580         has one or more items.
1581
1582 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1583
1584         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
1585         property.
1586
1587 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1588
1589         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
1590         the value is not changed. This ensure a pushed button remains in that
1591         state when clicked again. When switching the value of PropertySort
1592         between Categorized and CategorizedAlphabetical, do not update the
1593         grid items and do not fire a PropertyChangedEvent. When clicking the
1594         sorting buttons, do not modify the PropertySort value when switching
1595         between Categorized and CategorizedAlphabetical but only update the
1596         button state.
1597
1598 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1599
1600         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
1601         formatting.
1602         * PropertyGrid.cs: Also put Categorized button in pushed state when
1603         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
1604         for help description label.
1605
1606 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1607
1608         * ListView.cs: When calculating the biggest item for a given column,
1609         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
1610         the item's width.
1611
1612 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
1613
1614         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
1615         value for PropertySort on 1.0 profile. PropertySortChanged event
1616         should only be fired on 2.0 profile. Fixed NullReferenceException
1617         in UpdateSortLayout when PropertyGrid contains no items.
1618
1619 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
1620
1621         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
1622         [Fixes bug #338554]
1623
1624 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1625
1626         * ListViewItem.cs: Implement 2.0 IndentCount property.
1627
1628 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1629
1630         * X11Dnd.cs: When sending status in a dnd operation, compare current
1631         effect with the 'allowed' field instead of 'drag_data.Allowed', since
1632         the later is only created when a Winforms application is both the
1633         source and the target, but not when we are the target only.
1634         Fixes part of #324251.
1635
1636 2007-11-01  Geoff Norton  <gnorton@novell.com>
1637
1638         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
1639         order of Z-Order.
1640         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
1641         children out of the drawing view on mac.
1642         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
1643         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
1644         
1645 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
1646
1647         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
1648         on the non-hosted-control part of it shouldn't do anything.
1649         Fixes part of bug #327498.
1650
1651 2007-11-01  Andreia Gaita <avidigal@novell.com>
1652
1653         * WebBrowserBase.cs: revert previous change, resize can be called anytime
1654
1655 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
1656
1657         * Application.cs: When a toolstrip has the keyboard input loop, let messages
1658         it does not use flow through to controls that are hosted in menus.
1659         Same with mouse clicks.
1660         * Form.cs: Don't close all menus on click if the click is on a
1661         control hosted in a menu.
1662         Fixes part of bug #327498, and part of bug #325969.
1663
1664 2007-10-31  Andreia Gaita <avidigal@novell.com>
1665
1666         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
1667
1668 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
1669
1670         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
1671         Addresses an issue raised in bug #336218.
1672
1673 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
1674
1675         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
1676         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
1677
1678 2007-10-30  Andreia Gaita <avidigal@novell.com>
1679
1680         * ContainerControl.cs: Check if the active control is a
1681         child of a removed control and update active_control accordingly.
1682         Fixes #329718
1683
1684 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1685
1686         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
1687         or the MaxDate.  Fixed bug #337693.
1688
1689 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1690
1691         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
1692         after calling SetWindowLong for a form, to force an immediate NC refresh.
1693         Fixes first part of bug #325150.
1694
1695 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1696
1697         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
1698         simple.  Fixes the last part of bug #322668.
1699
1700 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1701
1702         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
1703         needs to be TopMost as well, or else the MessageBox is under the form.
1704         Patch by George fixes bug #325300.
1705
1706 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1707
1708         * X11Dnd.cs: When starting a new drag operation, reset the static
1709         'dropped' field to false (previously the implementation didn't reset
1710         it and got confused after the first drag).
1711         Fixes #325071.
1712
1713 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1714
1715         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
1716         items instead of re-creating them all. For this purpose we now cache
1717         both CategoryGridEntry items and the GridEntries for the main object's
1718         properties.
1719         * GridItem.cs: Make SetParent method abstract.
1720         * GridEntry.cs: Override the SetParent method (already there, but now
1721         we override it).
1722         Fixes #324866.
1723
1724 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1725
1726         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
1727         depending on its depth (as .Net does). Update the needed values in
1728         MouseDown handler. Also draw the plus/minus rect after the label,
1729         so we don't draw on top of it.
1730
1731 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
1732
1733         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
1734         processed by forms or controls when menu is active. [Fixes #333548]
1735
1736 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1737
1738         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
1739         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
1740         focus on mouse over.
1741
1742 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1743
1744         * TextControl.cs: Code cleaning, simplifying.
1745
1746 2007-10-24  Geoff Norton  <gnorton@novell.com>
1747
1748         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
1749         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
1750
1751 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1752
1753         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
1754         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
1755
1756 2007-10-24  Andreia Gaita <avidigal@novell.com>
1757
1758         * SendKeys.cs: apply jpobst's patch to bug #332409
1759
1760 2007-10-23  Andreia Gaita <avidigal@novell.com>
1761
1762         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
1763         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
1764         for some reason
1765
1766 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1767
1768         * PropertyGridView.cs: If a property has an UIEditor available,
1769         make the drop-down/editor button available only if the property
1770         is _not_ read only.
1771
1772 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1773
1774         * PropertyGridView.cs: Don't make the grid item textbox 
1775         editable when a drop-down control is available, but 
1776         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
1777         true. The same bur the color of the grid item value's label.
1778
1779 2007-10-22  Geoff Norton  <gnorton@novell.com>
1780
1781         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
1782         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
1783         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
1784         driver.  Padd the bottom of all real windows so the resize thumb doesn't
1785         obscure scroll/status bars.
1786
1787 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
1788
1789         * WindowsFormsSection.cs: Implement.
1790
1791 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
1792
1793         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
1794         closed see #325434 patch.
1795
1796 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
1797
1798         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
1799         see #325434 patch.
1800
1801 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1802
1803         * PropertyGridView.cs: When showing the textbox for a grid item,
1804         have two local variables to store the read-only and non-editable
1805         status of a grid item (we were previously using just one variable
1806         to do this, when actually they are slightly different).
1807         Fixes part of #325023.
1808
1809 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1810
1811         * PropertyGridView.cs: When showing a drop-down list, try to get the
1812         values using TypeConverter.ConvertTo (to convert to a string). Fixes
1813         part of #325023.
1814
1815 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1816
1817         * PropertyGrid.cs: When updating a property and populating sub grid
1818         items, remove the previous ones, and invalidate the specific area.
1819         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
1820         area behind a grid item.
1821         * GridItemCollection.cs: Add an internal Clear method, to allow us to
1822         clean the items if needed (specially for controls implementing 
1823         ICustomTypeDescriptor and returning a variable number of properties).
1824         Fixes #324865.
1825
1826 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
1827
1828         * TextControl.cs: Clean up and document the Insert function.
1829
1830 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1831
1832         * TextControl.cs: Make sure we know our start point for updating the view
1833         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
1834         update the view.
1835
1836 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1837
1838         * ListView: Couple of corcompare fixes.
1839
1840 2007-10-17  Geoff Norton  <gnorton@novell.com>
1841
1842         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
1843         the title caption of real window.
1844
1845 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1846
1847         * ErrorProvider.cs: Add the error provider's internal window to a 
1848         containercontrol when the parent changes.  [Fixes bug #329714]
1849
1850 2007-10-17  Geoff Norton  <gnorton@novell.com>
1851
1852         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
1853         When we make a new window; restore the old active window - fixes dialogs.
1854
1855 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1856
1857         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
1858         when modifying a property, and if found then invalidate as
1859         requested.
1860         Fixes part of #324865.
1861
1862 2007-10-17  Geoff Norton  <gnorton@novell.com>
1863
1864         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
1865         highly experimental.  Fixed coordinate translation.  Fixed window locations.
1866         Initial support for clipping. Implemented NC areas and menus.  Support for
1867         launching from command line from Will Johansson (wjohansson@atacomm.com).
1868         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
1869         wjohansson@atacomm.com)
1870         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
1871         Hwnds now track the existence of all of their children for Mac clipping.
1872     * XplatUI.cs: Re-enabled the native driver on the Mac.
1873
1874 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1875
1876         * Line.cs: Move the InsertString function to here.
1877         * TextControl.cs: Cleanup some duplicate code, move some InsertString
1878         functionality to Line.
1879
1880 2007-10-17  Geoff Norton  <gnorton@novell.com>
1881
1882         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
1883
1884 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
1885
1886         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
1887         always setting value to true.
1888         * Form.cs: When changing AcceptButton, notify new and original button.
1889
1890 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
1891
1892         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
1893         a custom control that implements IButtonControl instead of an actual
1894         button.  [Fixes bug #334244]
1895
1896 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
1897
1898         * Form.cs: Change SelectActiveControl to internal, we need to call it in
1899         MdiWindowManager.
1900         
1901         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
1902         active control when activate a new mdi window.
1903         
1904         [Fixes bug #330495]
1905
1906 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
1907
1908         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
1909         is already added.
1910         [Fixes bug #333617]
1911
1912 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1913
1914         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
1915         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
1916         so we always recalculate the whole document instead of just the new part.
1917         [Fixes bug #325082]
1918
1919 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1920
1921         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
1922         when the mouse was to the left of the first character in the line.
1923
1924 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1925
1926         * TextBox.cs, TextBoxBase.cs: When setting the document's password
1927         character, use the property instead of the variable so that the
1928         UseSystemPasswordChar property is taken into account.
1929         [Fixes bug #333748]
1930
1931 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1932
1933         * FolderBrowserDialog.cs: When a node is right clicked and the "New
1934         folder" contex menu appears, actually add the new folder to it, even
1935         if the node is not currently selected. Still use SelectedNode in case 
1936         there wasn't found a node under the pointer.
1937         Fixes #325452.
1938
1939 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1940
1941         * ListViewItem.cs: When retrieving the focused state, the index check
1942         should be done only when ListView is in virtualmode, as it is an
1943         expensive check for normal mode.
1944
1945 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1946
1947         * ListViewItem.cs: Make the focus state information be stored
1948         in the ListView, not in the items. This is done to match the MS
1949         behaviour for items that are not yet part of a ListView control;
1950         besides that, since just one item can be focused at the same time,
1951         we save a little space in our items.
1952         Fixes part of #331643.
1953
1954 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1955
1956         * ComboBox.cs: When focus is lost, deselect the text. When setting
1957         text of control, select all text. Do not hide selection when control
1958         does not have focus. Fixes bug #333663.
1959
1960 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1961
1962         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
1963         instead of ArgumentException when SelectionLength is set to negative
1964         value. Added same check to SelectionStart. Code formatting.
1965
1966 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1967
1968         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
1969         or SelectionStart. Code formatting.
1970
1971 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1972
1973         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
1974         indicating that there was not a previous drag-and-drop operation going
1975         on.
1976         Fixes part of #325071.
1977
1978 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1979
1980         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
1981         AllowedEffect, don't let the drop operation happen. 
1982         Fixes #32580.
1983
1984 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1985
1986         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
1987
1988 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1989
1990         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
1991         is called.
1992
1993 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1994
1995         * Line.cs: Add a method that finds the tag that contains an x-coord.
1996         * LineTag.cs: Add a method that finds the character at an x-coord using
1997         a binary search, the old way was a linear search.
1998         * TextControl.cs: Change FindCursor to use the above new methods.
1999
2000 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2001
2002         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
2003         value different than AllowedEffect). This should be possible to
2004         indicate that dragging is not possible in some control/area.
2005
2006 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
2007
2008         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
2009         descent internally when font changes instead of outside code being responsible
2010         for setting it.
2011         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
2012         instead of accessing internal variables.
2013
2014 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
2015
2016         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
2017         remove special treatment for ArrangeIcons since it is already arranged.
2018
2019 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2020
2021         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
2022         the Win32 backend uses Color.
2023         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
2024         Refactor to store a Color instead of a Brush for Color.
2025
2026 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2027
2028         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
2029         away.  I didn't realize I needed this when I refactored these earlier.
2030
2031 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2032
2033         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
2034         store a Color structure and use the ResPool for back color instead of
2035         holding onto brushes.
2036
2037 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
2038
2039         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
2040         [Fixes bug #325592]
2041
2042 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2043
2044         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
2045         to recalculate its size.  Fixes a part of bug #331052.
2046
2047 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2048
2049         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
2050         button.  Fixes a part of bug #331052.
2051
2052 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2053
2054         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
2055         the CreateParams.
2056         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
2057         decorations.
2058         [Fixes bug #330986]
2059
2060 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2061
2062         * TextBoxTextRenderer.cs: Don't make this a static class, as static
2063         doesn't exist in 1.1.  (Thanks jb!)
2064
2065 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
2066
2067         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
2068         class to allow us to use different backends on different platforms.
2069         Linux uses the current [Draw|Measure]String backend.  Windows uses
2070         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
2071         of GDI+.  This leads to better looking text and more accurate measurements
2072         on Windows, fixing many of the reported issues.
2073         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
2074
2075 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2076
2077         * FolderBrowserDialog.cs: When running on Windows,
2078         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
2079         since we must match both "C:" and "C:\" forms. A little hackish, but
2080         works.
2081         Fixes #325247.
2082
2083 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2084
2085         * ListView.cs: When calling EndEdit (after editing an item),
2086         create a new instance of LabelEditEventArgs to keep clean the fields
2087         in case we get a new call to BeginEdit; also do Application.DoEvents
2088         to have focus in synch. This is a fix similar to TreeView's #325244.
2089
2090 2007-10-07  Andreia Gaita <avidigal@novell.com>
2091
2092         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
2093         * WebBrowserBase.cs: Added dialog support, calling the
2094           WebBrowserDialogs classes for each specific dialog type.
2095
2096 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2097
2098         * ListView.cs: When the last item is focused and is removed,
2099         move the focus to the previous item (in Items order). This is what MS
2100         does.
2101         Fixes #330415.
2102
2103 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2104
2105         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
2106         instead of the opposite (RemoveAt call Remove). This is a better
2107         approach since we don't need to to a pair of traversals when using
2108         RemoveAt.
2109
2110 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2111
2112         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
2113         check that the node actually has nodes, and if not, move to the
2114         parent node instead. 
2115         Fixes #325265.
2116
2117 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2118
2119         * TreeView.cs: Move the previous change to the general case (to
2120         call Application.DoEvents in cases where the method was called by
2121         different places).
2122
2123 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2124
2125         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
2126         call Application.DoEvents. This is neccessary when we get a call to
2127         BeginEdit from an AfterLabelEdit handler, because the focus always
2128         goes to the TreeView, even if we try to give it to our
2129         LabelEditTextBox. The call do Application.DoEvents seems to
2130         synchronize the focus, basically.
2131         Fixes #325244.
2132
2133 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2134
2135         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
2136         should be false. This also removes some nasty recursive paths. Fixes
2137         part of #325244.
2138
2139 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
2140
2141         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
2142         state to normal. Also resize window when cascading. Fixes #325433. 
2143
2144 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
2145
2146         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
2147         DefaultForeColor, as drawing empty colored lines isn't very useful.
2148         [Fixes the not drawn lines part of bug #324358]
2149
2150 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
2151
2152         * TextControl.cs: Move Line and LineTag classes into separate files to
2153         make things easier to find.
2154         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
2155         * RichTextBox.cs: Capitalize LineTag.Length property access.
2156         - This is purely an organizational/formatting change, no logic changed. -
2157
2158 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2159
2160         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
2161         text is empty.
2162
2163 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2164
2165         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
2166         text is empty.
2167
2168 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2169
2170         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
2171         prevent calling of OnBackColorChanged. Fixes #325321.
2172
2173 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
2174
2175         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
2176         because control can be disabled because owner is disabled.
2177
2178 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
2179
2180         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
2181         string.Empty, test failed from previous change.
2182
2183 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
2184
2185         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
2186         is null, not String.Empty.  See bug #323038.
2187
2188 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
2189
2190         * TextControl.cs: Change the margins to match MS a little better.
2191         Still not perfect for X11 due to some DrawString differences, but
2192         is still an improvement over the old stuff.
2193         Partially fixes #324467.
2194
2195 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2196
2197         * FolderBrowserDialog.cs: When using MyComputer as 
2198         RootFolder, let absolute paths be considered as valid ones. Also, use
2199         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
2200         for Windows compatibility.
2201         Partially fixes #325247.
2202
2203 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2204
2205         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
2206         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
2207         method, since it causes the dialog to not select folders directly
2208         under the root path (when setting SelectedPath property).
2209
2210 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2211
2212         * TreeNode.cs: When calling Expand/Collapse and need to call 
2213         ExpandBelow/CollapseBelow respectively, take into account
2214         partially visible nodes (previously Expanding/Collapsing
2215         a partially visible node in the bottom was not updating its +- sign).
2216
2217 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2218
2219         * TreeView.cs: When calling Expand on a TreeNode, and we need to
2220         expand nodes below (ExpandBelow), scroll the entire Viewport
2221         area if the node is above it and not visible (instead of scrolling
2222         the area from node's Bottom, which applies only when the node is
2223         visible).
2224         Fixes #325266.
2225
2226 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2227
2228         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
2229         node in the bottom area (as .Net does). This is done to preserve the
2230         scroll position when ExpandAll is called before handle is created for
2231         the 1.1 profile (bottom area, as opposed to top area in 2.0).
2232         Fixes #324103.
2233
2234 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2235
2236         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
2237         bottom area if we are in fact not using the vertical scroll bar.
2238         Fixes #324824.
2239
2240 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
2241
2242         * Control.cs: Comment out a double buffering optimization that doesn't
2243         take into account invalidates created in OnPaint, causing the control
2244         to never be redrawn.  It would take quite a bit of work to work around
2245         this, but I left it commented with an explanation for later possible
2246         optimization.
2247         [Fixes bug #328681]
2248
2249 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
2250
2251         * Control.cs: Ask parent to perform a layout if control is AutoSize and
2252         the text changes.
2253         * RadioButton.cs: Implement GetPreferredSizeCore.
2254         [Fixes bug #328672]
2255
2256 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
2257
2258         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
2259         corcompare stuffs.
2260
2261 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
2262
2263         * Application.cs: Move the sync context stuff to Run instead of RunLoop
2264         so that it doesn't get uninstalled on modal forms.
2265         * Control.cs: Install a sync context when a control is created.
2266         * WindowsFormsSyncronizationContext.cs: Create a private static control
2267         to invoke on.  This is easier than trying to find a created control we
2268         can use.
2269         [Fixes bug #327608]
2270
2271 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
2272
2273         * Application.cs: Install a WindowsFormsSynchronizationContext in the
2274         run loop, and uninstall it when done.
2275         * WindowsFormsSynchronizationContext.cs: Implement.
2276         [Fixes the common case in bug #327608]
2277
2278 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
2279
2280         * DataGridViewCellCollection.cs: Added argument checks for indexers.
2281         Use case-insensitive lookup of column name in indexer. Code
2282         formatting.
2283
2284 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2285
2286         * TreeNode.cs: When collapsing or expanding a node, check whether its
2287         change will affect the visible area (we were previously doing a
2288         IsVisible check, but that check is not enough since children nodes
2289         could be still visible). Fixes part of #325266.
2290
2291 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
2292
2293         * TreeView.cs: Always select the first node when the TreeView gets
2294         focus if there is no currently selected node.
2295         [Fixes bug #324279]
2296
2297 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
2298
2299         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
2300         node being selected is null.
2301         [Patch from Yves Bastide fixes bug #326858]
2302
2303 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2304
2305         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
2306         whether all the parent nodes are expanded.
2307         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
2308         call RecalculateVisibleOrder if all previous nodes are expanded.
2309         Before that we were doing a IsVisible check, but sometimes the node
2310         is not in the visible area, but _should_already be ready, because of
2311         all previous nodes are expanded. Fixes #325259.
2312
2313 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2314
2315         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
2316         portion of the item is clicked.
2317
2318 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2319
2320         * TextControl.cs: Do not tell the system to move the cursor if the
2321         textbox isn't focused.  Fixes part of bug #322668.
2322
2323 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2324
2325         * ComboBox.cs: When there are no items, do not show the dropdown if
2326         the down arrow is clicked.  Fixes part of bug #322668.
2327
2328 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
2329
2330         * ToolStripComboBox.cs: Manually set the size of this control in the
2331         constructor, as it doesn't seem to be the same as DefaultSize.
2332         Fixes a failing monobuild test.
2333
2334 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
2335
2336         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
2337         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
2338
2339 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
2340
2341         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
2342         Desktop.  This lets it work for people who have moved their desktops
2343         from the default location on windows.  For people who have not, both
2344         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
2345
2346 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2347
2348         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
2349         but when the base constructor sets this, the control is null.  Set it
2350         again in the constructor.  Fixes a failing monobuild test.
2351
2352 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2353
2354         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
2355         get called.
2356         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
2357         called.
2358
2359 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2360
2361         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
2362         will handle it themselves.
2363         * ToolStripItem.cs: When deciding what the text of a tooltip should
2364         be, use the Text property instead of the text field.
2365         * ToolStripTextBox.cs: Handle tooltips.
2366         [Fixes bugs #325417 and #325973]
2367
2368 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2369
2370         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
2371         left click.  Fixes the easy part of bug #325969.
2372
2373 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
2374
2375         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
2376         bug #325406, but set a minimum for StatusStrip to 22 to keep
2377         bug #325390 fixed.  I think this minimum would have been figured
2378         up automatically if the grip was actually a ToolStripItem, but it
2379         currently is not.
2380
2381 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2382
2383         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
2384         as this is apparently the actual value used by .Net. Also apply
2385         ItemPadding in Details view only, and decrease the general width padding,
2386         to have only the needed. This should fix #324340 in Windows too.
2387
2388 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2389
2390         * ListViewItem.cs: Don't Invalidate item if parent is inside
2391         a BeginUpdate/EndUpdate block. This prevents to have differences
2392         between the ListView and items state, as well as avoid some exceptions
2393         there.
2394         * ListView.cs: Make 'updating' field internal.
2395
2396 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2397
2398         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
2399         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
2400         size if appropriate.
2401         Fixes reopened bug #325414.
2402
2403 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2404
2405         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
2406         * ToolStripItem.cs: Invalidate before and after our new autosize when
2407         text changes.
2408         Fixes reopened bug #325390.
2409
2410 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2411
2412         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
2413         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
2414         #325044.
2415
2416 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
2417
2418         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
2419
2420 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2421
2422         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
2423         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
2424         #82734.
2425
2426 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
2427
2428         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
2429         item to select when the ToolStrip is selected.
2430         * ToolStripControlHost: Realign the control when the bounds or visibility
2431         change.
2432         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
2433         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
2434         preferred height.
2435         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
2436         base.OnPaint.  Was causing text not to be drawn.
2437
2438 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
2439
2440         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
2441
2442 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2443
2444         * TreeView.cs: When creating the label edit text box,
2445         set is initially to Visible = false. This is done to
2446         prevent a confusion in the layout which makes it to lose
2447         focus when shown the first time. Fixes part of #82592.
2448
2449 2007-09-13 Andreia Gaita <avidigal@novell.com>
2450
2451         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
2452
2453 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2454
2455         * ToolStrip.cs: Take Margin into account when calculating preferred
2456         size.  Also, allow preferred size to get smaller than the explicit
2457         size.
2458         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
2459         First step towards fixing bug #82747.
2460
2461 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2462
2463         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
2464         full row select background over the plus/minus glyph.  Also, turn
2465         off the focus rectangle for full row select since MS doesn't seem
2466         to ever paint it.  [Fixes bug #81839]
2467
2468 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2469
2470         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
2471         This was causing keyboard opened dropdowns to lose focus.
2472         [Fixes bug #82803]
2473
2474 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2475
2476         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
2477         ClientRectangle instead.  [Fixes bug #82838]
2478
2479 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2480
2481         * SplitContainer.cs: We can't reset Visible on every layout because
2482         someone may have set Visible = false explicitly on a SplitterPanel.
2483         Make sure when we switch orientation the SplitterDistance does not
2484         change.  Fixes two failing tests.
2485
2486 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2487
2488         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
2489         TextRenderer, since the latter is only available in 2.0.
2490
2491 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
2492
2493         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
2494         * SplitContainer.cs: Implement FixedPanel layouting.
2495
2496 2007-09-12  Andreia Gaita  <avidigal@novell.com>
2497
2498         * WebBrowserBase.cs: setup shutdown routine
2499
2500 2007-09-12  Andreia Gaita  <avidigal@novell.com>
2501
2502         * Application.cs: Let keyboard events that are targetted 
2503                 to non-mwf windows hosted inside mwf (as in, webbrowser),
2504                 propagate properly. Fixes keyboard handling on the webbrowser.
2505
2506 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2507
2508         * ListView.cs: When handling MouseUp event and we are 
2509         highligting a node with the mouse right button, don't trigger
2510         Before/AfterSelecting event, since we are not actually selecting
2511         the node.
2512
2513 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2514
2515         * TreeView.cs: When editing a node, modify the edit text box
2516         depending on the text length (as you are typing), like MS does.
2517
2518 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
2519
2520         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
2521         Override GetPreferredSizeCore to perform calculations.  Remove custom
2522         autosize logic.  [Fixes bug #82739]
2523
2524 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
2525
2526         * TextBoxBase.cs: Modified should default to false.
2527
2528 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2529
2530         * Control.cs: Update the anchoring distances even when layout is supspended.
2531         Patch provided by George fixes bug #82805.
2532
2533 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2534
2535         * Control.cs: Provide a setter for ExplicitHeight.
2536         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
2537         remove the hacks in here for requested_height.
2538         [Fixes bug #82749]
2539
2540 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2541
2542         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
2543         Maximum to lower that its current Value caused an ArgumentException by setting
2544         the Value to the new Maximum.
2545
2546 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2547
2548         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
2549         handle moves to the closest tick when it is being dragged.
2550         [Fixes bug #82751]
2551
2552 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2553
2554         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
2555         can't let them count as real items when calculating where to merge in the
2556         user's items.  [Fixed bug #82786]
2557
2558 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2559
2560         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
2561         who want to add a menu item directly onto a toolstrip.
2562         [Fixes bug #82775, part II]
2563
2564 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2565
2566         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
2567         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
2568         don't set it to available.
2569         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
2570         [Fixes bug #82727, part II]
2571
2572 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2573
2574         * StatusStrip.cs: Change item placement to None if not visible.
2575         * ToolStripItem.cs: Invalidate when InternalVisible changes.
2576         These should have been committed to fix 82723, but I missed them.
2577
2578 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2579
2580         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
2581         Click, and that it is only called once.
2582         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
2583         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
2584         dropped down.
2585         [Fixes bug #82775]
2586
2587 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2588
2589         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
2590         to match .Net.
2591         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
2592         instead of 8, just like above. Partially fixes #82734.
2593
2594 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2595
2596         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
2597         fixes #82734.
2598
2599         * ListView.cs: Remove extra space between rows in Details view (match
2600         .Net). 
2601         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
2602         the DefaultFont.
2603
2604 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
2605
2606         * Application.cs: Modified ProductVersion to return value of
2607         AssemblyInformationVersion if available, and fallback to assembly
2608         version. Fixes bug #82746. Code formatting.
2609         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
2610         instead.
2611
2612 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2613
2614         * Control.cs: When updating ZOrder for a child control,
2615         take into account the implicit ones (we need it in our controls
2616         using them). Fixes #82642.
2617
2618 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
2619
2620         * ToolStripItem.cs: Add support for animated images.
2621         [Fixes bug #82726]
2622
2623 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
2624
2625         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
2626         visible.  [Fixes bug #82727]
2627
2628 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2629
2630         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
2631         so we repaint using the new size.  [Fixes bug #82723]
2632
2633 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2634
2635         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
2636         option.  [Fixes bug #81779]
2637
2638 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2639
2640         * TreeView.cs: Override HandleClick because the StandardClick style is
2641         set to false.  According to MSDN (and testing), the click events should
2642         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
2643
2644 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2645
2646         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
2647         the border will disappear.  Fixes reopened #82653.
2648
2649 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2650
2651         * Control.cs: If the control is autosize, and its preferred size changes
2652         when it lays out its children, tell its parent so it can be re-layed out.
2653         Fixing some of the fallout from r85433.
2654
2655 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
2658         and CheckBox share some code.
2659
2660 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2661
2662         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
2663         the TrackBar, not every mouse move.  [Fixed bug #82718]
2664
2665 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2666
2667         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
2668         under 2.0 rendering.  [Fixes bug #82657]
2669
2670 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2671
2672         * TreeView.cs: If we found a TreeNode to display a context menu, but
2673         it doesn't have one to show, let the TreeView display its menu
2674         instead.  [Fixes bug #82680]
2675
2676 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2677
2678         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
2679         OnPaintInternal instead.  Give the internal TextBox a Border property
2680         so it can draw itself more correctly.  [Fixes bug #82653]
2681
2682 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
2683
2684         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
2685
2686 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2687
2688         * ComboBox.cs: Adjust combobox button state to reflect current state when
2689         back to enabled = true. Fixes first issue of #82654.
2690
2691 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2692
2693         * Control.cs: Fix last patch regression, prevent forms to update zorder when
2694         setting visible property.
2695
2696 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2697
2698         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
2699         fix zorder for controls initially created as non visible. Fixes #82667.
2700
2701 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
2702
2703         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
2704         mimic win32 look. Fixes #82656.
2705
2706 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
2707
2708         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
2709         Stubs for new net 3.5 classes.
2710
2711 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2712
2713         * ListViewItem.cs: In ListViewItemCollection operations calculate
2714         Layout for owner as well as invalidate it. Fixes part of #82642.
2715
2716 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
2717
2718         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
2719         when returning Enabled.  [Fixes bug #82651]
2720
2721 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
2722
2723         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
2724
2725 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2726
2727         * ListView.cs: Put item padding info in a single place
2728         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
2729         columns again.
2730         * ThemeWin32Classic.cs:
2731         * Theme.cs: Likewise.
2732
2733 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2734
2735         * ListView.cs: When a ListViewSubItem instance is invalidated,
2736         invoke Invalidate on parent ListViewItem, not parent ListView.
2737         Fixes #81570.
2738
2739 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2740
2741         * ListView.cs, ListViewItem.cs: corcompare stuffs.
2742
2743 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2744
2745         * BindingMemberInfo.cs: Implement == and != operators.
2746
2747 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2748
2749         * HtmlElementEventArgs.cs: Implement properties.
2750
2751 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2752
2753         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
2754
2755 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2756
2757         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
2758         Add (string,string,string) to implement the imagekey.  It turns out, we
2759         use the requested imagekey whereas .Net does not.  So I broke ours to match
2760         theirs.  :(
2761
2762 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2763
2764         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
2765
2766 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2767
2768         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
2769
2770 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
2771
2772         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
2773         up-to-date. Fixes bug #82618.
2774
2775 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
2776
2777         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
2778         reflect document changes. Fixes #82367.
2779
2780 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2781
2782         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
2783         as well as add new ones. This should make work the BackgroundImage
2784         property for ListView again.
2785
2786 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2787
2788         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
2789         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
2790         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
2791
2792 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2793
2794         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
2795         IsKeyLocked.
2796
2797 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2798
2799         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
2800         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
2801
2802 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2803
2804         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
2805         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
2806
2807 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
2808
2809         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
2810
2811 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
2812
2813         * GridEntry.cs: Implement GetService.
2814
2815 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
2816
2817         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
2818         for label editting, make sure we focus back on the TreeView.
2819         [Fixes bug #82590]
2820
2821 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2822
2823         * ListView.cs: Add some 2.0 overrides.
2824
2825 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2826
2827         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
2828         because getter dont returns right value before handle creation. Thanks 
2829         to George. Fixes #82569.  
2830
2831 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2832
2833         * Theme.cs: Revert last patch, it causes error under win32. 
2834
2835 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2836
2837         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
2838         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
2839         logical Desktop rather than the physical file system location. Fixes #82603. 
2840
2841 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
2842
2843         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
2844         for the patch. Fixes #82568.
2845
2846 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2847
2848         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
2849         methods.
2850
2851 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2852
2853         * ListViewInsertionMark.cs: New stubbed class.
2854
2855 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2856
2857         * FolderBrowserDialog.cs: When adding folder, immediately create the
2858         directory with temporary name and rename the directory when editing
2859         finishes. This matches MS. Ensure the node for the new folder is 
2860         selected and LabelEdit is disabled, when editing is either finished
2861         or cancelled.
2862
2863 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2864
2865         * TreeView.cs: When editing label of node, ensure node is visible.
2866
2867 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
2868
2869         * PropertyGridView.cs: Set the value only if it has changed.
2870
2871 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2872
2873         * ListView.cs: Some more code refactoring to add support sorting
2874         with groups (now for Details view). Remove unused code also.
2875
2876 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2877
2878         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
2879         Not a big fan of reacting immediately to a field in an EventArg, but that's
2880         the way it's done.  (This is part of the previous commit that got left out.)
2881
2882 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2883
2884         * FolderBrowserDialog.cs: Removed need for separate description field.
2885         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
2886         has focus when dialog box is displayed again, regardless of what
2887         button was pressed the previous time. Set RootFolder and SelectedPath
2888         each time dialog box is displayed. This ensures the treeview is
2889         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
2890         when it does not have focus. Added support for more special folders.
2891
2892 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2893
2894         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
2895         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
2896         it resets the edit_args.
2897         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
2898         [Fixes bug #82577]
2899
2900 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2901
2902         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
2903         button to match MS. Provide more meaningful exception message for
2904         invalid RootFolder value. Use zero-length string when SelectedPath
2905         is set to null. Allow non-rooted paths in SelectedPath, but ignore
2906         them in FolderBrowserTreeView. Allow folders to be created in
2907         RootFolder. Fixes bug #82576.
2908
2909 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2910
2911         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
2912         since we need to take into account the group headers and the margin
2913         between them.
2914         * ListViewGroup.cs: Add a rows field to store the number of rows per
2915         group.
2916
2917 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2918
2919         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
2920           Anyways, let's just follow the lead.
2921
2922 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2923
2924         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
2925         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
2926         controls in GetPreferredSizeCore.
2927         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
2928         [Fixes bug #82488]
2929
2930 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2931
2932         * PrintDialog.cs: Need to instantiate the form variable here too.
2933
2934 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2935
2936         * ListView.cs: Do some reorganization to support sorting in groups,
2937         by doing the layout sequentially in ListView.Items. Also add support
2938         for the Default Group, which should be available for items with no
2939         group assigned.
2940         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
2941         for storing layout info also.
2942         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
2943         collection, as well as providing internal members to do a traversal
2944         including the default group (needed when doing layout/drawing).
2945         * ThemeWin32Classic.cs: When drawing group headers use internal
2946         ListViewGroupCollection members to take into account the default
2947         group.
2948
2949 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
2950
2951         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
2952
2953 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2954
2955         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
2956         been created.  If handle is created, we want arror keys.  If we are editing
2957         a node, we want things like enter, esc, home, end, page up, page down.
2958         Allows Esc to work for FolderBrowserDialog.
2959
2960 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2961
2962         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
2963         they close when ESC is pressed.  Thanks Andy!
2964
2965 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2966
2967         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
2968         This way we can tell if this is a CommonDialog provided with mono, or one
2969         that is being implemented outside by a developer.  If it is an external one,
2970         the developer is responsible for showing their own form.  We were showing
2971         our blank form after the developer showed his.
2972         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
2973         PageSetupDialog.cs: Instantiate form variable in our constructor.
2974         [Fixes bug #82531]
2975
2976 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2977
2978         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
2979         and always return true.  [Fixes bug #81616]
2980
2981 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2982
2983         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
2984         TextBox.  [Fixes bug #82549]
2985
2986 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2987
2988         * FileDialog.cs: When Save/Open is clicked and no filename is selected
2989         or entered then do not close the dialog. Fixes bug #82539. Removed
2990         CWLs.
2991
2992 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
2993
2994         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
2995         code to this method. It is calling every time filter changes. This method
2996         will help to fix the bug #80887.
2997
2998 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
2999
3000         * CheckBox.cs: Implement AutoSize calculation.
3001
3002 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
3003
3004         * CheckBox.cs: Use new 2.0 rendering for 2.0.
3005         * Theme.cs: Method declarations for 2.0 rendering path.
3006         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
3007
3008 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3009
3010         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
3011
3012 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3013
3014         * ListViewGroupCollection.cs: Implement AddRange the right way, to
3015         only call Redraw on the parent one time.
3016
3017 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3018
3019         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
3020           GetClipboardContent.
3021         * DataGridViewCell.cs: Implemented GetClipboardContent,
3022           GetEditedFormattedValue, GetFormattedValue.
3023         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
3024
3025 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
3026
3027         * TableLayoutStyleCollection.cs: corcompare fix.
3028
3029 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3030
3031         * DataObject.cs: Implemented retrieval of convertible / not convertible
3032           objects.
3033
3034 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
3035
3036         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
3037         ourselves.  This ensures the entire old bounds are repainted, in case our new
3038         size is smaller.  [Fixes bug #82518]
3039
3040 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
3041
3042         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
3043         flag to make fast handle of mouse events, without this the mouse move is
3044         handled in some manner, whether it is a mouse move or not. Fixes #81588.
3045
3046 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3047
3048         * ListView.cs: When doing layout calculations don't use a ref
3049         param to keep the current item; instead use its Index value (this 
3050         is specially important when doing the layout with Groups
3051         and Items being sparse). Also don't take into account items added to
3052         the Group but not yet added to the main ListView.Items collection.
3053
3054 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3055
3056         * ListViewGroupCollection.cs: Forgot to mimic an issue
3057         in the indexer (don't assign the ListView owner for new values).
3058
3059 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3060
3061         * ListViewGroupCollection.cs: Make the string indexer use
3062         the int based indexer to re-use code, instead of duplicate the code.
3063         Also Redraw as needed and take into account null values.
3064
3065 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
3066
3067         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
3068         [Fixes bug #82481]
3069
3070 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
3071
3072         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
3073         when other buttons are clicked or navigated to.
3074
3075 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3076
3077         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
3078           it's XplatUIX11 that attaches them.
3079
3080 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3081
3082         * DataGridView.cs: If a column has been added, recreate the editing row.
3083           Fixes #82226.
3084
3085 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3086
3087         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
3088           of the tag to draw. Makes disappearing text show up again.
3089
3090 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3091
3092         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
3093           Contents. Fixes #82487.
3094
3095 2007-08-19  Andreia Gaita  <avidigal@novell.com>
3096
3097         * Added HtmlElement.cs, HtmlElementCollection.cs, 
3098           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
3099           
3100 2007-08-19  Andreia Gaita  <avidigal@novell.com>
3101
3102         * BindingSource.cs: Implement this, dispose and getenumerator.
3103         * DataGridViewRowCollection.cs: Move the InvalidOperationException
3104         out of AddInternal, throw it only on public Add calls. The 
3105         UsingWebBrowser sample was blowing up with this when setting the
3106         DataSource after adding DataBindings, so it's likely that .net
3107         only throws this exception when Add is called directly. 
3108         
3109         * ToolStripControlHost.cs: Return the hosted control's text
3110         property, and not the ToolStripItem one (it would always return
3111         the initial value).
3112         
3113         * HtmlDocument.cs: Implement GetElementById and All
3114         * WebBrowser.cs: Remove exception on set_DocumentStream.        
3115
3116 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3117
3118         * Form.cs: Fix the max and min value for opacity (0~1).
3119
3120 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3121
3122         [Fixes #80118]
3123         * DataGridTableStyle.cs: Default header font is now null, on getter it 
3124         returns datagrid font when is null. On setter permits null.
3125
3126         * DataGrid.cs:
3127         - When ResetHeaderFont set header font to null.
3128         - On EndInit set grid_style.DataGrid.
3129
3130 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3131
3132         * TabControl.cs: Fix regression in default padding x.
3133
3134 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3135
3136         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
3137
3138 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
3139
3140         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
3141         not 2. Fixes #82229.
3142
3143 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3144
3145         * TabControl.cs: Fix tab size when image height is less than text height.
3146         Partially fixes #81837.
3147
3148 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3149
3150         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
3151         "alt + tab". It works only for Win32, for X11 theres no way to remove window
3152         from taskbar and keep it on "alt_tab". Fixes #81722.
3153
3154 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3155
3156         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
3157         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
3158         Fixes #80877 and #79418.
3159
3160 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3161
3162         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
3163         between position and one of the screen borders. Fixes #82349.
3164
3165 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3166
3167         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
3168         the MessageBox in the taskbar. Fixes #82457.
3169
3170 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
3171
3172         * MessageBox.cs: Fix form size when icon is set and text height is bigger
3173         than icon. Fixes #82468.
3174
3175 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3176
3177         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
3178         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
3179           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
3180           Refactored HandleNCCalcSize somewhat to avoid code duplication.
3181         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
3182           FormBorderStyle to decide if we're calculating a new size from the
3183           client size or not. CreateParams: Don't fake tool windows, only the X11
3184           backend manages toolwindows manually.
3185
3186 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3187
3188         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
3189         ObjectDisposedException.
3190
3191 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3192
3193         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
3194         in OnLoad should not have any effect.  [Fixes bug #82470]
3195
3196 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3197
3198         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
3199         paint for controls that create their own ToolTipWindow instead of
3200         going through ToolTip.
3201
3202 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3203
3204         * ToolTip.cs: Make Hide internal instead of public to match MS API.
3205
3206 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3207
3208         * ListViewGroupCollection.cs: Use generic List instead of an
3209         ArrayList, since this collection is 2.0 only.
3210
3211 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
3212
3213         * ToolTip.cs (Hide): Made public to make the build work (should
3214         this not be public?).
3215
3216 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3217
3218         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
3219         ToolTipWindow.
3220         * ToolTip.cs: Add an internal Visible property to facilitate transition.
3221
3222 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
3225         PopupEventHandler.cs: Make these internal for 1.1.
3226         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
3227         use ToolTipWindow internals.
3228         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
3229         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
3230
3231 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3232
3233         * X11Dnd.cs: Add a null check.
3234
3235 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3236
3237         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
3238           nothing else succeeds. Fixes #82453.
3239
3240 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3241
3242         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
3243           rectangle if we're painting to another window than the one the paint
3244           message was generated on. Simplify the code somewhat, which makes
3245           PaintEventEnd also simpler.
3246
3247 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3248
3249         * Control.cs: When changing parent of a form, let the form decide whether
3250           XplatUI.SetParent should be called or not.
3251         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
3252           recreating the handle. If the new parent's handle isn't created, don't
3253           recreate our handle, just destroy it. CreateParams: Check if the
3254           parent's handle is created before fetching it.
3255
3256 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3257
3258         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
3259           Update calls to PaintEventStart/End to take a Message argument.
3260         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
3261           take a Message argument.
3262         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
3263           Message argument, and handle the case where we don't paint to the window
3264           for which the paint message was generated.
3265
3266 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3267
3268         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
3269           Marshal.GetLastWin32Error. Plug nasty memory leak in
3270           PaintEventStart/End, we were creating a DC we weren't releasing.
3271
3272 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3273
3274         * ListView.cs: Add Groups support in Details view. Also have a small
3275         method to do the layout of the group header. Don't use a separate
3276         method to do the groups calculation in Icons view, since our methods
3277         are now a little simpler.
3278         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
3279         `Bounds'.
3280         * ThemeWin32Classic.cs: Likewise.
3281
3282 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
3283
3284         * Application.cs: Add FilterMessage method and rework our message loop
3285         logic to use it.
3286
3287 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
3288
3289         * Application.cs: Add some methods and stub a few methods that are
3290         pretty much never used.
3291
3292 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
3293
3294         * TreeNode.cs: Add some serialization methods.
3295
3296 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3297
3298         * ListView.cs: In ListViewItemCollection have a 
3299         'is_main_collection' field to not modify ListViewItem.ListView
3300         when using it as ListViewGroup.Items (and not ListView.Items)
3301         and also don't modify selection state (.Net behaviour). 
3302         Instead, set group for items contained in a ListViewGroup.Items collection.
3303         * ListViewItem.cs: Simplify some code in Group setter.
3304         * ListViewGroup.cs: use the new .ctor to pass the current instance
3305         to the ItemsCollection.
3306         * ListViewGroup.cs: Set the ListView property for ListViewGroup
3307         instances when adding/removing. Also make Remove use RemoveAt, which
3308         should perform better.
3309
3310 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
3311
3312         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
3313         that crept into the 1.1 profile.
3314
3315 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
3316
3317         * ToolBarButton.cs: Implement ImageKey.
3318
3319 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
3320
3321         * ToolBar.cs: Implement ScaleControl/ScaleCore.
3322
3323 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3324
3325         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
3326           created, it might have gotten destroyed since we last checked. Fixes
3327           #82405.
3328
3329 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
3330
3331         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
3332         tooltip will hide when mouse is moved off the control.
3333         [Fixes bug #82407]
3334
3335 2007-08-11 Andreia Gaita <avidigal@novell.com>
3336
3337         * WebBrowserBase.cs, WebBrowser.cs: add implementation
3338         using Mono.Mozilla for loading and navigating webcontrol
3339         with xulrunner.
3340         The initial implementation was done on 
3341         /trunk/mozembed/tests/browser , and copied here.
3342
3343 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
3344
3345         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
3346         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
3347
3348 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3349
3350         * DataGridView.cs: Add support for an editing row. Fixes #82226.
3351           RowTemplateFull: throw an exception if a column doesn't have a template.
3352         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
3353           add the row just before it.
3354         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
3355           selected.
3356         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
3357           DataGridView field to be able to reach the grid's editing row.
3358
3359 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
3360
3361         * ToolTip.cs: If the control's handle hasn't been created when it has a
3362         tooltip set on it, don't check to see if we need to show the tooltip.  This
3363         check was causing the control's handle to be created.
3364         [Fixes bug #82399]
3365
3366 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
3367
3368         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
3369                                         1.1             2.0
3370         Handle Not Created      -1              0
3371         Handle Created          0               0
3372         [Fixes bug #82371]
3373
3374 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
3375
3376         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
3377         [Fixes bug #82348]
3378
3379 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
3380
3381         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
3382         * ToolTip.cs: Implement some properties and owner draw.
3383
3384 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3385
3386         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
3387           show them again, since setting visibility causes a paint, causing an
3388           endless loop (instead use a temporary and set it all when it's known if
3389           they should be shown or not). Fixes #79265.
3390
3391 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3392
3393         * DataGridView.cs: Only do a full column/row selection if a header was
3394           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
3395           isn't pressed, deselect everything before selecting something.
3396
3397 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3398
3399         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
3400           behaviour according to bug #81075 - they are returned in the order they
3401           are selected. Fix HitTest to check if the point is within any of the
3402           headers. Allow for row/column selection when in ColumnHeader or
3403           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
3404           the row and column to call when their selected state changes, and
3405           updated selected_[rows|columns] whenever SetSelected* is called.
3406         * DataGridViewBand.cs: Initialize isRow correctly. Call
3407           SetSelected[Row|Column]CoreInternal when the selected state changes, and
3408           add a SelectedInternal to avoid StackOverflows.
3409         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
3410           ReadOnly no matter what.
3411         * DataGridViewSelectedColumnCollection.cs,
3412           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
3413           the items in reverse order (just as MS does...)
3414
3415 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
3416
3417         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
3418         itself, not part of a mnemonic.  [Fixes bug #82378]
3419
3420 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3421
3422         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
3423         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
3424           the DGV, the column, the row, or the cell itself is readonly.
3425
3426 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
3427
3428         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
3429         OSVersion.Platform.
3430         * FileDialog.cs: Same.
3431         * TextRendered.cs: Same.
3432         * FolderBrowserDialog.cs: Same.
3433         * TextBoxBase.cs: Same.
3434         * Application.cs: Same.
3435         * Cursors.cs: Same.
3436         * ThemeClearLooks.cs: Same.
3437
3438 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
3439
3440         * XplatUI.cs: Added RunningOnUnix property to be used by controls
3441         instead of duplicating these checks everywhere.
3442         * FileDialog.cs: Use case-insensitive comparison for populating the
3443         DirComboBox when not running on unix. Fixes bug #82385.
3444         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
3445         "Look in".
3446
3447 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3448
3449         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
3450           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
3451           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
3452           cell and column selection with ctrl and shift pressed. Call the correct
3453           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
3454           the corresponding virtual method (PaintBackground to paint background,
3455           etc).
3456         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
3457           either the column, row or the cell itself is selected.
3458         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
3459           OnRowsAdded.
3460         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
3461           here. When the row is selected, don't select all cells. Each cell now
3462           queries the row to see if the row is selected.
3463
3464 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3465
3466         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
3467           SelectionMode.
3468
3469 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3470
3471         * ListView.cs: In ListViewItemsCollection check that owner is
3472         not null before trying to access it (this happens quite often
3473         using Groups). Also don't duplicate calls by calling CollectionChanged
3474         method.
3475
3476 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3477
3478         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
3479         when we are dismissed to clear keyboard mnemonics.
3480         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
3481         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
3482         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
3483         was activated by keyboard or the OS tells us to always draw them.
3484         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
3485         [Fixes bugs #82376, #82377]
3486
3487 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3488
3489         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
3490         shot at having it because Alt was pressed.
3491         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
3492         the first real menu item.
3493         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
3494         a mnemonic if Text is null.
3495         [Fixes bug #82374]
3496
3497 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3498
3499         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
3500         search do check whether the item is already contained in the
3501         collection or not; instead check if the owner of the item is the same
3502         as ours. Also, remove a redundant check in the same method. 
3503
3504 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3505
3506         * Control.cs: Allow the clip region to be set back to null.
3507         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
3508         [Fixes button still showing up in bug #82370 when Show Through is turned off]
3509
3510 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3511
3512         * GridEntry.cs: Add a null check.
3513         * PropertyGrid.cs: When checking for existing grid entries, ignore category
3514           entries. Fixes #82297.
3515
3516 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
3517
3518         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
3519         for 2.0.
3520
3521 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
3522
3523         * ListBox.cs: Implement ScaleControl.
3524
3525 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3526
3527         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
3528           have a menu strip.
3529         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
3530           parent has a menu strip. Fixes #81689.
3531
3532 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3533
3534         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
3535           moments, so apply some fuzzy logic to determine if the mouse is still
3536           inside a control or not. Fixes #82288 (for the third time).
3537
3538 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3539
3540         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
3541           Don't create the child if it has been disposed already (may happen if
3542           the user closes the form the Load event).
3543
3544 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3545
3546         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
3547           #82288.
3548
3549 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3550
3551         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
3552           might call us after we've been destroyed, in which case our own private
3553           parent field is null. Fixes #82326.
3554
3555 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
3556
3557         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
3558         check for setting the dropdown's owner.
3559
3560 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
3561
3562         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
3563         before removing system menu items.
3564
3565 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
3568         folding.
3569         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
3570         folding.
3571         * ToolStrip.cs: Add a null check to mnemonics.
3572         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
3573         no ConnectedArea.
3574         [Fixes most of bug #81689]
3575
3576 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3577
3578         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
3579
3580 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3581
3582         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
3583
3584 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3585
3586         * DataGridViewCell.cs: EditType: returns
3587           DataGridViewTextBoxEditingControl always.
3588
3589 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * TextRenderer.cs: Remove the LineLimit string format flag from the
3592         DrawString fallback method so that things like buttons that aren't
3593         tall enough to draw a full line will still draw part of the text.
3594         [Fixes part of bug #82272]
3595
3596 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3597
3598         * DataGridView.cs: Implemented AutoResizeColumn(s).
3599         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
3600           according to the Alignment.
3601         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
3602           Implement alignment and padding when painting.
3603         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
3604           exists.
3605         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
3606           way.
3607         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
3608           a column is added.
3609
3610 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3611
3612         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
3613         which is internal.
3614
3615 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3616
3617         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
3618         hide GetPreferredSize from public API.
3619         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
3620         * ToolStripItem.cs: Stub out drag and drop methods and events.
3621         * ToolStripManager.cs: Stub out Save/LoadSettings.
3622         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
3623         * ToolStripPanel.cs: Fix corcompare error.
3624         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
3625         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
3626         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
3627
3628 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3629
3630         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
3631         bounds height instead of PreferredHeight.  Puts things back the way 
3632         they were for height while still fixing the width.  Fixes broken unit
3633         tests.
3634
3635 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3636
3637         * Binding.cs: Implement 2.0 constructors and add a null check.
3638
3639 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3640
3641         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
3642           and fix row index (off by one).
3643
3644 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3645
3646         * PropertyGridView.cs: Remove debug output.
3647
3648 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3649
3650         * Control.cs: We need to reset the is_created flags when the handle is
3651           destroyed. Fixes #82187.
3652         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
3653           client coordinates if the window doesn't have a parent.
3654           Win32GetParent returns the parent or the owner, and for top-level
3655           windows with no parent (but with an owner) we were calculating the
3656           location from the location of the owner.
3657         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
3658           form has been disposed.
3659         * MdiClient.cs: Add a null-check.
3660
3661 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
3662
3663         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
3664         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
3665         so we can provide an implementation that returns the current width
3666         and preferred height.  Allows anchor = right to work with TextBox 2.0.
3667         [Fixes bug #82233]
3668
3669 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3670
3671         * ListView.cs: Add support for navigating items in Groups mode, by
3672         creating a big matrix containing all rows and cols of all groups. When
3673         are in other mode than Details, pressing Up should have a similar
3674         behaviour as that one of Down (moving to the next available column if
3675         current one doesn't have an item in the requested row). Also, don't
3676         proceed to use groups if ShowGroups is false.
3677         * ListViewGroup.cs: Add an internal int field to store the starting
3678         row of the group (used by the big matrix used for navigating the
3679         ListView).
3680         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
3681         false.
3682
3683 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
3684
3685         * ToolStripDropDown.cs: When we do Show, start with the 
3686         DefaultDropDownDirection, but if our popup menu is going to off-screen,
3687         modify the direction to keep it on screen.  [Fixes bug #82210]
3688
3689 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
3690
3691         * FileDialog.cs: Accept any FilterIndex value, and store it
3692         unmodified. When FilterIndex is less than 1, or greater than number
3693         of filters, then default to first filter. Only add filter extension to
3694         file if user did not specifiy an extension. When type of dialog is
3695         OpenFileDialog and DefaultExt is set, then only use filter extension
3696         if: CheckFileExists is true and no file wih the default extension
3697         exists, or CheckFileExists is false, and user specified file does not
3698         exist. When CheckFileExists is true, then add first extension of 
3699         selected filter that matches existing file. Perform checks for
3700         existing file, overwrite and create after extension has been added to
3701         file name. When CheckFileExists is true and type is SaveFileDialog,
3702         then only consider first filter extension if DefaultExt is set.
3703         When CheckFileExists is true, then ignore DefaultExt if file with that
3704         extension does not exist. Also perform check for existing file when
3705         type is SaveFileDialog. Changed some field to constants.
3706
3707 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3708
3709         * ListView.cs: Take into account the region used by header
3710         control when doing the vertical scroll (this way we invalidate
3711         the precise area, and don't get any dirty one).
3712
3713 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
3714
3715         * FileDialog.cs: Check for valid filterIndex on button open/save. 
3716         Fixes #82184.
3717
3718 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3719
3720         * ListView.cs: Update some layout calculations in details view
3721         and clean the code in a pair of assignations.
3722
3723 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3724
3725         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
3726         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
3727         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
3728         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
3729
3730 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3731
3732         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
3733         performance of thread-safe Graphic methods.  (Thanks rolf!)
3734
3735 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3736
3737         * ListView.cs: When doing the layout calculations, don't calculate
3738         scroll bars before handle is created. This is unnecessary and also
3739         calculating them before handle creation item causes a number of random
3740         bugs (which begin to appear after Chris' big patch for handle creation
3741         fixes). 
3742
3743 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3744
3745         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
3746         for things that don't have a Graphics object.  Currently, things just use
3747         the static Hwnd.bmp_g which is not thread safe.
3748
3749 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3750
3751         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
3752           dialog. Fixes #82187.
3753
3754 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3755
3756         * DataGridViewElement.cs: Initialize state.
3757         * DataGridView.cs: Forward a few Mouse events to cells. Add
3758           GetRowInternal and GetCellInternal that doesn't unshare rows.
3759           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
3760           don't use the index, but look it up. Add
3761           DataGridViewControlCollection.RemoveInternal to remove controls
3762           that Remove won't remove (scrollbars, edit control).
3763         * DataGridViewColumn.cs: Initialize State correctly.
3764         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
3765           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
3766           implementing this.
3767         * DataGridViewRowCollection.cs: Implemented shared rows.
3768         * DataGridViewRow.cs: Throw exceptions as MS do.
3769         * DataGridViewCell.cs: A few properties are implemented by a
3770           Get<Property> method, so move implementation there and remove the
3771           NIEX in the method. Add a bunch of OnXInternal that DataGridView
3772           calls when necessary.
3773         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
3774           complicates matters.
3775         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
3776           unshare any rows.
3777
3778 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3779
3780         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
3781         the children controls.  Instead, we will just set up the proper docking for the
3782         children controls so we don't have to worry about it.  [Fixes bug #82188]
3783
3784 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3785
3786         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
3787         canceling and correct Before/AfterLabelEdit properties as layed out in bug
3788         81847.  [Fixes bug #81847]
3789
3790 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3791
3792         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
3793         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
3794         an explicit size based on the design-time size of the text.  Since our fonts
3795         may not match this explicit size, we tend to cut off the ends of people's labels.
3796
3797 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
3798
3799         * Menu.cs: Add some missing methods to MenuItemCollection.
3800
3801 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3802
3803         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
3804         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
3805         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
3806         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
3807         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
3808         * DataGridViewElement.cs: State defaults to Visible.
3809         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
3810         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
3811
3812 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3813
3814         * Control.cs: Minor 1.1 corcompare fix.
3815
3816 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3817
3818         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
3819         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
3820
3821 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3822
3823         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
3824           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
3825           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
3826           DataGridViewSelectedColumnCollection.cs,
3827           DataGridViewSelectedRowCollection.cs: Corcompare work.
3828
3829 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3830
3831         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
3832         it is autoset by VS2005 designer and the effect is barely noticeable.
3833
3834 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3835
3836         * TreeView.cs: Implement HitTest.
3837
3838 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3839
3840         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
3841           manually adding and removing the control from the Controls
3842           collecftion.
3843         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
3844           EditingControlInternal property that tracks the editing control.
3845           Always keeping the scrollbars in the Controls collection, as MS
3846           testing confirms is the right behaviour.
3847
3848 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3849
3850         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
3851           according to MSDN and new test.
3852
3853 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3854
3855         * TreeNode.cs: Implement ToolTipText.
3856         * TreeView.cs: Implement tooltips, NodeMouse* events.
3857
3858 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3859
3860         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
3861
3862 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3863
3864         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
3865         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
3866
3867 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
3868
3869         * Control.cs, Form.cs, ContainerControl.cs,
3870         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
3871         for misc properties.
3872
3873 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3874
3875         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
3876         * TreeView.cs: Implement StateImageList.
3877
3878 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3879
3880         * Form.cs: Don't check if the current form is the active form before
3881           activating it. Fixes #81904.
3882
3883 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3884
3885         * Form.cs: Don't check if the current form is the active form before
3886           activating it. Fixes #81904.
3887
3888 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3889
3890         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
3891
3892 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3893
3894         * Form.cs: Don't try to position the form after loading if the form was
3895           disposed. Fixes #81969.
3896
3897 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3898
3899         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
3900           properties. Had to change ToolBar into ToolStrip, which required a
3901           few #ifs.
3902
3903 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3904
3905         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
3906           resized, fixes part of #79829 (vertical lines in toolbar).
3907           PropertyGrid: Refactored Populate* to something that's easier to
3908           follow at least for me, as well as splitting it up into several new
3909           methods, required to update only subitems when something has
3910           changed by a popup editor or listbox. Don't use events to check
3911           when any values are changed, since the events are unreliable (we're
3912           changing the objects the events are registered with, and if the
3913           event handling requires the objects to be immutable (objects stored
3914           in hashtables for instance), the events will never be raised).
3915         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
3916           everytime we change a value, since events are unreliable.
3917           DropDownButtonClicked: For the same reason don't compare objects to
3918           check if it has changed or not, it would require all objects to
3919           derive Equals. Fix dialog location on windows, MS is doing weird
3920           things when creating parented forms.
3921         * GridEntry.cs: Add a SelectedObject setter.
3922
3923 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
3924
3925         * TreeNode.cs: Add some corcompare attributes.
3926         * TreeNodeCollection.cs: Implement 2.0 stuffs.
3927         * TreeView.cs: Implement some 2.0 stuffs.
3928
3929 2007-07-18  Andreia Gaita  <avidigal@novell.com>
3930
3931         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
3932         for moma.
3933
3934 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
3935
3936         * ListBox.cs: Implement custom tab offsets.
3937
3938 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3939
3940         * ToolStripContentPanel.cs: Support System renderer.
3941         * ToolStripControlHost.cs: Set RightToLeft to default to No.
3942
3943 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3944
3945         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
3946
3947 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3948
3949         * CheckBox.cs: Chain TextAlign to base implementation instead of
3950         maintaining another one.
3951
3952 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3953
3954         * ButtonBase.cs: Fix an incorrect string constant.
3955
3956 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3957
3958         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
3959         of creating one for measuring strings.
3960
3961 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3962
3963         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
3964         Implement MaxItemSize.
3965
3966 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
3967
3968         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
3969         for DeviceContext.  Instead, use the static one available in Hwnd.
3970         Informal tests show this saves about 500k on formtest.exe.
3971
3972 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
3973
3974         * ContainerControl.cs: Implement 2.0 AutoScaling.
3975
3976 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3977
3978         * ComboBox.cs: Work around bug #82120 (bug in mcs).
3979
3980 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
3981
3982         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
3983         Darken the focus color.
3984
3985 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
3986
3987         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
3988         for the checkbox.
3989         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
3990         X, Y instead of a rect for drawing text.
3991         - For ControlPaint.DrawCheckBox, center the check a little better when the
3992         checkbox is odd width.  When drawing a flat checkbox, use a white background
3993         when state != inactive.
3994         [Fixes bugs #82097, 82100]
3995
3996 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
3997
3998         * ListControl.cs: When changing CurrencyManager, disconnect event
3999         handlers from previous one. Fixes bug #81771. Code formatting.
4000
4001 2007-07-15  Andreia Gaita <avidigal@novell.com>
4002
4003         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
4004         full preview invalidation from layout invalidation, and only invalidate
4005         the layout when setting zoom or other properties. Invalidation should
4006         always be done even when resetting properties with the same values as
4007         what is there. Fixes #81744 and #79830.
4008
4009 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4010
4011         * ListView.cs: Implement initial support for Groups. Split some of the
4012         LayoutIcons code to render a partial list of the items (needed by
4013         items contained in ListViewGroup instances). Let the
4014         ListViewItemsCollection.ListView property be modifiable (needed when
4015         using Groups, too).
4016         * ListViewGroup.cs: Use a Bounds property rather than a Location
4017         one. Also invalidate the bounds when they get changed.
4018         * ThemeWin32Classic.cs: When drawing items, also draw the group header
4019         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
4020         method as well.
4021
4022 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4023
4024         * ListView.cs: When space gets pressed and CheckBoxes is true, 
4025         don't invoke the Begin and EndUpdate methods. We are generating 
4026         a redraw of the entire control without need to do so.
4027
4028 2007-07-13  William Holmes <billholmes54@gmail.com> 
4029
4030         * Control.cs: Changing logic in FindFlatForward and 
4031           FindFlatBackward to handle multiple Controls with 
4032           the same TabIndex.  
4033           This fixes bug 81687.
4034
4035 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
4036
4037         * OSFeature.cs: Enable IsPresent.
4038
4039 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4040
4041         * Control.cs: Don't do anything in WmShowWindow if the control has been
4042           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
4043           control is created, put on a form, the control is disposed (the
4044           form is never shown), and then we get a MapNotify, triggering a
4045           WM_SHOWWINDOW.
4046         * Form.cs: Exclude the current form when sending Deactivate to all
4047           MdiChildren.
4048         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
4049           there was a race condition because assigning the handle raises
4050           events, we can get more messages, therefore trying to assign the
4051           handle again, which would fail if any of those event handlers
4052           closed/disposed the control.
4053
4054 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4055
4056         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
4057
4058 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
4059
4060         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
4061         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
4062
4063 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4064
4065         * DateTimePicker.cs: If there's no part format specifier, return an
4066           empty string.
4067
4068 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
4069
4070         * FlatButtonAppearance.cs: Throw NotSupportedException for a
4071         Transparent BorderColor.
4072
4073 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4074
4075         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
4076           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
4077           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
4078           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
4079           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
4080           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
4081           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
4082           Remove warnings.
4083         * X11Structs.cs: Remove warnings, add ToString implementations.
4084
4085 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4086
4087         * XplatUIX11.cs: Translate min/max size according to the actual min/max
4088           size, and not the current size. Fixes #81798.
4089
4090 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4091
4092         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
4093           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
4094           to the control yet).
4095
4096 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4097
4098         * PropertyGridTextBox.cs: Add a method that sends any forwarded
4099           mousedowns to the contained textbox.
4100         * X11Structs.cs: More ToString implementation.
4101         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
4102           #81791.
4103
4104 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4105
4106         * PropertyGridView.cs: Add a null-check, fixes a few tests.
4107
4108 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
4109
4110         * TableLayoutPanelCellPosition.cs: TypeConverter.
4111
4112 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4113
4114         [ Fixes #79761]
4115         
4116         * PropertyGridTextBox.cs: Propagate any color changes to all contained
4117           controls.
4118         * PropertyGridView.cs: A few color fixes.
4119
4120 2007-07-10  Jackson Harper  <jackson@ximian.com>
4121
4122         * TextControl.cs: Remove some old unused text formatting stuff.
4123
4124 2007-07-10  Jackson Harper  <jackson@ximian.com>
4125
4126         * TreeView.cs: Update full row select invalidation to match the
4127         newer DrawSelection... method.
4128         - Make sure to invalidate the entire width when selecting a new
4129         node, if we have full row selection enabled.
4130
4131 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4132
4133         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
4134           display of properties again.
4135
4136 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
4137
4138         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
4139         to existing collections.
4140
4141 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4142
4143         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
4144         that changed between 1.1 and 2.0.
4145
4146 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4147
4148         * PowerStatus.cs: Added.  This is just a data class, it is filled
4149         in by SystemInformation.
4150
4151 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4152
4153         * Message.cs: Add op_Equality and op_Inequality.
4154
4155 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4156
4157         * MenuStrip.cs: Finish corcompare work.
4158
4159 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4160
4161         * LinkArea.cs: Add op_Equality and op_Inequality.
4162
4163 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4164
4165         * Application.cs: Add MessageLoopCallback delegate.
4166
4167 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4168
4169         * ListBox.cs: First set of 2.0 stuffs.
4170
4171 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
4172
4173         * Control.cs: Make an internal Height property we can override
4174         without messing up the public API.
4175         * ListBox.cs: Override HeightInternal to always return the size
4176         the user set.  [Fixes bug #80466]
4177
4178 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
4179
4180         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
4181         paint cell borders if we haven't calculated where they go yet.
4182         [Fixes bugs #82040 and #82041]
4183
4184 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4185
4186         * ListView.cs: In Details view, set the location of item_control
4187         in the (0,0) position (and the header_control is thus on the
4188         item_control). This way the Bounds of the Items are relative to the
4189         ListView control (before this, they had a Bounds value without the
4190         header_control offset, which wasn't matching .Net). Fixes #82004.
4191
4192 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4193
4194         * ListControl.cs: When DataSource is set to null, pass an empty
4195         array of object to SetItemsCore. This is done to clean the items
4196         in the ListContol children. Fixes #81788.
4197
4198 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4199
4200         * ListControl.cs: Add 2.0 stuffs.
4201
4202 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4203
4204         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
4205         Refresh is overkill for just about every repaint request.
4206
4207 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4208
4209         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
4210         so remove my custom Get method and fix the property getter.
4211
4212 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4213
4214         * Label.cs: DefaultMargin for 2.0.
4215
4216 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
4219         reported issue where other controls with mnemonics would steal strokes
4220         from a selected ComboBox.
4221
4222 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
4223
4224         * ScrollOrientation.cs: Make internal for 1.1.
4225         * ScrollEventArgs.cs: Add 2.0 stuffs.
4226
4227 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
4228
4229         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
4230         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
4231         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
4232
4233 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4234
4235         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
4236
4237 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4238
4239         * ListView.cs: Implement the so-incredibly broken 2.0 
4240         VirtualItemsSelectionRangeChanged event.
4241
4242 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4243
4244         * ListView.cs: When enter is pressed and selection is non empty,
4245         an OnItemActivate event must be fired.
4246
4247 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4248
4249         * ListView.cs: Store the FocusedItem information as an
4250         int instead of a ListViewItem (needed by VirtualMode).
4251         Update the calls to SetFocusedItem to pass an index instead of
4252         an item.
4253         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
4254         the Focused state from the owner ListView. 
4255
4256 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4257
4258         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
4259         property. Also, invalidate previous focused item in the mentioned
4260         property (match .Net).
4261
4262 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4263
4264         * ListView.cs: Implement 2.0 FocusedItem property setter.
4265
4266 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4267
4268         * ListView.cs: Implement 2.0 TopItem property setter.
4269
4270 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
4271
4272         * StatusStrip.cs: The default renderer is System.
4273         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
4274         if the user specifies it.
4275         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
4276         if we are ManagerRenderMode.
4277         * ToolStripMenuItem.cs: Calculate our text color better.
4278         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
4279         from Professional to the base class based off working with the System renderer.
4280         * ToolStripSystemRenderer.cs: Added.
4281
4282 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4283
4284         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
4285
4286 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
4287
4288         * ToolTip.cs: Implement 2.0 Tag property.
4289
4290 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4291
4292         * ListView.cs: Implement 2.0 HitTest methods.
4293
4294 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4295
4296         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
4297         item is under the pointer or not (sugar). Also remove the TODO
4298         regarding to the cursor changes in OneClick activation.
4299         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
4300         the subitems use the parent's HotFont if UseItemStyleForSubItems is
4301         true; otherwise don't show the underline style.
4302
4303 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4304
4305         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
4306         the code to retrieve the item at position only one time. Also
4307         change cursor when Activation is ItemActivation.OneClick as well
4308         as invalidate the item if HotTracking is true (to show/hide the
4309         underline style). Add an internal HotItemIndex property to retrieve
4310         the current hot item's index.
4311         * ListViewItem.cs: Add an internal HotFont property to cache the
4312         font used when HotTracking is true and the pointer moves within the
4313         item's borders.
4314         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
4315         HotFont depending on the hot state of the item.
4316
4317 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4318
4319         * ListView.cs: Implement 2.0 HotTracking property.
4320
4321 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
4322
4323         * ToolStripControlHost.cs: If our hosted control never got created,
4324         don't try to dispose it.  [Fixes bug #81909]
4325
4326 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
4327
4328         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
4329
4330 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
4331
4332         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
4333
4334 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4335
4336         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
4337         Details view.
4338         * DrawListViewColumnHeaderEventArgs.cs:
4339         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
4340         using the DrawText () methods.
4341
4342 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
4343
4344         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
4345         background which got erased in my changes yesterday.
4346
4347 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4348
4349         * ListViewItem.cs: Actually set bounds for subitems in Details view
4350         (2.0 feature).
4351         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
4352         can invoke from the owner draw routines if we need it. Also, add
4353         support for Owner draw in Details view.
4354
4355 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
4356
4357         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
4358         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
4359         ShowImageMargin setting, properly align text in a ToolStripLabel
4360         hosted on a ToolStripDropDown.
4361
4362 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
4363
4364         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
4365         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
4366
4367 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4368
4369         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
4370
4371 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
4372
4373         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
4374         location to match ToolStripMenuItems.
4375
4376 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4377
4378         * DrawListViewColumnHeaderEventArgs.cs:
4379         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
4380         column headers in ListView. 
4381
4382 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
4383
4384         * UserControl.cs: Implement AutoSize.
4385
4386 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4387
4388         * DrawListViewItemEventArgs.cs:
4389         * ListView.cs:
4390         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
4391         ListView.
4392
4393 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
4394
4395         * ToolStripDropDownItemAccessibleObject.cs: Added.
4396         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
4397         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
4398         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
4399         ToolStripTextBox.cs: corcompare work.
4400
4401 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
4402
4403         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
4404         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
4405         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
4406                 corcompare.
4407
4408 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
4409
4410         * OSFeature.cs: Add IsPresent.
4411         * PrintPreviewControl.cs: Add RightToLeft.
4412         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
4413         * SplitterPanel.cs: Add AutoSizeMode.
4414
4415 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4416
4417         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
4418         * MdiClient.cs: Add 2.0 ScaleControl.
4419         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
4420         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
4421
4422 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4423
4424         * Form.cs: Implement some scaling methods, stub some RTL methods,
4425         corcompare work.
4426
4427 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4428
4429         * Control.cs: corcompare work.
4430         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
4431
4432 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
4433
4434         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
4435         ControlPaint 2.0 stuffs.
4436
4437 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4438
4439         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
4440
4441 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4442
4443         * UpDownBase.cs: Add 2.0 stuffs.
4444
4445 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4446
4447         * NumericUpDown.cs: Add 2.0 stuffs.
4448
4449 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4450
4451         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
4452
4453 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4454
4455         * ErrorProvider.cs: Implement 2.0 stuffs.
4456
4457 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4458
4459         * DomainUpDown.cs: Implement 2.0 stuffs.
4460
4461 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4462
4463         * CheckedListBox.cs: Fix RefreshItems signature.
4464
4465 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4466
4467         * PictureBox.cs: Implement 2.0 stuffs.
4468
4469 2007-06-12  Andreia Gaita  <avidigal@novell.com>
4470         
4471         * TabControl.cs: Check if there are tabpages before checking
4472         the selected index - fix #81802 (font changes raise a ResizeTabs
4473         call on controls.add, which blew up nicely with no tabpages)
4474
4475 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4476
4477         * ListView.cs:
4478         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
4479
4480 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4481
4482         * ListView.cs:
4483         * ListViewItem.cs: In VirtualMode the selection information
4484         resides in the ListView, rather than in the Items. Also, throw
4485         InvalidOperationExceptions when VirtualMode is being used and
4486         CheckedItemCollection is accessed.
4487
4488 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4489
4490         * ComboBox.cs: Add ScaleControl.
4491
4492 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4493
4494         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
4495
4496 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4497
4498         * GroupBox.cs: Add 2.0 stuffs.
4499
4500 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4501
4502         * Panel.cs: Add autosize properties/event.
4503
4504 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
4505
4506         * Control.cs:
4507         - When we remove a control, remove it from the collection before performing the layout.
4508         - Setup an internal property for explicit_bounds.
4509         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
4510         - Perform a layout when we set a new AutoSizeMode.
4511
4512 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
4513
4514         * ScrollableControl.cs: Add 2.0 stuffs.
4515
4516 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4517
4518         * ScrollBar.cs: Add 2.0 stuffs.
4519
4520 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4521
4522         * Splitter.cs: Add 2.0 stuffs.
4523
4524 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4525
4526         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
4527         to have BindingContext simply use base implementation.
4528
4529 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4530
4531         * ColumnHeader.cs: corcompare fix.
4532
4533 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4534
4535         * Button.cs: corcompare fixes.
4536         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
4537
4538 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4539
4540         * Button.cs: Override GetPreferredSizeCore.
4541         * ButtonBase.cs: PerformLayout after changing properties that can affect
4542         AutoSize.  Simplify some mouse/keyboard code.
4543         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
4544         * MouseEventArgs.cs: Make Location internal for 1.1.
4545         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
4546         * Theme.cs: Add CalculateButtonAutoSize.
4547         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
4548
4549 2007-06-05  Miguel de Icaza  <miguel@novell.com>
4550
4551         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
4552
4553 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4554
4555         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
4556         since we can get different item instances every time we retrieve it.
4557
4558 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4559
4560         * ListView.cs: Work around for #81602, since an unkown an pretty
4561         infrequent condition appears only in some systems (old linux boxes, it
4562         seems).
4563
4564 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4565
4566         * Button.cs: Completely reformat and a little refactor to bring
4567         this closer to Mono circa 2007.
4568
4569 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4570
4571         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
4572         to be ButtonBase.Invalidate.
4573
4574 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4575
4576         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
4577
4578 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4579
4580         * ButtonBase.cs: Completely reformat and a little refactor to bring
4581         this closer to Mono circa 2007.
4582
4583 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
4584
4585         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
4586         values for autosize. Fixes #80137.
4587
4588 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4589
4590         * Control.cs: Don't perform layout when AutoSize changes.
4591         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
4592         directly when autosizing, use SetBounds with BoundsSpecified.None.
4593         Fixes unit tests my last commit broke.
4594
4595 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4596
4597         * Control.cs: Perform layout when AutoSize changes.
4598         * Form.cs: Implement AutoSizing.
4599
4600 2007-06-01  Chris Toshok  <toshok@ximian.com>
4601
4602         * DataGrid.cs: remove the XXX'ed check at the top of
4603         ProcessGridKey.  fixes #80464.
4604
4605 2007-06-01  Chris Toshok  <toshok@ximian.com>
4606
4607         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
4608         adding idempotent (add/remove in Edit()), and also make sure we
4609         don't add it until after we set the text, so it's not tripped in
4610         Edit().  Fixes unit test regression.
4611
4612 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4613
4614         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
4615         change is user explicit, not when the layout engine moves stuff.  Fixes
4616         anchoring to bottom and right.  [Fixes bug #81790]
4617
4618 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4619
4620         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
4621
4622 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4623
4624         * ContainerControl.cs: 
4625         Fire enter event for common ancestor if it is not a ContainerControl.
4626         Send focus to the active_control and not the 'value', the active 
4627         control might have been changed in one of the events fired.     
4628         Definitely fixes #80159.
4629
4630 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4631
4632         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
4633
4634 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4635
4636         * PropertyGrid.cs: Anchor the help description to the bottom of the
4637           help panel and refactor SelectGridItem into a
4638           SelectGridItemInternal that can be set to null (and update it to
4639           clear the help texts when it is set to null). Set root item to null
4640           when there's no SelectedObject. Fixes #80438.
4641         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
4642           when we're recalculating after a resize (only).
4643
4644 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4645
4646         * ListView.cs: Implement 2.0 RedrawItems method.
4647
4648 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4649
4650         * ListControl.cs: Disconnect PositionChanged and ItemChanged
4651         handlers from previous data manager when DataSource is set to
4652         null. Fixes #81771.
4653
4654 2007-05-31  Jackson Harper  <jackson@ximian.com>
4655
4656         * TextBoxBase.cs: These seem to be the correct values.
4657
4658 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
4659
4660         * FileDialog.cs: When close dialog with ok set filterindex using combobox
4661         value. Fixes #81784.
4662
4663 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
4664
4665         * Control.cs: Implement 2.0 scaling methods.
4666
4667 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4668
4669         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
4670           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
4671           corcompare issues.
4672
4673 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4674
4675         * ProgressBar.cs: Implemented missing 2.0 members.
4676
4677 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4678
4679         * Control.cs: Corcompare issues.
4680         * MessageBox.cs: Implemented missing 2.0 functions.
4681
4682 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4683
4684         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
4685           Implemented more 2.0 members.
4686
4687 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4688
4689         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
4690           null (strange, but it seems to happen when running unit tests).
4691
4692 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4693
4694         * ContainerControl.cs: Set active_control even earlier, before 
4695         firing any events, and undo it if validation returns false.
4696
4697 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4698
4699         * ContainerControl.cs: Raise Validation and Enter/Leave events
4700         even if there is no Form and set active_control earlier, just
4701         before firing Enter events (toshok's patches). Fixes #80647.
4702
4703 2007-05-30  Jackson Harper  <jackson@ximian.com>
4704
4705         * TextControl.cs: Redid the pageup/pagedown a little to simplify
4706         things and fix bug #81311.
4707
4708 2007-05-30  Jackson Harper  <jackson@ximian.com>
4709
4710         * X11Dnd.cs: Now that we have our own event loop, we need to
4711         cancel when we get a mouseup but it won't be accepted.
4712
4713 2007-05-30  Chris Toshok  <toshok@ximian.com>
4714
4715         * DataGrid.cs (set_CurrentCell): guard against negative
4716         column/row.
4717
4718         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
4719         array index syntax instead of looping over the property names.
4720
4721         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
4722         and set IsInEditOrNavigateMode to false there.
4723
4724 2007-05-30  Jackson Harper  <jackson@ximian.com>
4725
4726         * TreeView.cs: Make sure we don't get a bad visible order when
4727         setting to the top node.  Fixes some misc crashing in
4728         ControlInspector.
4729
4730 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4731
4732         * UserControl.cs: Add 2.0 AutoSizeMode
4733
4734 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4735
4736         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
4737
4738 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4739
4740         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
4741         lines. Fixes #80285. 
4742
4743 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4744
4745         * DataGridColumnStyle.cs: Add char trimming column header text format. 
4746
4747 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4748
4749         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
4750         Fixes #80147.
4751
4752 2007-05-29  Jackson Harper  <jackson@ximian.com>
4753
4754         * TreeNode.cs: Fix off by one on calculating whether or not a node
4755         is visible.
4756
4757 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
4758
4759         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
4760         * ScrollableControl.cs: Force an UpdateDistances when we move the
4761         scrollbars.
4762         [Fixes bug #80605]
4763
4764 2007-05-29  Andreia Gaita  <avidigal@novell.com>
4765
4766         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
4767         update the page setup screen.
4768
4769 2007-05-29  Andreia Gaita  <avidigal@novell.com>
4770
4771         * PageSetupDialog.cs: Fix landscape mode.
4772
4773 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4774
4775         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
4776         IconSizeHorizontalSpacing.
4777
4778 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4779
4780         * ListView.cs: The declaration of prev_tooltip_item should be inside
4781         a NET_2_0 conditional (avoid a warning).
4782
4783 2007-05-28  Andreia Gaita  <avidigal@novell.com>
4784
4785         * PageSetupDialog.cs: Implement PrintPreview control to display
4786         the preview thumbnail. Change unit conversion to use 
4787         PrinterUnitConvert methods.
4788         
4789         Note: there is a huge bug in ms.net where the default margins are 
4790         interpreted as centimeters (?), when in fact they are set in inches. When 
4791         loading the page setup dialog initially (ms.net), the default margins 
4792         are set to 1 inch, and the dialog shows them with value 10, when in fact 
4793         it should be 25 (properly converted). Our dialog doesn't have this bug.
4794         
4795         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
4796         RectangleF.
4797         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
4798
4799 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4800
4801         * ListView.cs:
4802         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
4803         items.
4804
4805 2007-05-28  Andreia Gaita  <avidigal@novell.com>
4806
4807         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
4808         an IntPtr on csc (it builds fine on mcs, could it be a compiler
4809         bug?), convert the ptr to Int32 first.
4810
4811 2007-05-28  Jackson Harper  <jackson@ximian.com>
4812
4813         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
4814         recieved, we will exit the dnd tracking loop.
4815
4816 2007-05-28  Jackson Harper  <jackson@ximian.com>
4817
4818         * X11Dnd.cs: Keep tracking until the xdnd finished event is
4819         recieved. TODO: I should probably stick a timer on the dropped
4820         event, and finish the drag if the XDND Finished event never shows
4821         (because some apps don't seem to send it).
4822
4823 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
4824
4825         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
4826         #81733.
4827
4828 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4829
4830         * MonthCalendar.cs: Only mark the keypresses we actually handle as
4831           handled.
4832
4833 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4834
4835         * MonthCalendar.cs: Set the size after initializing all the relevant
4836           variables. Fixes #81742.
4837
4838 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4839
4840         * KeyEventArgs.cs: Fix typo.
4841
4842 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
4843
4844         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
4845         to match MS. Fixed MinDate to only accept value less than or equal
4846         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
4847         Removed TODO's that are now verified by unit tests.
4848
4849 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
4850
4851         * TreeNodeCollection.cs: Minor corrections to exceptions to match
4852         MS.
4853
4854 2007-05-25  Jackson Harper  <jackson@ximian.com>
4855
4856         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
4857         it's own message loop.
4858         * XplatUIX11.cs: Remove some of the dnd hooks
4859
4860 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
4861
4862         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
4863         instead of MinimizedWindowSize.
4864
4865 2007-05-25  Jackson Harper  <jackson@ximian.com>
4866
4867         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
4868
4869 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4870
4871         * KeyEventArgs.cs: Added SuppressKeyPress.
4872         * Control.cs: Added support for SuppressKeyPress.
4873
4874 2007-05-24  Andreia Gaita  <avidigal@novell.com>
4875
4876         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
4877         problems with PieChart. suppress_validation should not be a counter,
4878         if there are several BeginInit calls, the first EndInit will 
4879         activate validation. Fix exceptions thrown by set_Value.
4880         * UpDownBase.cs: ValidateText only if it's the user editing it.
4881
4882 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4883
4884         * ListControl.cs: FilterItemOnProperty should return the filtered
4885         item proeprty even if DataSource is null. The same applies for
4886         GetItemText. Fixes #80427.
4887
4888 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4889
4890         * Control.cs: If a control doesn't have a parent when it's Dock is
4891         set, but it has children, it needs to do a layout.  Fixes some nested
4892         controls issues.  [Fixes bug #81199]
4893
4894 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4895
4896         * ComboBox.cs: If there are few items in the drop down list, make it
4897           the exact size the items need, no bigger. Fixes #81612.
4898
4899 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4900
4901         * Application.cs: When we have captured the keyboard for a menu,
4902         check for mouse down events in case we need to close the menu.
4903         * Control.cs, Form.cs: Remove mouse down checks for menus.
4904
4905 2007-05-24  Jackson Harper  <jackson@ximian.com>
4906
4907         * TextControl.cs: Handle tabs in non multiline mode a little
4908         differently.
4909
4910 2007-05-24  Jackson Harper  <jackson@ximian.com>
4911
4912         * TextControl.cs: We need to manually break apart tabbed text and
4913         move the tabs, since the system.drawing tabbing mechanism relies
4914         on tab stops.
4915         * TextBoxBase.cs: Move the caret properly when the user enters a
4916         tab.
4917
4918 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4919
4920         * ContainerControl.cs: Don't check CanSelect before calling
4921         ProcessMnemonic.
4922         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
4923         release a KeyboardActive on click if it's not ours.
4924
4925 2007-05-23  Andreia Gaita  <avidigal@novell.com>
4926
4927         * ColumnHeader.cs: Add TypeConverter
4928
4929 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4930
4931         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
4932
4933 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4934
4935         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
4936
4937 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4938
4939         * LinkLabel.cs: Implement public Padding property.
4940
4941 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4942
4943         * LinkLabel.cs: Implement public FlatStyle.
4944
4945 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
4946
4947         * Control.cs: Apply patch from George to call parent.PerformLayout
4948         when Visible is changed.  [Fixes bugs #81118, 81718]
4949
4950 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4951
4952         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
4953
4954 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4955
4956         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
4957
4958 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4959
4960         * ContextMenu.cs: Implement Collapse.
4961
4962 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
4963
4964         * ToolBarButton.cs: Implement Name.
4965
4966 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
4967
4968         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
4969         use current_item, it prevents some NRE. Fixes #81675.  
4970
4971 2007-05-22  Andreia Gaita  <avidigal@novell.com>
4972
4973         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
4974         without updating the text.
4975
4976 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
4977
4978         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
4979         without calling DeleteObject.  [Should fix bug #81709]
4980
4981 2007-05-22  Jackson Harper  <jackson@ximian.com>
4982
4983         * RichTextBox.cs: Set the line endings correctly, when flushing
4984         RTF text.
4985
4986 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
4987
4988         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
4989          {Width=0,Height=0}.
4990
4991 2007-05-22  Jackson Harper  <jackson@ximian.com>
4992
4993         * TreeView.cs: Setting top with a null node should set to the very
4994         top.
4995
4996 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4997
4998         * Form.cs: ShowDialog: destroy the handle when message loop is
4999           finished, matches MS behaviour. Refactor parts of WmClose into
5000           RaiseCloseEvents, that only raises events if they haven't already
5001           been raised. Fixes #81688 and #81521.
5002         * Application.cs: Don't call close on the form when exiting a modal
5003           loop, it will raise all the (Form)Closed/Closing events again if
5004           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
5005           which doesn'r raise any events it they have been raised before.
5006
5007 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
5008
5009         * Control.cs: Add OnPrint.
5010         * ToolStrip.cs: Add GetChildAtPoint.
5011         * ToolStripContainer.cs: Add OnRightToLeftChanged.
5012         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
5013
5014 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
5015
5016         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
5017
5018 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5019
5020         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
5021           isn't visible anymore. Fixes #81651.
5022
5023 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5024
5025         * Control.cs: WmShowWindow: Update children's z-order after setting
5026           their parent. SetParent may show the window, thereby corrupting
5027           z-order, since the window will be shown on top.
5028         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
5029           multiple (and redundant) WM_SHOWWINDOW messages.
5030         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
5031           event has already been raised.
5032         * Form.cs: Change is_changing_visible_state to a counter, since
5033           SetVisibleCore can be called recursively. CreateHandle: when
5034           creating mdi children, send (De)Activated events.
5035         * MdiClient.cs: Update use of is_changing_visible_state.
5036         * Application.cs: OnThreadException: Surround exception handling with
5037           try/finally to ensure we always reset the error-handling state
5038           before leaving.
5039
5040 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5041
5042         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
5043           (#81704).
5044
5045 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5046
5047         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
5048         SmallIcon views, now that we have a standarized horizontal spacing.
5049
5050         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
5051         4, just like the other views (Match .Net).
5052
5053 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
5054
5055         * Control.cs: Delay calculating anchor distances until we actually layout.
5056         Always query the WM for the actual size and location it put us at instead of
5057         only when we send negative values.
5058         [Fixes bugs #81694, 81695]
5059
5060 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5061
5062         * Application.cs: Avoid a possible stack overflow when trying to exit
5063           the application.
5064
5065 2007-05-19  Marek Safar  <marek.safar@gmail.com>
5066
5067         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
5068         enum value.
5069
5070 2007-05-19  Andreia Gaita  <avidigal@novell.com>
5071
5072         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
5073         * NumericUpDownAcceleration.cs, 
5074           NumericUpDownAccelerationCollection.cs: Added 2.0
5075           implementation.
5076
5077 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
5078
5079         * RichTextBox.cs: Recalculate the document after the ScrollBars
5080         property is changed. Fixes bug #81681.
5081
5082 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
5083
5084         * DataObject.cs: Implement 2.0 methods.
5085
5086 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5087
5088         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
5089         in the center of the checkbox, not in the left-top corner. 
5090         Fixes #80037.
5091
5092 2007-05-18  Jackson Harper  <jackson@ximian.com>
5093
5094         * RichTextBox.cs: Recalculate the document after the scrollbars
5095         property is changed.
5096         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
5097         81486.
5098
5099 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5100
5101         * CreateParams.cs: Make HasWindowManager marginally faster.
5102         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
5103           into Hwnd so that other drivers can use it as well.
5104         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
5105           the default location from Hwnd. Fixes MDI client windows always
5106           showing up at (0,0) in Windows (Win32 won't set the default
5107           location since the window styles aren't correct).
5108
5109 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
5110
5111         * TreeView.cs: Modified DoubleBuffered to just use the base
5112         implementation.
5113
5114 2007-05-18  Jackson Harper  <jackson@ximian.com>
5115
5116         * TreeView.cs: Set the top node to the last child node when
5117         expanding all
5118         - When we get focus, if there is no selected node, use the top
5119         node.
5120
5121 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
5122
5123         * KeysConverter.cs: Add CanConvertTo.
5124         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
5125         * LinkConverter.cs: Added.
5126
5127 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5128
5129         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
5130         it prevents error when file dont have write access. Fixes #81669 and #81667.  
5131
5132 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5133
5134         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
5135         button text. Fixes #79640.  
5136
5137 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5138
5139         * Control.cs: According to MSDN controls created in the designer theres 
5140         keyboard accelerators visible by default. So included check for design
5141         in ShowKeyboardCuesInternal.  
5142
5143 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5144
5145         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
5146         text. Fixes #81621.  
5147
5148 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
5149
5150         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
5151         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
5152
5153 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
5154
5155         * Control.cs: Finish implementation of UI State using WmChangeUIState
5156         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
5157         in some controls to check for show_keyboard_cues to draw accell keys "_".  
5158
5159 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5160
5161         * ListBox.cs: When calculating the horizontal scrollbar
5162         in single column mode, don't use values less than 0 for
5163         Maximum. Fixes #81474.
5164
5165 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5166
5167         * ListBox.cs: Throw the some missing exceptions in
5168         ListBox.ObjectCollection methods.
5169
5170 2007-05-17  Jackson Harper  <jackson@ximian.com>
5171
5172         * TextBoxBase.cs: Recalculate the document when the word wrap
5173         value has changed. This fixes 81488.
5174
5175 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
5176
5177         * Clipboard.cs: Implement missing GetText overload.
5178
5179 2007-05-17  Chris Toshok  <toshok@ximian.com>
5180
5181         * Control.cs (CheckDataBindings): remove the binding_context arg
5182         to binding.Check.
5183
5184         * CurrencyManager.cs (OnItemChanged): fix this now that
5185         BindingManagerBase is fixed. also remove the comment telling where
5186         the fix should go.  We set transfering_data to true/false around
5187         the call to PushData to keep UpdateIsBinding from being called.
5188         (ListChangedHandler): remove the extra OnMetaDataChanged call for
5189         PropertyDescriptorAdded in the 1.1 case.  The extra call is
5190         actually generated by System.Data generating 2 metadata changed
5191         events of its own per column add.  The fix should go there.  Add a
5192         comment to that affect in our test's Assert.Ignore.
5193
5194         * BindingManagerBase.cs: Rework PullData and PushData slightly.
5195         we keep a boolean flag (transfering_data) that keeps us from
5196         calling UpdateIsBinding multiple times if we re-enter either of
5197         them.
5198
5199         * ControlBindingsCollection.cs (AddCore): remove the
5200         binding_context arg to binding.Check.
5201
5202         * Binding.cs (IsBinding): don't check if we're binding here, just
5203         return our cached value.  we update it in UpdateIsBinding.
5204         (Check): don't take the binding_context arg, we'll just use our
5205         control's.  Also, for some reason MS doesn't use the data member
5206         field when getting the bindingmanager for this binding.  it just
5207         uses the datasource.  Make this method callable multiple times,
5208         and only do the is_null_desc stuff if manager.Position != -1 (so
5209         we don't get an exception accessing manager.Current).
5210         (UpdateIsBinding): move the code from IsBinding here.
5211         (PositionChangedHandler): call Check here to we can initialize
5212         things that require a non- -1 position.
5213
5214 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
5215
5216         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
5217         control.
5218
5219 2007-05-17  Andreia Gaita  <avidigal@novell.com>
5220
5221         * TabControl.cs: Add 2.0 methods and events, including
5222         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
5223         * TabPage.cs: Add 2.0 methods
5224
5225 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
5226
5227         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
5228         keyboard_cues is properly handled by message method.  
5229
5230 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
5231
5232         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
5233
5234 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
5235
5236         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
5237
5238 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
5239
5240         * Control.cs: 
5241         - WmUpdateUIState added to handle state changes, it make call to
5242         OnChangeUICues event.
5243         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
5244         SystemInformation.
5245
5246 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
5247
5248         * ImageKeyConverter.cs: Added.
5249         * TreeViewImageKeyConverter.cs: Added.
5250
5251 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5252         
5253         * ToolTips.cs: Update Text if SetToolTip is called for a control
5254         already showing the tooltip, as well as restarting its timer; show
5255         tooltip if we are inside the control bounds by the time of calling
5256         SetToolTip. Inside ShowTooltip remove the check to not show the 
5257         tooltip again for the active control (it is allowed by .Net to 
5258         show the tooltip on the same control multiple times).
5259
5260 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5261
5262         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5263
5264 2007-05-16  Andreia Gaita <avidigal@novell.com> 
5265
5266         * ContainerControl.cs: only process tab key if there are no 
5267         modifier keys present, otherwise the control does the 
5268         tab processing, if it needs to. Fixes #81622
5269         * TabControl.cs: Fixes calculation for which tab to select on
5270         shift+ctrl+tab.
5271
5272 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5273
5274         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
5275
5276 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
5277
5278         * Control.cs: Make IsInputCharInternal to allow controls to
5279         override it and still match MS API.
5280         * TextBoxBase.cs: Override IsInputCharInternal and always
5281         return true.
5282         [Fixes bug #81616]
5283
5284 2007-05-15  Jackson Harper  <jackson@ximian.com>
5285
5286         * TextBox.cs: Disable some of the menu options when using a
5287         readonly textbox.
5288
5289 2007-05-15  Jackson Harper  <jackson@ximian.com>
5290
5291         * TextBox.cs:
5292         * TextBoxBase.cs:
5293         * RichTextBox.cs: Some new 2.0 methods
5294
5295 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
5296
5297         * FileDialog.cs: On 1.0 profile, do not support multidotted 
5298         extensions.
5299
5300 2007-05-14  Jackson Harper  <jackson@ximian.com>
5301
5302         * TextBoxBase.cs: Implement some of the new 2.0 methods.
5303         * RichTextBox.cs: We need to override these methods on 2.0.
5304         * MaskedTextBox.cs: These are implemented now
5305         * TextControl.cs: This was off by one.
5306
5307 2007-05-14  Jackson Harper  <jackson@ximian.com>
5308
5309         * TextControl.cs: Because the line endings are including in the
5310         text, we don't need to add them in anymore.
5311
5312 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5313
5314         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
5315         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
5316
5317 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5318
5319         * ToolBar.cs: Adjust size to default size when button theres no text and
5320         image, it fixes remaining issues from #81524.
5321
5322 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5323
5324         * ToolBar.cs: 
5325         - When not flat call redraw to recalculate sizes on creare handle to match
5326         win32 behavior.
5327         - Revert 77220 because it causes some regressions in toobar
5328         button.
5329
5330 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5331
5332         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
5333           now actually enters a usable state.
5334
5335 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5336
5337         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
5338         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
5339         3 buttons.
5340
5341 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5342
5343         * ToolBar.cs: Save default_size on create handle to use later for buttons
5344         without text, needed to mimic win32 behavior.
5345
5346 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
5347
5348         * ToolBar.cs: Fix button layour to best fit width or height according to
5349         vertical or not. Fixes #81524.
5350
5351 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
5352
5353         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
5354         toolbar size info because different styles theres different sizes.
5355         Fixes #81522.
5356
5357 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5358
5359         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
5360         if we are using checkboxes, checked is true, and we have less
5361         than two images in StateImageList; for the 1.1 in the same scenario
5362         draw the first image if we have at least one image in StateImageList.
5363         Fixes part of #81191.
5364
5365 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
5366
5367         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
5368         the owner's Items collection on merge.
5369
5370 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
5371
5372         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
5373         * ToolStripItemCollection.cs: Lots of fixes to when events get called
5374         and parent/owner gets changed based on gert's unit tests.
5375
5376 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5377
5378         * MaskedTextBox.cs: Started implementing parts of it.
5379
5380 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5381
5382         * ListView.cs: When clicking the checkbox on the items
5383         take into account the double clicks even if we have only
5384         one image in StateImageList (only for 1.0/1.1). Also 
5385         generate an extra change of checked state when we receive
5386         the second click on checkbox (match .Net behaviour). 
5387         Fixes part of #81191.
5388
5389 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
5390
5391         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
5392
5393 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
5394
5395         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
5396         even if OnLoad is overriden and base.OnLoad is not called.
5397         [Fixes bug #81582]
5398
5399 2007-05-10  Andreia Gaita  <avidigal@novell.com>
5400
5401         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
5402         shame. (I blame my ever-persisting and annoying cold)
5403
5404 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5405
5406         * ListView.cs: Don't eat navigation keys.  Let them flow through to
5407         KeyDown/KeyPress routines.  [Fixes bug #81569]
5408
5409 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5410
5411         * ListView.cs: When handling keys for selecting the item based off
5412         keyboard input, do not consider keys pressed with Alt or Control.  Also,
5413         correctly handle keys when the Shift key is down. [Fixes bug #81578]
5414
5415 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5416
5417         * Control.cs: When using UseWaitCursor, we have to store the requested
5418         Cursor to use when UseWaitCursor is turned off.
5419
5420 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
5421
5422         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
5423         to false.
5424         * Application.cs: Use PreProcessControlMessage instead of
5425         PreProcessMessage.
5426         * PreProcessControlMessage.cs: Make internal for 1.1.
5427
5428 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5429
5430         * Control.cs: Add InternalContains focus property, which hast the same
5431         functionality of ContainsFocus, but also including implicit controls.
5432         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
5433         since we need to know if the focus is contained in our implicit
5434         ItemControl when calculating Layout. Fixes part of #80888.
5435
5436 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
5437
5438         * ToolTip.cs: Remove center form string alignment as it must be align to
5439         left.
5440
5441 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
5442
5443         * ToolStripItemCollection.cs: Set the new item's parent and owner
5444         in Insert like we do in Add.  [Fixes bug #81568]
5445
5446 2007-05-08  Jackson Harper  <jackson@ximian.com>
5447
5448         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
5449         - Off by one error in SetTop
5450         - Disable DoubeBuffering
5451         
5452 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5453
5454         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
5455           control as much as necessary in order to make it entirely visible,
5456           instead of centering the control in the container (matches MS
5457           behaviour). CalculateCanvasSize: we need to take the current scroll
5458           position into account when calculating the maximum canvas,
5459           otherwise the following scenario will fail: resize so that the
5460           scrollbars appear, use the scrollbars to scroll, resize again
5461           smaller, and now the canvas size is too small. Recalculate: when
5462           showing scrollbars make sure they start off at 0, and try to scroll
5463           the active control into view. Fixes #79540. HandleScrollBar: don't
5464           scroll anywhere if the scrollbar isn't visible.
5465
5466 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5467
5468         * ListView.cs: When focus changed, call Layout/Invalidate
5469         in the focused item to update the selected state (should show
5470         entire label when ListView is focused, and a part of it if is not).
5471         * ListViewItem.cs: When doing layout for LargeIcon, take into account
5472         for displaying the entire label not only the Focused state of the
5473         item, but also the Focused state of the ListView (match .Net
5474         behaviour).
5475
5476 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5477
5478         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
5479         Implement UseWaitCursor. 
5480
5481 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5482         Applying contributed patch from Sergey Volk.
5483
5484         * Clipboard.cs: Implement SetDataObject retry logic and new overload
5485         of SetDataObject.
5486         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
5487
5488 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5489
5490         * Control.cs: Implement DrawToBitmap.
5491
5492 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5493         Applying contributed patch from Stefan Noack.
5494         
5495         * Control.cs: Add [Get|Set]AutoSizeMode.
5496
5497 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5498
5499         * MdiClient.cs: Unmerge menus when the last child is closed.
5500
5501 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5502
5503         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
5504         * ToolStripManager.cs: Call Merge on DropDowns.
5505         [Fixes bug #81477]
5506
5507 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5508
5509         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
5510           uints.
5511         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
5512           visibility. We can't create forms visible, since we have to set the
5513           owner before making the form visible (otherwise Win32 will do
5514           strange things with task bar icons). The problem is that we set the
5515           internal is_visible to true before creating the control, so
5516           is_changing_visible_state is the only way of determining if we're
5517           in the process of creating the form due to setting Visible=true -
5518           this works because SetVisibleCore explicitly makes the form
5519           visibile afterwards anyways. Fixes #80775.
5520
5521 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5522
5523         * ThemeWin32Classic.cs: When drawing ListViewItems,
5524         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
5525         or LargeIcon _and_ item is not focused (match .Net behaviour).
5526
5527 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
5528
5529         * Control.cs, Form.cs: Fix some obsolete method warnings.
5530
5531 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
5532
5533         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
5534         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
5535
5536 2007-05-04  Andreia Gaita  <avidigal@novell.com>
5537
5538         * ContainerControl.cs: Fix active_control attribution when going
5539         up the parent chain so that the first parent container gets the control
5540         and the rest of the parent containers get the child containers (skips
5541         non-containers). Fixes #80729
5542
5543 2007-05-04  Randolph Chung  <tausq@debian.org>
5544
5545         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
5546         [Fixes bug #81499]
5547
5548 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5549
5550         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
5551           takes a size parameter, since the CreateParam's size isn't true for
5552           minimized forms. Fixes #81518,
5553
5554 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5555
5556         * Form.cs: Add OnDeactivateInternal.
5557         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
5558
5559 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5560
5561         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
5562           accessing the parent. Fixes #81508.
5563
5564 2007-05-03  Chris Toshok  <toshok@ximian.com>
5565
5566         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
5567         2.0 block, pass listposition + 1 to ChangeRecordState when a row
5568         was added before the current listposition.  Fixes the
5569         TestInsertRowBeforeCurrent unit test.
5570
5571 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
5572
5573         * Application.cs: Add RaiseIdle.
5574         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5575         XplatUIX11.cs: Implement RaiseIdle.
5576
5577 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
5578         corcompare work: N - Z
5579         * NotifyIcon.cs
5580         * ProgressBar.cs
5581         * RadionButton.cs
5582         * ScrollableControl.cs
5583         * SplitContainer.cs
5584         * SplitterPanel.cs
5585         * StatusBar.cs
5586         * SystemInformation.cs
5587         * TabControl.cs
5588         * TableLayoutControlCollection.cs
5589         * TableLayoutPanel.cs
5590         * TabPage.cs
5591         * ToolBar.cs
5592         * ToolBarButton.cs
5593         * ToolStrip.cs
5594         * ToolStripComboBox.cs
5595         * ToolStripContainer.cs
5596         * ToolStripContentPanel.cs
5597         * ToolStripDropDown.cs
5598         * ToolStripDropDownItem.cs
5599         * ToolStripDropDownMenu.cs
5600         * ToolStripItem.cs
5601         * ToolStripItemCollection.cs
5602         * ToolStripMenuItem.cs
5603         * ToolStripPanel.cs
5604         * ToolStripSplitButton.cs
5605         * ToolTip.cs
5606         * TreeNode.cs
5607         * TreeNodeCollection.cs
5608         * TreeNodeMouseHoverEventArgs.cs
5609         * TreeView.cs
5610
5611 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
5612
5613         * ContextMenu.cs: Add public method Show with alignment property to 2.0
5614         stuff. Thanks aatdark for the patch. 
5615
5616 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5617
5618         * GridItem.cs: Implement 2.0 Tag property.
5619
5620 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
5621
5622         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
5623         count instead of Nodes.Length.  [Fixes bug #81448]
5624
5625 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5626
5627         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
5628         [Fixes bug #81506]
5629
5630 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5631         corcompare work: A - M
5632         * BindingNavigator.cs
5633         * Button.cs
5634         * ButtonBase.cs
5635         * CheckBox.cs
5636         * Control.cs
5637         * FlowLayoutPanel.cs
5638         * Form.cs
5639         * Label.cs
5640         * LinkLabel.cs
5641         * ListView.cs
5642
5643 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5644
5645         * Application.cs: Give toolstrips a chance to process mnemonics.
5646         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
5647         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
5648         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
5649
5650 2007-05-01  Jackson Harper  <jackson@ximian.com>
5651
5652         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
5653         wider area too.
5654         - Don't set the BoundsSpecified
5655
5656 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5657
5658         * Application.cs: When using the toolstrip shortcut mechanism, allow the
5659         message to pass through to a regular control if it hosted by a toolstrip.
5660         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5661         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
5662
5663 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5664
5665         * TextRenderer.cs: Use the flags argument when using the MeasureString
5666         fallback algorithm.
5667
5668 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5669
5670         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
5671         the MDI menu item.  [Fixes bug #81483]
5672
5673 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
5674
5675         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
5676         string. When setting Name to null, use zero-length string instead.
5677
5678 2007-04-29  Andreia Gaita  <avidigal@novell.com>
5679
5680         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
5681         DeselectTab). Implement missing 2.0 TabPageCollection methods
5682         (Add, ContainsKey, RemoveByKey, IndexOfKey)
5683
5684 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
5685
5686         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
5687
5688 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
5689
5690         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
5691         Fixes bug #81479. Include details of exception when LoadFile fails.
5692
5693 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
5694
5695         * DrawListViewSubItemEventArgs.cs: Added missing setter
5696
5697 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5698
5699         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
5700         Hide methods (not complete). Implement missing 2.0 OnPopup event.
5701
5702 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5703
5704         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
5705         removed in ly last commit (it was breaking the Label edit feature).
5706
5707         * ThemeWin32Classic.cs: When drawing a ListViewItem use
5708         StringAlignment.Near for LineAlignment (match .Net).
5709
5710 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5711
5712         * TabControl.cs: Change SetTab so it adds the tabpage to the list
5713         of controls if it isn't already there - was blowing up when doing
5714         tabcontrol.TabPages[i]=new TabPage(). 
5715         SetTab now does a replace by removing the page at the index. 
5716         Add a new InsertTab method that inserts a page in a given index 
5717         instead of replacing. 
5718         Implements TabPageCollection.Insert(int, TabPage).
5719
5720 2007-04-27  Chris Toshok  <toshok@ximian.com>
5721
5722         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
5723         internal handler that can be invoked from our subclasses.)  Also,
5724         add a comment to PushData about how we need to fix it.
5725
5726         * CurrencyManager.cs: tons of changes here.  trying to get things
5727         matching the behavior of .net wrt event orders (ItemChanged,
5728         CurrentChanged, PositionChanged.)  I've implemented a private .net
5729         symbol (ChangeRecordState) that appears in stack traces because
5730         it's actually easier to do this than to effective inline all its
5731         various behaviors at every call site.
5732
5733         * RelatedPropertyManager.cs: guard against an exception here by
5734         not using parent.Current if the position is set to -1 (if the
5735         parent datasource is cleared, for instance).
5736
5737         * Binding.cs: don't parse data in PushData (this might be wrong,
5738         but it jives with MS's behavior.)  Also, don't call PushData when
5739         we get a CurrentChanged event.
5740
5741 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5742
5743         * WebBrowser.cs,
5744           WebBrowserBase.cs,
5745           WebBrowserSiteBase.cs,
5746           HtmlDocument.cs: Added stubbed out classes, no real implementations 
5747           yet.
5748
5749 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5750
5751         * MainMenu.cs: In draw method without parameters call draw method with 
5752         PaintEvent, another one (just rect) adjust rectangle and we dont need it
5753         as Rect property is already adjusted. Fixes #80694.
5754
5755 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
5756
5757         * Application.cs: Need to handle keyboard menu deselection here.
5758         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
5759         navigation, allowing keyboard to work on X11.
5760         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
5761
5762 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5763
5764         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
5765         menu bar. It fixes some drawing issues in menu bar.
5766
5767 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5768
5769         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
5770         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
5771         when <alt> key is pressed.
5772
5773 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
5774
5775         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
5776         example just set visible to false and make this prevent from other problems.
5777         In SystrayAdd always remove pending expose. Fixes #81072.
5778
5779 2007-04-26  Marek Safar  <marek.safar@gmail.com>
5780
5781         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
5782         value is set.
5783
5784 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5785
5786         * ListView.cs: Added three missing 2.0 events and corresponding
5787         EventHandlers. Added the OwnerDraw property.
5788         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
5789
5790 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5791
5792         * DrawListViewItemEventArgs.cs
5793         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
5794
5795 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5796
5797         * TextControl.cs: Fixed typo in constructor
5798
5799 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
5800
5801         * Application.cs: Create a shortcut path so that currently selected
5802         MenuStrips can intercept keyboard events without having focus.
5803         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
5804         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
5805         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
5806         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
5807         generate WM_SYSCOMMAND message in X11 for other platforms.
5808         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
5809         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
5810         * ToolStripSplitButton.cs: Add DefaultItem property.
5811         
5812 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
5813
5814         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
5815         fixes some menu draw problem on Windows with border diferent from default
5816         it also fixes #81403.
5817
5818 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5819
5820         * Form.cs: Refactor WndProc into separate methods, just like Control is
5821           doing it.
5822
5823 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5824
5825         * Control.cs: set_Text: move the call to the driver into a seperate
5826           virtual method so that Form can override it.
5827         * MaskedTextBox.cs: Corcompare fixes.
5828         * Form.cs: Override UpdateWindowText and only update the styles if the
5829           form has been shown (fixes #81405).
5830
5831 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
5832
5833         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
5834         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
5835         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
5836         the form lost focus or another control was clicked.
5837
5838 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
5839
5840         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
5841         fixed.
5842
5843 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5844
5845         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
5846           DrawListViewItemEventHandler.cs,
5847           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
5848           Added.
5849         * X11Structs.cs: More ToString implementation.
5850
5851 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
5852
5853         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
5854         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
5855
5856 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5857
5858         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
5859           handle.
5860         * FormCollection.cs: Don't add a form if it's already in the
5861           collection.
5862         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
5863           according to behaviour and MSDN. The ownerWin32 is the active
5864           window at the moment when we call ShowDialog, not the context's
5865           main form (the context's main form may open another form that opens
5866           a form with ShowDialog, the win32 owner is the second form). Add
5867           and remove forms to the Application.OpenForms in other places to
5868           better match MS behaviour. Add an IsActive property that raises
5869           On(de)Activated only if the active state has changed (we were
5870           raising OnDeactivated before OnActivated while creating forms).
5871         * Application.cs: Refactor Enabling/Disabling of windows for modal
5872           dialog loops out to separate methods, and restore the thread
5873           context when we quit the method. Fixes #81407.
5874
5875 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5876
5877         * ListView.cs: In ItemControl.HandleClicks, also fire 
5878         2.0 MouseClick or MouseDoubleClick events on the parent,
5879         not only the Click/DoubleClick events.
5880
5881 2007-04-24  Andreia Gaita  <avidigal@novell.com>
5882
5883         * TableLayoutSettings.cs: 
5884         - Added a GetControls method and a support structure to help the 
5885         TypeConverter to enumerate the controls for     serialization. 
5886         - Added a new serialization constructor. 
5887         - Added a isSerialized flag initialized to true on the 
5888         serialization constructor so that the TableLayoutPanel.LayoutSettings 
5889         setter does not throw the designed NotSupportedOperation exception
5890         when the object is built through deserialization.
5891         - Implemented GetObjectData
5892         
5893         * TableLayoutPanel.cs: Added check on LayoutSettings.
5894
5895 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5896
5897         * ListView.cs: Report Click and DoubleClick events to the parent
5898         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
5899         from breaking the click count state when using dialog forms (Control
5900         reports the clicks in a similar fashion). In the previous behaviour
5901         the last WM_LBUTTONUP message in a  double click was sent to the
5902         ListView's form, instead of the ListView, which was breaking the click
5903         count for it. Fixes #80387.
5904
5905 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
5906
5907         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
5908
5909 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
5910
5911         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
5912         us from created dropdowns for menu items that do not have subitems.
5913         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
5914         Check HasDropDownItems before calling DropDown so a dropdown will not be
5915         created if it isn't needed.
5916
5917 2007-04-24  Jackson Harper  <jackson@ximian.com>
5918
5919         * TreeView.cs: Set the first node to the selected node when we get
5920         focus if there is no selected node.
5921
5922 2007-04-24  Andreia Gaita  <avidigal@novell.com>
5923
5924         * MimeIcon.cs: remove using blocks so that image streams are
5925         not disposed of. Fixes #80151
5926
5927 2007-04-24  Jackson Harper  <jackson@ximian.com>
5928
5929         * TextBoxBase.cs: Fixup the height of textboxes when the control
5930         is created.
5931
5932 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
5933
5934         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
5935         for each ToolStripItem when the parent's RightToLeftChanged is called.
5936
5937 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5938
5939         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
5940           Fixes #80163.
5941         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
5942           property, so that the setter can be overriden too.
5943         * TextBox.cs: Change GetContextMenuInternal() to use
5944           ContextMenuInternal.
5945
5946 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5947
5948         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5949           #81406.
5950
5951 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5952
5953         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5954           #81406.
5955
5956 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5957
5958         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
5959           avoid duplicate work. Mostily skeleton code, it's not working at
5960           all yet.
5961
5962 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
5963
5964         * NotifyIcon.cs : stub for MouseClick event
5965         * Application.cs: stub for SetUnhandledExceptionMode
5966
5967 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
5968
5969         * BindingNavigator.cs : Initial (partial) implementation
5970
5971 2007-04-23  Jackson Harper  <jackson@ximian.com>
5972
5973         * TreeView.cs: Do not create the treeview's handle when setting
5974         the scroll position.
5975         - ExpandAll needs to compute the scrollbars so it knows which
5976         position to set the bar too.
5977         * TreeNode.cs: 
5978         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
5979
5980 2007-04-23  Jackson Harper  <jackson@ximian.com>
5981
5982         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
5983         key. Fixes #81408.
5984
5985 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
5986
5987         * ToolStripItem.cs: Make GetImageSize internal.
5988         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
5989         need to draw an item.  Fixes a reported issue where images on menus
5990         that were not 16x16 were drawing incorrectly.
5991
5992 2007-04-21  Miguel de Icaza  <miguel@novell.com>
5993
5994         * Padding.cs: Use the converter, fixes the resgen2 issue with
5995         XMLNotePad. 
5996
5997 2007-04-21  Jackson Harper  <jackson@ximian.com>
5998
5999         * TreeView.cs: Dont try to unhighlight the selected node if there
6000         isn't a selected node.
6001
6002 2007-04-21  Jackson Harper  <jackson@ximian.com>
6003
6004         * UpDownBase.cs:
6005         * TextBoxBase.cs:
6006         * ListView.cs:
6007         * ListBox.cs:
6008         * TreeView.cs: Use the InternalBorderStyle property to set the
6009         initial border style, this forces the client rectangle to be sized
6010         correctly.
6011
6012 2007-04-20  Jackson Harper  <jackson@ximian.com>
6013
6014         * TreeView.cs: Simplify scrolling to the last node after expanding
6015         all.
6016         - Fix some off by ones with setting the bottom.
6017
6018 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
6019
6020         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
6021         that.  We were incorrectly doing it the other way around.  Also,
6022         update ClientSize if we change the BorderStyle before the control
6023         is created.
6024
6025 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
6026
6027         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
6028         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
6029         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
6030         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
6031         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
6032         Caption to CaptionHeight.
6033         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
6034         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
6035         and FixedFrameBorderSize to return value from current XplatUI driver.
6036         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
6037         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
6038         and FixedFrameBorderSize using win32 API. Renamed Caption to
6039         CaptionHeight.
6040         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
6041         * SystemInformation.cs: Fixed typo in BorderSize.
6042
6043 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
6044
6045         * XplatUI.cs: Added MenuAccessKeysUnderlined.
6046         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
6047         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
6048         returning false.
6049         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
6050         value from XplatUI driver.
6051         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
6052         SystemParametersInfo.
6053         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
6054         override.
6055         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
6056         returning false.
6057
6058 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6059
6060         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
6061
6062 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6063
6064         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
6065
6066 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
6067
6068         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
6069         MenuStrips that contain ToolStripSeparators.
6070
6071 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6072
6073         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
6074           DefineStdCursorBitmap.
6075         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
6076           has been created off a standard cursor. This is used to get a
6077           bitmap of the standard cursor when Draw or DrawStretched is called
6078           in order to draw the cursor.
6079         * X11Structs.cs: Added XcursorImage and XcursorImages.
6080         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
6081           DefineStdCursorBitmap.
6082         * Cursors.cs: Update all relevant creations of Cursor to use the new
6083           internal constructor.
6084
6085 2007-04-19  Jackson Harper  <jackson@ximian.com>
6086
6087         * TextBox.cs: Move the has_been_focused into the base control, so
6088         some of the text adding methods can manipulate it (probably time
6089         for a better name for this flag too).
6090         - Call a new version of selectall that doesn't scroll
6091         * TextBoxBase.cs: When we append text, if the document is empty,
6092         don't scroll.  If the document has text already, we scroll to the
6093         end of the appended text.
6094         - When the text is changed, we reset the has_been_focused, so the
6095         next time the control gets focused, all the text is selected.
6096
6097 2007-04-19  Jackson Harper  <jackson@ximian.com>
6098
6099         * TextControl.cs: Move the margins to the document, add a method
6100         so the margin sizes can be updated.
6101         * TextBoxBase.cs: When the border style is changed, update the
6102         border sizes.
6103
6104 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
6105
6106         * Control.cs: Respect DefaultPadding.
6107         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
6108         padding into account.
6109         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
6110
6111 2007-04-19  Jackson Harper  <jackson@ximian.com>
6112
6113         * TextControl.cs: Oops, we need to use the ClientRect not the
6114         bounds here.
6115
6116 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6117
6118         * ListView.cs: In ItemControl.ItemsMouseDown, take into
6119         account the double clicks when CheckBoxes are used and
6120         the pointer is inside the checkbox. Fixes part of #81191.
6121
6122 2007-04-18  Jackson Harper  <jackson@ximian.com>
6123
6124         * TextControl.cs: Pressing the end key shouldn't move the caret
6125         past the line ending.
6126         * TextBoxBase.cs: We can still delete if we are in the line
6127         ending and the combine will just kill the existing line ending.
6128
6129 2007-04-18  Jackson Harper  <jackson@ximian.com>
6130
6131         * TextControl.cs: We can't move lines, then invalidate their
6132         bounds, we need to get the old bounds and combine that with the
6133         new bounds.
6134         * TextBoxBase.cs: Before combining two lines for a delete, we need
6135         to invalidate the area of the old line, since that will be moved
6136         in the combine operation.
6137
6138 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
6139
6140         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
6141         with transparent background. Fixes #80482.
6142
6143 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
6144
6145         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
6146         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
6147         [Fixes bug #81391]
6148
6149 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6150
6151         * CreateParams.cs: Add a couple of helper methods and do a less string
6152           concatenation in ToString.
6153         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
6154           overload that takes a Control parameter, since this method may be
6155           called before a control is assigned to the hwnd (from
6156           CreateWindow), and update CreateWindow to use the new overload. In
6157           GetMenuOrigin subtract the title bar from the y position if the
6158           form has a window manager (since we're painting it and not X).
6159         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
6160           CreateParams to calculate the origin (since border sizes may vary).
6161           In ScreenToMenu only subtract the title height if we actually have
6162           a title.
6163         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
6164           mdi children never have menus of themselves.
6165         * InternalWindowManager.cs: Implement menu handling like form does.
6166           Added GetMenuOrigin to calculate the menu origin, can't use the
6167           CreateParams from the form like normally since it's lying.
6168         * Hwnd.cs: Implement GetBorderSize better (in the sense more
6169           windows-like) and add Inflate and comparison operators to the
6170           Borders type. When calculating MenuOrigin and it's a form with a
6171           window manager, use the window manager to calculate it.
6172
6173 2007-04-17  Chris Toshok  <toshok@ximian.com>
6174
6175         * Control.cs (CreateControl): turns out in 2.0 we don't need this
6176         OnBindingContextChanged thing here.  It's only generated from
6177         ContainerControl.OnCreateControl.  Fixes a newly written unit test
6178         - BindingTest.BindingContextChangedTest4.
6179         
6180 2007-04-17  Jackson Harper  <jackson@ximian.com>
6181
6182         * ScrollBar.cs: When setting values, make sure the current
6183         position stays within the new values range.
6184
6185 2007-04-17  Chris Toshok  <toshok@ximian.com>
6186
6187         * Control.cs (CreateControl): talk about a bizarre corner case.
6188         Don't emit OnBindingContextChanged here if we're a parentless
6189         control (i.e. if we're a form.).  Fixes
6190         BindingTest.BindingContextChangedTest2.
6191
6192 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
6193
6194         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
6195         from win32. Fixes #81255.
6196
6197 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
6198
6199         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
6200         already present in CalculateButtonTextAndImageLayout.
6201
6202 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6203
6204         * XplatUIX11.cs: When setting min/max size for a window we need to
6205           translate the coordinates to x coordinates. Create an overload of
6206           SetWindowMinMax that takes a CreateParams handling this, and change
6207           SetWMStyles to call this function (can't use Control.FromHandle in
6208           the SetWindowMinMax to get the control/CreateParams from the handle
6209           because the handle might not have been assigned to the control
6210           yet). Fixes #81371.
6211
6212 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6213
6214         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
6215         if StateImageList is non-null and it has less than two items (match MS
6216         behaviour). Also, in HandleNavKeys handle the Space key, calling
6217         the new ToggleItemsCheckState method, which tries to change the
6218         checked state of the selected items. Fixes part of #81191.
6219
6220 2007-04-16  Jackson Harper  <jackson@ximian.com>
6221
6222         * RichTextBox.cs: namespace cleanup.
6223
6224 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
6225
6226         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
6227
6228 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
6229
6230         [Fixes #79447]
6231         * Control.cs: Call invalidate in set_Region.
6232
6233         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
6234         it dont works here.
6235
6236 2007-04-16  Jackson Harper  <jackson@ximian.com>
6237
6238         * TextBoxBase.cs: When enter is pressed, we need to update all
6239         lines below the current.
6240
6241 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
6242
6243         * MdiClient.cs: Implement implicit menu merging for MDI
6244         children.  When a child form is active, if it has a menustrip
6245         and the parent form has a MainMenuStrip, automatically merge
6246         the menus.
6247
6248 2007-04-15  Andreia Gaita  <avidigal@novell.com>
6249
6250         * TabControl.cs: Refactored sizing methods to not repeat
6251         code all over the place. Tab bounds are now calculated
6252         as if alignment is top and single line, and only when 
6253         setting the bounds are the positions adjusted according
6254         to alignment. Replaced hardcoded positions, spacings and
6255         paddings by getting the values the ThemeEngine. 
6256         Fixes #79619.
6257         
6258         * Theme.cs: Change TabControl properties and methods so
6259         that all start with TabControl*. Added more properties
6260         to help remove hardcoded values on tabcontrol.
6261         Add CPDrawBorder3D declaration so the Theming classes
6262         can access it.
6263         
6264         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
6265
6266         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
6267         on the Theming namespace, and call the appropriate methods here.
6268         Change CPDrawBorder3D to public.
6269
6270 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6271
6272         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
6273         the control after firing the OnMouseUp event, instead of sending
6274         the message before the mentioned event. This is so we can match the
6275         MS behaviour. Fixes part of #80385.
6276
6277 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
6278
6279         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
6280         RightToLeft property.
6281
6282 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
6283
6284         * ToolStrip.cs: Add properties and internal methods to support merging.
6285         * ToolStripItem.cs: Add MergeAction and MergeIndex.
6286         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
6287         not trigger reparenting or layouts.
6288         * ToolStripManager.cs: Add Merge and RevertMerge methods.
6289         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
6290         is hosting the overflow menu.
6291
6292 2007-04-13  Jackson Harper  <jackson@ximian.com>
6293
6294         * TextControl.cs: Set the line ending correctly for the first
6295         inserted line.
6296
6297 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
6298
6299         * Theme.cs: Update GetMethod to get the new definition for 
6300         KnownColors.Update (and fix theme color updates).
6301
6302 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
6303
6304         * MessageBox.cs: Fix some test and button position.
6305
6306 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6307
6308         * Form.cs: Consider the implicit controls in
6309         GetRealChildAtPoint. We need it since this method
6310         is called on Form when handling the some messages in
6311         WndProc, and need to consider those implicit ones too.
6312         Fixes #80385.
6313
6314 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
6315
6316         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
6317         if there are no ShortcutKeys set.
6318         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
6319         set, use it when painting.
6320
6321 2007-04-12  Jackson Harper  <jackson@ximian.com>
6322
6323         * TextControl.cs: Fix some off-by-one issues in line duplication
6324         and insertion in the undo manager. Also, overwrite the first tag
6325         of a line on insert, if it is just a zero lengthed tag. This
6326         prevents us from getting an extra stranded tag at the beginning of
6327         the first line.
6328
6329 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
6330
6331         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
6332         to calculated proper size including when handle was not created yet.
6333
6334 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6335
6336         * MdiWindowManager.cs: When moving a form, allow the form to be moved
6337           when the mouse is outside of it's parent's client rectangle. Fixes
6338           #79982 (take 3, part 2).
6339
6340 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6341
6342         * X11Structs.cs: Add a few ToString() overrides.
6343         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
6344           the window location in a window-manager independent way. Reworked
6345           FrameExtents, it now actually works. Reworked AddConfigureNotify
6346           and ReparentNotify handling to use GetTopLevelWindowLocation
6347           instead of the earlier, more hacky solution. Reworked SetWMStyles,
6348           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
6349           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
6350           for all other windows (fixes #81281 part 1), a toolwindow is hidden
6351           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
6352           and generally refactored to do as few calculations as possible
6353           inside the lock.
6354
6355 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
6356
6357         * Theme.cs: Change "reflective-contract" between MWF and SD to 
6358         minimize # of calls, avoid Color serialization and avoid updating 
6359         every "known colors" each time a single one is updated.
6360
6361 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
6362
6363         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
6364         when not readonly and the text is explicitly set. Code style updates.
6365         * DataGridTableStyle.cs: Removed extra line.
6366         * DataGrid.cs: Code style updates. Removed extra whitespace.
6367         * DataGridColumnStyle.cs: Code style updates. Removed extra 
6368         whitespace.
6369
6370 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6371
6372         * XplatUIX11.cs: Added comment that "fixes" #80021.
6373
6374 2007-04-09  Jackson Harper  <jackson@ximian.com>
6375
6376         * TextControl.cs: We don't need this -1 on the line count anymore.
6377
6378 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
6379
6380         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
6381         entered value to underlying type, and convert it back to a string to
6382         apply formatting. Modified GetFormattedValue to use TypeConverter
6383         if available.
6384
6385 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
6386
6387         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
6388         Use SubItems property when we want to ensure there's at least one
6389         subitem. Modified SubItems property to ensure there's always at least
6390         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
6391         the NRE's reported by MS.
6392
6393 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
6394
6395         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
6396         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
6397         Spaces to tabs. Removed extra tabs.
6398
6399 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
6400
6401         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6402         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
6403
6404 2007-04-06  Jackson Harper  <jackson@ximian.com>
6405
6406         * TextBoxBase.cs: When a delete removes a line, recalculate all
6407         lines below that line (they need to get offsets setup correctly)
6408         and invalidate.
6409
6410 2007-04-05  Jackson Harper  <jackson@ximian.com>
6411
6412         * TextControl.cs: We need to invalidate across the width of the
6413         document when we are invalidating multiple lines.
6414         * TextBoxBase.cs: Don't delete into the line ending.
6415
6416 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6417
6418         * ListView.cs: Restore the check for the MouseHover event
6419         in ListView. It looks like the ListView fires more than one MouseHover
6420         event when HoverSelection is true  _only_ in weird-corner scenarios, but
6421         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
6422         event.
6423
6424 2007-04-05  Mike Kestner  <mkestner@novell.com>
6425
6426         * ListView.cs : raise MouseDown before updating selection.
6427         [Fixes #80373 tab 1&3]
6428
6429 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
6430
6431         * ToolStripRenderer.cs: Add static method to mirror image.
6432         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
6433         and RightToLeftAutoMirrorImage.
6434         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
6435
6436 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
6437
6438         * ToolStripSplitStackLayout.cs: Support Alignment property.
6439         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
6440
6441 2007-04-05  Jackson Harper  <jackson@ximian.com>
6442
6443         * TextControl.cs: Move around the line endings when crossing line
6444         boundaries.
6445         - When combining lines, strip the ending text off the first line.
6446
6447 2007-04-05  Jackson Harper  <jackson@ximian.com>
6448
6449         * TextControl.cs:
6450         * TextBoxBase.cs: Try to never move the cursor into the line
6451         ending.
6452         
6453 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6454
6455         * ToolStripItem.cs: Make sure we aren't firing mouse events when
6456         the item is disabled.  Also add a few missing methods.
6457
6458 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6459
6460         * ListView.cs: We don't need the MouseEnter/MouseLeave check
6461         to fire just one MouseHover event when HoverSelection is true, since
6462         .Net does fire more than one MouseHover event in that scenario. Also,
6463         fix the selection in HoverSelection, by invoking UpdateMultiSelect
6464         if MultiSelect is true, instead of only setting ListViewItem.Selected.
6465         Finally, we need to reset the Hover logic in MouseMove, even when we
6466         don't have a selected item.
6467
6468 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6469
6470         * ToolStrip.cs: Add several missing methods, properties, and events.
6471
6472 2007-04-04  Chris Toshok  <toshok@ximian.com>
6473
6474         * DataGridTextBoxColumn.cs: set the bounds of the text box to
6475         (0,0,0,0) in Commit, as MS does.
6476
6477         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
6478         make sure we set CurrentRow on a row header click *before* calling
6479         Select.  This moves the current cell (and the textbox) to the new
6480         row.  The call to Select then hides the textbox, giving us the
6481         correct behavior.  Fixes #80362.
6482
6483         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
6484         (ListChangedHandler): reorder the position/current changed events,
6485         and call UpdateIsBinding in the ItemAdded case.
6486
6487         * GridColumnStylesCollection.cs: add some columns events, one of
6488         which raises the CollectionChanged event.
6489
6490 2007-04-04  Jackson Harper  <jackson@ximian.com>
6491
6492         * TextControl.cs: When we delete multiple selection lines
6493         invalidate the selection area, don't need to do that for single
6494         lines because the final update view will handle it.
6495
6496 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6497
6498         * Control.cs: When we CreateControl, we need to also create all of the
6499         control's children.  The child's OnLoad must also fire before the parent's
6500         OnLoad.  Fixes the toolbox size in PDN.
6501
6502 2007-04-04  Jackson Harper  <jackson@ximian.com>
6503
6504         * TextBoxBase.cs: When the user presses enter, insert a line
6505         ending into the text. (Maybe this would be a good spot for
6506         Environment.NewLine).
6507         * TextControl.cs: Remove undo manager hack, line endings get
6508         inserted properly now.
6509         
6510 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
6511
6512         * MenuAPI.cs: 
6513         - Remove unneeded parameters in UpdateCursor.
6514         - Fix UpdateCursor to check if menu is active.
6515         - Call UpdateCursor when menu deactivate my click.
6516         [Fixes remaining issues from #80410]
6517
6518 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
6519
6520         * Control.cs: GetRealChildAtPoint method added, it make an
6521         recursive child control search for the point. 
6522
6523         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
6524         menu.
6525
6526         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
6527
6528 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
6529
6530         * Form.cs: Fix mouse position when send back mouse event after closes
6531         menu.
6532
6533 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
6534
6535         * Form.cs: Simplify the BUTTONDOWN for active tracker.
6536
6537 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
6538
6539         * Control.cs: Fix an issue where if a user resized a control inside
6540         a sizing method like OnResize, we would overwrite their explicit
6541         value.  Also, only call DefaultSize once in the constructor instead
6542         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
6543         nothing actually changed.
6544
6545 2007-04-03  Jackson Harper  <jackson@ximian.com>
6546
6547         * TextControl.cs: Don't attempt to copy text for lines with no
6548         text in them (technically this shouldn't happen, but we aren't
6549         always inserting line endings when we should be).
6550
6551 2007-04-03  Jackson Harper  <jackson@ximian.com>
6552
6553         * TextBoxBase.cs: Calculate the scrollbars before calculating the
6554         document, because this sets some of the document size properties
6555         that are needed.
6556
6557 2007-04-03  Jackson Harper  <jackson@ximian.com>
6558
6559         * TextBoxBase.cs: We need to calculate maximums even if this is
6560         not a multiline control, because the maxs are used for scrolling.
6561         - Display the caret after doing a page up/down, we need to
6562         manually display it because a proper CaretMoved event isn't
6563         triggered (this is because of the way the math is done to
6564         determine how far to scroll).
6565
6566 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
6567
6568         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
6569         (ToolBar was relying on SetBoundsCore to default the values sent 
6570         base off of BoundsSpecified.)
6571
6572 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6573
6574         * DateTimePicker.cs: Change Text so that when a null value or empty
6575           string is assigned to the test we always raise ValueChanged and
6576           TextChanged (earlier implementation would only raise ValueChanged
6577           if the current date value was different from DateTime.Now).
6578
6579 2007-04-03  Andreia Gaita <avidigal@novell.com> 
6580
6581         * ButtonBase: Call update after invalidation, fixes #80194
6582
6583 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6584
6585         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
6586           #79335.
6587
6588 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6589
6590         * XplatUIX11.cs: SetWMStyles: If the control is a form with
6591           FormBorderStyle = None, don't give the window any decorations.
6592           Fixes #81276.
6593
6594 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6595
6596         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6597         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
6598           to check for is a mix of several styles (such as WS_CAPTION for
6599           instance).
6600         * Control.cs: Don't paint an area bigger than the client area when
6601           painting the background colour. Add an internal GetCreateParams.
6602           Update calls to XplatUI.CalculateWindowRect due to API change.
6603         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
6604           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
6605           the size if it hasn't been handled by any windows. When creating
6606           and moving windows, X wants the location of the entire window, but
6607           the size of the client window, so add
6608           TranslateClientRectangleToXClientRectangle,
6609           TranslateWindowSizeToXWindowSIze and
6610           TranslatedXWindowSizeToWindowSize to cope with this, and call them
6611           before every window creation and move. Update CalculateWIndowRect
6612           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
6613           In AddConfigureNotify don't do anything if the hwnd is a zombie
6614           (fixes the BadWindow we were getting while running the tests),
6615           always calculate the offsets when it's a parentless window, not
6616           only when reparented, and translate the window size, since we're
6617           getting the client size of the whole window, excluding entire
6618           window.
6619         * Theme.cs: Added BorderSizableSize.
6620         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6621           anymore. Update calls to XplatUI.CalculateWindowRect due to API
6622           chang
6623         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
6624           change. Fake the window styles here instead of in XplatUIWin32 so
6625           that all back-ends get the same window styles (and it's Form that's
6626           deciding when to use wm, not the Win32 backend anyways)
6627         * Hwnd.cs: Completely reworked GetWindowRectangle and
6628           GetClientRectangle - they are now passed a CreateParams and they
6629           only use Style and ExStyle to determine the rectangles (they should
6630           now work just like Win32AdjustWindowRectEx - though quite a few
6631           special cases are probably missing). They should also be 100%
6632           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
6633           == rect), and all numbers (borders, menu sizes) are taken from the
6634           current theme. Added a GetBorders helper function that will return
6635           the borders for any given CreateParams (including captions and
6636           menus), and GetBorderSize that returns the given border size only.
6637         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6638           Hwnd.GetClientRectangle.
6639
6640 2007-04-02  Chris Toshok  <toshok@ximian.com>
6641
6642         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
6643         logic between the values we present to the user and the values
6644         which are stored in the column's property.  Also, don't call
6645         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
6646
6647 2007-04-02  Jackson Harper  <jackson@ximian.com>
6648
6649         * TextBoxBase.cs: Scroll faster!
6650
6651 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
6652
6653         * StatusStrip.cs: Layout fixes for PDN.
6654         * ToolStrip.cs: Set item's available to true, and placement to main when
6655         added.
6656         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
6657         changing in setter before doing any work, add InternalVisible.
6658         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
6659         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6660         infinite loop.
6661
6662 2007-04-02  Jackson Harper  <jackson@ximian.com>
6663
6664         * TextBox.cs: LBUTTON does not make the textbox select all of it's
6665         text on focus.
6666
6667 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6668
6669         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
6670           Makes ToolStripComboBoxes show up again.
6671
6672 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6673
6674         * ListView.cs: Add a hover_pending field in ListView
6675         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
6676         cycle (we are resetting the MouseHover logic in XplatUI
6677         to handle HoverSelection). Fixes #80429.
6678
6679 2007-04-02  Jackson Harper  <jackson@ximian.com>
6680
6681         * TextControl.cs: Make sure the attributes get set on the last
6682         tag.
6683         - Still have to do the end tag if we have stepped all the ways to
6684         the end.
6685
6686 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
6687
6688         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
6689         on an internal libgdiplus call when the information is already 
6690         available via the public API.
6691
6692 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6693
6694         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
6695           control is removed from a control collecftion.
6696         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
6697           Fixes FormPropertyTest (failed on rare occasions).
6698         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
6699           of Win32SetParent (when changing from no parent to a parent it
6700           might add the new parent's location in screen coordinates to this
6701           window's location).
6702         * Form.cs: Rework ChangingParent once again, now the handle is
6703           recreated whenever a FormWindowManager is added or removed (that is
6704           whenever a normal form is parented or abandoned). Also change
6705           CreateParams so that all non-toplevel windows always get the
6706           specified sice (StartupPosition is never considered for
6707           non-TopLevel forms).
6708         * ContainerControl.cs: Add ChildControlRemoved, the container control
6709           needs to be notified when a control is removed from it's
6710           collection, in the case the removed control is the active control.
6711
6712 2007-04-02  Jackson Harper  <jackson@ximian.com>
6713
6714         * RichTextBox.cs: Use the new methods for setting the font and
6715         color, these methods set the specified attribute without
6716         overriding the other attributes.
6717
6718 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
6719
6720         * ToolStripPanel.cs: Fixes for better layouts in PDN.
6721
6722 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
6723
6724         * TextBox.cs: Added internal ChangeBackColor method to special-case
6725         Color.Empty. Added check for invalid ScrollBars value.
6726         * TextBoxBase.cs: Added internal ChangeBackColor method.
6727         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
6728         internal ChangeBackColor method to special-case Color.Empty. Added
6729         check for invalid ScrollBars value.
6730
6731 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
6732
6733         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
6734
6735 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
6736
6737         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
6738         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
6739         [Based on submitted patch from Olivier Duff.]
6740
6741 2007-03-30  Jackson Harper  <jackson@ximian.com>
6742
6743         * TextBox.cs: Only select all on initial focus if the user has not
6744         specified a selection area.
6745
6746 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
6747
6748         * UserControl.cs: Override CreateParams.
6749
6750 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6751
6752         [ Fixes #80995 ]
6753
6754         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6755         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
6756           check for is a mix of several styles (such as WS_CAPTION for instance).
6757         * Control.cs: Don't paint an area bigger than the client area when painting
6758           the background colour. Add an internal GetCreateParams. Update calls to
6759           XplatUI.CalculateWindowRect due to API change.
6760         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
6761           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
6762           hasn't been handled by any windows. When creating and moving windows, X
6763           wants the location of the entire window, but the size of the client
6764           window, so add TranslateClientRectangleToXClientRectangle,
6765           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
6766           to cope with this, and call them before every window creation and move.
6767           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
6768           removing DeriveStyles). In AddConfigureNotify don't do anything if the
6769           hwnd is a zombie (fixes the BadWindow we were getting while running the
6770           tests), always calculate the offsets when it's a parentless window, not
6771           only when reparented, and translate the window size, since we're getting
6772           the client size of the whole window, excluding entire window.
6773         * Theme.cs: Added BorderSizableSize.
6774         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6775           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
6776         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
6777           Fake the window styles here instead of in XplatUIWin32 so that all
6778           back-ends get the same window styles (and it's Form that's deciding when
6779           to use wm, not the Win32 backend anyways)
6780         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
6781           they are now passed a CreateParams and they only use Style and ExStyle
6782           to determine the rectangles (they should now work just like
6783           Win32AdjustWindowRectEx - though quite a few special cases are probably
6784           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
6785           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
6786           sizes) are taken from the current theme. Added a GetBorders helper
6787           function that will return the borders for any given CreateParams
6788           (including captions and menus), and GetBorderSize that returns the given
6789           border size only.
6790         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6791           Hwnd.GetClientRectangle.
6792
6793 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6794
6795         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
6796           layout of the mdi children is handled by CreateParams. Fixes
6797           #79964,
6798
6799 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6800
6801         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
6802         processed.
6803
6804         * Form.cs: When active tracker mouse down is not processed, send event 
6805         back to control inside mouse position. [Fixes #81227]
6806
6807 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
6808
6809         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
6810         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
6811         stealing focus from the active form on Windows.  (Control will be made
6812         visible in ShowWindow.)
6813
6814 2007-03-29  Mike Kestner  <mkestner@novell.com>
6815
6816         * ImageList.cs : add internal Changed event.
6817         * ListView.cs : hook up to StateImageList.Changed to perform
6818         invalidations when the the state icon list changes. [Fixes #81191]
6819
6820 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
6821
6822         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
6823         to prevent tooltips from stealing focus from the active form on Windows.
6824
6825 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6826
6827         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
6828
6829         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
6830
6831 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6832
6833         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
6834         balloons.
6835
6836 2007-03-29  Jackson Harper  <jackson@ximian.com>
6837
6838         * TextControl.cs: When deleting text from non multiline textboxes,
6839         we need to update the entire document, because line offsets will
6840         be shifting.
6841
6842 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6843
6844         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
6845         added to theme, now we can create themes that uses diferent notify engines
6846         like notification-daemon from galago project or growl for Mac OS.
6847
6848 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6849
6850         * NotifyIcon.cs: Prevent Balloon to show in task bar.
6851
6852 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6853
6854         * XplatUIX11.cs: Prevent system to open more than one balloon.
6855
6856         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
6857         some compiler warning messages.
6858
6859 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6860
6861         [Fixes #79149]
6862
6863         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
6864
6865         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
6866         implemented, this methods is used by NotifyIcon.BalloonWindow class.
6867
6868         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
6869         systems.
6870
6871 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6872
6873         * ListViewItem.cs: Forgot to make Invalidate internal.
6874
6875 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6876
6877         * ListView.cs: Add a InvalidateSelection method to
6878         invalidate methods which are currently selected, and call
6879         it when setting FullRowSelect and HideSelection, instead of
6880         calling Redraw.
6881
6882 2007-03-28  Chris Toshok  <toshok@ximian.com>
6883
6884         * XplatUIX11.cs (UnmapWindow): reindent this block.
6885
6886         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
6887         the selection_start if we're moving the selection (that is, not
6888         extending it). Fixes bug #80461.
6889
6890 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6891
6892         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
6893         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
6894         create private ControlCollection.
6895
6896 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6897
6898         * Control.cs: We need to call OnVisibleChanged for our implicit
6899         children as well as our normal children.  Fixes scrollbars in
6900         comboboxes not showing up.
6901
6902 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6903
6904         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
6905         the check for IsHandleCreated first.  The check in CreateHandle is not
6906         good enough because CreateHandle can be overriden, and the override 
6907         should not be called if the handle is already created.
6908
6909 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6910
6911         * ToolStrip.cs: Remove MonoTODO for tooltips.
6912         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
6913         * ToolStripContainer.cs: Add custom ControlCollection class.
6914         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
6915         * ToolStripDropDown.cs: Add some missing properties/methods.
6916         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
6917         * ToolStripItem.cs: Remove MonoTODO for tooltips.
6918         * ToolStripManager.cs: Add IsShortcutDefined.
6919         * ToolStripOverflow.cs: Override LayoutEngine.
6920         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
6921         * ToolStripSeparator.cs: Add ImageKey.
6922
6923 2007-03-28  Jackson Harper  <jackson@ximian.com>
6924
6925         * TextControl.cs: If a char delete removes a line ending, we need
6926         to update the ending style.
6927         - Make sure the line ending calcs get called.
6928
6929 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6930
6931         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
6932           it was making the new code not work. Fixed a typo in the new code
6933           as well. Fixes #79826.
6934
6935 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6936
6937         * XplatUIWin32.cs:
6938         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
6939         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
6940         - SystrayBalloon method implemented.
6941         [Add support for notifyicon balloon on win32, #79149]
6942
6943 2007-03-27  Mike Kestner  <mkestner@novell.com>
6944
6945         * ThemeWin32Classic.cs : update StateImageList selection to mirror
6946         the ms behavior when only one image is added to the list.
6947         [Fixes #81191]
6948
6949 2007-03-27  Jackson Harper  <jackson@ximian.com>
6950
6951         * TextControl.cs: Improvements to non multiline line ending
6952         drawing/measuing.
6953
6954 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6955
6956         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
6957
6958 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6959
6960         * NotifyIcon.cs: 
6961         - Balloon message handling added.
6962         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
6963
6964         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6965         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
6966         to SystrayBalloon to me like other Systray method, also a
6967         handle parameter added.
6968
6969 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6970
6971         * ListView.cs: Show scrollbars even when items.Count == 0
6972         but the columns Width is bigger than the ListView.Width.
6973         Also, when columns.Count == 0 set layout_wd and layout_ht
6974         to the ClientRectangle values, so we don't show any scrollbar
6975         in that case.
6976
6977 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6978
6979         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
6980
6981 2007-03-27  Jackson Harper  <jackson@ximian.com>
6982
6983         * RichTextBox.cs: The RTF library decodes the text properly for us
6984         now.
6985
6986 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6987
6988         * ListView.cs: Display HeaderControl even when columns.Count == 0.
6989         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
6990         ListView header (HeaderControl), instead of Control.BackColor.
6991
6992 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
6993
6994         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
6995         Fixes tab control issues where controls would not show up because they
6996         never received their OnVisibleChanged call.
6997
6998 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6999
7000         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
7001         BalloonTipShown).
7002
7003 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
7004
7005         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
7006         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
7007         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
7008         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
7009         the handle.  Fix WindowState by using the internal variable until we are 
7010         sure that we've been shown.
7011         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
7012         max or min.
7013         [Fixes bug #81198]
7014
7015 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7016
7017         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
7018           (at least borders). Fixes #79386 on Linux (with a small difference
7019           in behaviour: when trying to resize a caption-less window metacity
7020           shows the sysmenu. Resizing is still possible though).
7021         * XplatUIWin32.cs: When setting window styles send request an extra
7022           WM_NCCALCSIZE when it's a form without title (due to no text and no
7023           caption), since Win32 seems to calculate it wrong the first time we
7024           get the message, though the second time things work as they should.
7025         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
7026           newly reparented window might show up unparented. Update
7027           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
7028           there's no title text. Fixes #79386.
7029
7030 2007-03-27  Mike Kestner  <mkestner@novell.com>
7031
7032         * ListBox.cs : don't perform invalidations if the handle hasn't been
7033         created.  [Fixes #80753]
7034
7035 2007-03-27  Mike Kestner  <mkestner@novell.com>
7036
7037         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
7038         [Fixes #80428]
7039
7040 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
7041
7042         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
7043         needed to implement Balloon.
7044
7045 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7046
7047         * ListViewItem.cs: In the constructors that take
7048         an array of strings, don't use ListViewSubItemCollection.AddRange
7049         method to add items, since we need to have a different behaviour (in
7050         the constructors we add an item for each null string, opposed to
7051         the behaviour of AddRange, which adds nothing).
7052
7053 2007-03-26  Andreia Gaita  <avidigal@novell.com>
7054
7055         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
7056
7057 2007-03-26  Jackson Harper  <jackson@ximian.com>
7058
7059         * TextControl.cs: Draw and measure line endings when in non
7060         multiline mode.
7061         - When searching the text, count the end of the last line as a
7062         word boundary.
7063
7064 2007-03-26  Jackson Harper  <jackson@ximian.com>
7065
7066         * RichTextBox.cs: The selection_start and selection_end don't
7067         really track the correct tags for the selection. So we'll manually
7068         compute the correct tag here.
7069
7070 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7071
7072         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
7073           and Continuous styles. Fixes #79469.
7074
7075 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
7076
7077         * ToolStrip.cs: Implement Tooltips.
7078         * ToolStripItem.cs: Create internal method for determining tooltip.
7079
7080 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
7081
7082         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
7083
7084 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
7085
7086         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
7087         it prevents a problem thak keeps icon visible after application 
7088         closes on win32.
7089
7090 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
7091
7092         * NotifyIcon.cs: Balloon properties and methods created.
7093
7094         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
7095         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
7096
7097 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
7098
7099         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
7100
7101 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
7102
7103         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
7104         parameter indicates which aspects were explicit/user-set.
7105         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
7106
7107 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
7108
7109         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
7110         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
7111         SmallChange, and Value (2.0).
7112         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
7113
7114 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7115
7116         * ListView.cs: Always set item_control.Width in LayoutDetails
7117         if View is Details. Setting it later in CalculateScrollBars
7118         in a not-so-corner scenario (the sum of columns width is
7119         not bigger than the ListView width when handle is created, and then
7120         that sum gets bigger by increasing the width of the columns)
7121         causes a very weird recursion path (which shouldn't be happening,
7122         since header_control sets it in CalculateScrollBars too). This bug
7123         appeared after Chris' fixes for handle created issues, so probably
7124         it's related to some handle-creation time.
7125
7126 2007-03-23  Chris Toshok  <toshok@ximian.com>
7127
7128         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
7129         case where there's an add row, just so we don't end up in a case
7130         where it's not displayed (this happens when the row is partially
7131         obscured).  Fixes bug #79574.
7132
7133 2007-03-23  Jackson Harper  <jackson@ximian.com>
7134
7135         * TextControl.cs:
7136         * TextBoxBase.cs:
7137         * RichTextBox.cs: Preserve line endings in the lines text buffer,
7138         also added an enum that represents the line ending type. 
7139
7140 2007-03-23  Andreia Gaita  <avidigal@novell.com>
7141
7142         * NumericUpDown.cs: Fix logic so Text and Value properties are not
7143         messed with in every method call, but only from DownButton, 
7144         UpButton, UpdateEditText() and ValidateText. Fixes #80346
7145
7146 2007-03-23  Chris Toshok  <toshok@ximian.com>
7147
7148         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
7149         format objects if the format spec is "".  Fixes bug #80889.
7150
7151 2007-03-22  Miguel de Icaza  <miguel@novell.com>
7152
7153         * ToolStripPanel.cs (Join): added stubs to build PDN3
7154
7155         * Control.cs (AutoScrollOffset): Add.
7156
7157         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
7158         property, its only implemented for Win32, on X11 it defaults to
7159         some hardcoded value.
7160
7161         * ToolStripItem.cs (AllowDrop): Add property
7162
7163 2007-03-22  Mike Kestner  <mkestner@novell.com>
7164
7165         * ListView.cs : in FullRowSelect Details mode, only enable box
7166         selection if the user clicks over the "item" column outside of the
7167         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
7168
7169 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7170
7171         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
7172           handle is not created yet.
7173         * Form.cs: Select: Don't call CreateHandle if the handle is already
7174           created, avoids a stack overflow on Windows when we are recreating
7175           controls.
7176         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
7177           they are made visible, and override AfterTopMostControl to keep
7178           them on top when other controls are brought to front.
7179           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
7180           or force_*scroll_visible is true (old implementation always shows
7181           scrollbars when needed, no matter what auto_scroll was set to).
7182         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
7183           IsHandleCreated check.
7184
7185 2007-03-22  Andreia Gaita  <avidigal@novell.com>
7186
7187         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
7188         row or col separator.
7189         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
7190
7191 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
7192
7193         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
7194
7195 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
7196
7197         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
7198         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
7199         every time. Fixes #80410.
7200
7201 2007-03-22  Chris Toshok  <toshok@ximian.com>
7202
7203         * BindingSource.cs (AddNew): partially implement.
7204
7205         remove a couple of NotImplementedException's
7206         to get bug #81148 closed.
7207
7208 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
7209
7210         [Fixes #80380]
7211         
7212         * Control.cs:
7213         - UpdateCursor method added to update the screen cursor.
7214         - GetAvailableCursor method added to return cursor for enabled tree,
7215         it searches for cursor on control and it's parent's for enabled control.
7216         - Call UpdateCursor method on setter of Cursor property.
7217         - On setter of Enabled call UpdateCursor when it is false, we need to
7218         change cursor to normal (or to this parent cursor) because cursor 
7219         setting theres no effect to disabled controls.
7220         - Some minor source changes to follow the coding style guidelines.
7221
7222         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
7223         controls.
7224
7225 2007-03-22  Chris Toshok  <toshok@ximian.com>
7226
7227         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
7228         generates.
7229
7230 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7231
7232         * XplatUIX11.cs: Implement default locations for forms.
7233         * Form.cs: Completely rework startup location for forms. Fixes #79964.
7234         * Hwnd.cs: Add previous_child_startup_location (to track the current
7235           startup location for any child forms of the current form) and
7236           previous_main_startup_location (to track the startup location for
7237           the current toplevel form).
7238
7239 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
7240
7241         * Control.cs: Don't trigger a layout if an implicit control is added
7242         that isn't visible.  Also, don't notify the owner when an implicit control
7243         is added.  (Owners shouldn't even know about their implicit controls.)
7244
7245 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
7246
7247         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
7248         to save some re-layouts.
7249
7250 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
7251
7252         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
7253         [Fixes #81203]
7254
7255 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
7256
7257         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
7258         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
7259
7260 2007-03-21  Mike Kestner  <mkestner@novell.com>
7261
7262         * ListView.cs : disable selection update for non-left button clicks
7263         with mods and over selected items.  [Fixes #80524]
7264
7265 2007-03-20  Jackson Harper  <jackson@ximian.com>
7266
7267         * TextControl.cs:
7268         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
7269         \r\r\n, \n.
7270
7271 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7272
7273         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
7274           very probably a more complicated calculation there. Update the
7275           textbox' ForeColor and BackColor when the ComboBox' colors are
7276           changed. Change the border change in LayoutComboBox to only affect
7277           the textbox, not all the calculations there. Seems to fix most of
7278           #79436.
7279
7280 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7281
7282         * ComboBox.cs: Handle Home and End keys as well as all combinations of
7283           modifiers + navigation keys as input keys, enables advanced text
7284           selection in the combobox (like Shift+Left Arrow for instance).
7285           ComboTextBox now overrides Focused and returns whatever
7286           ComboBox.Focused returns, since it really should be focused
7287           whenever the ComboBox is. Fixes #80795. Also make the border around
7288           the text box one pixel bigger, as mentioned in #79436.
7289
7290 2007-03-20  Jackson Harper  <jackson@ximian.com>
7291
7292         * TreeView.cs: Don't offset the images, this was causing some
7293         artifacts when expanding/collapsing with images that were the
7294         exact height of the treenode.
7295
7296 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7297
7298         * TrackBar.cs: Query the theme for the correct value when the mouse
7299           moves and the thumb is pressed. 
7300         * Theme.cs: Added TrackBarValueFromMousePosition
7301         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
7302           implementation was updating the trackbar value when drawing, now
7303           the drawing methods only draw. Fixes #80900. Refactored the
7304           calculations out to TrackBarValueFromMousePosition and
7305           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
7306           according to the mouse position whenever it wants to. Changed the
7307           light coloured pen when drawing the thumb from ControlLight to
7308           ControlLightLight, because the ControlLight is the same colour as
7309           the background so the 3D effect is lost. 
7310
7311 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7312
7313         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
7314         defined. Fixes #80784.
7315
7316 2007-03-20  Marek Habersack  <mhabersack@novell.com>
7317
7318         * ContextMenuStrip.cs: align with the change introduced in
7319         revision 74664.
7320
7321 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7322
7323         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
7324         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
7325         in SetTopmost.
7326
7327 2007-03-19  Chris Toshok  <toshok@ximian.com>
7328
7329         * Control.cs (WmPaint): don't make use of the Handle property
7330         after an event is emitted, as the user could have closed the
7331         form/destroyed the control.  Store the Handle in a local variable
7332         and make use of that.  Fixes bug #80768.
7333
7334 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7335
7336         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
7337         behavior in X11 environments.
7338
7339 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7340
7341         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
7342         because on setter of topmost we dont call SetTopmost when handle is not
7343         created.
7344
7345 2007-03-20  Jackson Harper  <jackson@ximian.com>
7346
7347         * TextControl.cs: Need to use SelectionLength () not
7348         selection_length, since that var is reset to -1.
7349         - Draw the caret when we don't have focus.
7350         * TextBox.cs: The selectall actually doesn't occur until the first
7351         focus.
7352         * TextBoxBase.cs: Need to update the caret position after a
7353         selectall.
7354         
7355 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7356
7357         * ListView.cs: Enable scrolling when using Tile view.
7358
7359 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
7360
7361         [Fixes #80902]
7362
7363         * XplatUIDriver.cs: Abstract SetOwner method created.
7364
7365         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
7366         must be implemented and was masked as todo.
7367
7368         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
7369         GWL_HWNDPARENT.
7370
7371         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
7372         cheking for null owner to remove transient. The SetTopmost will be change
7373         on a decond step.
7374
7375         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
7376         SetTopmost. Now owned forms will work properly in win32 and X11.
7377
7378 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7379
7380         * MdiWindowManager.cs: Update function name.
7381         * Form.cs: After closing a form MdiParent is always null.
7382         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
7383           better what it should do: necessary book-keeping when the form is
7384           closed, it should not close the form itself.
7385
7386 2007-03-19  Andreia Gaita  <avidigal@novell.com>
7387
7388         * ListViewItem.cs: Fix back and fore color. The subitems only
7389         use their own colors if they are set, otherwise use the listview's
7390         colors. Don't set default colors on constructor for subitem.
7391         Fixes #79315.
7392
7393 2007-03-19  Mike Kestner  <mkestner@novell.com>
7394
7395         * ListView.cs : make box selection for Details views with 
7396         FullRowSelect conform to MS behavior when clicking in the "item" 
7397         column and clicking outside the defined columns.
7398         [Fixes case 5-6 of #80374]
7399
7400 2007-03-19  Chris Toshok  <toshok@ximian.com>
7401
7402         * ScrollableControl.cs: create the controls from within the ctor,
7403         but don't actually add them until our handle is created.  this
7404         fixes a NRE possibility jpobst found (if you override OnLayout in
7405         a subclass, it's called before your ctor).  Also, add a
7406         IsHandleCreated guard to UpdateSizeGripVisibility as well.
7407
7408 2007-03-19  Jackson Harper  <jackson@ximian.com>
7409
7410         * TextBox.cs: Reduce the amount of invalidation we do.
7411         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
7412         some of them are true by default on MS.
7413         - Add some functions to reduce the amount of invalidates we do.
7414         * TextControl.cs: Less invalidation.
7415
7416 2007-03-19  Chris Toshok  <toshok@ximian.com>
7417
7418         [ Fixes #81773, and *seems* to fix #81553 as well ]
7419
7420         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
7421         AccumulateDestroyedHandles.  We need to do it *after* we send
7422         WM_DESTROY, as the user's code can access Control.Handle in
7423         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
7424         move the WM_DESTROY/zombie handling to before the call to
7425         XDestroyWindow.  For some reason without this ordering
7426         FormTest.RecreateHandle hangs.  This ordering is semantically
7427         equivalent, however, as XDestroyWindow is async anyway.
7428
7429 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
7430
7431         * RichTextBox.cs: Reset backcolor_set after setting default.
7432
7433 2007-03-19  Chris Toshok  <toshok@ximian.com>
7434
7435         * ScrollableControl.cs: the scroll position should not effect the
7436         canvas size.  commit patch from georgegiolfan@yahoo.com, which
7437         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
7438         
7439 2007-03-19  Chris Toshok  <toshok@ximian.com>
7440
7441         * ScrollableControl.cs: clean this up a bit.  create the
7442         scrollbars in the ctor and just show/hide them as needed.  Also,
7443         make hscroll_visible/vscroll_visible internal to Recalculate, and
7444         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
7445         everywhere else.  This seems to fix the scrollbars appearing
7446         beneath the content for me (i have *no* idea why that is,
7447         however.)
7448
7449 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
7450
7451         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
7452         some redundacy for stuff in Anchor and Dock that base will take care of.
7453         [Fixes #80762]
7454
7455 2007-03-19  Mike Kestner  <mkestner@novell.com>
7456
7457         * ListView.cs : make box selection for Details views without 
7458         FullRowSelect dependent on the text bounds, not item bounds.
7459         * ListViewItem.cs : add an internal property to obtain the TextBounds
7460         in Details view.  [Fixes case 1-4 of #80374]
7461
7462 2007-03-19  Andreia Gaita  <avidigal@novell.com>
7463
7464         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
7465         we're < 2.0. #78448 && #80316
7466
7467 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
7468
7469         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
7470         have the same style available as the previously selected one.  Also,
7471         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
7472
7473 2007-03-19  Jackson Harper  <jackson@ximian.com>
7474
7475         * TextControl.cs: Add an alignment property that all new lines
7476         will be given.
7477         - Make sure to use the align shift when calculating the line's X
7478         position.
7479         * TextBox.cs: Set the alignment on the document as well as on all
7480         the document lines.
7481
7482 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7483
7484         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
7485           throw if setting the parent of an mdichild that already has an
7486           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
7487           AssemblyProductAttribute in the assembly, use the type's namespace (as
7488           MS seems to do). CreateControl: don't create the handle if the control
7489           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
7490           create handle if the control is not a form. Change FocusInternal to
7491           virtual so that it can be overriden by Form.
7492         * TextBox.cs: Update call to FocusInternal.
7493         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
7494           form is not a toplevel form when it's a mdi child, so update is_toplevel
7495           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
7496           hasn't been created. Show (IWin32Window): Don't allow this overload for
7497           toplevel windows. CenterToParent/CenterToScreen/Select: create the
7498           handle as MS does. SetVisibleCore: if called on a MdiChild and the
7499           parent isn't visible yet, save the visibility and restore it when the
7500           parent is made visible.
7501         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
7502           methods, since the visibility of the scrollbars can be changed from
7503           several places, not only from AutoScroll.
7504           [Fixes #81179]
7505
7506 2007-03-19  Jackson Harper  <jackson@ximian.com>
7507
7508         * RichTextBox.cs: Enable shortcuts by default.
7509         * TextBoxBase.cs: Add conditional shortcuts.  
7510
7511 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
7512
7513         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
7514
7515 2007-03-19  Chris Toshok  <toshok@ximian.com>
7516
7517         [ Fixes bug #80604]
7518         
7519         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
7520         swallow the message we're waiting on, instead of delivering it, as
7521         this is only used for the WM_SHOWWINDOW raised from
7522         MapWindow/UnmapWindow, and the message needs to be generated
7523         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
7524         before doing the Map/Unmap.  Also make sure that the Hwnd is still
7525         alive after the message has been handled.
7526
7527         *before* the window is shown.
7528
7529         * Control.cs (CreateControl): guard a few more things inside the
7530         if (!is_created) block, as we might end up being called again -
7531         yay .net.
7532         (WmShowWindow): call CreateControl if we're showing the control.
7533
7534 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7535
7536         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
7537           controls without a handle if they have any parent with a handle. In
7538           Dispose add a check whether the handle is created or not before
7539           calling BeginInvoke, this removes the need of the extra disposing
7540           parameter (which was bogus anyway since it didn't prevent the
7541           invoke from happening, it only skipped the check for an existing
7542           handle, meaning that the invoke would call on an inexistent
7543           handle).
7544
7545 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
7546
7547         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
7548         appears in taskbar.
7549
7550 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
7551
7552         * MessageBox.cs:
7553         - Fixed a problem that dont show help button for messages with 3 buttons.
7554         - Refactory button size and position calculations, now dont use fixed 
7555         values, also fixed button sizes (#80043) and form's border space.
7556         - AddButton method created, now all other AddButton methods call this one.
7557         - Some other source code cosmetic changes.
7558
7559 2007-03-18  Jackson Harper  <jackson@ximian.com>
7560
7561         * RichTextBox.cs: Don't do this all fonts must match check if
7562         there is only one char selected.
7563
7564 2007-03-18  Jackson Harper  <jackson@ximian.com>
7565
7566         * TreeView.cs: ScrollWindow works properly now, so we don't need
7567         to screw around with the scroll area.  This fixes some artifacts
7568         when expanding and collapsing.
7569
7570 2007-03-18  Jackson Harper  <jackson@ximian.com>
7571
7572         * TextBoxBase.cs: Allow updating the selection position when the
7573         cursor is outside the textarea, but we have a capture.
7574         * TextControl.cs: A special case for when the cursor is outside
7575         the bounds of the TB.
7576         
7577 2007-03-18  Jackson Harper  <jackson@ximian.com>
7578
7579         * TextBoxBase.cs: Remove image pasting code for now.  There is no
7580         way to get an image on the clipboard right now anyways.
7581         * TextControl.cs:
7582         * RichTextBox.cs: Use the new RTF Picture class for pictures.
7583
7584 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
7585
7586         * MessageBox.cs:
7587         - Set window properties in constructor intead of on CreateParams.
7588         - Remove topmost from Window ExStyle.
7589         - Set ShowInTaskbar to false.
7590         - Set form border to FixedDialog.
7591         - Some cosmetic changes and remove unneeded comments.
7592         - It fixes itens 2,3 and 4 of bug #80043.
7593
7594 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
7595
7596         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
7597         none was explicitly set. Fixes part of bug #79949.
7598
7599 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
7600
7601         * ToolStripComboBox.cs: Add AutoComplete*.
7602
7603 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
7604
7605         * ToolStripComboBox.cs: Add FlatStyle.
7606
7607 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
7608
7609         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
7610         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
7611
7612 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7613
7614         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
7615           CheckBox.cs, RadioButton.cs, BindingSource.cs,
7616           DataGridColumnStyle.cs: Remove warnings.
7617
7618 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7619
7620         * Menu.cs: MergeMenu: Check menu argument for null before looping over
7621           it.
7622         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
7623           visibility of mdi child forms. FormSizeChangedHandler: update the
7624           maximized size if size has changed while maximized.
7625         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
7626           creating the handle.
7627         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
7628           avoid creating the handle if not created.
7629         * XplatUI.cs: Update debug output.
7630         * XplatUIStructs.cs: Added ToString's for a couple of structs.
7631
7632 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
7633
7634         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
7635         ProcessCmdKey().
7636         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
7637         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
7638         Implement keyboard shortcuts.
7639
7640 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
7641
7642         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
7643         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
7644         ColorDialog and all derived classes.
7645
7646 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
7647
7648         [ Fixes bug #79828 ]
7649
7650         * ToolBar.cs:
7651         - Rename ToolBarButtonInfor to ToolBarItem.
7652         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
7653         - Maintain an array of ToolBarItem, used instead of ToolBarButton
7654         collection to be able add same button more than one time on a toolbar.
7655         - Refactory all properties and methods to use ToolBarItem. 
7656
7657         * ToolBarButton.cs: 
7658         - Remove all propeties and methods that is now in ToolBarItem.
7659         - Rectangle propery now gets the rectangle from first ToolBarItem to
7660         mimic win32 behavior.
7661         - Size calculation and layout methods also removed.
7662
7663         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
7664         ToolBarItem instead of ToolBarButton to right drawing buttons when
7665         same button/separator was added more than one time to ToolBar.
7666
7667         * ThemeNice.cs: Same as above. 
7668
7669 2007-03-15  Andreia Gaita  <avidigal@novell.com>
7670
7671         * XplatUIX11.cs: Fire extra MouseMove events right after
7672         MouseDown and MouseUp, emulating win32's <censored> behaviour
7673         for apps that rely on it.
7674
7675 2007-03-15  Jackson Harper  <jackson@ximian.com>
7676
7677         * TextControl.cs:
7678         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
7679         it is drawn on the controls client window and there is no NC
7680         area.
7681         - Set the background color to gray on 2.0 when we are readonly.
7682
7683 2007-03-15  Chris Toshok  <toshok@ximian.com>
7684
7685         [ Fixes bug #81144 ]
7686         
7687         * XplatUIX11.cs: implement VirtualScreen independently of
7688         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
7689         property.
7690
7691 2007-03-15  Chris Toshok  <toshok@ximian.com>
7692
7693         * Hwnd.cs: add an internal field for the cached_window_state.
7694
7695         * XplatUIX11.cs: cache the window state, invalidating the cache
7696         (and thus re-querying the X server) only when we see an update to
7697         the _NET_WM_STATE property.
7698
7699 2007-03-15  Chris Toshok  <toshok@ximian.com>
7700
7701         * BindingSource.cs: get a lot of the unit tests working.
7702
7703 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
7704
7705         * Control.cs: Modify UpdateStyles to store distances when bounds >=
7706         0 instead of just bounds > 0.  [Fixes bug #80912]
7707
7708 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
7709
7710         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
7711         and methods.
7712
7713 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
7714         
7715         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
7716         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
7717         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
7718         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
7719
7720 2007-03-15  Chris Toshok  <toshok@ximian.com>
7721
7722         [ Fixes #81101 ]
7723         
7724         * Control.cs: add Ivan's fix for 81101, with a slight modification
7725         - you can set control.Target to null.
7726
7727 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
7728
7729         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
7730         HideDropDown, use Hide instead to prevent an NRE.
7731         [Fixes bug #81147]
7732
7733 2007-03-14  Jackson Harper  <jackson@ximian.com>
7734
7735         * TextBoxBase.cs: Mess with the creation stuff a little. We need
7736         to calculate the document before the handle is created, in some
7737         cases. (Actually just one case).
7738
7739 2007-03-14  Jackson Harper  <jackson@ximian.com>
7740
7741         * TextBoxBase.cs: Need to display the caret after letting the base
7742         wndproc handle the focus methods, because the caret display
7743         methods check the focus state.
7744         - Try to display the caret after updating it's position with SelectWord.
7745         - Don't need to do an immediate update on this recalc, since there
7746         will be an invalidate anyways.
7747
7748 2007-03-14  Jackson Harper  <jackson@ximian.com>
7749
7750         * TreeView.cs: Some workarounds so that we can match event order a
7751         little better.
7752
7753 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
7754
7755         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
7756         #80803. Avoid NullReferenceException when Control does not have
7757         parent. Fixed different blinkstyle issues. Only subscribe to Tick
7758         event a single time. Only draw error icon when control is created and
7759         visible. Fixes failing unit tests.
7760
7761 2007-03-14  Andreia Gaita  <avidigal@novell.com>
7762
7763         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
7764         Selecting events. Fire Leave and Enter events when changing tabs.
7765
7766 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
7767
7768         * TreeView.cs: Add TreeViewNodeSorter.
7769         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
7770
7771 2007-03-14  Chris Toshok  <toshok@ximian.com>
7772
7773         * Form.cs: go ahead and remove the RecreateHandles that jpobst
7774         removed earlier and I had him add back it.  It turns out metacity
7775         *does* in fact handle the MOTIF_WM_HINTS property changing, it
7776         just doesn't redraw the window titlebar until you resize the
7777         window.  This also means we aren't recreating the entire window
7778         hierarchy on X when you change this property.  And it looks better
7779         on windows, too.
7780
7781 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7782
7783         * ListViewItem.cs:
7784         * ListView.cs: Collecting selection information
7785         is now done in SelectedIndexCollection rather than in
7786         SelectedListViewItemCollection. This is done so we can
7787         have the selection information code in one single place
7788         (virtual mode selection information entirely depends on
7789         SelectedIndexCollection).
7790
7791 2007-03-13  Miguel de Icaza  <miguel@novell.com>
7792
7793         * ErrorProvider.cs: Add stubs for ISupportInitialize
7794
7795 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7796
7797         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
7798         in the right order with the right values, from the Checked property, 
7799         just as MS does (instead of triggering them from ListView).
7800
7801         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
7802
7803 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7804
7805         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
7806         the correct handler in OnItemCheck method (ItemCheckEventHandler 
7807         instead of EventHandler). This used to throw an InvalidCastException.
7808
7809 2007-03-13  Jackson Harper  <jackson@ximian.com>
7810
7811         * TextBoxBase.cs: Calculate the document before the handle is
7812         created, so there isn't an extra invalidate called.
7813
7814 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
7815
7816         * Form.cs: Don't set owner in ShowDialog until we are sure
7817         that we aren't going to throw an exception.  [Fixes bug #80773]
7818
7819 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
7820
7821         * TreeView.cs: Make it compile.
7822
7823 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7824
7825         * Control.cs: Another place we don't call SizeFromClientSize.
7826         * Form.cs: Another place we don't call SizeFromClientSize.
7827         [Fixes bug #81125]
7828
7829 2007-03-12  Jackson Harper  <jackson@ximian.com>
7830
7831         * TreeView.cs: Basically emulating some strangness here with
7832         exanding nodes and setting node positions when windows aren't
7833         created.
7834         - Also attempting to walk the node tree less than previously, and
7835         just use visible order calculations for determining offsets.
7836         - oops made scrolling backwards.
7837         * TreeNode.cs: We need to start nodes with a zero visible order,
7838         because the order calcs are based on the first nodes order.
7839
7840 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7841
7842         * Form.cs: Don't exit the program if RecreateHandle is called on
7843         the main form.
7844
7845 2007-03-12  Chris Toshok  <toshok@ximian.com>
7846
7847         * XEventQueue.cs: remove the use of PostQuitState.
7848
7849         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
7850         WM_QUIT message in GetMessage, return false (and if we're in the
7851         nested WaitForHwndMessage, repost the WM_QUIT message).
7852
7853 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7854
7855         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
7856         or the MaximizeBox properties.  [Part of bug #80640]
7857
7858 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
7859
7860         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
7861         no links.
7862
7863 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7864
7865         * ToolStripItem.cs: Fix some tests I broke by checking Visible
7866         instead of visible.
7867
7868 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
7869
7870         * FileDialog.cs: Use text of File name combobox to determine what
7871         files the user selected. Added tokenizer to parse the file names.
7872         Fixes bug #81123.
7873
7874 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7875
7876         * Control.cs: We can't call SizeFromClientSize in the constructor,
7877         but we still need to do the same work, so make an internal version.
7878         [Fixes bug #80621]
7879
7880 2007-03-12  Jackson Harper  <jackson@ximian.com>
7881
7882         * TreeView.cs:
7883         * TreeNode.cs:
7884         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
7885         IsExpanded.
7886
7887 2007-03-12  Jackson Harper  <jackson@ximian.com>
7888
7889         * TextBoxBase.cs: Now that the handles are being created a little
7890         later, we need to make sure that the document is recalculated when
7891         the handle is created.
7892
7893 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
7894
7895         * Theme.cs: GetLinkFont abstract method added.
7896         
7897         * LinkLabel.cs: 
7898         - Remove CalcTrimRectangle, no longer needed.
7899         - Factor also remove, position issues must be fixed in libgdiplus.
7900         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
7901         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
7902         care about font used to draw links.
7903         - Set TabStop to true when control is "Selectable", control is selectable
7904         when have one or more links. Fixes #80501 (test case is also added).
7905         - Set the LinkArea values after links change, LinkArea values must be
7906         based in first link position and size, a test case was created.
7907         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
7908         the attribute must be true LinkArea.Length > 0. The same was applied to
7909         TabStop.
7910         
7911         * ThemeWin32Classic.cs: 
7912         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
7913         in draw method.
7914         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
7915         color change.
7916         - Draw focus rectangle for every parts focused, including parts that 
7917         is on another line, its because regions returns various rectangles
7918         and not only one. Needed to mimic W32 look.
7919         - Uses Graphics.Clip to delimite region painted, it mean that now 
7920         complete text is passed to DrawString, with this we solve layout
7921         issues without create another text renderer.
7922         - Uses Region.Intersect to fix some flickers problems, now only needed
7923         parts will redrawed.
7924         - This changes fixes #79614 and some other unreported issues, on Linux 
7925         some layout problems still remain, the problem is under 
7926         MeasureCharacterRanges but it is an libgdiplus bug.
7927
7928 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
7929
7930         * TextBox.cs: Set for foreground color.
7931         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
7932         this is already done in Control.
7933
7934 2007-03-10  Jackson Harper  <jackson@ximian.com>
7935
7936         * TextBox.cs: Set the background color, but reset the
7937         backcolor_set flag which is just for the user setting the
7938         background color.
7939
7940 2007-03-09  Chris Toshok  <toshok@ximian.com>
7941
7942         * Control.cs: really remove the call to XplatUI.SetVisible from
7943         CreateHandle(), like I said I did when I merged the branch.
7944
7945         * BindingSource.cs: implement some more of this stuff.
7946
7947 2007-03-09  Jackson Harper  <jackson@ximian.com>
7948
7949         * TextBox.cs: Don't explicitly set our background colors.
7950         * TextControl.cs:
7951         * TextBoxBase.cs: Draw readonly text.
7952         - Need to invalidate when backcolor or readonly are changed.
7953         
7954 2007-03-09  Jackson Harper  <jackson@ximian.com>
7955
7956         * TextBoxBase.cs: Don't set the forecolor until the handle is
7957         created.
7958         - Do not raise OnPaint, and removed some old debug code.
7959
7960 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
7961
7962         * ScrollableControl.cs: Fix mouse wheel scrolling.
7963
7964 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
7965
7966         * Control.cs: Wire up MouseDoubleClick event.
7967
7968 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
7969
7970         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
7971         top or bottom.
7972         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
7973         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
7974         item is added.  This logic was moved to ToolStrip.OnItemAdded.
7975         [Fixes bug #81090]
7976
7977 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7978
7979         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
7980
7981 2007-03-08  Jackson Harper  <jackson@ximian.com>
7982
7983         * TreeView.cs: Show the correct image for selected node (this used
7984         to work, not sure how the code got deleted). Also implemented 2.0 feature
7985         SelectedImageKey.
7986
7987 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7988
7989         * ListView.cs:
7990         * ListViewItem.cs: Cache index in items when retrieving them
7991         in VirtualMode.
7992
7993 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
7994
7995         * ToolStripItem.cs: Don't return the explicit_size if we are using 
7996         AutoSize.  Fixes invalidation issue when user has explicitly set a
7997         size and has AutoSize = true.
7998
7999 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
8000
8001         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
8002
8003 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8004
8005         * DataGridView.cs: Remove event handler from DataView when a
8006         DataTable is used as DataSource.
8007
8008 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
8009
8010         * Control.cs: Create internal setter for client_size to allow it to be
8011         set without triggering resizing code.
8012         * Form.cs: Calculate client_size in constructor, only change client_size
8013         in FormBorderStyle property if Handle has been created.
8014         [Fixes #80574, #80791]
8015
8016 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
8017
8018         * SystemInformation.cs: Add TerminalServerSession.
8019
8020 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
8021
8022         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
8023         TreeView code.
8024
8025 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
8026
8027         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
8028         Handle before we were supposed to.  Now checks ActivateOnShow property
8029         in Control.
8030         * Control.cs: Add internal ActivateOnShow property.
8031         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
8032         for ActivateOnShow.
8033         * Hwnd.cs Remove no longer needed no_activate field.
8034
8035 2007-03-07  Jackson Harper  <jackson@ximian.com>
8036
8037         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
8038         2.0 properties
8039         * DrawTreeNodeEventHandler.cs: Add
8040         * DrawTreeNodeEventArgs.cs: Correct default value.
8041         
8042 2007-03-07  Chris Toshok  <toshok@ximian.com>
8043
8044         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
8045         to be called before NativeWindow.WndProc.  Put the HwndCreating
8046         magic there to hook up our Hwnd's to handles.
8047
8048 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
8049
8050         * DataGridView.cs: Comment out debug code.
8051
8052 2007-03-07  Chris Toshok  <toshok@ximian.com>
8053
8054         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
8055         to make the rest of the world happy]
8056
8057         * Control.cs (CreateHandle): there's no need to call
8058         XplatUI.SetVisible here, it's effectively done by
8059         XplatUI.CreateWindow on X now, and always was on windows.
8060
8061         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
8062         shortcircuit out of the loop if we have a message loop running on
8063         this thread.
8064
8065         [Changelog from merge]
8066
8067         2007-03-05  Chris Toshok  <toshok@ximian.com>
8068
8069                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
8070                 causes handle creation.
8071
8072         2007-02-28  Chris Toshok  <toshok@ximian.com>
8073
8074                 * ApplicationContext.cs: Add a flag to make sure we only raise the
8075                 ThreadExit event once (ExitThreadCore can be indirectly called
8076                 from a few places.)  I don't like the additional flag, but it
8077                 makes the event ordering/count correct.
8078
8079                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
8080                 without locking the collection.  An enumerator doesn't give us any
8081                 protection from modification anyway.  Lock the thread hash and
8082                 replace the complicated enumerator loop with a foreach.
8083                 (Application.CloseForms): make internal so it can be called from
8084                 ApplicationContext.  This should probably be moved to MWFThread.
8085                 (Application.ExitThread): don't call MWFThread.Current.Exit()
8086                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
8087                 when the runloop exits (in response to WM_QUIT.)
8088                 (Application.RunLoop): add a comment (and check) for
8089                 context.MainForm being null after setting context.MainForm.Visible
8090                 = true.  This is because you're perfectly free to dispose of a
8091                 form in VisibilityChanged.  Chalk this up to another case where we
8092                 need to synchronously generate WM_ACTIVATE from Control.Show.
8093                 Also, add handling for WM_QUIT here so we'll exit the loop.
8094                 
8095                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
8096                 fact that we don't wait if we're only unmapping the whole_window
8097                 makes me a bit nervous, but it doesn't seem to cause any problems
8098                 yet.
8099
8100                 also, add a comment about the stupid, broken and wrong resetting
8101                 of PostQuitState to false in GetMessage().
8102
8103                 In PostQuitMessage, we need to add a WM_QUIT message to the
8104                 thread's queue.  We use the FosterParent to get the right
8105                 handle/hwnd/queue.
8106
8107                 Lastly, in SetVisible, we need to unmap both windows, since the
8108                 waiting only happens when we're unmapping the client window.  So
8109                 now, the *only* time we unmap just the whole_window is in the hack
8110                 for resizing a control to 0,0.
8111                 
8112         2007-02-21  Chris Toshok  <toshok@ximian.com>
8113
8114                 * Application.cs (CloseForms): rewrite this so that we don't
8115                 modify the list while we're traversing it.
8116
8117         2007-02-20  Chris Toshok  <toshok@ximian.com>
8118
8119                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
8120                 of OnHandleCreated.
8121                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
8122                 handle is created.  otherwise we'll create it here.
8123                 (VerticalScrollEvent): same here.
8124
8125                 * Application.cs (CloseForms): call Form.Dispose, don't post
8126                 WM_CLOSE_INTERNAL.
8127
8128                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
8129                 here. Application should Dispose() of the Form's.
8130
8131                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
8132                 WM_DESTROY as well.
8133                 (MapWindow,UnmapWindow): only actually do the waiting for
8134                 SHOWWINDOW if the control we're dealing with is a Form.
8135                 (CreateWindow): if the control isn't a form, SendMessage
8136                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
8137
8138                 * Control.cs (SetVisibleCore): always use is_visible here, not
8139                 value.  If we use value, we can end up re-setting something
8140                 visible if, for instance, you do Control.Hide() in a delegate
8141                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
8142
8143         2007-02-20  Chris Toshok  <toshok@ximian.com>
8144
8145                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
8146                 the message we need.  PeekMessage returning false should not be a
8147                 condition under which we exit the loop.
8148
8149         2007-02-15  Chris Toshok  <toshok@ximian.com>
8150
8151                 * Control.cs (Refresh): only refresh if we've got a handle and are
8152                 visible.
8153                 (CreateAccessibilityInstance): CreateControl() here.
8154                 (UpdateChildrenZOrder): complicate the code loop even more by
8155                 taking into account controls that haven't had their handle
8156                 created, and those that aren't visible.  But on the flip side,
8157                 simplify the code by splitting it into two loops.  one which
8158                 builds up the list of child controls we're interested in, and the
8159                 other that sets the z order of those children.
8160
8161         2007-02-14  Chris Toshok  <toshok@ximian.com>
8162
8163                 * Control.cs: Control.AccessibilityObject causes the control to be
8164                 created, not just the handle.
8165
8166         2007-02-14  Chris Toshok  <toshok@ximian.com>
8167
8168                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
8169                 problem on X where a window might have its handle created (and be
8170                 visible) while the window is unmapped.  calling XConfigureWindow
8171                 on an unmapped window is bad, and generates X errors.
8172
8173         2007-02-13  Chris Toshok  <toshok@ximian.com>
8174
8175                 * Control.cs (CreateHandle): don't loop over our children setting
8176                 their parent here.  do it when in WndProc when we're shown.
8177                 (UpdateChildrenZOrder): make this internal so we can call it from
8178                 ScrollableControl.
8179                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
8180                 creating its handle.  Also, remove the calls to PerformLayout from
8181                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
8182                 OnVisibleChanged only seems to be called directly here for the
8183                 toplevel control.  It's propagated down the window hierarchy by
8184                 calls to child.OnParentVisibleChanged.
8185                 (OnVisibleChanged): don't do layout here - it's done (oddly
8186                 enough, according to a glance at stack traces on ms.net..) in
8187                 ScrollableControl.
8188                 
8189                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
8190                 z order of our children before calling PerformLayout.
8191
8192         2007-02-12  Chris Toshok  <toshok@ximian.com>
8193
8194                 [big change, fixes #80020]
8195                 
8196                 * AccessibleObject.cs: we need to make owner internal again to fix
8197                 some of ControlAccessibleObject.
8198
8199                 * Control.cs: lots of changes here.  add support for WM_CREATE,
8200                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
8201                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
8202                 we create child controls.  leave the MonoTODO's for the
8203                 accessibility calls, but fix the exceptions so the tests pass.
8204
8205                 Add the InvalidOperationExceptions to Invoke methods, and remove a
8206                 couple of InvokeInternal methods we aren't using.
8207                 
8208                 Also, add a couple of CreateHandle calls in places where we know
8209                 the handles are being created but our code doesn't reference
8210                 .Handle.
8211
8212                 Make SetVisibleCore call OnVisibleChange if the handle isn't
8213                 created.  If the handle is created, we rely on XplatUI.SetVisible
8214                 generating the event synchronously.
8215                 
8216                 Lastly, make sure we don't use this.Handle inside CreateHandle,
8217                 because we can call back into client (and that code can dispose of
8218                 the control).
8219
8220                 * XplatUIStructs.cs: misc/cleanup.
8221
8222                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
8223                 although we don't populate the wParam properly.
8224                 (CreateWindow): generate WM_CREATE.
8225                 (MapWindow,UnmapWindow): make these calls synchronous, at great
8226                 performance expense (particularly in the unmap case), to match
8227                 win32 behavior.
8228
8229                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
8230                 to call it.
8231                 (set_MdiParent): don't recreate the handle unless it's been
8232                 created already.
8233                 
8234                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
8235                 it's created.
8236
8237                 * NativeWindow.cs: this is probably the weirdest part of the
8238                 patch.  We need a way to link up the window being created to the
8239                 WM_CREATE message.  Since we can only be creating one window at a
8240                 time on a given thread, we keep track of a per-thread reference so
8241                 we can dispatch it properly.  We also need to keep track of the
8242                 Hwnd currently being created so that the win32 backend doesn't
8243                 have problems.
8244                 
8245                 * XplatUIWin32.cs: a similar change to the one we made in
8246                 NativeWindow.cs.
8247
8248 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
8249
8250         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
8251         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
8252         to draw the menu shortcut string.
8253
8254 2007-03-07  Jackson Harper  <jackson@ximian.com>
8255
8256         * TreeNode.cs: Add the 2.0 collapse method.
8257
8258 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8259
8260         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
8261
8262 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8263
8264         * DataGridView.cs: Change DataSource will clear column and row
8265         lists. Call Invalidate() to reflect DataSource change.
8266
8267 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8268
8269         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
8270         and a new row is added to it.
8271
8272 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
8273
8274         * DataGridView.cs: Add columns when DataSource is en empty list but
8275         is a System.Data.DataView (from a System.Data.DataTable).
8276
8277 2007-03-06  Andreia Gaita  <avidigal@novell.com>
8278
8279         * Label.cs: Implement AutoEllipsis (2.0)
8280
8281 2007-03-06  Jackson Harper  <jackson@ximian.com>
8282
8283         * TreeView.cs: Implement 2.0 TopNode setter property.
8284         - Use a local var instead of the skipped_nodes field for computing
8285         how many nodes to skip.  Otherwise we won't scroll because the
8286         valuechanged handler checks if skipped_nodes is equal to the new
8287         value.
8288         - Implement 2.0 Sort method.
8289         - Add useless 2.0 DoubleBuffer property
8290         - Implement 2.0 LineColors property.  Lets you change the color of
8291         the lines in the tree. Terribly useful for creating non cohesive
8292         desktops.
8293         - Implement 2.0 image key feature.
8294
8295 2007-03-06  Jackson Harper  <jackson@ximian.com>
8296
8297         * TreeView.cs: We can't get the bounds of the nodes before raising
8298         the AfterSelect event, because that event could change the node's
8299         bounds (scrolling, font change, etc).
8300
8301 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8302
8303         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
8304         * Form.cs: Don't recreate handle when creating FormWindowManager, just
8305           update window styles. In CreateParams us VisibleInternal instead of
8306           VIsible to get the actual visible flag set for this form.
8307         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
8308           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
8309           handle the case when the form is already maximized, in which case
8310           it should be restored. Fixes #81043.
8311
8312 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8313
8314         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
8315
8316 2007-03-05  Jackson Harper  <jackson@ximian.com>
8317
8318         * TreeViewHitTestInfo.cs: implement.
8319
8320 2007-03-05  Jackson Harper  <jackson@ximian.com>
8321
8322         * InternalWindowManager.cs: class status fix.
8323
8324 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8325
8326         * InternalWindowManager.cs: All windows that have a parent
8327         are confined to their parent when they're being moved.
8328         Fixes #80822.
8329
8330 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
8331
8332         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
8333         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
8334
8335 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8336
8337         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
8338           buttons invisible before deciding which ones should be visible
8339           (fixes minimize/maximize buttons showing up in toolwindows). Remove
8340           an unused variable.
8341         * InternalWindowManager.cs: Remove warning.
8342
8343 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8344
8345         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
8346         to throw an InvalidOperationException is virtual mode is being used.
8347
8348 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
8349
8350         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
8351         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
8352         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
8353         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8354         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
8355         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
8356
8357 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8358
8359         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
8360           driver.KeyboardDelay from XplatUI.KeyboardDelay 
8361         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
8362           (patch by Sergey Volk)
8363
8364 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8365
8366         * ToolWindowManager.cs: Added, contains logic for
8367           tool windows.
8368         * CreateParams.cs: Add a few helper methods and an
8369           internal variable to know which control the CreateParams belongs
8370           to.
8371         * Control.cs: Call Form.ChangingParent when the
8372           parent is about to be changed.
8373         * XplatUIX11.cs: DeriveStyles (): Set
8374           caption_height for all windows that have captions and are children.
8375           Update to use ToolWindowManager instead of InternalWindowManager
8376           for ToolWindows.
8377         * XplatUIWin32.cs: Set fake window styles for all
8378           windows that have window managers.
8379         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
8380           now duplicated for mdi windows when they are
8381           maximized, first for the buttons the window itself has, then for
8382           the buttons that appear in the menu bar. Makes things a little
8383           easier). Updated UpdateWindowDecorations, SetWindowState and the
8384           mouse eventhandlers accordingly.
8385         * Form.cs: Add ChangingParent (), contains the
8386           logic of what should happen when the parent changes. In MdiParent
8387           don't set things that ChangingParent () is doing. When handling
8388           WM_CLOSE, we can close the form if there are any other modal forms
8389           and the current form is a descendent of the modal form.
8390         * InternalWindowManager.cs: A lot of refactoring,
8391           the title buttons are now extracted to a separate container class
8392           that takes care of all button code (clicks, tooltips, etc). Moved
8393           Iconic|Maximized|Normal Bounds properties to this class from
8394           MdiWindowManager, so that the window state logic can succeed for
8395           other than mdi wm's. Implemented general window state change logic.
8396           Moved CreateButtons to ThemeWin32Classic, since the theme might
8397           override which buttons are available when as well as the exact
8398           location.
8399         * FormWindowManager.cs: Added, contains logic for
8400           normal forms.
8401         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
8402           which buttons go where (and if they are at all visible). 
8403           Removed special handling of maximized windows, since they aren't special. 
8404           In DrawManagedWindowDecorations don't try to draw the text if it is
8405           empty.
8406         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
8407           use whatever the wm gives us.
8408
8409 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
8410
8411         * ButtonBase.cs: Add 2.0 properties.
8412         * Button.cs: Override Draw for 2.0.
8413         * Control.cs: Add Entered and Selected properties.
8414         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
8415         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
8416         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
8417         buttons.
8418         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
8419
8420 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
8421
8422         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
8423
8424 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
8425
8426         * XplatUIWin32.cs: Register a new class with Windows each time we get
8427         a new ClassStyle.  [Fixes bugs #79432, #80817]
8428         * Controls.cs: Set the correct ClassStyle in CreateParams.
8429         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
8430
8431 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
8432
8433         * ListView.cs: Add fireEvent argument to ReorderColumn since the
8434         ColumnReordered event must not be signaled when modifying DisplayIndex
8435         of a ColumnHeader. Added internal ReorderColumns method which takes
8436         care of drawing, and updating the internal DisplayIndex of the
8437         ColumnHeader. Added AddColumn method which is invoked from
8438         ColumnHeaderCollection when adding or inserting columns, and which
8439         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
8440         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
8441         Recalculated dispay indices after removing a ColumnHeader.
8442         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
8443         match MS. Allows last display index to be returned after ListView
8444         is disposed. Update actual location of ColumnHeader when DisplayIndex
8445         is modified.
8446
8447 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
8448
8449         * LinkLabel.cs: Improve CalcTrimRectangle.
8450         
8451         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
8452
8453 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
8454
8455         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
8456         get rectangle as a result value.
8457
8458 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
8459
8460         * LinkLabel.cs: Theres some diferences between rectangle return from 
8461         MeasureCharacterRanges and the area used for DrawString to fix this 
8462         CalcMeasurementFactor method was created, it calcules the diferences
8463         to be use later to adjust rectangle in draw operations. Fixes #80473.
8464         
8465         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
8466         to adjust draw rectangle.
8467
8468 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
8469
8470         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
8471         text and some other changes to reduce and optimize source code.
8472
8473 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
8474
8475         * RadioButton.cs: Implement 2.0 event.
8476         * RelatedImageListAttribute.cs: Implement new class.
8477
8478 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
8479
8480         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
8481
8482 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
8483
8484         * CheckBox.cs: Implement 2.0 functionality.
8485
8486 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8487
8488         * ListView.cs: Refactor Add and AddRange methods of
8489         ListViewItemCollection, to not update the ListView
8490         everytime an item is added in AddRange. Also move the update
8491         code to a new CollectionChanged method, and call it
8492         from other methods that need it as well (this should also fix some
8493         bugs when Sorting is used).
8494
8495 2007-02-27  Jackson Harper  <jackson@ximian.com>
8496
8497         * TextControl.cs: Try to never let the caret stay in a non-text
8498         tag.
8499         * TextBoxBase.cs: Update the caret.
8500
8501 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
8502
8503         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
8504         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
8505         delete POINT structure, duplicate of one in XplatUIStructs.
8506         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
8507
8508 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
8509
8510         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
8511         edit box since otherwise the Label would immediately be set (even if
8512         the user did not modify the label). In OnKeyDown set Handled to true
8513         if Return or Escape was pressed. In ColumnHeaderCollection unlink
8514         columns that are to be removed. In ListViewItemCollection unlink items
8515         that are to be removed.
8516
8517 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
8518
8519         * TextRenderer.cs: If we set a GDI clip region, we need to clear
8520         it when we are done.  [Fixes bug #80949]
8521
8522 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8523
8524         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
8525
8526 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8527
8528         * ListView.cs: I forgot to commit the changes for ListView 
8529         in my previous patch.
8530
8531 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8532
8533         * Clipboard.cs: Partially implement an overload of SetDataObject.
8534         * Form.cs: Implement ShowWithoutActivation.
8535         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
8536
8537 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8538
8539         This is a first set of changes to make the Virtual mode works,
8540         by avoiding the retrieval of ListViewItem instances until
8541         draw time.
8542
8543         * ListView.cs: Store item position in the ListView instead of the
8544         ListViewItem, this way we don't request the Bounds property of
8545         ListViewItem inside the ListView calculations, as well as cache the item
8546         size in item_size field. Store indexes instead of ListViewItem
8547         instances in the matrix used by icon view. Add a ItemMatrixLocation
8548         struct to hold the row and col info of the matrix info.
8549
8550         * ListViewItem.cs: Don't store the location anymore, and only cache
8551         the rectangles for GetBounds. Use the ListView.GetItemLocation
8552         method to retrieve the actual location.
8553
8554 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8555
8556         * TextRenderer.cs: Add clipping support, thanks to George.
8557         [Fixes bug #80949]
8558
8559 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8560
8561         * ListViewItem.cs: Cancel label edit when item is removed from 
8562         ListView.
8563         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
8564         event before the edit textbox is displayed.  Added CancelEdit method
8565         which is used end to editing while ignoring the value set by the
8566         user. In EndEdit, set focus to ListView to avoid losing focus to
8567         other controls. In ListViewItemCollection.Clear, cancel editing of
8568         any of the items.  In Remove, cancel editing of item being removed.
8569         Avoid udplicate code by modifing RemoveAt to invoke Remove.
8570
8571 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8572
8573         * FileDialog.cs: Update FSEntry when move is successful. Fixes
8574         bug #80948.  
8575
8576 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8577
8578         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
8579         compatible with non X11 systems. Fixes #80901.
8580
8581 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8582
8583         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
8584         whether the item should be unselected and reselect. We do no want this
8585         when we're starting to edit the label. Do not fire the 
8586         SelectedIndexChanged event from ListView when its already been fired
8587         by modifying ListViewItem.Selected. Fixes bug #80943.
8588
8589 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8590
8591         * TextRenderer.cs: Previos commit logic was backwards.
8592
8593 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8594
8595         * TextRenderer.cs: Don't add padding on MeasureText if we were
8596         sent the NoPadding flag.
8597
8598 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8599
8600         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
8601         after DrawButton. To prevent image overlaps button borders SetClip and 
8602         ResetClip added before and after draw image. Fixes #79129.
8603
8604 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8605
8606         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
8607         window size, it fix problem when you run under win32 that theres
8608         Size diferent than ClientSize. Also fix controls size and positions
8609         to mimic Win32. Fixes #80837.
8610
8611 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
8612
8613         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
8614         menu area to fix some problems for non X11 systems. Fixes #80613.
8615
8616 2007-02-22  Jackson Harper  <jackson@ximian.com>
8617
8618         * TreeNode.cs: When a node is expanded, set its is_expanded flag
8619         even if it doesn't have any children.
8620
8621 2007-02-22  Jackson Harper  <jackson@ximian.com>
8622
8623         * TreeView.cs: Calculate the top node 'on the fly', this
8624         eliminates issues where you need to click on the tree before
8625         scrolling it to get the top node computed correctly.
8626         * TreeNodeCollection.cs: We don't need to mess with the top node
8627         anymore.
8628
8629 2007-02-22  Jackson Harper  <jackson@ximian.com>
8630
8631         * DataGridViewRow.cs: Fix typo so height can actually be set.
8632         Patch by Peter Grimm.
8633
8634 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8635
8636         * FileDialog.cs: Fixed support for renaming files and directories.
8637         * ListView.cs: Do not lose focus when edit is canceled. Process
8638         Escape as regular key (to prevent closing of dialogs).
8639
8640 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8641
8642         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
8643         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
8644
8645 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8646
8647         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
8648         did not modify label.
8649         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
8650         modified the text. Reset Label when user presses Escape in edit mode.
8651         Move focus to ListView after having cancelled or finished editing the
8652         label.
8653
8654 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
8655
8656         * ComboBox.cs: Removed unnecessary initializations. Marked items field
8657         private. Clear textbox when Text is set to null and SelectedIndex is
8658         already -1.
8659         * FileDialog.cs: Removed unnecessary initializations. Removed 
8660         workarounds for ComboBox bugs that are now fixed. Modified
8661         DefaultExt, InitialDirectory and Title property to change null to
8662         zero-length string in getters. Avoid directly accessing fields.
8663
8664 2007-02-20  Jackson Harper  <jackson@ximian.com>
8665
8666         * TextControl.cs: Remove RecalAlignments call, that was some
8667         debugging leftovers.
8668         - Don't use the line indent when we shouldn't.
8669         * RichTextBox.cs: Add support for paragraph left indents.
8670
8671 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8672
8673         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
8674         Seems like the class status pages doesn't catch params differences.
8675
8676 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
8677
8678         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
8679
8680 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
8681
8682         * ComboBox.cs: Setting Text should have no effect if item text of
8683         selected item exactly matches value. First lookup text using
8684         case-sensitive comparison, and fallback to case-insensitive comparison.
8685         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
8686         allow startIndex to be last index. Changed ArgumentOutOfRangeException
8687         paramname to match MS. Restart from first item if string is not found
8688         after startIndex. Fixed paramname of ArgumentNullException that is
8689         thrown for null value in ObjectCollection.Contains.
8690
8691 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
8692
8693         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
8694
8695 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8696
8697         * ListControl.cs: In SelectedValue use value.Equals to compare for
8698         equality instead of ==, otherwise it will fail for strings.
8699         Fixes #80794.
8700
8701 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8702         
8703         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
8704         since the caret won't show up unless ShowSelection is true. 
8705         Fixes #80795.
8706
8707 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8708
8709         * Application.cs: When disabling all forms but the main form, do not
8710           disable any descendants of the main form (such as mdi children or
8711           other parented forms). Fixes #80822 on Windows.
8712         * Form.cs: If we have a parent, set the WS_CHILD style.
8713         * Control.cs: Update the window styles if the control whose parent has
8714           changed is a form (the WS_CHILD style has to be switched).
8715
8716 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
8717
8718         * XplatUIStructs.cs: MsgUIState structure added.
8719
8720 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
8721
8722         * FileDialog.cs: Removed need for separate fileName field. On 2.0
8723         profile, do not check filename(s) for illegal character if filename(s)
8724         were set non-interactively but always check on 1.0 profile. Fixed NRE
8725          in DefaultExt and only strip off first leading dot. Improve exception
8726         message when invalid Filter is set. Do not ignore InitialDirectory if
8727         it does no exist. Store specified Title, and if empty use default
8728         title (depending on type of dialog). Added an internal DialogTitle 
8729         property for retrieving dialog title. Fixed logic of displayed dir to
8730         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
8731         string as its buggy.
8732         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
8733         FileName is a zero-length string (it can never be null). Override 
8734         DialogTitle property to set default title of dialog box.
8735         * SaveFileDialog.cs: Override DialogTitle property to set default
8736         title of dialog box.
8737
8738 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
8739
8740         * FileDialog.cs: Modify default text of filename and filetype labels
8741         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
8742         after we've updated the SelectedIndex. Fixes part of bug #80887.
8743         * SaveFileDialog.cs: Set text of filetype label.
8744
8745 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8746
8747         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
8748         label field. Needed by latest Jackson's fixes for ListView.
8749
8750 2007-02-16  Andreia Gaita  <avidigal@novell.com>
8751
8752         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
8753         print preview images.
8754
8755 2007-02-16  Jackson Harper  <jackson@ximian.com>
8756
8757         * ListView.cs: Make AfterLabelEdit work correctly.
8758         * FileDialog.cs: After changing the name of the folder, we have to
8759         make sure that it is created, or that we pop up an error because
8760         it already exists.
8761
8762 2007-02-16  Jackson Harper  <jackson@ximian.com>
8763
8764         * X11Dnd.cs: Implement aliases on mime handlers, so things like
8765         System.String are mapped to text.
8766         - Handle dataobjects, getting all the possible formats out of them
8767         - We dont need the drag event args before we give feedback. This
8768         allows feedback cursors to be immediate before selections have
8769         been converted.
8770
8771 2007-02-16  Jackson Harper  <jackson@ximian.com>
8772
8773         * TextBoxBase.cs: Modified the method for inserting images to
8774         taking a line and position instead of tag and position.
8775         * RichTextBox.cs: Handle PngBlip data by inserting the png image
8776         into the RTF file.
8777         * TextControl.cs: Allow images to be inserted as the first tag of
8778         a line.
8779         - Fix some off by one issues when we assume the first tag is a
8780         text tag, not an image tag.
8781
8782 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8783
8784         * ListView.cs: Set focus to ListView when ItemControl gets a
8785         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
8786         Fixes part of #80467.
8787
8788 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8789
8790         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
8791           validate Text input (if null or empty string reset Value to default
8792           value). Fixes #80830.
8793
8794 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8795
8796         * ListView.cs: Set owner as null for columns and items when
8797         Dispose is invoked. Fixes #80607.
8798
8799 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
8800
8801         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
8802         showing DropDowns, don't show a Grip when doing Flow layout.
8803         [This fixes the toolbox in PDN 2.72.]
8804         * ToolStripItem.cs: Add Anchor property and some internal properties to
8805         reduces needed changes to FlowLayout.
8806         * ToolStripOverflow.cs: Remove unused variable.
8807         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
8808         use it in the layout calculations.
8809
8810 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8811
8812         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
8813         reported in #79640.
8814         
8815         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
8816         size calculation.
8817
8818 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8819
8820         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
8821         MeasureString format, it can make button very large in some cases, it is
8822         strange but is what win32 do.
8823
8824 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8825
8826         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
8827         size calculation.
8828
8829         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
8830         rendering, the value is based on MenuAccessKeysUnderlined.
8831
8832 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8833
8834         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
8835         for most themes.
8836         
8837         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
8838         
8839         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
8840         and use MenuAccessKeysUnderlined instead.
8841
8842 2007-02-13  Andreia Gaita  <avidigal@novell.com>
8843
8844         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
8845         A selected control would not get a Focus call if:
8846                 - the default active control of the container is the same as
8847                   the one that was selected
8848                 - we are switching from one container to another
8849         Under these conditions, the container being selected already has
8850         an active_control, which is the same as the one being activated, 
8851         so set_ActiveControl would always return and not send the Focus
8852         call. Fix to check if the currently active control of the container
8853         is actually focused.
8854
8855 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
8856
8857         * StatusStrip.cs: Implement the spring layout.
8858         * ToolStripControlHost.cs: Make sure the hosted control's visibility
8859         always matches the host.
8860         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
8861         and TextAfterImage.
8862
8863 2007-02-13  Andreia Gaita  <avidigal@novell.com>
8864
8865         * Control.cs: Code reorganization only.
8866           - Reorganize the WndProc cases so that each case has it's own handling method, 
8867           to help with the no-line-numbering stack traces.
8868           - Formatting changes (it's vstudio's fault, really :p)
8869
8870 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8871
8872         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
8873           Thread.CurrentUICulture to match DateTimePicker's (and MS)
8874           behaviour.
8875
8876 2007-02-12  Jackson Harper  <jackson@ximian.com>
8877
8878         * RichTextBox.cs:
8879         * TextBox.cs: By default we have a non multiline document
8880         - use the multiline property instead of the internal variable
8881         * TextBoxBase.cs: Treat multiline and non multiline the same in
8882         most places.
8883         - Use the documents multiline flag instead of tracking it ourself
8884         * TextControl.cs: Attempt at getting multiline to match MS
8885         behavior.  Lines now track an offset, which is either their X or Y
8886         offset depending on whether or not we are in multiline mode.
8887         - Update all the methods to understand that lines have an X value.
8888         - Fix crash in Undo::Duplicate when empty lines are deleted.
8889
8890 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
8891
8892         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
8893         code moved to properties PreferredHeight and PreferredWidth. It solve the
8894         all problems when preferred sizes must be recalculated. Fixes #80801.
8895
8896 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
8897
8898         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
8899         font height when compatible_text_rendering is false. Partially fix #80801.
8900
8901 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8902
8903         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
8904
8905 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8906
8907         * Form.cs: Improved exception messages in ShowDialog.
8908
8909 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8910
8911         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
8912         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
8913         if not set. Fixes bug #80764. Avoid accessing current_settings field
8914         directly.
8915
8916 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
8917
8918         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
8919         false.
8920
8921         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
8922         public in 2.0 and for easy maintenance and dont break compatibility it is 
8923         internal in 1.1.
8924         
8925 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8926
8927         * ToolStripItem.cs: Implement using images from ImageList.
8928
8929 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8930
8931         * DateTimePicker.cs: Change default date-formatting culture from
8932           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
8933           seems to be the way MS does it.
8934
8935 2007-02-08  Andreia Gaita  <avidigal@novell.com>
8936
8937         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
8938         (the 6 was cut off on the right side)
8939
8940 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8941
8942         * Form.cs: Tell MenuStrips to close when the form is clicked.
8943         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
8944         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
8945         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
8946         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
8947         support for Overflow, where items that do not fit are automatically
8948         reparented to a drop down menu.
8949         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
8950         Also: fixes bug #80747.
8951
8952 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8953
8954         * ComboBox.cs: Remove warning (unused code).
8955         * ScrollableControl.cs: Remove warning for 1.1 profile.
8956
8957 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8958
8959         * Form.cs: Remove a warning.
8960
8961 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8962
8963         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
8964           'g' specifier, not documented anywhere, but seems to always show up
8965           as a single space (might have something to do with the DateTime 'g'
8966           specifier, which is the era format, but since DateTimePicker can't
8967           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
8968           won't crash if the format has an unmatched quote. Now shows
8969           single-character formats correctly. Fixes #80744.
8970
8971 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8972
8973         * StatusStrip.cs: Stretch property needs to call base.Stretch,
8974         not this.Stretch to fix stack overflow. [Fixes bug #80760]
8975
8976 2007-02-07  Chris Toshok  <toshok@ximian.com>
8977
8978         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
8979         background color.  it overwrites the background image we've
8980         already painted.  Fixes #80599.
8981
8982 2007-02-07  Chris Toshok  <toshok@ximian.com>
8983
8984         * DataGrid.cs: return immediately from Edit() when there are no
8985         columns.  Fixes #80662.
8986
8987 2007-02-07  Chris Toshok  <toshok@ximian.com>
8988
8989         * MessageBox.cs: fix #80625.  don't always show the Help button in
8990         2.0.  use the displayHelpButton parameter to determine if we
8991         should show it. Also, make the internal show_help field private.
8992
8993 2007-02-07  Chris Toshok  <toshok@ximian.com>
8994
8995         * Control.cs (SetVisibleCore): check in the proposed patch for
8996         80604, and set is_visible before calling CreateControl.
8997
8998 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
8999
9000         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
9001         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
9002         on it.
9003
9004 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
9005
9006         * MenuAPI.cs: hotkey_active internal field added, it is required because
9007         we need to know when hotkeys must be draw, before this change a keystate
9008         Navigating was used but we can have menu in navigating state without
9009         hotkeys. Fixes #80694.
9010         
9011         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
9012
9013 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9014
9015         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
9016           corresponding events and methods to be internal for 1.1 profile and
9017           public for 2.0 profile (required by SizeGrip).
9018         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
9019           implicit control list). Don't set the size nor the location of the
9020           SizeGrip anymore as it's not needed.
9021         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
9022           draw directly on the captured control (fixes #80656). Removed
9023           ShowGrip (it wasn't used anywhere), redraw (always true), added
9024           GetDefaultSize and GetDefaultRectangle to calculate defaults.
9025         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
9026           be called from SizeGrip.
9027
9028 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9029
9030         * Timer.cs: Throw ArgumentException if Interval <= 0.
9031
9032 2007-02-05  Jackson Harper  <jackson@ximian.com>
9033
9034         * TreeView.cs: We need to check scrollbar visibility when window
9035         visibility is updated, because non visible trees don't ever add
9036         scrollbars.
9037         * Cursor.cs: We want the override cursor to be reset to NULL when
9038         we set current cursor to the default cursor.
9039
9040 2007-02-05  Jackson Harper  <jackson@ximian.com>
9041
9042         * TextControl.cs: Don't have crlfs when we are non multiline.
9043         - Consolidate the line position.
9044
9045 2007-02-05  Jackson Harper  <jackson@ximian.com>
9046
9047         * X11Keyboard.cs: BACK+CTRL gets a special char code.
9048
9049 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9050
9051         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
9052           handling LeaveNotify->NotifyUngrab in order to send
9053           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
9054           after calling XUngrabPointer, so we call WindowUngrabbed directly
9055           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
9056         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
9057           MouseCaptureChanged correctly. Also create handles if changing
9058           Capture (matches MS behaviour).
9059
9060 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9061
9062         * SizeGrip.cs: Make the last change 2.0 only.
9063
9064 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9065
9066         * SizeGrip.cs: If resizing and the capture is lost, revert any size
9067           changes to initial size (fixes #80597).
9068
9069 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9070
9071         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
9072
9073 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9074
9075         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
9076           background) and only allow dragging if enabled. This way the
9077           sizegrip can be used to fill the open square that otherwise would
9078           have been shown in the bottom right corner of ScrollableControl
9079           when ScrollableControl is not suppose to support sizing.
9080         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
9081           sizegrip is shown and enabled, and hook up with necessary events.
9082
9083 2007-02-01  Chris Toshok  <toshok@ximian.com>
9084
9085         * DataGridTextBoxColumn.cs: clean up the
9086         GetFormattedString/GetColumnValueAtRow combination of functions.
9087         Also fix UpdateUI, and the initial state of
9088         IsInEditOrNavigateMode.
9089
9090         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
9091         aren't supposed to scroll the textbox here, we're supposed to
9092         scroll the datagrid.
9093
9094 2007-02-01  Chris Toshok  <toshok@ximian.com>
9095
9096         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
9097         setting the position.
9098
9099 2007-02-01  Chris Toshok  <toshok@ximian.com>
9100
9101         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
9102         here, since the most recent focus fixes keep us from generating
9103         the Leave event when our textbox gets focus.
9104         (Edit): we should be passing null for the column style's
9105         instantText parameter.
9106         
9107 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
9108
9109         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
9110         raised.  Fixes menu text/icons not showing up in PDN.
9111
9112 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9113
9114         * Control.cs: Remove code in constructor that makes every
9115         control with WS_CHILD set have initial location -1, -1.
9116
9117 2007-01-31  Jackson Harper  <jackson@ximian.com>
9118
9119         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
9120         XplatUIX11.
9121         * XplatUIX11.cs: Give teh keyboard to teh dnd.
9122
9123 2007-01-31  Jackson Harper  <jackson@ximian.com>
9124
9125         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
9126         - Remove some debug code.
9127
9128 2007-01-31  Jackson Harper  <jackson@ximian.com>
9129
9130         * XplatUIX11.cs: If you set the override cursor during a grab, it
9131         should actually override the grab cursor.  This comes into play
9132         when you are setting custom cursors in a DND feedback method.
9133
9134 2007-01-31  Jackson Harper  <jackson@ximian.com>
9135
9136         * X11Dnd.cs: Add support for handling the QueryContinue and
9137         GiveFeedback events.
9138         - Cancel drag and drop actions when the escape key is clicked.
9139         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
9140         can handle the ESCAPE key.
9141         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
9142         done when dnd events are continued after the button is released.
9143         - Add a new helper method so that dnd can translate key events.
9144
9145 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
9146
9147         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
9148         make it more obvious what is happening.
9149
9150 2007-01-30  Jackson Harper  <jackson@ximian.com>
9151
9152         * XplatUIX11.cs: Don't break when handling button release in drag
9153         and drop operations. We need that BUTTONUP message to get through
9154         so capture is released.
9155         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
9156         this is handled automatically when the mouse is down.
9157
9158 2007-01-30  Jackson Harper  <jackson@ximian.com>
9159
9160         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
9161         is closed, so we need to make sure that we aren't changing the
9162         dialog result when the OK (Open or Save) button has been clicked
9163         and we are closing the window ourselves.  Note we don't need to
9164         worry about the cache being written in this case, because it was
9165         already done in the previous FilOk call.
9166
9167 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9168         
9169         * DateTimePicker.cs: Remove a warning.
9170         * ComboBox.cs: Remove a couple of warnings.
9171
9172 2007-01-29  Chris Toshok  <toshok@ximian.com>
9173
9174         * XplatUIX11.cs: don't crash, and remove the icon if the user has
9175         set one, if SetIcon is passed a null icon.
9176
9177 2007-01-29  Andreia Gaita  <avidigal@novell.com>
9178
9179         * TextBox.cs: Redraw when the password characters changes
9180         * TextControl.cs: Check if textbox has a password char and draw 
9181         a line of password chars instead of the text in the line. LineTag gets 
9182         an extra Draw() method which allows document.Draw to override the text 
9183         that will be drawn. Removes 1024 char limitation on length of passworded 
9184         lines.
9185
9186 2007-01-29  Jackson Harper  <jackson@ximian.com>
9187
9188         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
9189         single chars is not.
9190
9191 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
9192
9193         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
9194         one pixel.  Fix a StackOverflowException caused by an overload wrongly
9195         calling itself.
9196
9197 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
9198
9199         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
9200         also remove ProcessArrowKey and put the code inside ProcessKeys.
9201
9202 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
9203
9204         * PaddingConverter.cs: Added.
9205
9206 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9207         
9208         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
9209         ShowPanels is false (fixes #80600). Only draw up to 127 characters
9210         of text (fixes #80601). For panels clip the text to draw to the
9211         panel (fixes #80603).
9212
9213 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9214
9215         * ComboBox.cs: Fixed implementation of ResetText.
9216
9217 2007-01-25  Jackson Harper  <jackson@ximian.com>
9218
9219         * TextControl.cs: For the last char of a line we need to use the
9220         line size, not that chars width, since it won't actually be
9221         computed since the right side of a char is based on the start of
9222         the left side of the next char, and the next char does not exist.
9223
9224 2007-01-25  Chris Toshok  <toshok@ximian.com>
9225
9226         * Splitter.cs: fix the new unit tests, and reindent some switch
9227         statements.
9228
9229 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9230
9231         * ComboBox.cs: Implemented 2.0 methods and events.
9232         * TextBoxBase.cs: Added OnTextUpdate, so that
9233         ComboBox.ComboTextBox can inform ComboBox of it.
9234
9235 2007-01-25  Jackson Harper  <jackson@ximian.com>
9236
9237         * TextControl.cs: Respect ShowSelection when deciding whether or
9238         not to display the caret, this allows comboboxes to have carets
9239         when the combotextbox does not have focus.
9240
9241 2007-01-25  Jackson Harper  <jackson@ximian.com>
9242
9243         * TextControl.cs: Add a Suspend/Resume for updating, basically the
9244         same as the Suspend/Resume for recalc, except this will do actual
9245         Invalidates.
9246         - New Undo manager, works much like the MS version.
9247         - Implemented Redo
9248         * TextBoxBase.cs: The Cut operation is undoable.
9249
9250 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9251         
9252         * TextBoxBase.cs: Don't antialias text. Makes it look way better
9253         on Windows (no difference on Linux).    
9254
9255 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9256
9257         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
9258         we don't want to activate any windows. Fixes #79433.
9259
9260 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
9261
9262         - ButtonBase.cs: Fix capitalization of parameter: disposing.
9263         [Fixes bug #80609]
9264
9265 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
9266
9267         * FileDialog.cs:
9268         - Move to using System.ComponentModel.EventHandlerList
9269         - Replace Refresh with Invalidate
9270         - Clear the mime filecache on closing
9271         - Some other memory reducing work. After beeing closed FD now uses
9272           only about 300 KB for the fdo mime stuff plus the memory of the
9273           cached icons.
9274         * Mime.cs: Changed coding style and removed unnecessary commented
9275         code. Some more memory memory reducing work.
9276
9277 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9278
9279         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
9280         a few other missing 2.0 properties.
9281         * Theme.cs: Added DrawFlatStyleComboBox.
9282         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
9283
9284 2007-01-24  Chris Toshok  <toshok@ximian.com>
9285
9286         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
9287         wake_waiting flag, not just when there's data to be read.  if we
9288         don't, then future wakeup's won't reach us and we'll be doomed to
9289         wait for the entire 1 second timeout forever (unless there are X
9290         events to be had).
9291
9292 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
9293
9294         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
9295         until you pass Items.Count, not Items.Count - 1 like 1.1.
9296
9297 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
9298
9299         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
9300
9301 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
9302
9303         * ToolStripContainer.cs: The recent Dock fix exposed that I was
9304         adding the panels in the wrong order.
9305
9306 2007-01-24  Jackson Harper  <jackson@ximian.com>
9307
9308         * TextBoxBase.cs: When we move the caret we also need to move the
9309         selection, this fixes some random crashing after doing select
9310         text, unselect, delete a char, paste.
9311
9312 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9313
9314         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
9315
9316 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
9317
9318         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
9319         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
9320         * ToolBar.cs: Force redraw in BackgroundImageChanged.
9321
9322 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
9323
9324         * ToolBar.cs:
9325         - Implement support for vertical toolbars. Fixes #80539;
9326         - Call LayoutToolBar when resize, it fix some other problems in layout.
9327         - Rename requested_height to requested_size, as we can have width on it
9328         when toolbar is vertical.
9329         - Create a private property "Vertical" that uses Dock to verify when 
9330         toolbar is vertical or not.
9331         - Set ControlStyles when change Dock property.
9332         - Refactory in LayoutToolBar to have better variables names and to support
9333         vertical toolbars.
9334         - Fixes default value for ButtonSize when button count is equal zero, size
9335         must be (39, 36) test case writed.
9336
9337 2007-01-23  Chris Toshok  <toshok@ximian.com>
9338
9339         * Control.cs: fix the checks so that they work correctly for mdi
9340         parents/children.
9341
9342 2007-01-23  Chris Toshok  <toshok@ximian.com>
9343
9344         * Control.cs: ControlCollection seems to have super-secret
9345         abstraction breaking knowledge of Mdi containers.  allow MdiClient
9346         to add toplevel controls.
9347
9348 2007-01-23  Chris Toshok  <toshok@ximian.com>
9349
9350         * Control.cs: throw an ArgumentException if a toplevel control is
9351         added to our control collection from ControlCollection.Add, as
9352         well as from ControlCollection.IList.Add.  This fixes the
9353         ControlSetTopLevelTest.TestTopLevelAdd unit test.
9354
9355         Also, in ControlCollection.IList.Add, don't through an
9356         ArgumentNullException, throw an ArgumentException, when value ==
9357         null.  This matches MS.
9358
9359 2007-01-23  Chris Toshok  <toshok@ximian.com>
9360
9361         * BindingSource.cs: initial, incomplete, implementation of
9362         BindingSource.
9363
9364 2007-01-23  Jackson Harper  <jackson@ximian.com>
9365
9366         * TextControl.cs:
9367         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
9368         that I can fix a broken unit test (TextBoxTest::ClearUndo)
9369         
9370 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
9371
9372         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
9373
9374 2007-01-23  Andreia Gaita  <avidigal@novell.com>
9375
9376         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
9377         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
9378         IndexOfKey() for 2.0
9379
9380 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9381
9382         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
9383         to prevent it from changing z-order.
9384         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
9385         leave UI updates in MdiWindowManager.
9386         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
9387         1 sized (NC handling goes weird on Linux otherwise).
9388         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
9389         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
9390         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
9391         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
9392         and SetWindowState(s) to allow for changing the size of an activated child
9393         before activating it (reduces a lot of flicker).
9394
9395 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
9396
9397         * Form.cs: Changing FormBorderStyle has different semantics based
9398         on whether the Form is visible or not.  If not visible, don't change
9399         the Size.  But InvalidateNC needs to be called to force the window
9400         to pick up the changes and redraw itself.  [Fixes bug #80574]
9401
9402 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
9403
9404         [Moma work]
9405         * ContainerControl.cs: ProcessCmdKey.
9406         * ErrorProvider.cs: new constructor.
9407         * Form.cs: fix AutoValidateEvent compiler warning.
9408         * Label.cs: fix OnAutoSizeChanged compiler warning.
9409         * MenuStrip.cs: fix CanOverflow compiler warning.
9410         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
9411         * TextBox.cs: Dispose.
9412         * ToolStrip.cs: CanOverflow, re-enable double buffering.
9413         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
9414         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
9415         * ToolStripItem.cs: Overflow, RightToLeft properties.
9416
9417 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9418
9419         * Form.cs: Move the layout of the main form to MdiWindowManager.
9420         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
9421         do a layout of the main window to update MdiClient's client area to
9422         the right area. Fixes #80533. Remove the calculation of nc size, 
9423         it was just wrong and the correct one is the same as for 
9424         InternalWindowManager. 
9425
9426 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
9427
9428         * Control.cs: Setting Anchor or Dock needs to reset the other
9429         to its default.  [Fixes bug #80556]
9430
9431 2007-01-20  Chris Toshok  <toshok@ximian.com>
9432
9433         * CheckedListBox.cs: class status changes.
9434
9435         * ScrollableControl.cs: same.
9436
9437         * RichTextBox.cs: same.
9438
9439         * ContainerControl.cs: same.
9440
9441         * ListView.cs: same.
9442
9443         * NotifyIcon.cs: same.
9444
9445         * MenuStrip.cs: same.
9446
9447         * RadioButton.cs: same.
9448
9449         * CheckBox.cs: same.
9450
9451         * PrintPreviewDialog.cs: same.
9452
9453         * Form.cs: same.
9454
9455 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
9456
9457         * TreeNode.cs: Apply Alan's patch for Name property.
9458
9459 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9460         
9461         * Form.cs: Implemented SizeGripStyle.
9462         * SizeGrip.cs: Check for minimum and maximum size for the
9463         control being resized and only resize if size has actually
9464         changed.
9465
9466 2007-01-19  Chris Toshok  <toshok@ximian.com>
9467
9468         * DataGridColumnStyle.cs: stop setting _readonly in the
9469         PropertyDescriptor setter.  fixes a unit test failure.
9470
9471         also, rename ParentReadOnly to TableStyleReadOnly, and have it
9472         just consult our table style (if we have one).  We don't need to
9473         consult the datagrid readonly attribute because that's passed in
9474         as the _ro arg to Edit.  this simplifies things a little.
9475         
9476         * DataGrid.cs: use CurrentColumn instead of
9477         current_cell.ColumnNumber just to simplify some of the code.
9478
9479         switch the order of some things in the CurrentCell setter to keep
9480         the previous cell from getting a textbox again -
9481         EnsureCellVisibility causes scrolling to happen, which calls Edit.
9482         So we need to set the new cell before calling it.
9483         
9484         call Edit in OnEnter, as does Microsoft.
9485         
9486         also, make sure the current table style isn't the one we create
9487         initially when checking to see if it's different than the one
9488         we're setting it to in BindColumns (this fixes #80421).
9489
9490         * GridTableStylesCollection.cs: table styles can have "" for a
9491         mapping name.  part of the fix for #80421.
9492
9493         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
9494         Edit significantly.
9495
9496 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9497
9498         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
9499         and less GDI object leaky-er.
9500
9501 2007-01-18  Andreia Gaita  <avidigal@novell.com>
9502
9503         * LinkLabel.cs: Add opaque control style
9504
9505 2007-01-18  Jackson Harper  <jackson@ximian.com>
9506
9507         * TextControl.cs: Calculate width properly.
9508         - Don't store the tag's X offset, this can be figured out very
9509         easily.
9510         - When getting the caret tag make sure to get the last empty tag.
9511
9512 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9513
9514         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
9515         [Fixes bug #79959]
9516
9517         * Control.cs: Color.Empty shouldn't count for previous transparent
9518         redraw changes.
9519
9520 2007-01-18  Jackson Harper  <jackson@ximian.com>
9521
9522         * TextBox.cs:
9523         * RichTextBox.cs:
9524         * TextControl.cs: Starting to merge in some pieces of my older
9525         undo work.  Basically just some slight cleanup of the undo API.
9526
9527 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9528
9529         * TrackBar.cs: Fix signature of RightToLeftLayout.
9530         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
9531         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
9532         * Application.cs: Implemented UseWaitCursor.
9533
9534 2007-01-18  Jackson Harper  <jackson@ximian.com>
9535
9536         * TextControl.cs: We can't skip tags if any part of the tag is
9537         visible.
9538
9539 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9540
9541         * ContainerControl.cs: Override OnLayout.
9542
9543 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9544
9545         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
9546
9547         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
9548         everything else.
9549
9550 2007-01-18  Chris Toshok  <toshok@ximian.com>
9551
9552         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
9553         (leftover from the container_selected days, I'd wager).  fixes bug
9554         #80546.
9555
9556 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9557
9558         * Control.cs: Apply patch from George to fix the new testcase on
9559         bug #80451.  We can't just check for Color.Transparent, we need 
9560         to check if the back color's alpha channel is < 255.
9561
9562 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9563
9564         * Form.cs: Move setting show_icon = true to before the constructor
9565         so that the base constructor has that information when it calculates
9566         the form's size.  Was causing forms to be (6, 6) bigger than they
9567         were supposed to be.  Thanks for catching this Rolf!
9568
9569 2007-01-18  Jackson Harper  <jackson@ximian.com>
9570
9571         * TextControl.cs: When replacing a selection we need to invalidate
9572         from the initial selection start, because selection start is moved
9573         to the end of the replacement.
9574
9575 2007-01-18  Andreia Gaita  <avidigal@novell.com>
9576
9577         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
9578
9579 2007-01-18  Chris Toshok  <toshok@ximian.com>
9580
9581         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
9582         I just added.
9583
9584 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
9585
9586         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
9587         layout methods and properties from ToolBarButton must be available
9588         into ToolBarButtonInfo.
9589
9590 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9591
9592         * Control.cs: If the control has a transparent background, we
9593         need to refresh it when it moves and when it's parent's background
9594         image changes.  [Fixes bug #80451]
9595
9596 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9597
9598         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
9599
9600 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9601
9602         * XplatUIWin32.cs: Implement proper double buffering for Windows.
9603         [Fixes bug #80447, and probably speeds up things as well]
9604
9605 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9606
9607         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
9608         * XplatUIWin32.cs: We need to recalculate NC size after changing 
9609         window style to toolwindow (otherwise the client rectangle will be
9610         3 pixels to small for some reason).
9611         * MdiWindowManager.cs: Revert NC size calculations to match how
9612         they are calculated only based on window styles (to match
9613         Win32AdjustWindowRectEx, since otherwise when setting size or 
9614         location, Control will call Win32AdjustWindowRectEx to update client 
9615         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
9616         calculate a different value of client size causing another paint 
9617         (and flickering))
9618         * InternalWindowManager.cs: When moving or resizing a window only
9619         update size or location if they actually changed.
9620         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
9621         (seems to match Windows behaviour better). Cleaned up 
9622         ManagedWindowDecorations to draw what's needed and nothing else
9623         (was drawing borders and lines where they shouldn't be)
9624         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
9625         (style = 0xFFFF) and takes into account caption height when 
9626         calculating window rectangle.   
9627
9628 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
9629
9630         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
9631         can be added to toolbar multiple times, we need to maintain a list of 
9632         button information for each positions.
9633
9634 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
9635
9636         * ToolBar.cs: Some small stetic changes.
9637
9638 2007-01-16  Jackson Harper  <jackson@ximian.com>
9639
9640         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
9641         that allow us to have nested recalc = false blocks.
9642         - Add paste support for images in the RichTextBox
9643         * RichTextBox.cs: flush the text after the color is changed, so
9644         the change takes effect.
9645         - Use SuspendRecalc
9646         - Some extra debugging info
9647         * TextControl.cs: Tags no longer track their length, it is just
9648         computed from the next tags length, this makes things a little
9649         simpler and reduces places that we have to track length changes.
9650         - Refactored the linetag class a little so we could make it
9651         a base class for different kinds of tags
9652         - Created a image tag, a tag that can have a single image inserted
9653         into it
9654         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
9655         that we can call suspend multiple times.
9656         - Add some debugging methods
9657
9658 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9659
9660         * MdiClient.cs: Add ActivatePreviousChild for 
9661         mdi child window navigation.
9662         * Form.cs: Use MdiClient.ActivateNextChild/
9663         ActivatePreviousChild instead of Form.SelectNextControl
9664         to select the next/previous child since 
9665         SelectNextControl doesn't do it in the same order
9666         as mdi children should do it.
9667
9668 2007-01-16  Chris Toshok  <toshok@ximian.com>
9669
9670         * Control.cs: remove container_selected field.
9671
9672 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9673
9674         * MdiClient.cs: Update main form's ActiveChild when
9675         updating keyboard focus for the mdi child.
9676
9677 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
9678
9679         * Control.cs: PreferredSize fix.
9680
9681         * Form.cs: Add several 2.0 events, properties, and methods.
9682
9683 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
9684
9685         * Form.cs: Provide meaningful message when MdiParent is assigned a
9686         Form that is not an MdiContainer.
9687
9688 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9689
9690         * MdiClient.cs: Update main form's ActiveChild when
9691         activating a mdi child.
9692
9693 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9694
9695         * MdiWindowManager.cs: Fix NRE when merging menus and main form
9696         doesn't have a menu.
9697
9698         * Form.cs: Request NCRecalc after creating a mdi child window.
9699         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
9700         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
9701         
9702         * MdiClient.cs: Add new method SendFocusToActiveChild that either
9703         sends keyboard focus to the active child, or to the MdiClient
9704         if there are no child forms.
9705         
9706 2007-01-15  Chris Toshok  <toshok@ximian.com>
9707
9708         * ListView.cs: drop the *Internal overrides, just do our work in
9709         ItemControl's WndProc instead.
9710
9711         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
9712         of the various controls, and forward the events properly (in the
9713         same manner as MS) from the textbox to the UpDown.  Also the
9714         ActiveControl of the UpDownBase gets set properly now.  Finally,
9715         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
9716
9717         * NumericUpDown.cs: set Text in the ctor.
9718
9719         * DomainUpDown.cs: call UpdateEditText in the ctor.
9720         
9721         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
9722         so even a Selectable = false textbox can be focused if you click
9723         in it.  Go figure.
9724
9725         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
9726         just add their handling in their respective WndProc's.  Also add
9727         an explicit FocusInternal method that doesn't consult CanFocus
9728         before calling Select(this).
9729
9730         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
9731         do our work in WndProc instead.
9732
9733         * TabControl.cs: same.
9734
9735         * ComboBox.cs: same.
9736
9737 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9738
9739         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
9740         Fixes #80006.
9741
9742 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9743
9744         * ListViewItem.cs:
9745         * ThemeWin32Classic.cs: Don't draw the item text outside
9746         item bounds in Details view, as well as use trimming.
9747         Fixes bug #80376.
9748
9749 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9750
9751         * Form.cs: Implement Form.ShowIcon.
9752         
9753         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
9754         null, which when combined with the DlgModalFrame window style removes
9755         the icon from the title bar.
9756
9757 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9758
9759         * Control.cs: Call OnMouseClick after OnClick. (2.0)
9760
9761 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9762
9763         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
9764         menu when mdi child windows theres a menu, uses insert to get icon
9765         at first position. Partially fix #80006.
9766
9767 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9768
9769         * Clipboard.cs: Implement 2.0 methods.
9770
9771 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9772
9773         * Menu.cs: Implement Insert method of MenuItemCollection class
9774         to fix MenuMerge.
9775
9776 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9777
9778         * ListView.cs: Implement 2.0 FindItemWithText method.
9779
9780 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
9781
9782         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
9783         to calculate menu bar size. Fixes #80290.
9784
9785 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
9786
9787         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
9788
9789 2007-01-11  Chris Toshok  <toshok@ximian.com>
9790
9791         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
9792         initial form.
9793
9794 2007-01-11  Chris Toshok  <toshok@ximian.com>
9795
9796         * LinkLabel.cs: make sure to call base.Select in our Select method
9797         if it turns out we're going to be selected (i.e. if we have a link
9798         that is going to receive focus).  That way our container's
9799         ActiveControl is updated properly.
9800
9801 2007-01-11  Chris Toshok  <toshok@ximian.com>
9802
9803         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
9804         they have 1 or more links.  this fixes the crash gert reported.
9805
9806 2007-01-11  Andreia Gaita  <avidigal@novell.com>
9807
9808         * ContainerControl.cs: Remove ContainerSelected flag, not needed
9809         anymore.
9810
9811         * Control.cs (Controls.Add): Check if control to be added to the collection
9812         is a top level control, and throw an ArgumentException if it is.
9813         Remove ContainerSelectedFlag, not needed anymore.
9814
9815         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
9816         top most control doesn't activate the form. This fixes a problem in the
9817         MessageBox, where the default button wouldn't get focus because the form
9818         was activated before being Loaded - when the Owner is set, SetTopMost is
9819         called, and it would activate it.
9820
9821 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
9822
9823         * Button.cs: When clicked and setting the parent form's DialogResult,
9824         use FindForm instead of Parent, since parent could be a container
9825         control and not the Form.  Fixes bug #80495.
9826
9827 2007-01-10  Chris Toshok  <toshok@ximian.com>
9828
9829         * Form.cs: move the call to SendControlFocus into the same
9830         is_loaded check.
9831
9832 2007-01-10  Chris Toshok  <toshok@ximian.com>
9833
9834         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
9835         It breaks in the face of the new ActiveControl stuff, and should
9836         be unnecessary.
9837
9838         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
9839         activecontrol's focus if it's not already set, after we set
9840         ActiveControl, but before we call OnActivated.  Re-fixes #79667
9841         after the previous focus/active control fixes regressed it.
9842
9843         * Control.cs: reindent some code.
9844         
9845 2007-01-10  Chris Toshok  <toshok@ximian.com>
9846
9847         * Splitter.cs: clearing some outstanding changes from my tree.
9848         Replace all accesses (not writes) to the internal dock_style field
9849         with the Dock property.
9850
9851 2007-01-10  Chris Toshok  <toshok@ximian.com>
9852
9853         * Control.cs: make FireEnter, FireLeave, FireValidating, and
9854         FireValidated virtual.
9855
9856         * Form.cs: override and don't chain up calls to FireEnter and
9857         FireLeave.
9858
9859 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9860
9861         * ListView.cs: Add more text padding space when using
9862         auto resize for columns (the previous value didn't work fine).
9863
9864         * ThemeWin32Classic.cs: Update text position inside columns,
9865         to match the appeareance of .Net.
9866
9867         * ColumnHeader.cs: When using auto resize, only the Width should
9868         depend on the sub items, not the Height. Also, set width after
9869         auto resizing (the value of Width should never remain as -1 or -2).
9870
9871 2007-01-10  Chris Toshok  <toshok@ximian.com>
9872
9873         * Application.cs: fix compilation errors when debug is enabled.
9874
9875 2007-01-10  Chris Toshok  <toshok@ximian.com>
9876
9877         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
9878         add some nice ascii art pictures and explanation of the process).
9879         (GetMostDeeplyNestedActiveControl): new utility function we need
9880         because our ActiveControl can refer to a child container with its
9881         own ActiveControl.
9882
9883         * Form.cs (OnActivated): remove the call to SelectActiveControl
9884         from here, since you can override this method and not chain up,
9885         and winforms still sets the active control.
9886         (OnCreateControl): also remove the unnecessary SelectActiveControl
9887         call from here.
9888         (WndProc): it's actually called from the WM_ACTIVATE block, just
9889         before calling OnActivated.
9890
9891         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
9892         inside the else.  the ActiveControl setter will end up setting
9893         focus on @control.  This keeps us from setting it again (and
9894         generating an extra LostFocus/GotFocus pair).
9895         (Select (bool, bool)): reindent.
9896
9897 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
9898
9899         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
9900         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
9901         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
9902         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9903         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
9904         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
9905         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
9906         ToolStripTextBox.cs: Another wave of corcompare work.
9907
9908 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9909
9910         * ColumnHeader.cs: Implement 2.0 AutoResize method using
9911         the Width property.
9912
9913         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
9914         methods by callling Column.AutoResize method on columns.
9915
9916 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
9917
9918         * Control.cs: Provide proper implementations of PreferredSize
9919         and GetPreferredSize (2.0).
9920
9921 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
9922
9923         * Form.cs: Remove one character (!) to make my previous OnClosing
9924         stuff work for modal windows like MessageBox.
9925
9926 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9927
9928         * ListView.cs:
9929         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
9930         ListView.Columns to get the last displayed column. Fixes #80452.
9931
9932 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
9933
9934         * Label.cs, LinkLabel.cs: Source code identation fixes.
9935
9936 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
9937
9938         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
9939         we dont need to invalidate only borders because when we invalidate four
9940         border lines the invalidate's generates a complete redraw of button, 
9941         because it now invalidate a complete rect some other redraws operations
9942         are fixed. Fixes #80196.
9943         
9944         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
9945         Remove ToolBarInvalidateEntireButton as it is not used.
9946
9947 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
9948         
9949         * Form.cs: Make sure that both OnClosing and OnFormClosing are
9950         called for 2.0 profile.
9951         * CloseReason.cs: Make class internal for 1.1.
9952
9953 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
9954
9955         * ToolStripManager.cs: Implement FindToolStrip functionality.
9956         * ToolStrip.cs: Register and unregister with ToolStripManager.
9957
9958 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
9959
9960         * Control.cs: This was messy.  2.0 moves much of ControlCollection
9961         to ArrangedElementCollection.  Implemented this with as few #if's as 
9962         possible (which is still too many).
9963
9964 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
9965
9966         * Control.cs: Implement SizeFromClientSize() [2.0].
9967
9968 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
9969
9970         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
9971         use Theme.BorderSize to calculate area instead of static value 1, 
9972         by the way use new BorderStaticSize instead     Border3DSize when 
9973         border_static is true. Fixes #79537.
9974         
9975         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
9976         
9977         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
9978         it is not needed.
9979
9980 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
9981
9982         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
9983
9984 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
9985
9986         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
9987         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
9988         
9989         * Hwnd.cs: 
9990         - border_static field added, it will used to define when a control 
9991         theres 3D border but it must be static (thin).
9992         - In GetWindowRectangle use Theme.BorderSize to calculate area 
9993         instead of static value 1, by the way use new BorderStaticSize instead
9994         Border3DSize when border_static is true.
9995
9996         * XplatUIX11.cs, XplatUIOSX.cs: 
9997         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
9998         
9999         * Theme.cs: BorderStaticSize field added.
10000
10001 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
10002
10003         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
10004
10005 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
10006
10007         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
10008         mimic same behavior than win32 that set border only in CreateParams,
10009         it fix problems under CreateParams overrides. Fix #79442 and partial
10010         fix #79537.
10011         
10012         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
10013         of thi control you must call recreate handle. 
10014         
10015         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
10016         need to do anything as RecreateHangle will take care about borders.
10017
10018 2007-01-05  Mike Kestner  <mkestner@novell.com>
10019
10020         * ListView.cs: hack to eliminate Lost/Got focus notifications on
10021         cycles between the ItemControl and parent.  Fixes #80388.
10022
10023 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
10024
10025         * Control.cs: Lazy init layout engine. Do not directly use 
10026         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
10027
10028 2007-01-05  Chris Toshok  <toshok@ximian.com>
10029
10030         * DataGrid.cs: don't forceably rebind columns in SetDataSource
10031         unless our list manager has changed (i.e. unless we have reason to
10032         believe our columns have changed).  Fixes #80422.
10033         
10034         also, disable the call do BindColumns in
10035         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
10036         1.1 the event isn't raised in response to a column addition on a
10037         table.)
10038
10039 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
10040
10041         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
10042         that inheritors can not call it if they choose.  Fixes bug #80456.
10043
10044 2007-01-05  Andreia Gaita  <avidigal@novell.com>
10045
10046         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
10047         doesn't blow up with a null exception on marshalling.
10048         
10049 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
10050
10051         * Control.cs: Implement several 2.0 protected properties and methods.
10052         Ensure that all necessary events are being called when properties
10053         are set.
10054
10055 2007-01-05  Mike Kestner  <mkestner@novell.com>
10056
10057         * ListView.cs: implement PgUp/PgDn for Details view.  Also
10058         fixes First/LastVisibleIndex to use the item_control.ClientRect 
10059         instead of the parent control.  Fixes #80378.
10060
10061 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
10062
10063         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
10064           determine whether to use yard-pound or not (bug #78399).
10065
10066 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
10067
10068         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
10069         problems. So it is time to bring back the old popupbutton colors.
10070
10071 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10072
10073         * ColumnHeader.cs:
10074         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
10075         property by using the internal information of the
10076         columns order in ListView.
10077
10078 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
10079
10080         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
10081         Add 2.0 Tag properties.
10082
10083         * LinkArea.cs: Add 2.0 ToString method.
10084
10085 2007-01-03  Chris Toshok  <toshok@ximian.com>
10086
10087         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
10088         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
10089         when we're editing, which fixes #80047.
10090
10091 2007-01-03  Chris Toshok  <toshok@ximian.com>
10092
10093         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
10094         #80404.
10095
10096 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
10097
10098         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
10099         property and implementation.
10100
10101         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
10102         for MdiWindowListItem property.
10103
10104         * ToolStripDropDown.cs: Don't consider hidden menu items while
10105         laying out the menu.
10106
10107 2007-01-03  Andreia Gaita  <avidigal@novell.com>
10108
10109         * SendKeys.cs: window handle is not needed in win32, so just
10110         get the active window for X after parsing keys and don't use
10111         it when building the message; it is passed by parameter to the 
10112         Xplat method and used there to build the message instead. Also,
10113         wait for events to be processed on SendWait, as opposed to Send,
10114         which doesn't wait :) Playing with threads and Send() completely 
10115         hangs on ms.net, only SendWait() works.
10116         
10117         XplatUIX11.cs
10118         X11Display.cs: Check for valid window handle.
10119
10120 2007-01-03  Jackson Harper  <jackson@ximian.com>
10121
10122         * TextControl.cs: Need to prevent wrap calculations when replacing
10123         text (this was there before i removed it accidently).
10124         - Don't update the cursor during the positioning, just set it to
10125         selection_start at the end of the operaion.
10126
10127 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10128
10129         * Control.cs:
10130         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
10131         
10132 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10133
10134         * MonthCalendar.cs: Added Click and DoubleClick events again,
10135         but this time they only hide Control's Click and DoubleClick.
10136         
10137 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
10138
10139         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
10140         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
10141
10142 2007-01-02  Jackson Harper  <jackson@ximian.com>
10143
10144         * TextBoxBase.cs: We move the caret with the split now, so we
10145         don't need to explicitly move the caret after splitting.  This
10146         fixes the caret bumping down an extra line on Enter.
10147
10148 2007-01-02  Miguel de Icaza  <miguel@novell.com>
10149
10150         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
10151         2.72). 
10152
10153         * ScrollableControl.cs: Add Scroll event.
10154
10155 2007-01-02  Mike Kestner  <mkestner@novell.com>
10156
10157         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
10158         to fix all hdr height padding codepaths.  Fixes #80207.
10159
10160 2007-01-02  Chris Toshok  <toshok@ximian.com>
10161
10162         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
10163         setting it to the Control defaults anyway, and it being after the
10164         Dock set was screwing up layout.
10165         (set_Dock): don't short circuit out of setting base.Dock.  Also,
10166         no need to call UpdateStatusBar here, as it'll be re-layed out if
10167         it needs to be.
10168
10169 2007-01-02  Mike Kestner  <mkestner@novell.com>
10170
10171         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
10172         to header height for width == -1. Fixes the rest of #80207.
10173
10174 2007-01-02  Mike Kestner  <mkestner@novell.com>
10175
10176         * ListView.cs: rework the mouse event forwarding everaldo added
10177         to translate the coordinates to the parent control not
10178         raise the parent events until after we've done our work. Hover
10179         needs more work, in the case where HoverSelection is on, because
10180         the item control receives more than one MouseHover per Enter
10181         event, so we need to ensure only the "first" hover gets forwarded.
10182         Opening a minor bug for that.
10183
10184 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
10185
10186         * CheckedListBox.cs: Fixed SelectionMode to match MS.
10187         * ListControl.cs: Implemented AllowSelection property. Removed extra
10188         tabs.
10189         * ListBox.cs: Implemented AllowSelection property.
10190
10191 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10192
10193         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
10194         SelectedItem, it prevent for errors when you must disable item
10195         before perform click. Fixes #80409.
10196
10197 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10198
10199         * MenuAPI.cs: Prevent second level and beyond submenus to close
10200         until first level when move out side of popup.
10201         
10202 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10203
10204         * MenuAPI.cs:
10205         - Down submenu positin in three pixels.
10206         - Closes sub menu when mouse leaves from menu. Fixes #80402.
10207
10208 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
10209
10210         * ThemeWin32Classic.cs:
10211         - Fix popup menu size adding one pixel on the top.
10212         - Down menu item border from two to one to mimic Win32.
10213         - Some source identation fixes. 
10214
10215 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
10216
10217         * ThemeWin32Classic.cs: Use float numbers to calculate size and
10218         position of menu arrows, it fix wrong arrow size.
10219
10220 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
10221
10222         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
10223         instead of line, it simplify draw operation and fix it using 3D
10224         borders to mimic Win32.
10225
10226 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
10227
10228         * StatusStrip.cs: Add implementation of the sizing grip.
10229
10230         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
10231         StatusStrip rendering.
10232
10233 2006-12-31  Chris Toshok  <toshok@ximian.com>
10234
10235         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
10236         override the layout style (anchor/dock) of the control.  assign to
10237         Dock instead.  Fixes bug #80416.
10238
10239         * ToolStrip.cs: same.
10240
10241 2006-12-31  Andreia Gaita  <avidigal@novell.com>
10242
10243         * ContainerControl.cs: Use ContainerSelected flag to check if 
10244         a Container is directly selected, or if Select is called on a 
10245         non-container. If a container is directly selected, focus events 
10246         should not be raised.
10247         Apply #80411 patch to throw exception on set_ActiveControl if 
10248         control is the same as the current one.
10249         
10250         * Control.cs: Use ContainerSelected flag (see above).
10251         Add invalidation check to raise event but not invalidate if 
10252         dimensions are 0.       
10253         Apply #80411 patch.
10254         
10255
10256 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
10257
10258         * MenuAPI.cs: After click, dont close popup menu when menu is
10259         ContextMenu. Fixes #80399.
10260
10261 2006-12-30  Chris Toshok  <toshok@ximian.com>
10262
10263         * ContainerControl.cs: make sure we throw the exception if the
10264         container control doesn't contain the control we're setting
10265         ActiveControl to.
10266
10267 2006-12-30  Chris Toshok  <toshok@ximian.com>
10268
10269         * Control.cs (SetTopLevel): fix the exception raised by
10270         SetTopLevel for child controls.
10271         (set_Anchor): call UpdateDistances when setting the anchor type.
10272         This fixes bug #80336.
10273
10274 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
10275
10276         * Theme.cs: For now, revert back to 8pt font.
10277
10278 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
10279
10280         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
10281         Fixes #80395.
10282
10283 2006-12-29  Chris Toshok  <toshok@ximian.com>
10284
10285         * Control.cs: reorder the code in OnResize to give the same event
10286         ordering as MS.
10287
10288 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10289
10290         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
10291         TileHorizontally and TileVertically.
10292         
10293 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
10294
10295         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
10296         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
10297         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
10298         Corrected copyright and email adress.
10299
10300 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
10301
10302         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
10303         of Exception in FullPath property if no TreeView is associated with
10304         the TreeNode.
10305
10306 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
10307
10308         * Theme.cs: Marked default_font as private, and initialize it in ctor
10309         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
10310         on 2.0 profile.
10311         * ThemeGtk.cs: Removed default_font intialization.
10312         * ThemeWin32Classic.cs: Removed default_font initialization.
10313
10314 2006-12-28  Chris Toshok  <toshok@ximian.com>
10315
10316         * Control.cs: fix a couple of place where we were creating handles
10317         more aggressively than we should be.  Fixes ControlRefresh unit
10318         tests.
10319
10320 2006-12-28  Chris Toshok  <toshok@ximian.com>
10321
10322         * Control.cs: contrary to what the comment said, Control.Dock does
10323         not supercede Control.Anchor - the last one you assign to decides
10324         the layout behavior.  so we need to keep track of which was the
10325         last set.  Also, fix some of the affected property arguments in
10326         PerformLayout calls, and remove an redundant parent.PerformLayout
10327         call in OnResized.
10328
10329         Add a VisibleInternal property, which returns is_visible.  We
10330         can/should get rid of all the usage of this field elsewhere.
10331
10332 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10333         
10334         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
10335         control style, not DoubleBuffer. Added UseDoubleBuffering property
10336         that indicates whether doublebuffering is enabled and supported.
10337         (comment from and code based on Gert Driesen's patch in #80324).
10338         Fixes #80324.
10339
10340 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10341         
10342         * Control.cs: Fixed a NRE.
10343
10344 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10345
10346         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
10347         for 2.0.
10348
10349 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10350
10351         * Control.cs: Rewrote double buffering, now a seperate
10352         class handles all the buffering, no Graphics is disposed of
10353         until the painting is finished (earlier implementation 
10354         would crash if the control was resized in the OnPaint, 
10355         since it would cause the double buffer to be recreated
10356         and the old one disposed), a separate Graphics is 
10357         created for every paint (MS behaviour and anyways the state
10358         of the Graphics would have to be saved and restored otherwise)
10359         
10360         * XplatUIDriver.cs: 
10361         * XplatUIX11.cs:
10362         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
10363         so that we can get the graphics for the back buffer without
10364         having to create a new one and remove the offscreen_dc parameter
10365         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
10366         
10367 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10368
10369         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
10370         Also make virtual all the key-related methods.
10371
10372         * ListViewItem.cs: Make virtual the key related methods for
10373         ListViewSubItemCollection.
10374
10375 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10376
10377         * ListView.cs:
10378         * ListViewItem.cs:
10379         * ThemeWin32Classic.cs:
10380         * Theme.cs: Initial support for Tile view in ListView,
10381         as well as the implementation of the required bits for it (Item
10382         and Subitem).
10383
10384 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10385
10386         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
10387         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
10388         Provide useful exception messages.
10389
10390 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10391
10392         * TrackBar.cs: Remove a warning.
10393         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
10394         when used by DateTimePicker, fixes #80287. This also requires that 
10395         MonthCalendar implements it's own drawing for the yearly updown control,
10396         otherwise the Capture tracking would be too complicated. Removed the Click 
10397         and DoubleClick events (according to comments they were hiding the base class
10398         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
10399         raise these events, not that they cannot be raised. It is possible to raise 
10400         them by calling OnClick and OnDoubleClick). Added two internal fields in 
10401         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
10402         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
10403         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
10404         event, no longer needed.
10405         
10406 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10407
10408         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
10409         true if new value differs from current value.
10410
10411 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10412
10413         * Control.cs: ControlCollection.Count must be public. Fixed build of
10414         unit tests.
10415
10416 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10417
10418         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
10419
10420 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
10421
10422         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
10423
10424 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
10425
10426         * Control.cs: Invalidates control including when Width and Height is 
10427         equal zero or is not visible, only Paint event must be care about 
10428         this. Fixes #79913.
10429
10430 2006-12-26  Chris Toshok  <toshok@ximian.com>
10431
10432         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
10433         more corcompare work.
10434
10435         * DataGridView.cs: fix compiler warning.
10436
10437         * ColumnHeader.cs: some corcompare work, and also take the
10438         opportunity to make the internal fields private.
10439
10440         * ListView.cs: fix the fallout from the above field change.
10441
10442 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
10443
10444         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
10445         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
10446         ToolStripTextBox.cs: Fixes to events and corcompare.
10447
10448 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
10449
10450         * ListView.cs: Call owner.OnMousexx event to propagate events from
10451         item to ListView. Fixes #80367.
10452
10453 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10454
10455         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
10456         if value is less than one. ItemHeight should not be set to a value
10457         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
10458         Removed extra tabs.
10459
10460 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
10461
10462         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
10463         * ToolStripStatusLabel.cs: Add Spring for Moma.
10464
10465 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10466
10467         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
10468         Fixed code formatting. Removed debug code.
10469         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
10470
10471 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10472
10473         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
10474         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
10475         ArgumentOutOfRangeException if ColumnCount is negative. In 
10476         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
10477         less than 4 or higher than 32768.
10478         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
10479         Fixed FormatProvider to return CurrentCulture unless explicitly set.
10480         Fixed IsFormatProviderDefault to return true if FormatProvider has
10481         not been explicitly set.
10482
10483 2006-12-25  Chris Toshok  <toshok@ximian.com>
10484
10485         * Application.cs: add a couple of 2.0 events.
10486
10487 2006-12-25  Chris Toshok  <toshok@ximian.com>
10488
10489         * Control.cs: fix compiler warning.
10490
10491         * AxHost.cs: corcompare fixes.
10492
10493         * ApplicationContext.cs: corcompare fixes.
10494
10495 2006-12-25  Chris Toshok  <toshok@ximian.com>
10496
10497         * Control.cs: only update dist_right/dist_bottom if the
10498         width/height is > 0.  this fixes anchored controls being resized
10499         smaller until they disappear and then resized larger again.
10500
10501 2006-12-25  Chris Toshok  <toshok@ximian.com>
10502
10503         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
10504         since they're nothing more than X/Left and Y/Top, respectively.
10505
10506         Also, move back to a per-control Bitmap/Graphics for
10507         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
10508         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
10509         Height.
10510
10511 2006-12-25  Miguel de Icaza  <miguel@novell.com>
10512
10513         * MessageBox.cs: Implemented overload that takes a new "bool
10514         displayHelpButton" by adding a new internal field "show_help".
10515         When clicked this will raise the HelpRequested on the owner or the
10516         main form. 
10517
10518         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
10519         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
10520
10521         * ListView.cs: Add support ColumnWidthChanged and
10522         ColumnWidthChanging. 
10523
10524         Add support for ColumnReordered event.
10525         (ReorderColumn): Add NET_2_0 specific support for cancelling the
10526         reorder.
10527
10528         Very nice codebase!
10529
10530         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
10531
10532         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
10533
10534 2006-12-24  Chris Toshok  <toshok@ximian.com>
10535
10536         * GridTablesFactory.cs: 2.0 corcompare work.
10537
10538         * ToolStripContainer.cs: add "override" to
10539         ContextMenuStripChanged, and remove the local event object.
10540
10541         * ToolStripDropDown.cs: same with a couple properties.
10542
10543         * ToolStripPanel.cs: same with AutoSizeChanged event.
10544
10545         * TextBoxBase.cs: add "override" to AutoSizeChanged.
10546
10547         * Form.cs: add the remaining 2.0 events, and do some corcompare
10548         attribute work.
10549
10550         * DateTimePicker.cs: add "new" to padding.
10551
10552         * ButtonBase.cs: use Control's use_compatible_text_rendering.
10553
10554         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
10555
10556         * DataGridView.cs: PaddingChanged is overridden.
10557
10558 2006-12-24  Chris Toshok  <toshok@ximian.com>
10559
10560         * Control.cs: corecompare work here too.
10561
10562         * DataGridViewElement.cs, DataGridView.cs,
10563         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
10564         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
10565         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
10566         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
10567         work.
10568
10569 2006-12-24  Miguel de Icaza  <miguel@novell.com>
10570
10571         * Control.cs: Switched the error message on the console for a
10572         todo.  A review of the code will have to cope with this anyways
10573         (since its a large feature, it is in our radar) and it was
10574         producing too much output when running PDN.
10575
10576         * ToolStripComboBox.cs: Set the text when the SelectedIndex
10577         changes.  Applications depend on this (PDN 2.72)
10578
10579 2006-12-23  Chris Toshok  <toshok@ximian.com>
10580
10581         * TableLayoutSettings.cs: finish up the corcompare work for this
10582         class.
10583
10584 2006-12-23  Chris Toshok  <toshok@ximian.com>
10585
10586         * Control.cs: make SetImplicitBounds internal, do some futzing
10587         with LayoutEngine so that it's available in 1.1, and remove the
10588         entire duplicated code mess from PerformLayout.  Use
10589         System.Windows.Forms.Layout.DefaultLayout instead.
10590
10591         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
10592
10593 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
10594
10595         * Form.cs: Add MainMenuStrip property.
10596
10597 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
10598
10599         * Control.cs: Add ContextMenuStrip property and implementation.
10600         Fix ContextMenu implementation to show menu centered on control when
10601         activated using the keyboard instead of showing at screen (0,0).
10602
10603         * ToolStripDropDown.cs: Fix needed overload of Show ().
10604
10605 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10606
10607         * Menu.cs: Name property added for 2.0 profile.
10608         
10609 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10610
10611         * Menu.cs: Update information about FindMenuItem, method to be
10612         implemented soon.
10613
10614 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10615
10616         * MenuAPI.cs: When deselect items deselect also selected subitems.
10617         
10618 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10619
10620         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
10621         FindSubItemByCoord to found itens that is not active, also an
10622         cheking added to FindSubItemByCoord to search for items only 
10623         in visible popup windows. Fixes #80274.
10624
10625 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
10626
10627         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
10628         internal property, it be care about change ExStyle. 
10629
10630 2006-12-22  Andreia Gaita  <avidigal@novell.com>
10631
10632         * ContainerControl.cs: set activeControl for parent forms up the 
10633         tree when the new activecontrol is a container.
10634         When validating the active control, if it is a container, also
10635         raise up the validation for it's active control. Fixes #80280
10636         
10637         * Control.cs: Add internal property flag and check to prevent
10638         Focus events from getting raised when Select() is called for
10639         a ContainerControl. There are still too many focus events being
10640         raised at the moment though.
10641         Cleaned up the code a bit.
10642
10643 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10644
10645         * Control.cs: Added all missing 2.0 events.and
10646         fixed a couple of corcompare issues.
10647         * TrackBar.cs: Implemented missing 2.0 bits.
10648         * MonthCalendar.cs, 
10649         * DateTimePicker.cs, 
10650         * MdiClient.cs: Fixed some corcompare issues.
10651
10652 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10653
10654         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
10655         SplitterPanel.cs: corecompare work.
10656
10657 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10658
10659         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
10660         Clean up warnings for BackgroundImageChanged and PaddingChanged
10661         events now that they are implemented in Control.cs.
10662
10663 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10664
10665         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
10666         
10667         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
10668         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
10669         of TableLayoutPanel and supporting cast.
10670
10671 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10672
10673         * XplatUIWin32.cs: 
10674         - GrabWindow now confines the mouse pointer to the confine window.
10675         - Added Win32ClipCursor and Win32GetClipCursor.
10676
10677         * Control.cs: 
10678         - Added CaptureWithConfine to be able to capture and confine 
10679         mouse pointer.
10680         
10681         * InternalWindowManager.cs: 
10682         - Call CaptureWithConfine instead of Capture if we're an
10683         MdiChild (fixes #79982).
10684
10685 2006-12-21  Chris Toshok  <toshok@ximian.com>
10686
10687         * DataGrid.cs: guard against the initial state of selection, where
10688         selection_start == -1.  make sure we only select from index >= 0.
10689         Fixes bug #80291.
10690
10691 2006-12-21  Chris Toshok  <toshok@ximian.com>
10692
10693         * Control.cs: we don't need to be so draconian with
10694         UpdateDistances, and we thusly don't need to call it before
10695         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
10696
10697 2006-12-21  Daniel Nauck  <dna@mono-project.de>
10698
10699         * ComboBox.cs,
10700         TextBox.cs: Implemented AutoComplete properties.
10701
10702 2006-12-20  Chris Toshok  <toshok@ximian.com>
10703
10704         * DataGridView*.cs: some corecompare work.
10705
10706 2006-12-20  Jackson Harper  <jackson@ximian.com>
10707
10708         * XplatUIX11.cs: We need to hide the caret when deleting it,
10709         otherwise you get carets left lying around everywhere.
10710         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
10711         prevents getting some weird half drawn caret tracers when
10712         scrolling.
10713         * TextControl.cs: Attempt to reduce the number of times we need to
10714         recreate the caret.
10715
10716 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
10717
10718         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
10719
10720 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10721
10722         * DateTimePicker.cs:
10723         - Implemented missing 2.0 bits.
10724         - Changed some default values to match MS.
10725         
10726 2006-12-20  Jackson Harper  <jackson@ximian.com>
10727
10728         * TextBoxBase.cs: When changing the font across the document we
10729         can't recalculate after changing each line, since that will cahnge
10730         the line count.
10731         - PreferredHeight is a little different than i thought.
10732         - When backspacing, move the caret before we do the actual char
10733         delete, because when that delete crosses a wrap boundary the
10734         positional information will change.
10735
10736 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10737
10738         * Control.cs: Added some missing 2.0 bits: 
10739         BackgroundImageLayout, BackgroundImageLayoutChanged, 
10740         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
10741         add IBindableComponent and IDropTarget implementation.
10742         
10743         * MonthCalendar.cs: 
10744         - Added all missing 2.0 features:
10745         BackgroundImageLayout, RightToLeftLayout, 
10746         OnHandleDestroyed, RightToLeftLayoutChanged, 
10747         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
10748         PaddingChanged.
10749         - Rewrote all the BoldDate code, it was completely broken.
10750         - Fixed all the tests (the tests can now be re-enabled, the
10751         problems were not with the tests, but with the control, it was
10752         mostly broken).
10753         
10754         * DateTimePicker.cs: Changed the location where the 
10755         MonthCalendar is shown.
10756         
10757 2006-12-19  Chris Toshok  <toshok@ximian.com>
10758
10759         * DataGridView.cs: add IDropTarget implementation.
10760
10761         * ToolStripPanel.cs: add IDropTarget implementation.
10762
10763 2006-12-19  Jackson Harper  <jackson@ximian.com>
10764
10765         * TextControl.cs: soft now means something different than what it
10766         used to mean, we want to move the caret regardless of whether or
10767         not this break was soft (would we really have wanted the caret
10768         to not move with the break in the old context?)
10769         * TreeView.cs: Make sure we factor in the vert scrollbar when
10770         calculating the horizontal scrollbar's maximum.
10771
10772 2006-12-19  Andreia Gaita  <avidigal@novell.org>
10773
10774         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
10775         check for keywords in alternate casing, close bug #80049.
10776
10777 2006-12-19  Chris Toshok  <toshok@ximian.com>
10778
10779         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
10780         methods (which all do nothing).
10781
10782         * IDropTarget.cs: add the 4 missing methods.
10783
10784 2006-12-19  Chris Toshok  <toshok@ximian.com>
10785
10786         * TableLayoutRowStyleCollection.cs: corcompare work.
10787         
10788         * TableLayoutSettings.cs: same.
10789
10790         * TableLayoutStyle.cs: same.
10791
10792         * TableLayoutColumnStyleCollection.cs: same.
10793
10794 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
10795
10796         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
10797         TableLayoutPanel I've had in my local tree for way too long.
10798
10799 2006-12-19  Miguel de Icaza  <miguel@novell.com>
10800
10801         * TableLayoutSettings.cs: Finish the public API (still needs all
10802         the logic to update on changes). 
10803
10804         * TableLayoutPanelCellPosition.cs: new file.
10805         
10806         * TableLayoutRowStyleCollection.cs,
10807         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
10808         TableLayoutSettings.cs: Track the final 2.0 table api.
10809
10810 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10811
10812         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
10813         and Image List 2.0 members for ColummnHeader.
10814         * ListView.cs: Add key-related 2.0 methods for
10815         ColumnHeaderCollection.
10816
10817 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
10818
10819         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
10820         ArgumentNullException if items argument is null. Ignore null item in
10821         arrays. Removed extra tabs.
10822
10823 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
10824
10825         * MonthCalendar.cs: Fixed InvalidCastException.
10826
10827 2006-12-19  Jackson Harper  <jackson@ximian.com>
10828
10829         * TextControl.cs: Don't increment the position here.
10830         - When calculating char positions only add in the line break size
10831         for hard line breaks.
10832
10833 2006-12-19  Andreia Gaita  <avidigal@novell.org>
10834
10835         * SendKeys.cs: Changed some things to match ms.net behaviour
10836         when parsing shifted capital letters.
10837         
10838         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
10839         Add window handle as parameter to SendInput. X11 needs the 
10840         window handle, and the handle being passed      to it in the keys 
10841         queue is the active control handle (which windows needs), not 
10842         the window handle.
10843         
10844         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
10845         to support SendKeys on X.       
10846         
10847         * X11Keyboard: Implement helper method to lookup a linux keycode
10848         given the virtual keycode. Added table of keycode-2-virtualkey
10849         values to support this.
10850
10851 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10852
10853         * ListView.cs: Add support for SelectedIndexCollection
10854         and SelectedItemCollection 2.0 methods. Implement support
10855         for ImageKey too.
10856         * ListViewItem.cs: Add support for ListViewSubItemCollection
10857         2.0 methods. Also, fix an incorrect behavior of AddRange method
10858         (it shouldn't call Clear).
10859         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
10860
10861 2006-12-19  Jackson Harper  <jackson@ximian.com>
10862
10863         * RichTextBox.cs: 
10864         * TextBoxBase.cs: New args for FormatText
10865         * TextControl.cs: Rewrote the main drawing method, this version
10866         feels a little easier to understand and debug to me.  Hopefully it
10867         does to others also
10868         - Fix FormatText to OR in the new formating values.  Added
10869         FormatSpecified param, basically this works in the same way as
10870         BoundsSpecified in Control.
10871         - Set the caret properties when the caret is positioned.
10872         - When wrapping text make sure that we calculate the width of the
10873         last character
10874         - when calculating alignments we might have wrapped down to the
10875         next line, so don't search for an individual tag, search for the
10876         end of the line
10877         - We need to invalidate the selection area when we replace the
10878         selection.
10879         
10880 2006-12-19  Daniel Nauck  <dna@mono-project.de>
10881
10882         * Application.cs: add Restart () 2.0 support
10883
10884 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10885
10886         * MenuItem.cs: Invalidate menu item rectangle after change Enable
10887         property. Fixes #80268.
10888         
10889 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10890
10891         * MenuAPI.cs: Dont trigger select event when closes top menu
10892         item. Fixes #80270.
10893
10894 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10895
10896         * MenuAPI.cs: When you click on menuitem only trigger onselect
10897         event for top menu itens. Fixes #80271.
10898         
10899 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10900
10901         * MdiWindowManager.cs: Make IconicBounds depend on
10902         the bottom of MdiClient, not the top (fixes #80267)
10903         
10904 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10905
10906         * MdiClient.cs: Added missing 2.0 attribute
10907
10908 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10909
10910         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
10911         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
10912
10913 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10914
10915         * MenuAPI.cs: Fix click when menuitem is not popup,
10916         this regression was caused by last commit (#80272).
10917
10918 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
10919
10920         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
10921         fire click event or close menu. Fixes #80272.
10922
10923 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10924
10925         * ListViewHitTestInfo.cs: add
10926
10927 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10928
10929         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
10930         * FlatButtonAppearance.cs: add
10931         * DockingAttribute.cs: add
10932
10933 2006-12-17  Chris Toshok  <toshok@ximian.com>
10934
10935         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
10936         and rebind our columns when it does - this way, if you make
10937         changes to the DataTable (or set the Table attribute on a DataView
10938         after setting it as the DataGrid's DataSource, the changes are
10939         made visible.)  Fixes bug #80107.
10940
10941 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10942
10943         * ListViewGroup.cs: add internal Location property for layouting.
10944         * Theme.cs: add abstract ListViewGroupHeight function.
10945         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
10946
10947 2006-12-16  Andreia Gaita  <avidigal@novell.com>
10948
10949         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
10950         Added reset of selected index to 0 when adding first tab page.
10951         Fixes #80264
10952         
10953         * NumericUpDown.cs: Fix NET_2_0 check
10954
10955 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10956
10957         * ListViewGroup.cs: fixed DefaultValueAttribute value
10958
10959 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10960
10961         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
10962
10963 2006-12-15  Miguel de Icaza  <miguel@novell.com>
10964
10965         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
10966         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
10967         ScrollableControl.cs: Add a handful of methods that are
10968         overwritten in 2.0 
10969
10970 2006-12-15  Chris Toshok  <toshok@ximian.com>
10971
10972         * XplatUIWin32.cs: initial implementation of the Reversible
10973         drawing functions.  there are some problems.  DrawReversibleFrame
10974         doesn't seem to work at all for Dashed FrameStyle, and in the
10975         Thick case there are drawing errors at the corners (we probably
10976         need to bind Rectangle instead of doing moveto/lineto's.)
10977
10978 2006-12-16  Andreia Gaita  <avidigal@novell.com>
10979         
10980         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
10981         to send blocks of key messages. Send accumulates keys to send with Flush, 
10982         while SendWait sends all keys immediately.
10983                 
10984         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
10985         XplatUIX11.cs,  XplatUIX11-new.cs:
10986         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
10987         to Win32 SendInput.
10988         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
10989         
10990         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
10991         testing for ms.net on this class is very tricky, as the tests run too fast 
10992         to allow the hook to release, essentially freezing the keyboard and the 
10993         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
10994         category :p
10995
10996 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10997
10998         * Padding.cs: fixed serialization compability to MS ("_var" field names),
10999                         added missing attributes.
11000  
11001 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11002
11003         * ListViewGroup.cs: Added missing attributes.
11004         * ListViewGroupCollection.cs: Added missing attributes.
11005
11006 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11007
11008         * ListViewItem.cs: fixed ListViewSubItem text property.
11009
11010 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11011         
11012         * Control.cs: Added missing 2.0 attributes
11013         
11014 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11015         
11016         * MdiClient.cs: Added missing 2.0 attribute.
11017         * MonthCalendar.cs: Added some missing 2.0 attributes 
11018         and properties.
11019         
11020 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11021
11022         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
11023
11024 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
11025
11026         * MainMenu.cs: Add the new 2.0 constructor to help out people
11027         using the MainMenu in VS2005.
11028
11029 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11030         
11031         * MdiChildContext.cs: Removed it, no longer used.
11032         * MdiClient.cs: Added missing 2.0 attributes.
11033         
11034 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11035         
11036         * InternalWindowManager.cs: Fix a NullRef with previous 
11037         changes for toolwindows.
11038         
11039 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11040
11041         * Control.cs: 
11042         - Added AfterTopMostControl to allow for certain controls 
11043         to always stay on top when normal controls are brought to 
11044         front.
11045         
11046         * XplatUIWin32.cs: 
11047         - (DrawInversibleRectangle): Get window rectangle from Win32 
11048         in stead of from control, since Win32 doesn't calculate
11049         screen coords correctly from control's Location if it 
11050         have docked siblings.
11051         
11052         * MdiWindowManager.cs:
11053         - Correct the control menu popup location when clicked on
11054         the maximized form icon. (fixes #80223.1)
11055         - Don't show moving rectangle if mouse hasn't moved from
11056         the original clicked point.
11057         - Removed FormGotFocus handler (not used).
11058         - Calculate the control buttons location from the main
11059         window's size and not client size (fixes #79770).
11060         - Form is now closed when the form icon is double-clicked
11061         (fixes #79775). 
11062         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
11063         
11064         * InternalWindowManager.cs:
11065         - Moved some MDI-only methods to MdiWindowManager.
11066         - Removed unused properties and methods.
11067         - Unified method naming for methods handling wm messages.
11068         - Moved all message handling to seperate methods for
11069         each message.
11070         
11071         * ThemeWin32Classic.cs:
11072         - DrawManagedWindowDecorations now draws the title bar 
11073         with a gradient brush.
11074         - Add a CPDrawButtonInternal that allows us to specify
11075         light, normal and dark colors for the buttons (control 
11076         buttons for MDI children were drawn with the same light
11077         color as the background, therefore loosing the 3D effect).
11078         
11079         * SizeGrip.cs:
11080         - Add a CapturedControl property that is used to 
11081         determine the control to resize (defaults to parent). 
11082         Needed for MdiClient, since its SizeGrip's parent is
11083         MdiClient, but the control to resize is the main form.
11084         
11085         * MdiClient.cs:
11086         - Set SizeGrip's CapturedControl to the main form in order
11087         to resize the main form and not the MdiClient.
11088         - Override AfterTopMostControl to leave the scrollbars 
11089         always on top.
11090
11091 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11092
11093         * ListView.cs: fixed ListViewItemCollection AddRange and
11094                         implemented ListViewItemCollection AddRange 2.0 support.
11095
11096 2006-12-15  Daniel Nauck  <dna@mono-project.de>
11097
11098         * ListViewGroup.cs: Add.
11099         * ListViewGroupCollection.cs: Add
11100         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
11101         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
11102                                 stub for ImageKey 2.0 support.
11103
11104 2006-12-14  Mike Kestner  <mkestner@novell.com>
11105
11106         * ListView.cs: add text padding to the autocalculation for columns
11107         of width -2.  Fixes #80207.
11108  
11109 2006-12-14  Mike Kestner  <mkestner@novell.com>
11110
11111         * ListView.cs: add some index guarding for partial row navigation 
11112         logic.  Fixes #80250.
11113
11114 2006-12-14  Mike Kestner  <mkestner@novell.com>
11115
11116         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
11117         are added or inserted to the collection.  Fixes #81099.
11118
11119 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
11120
11121         * MenuAPI.cs: Closes menu when right click out side of popup
11122         it fix problem in ContextMenu and MainMenu. Fixes #80252.
11123
11124 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11125
11126         * ListViewItem.cs: Fix dumb error.
11127
11128         * ListView.cs: Add Find and ContainsKey methods in 
11129         ListViewItemCollection, and also return true for IsReadOnly
11130         and IsFixedSize (changes for 2.0). 
11131
11132 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
11133
11134         * Control.cs: Allow Region to be set to null.
11135
11136 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11137
11138         * MdiWindowManager.cs: Remove unused (commented out) code.
11139         * Form.cs: When the MdiChild is maximized, the form needs 
11140         WM_NCMOUSELEAVE, so request it.
11141         * InternalWindowManager.cs: 
11142         - Added tooltips to control buttons.
11143         - Removed duplicated control button handling code.
11144         - Removed unused (commented out) code.
11145         
11146 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
11147
11148         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
11149         was used because we must set cursor without trigger ChangeCursor event
11150         and without change Cursor control property. Fixes #79963.
11151
11152 2006-12-12  Andreia Gaita  <avidigal@novell.com>
11153         
11154         * Control.cs: Check if Region setter value is null, and ignore
11155
11156 2006-12-12  Jackson Harper  <jackson@ximian.com>
11157
11158         * TextControl.cs: We were almost always drawing one more line then
11159         needed, since the GetLineByPixel will return the last line found
11160         at that pixel. In most cases though, we were invalidating up to
11161         the junction between two lines.
11162         - Improve debug code.
11163
11164 2006-12-12  Chris Toshok  <toshok@ximian.com>
11165
11166         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
11167         and FillReversibleRectangle.
11168
11169         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
11170         and FillReversibleRectangle.
11171
11172         * XplatUIWin32.cs: add stubs which do nothing for
11173         DrawReversibleFrame, DrawReversibleLine, and
11174         FillReversibleRectangle.
11175
11176         * XplatUIOSX.cs: add stubs which raise NIE for
11177         DrawReversibleFrame, DrawReversibleLine, and
11178         FillReversibleRectangle.
11179
11180         * XplatUIX11.cs: add working implementation for
11181         DrawReversibleFrame, DrawReversibleLine, and
11182         FillReversibleRectangle.
11183         
11184         * ControlPaint.cs: implement DrawReversibleFrame,
11185         DrawReversibleLine, and FillReversibleRectangle, by calling into
11186         the appropriate XplatUI method.
11187
11188 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11189
11190         * Form.cs: Make MdiClient have the focus even if it's
11191         not selectable, since it should receive WM_KEY* and WM_MOUSE 
11192         messages. Fixes #79907.
11193         
11194 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11195
11196         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
11197         queried after the window is created.
11198         
11199         * XplatUIX11.cs: Added SendParentNotify to implement 
11200         WM_PARENTNOTIFY logic. Fixes #79965.
11201         
11202         * Control.cs: Added MakeParam.
11203         
11204 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11205
11206         * MdiClient.cs: Resume Layout before setting window
11207         states (fixes #80201).
11208
11209 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11210
11211         * MenuAPI.cs: Deselect a menu item after performing
11212         the click (fixes #80197).
11213
11214 2006-12-11  Jackson Harper  <jackson@ximian.com>
11215
11216         * TextBoxBase.cs: We need to cap this value, since Maximum -
11217         ViewPortHeight can be less than zero.
11218         - Only do selection with the left mouse button.
11219         * TextBox.cs: Don't tell the world that we have a context menu.
11220         * Control.cs: New method so that we can control whether or not the
11221         context menu is visible outside MWF.
11222
11223 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
11224
11225         * ToolBarButton.cs: Fix text positon. 
11226
11227 2006-12-11  Miguel de Icaza  <miguel@novell.com>
11228
11229         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
11230
11231         * Control.cs (DoubleBuffered): Add implementation.
11232
11233         * Application.cs (OpenForms): Add.
11234
11235 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
11236
11237         * Form.cs: Use opacity instead of Opactiy to determine if we need
11238         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
11239
11240 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
11241
11242         * Control.cs: Fix NRE if Control.Site was set to null.
11243
11244 2006-12-11  Chris Toshok  <toshok@ximian.com>
11245
11246         * Control.cs: ControlCollection.Remove should return if the arg is
11247         null, and ControlCollection.SetChildIndex should raise a ANE.
11248
11249 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
11250
11251         * Control.cs: Verify value set for Dock property. Code formatting
11252         updates.
11253
11254 2006-12-11  Jackson Harper  <jackson@ximian.com>
11255
11256         * TextControl.cs: Draw the caret and the selection when a flag is
11257         set on the owner.
11258         * TextBoxBase.cs: We want to draw the caret and the selection for
11259         TextBox but not for TextBoxBase.
11260         - If the window is resized and scrolling is no longer needed (the
11261         whole doc is visible) set the scroll position to zero.
11262         - The default SelectWord (the one TextBox uses) should move the
11263         caret to the end of the word.
11264         - SelectAll moves the caret to the end of the selection.
11265         * TextBox.cs: We don't selectall on focus, we just do it when the
11266         control is created.
11267         
11268 2006-12-11  Mike Kestner  <mkestner@novell.com>
11269
11270         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
11271
11272 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11273
11274         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
11275         2.0 support.
11276         * ListViewItem.cs: Add Name 2.0 property.
11277
11278 2006-12-11  Andreia Gaita  <avidigal@novell.com>
11279
11280         * TabControl.cs: Set visibility on selected or default tab 
11281         when tabcontrol handle is created, so that it's contents
11282         actually show up (duh). Fixes #80193
11283         Don't redraw the control if there is no handle created, as
11284         the selected index might be completely invalid. Added some tests
11285         to check for this.
11286
11287 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
11288
11289         * ToolBar.cs: Uses maximun width and height of all buttons as 
11290         button rectangle when ButtonSize specified, it looks strange but
11291         is what happens in Win32. Fixes #80189.
11292
11293 2006-12-11  Jackson Harper  <jackson@ximian.com>
11294
11295         * TextControl.cs: Need to track undo levels ourself, since
11296         compound actions will mess them up.
11297
11298 2006-12-10  Andreia Gaita  <avidigal@novell.com>
11299
11300         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
11301         SelectedIndex value is changed (even if it's not valid).
11302         Reset SelectedIndex to 0 when the handle is created and if
11303         the current index is invalid.
11304         Fixes SelectdeIndex unit tests and #80128
11305
11306 2006-12-08  Chris Toshok  <toshok@ximian.com>
11307
11308         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
11309         calls EndEdit, it needs to be called before we set current_cell to
11310         its new value.  Otherwise, we end up committing the value in the
11311         textbox to the new cell as well.  Fixes bug #80160.
11312
11313 2006-12-08  Chris Toshok  <toshok@ximian.com>
11314
11315         * Form.cs (set_CancelButton): if the button's DialogResult is
11316         None, set it to Cancel.  Fixes bug 80180.
11317
11318 2006-12-08  Jackson Harper  <jackson@ximian.com>
11319
11320         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
11321         to watch ourselves when setting the canvas size and setting the
11322         scrollbar values.
11323
11324 2006-12-08  Chris Toshok  <toshok@ximian.com>
11325
11326         * DataGrid.cs: comment out the two MakeTransparent calls for the
11327         time being so people using trunk (and not 1.2.2) on windows can
11328         actually use the datagrid.  This deals with bug #80151.
11329
11330 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
11331
11332         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
11333         Graphics.DrawImage (image, int, int, int, int) overload instead
11334         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
11335         the dpi difference and was blurring images it drew.
11336         [Fixes bug #79960]
11337
11338 2006-12-08  Chris Toshok  <toshok@ximian.com>
11339
11340         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
11341         rowcnt is 0 (such as with an empty datasource), and make sure we
11342         initialize not_usedarea.Y to cells.Y, so we don't draw over the
11343         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
11344
11345 2006-12-08  Chris Toshok  <toshok@ximian.com>
11346
11347         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
11348         grid.
11349
11350 2006-12-08  Chris Toshok  <toshok@ximian.com>
11351
11352         [ Fixes bug #80167 ]
11353         
11354         * ThemeWin32Classic.cs: don't draw the image if the button's flat
11355         style is FlatStyle.System.
11356
11357         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
11358         ButtonBase.flat_style private, and switch uses of it to the public
11359         property.
11360         
11361 2006-12-08  Chris Toshok  <toshok@ximian.com>
11362
11363         [ Fixes bug #80121 ]
11364         
11365         * ThemeWin32Classic.cs: center the caption text in the datagrid
11366         when we draw it.
11367
11368         * DataGrid.cs: lessen the amount we add to the caption height from
11369         6 to 2.  6 was making it huge.
11370
11371 2006-12-08  Andreia Gaita  <avidigal@novell.com>
11372
11373         * UpDownBase: Handle MouseWheel call directly instead of capturing
11374         the inner textbox's OnMouseWheel. Fixes #80166
11375
11376 2006-12-08  Jackson Harper  <jackson@ximian.com>
11377
11378         * TextControl.cs: We need to invalidate the textbox when we empty
11379         it (how had this not been discovered before?)
11380
11381 2006-12-08  Jackson Harper  <jackson@ximian.com>
11382
11383         * TextBoxBase.cs: Reworked the mouse down code so I could get it
11384         to behave like MS, we now ignore the eventargs.Click and just
11385         track state ourself, which we were already doing anyways.
11386         - Constrain the double click handler to the double click size.
11387         
11388 2006-12-08  Chris Toshok  <toshok@ximian.com>
11389
11390         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
11391         direction if that scrollbar isn't shown.  fixes bug #80158.
11392
11393 2006-12-08  Andreia Gaita  <avidigal@novell.com>
11394
11395         * NumericUpDown.cs: Update value on getter. Fixes #79950
11396
11397 2006-12-08  Chris Toshok  <toshok@ximian.com>
11398
11399         * MenuItem.cs: add back in the event cloning code.  I didn't know
11400         how to do it in the face of the EventHandlerList work i'd done
11401         last week.  Fixes bug #80183.
11402
11403 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
11404
11405         * Control.cs: Add an invalidate to the BackgroundImage setter.
11406         [Fixes 80184]
11407
11408 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
11409
11410         * ToolStrip*: Add some small properties reported by MoMA, fix event
11411         firing and default properties based off of unit tests, and add some
11412         attributes based off of the class status page.
11413
11414 2006-12-07  Jackson Harper  <jackson@ximian.com>
11415
11416         * TextBoxBase.cs: Take HideSelection into account when determining
11417         whether or not to show the selection.
11418         * RichTextBox.cs: After inserting the RTF into the document move
11419         the cursor to the beginning of the document.
11420
11421 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
11422
11423         * Control.cs: Remove static ArrayList "controls" which maintained
11424         a reference to every control created.
11425         * Application.cs: Create a static FormCollection to maintain a reference
11426         to every form created.  Use it in places that formerly enumerated through
11427         the controls one looking for forms.
11428         * Form.cs: Add and remove self from above FormCollection.
11429
11430 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
11431
11432         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
11433           not libgdk (though it makes me wonder why I didn't have any
11434           problems)
11435
11436 2006-12-07  Chris Toshok  <toshok@ximian.com>
11437
11438         [ you had to know this was coming after that last commit...]
11439         
11440         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
11441         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
11442         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
11443         XCopyArea).
11444
11445 2006-12-07  Chris Toshok  <toshok@ximian.com>
11446
11447         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
11448         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
11449         all the behavior we need for double buffering.
11450
11451         * XplatUIDriver.cs: implement the 3 double buffer methods using a
11452         client side Bitmap, just like the old Control-based double buffer
11453         code did.  The methods are virtual, so each XplatUI driver
11454         subclass can replace the implementation to use a faster, platform
11455         specific approach.
11456
11457         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
11458         double buffer code, and clean things up a bit in the process.
11459
11460 2006-12-06  Chris Toshok  <toshok@ximian.com>
11461
11462         * Control.cs: reindent WndProc.
11463
11464 2006-12-06  Chris Toshok  <toshok@ximian.com>
11465
11466         [ I wanna be like BenM when I grow up ]
11467         
11468         * Hwnd.cs: create a single static Graphics object on the static
11469         Bitmap we create.  use this for our text measurements.
11470
11471         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
11472         This was causing us to allocate a backbuffer for every control,
11473         even when it wasn't flagged as double buffered.  Instead use the
11474         single graphics instance.  This might have implications for
11475         multithreaded applications.  If we run into problems we can switch
11476         to creating 1 Graphics per control, on the static Hwnd bitmap.
11477
11478         this change nets us a 7M savings in private dirty mappings when
11479         running FormsTest.exe.
11480
11481 2006-12-06  Chris Toshok  <toshok@ximian.com>
11482
11483         * ListView.cs: the BackgroundImage override is just to set
11484         attributes.  chain up to base.BackgroundImage.
11485
11486         * RichTextBox.cs: same.
11487
11488         * ToolBar.cs: same, but we need to also redraw the toolbar when it
11489         changes, so instead a handler for BackgroundImageChanged.
11490         
11491         * Control.cs: make background_image private.
11492
11493 2006-12-06  Chris Toshok  <toshok@ximian.com>
11494
11495         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
11496         sure we even need this assignment, but roll with it for now.
11497
11498         * Control.cs: make the cursor field private.
11499
11500 2006-12-06  Chris Toshok  <toshok@ximian.com>
11501
11502         * Form.cs: we don't need to explicitly set ImeMode to
11503         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
11504         behavior in the face of ImeMode.Inherit.
11505
11506         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
11507         change the ctor's assignment to use ImeMode instead of ime_mode.
11508
11509         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
11510         ImeModeInherit.  Only check for the parent's imemode (and return
11511         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
11512         This fixes the button unit test, which sets both ImeMode and
11513         DefaultImeMode to ImeMode.Disable.
11514
11515         also make the ime_mode field private.
11516
11517 2006-12-06  Chris Toshok  <toshok@ximian.com>
11518
11519         * Control.cs: make control_style private.
11520
11521         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
11522         setting the styles to true, then setting them to false instead of
11523         reverting to their previous values.
11524
11525         also, call SetStyle on the scrollbars instead of using
11526         control_style directly.
11527
11528 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
11529
11530         * FormCollection.cs: Implement. [2.0]
11531
11532 2006-12-06  Chris Toshok  <toshok@ximian.com>
11533
11534         * Control.cs: make tab_stop private.
11535
11536         * Label.cs: set TabStop, not tab_stop.  reformat some event
11537         add/remove methods to make them more compact.
11538
11539 2006-12-06  Chris Toshok  <toshok@ximian.com>
11540
11541         * RadioButton.cs: fix TabStop handling.
11542
11543 2006-12-06  Chris Toshok  <toshok@ximian.com>
11544
11545         * TextBox.cs: remove the explicit assignments to has_focus.
11546         Control does that.
11547
11548         * ButtonBase.cs: remove the assignment to has_focus.  Control will
11549         manage that.
11550         
11551 2006-12-06  Chris Toshok  <toshok@ximian.com>
11552
11553         * ButtonBase.cs: remove all uses of is_enabled from this code.
11554         it's always true when any of the code containing the checks is
11555         executed.
11556
11557 2006-12-06  Chris Toshok  <toshok@ximian.com>
11558
11559         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
11560         with different semantics (some are present in both 1.1 and 2.0
11561         profiles) so that we match MS's behavior in our unit tests.
11562
11563 2006-12-06  Jackson Harper  <jackson@ximian.com>
11564
11565         * TextControl.cs: Make this operation undoable.
11566         * TextBoxBase.cs: Factor the border width into the preferred
11567         height.
11568         - implement Modified as per the spec.
11569
11570 2006-12-06  Chris Toshok  <toshok@ximian.com>
11571
11572         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
11573
11574 2006-12-06  Chris Toshok  <toshok@ximian.com>
11575
11576         * Control.cs: make right_to_left and context_menu fields private.
11577
11578 2006-12-06  Chris Toshok  <toshok@ximian.com>
11579
11580         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
11581         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
11582         Control.child_controls private.  switch all uses over to
11583         Control.Controls.
11584
11585 2006-12-06  Chris Toshok  <toshok@ximian.com>
11586
11587         * System.Windows.Forms/GroupBox.cs,
11588         System.Windows.Forms/AccessibleObject.cs,
11589         System.Windows.Forms/ErrorProvider.cs,
11590         System.Windows.Forms/Control.cs,
11591         System.Windows.Forms/UpDownBase.cs,
11592         System.Windows.Forms/ScrollBar.cs,
11593         System.Windows.Forms/DateTimePicker.cs,
11594         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
11595         System.Windows.Forms/ToolTip.cs,
11596         System.Windows.Forms/RadioButton.cs,
11597         System.Windows.Forms/LinkLabel.cs,
11598         System.Windows.Forms/Splitter.cs,
11599         System.Windows.Forms/TextBoxBase.cs,
11600         System.Windows.Forms/ToolStripTextBox.cs,
11601         System.Windows.Forms/ContainerControl.cs,
11602         System.Windows.Forms/ThemeWin32Classic.cs,
11603         System.Windows.Forms/SizeGrip.cs,
11604         System.Windows.Forms/ToolStripDropDown.cs,
11605         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
11606         private.  switch all uses over to Control.Parent.
11607
11608 2006-12-06  Chris Toshok  <toshok@ximian.com>
11609
11610         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
11611         Control does this before calling emitting these events.
11612
11613         * TabControl.cs: same.
11614
11615         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
11616         Control.client_rect.
11617
11618         * ButtonBase.cs: use the ClientSize property instead of the
11619         client_size field.
11620
11621         * ScrollableControl.cs: same.
11622
11623         * Control.cs: another pass at making properties private.  also,
11624         move the initialization of tab_stop to the ctor.
11625
11626 2006-12-05  Andreia Gaita <avidigal@novell.com>
11627
11628         * TabControl.cs: Let the selected index be set freely if the 
11629         control handle is not yet created.
11630
11631 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
11632
11633         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
11634         internal until I can rewrite DefaultLayout.
11635         * ToolStrip.cs: Fix build error and some general cleaning.
11636         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
11637         Fix build errors caused by making some of Control's fields private.
11638
11639 2006-12-05  Jackson Harper  <jackson@ximian.com>
11640
11641         * TextControl.cs: Redo Insert a little so that it use IndexOf
11642         instead of Split, this prevents it from messing up on things like
11643         \n\n\n. Also more effecient since the split array doesn't need to
11644         be created.
11645         * TextBoxBase.cs: AppendText doesnt handle multiline and non
11646         multiline text differently, this is the first of many fixes that
11647         will make multiline/non-multiline the same thing as far as the
11648         TextBoxBase is concerned.
11649         - Don't split the text and insert lines, this can lose some line
11650         endings (like is the last line a soft or hard break). Instead use
11651         the new Insert.
11652         - Fix an off by one when combining all the lines in the Text
11653         getter.
11654         - Remove separate multiline handling from the Text getter/setter.
11655
11656 2006-12-05  Chris Toshok  <toshok@ximian.com>
11657
11658         * ButtonBase.cs: a few changes:
11659
11660         - don't reinitialize internal Control fields in the ctor when they
11661         have the same values as Control sets them.
11662
11663         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
11664         this before calling those methods.
11665
11666         - we don't need to call Refresh for anything.  use Invalidate
11667         instead.
11668
11669         - OnEnabledChanged doesn't need to redraw at all - Control.cs
11670         calls Refresh in its OnEnabledChanged.
11671         
11672         - several of the events we were registered for in the ctor to
11673         redraw ourselves already include calls to Invalidate in the
11674         property setters that raise the events.  remove the extra
11675         invalidation.
11676
11677         - reformat a switch statement that was 83274658 columns wide.
11678         
11679 2006-12-05  Mike Kestner  <mkestner@novell.com>
11680
11681         * ComboBox.cs: fix a unit test regression from a TextBox
11682         SelectionLength return of -1 when there's no selection.  
11683
11684 2006-12-05  Chris Toshok  <toshok@ximian.com>
11685
11686         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
11687         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
11688         cleaning up some of the internal Control fields being used by
11689         subclasses.
11690
11691 2006-12-05  Mike Kestner  <mkestner@novell.com>
11692
11693         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
11694         listbox after AddImplicit calls since it defaults to hidden. Add a 
11695         hack to preserve requested heights across DropDownStyle changes.
11696
11697 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
11698
11699         * PropertyGrid.cs: Hide FindFirstItem method from public API.
11700
11701 2006-12-05  Chris Toshok  <toshok@ximian.com>
11702
11703         * DataGridView.cs: fix compiler warnings.
11704
11705         * PrintControllerWithStatusDialog.cs: same.
11706
11707         * ToolBar.cs: same.
11708
11709         * FolderBrowserDialog.cs: same.
11710
11711         * Splitter.cs: same.
11712
11713         * DataGridViewComboBoxCell.cs: same.
11714
11715         * XplatUIWin32.cs: same.
11716
11717         * PictureBox.cs: same.
11718
11719         * Win32DnD.cs: same.
11720
11721         * PageSetupDialog.cs: same.
11722
11723         * FileDialog.cs: same.
11724
11725         * PrintDialog.cs: same.
11726
11727         * DataGridTextBoxColumn.cs: same.
11728
11729         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
11730
11731 2006-12-05  Chris Toshok  <toshok@ximian.com>
11732
11733         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
11734         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
11735         System.ComponentModel.EventHandlerList work.
11736
11737 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
11738
11739         * DrawTreeNodeEventArgs.cs: Added.
11740
11741 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11742         
11743         * InternalWindowManager.cs: Remove an unused field.
11744         
11745 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11746
11747         * InternalWindowManager.cs:
11748         - Save the point where the title bar is clicked.
11749         
11750         * MdiWindowManager.cs:
11751         - Only allow moving of the window as long as the 
11752         clicked point on the title bar does not get out of
11753         MdiClient's rectangle. Fixes #79982.
11754         
11755         * MdiClient.cs:
11756         - Added Horizontal/VerticalScrollbarVisible.
11757         - Simplified the scrollbar sizing algorithm.
11758         - Cache the difference in scrolled value in
11759         H/VBarValueChanged and move the calculation out
11760         of the for loop.
11761
11762 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11763
11764         * Control.cs: Make the Console.WriteLine in WndProc 
11765         write more info.
11766
11767 2006-12-05  Chris Toshok  <toshok@ximian.com>
11768
11769         * ToolStripManager.cs, ToolStripButton.cs,
11770         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
11771         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
11772         ToolStripSplitButton.cs, ToolStripSeparator.cs,
11773         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
11774         ToolStripProgressBar.cs, ToolStripContainer.cs,
11775         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
11776         to using System.ComponentModel.EventHandlerList.
11777
11778 2006-12-04  Chris Toshok  <toshok@ximian.com>
11779
11780         * LinkLabel.cs: fix up compiler warnings.
11781
11782         * TableLayoutSettings.cs: same.
11783
11784         * TreeView.cs: same.
11785
11786         * ToolBar.cs: same.
11787
11788         * TabControl.cs: same.
11789
11790         * RichTextBox.cs: same.
11791
11792         * ListViewItem.cs: same.
11793
11794         * PropertyGrid.cs: same.
11795
11796         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
11797
11798         * ToolTip.cs same.
11799
11800         * TextRenderer.cs: fix up compiler warnings.
11801
11802         * Label.cs: same.
11803
11804         * Form.cs: corcompare fixes.
11805
11806         * PictureBox.cs: fix up compiler warnings.
11807
11808         * ImageListStreamer.cs: same.
11809
11810         * TrackBar.cs: corcompare fix.
11811
11812         * Control.cs: fix up compiler warnings.
11813
11814         * SplitterPanel.cs: same.
11815
11816         * NumericTextBox.cs: same.
11817
11818         * ImageList.cs: same.
11819
11820         * StatusStrip.cs: same.
11821
11822         * ProgressBar.cs: corcompare fix.
11823
11824         * ToolStripButton.cs: fix up compiler warnings.
11825
11826         * ToolStripStatusLabel.cs: same.
11827
11828         * ToolStripSplitButton.cs: same.
11829
11830         * ToolStripSeparator.cs: same.
11831
11832         * ToolStripProgressBar.cs: same.
11833
11834         * ToolStripDropDownMenu.cs: same
11835
11836         * ToolStripDropDown.cs: same.
11837
11838         * ToolStripDropDownButton.cs: same.
11839
11840         * ToolStrip.cs: same.
11841
11842         * ToolStripControlHost.cs: same.
11843
11844         * ToolStripContentPanel.cs: same.
11845
11846         * ToolStripDropDown.cs: same.
11847
11848         * ToolStripContainer.cs: same.
11849
11850         * ToolStripPanel.cs: same, and add "new" where we need it to work
11851         with the new ArrangedElementCollection.
11852
11853         * ToolStripItemCollection.cs: add "new" where we need it to work
11854         with the new ArrangedElementCollection.
11855
11856 2006-12-04  Andreia Gaita <avidigal@novell.com>
11857
11858         * TabControl.cs: Fix default tab selection to after TabControl
11859         gets focus and not before. Fixes #80128
11860
11861 2006-12-04  Chris Toshok  <toshok@ximian.com>
11862
11863         * DataGridTableStyle.cs: remove the gross calling of
11864         datagrid.Refresh from here.  It's a broken idea and it doesn't
11865         work anyway.
11866
11867         * DataGrid.cs: instead, just register/unregister from the
11868         DataGridTableStyle events in CurrentTableStyle.  we play it
11869         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
11870         even though some would most likely not require it.  Fixes bug
11871         #80115 (and one portion of #80117 as a side effect).
11872
11873 2006-12-04  Chris Toshok  <toshok@ximian.com>
11874
11875         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
11876         so the textbox (if any) goes away.  Fixes bug #80117.
11877
11878 2006-12-04  Chris Toshok  <toshok@ximian.com>
11879
11880         * DataGridColumnStyle.cs: set the column's readonly property
11881         initially based on the property descriptor's IsReadOnly.  Fixes
11882         bug #80044.
11883
11884 2006-12-04  Chris Toshok  <toshok@ximian.com>
11885
11886         * ComboBox.cs: wrap the dropdown style changing work in
11887         SuspendLayout/ResumeLayout.  Fixes bug #79968.
11888
11889 2006-12-04  Jackson Harper  <jackson@ximian.com>
11890
11891         * TextBoxBase.cs: Fix off by one, since these are one-based.
11892         * TextBox.cs: Select all the text when we get focus.  The TextBox
11893         does this but the RTB does not.
11894
11895 2006-12-04  Chris Toshok  <toshok@ximian.com>
11896
11897         * DataGridTextBoxColumn.cs: remove some spew.
11898
11899         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
11900         but some part of me is saying "it shouldn't be here.."  At any
11901         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
11902         setting the value.
11903
11904 2006-12-04  Chris Toshok  <toshok@ximian.com>
11905
11906         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
11907         to reassign the propertydescriptor.
11908
11909 2006-12-04  Jackson Harper  <jackson@ximian.com>
11910
11911         * TextBoxBase.cs:
11912         * TextControl.cs: Remove some unused variables.  Maybe this will
11913         patch things up between mike and I.
11914         - don't split lines less then one char wide, if the viewport is
11915         that small text won't be visible anyways.
11916         
11917 2006-12-04  Jackson Harper  <jackson@ximian.com>
11918
11919         * TextBoxBase.cs: Default selection length is -1, need to do some
11920         more testing on windows to see when this is used for the property.
11921         - Redid the Lines [] property to that we properly remove soft line
11922         breaks
11923         - added support for preserving carriage returns
11924         -  CanUndo is not a variable like 'is undo enabled' it just returns
11925         true if there is undo operations available.
11926         - AppendText doesn't need to grab the last tag itself anymore,
11927         this happens automatically when we move the cursor.
11928         * TextControl.cs: Add CompoundActions to the undo class. This
11929         allows combining the other operations into one big option.  ie a
11930         paste will combine { delete old, insert new, move cursor }
11931         - Add InsertString undo operation
11932         - New method for deleting multiline text
11933         - Add carriage returns to lines. So we can preserve carriage
11934         returns when text is 'roundtripped'
11935
11936 2006-12-04  Chris Toshok  <toshok@ximian.com>
11937
11938         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
11939         minimum 0.  Fixes the scrollbar exception in bug #80136.
11940
11941 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11942
11943         * MdiClient.cs: 
11944         * MdiWindowManager: Removed unused fields and methods.
11945         
11946 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11947         
11948         * StatusBar.cs: Update all panels when a AutoSize=Contents
11949         panel needs updating.
11950         
11951         * StatusBarPanel.cs: Remove twidth and only use initialize.
11952         Fixes #80031.
11953                 
11954 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11955
11956         * Form.cs: When a form's MdiParent is set add it directly
11957         on top of the z-order in stead of relying on MdiClient's
11958         ActivateChild to do it. Fixes #80135.
11959         
11960         * MdiClient.cs: 
11961         - Remove original_order, mdi_child_list is already doing
11962         the same thing.
11963         - Create mdi_child_list on construction in
11964         stead of first use (avoids a few null checks).
11965
11966         * MenuItem.cs: Use an already existing list of mdi children
11967         to get the correct order of children and remove the other
11968         redundant list.
11969
11970 2006-12-04  Chris Toshok  <toshok@ximian.com>
11971
11972         * PropertyGridView.cs: cached_splitter_location is only used in
11973         !DOUBLEBUFFER code.
11974
11975         * PropertyGrid.cs: implement the ComComponentNameChanged event
11976         using Events, hoping that would fix the warning.  Looks like a
11977         compiler bug instead (#80144).
11978
11979         * PropertyManager.cs: remove unused method.
11980
11981 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
11982
11983         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
11984         include parentesis to fix expression evaluation. Fixes #79634.
11985
11986 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
11987         
11988         * MenuAPI.cs:
11989         - Changes to fix behavior in Menu control, some reported in #80097
11990         and other detected during behavior refactory like a select event
11991         problems.
11992         - Remove unneded "if's" conditions.
11993         - Created an internal to flag when popup is active in control, we need 
11994         it because in .NET you can have menu active but without popup active
11995         when you active menu using popup without visible items.
11996         - Mimic win32 behavior for Select and Popup events.  
11997         - Dont open popup menu when you dont have visible subitems.
11998         - Do nothing when click on disabled menu item.
11999         - Some small changes to follow the coding style guidelines.
12000         - Unselect menu only when another control gives focus. Fixes #80097.
12001         - Remove unused code.
12002         
12003         * MenuItem.cs: internal VisibleItems method to check if menu
12004         theres visible subitems, it will be usefull to fix some 
12005         behavior in Menu control.
12006         
12007 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
12008         
12009         * Timer.cs: Tag property for 2.0 profile.
12010         
12011 2006-12-01  Chris Toshok  <toshok@ximian.com>
12012
12013         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
12014         
12015         * Win32DnD.cs: comment out some unused fields.
12016
12017         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
12018         some unused properties/methods.
12019
12020         * XplatUIX11.cs: fix MousePosition so we override the base class's
12021         property instead of conflicting with it.
12022
12023         * PictureBox.cs: comment out some unused fields
12024
12025         * OSXStructs.cs: make some struct fields public.
12026
12027         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
12028         MousePosition so we override the base class's property instead of
12029         conflicting with it.
12030
12031         * X11Dnd.cs: comment out some unused fields
12032
12033         * X11DesktopColors.cs: fix some struct field visibility to quiet
12034         the compiler.
12035
12036         * X11Dnd.cs: remove some debug code.
12037
12038         * ThemeClearlooks.cs: comment out unused field.
12039
12040         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
12041
12042         * ThemeGtk.cs: comment out some unused pinvokes.
12043
12044         * Timer.cs: remove some unused fields.
12045
12046         * ThemeClearlooks.cs: comment out unused field.
12047
12048         * UpDownBase.cs: comment out unused field.
12049
12050         * DataObject.cs: comment out unused field.
12051
12052         * DataGridBoolColumn.cs: reomve unused field.
12053
12054         * DataGrid.cs: remove unused field.
12055
12056         * Cursor.cs: remove old ToBitmap code.
12057
12058         * ControlPaint.cs: remove unused method.
12059
12060         * ScrollBar.cs: remove unused fields.
12061
12062         * ComboBox.cs: remove unused field, and chain up to
12063         AccessibleObject ctor.
12064
12065         * ListBox.cs: remove unused field.
12066
12067         * ButtonBase.cs: wrap a couple fields in NET_2_0.
12068
12069         * GridEntry.cs: remove unused fields.
12070
12071         * Binding.cs: remove unused fields.
12072
12073         * AxHost.cs: remove unused method.
12074
12075         * ContainerControl.cs: remove unused field.
12076
12077         * ScrollableControl.cs: remove unused fields.
12078
12079 2006-12-01  Chris Toshok  <toshok@ximian.com>
12080
12081         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
12082         the Where/WhereString stuff.  it's easy enough to CWL
12083         Environment.StackTrace.
12084
12085         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
12086         unused private fields.
12087
12088 2006-12-01  Jackson Harper  <jackson@ximian.com>
12089
12090         * TextControl.cs: Do not update the view while inserting multiline
12091         text. If we update the view we might wrap lines, before entering
12092         the new lines, which causes the new line insertion calculations to
12093         be totally fubared.
12094         - Remove an old TODO
12095         - Make debug output a little nicer
12096         
12097 2006-12-01  Chris Toshok  <toshok@ximian.com>
12098
12099         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
12100
12101 2006-12-01  Chris Toshok  <toshok@ximian.com>
12102
12103         [ fix the majority of the CS0108 warnings we've been suppressing ]
12104         
12105         * TreeView.cs: mark BackgroundImageChanged as 'new'.
12106
12107         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
12108         to "LayoutToolBar" to quiet mcs.
12109         
12110         * TabControl.cs: mark our ControlCollection class as 'new'.
12111
12112         * TextBoxBase.cs: mark some events as 'new'.
12113
12114         * Splitter.cs: TabStop is 'new'.
12115
12116         * ControlBindingsCollection.cs: mark a few methods as new since
12117         they change the visibility from protected to public.
12118
12119         * RadioButton.cs: DoubleClick -> base class, and remove unused
12120         HaveDoubleClick.
12121
12122         * MonthCalendar.cs: ImeMode property -> base class, and mark many
12123         events as new.
12124
12125         * NumericUpDown.cs: TextChanged -> base class.
12126
12127         * CheckedListBox.cs: mark our ObjectCollection class as new to
12128         quiet mcs.
12129
12130         * FolderBrowserDialog.cs: make HelpRequest event new and have it
12131         muck with the base class.
12132
12133         * StatusBar.cs: fix some mcs warnings about Update being the same
12134         name as a base class method.
12135
12136         * RichTextBox.cs: mark some events as new, and make them do things
12137         to the base class impl.
12138
12139         * UserControl.cs: mark TextChanged as new, and have it manipulate
12140         base.TextChanged.
12141
12142         * UpDownBase.cs: mark some things new.
12143
12144         * CheckBox.cs: mark DoubleClick "new", and add some text about
12145         what we need to look at.
12146
12147         * Panel.cs: make the events "new", and manipulate the base
12148         version.  these are just here for attributes.
12149
12150         * AccessibleObject.cs: make owner private.
12151
12152         * Control.cs: deal with AccessibleObject.owner being private.
12153         cache our own copy if we need it.
12154
12155         * Button.cs: add "new" to the DoubleClickEvent.
12156
12157         * ListBox.cs: no need to track our own has_focus here.  let
12158         Control.has_focus do it for us.  Also some other work to clear up
12159         warnings about not overriding base class methods of the same name.
12160         
12161         * ComboBox.cs: clear up some warnings about not override base
12162         class methods of the same name.
12163
12164 2006-12-01  Chris Toshok  <toshok@ximian.com>
12165
12166         * Form.cs: flag a few things as "new" to quiet some of the mcs
12167         warnings.
12168
12169         * AxHost.cs: same.
12170
12171         * PrintPreviewDialog.cs: same.
12172
12173         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
12174         now DGV isn't so horrible on the class status page.  also, move
12175         all events to using System.ComponentModel.EventHandlerList.  my
12176         wrists hurt.
12177
12178 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12179
12180         * MdiWindowManager.cs:
12181         - Set form to active mdi child if shown,
12182         and update the active mdi child to the next 
12183         remaining child in the z-order if the form is hidden.
12184
12185         * Form.cs: 
12186         - Track if the form has been visible and if its 
12187         visibility is beeing changed, so that the MdiClient
12188         can properly decide the ActiveMdiChild. The MdiClient 
12189         cannot track this since the form can change visibility 
12190         before MdiClient is created.
12191
12192         * MdiClient.cs:
12193         - Don't activate anything of the parent form is changing
12194         its visibility.
12195         - Rework ActiveMdiChild to only return visible mdi 
12196         children and take into account several other corner 
12197         cases.
12198
12199 2006-12-01  Chris Toshok  <toshok@ximian.com>
12200
12201         * IBindableComponent.cs: new 2.0 interface.
12202
12203 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
12204
12205         * DataGrid.cs: Font for caption area is bold by default.
12206
12207 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
12208
12209         * Menu.cs: Tag property for 2.0.
12210         
12211 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
12212
12213         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
12214         
12215 2006-12-01  Chris Toshok  <toshok@ximian.com>
12216
12217         * TreeView.cs: doh, the Begin* events should be
12218         TreeViewCancelEventHandler.
12219
12220 2006-12-01  Chris Toshok  <toshok@ximian.com>
12221
12222         * Form.cs: Form.ControlCollection already stores off the
12223         form_owner field.  don't access the base class's internal "owner"
12224         field.
12225
12226         * Control.cs: make all the fields in Control.ControlCollection
12227         private.  there's no need for any internal fields here.
12228
12229 2006-12-01  Chris Toshok  <toshok@ximian.com>
12230
12231         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
12232         OnHandleCreated.  Fixes bug #80109.
12233
12234 2006-12-01  Chris Toshok  <toshok@ximian.com>
12235
12236         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
12237         SplitContainer.cs, Control.cs, StatusStrip.cs,
12238         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
12239         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
12240         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
12241         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
12242         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
12243         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
12244         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
12245         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
12246         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
12247         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
12248
12249         do most of the work to convert our code over to use
12250         System.ComponentModel.Component.Events for
12251         adding/removing/dispatching events.
12252
12253
12254 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
12255
12256         * DataGridView.cs: Fix an ArgumentNullException reported 
12257         twice today in IRC.
12258
12259 2006-11-30  Mike Kestner  <mkestner@novell.com>
12260
12261         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
12262         grabbed listbox.  Fixes #80036 and #80101.
12263
12264 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
12265
12266         * Message.cs: Changed ToString() to match MS.
12267         
12268 2006-11-30  Jackson Harper  <jackson@ximian.com>
12269
12270         * TextBoxBase.cs: You can still change the selected text on a read
12271         only textbox.
12272         * TextControl.cs: Lower magic number for wrap calculations. This
12273         lets text get closer to the right (far) edge.
12274
12275 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
12276
12277         * Control.cs: Tweak 2.0 layout properties.
12278         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
12279         * TextRenderer.cs: Add a new overload.
12280         * ToolStrip*: Huge amount of changes and new features.
12281
12282 2006-11-30  Mike Kestner  <mkestner@novell.com>
12283
12284         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
12285         scroll range correct.  Fixes #79994.
12286
12287 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
12288
12289         * MdiWindowManager.cs: Update main form's text when
12290         a form is closed. (fixes #80038)
12291         
12292 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
12293
12294         * ToolBar.cs:
12295         - Fix an regression in ButtonSize.
12296         - Get ImeMode default value change to "Disable".
12297         - Get ShowTooltips default value change to true, default value is 
12298         "false" but after make a test in .NET we get "true" result as default.
12299         
12300 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
12301
12302         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
12303
12304 2006-11-29  Chris Toshok  <toshok@ximian.com>
12305
12306         * XplatUIWin32.cs (GetWindowTransparency): check return value of
12307         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
12308         SetWindowTransparency hasn't been called.
12309
12310 2006-11-29  Chris Toshok  <toshok@ximian.com>
12311
12312         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
12313         if it's supported.
12314         (set_AllowTransparency): reorder things a little so that the
12315         WS_EX_LAYERED style is removed properly.
12316
12317 2006-11-29  Chris Toshok  <toshok@ximian.com>
12318
12319         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
12320         
12321         * Form.cs: only call the XplatUI transparency method (get/set) if
12322         SupportsTransparency says it's supported. Otherwise fallback to
12323         doing nothing (in the set case) or returning the instance field we
12324         cache (in the get case).
12325
12326         * XplatUIStructs.cs: add TransparencySupport flag enum.
12327         
12328         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
12329         change to SupportsTransparency.
12330
12331         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
12332         TransparencySupport.None from SupportsTransparency.
12333
12334         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
12335         TransparencySupport.Set from SupportsTransparency.
12336
12337         * XplatUIWin32.cs: implement GetWindowTransparency calling
12338         GetLayeredWindowAttributes, and implement SupportsTransparency by
12339         checking whether or not both
12340         GetWindowTransparency/SetWindowTransparency are available
12341         entrypoints.  We need to do this since SetWindowTransparency is
12342         available as of win2k, but GetWindowTransparency requires winxp.
12343         yay win32 api.
12344
12345         * XplatUI.cs: Add GetWindowTransparency, and change
12346         SupportsTransparency to allow for either/both Get/Set.
12347
12348 2006-11-29  Chris Toshok  <toshok@ximian.com>
12349
12350         * DataGrid.cs: keep from going into an infinite loop redrawing a
12351         datagrid that has no datasource.  Fixes bug #80033.
12352
12353 2006-11-29  Chris Toshok  <toshok@ximian.com>
12354
12355         * MenuItem.cs: fix the NRE when we assign text (and therefore call
12356         Invalidate) before the mainmenu has been assigned to a control.
12357
12358 2006-11-29  Chris Toshok  <toshok@ximian.com>
12359
12360         * DataGrid.cs: detect when we should be double the double click
12361         row/column autosize stuff, although that codepath has yet to be
12362         written.  part of the work for bug #79891.
12363
12364 2006-11-29  Chris Toshok  <toshok@ximian.com>
12365
12366         * Binding.cs (SetControl): fix unit test.
12367
12368 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12369
12370         * PageSetupDialog.cs: Validate the margins and set them in
12371         PageSettings. 
12372         * NumericTextBox.cs: New class to mimic the behavior of the
12373         textboxes used in the printing dialogs.
12374
12375 2006-11-29  Andreia Gaita  <avidigal@novell.com>
12376         
12377         * Form.cs: Revert previous change (remove call UpdateBounds
12378         from form constructor), because it messes with the handle creation
12379         order, and that one needs lots and lots of love.
12380         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
12381         for valid printer and throw InvalidPrinterException if document
12382         is set but printer not valid), adding a MonoTODO. Once 
12383         handle creation is done properly, we can put this back in.
12384
12385 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
12386
12387         * MenuItem.cs: Create a invalidate method for menu item, to be
12388         calling from set text, it make text changes to imadiate update
12389         on screen. Fixes #80013. 
12390         
12391 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
12392
12393         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
12394         fixes bug #80070 and some other problem on toolbar buttons
12395         layout.
12396
12397 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
12398
12399         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
12400         with dotted brush.      Fixes #79564
12401         
12402 2006-11-28  Andreia Gaita  <avidigal@novell.com>
12403
12404         * Form.cs: Removed call to UpdateBounds on Form
12405         constructor, it was causing a call to CreateHandle
12406         before it was supposed to.
12407         * PrintControllerWithStatusDialog: Applied patch
12408         by Chris Toshok to hide controller when there are
12409         no printers available.
12410         PrintDialog.cs: initialize printer settings to 
12411         null - correct DefaultValues test #5
12412         * PrintPreviewControl.cs: Move PrintController
12413         initialization to GeneratePreview
12414         * PrintPreviewDialog.cs: 
12415         - Remove Preview generation     from Document_set(). It is 
12416         called on OnPaint
12417         - Throw InvalidPrinterException on CreateHandle if
12418         a Document is set but there are no printers or 
12419         printer is not valid.
12420         * ThemeWin32Classic: don't paint PrintPreviewControl
12421         if there is nothing to paint    
12422
12423 2006-11-28  Miguel de Icaza  <miguel@novell.com>
12424
12425         * Form.cs: Add another popular method.
12426
12427         * TabPage.cs: ditto.
12428
12429 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12430
12431         * MenuItem.cs: Fixed a warning.
12432         * InternalWindowManager: Fixed a warning.
12433
12434 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12435
12436         * MenuItem.cs:
12437         - When cloning a menu also clone MdiList and clone the 
12438           window menu items properly (as the forms and menuitems
12439           are kept in an internal hashtable, these need updating 
12440           as well)
12441         - Rewrote the window menu code, menu items are added in the
12442           order the forms were added to their parent, and they are
12443           updated every time the window menu is shown (before the
12444           list was only generated once, in the current order of the
12445           forms, and would never be updated). A checkmark is shown
12446           next to the item corresponding to the active mdi child.
12447
12448 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12449
12450         * XplatUIStructs.cs: 
12451         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
12452         
12453         * XplatUIWin32.cs: 
12454         - Added TME_NONCLIENT to TMEFlags.
12455         - Handles WM_NCMOUSEMOVE in GetMessage to 
12456           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
12457
12458         * MdiWindowManager:
12459         - Now merges mdi child menu to parent menu when maximized.
12460         - Recalculate NC areas of both mdi child and mdi parent. 
12461           Fixes #79757 (4).
12462           on window state and size changes.Fixes #79844 (3).
12463         - Handle WM_NCCALCSIZE to properly calculate borders.
12464
12465         * Form.cs:
12466         - Add/remove to the mdi containers list of mdi children 
12467           in the order they are added.
12468         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
12469           to the maximized mdi child.
12470         
12471         * InternalWindowManager.cs:
12472         - Only execute a click on the control buttons on the mouse up,
12473           not on the mouse down. Show the state of the button 
12474           (was only showing Normal state, never Pressed state). The
12475           pressed button now follows the mouse (if you click the Close 
12476           button and move the mouse over the Maximize button, the 
12477           Maximize button will be shown as pressed). Since Win32 does
12478           not generate WM_NCLBUTTONUP if you release the button outside
12479           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
12480           it as a mouse up.
12481         
12482         * ThemeWin32Classic.cs:
12483         - Draw a missing border around mdi child forms. Fixes #79844 (2).
12484
12485         * MdiClient.cs:
12486         - Added a list of forms which contains the order the forms are
12487           added to the mdi parent.
12488         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
12489         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
12490         - If the active form changes set the scrollbars to the top
12491           of the Z order, otherwise the form could hide them.
12492         - Scrollbars are now sized according to ClientSize, not 
12493           to Size, and they take into account the other scrollbar
12494           to determine maximum.
12495         
12496 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
12497         
12498         * XplatUI.cs:
12499         * XplatUIDriver.cs:
12500         * XplatUIX11.cs:
12501         * XplatUIWin32.cs:
12502         * XplatUIOSX.cs:
12503         - Added RequestAdditionalWM_NCMessages for windows to 
12504           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
12505           Currently only implemented in XplatUIWin32.
12506
12507 2006-11-27  Chris Toshok  <toshok@ximian.com>
12508
12509         * Hwnd.cs: only add the hwnd to the windows hash in
12510         set_WholeWindow and set_ClientWindow if whole_window/client_window
12511         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
12512
12513 2006-11-27  Mike Kestner  <mkestner@novell.com>
12514
12515         * ComboBox.cs: remove redundant OnDropDown call.  It is called
12516         from the ComboListBox.ShowWindow code. Fixes #79969.
12517
12518 2006-11-27  Chris Toshok  <toshok@ximian.com>
12519
12520         * Hwnd.cs: remove the setters for ExposePending and
12521         NCExposePending - noone uses them.
12522
12523 2006-11-27  Jackson Harper  <jackson@ximian.com>
12524
12525         * TextControl.cs: new param for ReplaceSelection which determines
12526         whether we select the new selection, or set the cursor to the end
12527         of the new selection.
12528         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
12529         pasting, select the new text.
12530         * RichTextBox.cs: Use new param for ReplaceSelection.
12531
12532 2006-11-27  Jackson Harper  <jackson@ximian.com>
12533
12534         * TextBoxBase.cs: Set the selection to the caret after the caret
12535         is moved, otherwise they get out of sync.
12536
12537 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
12538
12539         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
12540         it fixes #80015
12541
12542 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
12543
12544         * ThemeWin32Classic.cs: 
12545         - Fix toolbar drop down arrow position.
12546         - Fix drop down appearance when ToolBar.Appearance is normal,
12547         it fixes #80018.
12548         
12549 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
12550
12551         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
12552         * Control.cs: Same.
12553         * UpDownBase.cs: Same.
12554         * ButtonBase.cs: Same.
12555         * ScrollBar.cs: Same.
12556         * TrackBar.cs: Same.
12557         * PictureBox.cs: Same.
12558         * UserControl.cs: Same.
12559         * Label.cs: Same.
12560         * ListControl.cs: Same.
12561         * TextBoxBase.cs: Same.
12562         * ListView.cs: Same.
12563         * RichTextBox.cs: Same.
12564         * TreeView.cs: Same.
12565
12566 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
12567
12568         * PrintDialog.cs:
12569         - Text label for where 
12570         - Text label comment was not shown
12571
12572 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
12573
12574         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
12575
12576 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12577
12578         * InternalWindowManager.cs: 
12579         - Handle WM_PARENTNOTIFY to activate the form
12580         if any child control is clicked.
12581         - The form is only sizable if not minimized.
12582
12583         * MdiWindowManager.cs:
12584         - Save the IconicBounds if the form is moved.
12585         - Rework SetWindowState, now the window bounds 
12586         are stored only if the old window state is Normal.
12587         
12588         * MdiClient.cs:
12589         - In SetWindowStates store the old window state if 
12590         the window is maximized and restore window state if
12591         the window looses focus.
12592         - Don't handle any scrollbar value changes if 
12593         initializing the scroll bars. Fixes #79771.
12594         - Reworked ArrangeIconicWindows. Current algorithm
12595         tests bounds agains all other minimized windows, if
12596         any intersections create new bounds (going left to 
12597         right, bottom to top) and then test again. When 
12598         successful the bounds are saved and never computed
12599         again. Fixes #79774.
12600
12601 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12602
12603         * InternalWindowManager.cs: Added HandleTitleBarUp.
12604
12605 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12606
12607         * NumericUpDown.cs: In .NET 1.1, user entered text is still
12608         hexadecimal in ParseUserEdit.
12609
12610         
12611 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12612
12613         * MdiWindowManager.cs: 
12614         - Handle a click on the form's icon to show the 
12615         system menu (when maximized). Fixes #79775.
12616         - Change the existing click handler for the form's
12617         icon when not maximized to show on MouseUp.
12618         Fixes #79776.
12619
12620         * Form.cs: In OnResize only layout the mdi child's
12621         parent if it actually has a parent. Might not if
12622         the window is closing.
12623
12624
12625 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12626
12627         * MdiClient.cs: Ignore active MDI client for text of parent, if
12628         child has no text set.
12629
12630 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12631
12632         * ToolBar.cs: Fixed ToString to match MS.
12633
12634 2006-11-22  Andreia Gaita  <avidigal@novell.com>
12635
12636         * NumericUpDown: 
12637         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
12638         update inner values on set. Fixes #79966.
12639         - Override OnLostFocus to update value on NET 2. Fixes #79950.
12640         - Fix hexadecimal parsing.
12641         
12642         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
12643         parent. Fixes #79957
12644
12645 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12646
12647         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
12648         the actual size has to be queried, since if height /
12649         width is negative Win32 changes it to 0. 
12650         Fixes #79999 on Windows.
12651         
12652         * XplatUIX11.cs: Set height / width to 0 if negative
12653         in SetWindowPos. Fixes #79999 on Linux.
12654         
12655 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
12656
12657         * ThemeWin32Classic.cs: Fix text redenring when button is
12658         pressed.
12659
12660 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
12661
12662         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
12663         and later navigate by mouse. Fixes #79528.
12664
12665 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
12666
12667         * ToolBar.cs: Set default value for TabStop to false in
12668         constructor, it fixes remaining behavior of bug #79863.
12669
12670 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12671
12672         * MdiWindowManager.cs:
12673         * InternalWindowManager.cs:
12674         - Moved a few methods specific to Mdi from 
12675         InternalWindowManager to MdiWindowManager.
12676         Fixes #79996.
12677         
12678 2006-11-21  Chris Toshok  <toshok@ximian.com>
12679
12680         * XplatUIOSX.cs: stub out InvalidateNC.
12681
12682         * XplatUIWin32.cs: implement InvalidateNC using the call I found
12683         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
12684
12685         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
12686
12687         * XplatUIDriver.cs: add InvalidateNC abstract method.
12688
12689         * XplatUI.cs: add InvalidateNC.
12690
12691 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
12692
12693         * ToolBar.cs: Invalidate complete button area when pressed status 
12694         was changed.
12695         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
12696         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
12697         by 1 when button is pressed.
12698
12699 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12700
12701         * ToolButton.cs: Invalidate middle of DropDown button when
12702         ToolBar theres DropDownArrows.
12703         * ThemeWin32Classic.cs: Change position of DropDown arrow and
12704         fix DropDown drawing operations.
12705
12706 2006-11-20  Chris Toshok  <toshok@ximian.com>
12707
12708         * NativeWindow.cs: fix the formatting of functions ('{' on the
12709         following line), and enable the thread exception dialog.
12710
12711         * Application.cs: remove the duplicate exception catching from
12712         here.
12713
12714 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12715
12716         * Toolbar.cs: Triggers button click event when click on icon
12717         of dropdown ToolBarButton. Fixes #79912.
12718         
12719 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12720
12721         * Theme.cs:
12722         * ThemeWin32Classic.cs:
12723         - Added a property WindowBorderFont to enable themeing
12724           of mdi child windows' Text.
12725           
12726 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12727
12728         * InternalWindowManager.cs:
12729         * Form.cs:
12730         * MdiClient.cs:
12731         * MdiWindowManager.cs: 
12732         - If mdi child is maximized, set mdi parent's
12733           text to "Parent - [Child]". Fixes #79770.
12734         - If there is any maximized mdi child windows, only the active 
12735           window (and any new windows) is maximized, the rest are normal.
12736         - On a WindowState change only save mdi child's window bounds 
12737           if the old window state was normal. Fixes #79774.
12738         - The scroll bars are now calculated on hopefully all
12739           necessary events. Fixed #79771 / #79844->6 / #79906.
12740         - MdiClient.SizeScrollBars() now takes into account docked 
12741           controls in the parent when calculating available space.
12742         - InternalWindowManager now always repaints the entire title
12743           area. Fixes #79844->1/4/5.
12744         - Added RequestNCRecalc on mdi child windowstate changes.
12745           Fixes #79772.
12746
12747 2006-11-20  Mike Kestner  <mkestner@novell.com>
12748
12749         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
12750         in the MouseUp handler of the listbox and move the return handling
12751         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
12752
12753 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12754
12755         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
12756
12757 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
12758
12759         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
12760           working in 1.2.x anymore. So, updated.
12761
12762 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
12763
12764         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
12765         NumberGroupSeparator of current culture instead of assuming en-US.
12766         Fixed bug #79967.
12767
12768 2006-11-17  Mike Kestner  <mkestner@novell.com>
12769
12770         * Control.cs: Add the concept of implicit bounds setting so that
12771         dock/undock round trips preserve explicitly set size/locations.
12772         Fixes #79313.
12773
12774 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
12775
12776         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
12777           can't handle those filters. (Fixes bug #79961)
12778
12779 2006-11-17  Chris Toshok  <toshok@ximian.com>
12780
12781         [ fixes the exit/crashes associated with #79835.  it's clearly
12782         suboptimal though, we need to figure out a better way to solve
12783         this. ]
12784         
12785         * PrintPreviewControl.cs: deal with the new invalid printer
12786         exceptions.
12787
12788         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
12789         and return false (so CommonDialog.ShowDialog doesn't actually show
12790         the form.)
12791
12792         * PrintDialog.cs: enable/disable the Ok button depending on
12793         whether or not the printer is valid.
12794
12795         * CommonDialog.cs (ShowDialog): only actually show the form if
12796         RunDialog returns true.
12797
12798 2006-11-17  Jackson Harper  <jackson@ximian.com>
12799
12800         * TextControl.cs: When soft splitting a line, mark it as a soft
12801         split line. Also carry over the current line break to the next
12802         line.
12803
12804 2006-11-17  Chris Toshok  <toshok@ximian.com>
12805
12806         * XplatUIX11.cs: when scrolling a window with an invalid area, we
12807         only want to shift the part of the invalid area that overlaps the
12808         area we're scrolling.  we also don't want to clear the invalid
12809         area unless the invalid area was entirely contained within the
12810         scrolling area.
12811
12812 2006-11-16  Chris Toshok  <toshok@ximian.com>
12813
12814         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
12815         also make sure to free the memory returned by XGetWindowProperty
12816         in GetText().
12817
12818         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
12819
12820 2006-11-16  Chris Toshok  <toshok@ximian.com>
12821
12822         * XplatUI.cs: add a new super secret way to get at the totally
12823         unsupported X11 backend.
12824
12825 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
12826
12827         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
12828
12829 2006-11-16  Jackson Harper  <jackson@ximian.com>
12830
12831         * TreeView.cs: Allow more explicit setting of top node position
12832         for scrollbars. Slower algo, but more accurate.
12833         - CollapseAll should maintain the current top node.
12834         * TextBoxBase.cs: When positioning the caret, use the line, pos
12835         method, since the x, y method does not grab the correct tag, and
12836         the caret height never gets set correctly. (Maybe I should just do
12837         away with the caret having its own height, and always use the
12838         carets current tag for height).
12839
12840 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
12841
12842         [Fixes 79778, 79923]
12843
12844         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
12845         Parent to the FosterParent instead.
12846
12847 2006-11-16  Jackson Harper  <jackson@ximian.com>
12848
12849         * TreeView.cs: Need to recalc the topnode when we expand or
12850         collapse. The scrolling methods can't handle this on their own,
12851         since they use differences between the last scroll position, and
12852         those difference get completely messed up since we are expanding
12853         nodes.  This problem should probably be fixed in the scrolling
12854         methods, so they can figure out exactly where they are, but this
12855         will slow things down a little.
12856         * ThemeWin32Classic.cs: Special case for groupboxes with empty
12857         strings, makes nunit-gui look a lot nicer.
12858
12859 2006-11-16  Chris Toshok  <toshok@ximian.com>
12860
12861         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
12862         the broken multithreaded event handling we have in here.  File
12863         this entry under "Why we should move to the new X11 backend".
12864
12865         Any thread can make it into UpdateMessageQueue, which gets events
12866         from the X socket - some of which could belong to hwnds being
12867         managed by a different thread.  We can also have multiple threads
12868         in UpdateMessageQueue at the same time, with each one reading from
12869         the X socket.  This leads to many problems, with the following
12870         solutions:
12871
12872         We can't use hwnd.Queue.Enqueue anywhere in here and must use
12873         EnqueueLocked.
12874
12875         The MotionNotify compression we do can't work across threads
12876         (without locking the entire queue, perhaps) since we call
12877         hwnd.Queue.Peek, so we just punt and don't compress motion events
12878         unless the owning thread is the one which got the X event.
12879
12880         ConfigureNotify is another fun one, since it modifies the hwnd's
12881         bounds and then enqueues the event.  We add a lock to Hwnd which
12882         is held when setting configure_pending to true (and enqueuing the
12883         event).
12884
12885         There is a race wrt the wake socket.  we need to make sure that
12886         only 1 thread is waiting on that socket, or else a thread could
12887         sleep waiting for data that never comes.  It's difficult (but not
12888         impossible) to make happen, because it seems to require something
12889         like the following:
12890
12891             1. Thread 1 polls on wake_receive
12892         
12893             2. poll returns saying there's data to be read on
12894                wake_receive.
12895         
12896             3. Thread 2 polls on wake_receive and immediately returns
12897                saying there's data to be read.
12898
12899             4. Thread 2 reads the wakeup byte from wake_receive
12900
12901             5. Thread 1 attempts to read the wakeup byte from
12902                wake_receive.
12903
12904             6. Thread 2 exits (due to a form closing, perhaps).
12905
12906             7. Thread 1 blocks forever.
12907         
12908         Fun, eh?
12909
12910         Fixing the Expose handling isn't done yet, and the races inherent
12911         in that piece of code are responsible for the drawing mistakes you
12912         see when generating expose events in a MT app (like NPlot).  This
12913         one is the likely to be the hardest to bandaid, and it doesn't
12914         appear to cause anything but drawing problems.  The other issues
12915         caused apps to exit or hang.
12916
12917         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
12918         called from a different thread than the one that should be calling
12919         these functions.
12920
12921         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
12922
12923 2006-11-15  Chris Toshok  <toshok@ximian.com>
12924
12925         * Application.cs: null out the context's MainForm when we exit
12926         RunLoop.  Fixes a newly checked in unit test as well as the last
12927         ODE from bug #79933.
12928
12929 2006-11-15  Chris Toshok  <toshok@ximian.com>
12930
12931         * Form.cs (set_Owner): allow a null value so we can clear the
12932         form's owner.
12933         (Dispose): set all our owned_form's Owner properties to null, and
12934         clear the owned_forms collection.
12935         (WM_CLOSE): clean up this a little bit.. still not right though.
12936
12937         * ApplicationContext.cs: OnMainFormClosed should only call
12938         ExitThreadCore if the main form isn't recreating.  Fixes unit
12939         test.
12940
12941 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12942
12943         [Fixes 78346]
12944
12945         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
12946
12947 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12948
12949         [Fixes 79433]
12950
12951         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
12952         keep popup window types from stealing focus from the main form
12953         on Windows.
12954
12955         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
12956
12957         * MenuAPI.cs: Set above flag to true.
12958
12959 2006-11-15  Chris Toshok  <toshok@ximian.com>
12960
12961         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
12962         the button being released is not in wParam.
12963
12964 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12965
12966         * Form.cs: Add the released button to MouseEventArgs.Button
12967         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
12968         on Win32.
12969
12970 2006-11-15  Chris Toshok  <toshok@ximian.com>
12971
12972         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
12973         GetText().  untested because it's unused in our implementation.
12974         Control.Text always caches the text, even if
12975         ControlStyles.CacheText is not set.
12976
12977         fixes bug #79939.
12978
12979 2006-11-15  Chris Toshok  <toshok@ximian.com>
12980
12981         [ fixes #79933 ]
12982         
12983         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
12984         message.  no hiding, no disposing.
12985
12986         in the WM_CLOSE handler, hide the form if it's modal.
12987
12988 2006-11-15  Chris Toshok  <toshok@ximian.com>
12989
12990         * XplatUIX11.cs: use AddExpose instead of sending a message.
12991         fixes textbox border drawing.
12992
12993 2006-11-15  Chris Toshok  <toshok@ximian.com>
12994
12995         * PropertyGridView.cs: keep from crashing on mouse move/down when
12996         the property grid is empty.
12997
12998 2006-11-14  Jackson Harper  <jackson@ximian.com>
12999
13000         * TextControl.cs: Make PageUp and PageDown more like the MS
13001         versions.
13002         * TextBoxBase.cs: When we set the text property position the
13003         cursor at the beginning of the document.
13004
13005 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13006
13007         * Form.cs: if a mdi child's WindowState has changed
13008         before it's creation, it would display wrong control
13009         buttons.
13010         
13011 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
13012
13013         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
13014           (Fixes bug #79927)
13015
13016 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13017
13018         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
13019         the window gets to paint its borders even if the window is
13020         getting smaller.
13021         
13022         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
13023         otherwise the old control buttons would still be painted 
13024         if the window gets bigger.
13025         
13026         * PaintEventArgs.cs: add an internal method so that the clip 
13027         rectangle can be changed.
13028         
13029 2006-11-13  Chris Toshok  <toshok@ximian.com>
13030
13031         [ fixes bug #79745 ]
13032         
13033         * NotifyIcon.cs: lots of cleanup.
13034
13035         * X11Structs.cs: add an enum for XEMBED messages.
13036
13037         * XplatUIX11.cs: reindent one of the giant switch statements, it
13038         was taking up an additional tab stop, and this file is already way
13039         too wide for my laptop's screen.
13040
13041         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
13042         we get it, resize the hwnd to the WMNormalHints max_width/height.
13043
13044 2006-11-13  Jackson Harper  <jackson@ximian.com>
13045
13046         * TextBoxBase.cs: Compute the value changes for the mouse wheel
13047         teh simple way.
13048
13049 2006-11-13  Chris Toshok  <toshok@ximian.com>
13050
13051         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
13052         #79898.  force a reference to the Region to stick around so the
13053         unmanaged object isn't collected (rendering our handle in the MSG
13054         stale).
13055
13056 2006-11-13  Chris Toshok  <toshok@ximian.com>
13057
13058         * XplatUIX11.cs: fix #79917 for window managers which support
13059
13060         using XStoreName on the raw utf8, and we need to convert to
13061         COMPOUND_TEXT if it's non-latin1.
13062
13063 2006-11-13  Chris Toshok  <toshok@ximian.com>
13064
13065         * Form.cs (set_DialogResult): we need to set closing to false if
13066         we're setting our result to None.  fixes bug #79908.
13067
13068 2006-11-13  Jackson Harper  <jackson@ximian.com>
13069
13070         * TextControl.cs: When formatting text, compute the adjusted tag
13071         lengths correctly, using FindTag for the end tag instead of trying
13072         to figure it out outselves.
13073         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
13074         the item, ItemHeight doesn't work, because trees with large
13075         imagelists use those for their height
13076         * TreeView.cs: ActualItemHeight factors in the image height
13077         - compute left edge of checkboxes correctly
13078         - when expanding/collapsing move the bottom down one pixel, so we
13079         aren't moving part of the node
13080
13081 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13082
13083         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
13084         stack in PaintEventStart so that it won't get disposed by the gc
13085         before reaching PaintEventEnd.
13086
13087 2006-11-13  Jackson Harper  <jackson@ximian.com>
13088
13089         * TextBoxBase.cs: Don't select the word if we are on a line with
13090         no text.
13091         - We don't need to position the caret on mouse up, since the mouse
13092         move handler should be doing this
13093         - When double clicking a blank line, the caret is advanced to the
13094         next line.
13095
13096 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
13097
13098         * TreeNodeCollection.cs: Avoid duplicating indexer code.
13099
13100 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
13101
13102         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
13103         Fixes part of bug #79910.
13104
13105 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
13106
13107         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
13108           (bug #79903). Some minor string updates to match ms.
13109
13110 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
13111
13112         * FileDialog.cs: Don't add an extension if the filename
13113           already ends with that extension.
13114
13115 2006-11-10  Jackson Harper  <jackson@ximian.com>
13116
13117         * TreeView.cs: Use the currently highlighted node for the
13118         BeforeSelect event.
13119         * TextBoxBase.cs: There is no need to expand selection on
13120         MouseMove.
13121         - CanUndo means 'is there any undo operations', not 'is undo
13122         allowed on this textcontrol. Fixed ClearUndo unit test.
13123
13124 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
13125
13126         * Button.cs: only perform click when button is Selectable (so as 
13127         not to activate default buttons when they're disabled)
13128         
13129         * Control.cs: Rewrite of the SelectNextControl and related 
13130         methods. HandleClick now selects next control if the current one
13131         is being disabled.
13132         
13133         * Form.cs: OnActivated selects next active control only if Load 
13134         has already occurred. If Load hasn't run, there's no point in 
13135         selecting here, Load might change the state of controls.
13136         
13137         * FocusTest.cs: Tests marked as working again for these fixes
13138
13139 2006-11-10  Chris Toshok  <toshok@ximian.com>
13140
13141         * XplatUIX11.cs: a couple of fixes.
13142
13143         - use XInternAtoms with almost all the atoms we need to register,
13144         instead of many, many calls to XInternAtom.  should help a bit on
13145         startup time, at the expense of making the code look a little
13146         worse.
13147
13148         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
13149         isn't reparented (which seems to be a clue that we're running fon
13150         compiz) and they have an Owner form.  This fixes the tool windows
13151         in paint.net when running under compiz.
13152
13153         - when setting the opacity of a window, support both the case
13154         where the window has been reparented and also when it hasn't been.
13155         Since compiz/beryl doesn't seem to reparent windows, and these are
13156         the only window managers which support translucency, I'm not sure
13157         why we need the hwnd.reparented case at all.. but leave it in.
13158         now we get translucent windows in paint.net under compiz/beryl.
13159
13160 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
13161
13162         * FileDialog.cs: Always return the value for FilterIndex that
13163           was set. Internally convert it to values that make sense.
13164
13165 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
13166         
13167         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
13168
13169 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
13170
13171         * Toolbar.cs: Change default value of DropDownArrows to true, the 
13172         signature still using false to make it compatible with MS but the 
13173         initial value is true. Fixes #79855.
13174
13175 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
13176
13177         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
13178           only available on Linux.
13179
13180 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
13181
13182         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
13183         reduce number of calls to redraw method during toolbar creation.
13184
13185 2006-11-09  Mike Kestner  <mkestner@novell.com>
13186
13187         * ListView.cs : raise SelectedIndexChanged when an item is selected
13188         programmatically via the Item.Selected property.  Gert's nice 
13189         ListViewSelectedIndexChanged test fixture now runs clean.
13190
13191 2006-11-09  Mike Kestner  <mkestner@novell.com>
13192
13193         * ListView.cs : raise SelectedIndexChanged when a selected item is
13194         removed from the item collection using Remove or RemoveAt.
13195
13196 2006-11-09  Mike Kestner  <mkestner@novell.com>
13197
13198         * ListView.cs : raise SelectedIndexChanged once per selected item
13199         for compat with MS.  Fixes #79849+.
13200
13201 2006-11-09  Chris Toshok  <toshok@ximian.com>
13202
13203         * TabControl.cs: initialize row_count to 0, and set it to 1 when
13204         we need to (if we have any tab pages).  Fixes unit test.
13205
13206 2006-11-09  Chris Toshok  <toshok@ximian.com>
13207
13208         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
13209         width is 0, not 3.  Fixes a unit test.
13210
13211 2006-11-09  Mike Kestner  <mkestner@novell.com>
13212
13213         * ListView.cs : use Implicit scrollbars so that focus isn't 
13214         stolen from the listview when they are clicked. Fixes #79850.
13215
13216 2006-11-09  Chris Toshok  <toshok@ximian.com>
13217
13218         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
13219         have a root item.  Fixes #79879.
13220
13221 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
13222
13223         * FileDialog.cs:
13224           - Fix ToString ()
13225           - An ArgumentException is now thrown if a wrong filter
13226             is applied (matches ms). The previous filter doesn't change
13227             anymore if an exception is thrown.
13228           - Changing the FileName property also affects FileNames
13229         * ColorDialog.cs: The length of the CustomColors array is always
13230           16. It doesn't matter if we use a smaller array or null to update
13231           or change the custom colors property.
13232         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
13233           for RootFolder if we get a undefined value.
13234
13235 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13236
13237         * StatusBarPanel.cs: 
13238         - Width is set to MinWidth if Width is smaller than
13239         MinWidth. Fixes #79842.
13240         - MinWidth now always overrides Width (MSDN says MinWidth
13241         is set to Width when AutoSize = None, but they do not 
13242         behave like that).
13243         - Style has now the the correct default value.
13244         
13245 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13246  
13247         * TrackBar.cs: 
13248         - The control is completely invalidated on 
13249         Got/LostFocus to draw the focus rectangle correctly.
13250         - When AutoSize then height is always 45 (width for 
13251         vertical controls).
13252         
13253         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
13254         on the mouse when moved and it doesn't move when grabbed
13255         until the mouse moves as well. Also fixed some wrong 
13256         calculations when clicking on the thumb (control thought
13257         click was outside of thumb and didn't grab it).
13258         Fixes some of the issues in #79718.
13259
13260 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
13261
13262         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
13263
13264 2006-11-08  Chris Toshok  <toshok@ximian.com>
13265
13266         * PropertyGridView.cs: only call ToggleValue if the item is not
13267         readonly.
13268
13269 2006-11-08  Jackson Harper  <jackson@ximian.com>
13270
13271         * TextBoxBase.cs: The RichTextBox and textbox have very different
13272         word selection methods.  Implement the textbox's simple word
13273         selection here, and let the RichTextBox override and provide it's
13274         own.
13275         - Don't do extra selection on mouseup
13276         * RichTextBox.cs: Use the documents word selection algorithm, I
13277         think ideally, this function will be pulled into the
13278         RichTextBox.cs code someday.
13279
13280 2006-11-08  Chris Toshok  <toshok@ximian.com>
13281
13282         * RootGridEntry.cs: new class to represent GridItemType.Root.
13283
13284         * CategoryGridEntry.cs: reformat, and add boilerplate.
13285         
13286         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
13287         returns the UI parent anyway, and we need special handling to
13288         implement the GetTarget method in the face of it.  Also, implement
13289         Select().
13290
13291         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
13292         a root grid item, and use that instead of PropertyGrid.grid_items.
13293         Also, make use of TypeConverters (and add limitted support for
13294         ICustomTypeDescriptors) when initially populating the grid.
13295         Arrays now show up more or less properly.
13296
13297 2006-11-08  Chris Toshok  <toshok@ximian.com>
13298
13299         * Application.cs: set the modal dialog to non modal after we close
13300         it.  Fixes bug #79866.
13301
13302 2006-11-08  Jackson Harper  <jackson@ximian.com>
13303
13304         * TextControl.cs: When combining lines carry over the line end
13305         style from the end line.
13306         - Invalidate the selected area when setting it, if it is visible.
13307         * TextBoxBase.cs: Only rich text box can do full line selects.
13308         - Make sure to set the cursor position when there is a click,
13309         otherwise two clicks in separate areas could cause a large chunk
13310         to be selected.
13311
13312 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13313
13314         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
13315         Fixes #79863.
13316
13317 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13318
13319         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
13320         time. Remove tooltips when ToolButton click events.  Fixes #79856.
13321
13322 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13323
13324         * MenuAPI.cs: Ignore right click for menu actions and fixes
13325         menu border when clicked.  Fixes #79846.
13326
13327 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13328
13329         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
13330         MouseState after create wParam for message, this fixes mouse button 
13331         equal none in mouse up events.
13332         
13333 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
13334
13335         * Control.cs : Focus() now calls Select to set the Container's
13336         Active Control and to give it focus. To avoid infinite recursion
13337         (because ActiveControl also calls Focus at one point), a check 
13338         is made in Focus with the help of a new internal variable
13339         is_focusing.
13340
13341 2006-11-07  Mike Kestner  <mkestner@novell.com>
13342
13343         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
13344         if there's a selection.  Fixes #79849.
13345
13346 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
13347
13348         * PropertyGrid.cs: Avoid fixed height of help description label.
13349         Fixes part of bug #79829.
13350
13351 2006-11-07  Chris Toshok  <toshok@ximian.com>
13352
13353         * XplatUIX11.cs: fix #79790 again, by using the
13354         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
13355
13356 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13357
13358         * ToolBar.cs: Fix left click checking.
13359
13360 2006-11-07  Chris Toshok  <toshok@ximian.com>
13361
13362         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
13363
13364 2006-11-07  Chris Toshok  <toshok@ximian.com>
13365
13366         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
13367         PropertyManager unit tests.
13368
13369         * PropertyManager.cs: make property_name internal.
13370
13371 2006-11-07  Chris Toshok  <toshok@ximian.com>
13372
13373         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
13374         pass a unit test.  Also, don't set image_index to anything in
13375         response to setting the ImageList property.
13376
13377 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
13378
13379         * ToolBar.cs: Ignore click events when mouse button is not a
13380         left button, only accepts other button for dropdown menus.  
13381         Fixes #79854.
13382
13383 2006-11-07  Chris Toshok  <toshok@ximian.com>
13384
13385         * DataGrid.cs: make the back and parent row buttons a little less
13386         ugly.
13387
13388 2006-11-07  Jackson Harper  <jackson@ximian.com>
13389
13390         * TextBoxBase.cs: When converting to Text don't put line breaks in
13391         for soft line breaks.
13392         * TextControl.cs: There is an initial "fake" line in the document,
13393         this is now a soft break line, so that an extra line feed doesn't
13394         get added to the end of documents.
13395
13396 2006-11-07  Chris Toshok  <toshok@ximian.com>
13397
13398         [ fix bug #79778 ]
13399         
13400         * CurrencyManager.cs: if the list is readonly, don't bother
13401         checking if IBindingList.AllowNew is true.
13402
13403         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
13404         for non-DataRowView datasources..  or rather, make it not crash.
13405         (DataGridPaintRelationRow): make sure we limit the row painting to
13406         the area not covered by the row header, and make our cell width at
13407         least large enough to cover the relation area.  This allows grids
13408         that have relations but no rows to render correctly.
13409         (DataGridPaintRowContents): same type of changes here.
13410         (SetDataSource): move back to always calling
13411         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
13412         navigating back through relations.
13413         (HitTest): handle the case where we have no cells but have
13414         relations.  Right now we generate a hit in cell 0 of whatever the
13415         row is, not sure if this is strictly correct, but it works for our
13416         purposes.
13417         
13418         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
13419         bother doing anything.
13420
13421 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
13422
13423         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
13424         early version of StatusStrip.  Not responsible for eaten
13425         application or firstborn children.
13426
13427 2006-11-06  Chris Toshok  <toshok@ximian.com>
13428
13429         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
13430         call GetTabRect with a -1 index.  Fixes #79847.
13431
13432 2006-11-06  Jackson Harper  <jackson@ximian.com>
13433
13434         * TreeNodeCollection.cs: Update scrollbars after clearing.
13435
13436 2006-11-06  Chris Toshok  <toshok@ximian.com>
13437
13438         * NumericUpDown.cs: fix the ToString method for some unit test
13439         love.
13440
13441 2006-11-06  Chris Toshok  <toshok@ximian.com>
13442
13443         * PropertyGrid.cs:
13444         - set the initial SelectedGridItem if we can.
13445
13446         - Exclude non-mergable properties only if we're merging > 1
13447         object.  Merging 1 object isn't really merging, obviously.
13448
13449         - Handle PropertySort.NoSort just like Alphabetical, which is
13450         wrong of course, but at least gets things on the screen.
13451         
13452         * PropertyGridView.cs:
13453         - Add method "FindFirstItem" which finds the first property grid
13454         item, so we can select it by default.
13455
13456         - make use of GridEntry.CanResetValue.
13457
13458         - Don't call RedrawBelowItemOnExpansion here anymore, the
13459         individual GridEntry's will do that.
13460
13461         - Remove the ITypeDescriptorContextImpl internal class.
13462         
13463         * GridEntry.cs:
13464         - this class needs to implement ITypeDescriptorContext, as it's
13465         what MS's PropertyDescriptorGridEntry does, which means we can
13466         remove the ITypeDescriptorContextImpl internal class from
13467         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
13468
13469         - keep a reference to our PropertyGridView, and move the call to
13470         RedrawBelowItemOnExpansion here from PGV.  This means
13471         programmaticly setting Expanded actually does something visible.
13472
13473         - add a CanResetValue() function which takes into account our
13474         possibly multiple "selected_objects" in the merged case.  Shifting
13475         PropertyGridView to use this method fixes another unreported
13476         crasher found running the test for #79829.
13477
13478         - when Top or Bounds is updated, make sure the PropertyGridTextBox
13479         is updated to reflect this.
13480
13481         * CategoryGridEntry.cs: the ctor takes the PGV now.
13482         
13483 2006-11-06  Jackson Harper  <jackson@ximian.com>
13484
13485         * TextControl.cs: These are 1 based.
13486         * TextBoxBase.cs: When setting the selected text, don't change the
13487         selected text tags, this is done by ReplaceText, just position the
13488         cursor at the end of the new text.
13489
13490 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
13491
13492         * ListView.cs: Allow label edit only when, when LabelEdit is
13493           set to true.
13494
13495 2006-11-06  Jackson Harper  <jackson@ximian.com>
13496
13497         * TextControl.cs: If a suitable wrapping position isn't found,
13498         just wrap right in the middle of a word.
13499
13500 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
13501
13502         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
13503           bug #79820.
13504
13505 2006-11-06  Jackson Harper  <jackson@ximian.com>
13506
13507         * TreeView.cs: Can't use the VisibleCount property when setting
13508         scrollbar heights, because this doesn't take into account whether
13509         or not the horz scrollbar just came visible.
13510
13511 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
13512
13513         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
13514         activated.  Fixes #79369, #79832.
13515
13516 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
13517
13518         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
13519           had to remove support for links that point to a directory. FileInfo
13520           returns no usefull information (means, the directory they point to)
13521           for such links. Replaced some empty string ("") with String.Empty.
13522
13523 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
13524
13525         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
13526         NullReferenceException when attempting to remove node that is not in
13527         collection. Throw NullReferenceException when null is passed to 
13528         Remove. Allow first element of the collection to be removed. Fixes
13529         bug #79831.  In GetEnumerator ().Current return null if positioned 
13530         before the first element of the collection. In GetEnumerator ().Reset,
13531         position before first element of the collection.
13532
13533 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
13534
13535         * PropertyGrid.cs: To match MS, remove default title and description
13536         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
13537         buttons.
13538
13539 2006-11-04  Chris Toshok  <toshok@ximian.com>
13540
13541         * Theme.cs: add a Clamp method, just for kicks.
13542
13543         * ThemeWin32Classic.cs: clamp all color components to [0..255].
13544
13545 2006-11-04  Chris Toshok  <toshok@ximian.com>
13546
13547         * Form.cs: if the form isn't visible, Close() does nothing.
13548
13549 2006-11-03  Chris Toshok  <toshok@ximian.com>
13550
13551         * Form.cs (Close): if the form is modal, don't Dispose of it, only
13552         Hide it.
13553         (WndProc): don't Dispose after handling the WM_CLOSE message.
13554
13555         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
13556         them as such, instead of using casts from Control to Form.  Also,
13557         don't Dispose of the modal dialog when we fall out of the loop -
13558         Close() it instead.
13559
13560         fixes bug #79813.
13561
13562 2006-11-03  Chris Toshok  <toshok@ximian.com>
13563
13564         * Control.cs (Dispose): only go through the dispose thing if we're
13565         @disposing, and we haven't already been disposed.  Fixes bug
13566         #79814.
13567
13568         * Form.cs: no reason to call "base.Dispose()" here instead of
13569         "Dispose()".
13570
13571 2006-11-03  Mike Kestner  <mkestner@novell.com>
13572
13573         * ComboBox.cs : use ToString instead of casts in AddItem for
13574         sorting functionality.  Fixes #79812.
13575
13576 2006-11-03  Chris Toshok  <toshok@ximian.com>
13577
13578         * Application.cs: pave the way for actually using the thread
13579         exception dialog.  it's ifdefed out at the moment.
13580
13581 2006-11-03  Chris Toshok  <toshok@ximian.com>
13582
13583         * ThreadExceptionDialog.cs: until we get a better layout, actually
13584         hide the details textbox and label when we shouldn't see them.
13585
13586 2006-11-03  Jackson Harper  <jackson@ximian.com>
13587
13588         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
13589         multiline textboxes anymore.  This method also determines the
13590         width/height of a textboxes canvas area.
13591         - Sorta a revert of the last patch.  For multiline just position
13592         the controls, then bail.  This way the scrollbar width won't be
13593         altered.
13594
13595 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
13596
13597         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
13598         it dont need.  Fixes #79537.
13599
13600 2006-11-02  Jackson Harper  <jackson@ximian.com>
13601
13602         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
13603         send the status after firing the DndOver event.
13604
13605 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13606
13607         * TrackBar.cs: Now orientation only switches height / width if
13608         the control's handle is created (Win32 does it like this). Also 
13609         fixed a typo in ToString() for a test to pass, changed the 
13610         exception thrown in set_LargeChange and set_SmallChange to 
13611         match Win32 behaviour, and added TrackBar tests to the unit 
13612         tests.
13613
13614 2006-11-02  Chris Toshok  <toshok@ximian.com>
13615
13616         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
13617         not _NET_WM_STATE_NO_TASKBAR.
13618
13619 2006-11-02  Jackson Harper  <jackson@ximian.com>
13620
13621         * TextControl.cs: Increment count by one, since in the update view
13622         count - 1 is used.
13623
13624 2006-11-02  Jackson Harper  <jackson@ximian.com>
13625
13626         * TextBoxBase.cs: Use client rectangle not bounds for checking if
13627         the mouse is in the client rectangle (duh).
13628
13629 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13630         
13631         * TrackBar.cs: Fixed trackbar jumping around when clicking
13632         on it - the trackbar was not detecting correctly at which
13633         side of the thumb the click was done. (fixes #79718)
13634
13635 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
13636
13637         * ListBox.cs: scroll visible area when change SelectedIndex to
13638         a non visible area.  Fixes #79481.
13639
13640 2006-11-01  Jackson Harper  <jackson@ximian.com>
13641
13642         * TextControl.cs: When replacing the selection move the selection
13643         start/end/anchor to the end of the new text.
13644
13645 2006-11-01  Jackson Harper  <jackson@ximian.com>
13646
13647         * XplatUIWin32.cs: When setting the parent change the controls
13648         visibility to it's visibility flag, not to it's old parents
13649         visibility (.Visible walks the parent chain).
13650
13651 2006-11-01  Chris Toshok  <toshok@ximian.com>
13652
13653         * XplatUIX11.cs: revert the #79790 fix, as the simple.
13654         XSetTransientForHint fix breaks paint .net's tool windows.  more
13655         work needed for that one.
13656
13657 2006-11-01  Chris Toshok  <toshok@ximian.com>
13658
13659         * ScrollBar.cs: throw ArgumentException instead of Exception in
13660         LargeChange/SmallChange setters.  fixes unit tests.
13661
13662 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
13663
13664         * ContainerControl.cs: reverted rev.67183 (which was itself
13665         a reversion of rev.66853... eh).
13666         
13667         * Control.cs: Fixes Reflector hang by changing Focus() call
13668         to what it was before rev.66643 (calling Select() here sets 
13669         ActiveControl, which in some situations calls back Focus and 
13670         eventually does a stack overflow). Temp fix.    
13671         Changes to GetNextControl() to not look for children to select when
13672         parent cannot be selectable (so it looks for siblings instead)  
13673         
13674 2006-10-31  Mike Kestner  <mkestner@novell.com>
13675
13676         * CheckedListBox.cs : off by one error in returned index from
13677         ObjectCollection.Add.  Fixes #79758.
13678
13679 2006-10-31  Chris Toshok  <toshok@ximian.com>
13680
13681         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
13682         calls for the textbox/spinner, to keep from recursing to the point
13683         where we crash.  Fixes #79760.
13684
13685 2006-10-31  Chris Toshok  <toshok@ximian.com>
13686
13687         * ListControl.cs (set_SelectedValue): don't throw exceptions on
13688         null/"" value, just return.  matches ms's behavior and fixes some
13689         failing tests.
13690
13691 2006-10-31  Chris Toshok  <toshok@ximian.com>
13692
13693         * Control.cs (set_Capture): make a logic a little easier to
13694         follow.
13695
13696         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
13697         if it's being destroyed.  A necessary fix surely, but a bandaid
13698         also, to fix the stuck capture problem in bug #78413.
13699
13700 2006-10-31  Chris Toshok  <toshok@ximian.com>
13701
13702         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
13703         convention of clearing hwnd.ClientRect when we set the
13704         width/height (so it'll be recalculated by Hwnd).
13705
13706 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
13707
13708         * ContainerControl.cs: reversed Contains check from
13709         ActiveControl due to hanging problems. This fix
13710         partly regresses #79667 (button does not have
13711         initial focus), so this might be a symptom for 
13712         a larger parenting problem (set_ActiveControl
13713         is being called but the child control does
13714         not have the parent set yet?)   
13715         
13716 2006-10-31  Mike Kestner  <mkestner@novell.com>
13717
13718         * MenuAPI.cs : fix keynav when menu is click activated.
13719
13720 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
13721
13722         * ToolStrip*: Version 0.2.
13723
13724         * MenuStrip.cs: Version 0.1.
13725
13726         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
13727
13728 2006-10-30  Chris Toshok  <toshok@ximian.com>
13729
13730         [ fixes the oversized notify icon issue in bug #79745 ]
13731         
13732         * NotifyIcon.cs: scale the icon down to the size we're given by
13733         the XplatUI layer (this would be faster if we did it once instead
13734         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
13735         since it's never invoked.
13736
13737         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
13738         pixels high by default, so let's hardcode our systray icon to that
13739         size.  The SYSTEM_TRAY protocol should really have a way for
13740         client apps to query for the correct icon size.. but oh well.  A
13741         couple of patches to deal with the screwy client_window ==
13742         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
13743         instance, and also make sure we don't XSelectInput twice).
13744
13745 2006-10-30  Chris Toshok  <toshok@ximian.com>
13746
13747         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
13748         recreating forms.  Control recreation is the bane of my existence.
13749         Fix it in a way that keeps everyone happy.
13750
13751 2006-10-30  Chris Toshok  <toshok@ximian.com>
13752
13753         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
13754         just non-CHILD ones.  otherwise sometimes scrollbars end up with
13755         client_windows not being resized to the proper size (ReportBuilder
13756         shows this extremely well).
13757
13758 2006-10-30  Chris Toshok  <toshok@ximian.com>
13759
13760         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
13761         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
13762         showing up in the gnome taskbar.  Fixes bug #79790.
13763
13764 2006-10-30  Chris Toshok  <toshok@ximian.com>
13765
13766         * ApplicationContext.cs: guard against a NRE.
13767
13768         * Application.cs: null out the old MainForm for the context, so we
13769         don't try to use it again once it's disposed.  Fixes bug #79783.
13770
13771 2006-10-30  Chris Toshok  <toshok@ximian.com>
13772
13773         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
13774         BindingContext, set the data source directly, otherwise do the
13775         lazy approach - the actual ListManager will be created when we get
13776         a BindingContext. Fixes bug #79700.
13777
13778 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
13779
13780         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13781           XplatUIX11.cs: Remove old 2 parameter SetVisible.
13782
13783         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
13784
13785 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
13786
13787         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
13788         of SetVisible that allows a window to be shown, but not activated.
13789         This is needed on Windows for MenuStrip, and can probably be used
13790         with MainMenu and ComboBox to fix the focus stealing issues on
13791         Windows.
13792
13793         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
13794
13795 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
13796
13797         * PictureBox.cs: Fix the output of the ToString method.
13798
13799 2006-10-29  Chris Toshok  <toshok@ximian.com>
13800
13801         * Control.cs (get_TopLevelControl): fix bug #79781.
13802
13803 2006-10-29  Chris Toshok  <toshok@ximian.com>
13804
13805         * ListControl.cs (set_DataSource): throw Exception here, not
13806         ArgumentException, to match MS behavior.
13807
13808 2006-10-29  Chris Toshok  <toshok@ximian.com>
13809
13810         * Form.cs: remove the try-catch's around calls to GetWindowState.
13811         We can just check the return value.
13812
13813         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
13814         Instead return -1.
13815
13816         * XplatUI.cs: Add note about additional return value for
13817         GetWindowState.
13818
13819 2006-10-29  Chris Toshok  <toshok@ximian.com>
13820
13821         * Control.cs (CreateHandle): when we create our handle, we also
13822         create the handles of our child controls.  Fixes one of the
13823         Control unit tests (CH11).
13824
13825 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
13826
13827         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
13828
13829 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
13830
13831         * ThemeClearlooks.cs: A little speedup.
13832
13833 2006-10-27  Chris Toshok  <toshok@ximian.com>
13834
13835         * Control.cs: implement Control.FromChildHandle in a way that
13836         matches the docs (and fixes the failed test.)
13837
13838 2006-10-27  Chris Toshok  <toshok@ximian.com>
13839
13840         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
13841         comments).
13842
13843         * DataGrid.cs: implement ResetForeColor such that the tests
13844         succeed.
13845         
13846 2006-10-27  Chris Toshok  <toshok@ximian.com>
13847
13848         * ToolBarButton.cs: setting text/tooltiptext to null results in it
13849         being set to "".  Fixes bug #79759.
13850
13851 2006-10-27  Jackson Harper  <jackson@ximian.com>
13852
13853         * TextControl.cs: We need to clear the entire selection area when
13854         setting the start, otherwise multiline selections are still
13855         visible.
13856
13857 2006-10-26  Chris Toshok  <toshok@ximian.com>
13858
13859         * PropertyGridView.cs: 
13860
13861         - ifdef all the code specific to the double
13862         buffer case, and provide some alternatives in the non-doublebuffer
13863         code, which makes heavy use of XplatUI.ScrollWindow to move things
13864         around without having to invalidate (and cause flicker).  There
13865         are still some drawing problems in the non-doublebuffered case, so
13866         DOUBLEBUFFER is defined by default.
13867
13868         - Fix the way dropdowns are handled.  now we explicitly watch for
13869         the events which might cause the dropdown to close, and break out
13870         of the nested event loop there.  This gets rid of all Capture
13871         code, at the expense of the Msg special casing.  Seems to work,
13872         though, and fixes bug #79743.
13873
13874 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
13875         * Control.cs: SetIsRecreating now recreates implicitly added
13876         child controls as well. Finally fixes #79629. The flag passed to 
13877         SetIsRecreating has also been removed since it wasn't used.
13878         
13879 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13880
13881         * PageSetupDialog.cs: Clean some code, fix some bits, 
13882         add some checks, and add a printer sub-dialog.
13883
13884 2006-10-26  Chris Toshok  <toshok@ximian.com>
13885
13886         * PropertyGrid.cs: make set_SelectedObject call
13887         set_SelectedObjects, and move the duplicate logic to the
13888         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
13889
13890         * PropertyGridView.cs: hide the textbox when we get a
13891         SelectedObjectsChanged event.
13892
13893         Fixes bug #79748.
13894
13895 2006-10-26  Chris Toshok  <toshok@ximian.com>
13896
13897         * PropertyGridView.cs: deal with the type converter not supporting
13898         GetStandardValues() or GetStandardValues() returning null, which
13899         is does in the default case.  Fixes #79742.
13900
13901 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
13902
13903         * CheckedListBox.cs: nunit no longer crashes when selecting 
13904         Project/Edit menu option
13905         
13906 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
13907
13908         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
13909         is no menu selected. fixes #79739
13910
13911 2006-10-25  Chris Toshok  <toshok@ximian.com>
13912
13913         * PropertyGridView.cs: factor out the splitter invalidation code
13914         into the SplitterPercent setter, and for kicks implement the
13915         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
13916         amount in either direction.
13917
13918 2006-10-25  Chris Toshok  <toshok@ximian.com>
13919
13920         * PropertyGridView.cs: do some cleanup of the brush used to draw
13921         text - read only fields should be grayed out.  not sure how to do
13922         this with the textbox, though.  but the textbox's should also be
13923         readonly now at least.  Also, hide/show the textbox when resizing
13924         the control.
13925         
13926         * CursorConverter.cs: use System.Reflection when getting the
13927         properties of Cursors, as TypeDescriptor.GetProperties isn't
13928         returning static properties.
13929
13930 2006-10-25  Chris Toshok  <toshok@ximian.com>
13931
13932         * PropertyGridView.cs: factor out the up/down handling, and reuse
13933         it for page up/down.  also add End/Home support.
13934
13935 2006-10-25  Chris Toshok  <toshok@ximian.com>
13936
13937         * PropertyGridView.cs:
13938
13939         - ensure the selected grid item is visible in the scrolled area,
13940         fixes bug #79572.
13941
13942         - fix Keys.Down handling when you're on the last item in the
13943         propertygrid.
13944
13945 2006-10-25  Mike Kestner  <mkestner@novell.com>
13946
13947         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
13948         clicks too.  Fixes #79725.
13949
13950 2006-10-24  Chris Toshok  <toshok@ximian.com>
13951
13952         * PropertyGrid.cs: use property.Converter instead of
13953         TypeDescriptor.GetConverter(property.PropertyType), so we catch
13954         TypeConverters declared on the property as well as on the
13955         PropertyType.  Fixes bug #79678.
13956
13957 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
13958
13959         * MimeIcon.cs, Mime.cs:
13960           Fallback to the default platform handler if no shared mime info
13961           stuff exists (fixes #79693).
13962
13963 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13964         * ContainerControl.cs: Incorrect contains check in ActiveControl 
13965         from previous fix (duh).
13966
13967 2006-10-20  Chris Toshok  <toshok@ximian.com>
13968
13969         * PropertyGridView.cs: the dropdown should be MIN(number of items
13970         in list, 15).  Fixes #79551.
13971
13972 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13973         Fixes #79384, #79394, #79652, #79667
13974         * Application.cs: 
13975         
13976         - Modal windows are now destroyed in the proper order for windows
13977         
13978         * ContainerControl.cs:
13979         
13980         - ActiveControl setter has more conditions on when to return:
13981                 - if we're reselecting the active control, but it actually
13982                 didn't have focus (window hidden or some such), it runs
13983                 - if the active control being selected doesn't actually 
13984                 exist in the container, it returns
13985         
13986         * Form.cs
13987         
13988         - The ShowDialog now gets the current form as the owner when
13989         invoking without parameters, and correctly activates the owner 
13990         when returning
13991         
13992         * MessageBox.cs
13993         
13994         - MessageBox now catches the Escape key to exit
13995
13996 2006-10-20  Chris Toshok  <toshok@ximian.com>
13997
13998         * PropertyGridView.cs: fix a number of issues (bug #78565, and
13999         most of bug #79676):
14000
14001         - you can navigate around the property grid with the arrow keys.
14002
14003         - the dropdown is sized properly when the pg has a vertical
14004         scrollbar.
14005
14006         - fix the indentation for subentries, and properly select the
14007         entire label rect.
14008
14009         - fix the gray bar's drawing (only draw it to the last element,
14010         not for the height of the control.  Also make sure we draw that
14011         last horizontal grid line.
14012
14013         - use the same mechanism the datagrid uses wrt the editing textbox
14014         when scrolling/resizing/etc.  Namely, we hide it first, do the
14015         operation, then show it again (if it's still visible).
14016         
14017         - aggressively remove a lot of unnecessary refreshes (and also
14018         calls to Invalidate(). call more limited variants, and only redraw
14019         what we need.)
14020         
14021         * PropertyGrid.cs:
14022
14023         - when we're populating the merged collection, fill in the UI
14024         parent with either the passed in item, or the category item we
14025         create.
14026
14027         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
14028
14029         * GridItem.cs: drop some fully qualified names.
14030         
14031         * GridEntry.cs: add a "UIParent", which is basically the parent
14032         treenode.
14033
14034         * GridItemCollection.cs: add an IndexOf method.
14035
14036 2006-10-20  Mike Kestner  <mkestner@novell.com>
14037
14038         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
14039         a working win32 NC invalidation mechanism, we can't invalidate
14040         menus.  [Fixes #79705]
14041
14042 2006-10-20  Mike Kestner  <mkestner@novell.com>
14043
14044         * ListBox.cs : don't update the VScrollbar if the list is empty,
14045         just hide it.  [Fixes #79692]
14046
14047 2006-10-20  Jackson Harper  <jackson@ximian.com>
14048
14049         * RichTextBox.cs: Handle some special chars better, and don't skip
14050         the entire group when we encounter a special char that we don't
14051         handle correctly.
14052
14053 2006-10-18  Chris Toshok  <toshok@ximian.com>
14054
14055         * PropertyGridView.cs: address a number of issues from bug #79676,
14056         mostly of the cosmetic variety.
14057
14058         - The highlight rectangle for indented items not extends all the
14059         way to the left.
14060
14061         - Indented items aren't indented so much.
14062
14063         - the dropdown is properly sized width-wise if the pg has a
14064         vertical scrollbar.
14065
14066 2006-10-18  Chris Toshok  <toshok@ximian.com>
14067
14068         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
14069         systray stuff is rather convoluted to begin with.
14070
14071         systray icons are a single window for some reason (that I haven't
14072         figured out yet), and for them, client_window == whole_window.
14073         Given the way the tests are structured elsewhere to determine
14074         which paints are pending (client vs. nc), that situation will
14075         always yield PAINT, not NCPAINT.  So, if we have a pending
14076         nc_expose and no pending expose, remove the hwnd from the paint
14077         queue, and also set nc_expose_pending to false, to keep us from
14078         blocking further expose's adding the hwnd to the paint queue.
14079
14080         phew.  like i said, a rather convoluted change.  Fixes the
14081         notifyicon repaint issues in bug #79645.
14082
14083 2006-10-18  Chris Toshok  <toshok@ximian.com>
14084
14085         * Form.cs: when getting the backcolor of the form, don't get
14086         base.BackColor, as this allows parents to influence the background
14087         color.  This breaks mdi forms.  Instead, if the background_color
14088         is empty, return the default.
14089
14090 2006-10-18  Chris Toshok  <toshok@ximian.com>
14091
14092         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
14093         to being private instead of internal static.
14094
14095         * Control.cs: remove all the stupid ParentWaitingOnRecreation
14096         crap, it wasn't working for more deeply nested controls anyway,
14097         and we already have the is_recreating flag - use that instead.
14098         Before calling DestroyHandle in RecreateHandle, recurse through
14099         the control tree setting it to true.  this returns the recreate
14100         code to much of its original simplicity, while now guaranteeing we
14101         actually recreate everything we're supposed to.  This change gets
14102         fyireporting actually showing mdi children.
14103
14104 2006-10-17  Chris Toshok  <toshok@ximian.com>
14105
14106         * Form.cs: remove some debug spew, and collapse some duplicate
14107         code at the end of SetClientSizeCore.
14108
14109         * XplatUIX11.cs: 
14110         - add some more debug spew here too wrt Destroy handling.
14111         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
14112         in Control's handling of WM_DESTROY.
14113         - Remove the handling of zombie window DestroyNotifies from the
14114         event loop - we don't need it.  Now the only DestroyNotifies we
14115         actually handle are ones generated by X.
14116         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
14117         match gtk's (functioning) handling of this. This keep metacity
14118         from leaving droppings in the form of wm borders with no window
14119         contents all over the place.
14120
14121         * Control.cs:
14122         - add a bunch of debug spew wrt control recreation.
14123         - fix a bug where we weren't tracking Visible properly on
14124         recreated hwnds.
14125         - fixed the WM_PAINT double buffer handling to support re-entrant
14126         calls (yes, i know it's gross, but it's happening to us).
14127
14128 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14129         * ThemeWin32Classic.cs: changed drawing of selected days
14130         to make them look better.
14131
14132 2006-10-16  Chris Toshok  <toshok@ximian.com>
14133
14134         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
14135         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
14136
14137         * XplatUIX11.cs: move away from using hwnd.client_dc and
14138         hwnd.non_client_dc and on to a stack of dc's (and in window's
14139         case, PAINTSTRUCT's), so we can deal with nested Paint calls
14140         without puking or not disposing of Graphics objects.
14141
14142         * XplatUIOSX.cs: same.
14143
14144         * XplatUIWin32.cs: same.
14145
14146 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
14147
14148         * FileDialog.cs: Don't call on_directory_changed inside
14149           OnSelectedIndexChanged (it changes the SelectedIndex too).
14150           Instead move it to OnSelectionChangeCommitted.
14151
14152 2006-10-13  Chris Toshok  <toshok@ximian.com>
14153
14154         * XplatUIX11.cs: more Destroy work.  the current code does the
14155         following things, in order:
14156
14157         1. Enumerates all handles of all controls at or below the one
14158         being destroyed, in pre-order.  As it is doing this, it marks the
14159         handles as zombie and clears all references to them.
14160         
14161         2. calls XDestroyWindow on the window passed in.
14162
14163         3. SendMessage's WM_DESTROY to all he handles in the accumulated
14164         list.
14165
14166 2006-10-13  Chris Toshok  <toshok@ximian.com>
14167
14168         * XplatUIX11.cs: set hwnd.zombie to true before calling
14169         SendMessage (WM_DESTROY).  this keeps us from marking the new
14170         window a zombie, and also keeps us from calling sendmessage at
14171         all.
14172
14173 2006-10-13  Jackson Harper  <jackson@ximian.com>
14174
14175         * TextControl.cs: Do not show the caret and selection at the same
14176         time.  Reduces ugliness by 35%.
14177
14178 2006-10-13  Chris Toshok  <toshok@ximian.com>
14179
14180         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
14181         zombie after we do the recursive call, so we actually do call
14182         SendMessage on the children controls.
14183         (GetMessage): if we find a pending paint event for a zombie hwnd,
14184         remove the hwnd from the paint queue, or else it will always be
14185         there (and we'll effectively loop infinitely)
14186
14187 2006-10-13  Mike Kestner  <mkestner@novell.com>
14188
14189         * MenuItem.cs : add Selected format under keynav too.
14190         Fixes #79528.
14191
14192 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
14193
14194         * PropertyGrid.cs: Fixed some NRE's and small difference between our
14195         implementation and that of MS.
14196
14197 2006-10-13  Chris Toshok  <toshok@ximian.com>
14198
14199         * Control.cs (OnInvalidated) only futz with the invalid_region if
14200         the control is double buffered.  this fixes the apparent hang in
14201         the ListView unit tests.  Someone needs to make the
14202         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
14203
14204 2006-10-13  Chris Toshok  <toshok@ximian.com>
14205
14206         * PropertyGridView.cs:
14207
14208         - do a little refactoring so that only one place calls
14209         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
14210         else call that.  Also make it Refresh, since there are redraw bugs
14211         otherwise (we should take a look at that...)
14212
14213         - do a little more refactoring work to share the body of code
14214         involved with the drop down.  it was duplicated in the code
14215         dealing with the listbox handling and in the code dealing with the
14216         UITypeEditors.
14217
14218         - add a Capture to the dropdown form's control once it's
14219         displayed, and add a MouseDown handler that checks to make sure
14220         the position is inside the control.  If it's not, close the
14221         dropdown.  This fixes #78190.
14222
14223         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
14224         if the value is different than the initial value.
14225         
14226 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
14227
14228         * Control.cs: see #78650
14229         - Fixed GetNextControl for several cases:
14230                 - Changed FindFlatForward to return 
14231                 correct sibling control when more than one
14232                 control has same TabIndex as the currently 
14233                 focused one.
14234                 - Changed FindFlatBackward to loop children
14235                 from last to first and apply same logic as in
14236                 FindFlatForward
14237                 - Changed FindControlForward to search for
14238                 children when control is not a container
14239                 but has children, or search for siblings if
14240                 control is a container...
14241                 - Changed FindControlBackward   to continue
14242                 searching for child controls when hitting 
14243                 Panel-like parents
14244                 
14245         - Fixed Focus method to update ActiveControl
14246         (FocusTest.FocusSetsActive failure)
14247         
14248         * TabControl.cs:
14249         - Focus rectangle now refreshes when gaining
14250         or losing focus
14251         - Removed grab for Tab key on IsInputKey that 
14252         was keeping tab navigation from working (#78650)
14253
14254 2006-10-13  Chris Toshok  <toshok@ximian.com>
14255
14256         * PropertyGridView.cs:
14257         - Rewrite SetPropertyValue to loop over SelectedGridItem's
14258         SelectedObjects.
14259
14260         - Deal with GridItem.Value == null a few places.
14261
14262         * PropertyGrid.cs: 
14263         - replace the PopulateGridItemCollection with a pair of methods
14264         which compute the intersection of all the properties in the
14265         SelectedObjects array.  Fixes #79615.
14266
14267         - Throw ArgumentException from set_SelectedObjects if there's a
14268         null in the array.
14269
14270         - Add GetTarget method which can be used to traverse up the
14271         GridItem.Parent chain.  It depends on the assumption that
14272         selected_objects for different GridEntries are always in the same
14273         order (a safe assumption).  Use this method and loop over all the
14274         selected objects in the entry when calling RemoveValueChanged and
14275         AddValueChanged.
14276         
14277         * GridEntry.cs: Make this handle multiple selected objects.
14278         .Value returns null if not all the selected objects share the same
14279         value.
14280
14281 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
14282         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
14283           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
14284           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
14285           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
14286           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
14287         add additional functionality.
14288
14289 2006-10-12  Mike Kestner  <mkestner@novell.com>
14290
14291         * ErrorProvider.cs : new ToolTipWindow ctor sig.
14292         * HelpProvider.cs : new ToolTipWindow ctor sig.
14293         * ToolTip.cs : remove ToolTip param from Window sig since it is
14294         not used.
14295         * ToolBar.cs : add tooltip support.  Fixes #79565.
14296
14297 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14298
14299         * ComboBox.cs: move the events in set_SelectedIndex to 
14300         after the call to HighlightIndex in order to avoid 
14301         possible recursion and subsequent problems with the call
14302         to HighlightIndex and include a range check in 
14303         set_HighlightIndex. Fixes #79588
14304         
14305 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14306
14307         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
14308         to ui thread's settings instead of sunday. 
14309         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
14310
14311 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
14312
14313         * DateTimePicker.cs
14314         * MonthCalendar.cs
14315         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
14316         and implement missing functionality (selecting different parts 
14317         of the date and edit them individually with the keyboard).
14318         
14319 2006-10-11  Chris Toshok  <toshok@ximian.com>
14320
14321         * Control.cs (OnInvalidated): fix NRE relating to last change.
14322
14323 2006-10-11  Chris Toshok  <toshok@ximian.com>
14324
14325         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
14326         atoms in _NET_WM_STATE here if the window is maximized.  We need
14327         to do this because we're *replacing* the existing _NET_WM_STATE
14328         property, so those atoms will be lost otherwise, and any further
14329         call to GetWindowState will return Normal for a window which is
14330         actually maximized.  Fixes #79338.
14331
14332 2006-10-11  Jackson Harper  <jackson@ximian.com>
14333
14334         * TextControl.cs: Special case for setting selection end to
14335         selection start, we basically kill the anchor.
14336         - some todo comments.
14337
14338 2006-10-11  Chris Toshok  <toshok@ximian.com>
14339
14340         * Control.cs: switch to using an "invalid_region" to track which
14341         parts of the image buffer need updating.  This is more code than
14342         the simple fix from r66532.  That version just attempted to always
14343         fill the entire buffer on redraw, which turns out to be
14344         inefficient when invalidating small rectangles.  This version
14345         simply adds the invalid rectangle to the invalid region.  When we
14346         get any WM_PAINT message we see if it can be filled using the
14347         image buffer, and if it can't (if the paint event's clip rectangle
14348         is visible in the invalid region) we first fill the image buffer.
14349         So, the image buffer is still a cache, we just fill it lazily.
14350
14351         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
14352         need it any longer.
14353
14354 2006-10-11  Chris Toshok  <toshok@ximian.com>
14355
14356         * XplatUIX11.cs (SetWindowPos): we need to update both position as
14357         well as size after calling XMoveResizeWindow.  This keeps us from
14358         ignoring future SetWindowPos calls.  Fixes the disappearing
14359         DateTimePicker in the ToolBarDockExample from bug #72499.
14360
14361 2006-10-11  Chris Toshok  <toshok@ximian.com>
14362
14363         * TextBoxBase.cs: reorder things a bit when it comes to
14364         resizing-causing-recalculation.  we were recalculating the
14365         document when our position was changed, which shouldn't happen.
14366         We only care about size changes.  Clear up some more redundant
14367         recalculation calls while I'm at it.  This makes the toolbar dock
14368         example snappy when you're just dragging toolbars around (since it
14369         causes a relayout whenever you move one.)
14370
14371 2006-10-11  Chris Toshok  <toshok@ximian.com>
14372
14373         * ToolBarButton.cs (get_Rectangle): this only returns
14374         Rectangle.Empty if Visible == false, or Parent == null.
14375         Parent.Visible doesn't matter.
14376
14377 2006-10-10  Chris Toshok  <toshok@ximian.com>
14378
14379         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
14380         by .net 1.1, so switch to an internal method instead.
14381
14382 2006-10-10  Chris Toshok  <toshok@ximian.com>
14383
14384         * Control.cs (WM_PAINT): when a control is double buffered we draw
14385         initially to the ImageBuffer and then copy from there.  But when a
14386         parent control which has child controls is double buffered, the
14387         initial drawing doesn't encompass the entire ClientRectangle of
14388         the parent control, so we end up with uninitialized bits (this is
14389         easily seen by dragging the top toolbar in
14390         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
14391         manually set the ClipRectangle of the paint_event (only the one we
14392         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
14393         of the nastiness in bug #72499.
14394
14395         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
14396         which we use in Control.cs's WM_PAINT handling.
14397
14398 2006-10-10  Jackson Harper  <jackson@ximian.com>
14399
14400         * TextBoxBase.cs: Finish off the autoscrolling stuff.
14401
14402 2006-10-10  Chris Toshok  <toshok@ximian.com>
14403
14404         * Cursor.cs: Apply a slightly different patch to the one suggested
14405         in #79609.
14406
14407 2006-10-10  Jackson Harper  <jackson@ximian.com>
14408
14409         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
14410         not the parent form.
14411         * TextControl.cs: use difference in old line count vs new count to
14412         calculate how many lines were added, this takes into account soft
14413         line breaks properly.
14414
14415 2006-10-10  Chris Toshok  <toshok@ximian.com>
14416
14417         * LinkLabel.cs: don't call MeasureCharacterRanges against a
14418         rectangle located at 0,0 and the size of the text.  Use
14419         ClientRectangle instead.  This fixes rendering of non-left aligned
14420         link labels.
14421
14422 2006-10-10  Jackson Harper  <jackson@ximian.com>
14423
14424         * TextBoxBase.cs: When we set the selection start position the
14425         caret.
14426         * TextControl.cs: Need to update the caret when we decrement it to
14427         zero.
14428         - Make sure that the selection_visible flag gets reset to false if
14429         the selection isn't visible.  Before this you could get it set to
14430         visible by changing the selection start, then changing the end to
14431         equal the start.
14432
14433 2006-10-09  Jackson Harper  <jackson@ximian.com>
14434
14435         * TreeView.cs: Don't update scrollbars when we aren't visible.
14436         * TreeNodeCollection.cs: Only need to update scrollbars if being
14437         added to an expanded visible node or the root node.
14438
14439 2006-10-09  Chris Toshok  <toshok@ximian.com>
14440
14441         * XplatUIX11.cs (SendMessage): fix NRE.
14442
14443 2006-10-09  Jackson Harper  <jackson@ximian.com>
14444
14445         * TextBoxBase.cs: Implement horizontal autoscrolling.
14446         * TextControl.cs: Add a movement types that allows moving forward
14447         and backwards without wrapping.
14448
14449 2006-10-09  Mike Kestner  <mkestner@novell.com>
14450
14451         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
14452         with focus "expansion" of labels.  Fixes #79532 and then some.
14453         * ThemeWin32Classic.cs : add LineLimit to ListView label format
14454         when wrapping.
14455
14456 2006-10-09  Jackson Harper  <jackson@ximian.com>
14457
14458         * TextBoxBase.cs: Set the default max values to MaxValue since
14459         we use the scrollbar for autoscrolling and the default value is
14460         100.  If we don't do this the caret won't keep up with typing
14461         after about 18 characters.
14462         * TextControl.cs: Make sure the selection is offset by the
14463         viewport x.  This fixes selection when using auto scrolling.
14464
14465 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
14466         
14467         * Form.cs: The active control should be selected after the 
14468         OnLoad so that any child control initialization that affects
14469         the selection is done. Fixes #79406
14470
14471 2006-10-06  Chris Toshok  <toshok@ximian.com>
14472
14473         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
14474         to have no evil effects.
14475
14476         - Stop selecting StructureNotifyMask on non-toplevel windows.
14477
14478           The only way children should be resized is by using the SWF api,
14479           and we already send WM_WINDOWPOSCHANGED messages in those cases.
14480           Toplevel windows can be interacted with via the window manager,
14481           and so we keep the input mask there.
14482
14483           The other event StructureNotifyMask gives us (that we care
14484           about) is DestroyNotify.  The code is already structured such
14485           that it assumes we won't be getting a DestroyNotify event for
14486           the window we pass to XDestroyWindow (which is what
14487           StructureNotifyMask is supposed to guarantee.)  So, that code
14488           shouldn't be affected by this either.
14489
14490         - Stop selecting VisibilityChangeMask altogether.
14491
14492           We weren't doing anything with the resulting events anyway.
14493         
14494         This vastly reduces the number of X requests and events we see
14495         when resizing/laying out a large ui.
14496
14497 2006-10-06  Chris Toshok  <toshok@ximian.com>
14498
14499         * ScrollableControl.cs (DisplayRectangle): we need to take into
14500         account the DockPadding regardless of whether or not auto_scroll
14501         == true.  rework this slightly to this effect, and fix bug #79606,
14502         and part of #72499 (you can now see the drag handles and drag
14503         toolbars around).
14504
14505 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
14506
14507         * ListViewItem.cs: Collections of selected and checked items are now
14508         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
14509         we mark the collection "dirty".
14510         * ListView.cs: Marked collections readonly. Modified UpdateSelection
14511         to only clear SelectedItems when a new item is selected and MultiSelect
14512         is enabled. CheckedItems and SelectedItems now subscribe to Changed
14513         event of ListViewItemCollection, and mark its list dirty whenever
14514         that event is fire. This allows us to return selected/checked items 
14515         in the same order as they are in the Items collection. This matches
14516         the MS behavior.
14517
14518 2006-10-06  Chris Toshok  <toshok@ximian.com>
14519
14520         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
14521         right mouse clicks.  Fixes bug #79593.
14522
14523 2006-10-06  Chris Toshok  <toshok@ximian.com>
14524
14525         * Splitter.cs: doh, fix splitters that don't want to cancel the
14526         movement when you drag them.  Also, impose the limits on the
14527         values we send to the SplitterMovingEvent.  Fixes #79598.
14528
14529 2006-10-06  Jackson Harper  <jackson@ximian.com>
14530
14531         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
14532         since we use this for auto scrolling also.
14533
14534 2006-10-05  Chris Toshok  <toshok@ximian.com>
14535
14536         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
14537         beginning to think that most datagrid column types don't need this
14538         method.  Fixes bug #79392.
14539
14540 2006-10-05  Chris Toshok  <toshok@ximian.com>
14541
14542         * DataGrid.cs: move back to a more lazy scheme for creating the
14543         CurrencyManager, so we aren't updating it every time you set
14544         either DataSource or DataMember.  Also, don't call
14545         RecreateDataGridRows if the currency manager hasn't changed.
14546
14547 2006-10-05  Chris Toshok  <toshok@ximian.com>
14548
14549         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
14550         emitted, SelectedIndex should already be updated.  Fixes bug
14551         #78929.
14552
14553 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
14554
14555         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
14556           ToolStripTextBox.cs: Initial commit.
14557         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
14558
14559 2006-10-05  Jackson Harper  <jackson@ximian.com>
14560
14561         * TabControl.cs: We need to invalidate the tab control area when
14562         new ones are added (duh).
14563
14564 2006-10-03  Chris Toshok  <toshok@ximian.com>
14565
14566         * Form.cs (ProcessDialogKey): if the focused control is in this
14567         form and is a button, call its PerformClick method here.  Fixes
14568         #79534.
14569
14570 2006-10-04  Jackson Harper  <jackson@ximian.com>
14571
14572         * TabPage.cs: Ignore setting of Visible, and add an internal
14573         method for setting the controls visibility.  TabPage's Visible
14574         property is a little strange on MS, this seems to make us
14575         compatible, and fixes cases where people set all the tab pages to
14576         visible.
14577         * TabControl.cs: Use the new internal setting on tab pages
14578         visibility.
14579
14580 2006-10-03  Mike Kestner  <mkestner@novell.com>
14581
14582         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
14583
14584 2006-10-03  Mike Kestner  <mkestner@novell.com>
14585
14586         * ListView.cs : use is_visible instead of Visible to check if 
14587         scrollbars should be placed/sized.  Also some max_wrap_width
14588         love for LargeIcon view.  [Fixes #79533]
14589
14590 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
14591
14592         * TextControl.cs :
14593           Make set_TextAlign() do actually update the align. Fixed #78403.
14594
14595 2006-10-03  Chris Toshok  <toshok@ximian.com>
14596
14597         * DataGrid.cs: fix a crash when switching datasources if the
14598         vertical scrollbar is at someplace other than Value = 0.  Also,
14599         reduce the number of recalculation passes we do in SetDataSource
14600         from 2 to 1.
14601
14602 2006-10-03  Jackson Harper  <jackson@ximian.com>
14603
14604         * TextBoxBase.cs: Move the if value the same bail check up, we
14605         don't want to empty the document if it is already empty, this
14606         seems to severly mess up the caret.  TODO: I should probably fix
14607         the empty statement to update teh caret somehow.
14608
14609 2006-10-03  Chris Toshok  <toshok@ximian.com>
14610
14611         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
14612         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
14613         reflection, an internal row type, properties on said type, etc.)
14614         will work with our datagrid.  Fixes #79531.
14615
14616 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
14617
14618         * FileDialog.cs: Don't crash if a path is not accessible
14619           (System.UnauthorizedAccessException). Fixes #79569.
14620         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
14621           a ':' too. Return unknown icon for those paths/files.
14622
14623 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
14624
14625         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
14626         GetContainerControl returns null.
14627
14628 2006-10-02  Chris Toshok  <toshok@ximian.com>
14629
14630         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
14631         call to XGetWindowAttributes instead of "handle".  fixes an X
14632         error using notifyicon after the NotifyIconWindow to Form base
14633         class switch.
14634
14635 2006-10-02  Chris Toshok  <toshok@ximian.com>
14636
14637         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
14638         server grab and looping we need to do to get down to the most
14639         deeply nested child window.
14640         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
14641         QueryPointer again after the WarpPointer so we can generate a
14642         proper (fake) MotionNotify event to be enqueued in the destination
14643         window's queue.
14644         (GetCursorPos): call QueryPointer.
14645
14646         Fixes #79556.
14647
14648 2006-10-02  Jackson Harper  <jackson@ximian.com>
14649
14650         * NotifyIcon.cs: Derive the notify icon from a form, so things
14651         like FindForm work on it.
14652         - Swallow the WM_CONTEXTMENU message, since that is generated on
14653         mouse down, and context menu is a mouse up kinda guy.  I believe
14654         the correct fix here is probably to make the notify icon entirely
14655         NC area, but this seems to work fine for anyone not manipulating
14656         WndProc.
14657
14658 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
14659
14660         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
14661           ToolStripItemCollection.cs, ToolStripLabel.cs,
14662           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
14663           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
14664           Initial implementation.
14665         * TextRenderer.cs: Provide padding to MeasureText.
14666
14667 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
14668
14669         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
14670         of ButtonBaseAccessibleObject. Fix bug #79552.
14671
14672 2006-10-02  Jackson Harper  <jackson@ximian.com>
14673
14674         * MdiWindowManager.cs: When maximizing use the containers client
14675         rect, not it's bounds, so nc area is accounted correctly.
14676         - Use the parent form's size for the menu position, since the
14677         client isn't always the full form size.
14678
14679 2006-10-01  Chris Toshok  <toshok@ximian.com>
14680
14681         * ScrollableControl.cs: make sure neither right_edge or
14682         bottom_edge are < 0, since they're used as LargeChange for the
14683         horiz/vert scrollbars respectively.  Fixes #79539.
14684
14685 2006-10-01  Chris Toshok  <toshok@ximian.com>
14686
14687         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
14688         the xplatuix11 code can cause us to destroy/recreate our handle.
14689
14690         * XplatUIX11.cs
14691         (SystrayAdd):
14692         - this code can be invoked many times for the same Hwnd.  Make
14693           sure we only destroy the client window once (the first time this
14694           method is called).  This fixes bug #79544.
14695         - Remove the call to the improperly bound XSync.  why we had two
14696           bindings to this, I will never know, but this call resulted in
14697           events being discarded from the queue(!).
14698         - correct a misunderstanding of _XEMBED_INFO - the second atom is
14699           not our current state but the state we wish to be in.  So, 0 if
14700           we don't want to be mapped.  Change it to 1.
14701         (SystrayRemove): The XEMBED spec makes mention of the fact that
14702         gtk doesn't support the reparent of client windows away from the
14703         embedder.  Looking at gtksocket-x11.c seems to agree with this.
14704         The only avenue we have for removing systray icons is to destroy
14705         them.  We don't want the handle to go away for good, though, so
14706         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
14707         #79545.
14708         
14709 2006-10-01  Chris Toshok  <toshok@ximian.com>
14710
14711         * Form.cs (WndProc): inline the native_enabled variable usage into
14712         the cases in which it's used.  Fixes #79536.
14713
14714 2006-09-29  Mike Kestner  <mkestner@novell.com>
14715
14716         * ListView.cs : toggle the selection state for ctrl clicks in 
14717         multiselect mode. [Fixes #79417]
14718
14719 2006-09-29  Mike Kestner  <mkestner@novell.com>
14720
14721         * ListView.cs : kill CanMultiSelect and refactor the selection
14722         code to support multiselection in the absence of mod keys. Steal
14723         arrow/home/end keys by overriding InternalPreProcessMessage to
14724         restore regressed keynav behavior.
14725         [Fixes #79416]
14726
14727 2006-09-29  Jackson Harper  <jackson@ximian.com>
14728
14729         * MdiClient.cs: Repaint the titlebars when the active window is
14730         changed.
14731
14732 2006-09-29  Chris Toshok  <toshok@ximian.com>
14733
14734         * Application.cs: when entering a runloop with a modal, make sure
14735         the hwnd is enabled.  Fixes #79480.
14736
14737 2006-09-29  Chris Toshok  <toshok@ximian.com>
14738
14739         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
14740         when ListManager.CanAddRows == false, bump us back one.
14741
14742         * DataGridColumnStyle.cs (ParentReadOnly): remove the
14743         listmanager.CanAddRows check.  This makes ArrayLists uneditable
14744         using a datagrid, which is not right.
14745         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
14746         is an IEditable, but call property_descriptor.SetValue regardless.
14747         fixes #79435.
14748
14749 2006-09-29  Chris Toshok  <toshok@ximian.com>
14750
14751         * DataGridBoolColumn.cs: we need to test equality in the face of
14752         possible null values (as is the case with the default NullValue).
14753         This patch keeps us from crashing in that case.
14754
14755 2006-09-29  Jackson Harper  <jackson@ximian.com>
14756
14757         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
14758         here, since it will get called for every node collection in the
14759         tree. This is now done in the treeview once the sorting is
14760         finished.
14761         * TreeView.cs: Recalculate the visible order, and update the
14762         scrollbars after sorting, set the top nope to the root so that the
14763         recalc actually works.
14764
14765 2006-09-29  Chris Toshok  <toshok@ximian.com>
14766
14767         * LinkLabel.cs: more handling of the default link collection in
14768         the face of LinkArea manipulation.  The default link collection
14769         contains 1 element (start=0,length=-1).  If the user sets LinkArea
14770         to anything and the links collection is the default, clear it.
14771         Then only add the link if its nonempty.  Fixes #79518.
14772
14773 2006-09-29  Chris Toshok  <toshok@ximian.com>
14774
14775         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
14776         piece correctly when we hit a '\n'.  Fixes #79517.
14777
14778 2006-09-29  Chris Toshok  <toshok@ximian.com>
14779
14780         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
14781         change the binding of gdk_init_check to take two IntPtr's, and
14782         pass IntPtr.Zero for both of them.  Fixes #79520.
14783
14784 2006-09-29  Mike Kestner  <mkestner@novell.com>
14785
14786         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
14787         [Fixes #78779]
14788
14789 2006-09-28  Jackson Harper  <jackson@ximian.com>
14790
14791         * XplatUIX11.cs: When translating NC messages make sure we go from
14792         whole window to screen, not client window to screen.
14793         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
14794         method doesn't exist
14795         - Skip over controls that aren't forms when arranging.
14796
14797 2006-09-28  Jackson Harper  <jackson@ximian.com>
14798
14799         * XplatUIWin32.cs: Clip the rect to the parent window.
14800         * XplatUIStructs.cs: Add clipping modes struct.
14801         * InternalWindowManager.cs: New private method that factors title
14802         bar heights in when calculating the pos of an NC mouse message.
14803         - Use SendMessage to force a paint when the form's size is changed
14804         instead of painting the decorations immediately.
14805         - Don't let the NC button click messages get to DefWndProc,
14806         because they will attempt to handle windowing themself, and this
14807         messes up z-order (it will put them in front of the scrollbars).
14808         * XplatUIX11.cs: Make sure that we don't reset window managers if
14809         we already have one (ie the window is an MDI window).
14810
14811 2006-09-28  Chris Toshok  <toshok@ximian.com>
14812
14813         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
14814         menu code really needs going over.
14815
14816 2006-09-27  Chris Toshok  <toshok@ximian.com>
14817
14818         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
14819         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
14820         window is maximizable.  So, we need to make sure that even if we
14821         clear the border/wm frame of those functions, they're still
14822         available (basically, we remove the decoration without removing
14823         the function).  Half the fix for #79338.
14824
14825 2006-09-27  Chris Toshok  <toshok@ximian.com>
14826
14827         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
14828         Fixes bug #79515.
14829
14830 2006-09-27  Chris Toshok  <toshok@ximian.com>
14831
14832         * Splitter.cs: reorder things a bit so that we don't actually
14833         draw/move the splitter until after calling OnSplitterMoving.  This
14834         lets users cancel/disallow the movement by explicitly setting
14835         event.SplitX/SplitY.  Fixes #79372.
14836
14837 2006-09-27  Jackson Harper  <jackson@ximian.com>
14838
14839         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
14840         because it is most likely on a window being destroyed, and that
14841         will give us an X11 error.
14842
14843 2006-09-27  Chris Toshok  <toshok@ximian.com>
14844
14845         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
14846         the dropdown button now toggles between showing and hiding the
14847         dropdown.  Also, get rid of dropdown_form_showing and just use
14848         dropdown_form.Visible.  We still don't do a grab, but I'll leave
14849         that part to someone who has handled Capture-fu before.
14850
14851 2006-09-27  Chris Toshok  <toshok@ximian.com>
14852
14853         * DataGrid.cs: return false if alt isn't pressed when '0' is
14854         pressed.  this keeps the '0' key from being swallowed, and fixes
14855         bug #79350.
14856
14857 2006-09-27  Chris Toshok  <toshok@ximian.com>
14858
14859         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
14860         Calling Refresh (in response to a scrollbar event) screws up the
14861         scrollbar painting.  Fixes bug #78923.
14862
14863 2006-09-27  Chris Toshok  <toshok@ximian.com>
14864
14865         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
14866         then insert into hashtable" blocks threadsafe.
14867
14868 2006-09-27  Chris Toshok  <toshok@ximian.com>
14869
14870         * MessageBox.cs (CreateParams): the styles should be |'ed with our
14871         baseclass's, since otherwise the
14872         ControlBox/MinimizeBox/MaximizeBox assignments above have no
14873         effect.  This gets the close button back in messageboxes.
14874
14875 2006-09-27  Chris Toshok  <toshok@ximian.com>
14876
14877         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
14878         flag, not just != 0.  this makes flags that are actually multiple
14879         bits (like WS_CAPTION) work.  fixes bug #79508.
14880
14881 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
14882
14883         * PageSetupDialog.cs: add support for getting and settings the 
14884         paper size, source and orientation.
14885
14886 2006-09-26  Chris Toshok  <toshok@ximian.com>
14887
14888         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
14889         and caption == "", we need to remove the resize handles as well as
14890         the title bar.
14891
14892         * Control.cs (set_Text): turns out that setting Text on a form
14893         should change the WM styles on the window, since if ControlBox ==
14894         false, the only way to get a window border is to have a non-""
14895         Text property.  check winforms/forms/text.cs for an example.  so,
14896         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
14897         update both window styles and title.  This fixes a lot of dialogs
14898         (including the preferences dialog in MonoCalendar.)
14899
14900 2006-09-26  Chris Toshok  <toshok@ximian.com>
14901
14902         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
14903         control isn't a Form), call Win32ShowWindow to hide the window,
14904         but don't update the control Visible property.  When we reparent
14905         back to a parent control, call SetVisible in order for the
14906         window's visibility to be reinstated.
14907
14908         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
14909         the FosterParent.
14910
14911         * Control.cs (ControlCollection.Remove): remove that value.Hide()
14912         call for good, since it breaks MonoCalendar (and other things I'm
14913         sure.) Also, set all_controls to null *after* the owner calls,
14914         which end up regenerating it.
14915         (ChangeParent): allow new_parent to be == null, passing
14916         IntPtr.Zero down to XplatUI.
14917
14918         this fixes #79294 the right way.
14919
14920 2006-09-26  Mike Kestner  <mkestner@novell.com>
14921
14922         * GridEntry.cs : internal SetParent method.
14923         * PropertyGrid.cs : attach to property changed on the proper
14924         target if we have a hierarchical grid with subobjects. Setup
14925         GridItem.Parent for hierarchical items.
14926         * PropertyGridView.cs : Set value on the correct target for
14927         hierarchical grids. [Fixes #78903]
14928
14929 2006-09-26  Chris Toshok  <toshok@ximian.com>
14930
14931         * Control.cs (ChildNeedsRecreating): this should return true if
14932         either we're being recreated and the child is in our list, or our
14933         parent is waiting for our recreation.
14934
14935 2006-09-26  Chris Toshok  <toshok@ximian.com>
14936
14937         * Control.cs (ControlCollection.Remove): reinstate the
14938         value.Hide() call as suggested in bug #79294.
14939
14940 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
14941
14942         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
14943         coordinates (versus a relative move).
14944
14945 2006-09-26  Chris Toshok  <toshok@ximian.com>
14946
14947         * Control.cs: rework child recreation a little bit.  It turns out
14948         that we race between the DestroyNotify the WM_DESTROY message.  If
14949         the parent gets its DestroyNotify before the child gets the
14950         WM_DESTROY message, the child ends up not recreating (since the
14951         parent finishes its recreation on DestroyNotify, and the child
14952         checks ParentIsRecreating.)
14953
14954         So, instead we store off a list of all the child controls which
14955         need to be recreated when the parent control starts to recreate
14956         itself.  Then, when child controls get their WM_DESTROY message we
14957         check to see if they're in the parent's pending recreation list,
14958         and if so, we recreate.  This removes all dependency on ordering
14959         from the code and fixes the initial MonoCalendar upgrade dialog.
14960         
14961 2006-09-26  Jackson Harper  <jackson@ximian.com>
14962
14963         * TextControl.cs: Use the Line to get the length of the line,
14964         since soft line breaks can change the end line.
14965
14966 2006-09-26  Chris Toshok  <toshok@ximian.com>
14967
14968         * Control.cs (ControlCollection.AddImplicit): don't add the
14969         control again if it's already in one of our lists.  This keeps us
14970         from adding controls over and over again for comboboxes when their
14971         handle gets recreated (as the combobox adds implicit controls in
14972         OnHandleCreated).  Fixes the X11 errors in bug #79480.
14973
14974 2006-09-26  Jackson Harper  <jackson@ximian.com>
14975
14976         * TextControl.cs: When deleting characters make sure that any
14977         orphaned zero lengthed tags get deleted.
14978         - Fix ToString for zero lengthed tags.
14979
14980 2006-09-25  Jackson Harper  <jackson@ximian.com>
14981
14982         * TextControl.cs: When getting a tag at the location there can be
14983         multiple tags at the same spot, these are 0-lengthed tags that
14984         appear when extra formatting has been stuck in a location.  We
14985         need to pull out the last of these 0 lengthed tags.
14986
14987 2006-09-25  Jackson Harper  <jackson@ximian.com>
14988
14989         * TextControl.cs: Fix print out in debug method.
14990         * TextBoxBase.cs: When text is set bail if we are setting to the
14991         previous value.
14992         
14993 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
14994
14995         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
14996           It is now possible to change the selected index in a FontXXXListBox
14997           with the up and down arrow keys from the FontXXXTextBoxes.
14998           Also, send the FontXXXTextBox mouse wheel event to the corresponding
14999           FontXXXListBoxes to match ms.
15000
15001 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
15002
15003         * SystemInformation.cs: Return a clone of the theme's MenuFont because
15004         anyone can dispose it, anytime. All other properties returns enums, 
15005         structs or basic types so they don't need such tricks.
15006
15007 2006-09-22  Jackson Harper  <jackson@ximian.com>
15008
15009         * XplatUI.cs:
15010         * XplatUIWin32.cs:
15011         * Clipboard.cs:
15012         * DataFormats.cs:
15013         * XplatUIOSX.cs:
15014         * XplatUIDriver.cs: Update interface to add a primary selection
15015         flag, so the driver can use the primary selection buffer if
15016         needed.
15017         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
15018
15019         * RichTextBox.cs: We need to supply the data object to paste now
15020         (so we can choose to supply CLIPBOARD or PRIMARY).
15021         * TextBoxBase.cs: Supply data object to paste (see above).
15022         - Middle click uses the primary selection data object.
15023         
15024 2006-09-21  Chris Toshok  <toshok@ximian.com>
15025
15026         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
15027         of SetWMStyles.  It's still a rat's nest and is largely
15028         order-dependent which I dislike immensely.  This also fixes the X
15029         button disappearing from toplevel forms.
15030
15031 2006-09-21  Mike Kestner <mkestner@novell.com>
15032
15033         * ListBox.cs: move Jordi's click/dblclick raising code to the
15034         mouse up handler.
15035
15036 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
15037
15038         * ListBox.cs: Fixes 79450
15039
15040 2006-09-21  Mike Kestner <mkestner@novell.com>
15041
15042         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
15043         to deal with people updating the TreeNodeCollection after the tree
15044         is disposed.  "Fixes" 79330.
15045
15046 2006-09-20  Jackson Harper <jackson@ximian.com>
15047
15048         * TextControl.cs: Push the cursor record onto the undo stack
15049         before the delete action. This fixes 78651.
15050
15051 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
15052
15053         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
15054         CreateParams. Fixes 79329.
15055
15056 2006-09-19  Chris Toshok  <toshok@ximian.com>
15057
15058         * XplatUIX11.cs: a couple of blanket code massage passes to clean
15059         things up a bit.  First, get rid of the NetAtoms array (and the NA
15060         enum), and just embed the atoms as static fields.  Also, add a
15061         couple of functions (StyleSet and ExStyleSet) to clean up all the
15062         bitmask testing of styles.
15063
15064         * X11Structs.cs: remove the NA enum, not needed anymore.
15065         
15066 2006-09-19  Chris Toshok  <toshok@ximian.com>
15067
15068         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
15069         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
15070         added cleanup to get MessageBox titles appearing again, which were
15071         broken by my earlier fix for caption-less/ControlBox-less windows.
15072
15073 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
15074
15075         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
15076           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
15077           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
15078           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
15079           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
15080           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
15081           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
15082           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
15083           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
15084           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
15085           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
15086             Inital import.
15087         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
15088           ToolStripButton.cs: Stubs needed for above.
15089         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
15090
15091 2006-09-15  Chris Toshok  <toshok@ximian.com>
15092
15093         * XplatUIX11.cs:
15094         - make the MessageQueues hashtable Synchronized.
15095         
15096         - SendMessage: if the Hwnd is owned by a different thread, use the
15097         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
15098         thread.  Fixes bug #79201.
15099
15100 2006-09-15  Chris Toshok  <toshok@ximian.com>
15101
15102         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
15103         ControlBox == false, we disallow maximize/minimize/close.  If the
15104         form Caption is "" we also disallow move (and get rid of the Title
15105         decoration).  Unfortunately, regardless of how things are set,
15106         we're stuck with the Title and WM menu.
15107
15108 2006-09-15  Chris Toshok  <toshok@ximian.com>
15109
15110         * Application.cs: add locking around the static message_filters
15111         ArrayList, part of #79196.
15112
15113 2006-09-15  Chris Toshok  <toshok@ximian.com>
15114
15115         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
15116         Form.ControlBox == false, the window has no titlebar nor resize
15117         handles.  fixes bug #79368.
15118
15119 2006-09-15  Chris Toshok  <toshok@ximian.com>
15120
15121         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
15122         >= 0.  Fixes bug #79370.
15123
15124 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
15125         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
15126         * Control.cs:
15127             Add properties: LayoutEngine, Margin, DefaultMargin.
15128             Add method: GetPreferredSize.
15129             Move layout logic from PerformLayout to layout engines. 
15130
15131 2006-09-13  Chris Toshok  <toshok@ximian.com>
15132
15133         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
15134         fix for #79326 broke #78718, so this change addresses that.
15135
15136         - in SendWMDestroyMessages remove the call to
15137         CleanupCachedWindows, since we might be recreating the control and
15138         need to maintain the references to right Hwnd handles.  Also, set
15139         the zombie flag to true for each of the children in the hierarchy
15140         instead of calling hwnd.Dispose.  This will cause GetMessage to
15141         ignore all events for the window except for DestroyNotify.
15142
15143         - In GetMessage, ignore messages except for DestroyNotify for
15144         zombie hwnds.
15145         
15146         * Control.cs: revert the is_recreating fix from the last
15147         ChangeLog.  It's definitely "right", but it breaks switching from
15148         an MDI form to a non-MDI form.  Will need to revisit that.
15149
15150         * Hwnd.cs: add a zombie flag, which means "the
15151         client_window/whole_window handles are invalid, but we're waiting
15152         for the DestroyNotify event to come in for them".  Set the flag to
15153         false explicitly if setting WholeWindow/ClientWindow, and also
15154         when Disposing.
15155         
15156 2006-09-13  Chris Toshok  <toshok@ximian.com>
15157
15158         * XplatUIX11.cs: rework window destruction slightly.
15159
15160         - when destroying the windows associated with a control, we don't
15161         need 2 separate XDestroyWindow calls.  Just the one for the
15162         whole_window (or for client_window if whole_window is somehow
15163         IntPtr.Zero -- can this happen?) is enough.
15164
15165         - reworked SendWMDestroyMessages slightly, so we always dispose
15166         the child control hwnd's after sending the messages.
15167         
15168         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
15169         the two places it was used (one was even using hwnd.Handle and the
15170         other hwnd.client_window.  ugh), adding another call in
15171         SendWMDestroyMessages.  We need this new call because now the
15172         DestroyNotify events in the queue will be ignored for the child
15173         controls (as their hwnd's were disposed, and the window id's
15174         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
15175
15176         - this fixes bug #79326.
15177
15178 2006-09-13  Chris Toshok  <toshok@ximian.com>
15179
15180         * Control.cs: don't always set is_recreating to false at the end
15181         of RecreateHandle, since sometimes we're not done (and won't be
15182         until WndProc handles the WM_DESTROY message).  Also, set
15183         is_recreating to false in the WM_DESTROY handling code.  Part of
15184         the fix for bug #79326.
15185
15186 2006-09-13  Miguel de Icaza  <miguel@novell.com>
15187
15188         * X11DesktopColors.cs: Start the droppage of debugging messages.
15189
15190         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
15191
15192 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
15193
15194         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
15195
15196 2006-09-12  Chris Toshok  <toshok@ximian.com>
15197
15198         * DataGrid.cs (get_ListManager): if the list_manager is null, try
15199         to create it using SetDataSource.  Fixes bug #79151.
15200
15201 2006-09-11  Chris Toshok  <toshok@ximian.com>
15202
15203         * XEventQueue.cs: add a DispatchIdle property.
15204
15205         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
15206         either the queue is null, or the queue has DispatchIdle set to
15207         true.
15208         (DoEvents): set queue.DispatchIdle to false around the
15209         peek/translate/dispatch message loop in this method.  This keeps
15210         Application.Doevents from emitting idle events.  Part of the fix
15211         for #78823.
15212
15213 2006-09-11  Chris Toshok  <toshok@ximian.com>
15214
15215         * DataGrid.cs (set_DataSource): make this work for both the
15216         winforms/datagrid test and ReportBuilder.  It seems as though when
15217         we've created a ListManager (or maybe it's if we have a
15218         BindingContext?), when we set the DataSource it clears the
15219         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
15220         #79333.
15221
15222 2006-09-11  Chris Toshok  <toshok@ximian.com>
15223
15224         * XplatUIX11.cs: deal with queue being null, which happens in all
15225         the Clipboard functions.  Fixes one of the two problems mentioned
15226         in #78612.
15227
15228 2006-09-11  Chris Toshok  <toshok@ximian.com>
15229
15230         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
15231         button on various spots (including outside the menu) works closer
15232         to MS, and doesn't crash.  Fixes #79343.
15233
15234 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
15235
15236         * ListView.cs: Do not initialize item_sorter in init. To match MS,
15237         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
15238         and the internal comparer is set. When a new ListViewItemSorter is set,
15239         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
15240         was specified. No further processing is necessary if SortOrder is set
15241         to it's current value. If Sorting is modified to None, and View is
15242         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
15243         (either custom or our internal ItemComparer) to null, on 1.0 profile
15244         only set item_sorter to null if its our internal IComparer. If Sorting
15245         is modified to Ascending or Descending, then use our internal IComparer
15246         if none is set, and if the current IComparer is our internal one then:
15247         on 2.0 profile always replace it with one for new Sorting, and on 1.0
15248         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
15249         Enum.IsDefined to verify whether a valid View value is specified in
15250         its setter. Automatically sort listview items when listview is
15251         created. In Sort, do nothing if ListView is not yet created, or if
15252         no item_sorter is set (no Sorting was set, Sorting was explicitly set
15253         to None or ListViewItemSorter was set to null). Added Sort overload
15254         taking a bool to indicate whether the ListView should be redrawn when
15255         items are sorted (we use this in ListViewItemCollection to avoid double
15256         redraws). Modified our internal IComparer to take the sort order into
15257         account. In Add and AddRange methods of ListViewItemCollection, also
15258         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
15259         view), but use overload with noredraw option to avoid double redraw.
15260         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
15261         true when View is Tile, and do the same when attempting to set View to
15262         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
15263         for selected/checked indices, as it involves overhead when sorting is
15264         done while these collections are not used all that often. Instead
15265         we'll build the indices on demand. Modified IList implementation of
15266         CheckedIndexCollection to use public methods if object is int.
15267         Modified CheckedListViewItemCollection to hide checked items if
15268         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
15269         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
15270         IList implementation in SelectedIndexCollection to use public methods
15271         if object is int. Modified SelectedListViewItemCollection to hide
15272         selected items if listview is not yet created.
15273         * ListViewItem.cs: CheckedIndices list no longer needs to be
15274         maintained separately (see ListView changes). Also clone font, fixes
15275         test failure.
15276
15277 2006-09-11  Mike Kestner  <mkestner@novell.com>
15278
15279         * ComboBox.cs: if we are updating the contents of the currently
15280         selected index, refresh the control or the textbox selection.
15281         [Fixes #79066]
15282
15283 2006-09-11  Mike Kestner  <mkestner@novell.com>
15284
15285         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
15286         the 'specified' logic has been moved there.  This seems like a bug 
15287         in Control.cs, since our current SetBoundsCore completely ignores 
15288         the specified parameter.  Peter's commit seems to indicate that is 
15289         the way the MS control implementation works.  [Fixes #79325]
15290
15291 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
15292
15293         * XplatUI.cs: Set default_class_name to be composed
15294         of current domain id. This allows MWF to be loaded in multiple
15295         domains on Win32.
15296
15297 2006-09-09  Miguel de Icaza  <miguel@novell.com>
15298
15299         * X11Keyboard.cs: If we are unable to obtain the input method, do
15300         not call CreateXic to create the input context.   Should fix
15301         #78944/79276.
15302
15303 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
15304
15305         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
15306           Simplified gnome support by adding more pinvokes to get the
15307           icon for a file or mime type.
15308
15309 2006-09-08  Jackson Harper  <jackson@ximian.com>
15310
15311         * MenuAPI.cs: Deslect popup context menu items before closing the
15312         window, so that you don't see the previously selected item
15313         selected when you reopen the menu.
15314         * TextControl.cs: Update the cursor position even if we don't have
15315         focus.  This fixes typing in things like the ComboBox.  I'm not
15316         totally sure we should always set the visibility if we don't have
15317         focus, but couldn't find any corner cases where the cursor showed
15318         up when it shouldn't.
15319
15320 2006-09-08  Chris Toshok  <toshok@ximian.com>
15321
15322         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
15323         our arrays are length 256.  & 0xff before indexing.  Fixes the
15324         crash in bug #78077.
15325         
15326 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15327
15328         * ThemeWin32Classic.cs: 
15329         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
15330         is true. Handle that check box too.
15331
15332 2006-09-07  Chris Toshok  <toshok@ximian.com>
15333
15334         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
15335         79244.
15336
15337 2006-09-07  Chris Toshok  <toshok@ximian.com>
15338
15339         * Control.cs: in set_BackColor only do the work if
15340         background_color != value.
15341
15342         * XplatUIX11.cs: move the clearing of invalid areas (both client
15343         and nc) to the same block of code where we set (nc_)expose_pending
15344         to false.  That is, move it from PaintEventEnd to PaintEventStart,
15345         so things that cause invalidates from within OnPaint will trigger
15346         another call to OnPaint.  Fixes bug #79262.
15347
15348 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
15349
15350         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
15351         * FileDialog.cs: Fix typo
15352
15353 2006-09-07  Jackson Harper  <jackson@ximian.com>
15354
15355         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
15356         for tab pages if they have any.
15357
15358 2006-09-06  Mike Kestner  <mkestner@novell.com>
15359
15360         * Splitter.cs: use the "current" rect when finishing drag handle
15361         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
15362
15363 2006-09-06  Mike Kestner  <mkestner@novell.com>
15364
15365         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
15366         support offset splitters. [Fixes #79298]
15367
15368 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
15369
15370         * Mime.cs: Fixed a bug that could override the global mime type
15371           result.
15372
15373 2006-09-05  Jackson Harper  <jackson@ximian.com>
15374
15375         * TabControl.cs: Better calculation method for setting the slider
15376         pos. Prevents crashes on really wide tabs.
15377         - Draw Image on tab pages if an image list is used.
15378
15379 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15380
15381         * MonthCalendar.cs: When Font changes, the Size should be
15382         updated to fit the new font's space requirements.
15383
15384 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
15385
15386         * ListBox.cs: If the items are cleared with Items.Clear set
15387           top_index to 0.
15388
15389 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15390
15391         * MonthCalendar.cs: Handle arrow keys as input keys. Also
15392         fire DateChanged event instead of DateSelected event when
15393         the date was changed by keyboard interaction.
15394
15395 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15396
15397         * DateTimePicker.cs: Handle DateChanged for the associated
15398         month_calendar control, and set month_calendar.Font from 
15399         OnFontChanged method, as well as resize the height of the
15400         control when needed. Make PreferredHeight proportional.
15401
15402 2006-09-01  Chris Toshok  <toshok@ximian.com>
15403
15404         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
15405         properties.
15406
15407         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
15408
15409 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
15410
15411         * FileDialog.cs: Set ClientSize instead of window size, to allow space
15412           for decorations (Fixes #79219)
15413
15414 2006-09-01  Mike Kestner  <mkestner@novell.com>
15415
15416         * ComboBox.cs: first stab at sorting plus some selection handling
15417         fixes to bring us more in line with MS behavior.  Also switches back
15418         to index based selection.  Alternative patches for index-based 
15419         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
15420         and latency@gmx.de on bug 78848.  I assume they were similar to this
15421         code I've had simmering in my tree forever.
15422         [Fixes #78848]
15423
15424 2006-09-01  Chris Toshok  <toshok@ximian.com>
15425
15426         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
15427         when setting list position guard against ending up with a -1 index
15428         (the other part of the fix for #78812).  Should probably make sure
15429         we don't need the analogous fix in the ItemDeleted case.
15430
15431         * DataGrid.cs:
15432         - in SetDataSource, work around the fact that the way
15433         OnBindingContextChanged is invoked will cause us to re-enter this
15434         method.  I'll remove the hack once I investigate
15435         OnBindingContextChanged.
15436
15437         - fix the logic in set_DataSource and set_DataMember (basically
15438         what to do if the other of the two is null.)
15439         
15440         - in OnListManagerItemChanged, we need to take into account the
15441         edit row when deciding whether or not to call RecreateDataGridRows
15442         (part of the fix for #78812).
15443
15444 2006-09-01  Jackson Harper  <jackson@ximian.com>
15445
15446         * Splitter.cs: Don't do anything if there is no control to affect
15447         (prevents us from crashing in weird tet cases).
15448         * TreeView.cs: Bounding box for the mouse movement reverting
15449         focus/selection back to previously selected node.  This matches
15450         MS, and makes the tree a lot more useable.
15451         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
15452         use clipping so they are not drawn.  This fixes when the control
15453         is set to have a transparent background, or if it was over an
15454         image.
15455
15456 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
15457
15458         * MimeIcon.cs: Improved handling for reading default icons when
15459           using gnome (2.16 made it necessary). Check and read svg icons
15460           first, then 48x48 and then 32x32 icons.
15461
15462 2006-08-31  Chris Toshok  <toshok@ximian.com>
15463
15464         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
15465         visible.
15466
15467         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
15468         ProcessKeyPreview.  Fixes part of #77806.
15469
15470         * DataGrid.cs: big patch.
15471
15472         - revert the queueing up of DataSource/DataMember if inside
15473         BeginInit/EndInit calls.  That's not the way the datagrid achieves
15474         its delayed databinding.  Instead, call SetDataSource in
15475         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
15476         #78811.
15477
15478         - Also, it wasn't mentioned in #78811, but the test case exhibits
15479         behavior that was lacking in our datagrid implementation - Columns
15480         that have mapping names that don't exist in the datasource's
15481         properties aren't shown.  Yuck.  To fix this I added the bound
15482         field to the column style, and basically any calculation to figure
15483         out anything about columns uses a loop to find the bound columns.
15484         still need to investigate if I can cache an array of the bound
15485         columns or if the indices must be the same.
15486
15487         - When setting CurrentCell, we no longer abort if the cell being
15488         edited was in the add row.  This fixes the other part of #77806.
15489
15490         - The new code also fixes #78807.
15491         
15492         * ThemeWin32Classic.cs: perpetrate the same disgusting
15493         column.bound field hack, and only render bound fields.
15494
15495 2006-08-31  Chris Toshok  <toshok@ximian.com>
15496
15497         * DataGridColumnStyle.cs: add bound field.  this field is true if
15498         the datasource has a property corresponding to the mapping name.
15499
15500         * DataGridTableStyle.cs: set the bound field on the column styles
15501         depending on whether or not we have a column for that property.
15502
15503 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
15504
15505         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
15506           splitter control (fixes #79228)
15507
15508 2006-08-31  Chris Toshok  <toshok@ximian.com>
15509
15510         * DataGridColumnStyle.cs: we need to delay the assignment of
15511         property descriptor until the last possible moment due to the lazy
15512         databinding stuff in the datagrid.  Also, fix the exceptions
15513         thrown by CheckValidDataSource to match MS.
15514
15515 2006-08-31  Jackson Harper  <jackson@ximian.com>
15516
15517         * Form.cs: When activated select the active control, if there is
15518         no active control, we select the first control.
15519         * XplatUIX11.cs: If there is no focus control when we get a
15520         FocusIn event, find the toplevel form and activate it.  This
15521         occurs when you popup a window, it becomes the focus window, then
15522         you close that window, giving focus back to the main window.
15523
15524 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15525
15526         * MonthCalendar.cs: 
15527         * ThemeWin32Classic.cs: Cache Font in bold style, as well
15528         as StringFormat with Center alignments in MonthCalendar,
15529         instead of creating new ones when drawing the control. 
15530         Also, draw the month name in bold style.
15531
15532 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
15533
15534         * Control.cs:
15535           - PerformLayout(): It would seem MS performs the fill even if the 
15536             control is not visible (part of #79218 fix)
15537           - ResetBackColor(): Use the setter to reset the color, to allow
15538             overriders to catch the change.
15539         * Form.cs:
15540           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
15541           - CreateHandle(): dito (part of $79218 fix)
15542           - Don't set an icon if we have a dialog
15543         * ScrollableControl.cs:
15544           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
15545           - ScrollIntoView(): No need to scroll if control is already visible
15546             (resolves fixme and fixes #79218)
15547
15548 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15549
15550         * MonthCalendar.cs: Change proportions in SingleMonthSize
15551         to match the aspect of the original control.
15552
15553 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
15554
15555         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
15556           get updated when they get maximized.
15557
15558 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
15559
15560         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
15561
15562 2006-08-29  Chris Toshok  <toshok@ximian.com>
15563
15564         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
15565
15566 2006-08-29  Jackson Harper  <jackson@ximian.com>
15567
15568         * TreeView.cs: Need to track selected node and highlighted node,
15569         they aren't always the same thing, when the mouse is down on a
15570         node it is hilighted, but not selected yet.
15571         - Do the HideSelection stuff right
15572         - Need to focus on rbutton mouse down. And redraw selection when
15573         right click is mouse upped.
15574
15575 2006-08-29  Mike Kestner  <mkestner@novell.com>
15576
15577         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
15578         when SubItems.Count < Columns.Count.  [Fixes #79167]
15579
15580 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
15581
15582         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
15583
15584 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
15585
15586         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
15587           from X. Only send based on ConfigureNotify if we don't have the
15588           correct location in hwnd (if the window manager moved us)
15589
15590 2006-08-28  Mike Kestner  <mkestner@novell.com>
15591
15592         * ListView.cs: remove a TODO. 
15593         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
15594         [Fixes ListView part of #79166]
15595
15596 2006-08-28  Mike Kestner  <mkestner@novell.com>
15597
15598         * ListView.cs: move wheel handler to parent since it is focused
15599         instead of the item_control now.  [Fixes #79177]
15600
15601 2006-08-28  Mike Kestner  <mkestner@novell.com>
15602
15603         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
15604         when the control is focused. [Fixes #79171]
15605
15606 2006-08-28  Mike Kestner  <mkestner@novell.com>
15607
15608         * ListView.cs: size the item and header controls for empty and
15609         unscrollable views.
15610         * ThemeWin32Classic.cs: draw disabled backgrounds.
15611         [Fixes #79187]
15612
15613 2006-08-28  Chris Toshok  <toshok@ximian.com>
15614
15615         * Form.cs: remove unused "active_form" static field.
15616
15617         * Hwnd.cs: lock around accesses to static windows collection.
15618
15619         * Application.cs: lock threads in Exit ().
15620
15621 2006-08-28  Chris Toshok  <toshok@ximian.com>
15622
15623         * NativeWindow.cs: lock around accesses to window_collection.
15624         
15625 2006-08-28  Chris Toshok  <toshok@ximian.com>
15626
15627         * Control.cs: err, fix this the right way, by locking on controls
15628         when using it.  not by making it synchronized.
15629
15630 2006-08-28  Chris Toshok  <toshok@ximian.com>
15631
15632         * Control.cs: make the static "controls" field synchronized, as it
15633         gets updated from multiple threads.
15634
15635 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
15636
15637         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
15638           Prevent other threads from exiting when calling thread sets quit state.
15639         * XEventQueue.cs: Added PostQuitState property
15640
15641 2006-08-27  Chris Toshok  <toshok@ximian.com>
15642
15643         * AsyncMethodData.cs: add a slot for the window handle.
15644
15645         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
15646         window (the destination control's window, not the foster window).
15647
15648         * Control.cs (BeginInvokeInternal): store the window's handle in
15649         the AsyncMethodData.
15650         
15651
15652 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
15653
15654         * XplatUIX11.cs:
15655           - PostQuitMessage: Removed resetting S.D display handle, we might have
15656             another loop started after calling PostQuitMessage (Fixes #79119)
15657           - Created destructor to reset S.D handle
15658
15659 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
15660
15661         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
15662
15663 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15664
15665         * TextControl.cs (Insert): Update the caret position even if we don't
15666           have a handle yet, just don't call the driver in that case.
15667         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
15668           to the end of the new selection text (Fixes #79184)
15669
15670 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15671
15672         * Form.cs (Activate): Only activate if the handle is created)
15673         * Control.c:
15674           - Mark window as invisible when it's disposed
15675           - Check if window handle is created when setting window visible, 
15676             instead of relying just on the is_created variable
15677           - Check if object is disposed when creating the control (Fixes #79155)
15678
15679 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15680
15681         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
15682           when allowing layout again. Otherwise we re-generate the anchoring 
15683           distance to the border again and actually alter what the user wanted
15684           This is ugly, it'd be better if we used DisplayRectangle instead of
15685           ClientRectangle for Control.UpdateDistances, but that causes us to
15686           have other problems (initial anchoring positons would be wrong)
15687           (Fixes #78835)
15688
15689 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15690
15691         * Control.cs:
15692           - The size and location setters shouldn't go directly to 
15693             SetBoundsCore, but to SetBounds, which triggers layout on the
15694             parent, then calls SetBoundsCore. (Related to fix for #78835)
15695           - SetBounds: Moved actual location update code into this function
15696             from SetBoundsCore, to match MS. Added call to PerformLayout if
15697             we have a parent (to trigger resizing of anchored parents if the 
15698             child size has changed (see testcase for #78835) 
15699         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
15700           new control code
15701         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
15702
15703 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15704
15705         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
15706           System.Drawing when a toplevel window gets closed; there might
15707           be other toplevel windows belonging to the same app (Fixes #78052)
15708
15709 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
15710
15711         * FileDialog.cs: After reading FileDialog settings from mwf_config
15712           use Desktop prefix only if a real folder doesn't exist anymore.
15713         * FontDialog.cs: Added char sets.
15714           It is now possible to select the font, size or style with the
15715           textboxes.
15716
15717 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
15718
15719         * PrintPreviewDialog.cs: Use assembly name constants.
15720
15721 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15722
15723         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
15724           scrollbar from whacking it's buttons)
15725
15726 2006-08-24  Chris Toshok  <toshok@ximian.com>
15727
15728         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
15729         in this patch (aggregating setting Left/Top/Width/Height to
15730         setting Bounds on the scrollbars), but the crux of the fix is in
15731         Recalculate, where we scroll by the remaining scroll_position if
15732         we're hiding a scrollbar.  The 2*$5 reward in the comment is
15733         serious.
15734
15735 2006-08-24  Jackson Harper  <jackson@ximian.com>
15736
15737         * MdiClient.cs:
15738         * MdiWindowManager.cs: If the form is made a non-mdi window we
15739         need to remove the form closed event so that closing forms works
15740         correctly.
15741
15742 2006-08-24  Jackson Harper  <jackson@ximian.com>
15743
15744         * Control.cs: Make IsRecreating internal so that the driver can
15745         check it
15746         - Temporarily remove the Hide when controls are removed, its
15747         making a whole bunch of things not work because visibility isn't
15748         getting reset elsewhere correctly
15749         * Form.cs: Need to do a full handle recreation when the mdi parent
15750         is set.
15751         * XplatUIX11.cs: If we are recreating handles don't dispose the
15752         HWNDs.  What was happening is the handles were being recreated in
15753         SendWMDestroyMessages, but then flow continued on in that method
15754         and destroyed the new handles.
15755
15756 2006-08-23  Jackson Harper  <jackson@ximian.com>
15757
15758         * Form.cs: MdiClient is always at the back of the bus
15759         * Control.cs: When the order of items in the collection is changed
15760         we need to reset the all_controls array
15761         - do the same sorta setup thats done when adding a control when a
15762         control is set on the collection.
15763
15764 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15765
15766         * TextBoxBase.cs (get_Text): Return an empty array if our document
15767           is empty (fixes #79052)
15768
15769 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15770
15771         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
15772           on WM_SYSCHAR messages (fixes #79053)
15773
15774 2006-08-23  Chris Toshok  <toshok@ximian.com>
15775
15776         * DataGrid.cs: fix flickering when scrolling vertically.
15777
15778 2006-08-23  Chris Toshok  <toshok@ximian.com>
15779
15780         * DataGrid.cs (EndEdit): only invalidate the row header when we
15781         need to.
15782
15783 2006-08-23  Chris Toshok  <toshok@ximian.com>
15784
15785         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
15786         methods.  fixes the flicker when scrolling around.
15787
15788 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15789
15790         * FileDialog.cs: Making sure the control is created before we get a 
15791           chance to use it with BeginInvoke (Fixes #79096)
15792
15793 2006-08-23  Chris Toshok  <toshok@ximian.com>
15794
15795         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
15796         width to use when painting the rows.
15797
15798 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15799
15800         * TextBoxBase.cs:
15801           - Throw ArgumentException if a negative value is passed to SelectionLength
15802           - Update the selection end if start is moved. end needs to be always
15803             after start. (Fixes #79095)
15804           - Track selection length; MS keeps the selection length even if start
15805             is changed; reset on all other operations affection selection
15806
15807 2006-08-22  Jackson Harper  <jackson@ximian.com>
15808
15809         * TreeView.cs: Make sure both scrollbars get displayed and sized
15810         correctly when the other bar is visible.
15811         - Use the original clip rectangle for checking if the area between
15812         the two scrollbars is visible, not the viewport adjusted clipping
15813         rectangle.
15814
15815 2006-08-22  Jackson Harper  <jackson@ximian.com>
15816
15817         * Binding.cs: We don't use IsBinding because it requires the
15818         control to be created, which really shouldn't be necessary just to
15819         set a property on the control.
15820
15821 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15822
15823         * ComboBox.cs: Some CB.ObjectCollection methods must throw
15824         ArgumentNullReferenceException when the argument is null.
15825
15826 2006-08-21  Jackson Harper  <jackson@ximian.com>
15827
15828         * Timer.cs: Track the thread that the timer is started in (NOT
15829         CREATED), this way messages for it will only be triggered on its
15830         queue.
15831         * XEventQueue.cs: Track the timers here, this makes timers per
15832         thread, like MS.
15833         * XplatUIX11.cs: The timers are moved to the XEventQueue.
15834
15835 2006-08-19  Chris Toshok  <toshok@ximian.com>
15836
15837         * XplatUIX11.cs: after further communication with pdb, we get the
15838         best of both worlds.  SetZOrder working for un-Mapped windows, and
15839         no X errors for un-mapped windows.
15840
15841 2006-08-19  Chris Toshok  <toshok@ximian.com>
15842
15843         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
15844         as it was causing pdn toolbars to not have the correct stacking.
15845
15846 2006-08-18  Mike Kestner  <mkestner@novell.com> 
15847
15848         * ListView.cs : guard against negative ClientArea.Width in scrollbar
15849         calculation.  Not sure why control should ever be setting a negative
15850         width though.  Fixes #78931.
15851
15852 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15853
15854         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
15855         null items in ObjectCollection class.
15856         * ListBox.cs.: Likewise.
15857
15858 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
15859
15860         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
15861           as the base method in ThemeWin32Classic should work fine.
15862           Fixed bug #78607.
15863
15864 2006-08-18  Jackson Harper  <jackson@ximian.com>
15865
15866         * Binding.cs: When validating if the value entered doesn't convert
15867         properly reset to the old value.
15868         * RadioButton.cs: Don't fire click when we get focus.
15869
15870 2006-08-18  Jackson Harper  <jackson@ximian.com>
15871
15872         * FileDialog.cs: Paint the selection on the directory combobox the
15873         same way as on MS. 
15874
15875 2006-08-17  Jackson Harper  <jackson@ximian.com>
15876
15877         * ErrorProvider.cs: Don't allow the error control to be selected.
15878         * Control.cs: Don't send the SetFocus messages, the control
15879         activation will do this, and if we do it blindly here validation
15880         does not work.
15881
15882 2006-08-17  Jackson Harper  <jackson@ximian.com>
15883
15884         * Control.cs:
15885         * ContainerControl.cs: Make validation events fire in the correct
15886         order.  TODO: For some reason the first validation event is not
15887         getting fired.
15888
15889 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15890
15891         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
15892
15893 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15894
15895         * ComboBox.cs : implement scroll wheel support for popped-down
15896         state. Fixes #78945. 
15897
15898 2006-08-17  Jackson Harper  <jackson@ximian.com>
15899
15900         * TreeView.cs: Specify treeview actions (old patch that didn't get
15901         committed for some reason).
15902         - Don't let the mouse wheel scroll us too far.  Just want to make
15903         the bottom node visible, not scroll it all the ways to the top.
15904
15905 2006-08-17  Jackson Harper  <jackson@ximian.com>
15906
15907         * XplatUIX11.cs: Mouse wheel events go to the focused window.
15908
15909 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15910
15911         * ComboBox.cs : don't do mouseover selection in simple mode.
15912
15913 2006-08-16  Jackson Harper  <jackson@ximian.com>
15914
15915         * Form.cs: Fire the closing events for all the mdi child windows
15916         when a window is closed.  If the cancel args are set to true, the
15917         main window still gets the event fired, but it doesn't not close.
15918         * MdiWindowManager.cs: Do this closing cleanup in a Closed
15919         handler, instead of when the button is clicked, so cancelling the
15920         close works correctly.
15921         * ComboBox.cs: Send the mouse down to the scrollbar.
15922
15923 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15924
15925         * ListBox.cs: When passing 'null' to SelectedItem,
15926         set SelectedIndex to -1, to unselect items. This is the
15927         observed behaviour in .Net.
15928
15929 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
15930
15931         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
15932           MS flags saying there won't be any. (fixes #78800)
15933         * Control.cs (HandleClick): Made virtual
15934
15935 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
15936
15937         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
15938           cultures. Fixed bug #78399.
15939
15940 2006-08-16  Jackson Harper  <jackson@ximian.com>
15941
15942         * Form.cs: Use the MdiClients MdiChildren property to access
15943         MdiChildren instead of creating the array from the child controls.
15944         * MdiClient.cs: Maintain a separate array of the mdi children, so
15945         that insertion order is maintained when the Z-order is changed.
15946
15947 2006-08-16  Mike Kestner  <mkestner@novell.com> 
15948
15949         * ListView.cs : add an ItemComparer and default to it for sorting.
15950         Fixes #79076, but sorting needs a complete overhaul to be compat with
15951         MS.
15952
15953 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
15954
15955         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
15956
15957 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15958
15959         * Hwnd.cs (Mapped): Properly traverse the tree
15960
15961 2006-08-15  Chris Toshok  <toshok@ximian.com>
15962
15963         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
15964         pass manager.Current.GetType() to ParseData.  It has to be the
15965         property type.  So, hold off doing the ParseData until we're in
15966         SetPropertyValue where we know the type.  This fixes the crash in
15967         #78821 but the textbox is still empty.
15968
15969 2006-08-15  Chris Toshok  <toshok@ximian.com>
15970
15971         * DataGrid.cs:
15972         - when we're scrolling, only call Edit() again if the
15973         current cell is still unobscured. Fixes bug #78927.
15974         - when handling mousedown on a cell, ensure the cell is visible
15975         before calling Edit.
15976         - remove the properties from DataGridRow, and remove the
15977         DataGridParentRow class altogether.
15978         
15979
15980 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15981
15982         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
15983           fire OnTextChanged by ourselves. There's no point calling base,
15984           we don't set the base value anywhere else. Fixes #78773.
15985
15986 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15987
15988         * ListBox.cs: Call CollectionChanged when modifying
15989         an item from Items indexer, to update the actual items
15990         in the list box.
15991
15992 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15993
15994         * PrintDialog.cs: Small fixes for focus and a pair of checks,
15995         to match .Net behaviour.
15996
15997 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15998
15999         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
16000
16001 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
16002
16003         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
16004
16005 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
16006
16007         * MessageBox.cs: Prevent potential NRE exception.
16008         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
16009
16010 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
16011
16012         * MessageBox.cs: Calculate the owner of a messagebox, also make
16013           it topmost. Fixes #78753
16014
16015 2006-08-14  Chris Toshok  <toshok@ximian.com>
16016
16017         * XplatUIX11.cs: A couple of fixes so that metacity will let us
16018         programmatically move windows.  first, set the PPosition hint as
16019         well as the USPosition hint.  Second include some code from pdb
16020         that sets the window type to NORMAL when we set the transient for
16021         hint.  This is because, in the absence of a window type, metacity
16022         thinks any window with TransientFor set is a dialog, and refuses
16023         to let us move it programmatically.  fascists.
16024
16025 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
16026
16027         * XplatUIX11.cs: When setting normal hints, take into consideration
16028           an different hints previously set so we don't delete them (fixes #78866)
16029
16030 2006-08-12  Chris Toshok  <toshok@ximian.com>
16031
16032         * ToolBarButton.cs: make Layout return a boolean, if something to
16033         do with the button's layout changed.
16034
16035         * ToolBar.cs:
16036         - add another parameter to Redraw, @force, which all existing
16037           calls set to true.
16038         - make the Layout function return a boolean which is true if the
16039           layout has actually changed.  Redraw now uses this (and @force)
16040           to determine when to invalidate.  At present the only place
16041           where @force can be false is the call from OnResize, when
16042           background_image == null.  So, resizing a toolbar when the
16043           layout doesn't change results in no drawing.
16044
16045 2006-08-12  Chris Toshok  <toshok@ximian.com>
16046
16047         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
16048         the VScrollBar and HScrollbar reversed.  oops.
16049
16050         * DataGrid.cs: fix the logic that assigns sizes to the implicit
16051         scrollbars.  we were assigning them twice (once in
16052         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
16053         therefore causing two scrollbar resizes (and redraws?) to happen
16054         per grid resize.
16055
16056 2006-08-12  Chris Toshok  <toshok@ximian.com>
16057
16058         * ToolBarButton.cs: redraw the entire button if the theme tells us
16059         to.
16060
16061         * Theme.cs: add ToolBarInvalidateEntireButton.
16062
16063         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
16064         buttons, just the border.
16065
16066         * ThemeNice.cs: redraw the entire toolbar button since we need to
16067         draw the highlight image.
16068
16069         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
16070         we need to redraw the entire button (not just the border).
16071
16072 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
16073
16074         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
16075           for vertical bars. Fixes the mismatches shown by #78513
16076
16077 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
16078
16079         * FileDialog.cs: If a saved/remembered path doesn't exist
16080           anymore, fall back to "Desktop".
16081
16082 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
16083
16084         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
16085           parent. It's apparently legal to not have one
16086         * XplatUIX11.cs:
16087           - SetZOrder: Don't try to set Z-Order on an unmapped window
16088           - CreateWindow: 0,0 are legal coordinates for a window. don't move
16089             it unless the coordinates are negative
16090
16091 2006-08-10  Mike Kestner  <mkestner@novell.com>
16092
16093         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
16094         when setting to null per msdn docs.  Fixes #78854.
16095
16096 2006-08-10  Chris Toshok  <toshok@ximian.com>
16097
16098         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
16099         flickering by setting a clip rectangle on the Graphics when we
16100         need to redraw just a particular menuitem.  Also, rename "OnClick"
16101         to "OnMouseDown" to reflect what it actually is.
16102         
16103         * Form.cs: track the OnMouseDown change.
16104
16105 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
16106
16107         * CommonDialog.cs: Properly inherit the CreateParams from the form
16108           and only change what we need. Fixes #78865
16109
16110 2006-08-10  Chris Toshok  <toshok@ximian.com>
16111
16112         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
16113         flickering in flat mode (and most of the flickering in general) by
16114         only invalidating the button border (and not the entire rectangle)
16115         when the state changes.  A couple of cases still flicker:
16116         ToggleButtons, and the dropdown arrow case when the user mouse
16117         ups.
16118
16119 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
16120
16121         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
16122           for german keyboards. Numlock state shouldn't affect the behaviour
16123           of the Del key. Fixes bug #78291.
16124
16125 2006-08-10  Chris Toshok  <toshok@ximian.com>
16126
16127         * ListControl.cs: remove the items.Clear line from BindDataItems,
16128         as this is the first thing done by both subclasses in their
16129         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
16130         passed -1, refresh the list.  This gets databinding working when
16131         the datasource is set on the list before the datasource is
16132         populated (as in wf-apps/ReportBuilder.)
16133
16134         * ComboBox.cs: remove the argument to BindDataItems.  This call
16135         should really go away, and be initiated by the ListControl code.
16136
16137         * ListBox.cs: same.
16138
16139 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
16140
16141         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
16142           if no data is in the document when the control is displayed
16143
16144 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
16145
16146         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
16147           yes (fixes #78806)
16148         * TextControl.cs: 
16149           - PositionCaret: Allow positioning of caret but don't call methods 
16150             requiring a handle if the window isn't created yet
16151           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
16152           - owner_HandleCreated: Don't position the caret, just update it's 
16153             location. User might have already set a different position
16154
16155 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
16156
16157         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
16158           windows. Screws up the returned coordinates for child windows. 
16159           Fixes #78825. I'm hoping this doesn't break something, since the
16160           code was explicitly put in 8 months ago, but no bug was attached.
16161           Menus still seem to work properly.
16162
16163 2006-08-08  Chris Toshok  <toshok@ximian.com>
16164
16165         * DataGrid.cs: make BeginInit/EndInit actually do what they're
16166         supposed to do - delay data binding until the EndInit call.  Also,
16167         make the table style collection's CollectionChangeAction.Refresh
16168         work properly.
16169
16170         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
16171         (with action = Refresh) when a consituent table's MappingName is
16172         changed.
16173
16174 2006-08-08  Chris Toshok  <toshok@ximian.com>
16175
16176         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
16177         Invalidate, since changing the text can change the size of the all
16178         toolbar buttons.
16179
16180 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
16181
16182         * Form.cs (AddOwnedForm): Still need to add the form to our listif
16183           we don't have it yet
16184
16185 2006-08-08  Chris Toshok  <toshok@ximian.com>
16186
16187         * PrintControllerWithStatusDialog.cs: don't .Close() the status
16188         dialog, as this causes X errors later on, since we actually
16189         destroy the window.  Instead, .Hide() it.
16190
16191 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
16192
16193         * ComboBox.cs: Added focus reflection for popup window
16194         * XplatUIX11.cs: 
16195           - Removed transient setting for non-app windows for now, not sure it
16196             was needed
16197           - Fixed logic checking if we have captions when deciding 
16198             override_redirect, WS_CAPTION is two bits and a 0 check was not
16199             sufficient
16200           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
16201             complicated
16202         * Form.cs: 
16203           - AddOwnedForm: Don't just add the form to the list, call the property
16204             to ensure the driver is informed about the ownership as well
16205           - CreateHandle: Set the TopMost status in the driver if we have an owner
16206         * XplatUI.cs: Fixed debug statement
16207
16208 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
16209         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16210           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
16211           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
16212           TrackBarRenderer.cs: Make constructor private.
16213         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
16214         * ProfessionalColorTable.cs: Make properties virtual.
16215
16216 2006-08-06  Duncan Mak  <duncan@novell.com>
16217
16218         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
16219         is not changing.
16220
16221 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
16222         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
16223           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
16224           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
16225           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
16226           Initial import of new 2.0 classes.
16227
16228 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
16229         * Application.cs: Add 2.0 VisualStyles properties.
16230
16231 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
16232         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
16233           XplatUIX11.cs: Create property to allow access to existing private
16234           variable "themes_enabled"
16235
16236 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16237
16238         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
16239         file size, as otherwise our class libraries fail using windows. Fixes
16240         bug #78759.
16241
16242 2006-08-04  Jackson Harper  <jackson@ximian.com>
16243
16244         * Form.cs:
16245         * XplatUIX11.cs: Move the toolwindow window manager creation into
16246         the X11 driver, this way on win32 we can let windows create/handle
16247         the toolwindows.
16248
16249 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16250
16251         * PrintDialog.cs: Remove some redundant checks, add some others,
16252         clean some code, and move the focus to the text boxes when the
16253         values are incorrect.
16254
16255 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
16256
16257         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
16258
16259 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
16260
16261         * NumericUpDown.cs: Setting the Minimum and Maximum is now
16262           handled correctly. Fixes bug #79001.
16263
16264 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16265
16266         * PrintDialog.cs: The "Copies" numeric up down must have
16267         set the Minimum property to 1; only if the value is bigger
16268         than 1, activate "Collate" check box. This is the behaviour of .Net.
16269         Also modify the Document elements only if it is not null.
16270
16271 2006-08-03  Jackson Harper  <jackson@ximian.com>
16272
16273         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
16274         length. (We have a larger array then actual node count).
16275                 
16276 2006-08-03  Jackson Harper  <jackson@ximian.com>
16277
16278         * ComboBox.cs: Don't show selection by default.
16279         - The SelectAll isn't needed here, since the focus code should do
16280         that
16281         - DDL style lists to manual selection drawing, so when they
16282         get/lose focus they have to invalidate.
16283
16284 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
16285
16286         * TextBoxBase.cs: Don't always show all selections by default.
16287
16288 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
16289         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
16290           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
16291           Fixed various typos.
16292
16293 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
16294
16295         * Control.cs: Removing the controls in a ControlCollection with
16296           Clear now hides the controls as expected. Fixes bug #78804. 
16297
16298 2006-08-03  Jackson Harper  <jackson@ximian.com>
16299
16300         * Control.cs: Revert previous focus patch, it breaks reflector.
16301
16302 2006-08-03  Jackson Harper  <jackson@ximian.com>
16303
16304         * ComboBox.cs: Cleanup selection and focus with the combobox.
16305         This also eliminates some duplicated keyboard code, since now
16306         everything is handled by the main class.
16307         - Make list selection work on mouse up instead of down, to match
16308         MS.
16309
16310 2006-08-02  Jackson Harper  <jackson@ximian.com>
16311
16312         * Control.cs: Setting focus needs to go through the whole
16313         selection mechanism.
16314
16315 2006-08-02  Chris Toshok  <toshok@ximian.com>
16316
16317         * PrintPreviewDialog.cs: change MinimumSize to use
16318         base.MinimumSize so it works.
16319
16320 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
16321
16322         * TextControl.cs:
16323           - UpdateCaret: Added sanity check in case caret isn't defined yet
16324           - Line.Delete: Now updating selection and caret markers if we're
16325             transfering a node (Properly fixes #78323)
16326           - SetSelectionEnd: Added sanity check
16327         * TextBoxBase.cs: Removed broken attempt to fix #78323
16328
16329 2006-08-01  Chris Toshok  <toshok@ximian.com>
16330
16331         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
16332         Close() call is handled in Form, not here.
16333
16334 2006-08-01  Chris Toshok  <toshok@ximian.com>
16335
16336         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
16337         layout/rendering.
16338
16339         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
16340         for sizes < 100% zoom.  The code now aggressively attempts to keep
16341         from calling document.Print (), and tries not to use the scaling
16342         g.DrawImage whenever possible (it still does if you scale to >
16343         100%, since usually that involves huge images).
16344
16345         * PrintPreviewControl.cs: hook up the close button.
16346
16347 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
16348         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
16349           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
16350           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
16351           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
16352           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
16353           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
16354           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
16355           Removed [Serializable] for 2.0 Event Handlers.
16356
16357 2006-07-31  Jackson Harper  <jackson@ximian.com>
16358
16359         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
16360         * TextControl.cs: Uncomment out the body of this method.
16361
16362 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
16363
16364         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
16365           standard cursors.
16366
16367 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
16368
16369         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
16370           that embed TextBox and need selections visible even if textbox is not
16371           focused to enforce that behaviour.
16372         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
16373           selection drawing
16374
16375 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
16376
16377         * TextControl.cs:
16378           - Added new SetSelectionStart/SetSelectionEnd overloads
16379           - Fixed viewport width assignment to be accurate
16380           - Adjusted alignment line shift calculations to allow cursor on right
16381             aligned lines to be always visible at the right border (like MS)
16382         * TextBoxBase.cs:
16383           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
16384           - TextBoxBase_SizeChanged: recalculating canvas on size changes
16385           - CalculateScrollBars: Use ViewPort size instead of window size, to
16386             properly consider space occupied by the border and scrollbars 
16387             (Fixes #78661)
16388           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
16389             calculations; no longer leaves artifacts
16390           - CaretMoved: Adjusted window scrolling to match MS and fixed several
16391             calculation bugs (Still missing right/center align calculations)
16392
16393 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
16394
16395         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
16396           use of both scroll rect and clip rect, as they do the same.
16397
16398 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
16399
16400         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
16401           in the event handler (fixes #78912)
16402
16403 2006-07-31  Chris Toshok  <toshok@ximian.com>
16404
16405         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
16406         grid.ListManager.Count, since grid.ListManager might be null.
16407         This of course begs the question "why are we drawing rows for a
16408         grid with no list manager (and therefor no rows)?"  Fixes the
16409         crash in bug #78929.
16410
16411 2006-07-31  Chris Toshok  <toshok@ximian.com>
16412
16413         * RelatedPropertyManager.cs: Don't always chain up to the parent
16414         ctor.  instead, call SetDataSource if the parent's position is !=
16415         -1.  Fixes the crash in #78822.
16416
16417 2006-07-31  Chris Toshok  <toshok@ximian.com>
16418
16419         * DataGrid.cs (get_ListManager): use field instead of property
16420         accessors for datasource and datamember.
16421         (RowsCount): make internal again.
16422         (OnMouseDown): end edits before resizing columns/rows.
16423         (OnMouseUp): restart edits after resizing columns/rows.
16424
16425 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
16426
16427         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
16428           This fixes the situation where the last set cursor is displayed
16429           whenever the mouse is over scrollbars.
16430
16431 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16432
16433         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
16434         Document properties, as well as initial values.
16435
16436 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
16437
16438         * XplatUIWin32.cs (SetBorderStyle): Setting both border
16439           and ClientEdge results in a 3-pixel border, which is
16440           wrong.
16441
16442 2006-07-28  Jackson Harper  <jackson@ximian.com>
16443
16444         * TreeNodeCollection.cs: Fix the clear method.
16445         - Fix the Shrink also
16446
16447 2006-07-27  Jackson Harper  <jackson@ximian.com>
16448
16449         * TreeView.cs: Make sure the visible order is computed when we
16450         attempt to size the scrollbars (for trees that mess with the
16451         scrolling when they shouldn't.
16452         - Make sure to give the scrollbars valid values.
16453
16454 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
16455
16456         * XplatUIX11.cs: Move motion compression code to where it
16457           has less performance impact
16458
16459 2006-07-26  Jackson Harper  <jackson@ximian.com>
16460
16461         * UpDownBase.cs: When the control is selected make the child
16462         controls non selectable, so that a click on them won't do a
16463         focus/unfocus cycle.
16464         - Don't give focus to the text box when the spinner is selected.
16465         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
16466
16467 2006-07-26  Chris Toshok  <toshok@ximian.com>
16468
16469         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
16470         satisfied with this solution.  If the bitmaps are small, we should
16471         just cache them in the PrintPreviewDialog and draw them here.
16472         Also, the layout is broken for the 2-up and 3-up cases.
16473
16474         * Theme.cs: add PrintPReviewControlPaint.
16475
16476         * PrintPreviewDialog.cs: first pass implementation.
16477
16478         * PrintPreviewControl.cs: first pass implementation.  No
16479         scrollbars yet.
16480
16481         * PrintDialog.cs: only validate fields if that particular portion
16482         of the UI is enabled.  Also, set the document's controller to a
16483         PrintControllerWithStatusDialog wrapping the document's print
16484         controller.
16485
16486         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
16487         bring up a SaveFileDialog (i hope we don't want to match the
16488         behavior of the crappy windows file entry) and set the
16489         PrinterSettings.PrintFileName accordingly.
16490
16491 2006-07-26  Jackson Harper  <jackson@ximian.com>
16492
16493         * ContainerControl.cs: Add a field that disables auto selecting
16494         the next control in a container when the container is activated.
16495         * UpDownBase.cs: Don't select the text box when the up down is
16496         selected.
16497
16498 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
16499
16500         * XEventQueue.cs: Added methods for peeking (used for compression
16501           of successive events)
16502         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
16503           mouse move events (fixes #78732)
16504
16505 2006-07-25  Jackson Harper  <jackson@ximian.com>
16506
16507         * UpDownBase.cs: Use an internal class for the textbox so that we
16508         can control focus.  the updown control should always have focus,
16509         if either the text area or the buttons are clicked.
16510         - Send the key messages to the textbox, since it never actually
16511         has focus
16512         - Activate and decativate the textbox caret.
16513
16514 2006-07-24  Jackson Harper  <jackson@ximian.com>
16515
16516         * Control.cs: Use the directed select when selecting a control,
16517         this way the container controls override will get called and the
16518         whole ActiveControl chain will get triggered.  TODO: probably need
16519         to make sure this gets done everywhere instead of the old
16520         Select(Control).
16521         * ContainerControl.cs: Implement the directed Select method to
16522         find and activate the correct child control.    
16523         
16524 2006-07-22  Mike Kestner  <mkestner@novell.com>
16525
16526         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
16527         menu handling code so that clicks without a grab work too.
16528         [Fixes #78914]
16529
16530 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
16531
16532         * FileDialog.cs: Enable the BackButton when dirstack has one element.
16533           Added some small optimizations.
16534
16535 2006-07-21  Matt Hargett  <matt@use.net>
16536
16537         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
16538
16539 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
16540
16541         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
16542           tests pass and match MS in some strange border cases.
16543
16544 2006-07-21  Chris Toshok  <toshok@ximian.com>
16545
16546         * ThemeWin32Classic.cs: handle drawing of the relation links and
16547         parent row buttons.
16548
16549         * Theme.cs: change args to DataGridPaintParentRow.
16550
16551         * DataGrid.cs: Don't use controls for the relation links and
16552         parent buttons, so we have to handle all their interactions in
16553         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
16554         when we're navigating through child tables, so we can reinstate
16555         selection, expanded state, current cell, etc.
16556
16557 2006-07-20  Chris Toshok  <toshok@ximian.com>
16558
16559         * ToolBar.cs: When we redraw a button, for whatever reason,
16560         there's no reason to redraw the entire toolbar.  Also, don't call
16561         Control.Refresh from within Redraw, as it's much heavier than
16562         Invalidate (which is really what we want).
16563
16564 2006-07-20  Chris Toshok  <toshok@ximian.com>
16565
16566         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
16567         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
16568         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
16569         traces from within a debug IBindingList datasource
16570         (in mono/winforms/datagrid) for *days*, I've finally gotten things
16571         to work in a similar fashion.
16572
16573 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16574
16575         * ListBox.cs: Don't call Sort () when setting 
16576         the Sorted property to false (avoid an unnecessary sort).
16577
16578 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16579
16580         * ListControl.cs: DataSource should throw an ArgumentException
16581         instead of a normal exception when the argument is not of the 
16582         correct type.
16583
16584 2006-07-20  Mike Kestner  <mkestner@novell.com>
16585
16586         * Control.cs: add InternalPreProcessMessage to allow us to steal
16587         key events before MWF gets its paws on them.  Adapted from a
16588         suggestion by eno.
16589         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
16590         up/down/left/right navigation. Override the new internal control
16591         method to steal the events since they never make it to WndProc.
16592         * ToolBarButton.cs: don't worry about pushed when setting hilight
16593         since the drawing code prefers pushed to hilight. Invalidate on 
16594         Hilight changes. Fixes #78547 and #78525.
16595
16596 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
16597
16598         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
16599           the canvas size. Fixes #78868
16600
16601 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
16602
16603         * Splitter.cs: Track requested split position until first layout
16604           is performed. Fixes #78871
16605
16606 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
16607
16608         * Application.cs: Removed code that forces 1.x for the version
16609           number if the version started with 0. Not sure why that code was
16610           there and I couldn't find any bugs that indicated we needed it.
16611           Fixes #78869
16612
16613 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
16614
16615         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
16616           ResetDefaults(), just write some output to the console until it's
16617           implemented. Fixes bug #78907 for now. Eliminated two warnings.
16618
16619 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
16620
16621         * PropertyGridView.cs: set StartPosition of drop down forms
16622         so they appear in correct initial spot.  Fixes #78190.
16623
16624 2006-07-19  Mike Kestner  <mkestner@novell.com>
16625
16626         * ThemeWin32Classic.cs: use parent background color when drawing
16627         flat toolbars.  Restructure the conditionals to make sure non-flat
16628         non-Divider toolbars are filled too.  Fixes #78837.
16629
16630 2006-07-19  Mike Kestner  <mkestner@novell.com>
16631
16632         * ListBox.cs: Sort on collection changes even if the handle
16633         isn't created yet.  Fixes #78813.
16634
16635 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16636
16637         * ListControl.cs: DisplayMember should never be null,
16638         and now we assign String.Empty when null is passed to it (this
16639         is the .Net way).
16640
16641 2006-07-17  Mike Kestner  <mkestner@novell.com>
16642
16643         * ListViewItem.cs: restructure Font and subitem Font handling 
16644         to hold a specific font and refer back to owner on null.
16645         Fixes #78761.
16646
16647 2006-07-17  Mike Kestner  <mkestner@novell.com>
16648
16649         * ToolBar.cs: bandaid for side-effect of previous patch which was
16650         discarding explicit heights for non-AutoSize toolbars.  Need to
16651         extend my format tester to deal with AutoSize=false. Fixes #78864.
16652
16653 2006-07-15  Jackson Harper  <jackson@ximian.com>
16654
16655         * LabelEditTextBox.cs:
16656         * TreeView.cs: Use a new LabelEdit class for node editing, this
16657         class automatically 'closes' itself when it gets the enter key or
16658         loses focus.
16659         - Use the client rectangle when setting the trees scrollbars, so
16660         border style is taken into account.
16661         
16662 2006-07-14  Jackson Harper  <jackson@ximian.com>
16663
16664         * TreeNode.cs:
16665         * TreeView.cs: Make the editing work similar to MSs, firing the
16666         events correctly and ending edits correctly.
16667
16668 2006-07-14  Mike Kestner  <mkestner@novell.com>
16669
16670         * ToolBarButton.cs:
16671         * ToolBar.cs: layout restructuring and redraw enhancements to support
16672         formatting changes gracefully, like setting TextAlign, ImageList, 
16673         ButtonSize, and Appearance.  Handles explicit button sizing quirks
16674         of the MS controls.  Things like flat toolbars ignoring button size
16675         but becoming constant sized at the largest button's size.  Normal
16676         toolbars with an image set cannot be shrunk smaller than the image,
16677         but text can be clipped/ignored.
16678         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
16679         is zero.  Seems like DrawString should be smart enough to not put
16680         anything on screen though. Also trim labels and ellipsize at the char
16681         boundary, not word.
16682         Fixes #78711 and #78483.
16683
16684 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16685
16686         * FolderBrowserDialog.cs: Disable "New Folder" button and
16687           "New Folder" contextmenu menuitem if a folder like "My Computer"
16688           is selected.
16689
16690 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16691
16692         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
16693         * FolderBrowserDialog.cs:
16694           - Use MWFConfig to store and read size and position settings
16695           - Added code to create a new folder (button or context menu).
16696             Use TreeView labeledit to change the name of the new folder.
16697
16698 2006-07-14  Jackson Harper  <jackson@ximian.com>
16699
16700         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
16701         when the tree is scrolled we end editing.
16702
16703 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16704
16705         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
16706           Down arrows
16707
16708 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
16709
16710         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
16711         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
16712         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
16713         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
16714         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
16715         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
16716         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
16717         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
16718         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
16719         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
16720         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
16721         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
16722         ListViewItemSelectionChangedEventHandler.cs,
16723         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
16724         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
16725         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
16726         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
16727         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
16728         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
16729         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
16730         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
16731         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
16732         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
16733         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
16734         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
16735         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
16736         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
16737         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
16738         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
16739         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
16740         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
16741         WebBrowserNavigatingEventHandler.cs, 
16742         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
16743
16744 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
16745
16746         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
16747         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
16748         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
16749         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
16750         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
16751         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
16752         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
16753         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
16754         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
16755         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
16756         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
16757         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
16758         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
16759         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
16760         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
16761         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
16762         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
16763         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
16764         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
16765         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
16766         ListViewItemStates.cs, MaskFormat.cs: Added
16767
16768 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
16769
16770         * PropertyGridView.cs: Fix keyboard navigation of drop down.
16771         Patch from eno for bug 78558.
16772         
16773 2006-07-13  Jackson Harper  <jackson@ximian.com>
16774
16775         * TreeView.cs: When an edit is finished make sure that the
16776         selected node is visible.
16777         - When setting the top/bottom use the scrollbars is_visible, so
16778         everything will be set correctly even if the tree isn't visible
16779         yet.
16780
16781 2006-07-13  Jackson Harper  <jackson@ximian.com>
16782
16783         * ComboBox.cs: Revert the item->index part of my previous patch.
16784         * TreeView.cs: Use LostFocus instead of Leave for detecting when
16785         the edit box has lost focus (duh).
16786         - Just make the edit box not visible when we get return, that will
16787         take the focus, which will call EndEdit
16788         * TreeNode.cs When we start editing, notify the treeview.
16789
16790 2006-07-12  Jackson Harper  <jackson@ximian.com>
16791
16792         * ComboBox.cs: Clear out old items before setting the item list.
16793         This prevents databound controls from having their items added
16794         twice.
16795         - Switch the combobox to use indices whereever possible instead of
16796         using Item's.  This allows usto navigate through lists that have
16797         more then one item with the same string value (ie a, b, b, a).
16798         - Scroll the listboxes scrollbar when a non visible item is
16799         highlighted
16800         - Allow keypress to cycle through all the possible values. For
16801         example if you have b1, b2, b3 and hold down the B key all the
16802         values will be cycled through.
16803         
16804 2006-07-12  Jackson Harper  <jackson@ximian.com>
16805
16806         * TextBoxBase.cs:
16807         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
16808         this using the internal methods.
16809         * Control.cs: Add OnGotFocusInternal.  A new method that allows
16810         controls to "override" OnGotFocus and change focus behavior if
16811         needed.
16812         - Same thing for LostFocus
16813         * ComboBox.cs: Pass off focus to the text control properly.
16814
16815 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
16816
16817         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
16818         * FolderBrowserDialog.cs: Almost a complete rewrite.
16819           - Better support for Environment.Specialfolders
16820           - Added support for MWFVFS
16821           - Made setting SelectedPath work
16822
16823 2006-07-12  Jackson Harper  <jackson@ximian.com>
16824
16825         * Control.cs: Optimze getting all the controls.
16826
16827 2006-07-11  Jackson Harper  <jackson@ximian.com>
16828
16829         * ContainerControl.cs: Override SETFOCUS in the container control,
16830         so that it is not selected on mouse click.
16831
16832 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
16833
16834         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
16835           Hopefully we will have a better way once all of focus is complete.
16836
16837 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
16838
16839         * ThemeWin32Classic.cs: Commented out some debug code and fixed
16840           a compile error with csc.
16841
16842 2006-07-11  Jackson Harper  <jackson@ximian.com>
16843
16844         * Control.cs: When hiding a control only select the next control
16845         if the current control was focused.
16846         - Don't handle enter/leave when setting/killing focus, this is
16847         done by the container control.
16848         - Remove is_selected, it's not needed anymore.
16849         - Add utility methods for selecting a child control, and for
16850         firing the Enter/Leave events.
16851         * ContainerControl.cs: When a control is activated fire the
16852         enter/leave events.
16853         - Don't wrap when processing the tab key, so that focus can be
16854         moved outside of the container.
16855         - Use the correct active control
16856
16857 2006-07-11  Jackson Harper  <jackson@ximian.com>
16858
16859         * ComboBox.cs: Remove some debug code that was blinding me.
16860         * UpDownBase.cs: These controls actually aren't implicit, they are
16861         visible to the user.
16862
16863 2006-07-10  Chris Toshok  <toshok@ximian.com>
16864
16865         * DataGrid.cs: move back to the is_adding boolean field.  god i
16866         hate this is_editing/is_adding/is_changing stuff.
16867
16868 2006-07-10  Chris Toshok  <toshok@ximian.com>
16869
16870         * DataGridTableStyle.cs: just check if the property type is bool.
16871         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
16872         Don't use CanRenderType.
16873
16874         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
16875         if our text == NullText.  Remove CanRenderType.
16876
16877         * DataGridBoolColumn.cs: nuke CanRenderType.
16878
16879         * DataGrid.cs: reenable some code to end the current edit inside
16880         of set_CurrentCell.  This fixes the other 1.1.16 regression.
16881         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
16882         Also, remove the visible_row_count arg from CalcRowHeaders, since
16883         we don't need to worry about the actual height of the area.
16884
16885 2006-07-10  Chris Toshok  <toshok@ximian.com>
16886
16887         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
16888         mode, just return.
16889
16890         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
16891         the real sense of the IsInEditOrNavigateMode property (true =
16892         navigate, false = edit).  Also, update OnKeyPress to reflect this.
16893
16894         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
16895         column style exists, we still need to set its property descriptor
16896         to match up with our list manager.
16897
16898 2006-07-10  Chris Toshok  <toshok@ximian.com>
16899
16900         * ThemeWin32Classic.cs: implement the new row/header painting
16901         approach.  The parent row painting will likely go away and
16902         replaced with label controls, but the rest seems to work ok (and
16903         efficiently).
16904
16905         * Theme.cs: change the way we draw datagrid rows.  we don't draw
16906         the row headers as a block now.  Instead we draw them in the
16907         normal draw-row loop.  Add some calls for drawing parent rows and
16908         relation rows.
16909
16910         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
16911         a default table style.  Set the defaults from ThemeEngine.Current,
16912         not SystemColors.  Fix lots of misc issues with property setters.
16913
16914         * DataGrid.cs: move loads of style information out of this class
16915         as it's being duplicated with DataGridTableStyle.  keep track of a
16916         special DataGridTableStyle for the properties we used to mirror
16917         here.  Switch all the style properties to access this table style
16918         instead of instance fields of this class.  Also add a internal
16919         class to represent parent rows (more needs to be stored here, like
16920         the selection state from the parent table, as well as the
16921         expansion state.)  Also, for datasources with relations, do the
16922         right thing for collapse/expand, and add support for the
16923         navigation/parent row buttons.
16924
16925         Lastly, fix the crash in the 1.1.16 build.
16926
16927         * GridTableStylesCollection.cs: make the explicit interface
16928         implementations call the class's methods as opposed to duplicating
16929         them.
16930
16931         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
16932         0 so the text doesn't jump around when we move the cursor.
16933
16934 2006-07-10  Jackson Harper  <jackson@ximian.com>
16935
16936         * TextBoxBase.cs:
16937         * ListBox.cs: Match MS's ToString (this makes debugging focus
16938         stuff infinitely easier).
16939
16940 2006-07-10  Jackson Harper  <jackson@ximian.com>
16941
16942         * Control.cs (SelectNextControl): When checking the control's
16943         parent use this instead of ctrl.parent so that null can be passed
16944         to SelectNextControl. (I have unit tests for this).
16945         - Remove unused var.
16946
16947 2006-07-10  Chris Toshok  <toshok@ximian.com>
16948
16949         * CurrencyManager.cs: correct one regression, the removal of the
16950         finalType field.  Also, add a MonoTODO on CanAddRows, implement
16951         Refresh() correctly, and fix some event emission in
16952         ListChangedHandler.
16953
16954 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
16955
16956         * FileDialog.cs: Don't use brackets for new folders if they exist
16957           under *nix. Instead use -(number of existing folders +1).
16958
16959 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
16960
16961         * FileDialog.cs:
16962           - Fixed really nasty bug #78771
16963           - Don't block the whole GUI when reading directories with a lot of
16964             entries. Use an other thread instead and call BeginInvoke to
16965             update the ListView in MWFFileView
16966
16967 2006-07-07  Chris Toshok  <toshok@ximian.com>
16968
16969         * Control.cs (Dispose): release any Capture when disposing.
16970
16971 2006-07-07  Chris Toshok  <toshok@ximian.com>
16972
16973         * LinkLabel.cs (Select): if we chain up to the parent, set
16974         focused_index to -1 so we'll search for the first available link
16975         the next time the user tabs into us.  Also, if the direction is
16976         backward and focused_index == -1, start the search from the last
16977         element.
16978
16979 2006-07-07  Chris Toshok  <toshok@ximian.com>
16980
16981         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
16982         is beyond the end of the text, don't do anything.
16983         (CreateLinkPieces): set our ControlStyles.Selectable based on
16984         whether or not we have any links.
16985         (Link.Invalidate): use a loop instead of foreach.
16986         (Link.set_Start): null out owner.sorted_links so it'll be
16987         recreated by CreateLinkPieces.
16988
16989 2006-07-06  Chris Toshok  <toshok@ximian.com>
16990
16991         * LinkLabel.cs: revert the SetStyle change.
16992
16993 2006-07-06  Chris Toshok  <toshok@ximian.com>
16994
16995         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
16996         (OnEnableChanged): s/Refresh/Invalidate
16997         (OnGotFocus): if we have a focused index already, refocus it (so
16998         if we mouse out/in to the window it'll focus the right link).
16999         (OnKeyDown): move the tab handling out of here.
17000         (OnLostFocus): don't set focused_index to -1, so we can refocus it
17001         when we lose focus.
17002         (OnMouseDown): don't Capture here - Control handles it.  Also,
17003         focus the active link.
17004         (OnMouseUp): don't deal with Capture.
17005         (OnPaintBackgroundInternal): remove.
17006         (OnTextAlignChanged): CreateLinkPieces before calling the
17007         superclass's method.
17008         (OnTextChanged): call CreateLinkPieces before calling superclass's
17009         method.
17010         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
17011         move around.
17012         (Select): implement this, moving the selection between different
17013         links, and call parent.SelectNextControl if we don't have another
17014         link to focus in the given direction.
17015         (CreateLinkPieces): call Invalidate instead of Refresh.
17016         
17017 2006-07-06  Chris Toshok  <toshok@ximian.com>
17018
17019         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
17020         new LinkLabel internals.
17021
17022         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
17023         over pieces looking for active/focused/etc links.  also, deal with
17024         runs of text (and links) with embedded \n's in them, and use
17025         MeasureCharacterRanges instead of MeasureString to figure out the
17026         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
17027         two-step.
17028
17029 2006-07-04  Jackson Harper  <jackson@ximian.com>
17030
17031         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
17032         XKB or key auto repeat, do it manually.  Without key auto repeat,
17033         when a key is held down we get key press, key release, key press,
17034         key release, ... with auto repeat we get key press, key press, key
17035         press ..., and then a release when the key is actually released.
17036
17037 2006-07-03  Jackson Harper  <jackson@ximian.com>
17038
17039         * TabControl.cs:
17040         * ThemeWin32Classic.cs: Tabs do not obey normal background color
17041         rules, they are always control color regardless of the background
17042         color.
17043
17044 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
17045
17046         * FileDialog.cs: Added internal class MWFConfig.
17047           Removed Registry support and replaced it with support for the new
17048           MWFConfig class. See MWFConfig comments for more information.
17049
17050 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
17051
17052         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
17053           rectangle. Added some patches from eno from bug #78490 and fixed
17054           the arrow position for small up and down CPDrawScrollButtons.
17055
17056 2006-06-30  Jackson Harper  <jackson@ximian.com>
17057
17058         * InternalWindowManager.cs: Remove some debug code.
17059         * Form.cs: When an MdiParent is set to null, the window is
17060         "detatched" and becomes a normal window.
17061         * MdiClient.cs: Don't bring the new child form to the front until
17062         it is activated (setting it as active does this), this makes the
17063         previously active forms titlebar get redrawn as inactive.
17064
17065 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
17066
17067         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
17068           with later controls
17069
17070 2006-06-29  Mike Kestner  <mkestner@novell.com>
17071
17072         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
17073         arrow in keynav state.  Fixes #78682.
17074
17075 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
17076
17077         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
17078           order (fixes #78393)
17079
17080 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
17081
17082         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
17083           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
17084           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
17085           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
17086           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
17087           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
17088           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
17089           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
17090           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
17091           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
17092           enumerations (FlagsAttribute, SerializableAttribute, added/removed
17093           values)
17094
17095 2006-06-28  Mike Kestner  <mkestner@novell.com>
17096
17097         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
17098
17099 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
17100
17101         * PropertyGrid.cs,
17102           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
17103           item lines from other area (It also makes BackColor consistent and
17104           compatible with .NET). Fixed bug #78564.
17105
17106 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
17107
17108         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
17109         Patch from Eno for #78555.
17110
17111 2006-06-27  Chris Toshok  <toshok@ximian.com>
17112
17113         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
17114
17115         * DataGridColumnStyle.cs: same.
17116
17117         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
17118         
17119         * DataGridDrawingLogic.cs: nuke.
17120
17121 2006-06-27  Chris Toshok  <toshok@ximian.com>
17122
17123         * DataGridTableStyle.cs: clean up the constructors, and build the
17124         list of child relations for this table.  I have no idea if this is
17125         where we should be doing it (it probably isn't), but since we're
17126         already iterating over the properties..
17127
17128         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
17129         struct and array for keeping track of row information, similar to
17130         what's shown in a hack on
17131         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
17132
17133         * Theme.cs: be consistent about the naming of DataGrid methods,
17134         prefering ColumnWidths and RowHeights over columnsWidths and
17135         RowsHeights.
17136
17137         * ThemeWin32Classic.cs: same, and also add support for variable
17138         sized rows (and the +/- expansion icons for related rows).
17139
17140 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
17141
17142         * TextBoxBase.cs: Applied Eno's patch from #78660
17143
17144 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
17145
17146         * Form.cs (ScaleCore): We don't want to scale our form if it's
17147           state is minimized or maximized, but we still need to scale our
17148           child windows. Also, added try/finally block to ensure layout
17149           gets reset (Fixes #78697)
17150
17151 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
17152
17153         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
17154
17155 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
17156
17157         * Form.cs: Fixed c+p error and added check to resize form if minimum
17158           size is bigger than current size (Fixes #78709)
17159
17160 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
17161
17162         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
17163
17164 2006-06-26  Mike Kestner  <mkestner@novell.com>
17165
17166         * ComboBox.cs: only do Keypress handling in the combo when there  
17167         are items in the collection. Fixes #78710.
17168
17169 2006-06-26  Chris Toshok  <toshok@ximian.com>
17170
17171         * Binding.cs: make this work bi-directionally.  also, clear up
17172         other mixups between Push/Pull Data (e.g. we're supposed to pull
17173         data when validating).
17174
17175         * BindingManagerBase.cs: trim some fully qualified collection
17176         types.
17177
17178         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
17179
17180 2006-06-23  Chris Toshok  <toshok@ximian.com>
17181
17182         * PropertyManager.cs: It appears (according to the unit tests)
17183         that PropertyManager doesn't use
17184         PropertyDescriptor.AddValueChanged to track propery value changes
17185         in its datasource, but uses the same scheme as Binding, where it
17186         looks for a <Property>Changed event and binds to it.
17187
17188         Also, according to the docs, IsSuspended always returns false for
17189         a property manager with a non-null datasource.
17190
17191 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
17192
17193         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
17194           need to update the actual DialogResult. (Fixes #78613)
17195
17196 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
17197
17198         * Form.cs (ShowDialog): Release any captures before running the
17199           new message pump (fixes #78680)
17200
17201 2006-06-22  Mike Kestner  <mkestner@novell.com>
17202
17203         * ListView.cs: Layout column widths properly in details mode even 
17204         if HeaderStyle.None is set.  Fixes #78691.
17205
17206 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
17207
17208         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
17209
17210 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
17211
17212         * Control.cs (ContainsFocus): Using new driver method to get focused
17213           window, instead of trying to use internal tracking var, which can
17214           recursion issues (Fixes #78685)
17215         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
17216           XplatUIWin32.cs: Added GetFocus method to return focused window
17217
17218 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17219
17220         * ColorDialog.cs: when the mouse button is pressed inside the color
17221         matrix, don't let the cursor move out of it until the button is
17222         released, which is the behavior on windows. Changed 'colours' by
17223         'colors' to use the same word consistently.
17224
17225 2006-06-21  Chris Toshok  <toshok@ximian.com>
17226
17227         * DataGrid.cs: add in some basic navigation stuff (navigating to a
17228         child relation and back, using a stack).  Also, remove
17229         GetDataSource and the code that calls it - it's not needed.  Also,
17230         track CurrencyManager.ListName's removal.
17231
17232 2006-06-21  Chris Toshok  <toshok@ximian.com>
17233
17234         * CurrencyManager.cs: push some of the original type checking from
17235         BindingContext.CreateBindingManager to here, and remove some of
17236         the finalType stuff.  Need more tests to make sure I've got the
17237         ListName part right, and we might need more in SetDataSource.
17238
17239         * PropertyManager.cs: add a ctor that takes just the datasource,
17240         and no property name.  Make SetDataSource work with a null
17241         property_name, and make Current return the data_source if the
17242         property descriptor is null.  this makes 'string foo = "hi";
17243         BindingContext[foo].Current' return "hi" as it should.
17244
17245         * RelatedCurrencyManager.cs: make this code more generic - there's
17246         no reason the parent manager has to be CurrencyManager, and
17247         there's no reason to pass the DataRelation.  It suffices to use a
17248         BindingManagerBase and PropetyDescriptor.
17249
17250         * RelatedPropertyManager.cs: make a similar change here.
17251         
17252         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
17253         flower I knew it could be.
17254
17255 2006-06-20  Chris Toshok  <toshok@ximian.com>
17256
17257         * PropertyManager.cs: the PropertyChangedHandler is invoked when
17258         data in the source has changed and we need to update the control,
17259         so s/PullData/PushData.
17260
17261         * CurrencyManager.cs: Refresh is meant to update the control from
17262         data in the datasource.  So, s/PullData/PushData.
17263
17264         * BindingContext.cs: add more ugliness (we weren't handling the
17265         case where data_source = DataTable and data_member = column_name).
17266
17267         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
17268         from the perspective of the datasource.  PullData pulls from the
17269         control, PushData pushes to the control.
17270
17271 2006-06-20  Chris Toshok  <toshok@ximian.com>
17272
17273         * BindingContext.cs: rewrite the CreateBindingManager code to
17274         handle navigation paths more or less properly.  This could
17275         definitely stand some more work, in particular to push the
17276         recursion up to the toplevel.  But that relies on fixes in other
17277         places (System.Data comes to mind).
17278
17279         Also, move to a flat hashtable (and encode the twolevel nature of
17280         the dictionary into the hash key).  This lets us implement the
17281         IEnumerable.GetEnumerator method.
17282
17283         * RelatedCurrencyManager.cs: new class.  Update our view based on
17284         our relation and our parent CurrencyManager's position.
17285
17286         * CurrencyManager.cs: split out some logic from the ctor into
17287         SetView, so it can be called from the new RelatedCurrencyManager
17288         subclass.
17289
17290         * RelatedPropertyManager.cs: new class.  Update our datasource
17291         based on the position of our parent CurrencyManager.
17292
17293         * PropertyManager.cs: split out some logic from the ctor into
17294         SetDataSource, so it can be called from the new RelatedDataSource
17295         subclass.  Also, make the Current getter return the value
17296         of the PropertyDescriptor, not the data_source.
17297
17298         * Binding.cs: no need to duplicate the string splitting code here.
17299
17300 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
17301
17302         * Control.cs:
17303           - set_Enabled: OnEnabledChanged is not called if the inherited state 
17304             of the control is not altered, even though  we might be changing the
17305             internal state of the control (#78458)
17306           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
17307             OnEnabledChanged, to allow easy altering of any child window state
17308           - OnEnabledChanged: Added code to enable/disable driver window state
17309           - OnParentEnabledChanged: Instead of firing the event, call 
17310             OnEnabledChanged, which will fire the event and also a) set driver
17311             window state and pass the enabled state to any grandchildren (#78458)
17312
17313 2006-06-19  Jackson Harper  <jackson@ximian.com>
17314
17315         * InternalWindowManager.cs: We don't set the cursor explicitly
17316         thats done via the response to NCHITTESTs.
17317         - Don't need to adjust for titlebar heights anymore, the
17318         coordinates are coming in the correct coordinates now (see peters
17319         last patch).
17320
17321
17322 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
17323
17324         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
17325           being translated relative to whole window, instead of client window.
17326           That caused broken offsets on mouseclick (and caused gas for our
17327           InternalWindowManager)
17328
17329 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
17330
17331         * TextControl.cs:
17332           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
17333           - Undo(): Added replay of cursor move on DeleteChars action; added
17334             calling Undo() again if a recorded cursor move is invalid (to
17335             ensure that some action is performed on Undo)
17336         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
17337
17338 2006-06-16  Jackson Harper  <jackson@ximian.com>
17339
17340         * MdiClient.cs: Instead of just sizing maximized windows when
17341         there is a resize we also have to adjust the Y of minimized
17342         windows, so they stay pinned to the bottom of the mdi container.
17343         - Eliminate separate tracking of the active control, we can just
17344         get this from the controls collection.
17345         - Paint the decorations for the newly activated titlebar so we get
17346         a pretty blue bar.
17347         * InternalWindowManager.cs:
17348         * ThemeWin32Classic.cs: Minimized windows get all three buttons
17349         even if they are a tool window.
17350         
17351 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
17352
17353         * TextControl.cs (Undo): Handle non-existent cursor locations in the
17354           undo buffer, these can happen when text was deleted and the cursor
17355           was recorded first. Since we will also have a recorded cursor
17356           after the delete this is not an issue. (Fixes #78651)
17357
17358 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
17359
17360         * AccessibleObject.cs: Remove dependence on Control.is_selected;
17361           instead properly track control states internally (allows us to
17362           remove is_selected from Control)
17363
17364 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17365
17366         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
17367         whose width is not a multiple of 8.
17368
17369 2006-06-13  Jackson Harper  <jackson@ximian.com>
17370
17371         * MdiClient.cs:  Only maximize the next child if the current one
17372         is maximized.
17373
17374 2006-06-13  Chris Toshok  <toshok@ximian.com>
17375
17376         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
17377         modified.  Also, guard against grid or grid_drawing being null in
17378         Invalidate.
17379
17380         * DataGrid.cs: Reformat tons of getters/setters.  In the
17381         DataMember setter, just call SetNewDataSource instead of
17382         duplicating some of its functionality.  In SetNewDataSource, don't
17383         check ListManager for null, since the property getter creates the
17384         object if needed.
17385
17386         * DataGridTableStyle.cs: don't set TableStyle or call
17387         SetDataGridInternal on the column here, it's done in
17388         GridColumnStylesCollection.Add.
17389
17390         * GridColumnStylesCollection.cs: fix all the explicit interface
17391         implementations to just call our methods.  Nuke AddInternal() and
17392         move the body of it to Add().  Also, add a call to
17393         column.SetDataGridInternal to Add().
17394
17395         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
17396         base()+duplicate code.  Also, use the Format property instead of
17397         format to generate an Invalidate ala MS.  Lastly, create the
17398         textbox here, unconditionally.
17399         (set_Format): call Invalidate.
17400         (get_TextBox): no need to call EnsureTextBox.
17401         (Commit): remove the message box.
17402         (Edit) remove the call to EnsureTextBox.
17403         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
17404         (EnterNullValue): no need to check textbox for null.
17405         (HideEditBox): no need to check textbox for null.
17406         (SetDataGridInColumn): add the textbox to the grid's controls.
17407         (EnsureTextBox): nuke.
17408         
17409 2006-06-13  Jackson Harper  <jackson@ximian.com>
17410
17411         * MdiWindowManager.cs: Hook up to the maximized menus paint event
17412         and redraw the buttons when needed. Unhook when the window is
17413         unmaximized.
17414         * MainMenu.cs: Add an internal Paint event, the mdi window manager
17415         needs this so that it can redraw its buttons when the menu is
17416         repainted.
17417         * InternalWindowManager.cs:
17418         * Form.cs: The method order has changed for DrawMaximizedButtons,
17419         so that it can be a PaintEventHandler.
17420         
17421 2006-06-13  Jackson Harper  <jackson@ximian.com>
17422
17423         * MdiClient.cs: When we close a maximized mdi window, the next mdi
17424         window is activated and maximized, even if it wasn't before.
17425         - When  a new window is activated repaint the decorations of the
17426         old one, so that it no longer has the Active "look" (the blue
17427         titlebar).
17428         * InternalWindowManager.cs: Open up CreateButtons to base classes
17429         so they can recreate the buttons on state changes.
17430         - If a window is maximized give it all three buttons
17431         * MdiWindowManager.cs: Create the titlebar buttons when the state
17432         is changed, this is needed because a toolwindow will not have all
17433         three buttons until it is maximized.
17434
17435 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
17436
17437         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
17438           Fixed bug #78609.
17439
17440 2006-06-12  Jackson Harper  <jackson@ximian.com>
17441
17442         * KeysConverter.cs: Make sure we handle the Ctrl special case
17443         if its the only key.
17444         
17445 2006-06-12  Jackson Harper  <jackson@ximian.com>
17446
17447         * Theme.cs: Add a method to get the size of a managed window
17448         toolbar button.
17449         * InternalWindowManager.cs: Remove the ButtonSize property, this
17450         should be retrieved from the theme.
17451         * MdiWindowManager.cs: Get the button size from the theme
17452         * ThemeWin32Classic.cs: Make the method to get the managed window
17453         titlebar button size public.
17454         - Handle the different button sizes of maximized toolwindows
17455         (should match any maximized window).
17456         - Get the titlebar height from the theme, not the WM (which gets
17457         it from the theme).
17458
17459 2006-06-12  Jackson Harper  <jackson@ximian.com>
17460
17461         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
17462         event down to the mdi window manager.
17463         - Expose some extra stuff to base classes
17464         - Make sure to end the Capture on an NC Mouse up, so that we can
17465         get double clicks properly, and the sizing doens't stick.
17466         - When doing PointToClient contain it in the workable desktop
17467         area, this prevents windows from changing size when the cursor is
17468         pulled outside of the working area while sizing.
17469         * MdiWindowManager.cs: When we get a double click maximize the
17470         window.
17471         - Reset the cursor after handling mode changes.
17472
17473 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
17474
17475         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
17476           current desktop, instead of just assuming a 0, 0 origin. This
17477           is needed for our internal window manager, to know the top
17478           margin of the desktop
17479
17480 2006-06-12  Chris Toshok  <toshok@ximian.com>
17481
17482         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
17483         we need this to get rid of the selected background in the bool
17484         column.
17485         (CancelEditing): move the ConcedeFocus call to above the Abort
17486         call.  Also, set is_changing to false and invalidate the row
17487         header if we were changing before.
17488         (ProcessKeyPreviewInternal): remove, since noone outside this
17489         class calls it anymore.  Roll the code into ProcessKeyPreview.
17490         (EndEdit): remove the internal version.
17491         (InvalidateCurrentRowHeader): make private.
17492
17493         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
17494         Keys.Escape handling (and with it the last call to
17495         DataGrid.EndEdit from outside the class.)
17496
17497
17498 2006-06-12  Chris Toshok  <toshok@ximian.com>
17499
17500         * DataGridTextBox.cs (.ctor): isedit defaults to false.
17501         (OnKeyPress): set isedit to true.
17502         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
17503         already handled by the grid.
17504
17505         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
17506         right.  ugh.
17507         (set_DataSource): SetDataSource always returns true, so stop
17508         putting it in an if statement.
17509         (EndEdit): get rid of some {}'s
17510         (ProcessGridKey): return true in case Keys.Escape.
17511         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
17512         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
17513         PositionChanged, stopped connecting to CurrentChanged.
17514         (GetDataSource): simplify this a bunch.
17515         (SetDataSource): change return type from bool to void.
17516         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
17517         to this, and make sure we don't set ListManager.Position inside
17518         set_CurrentCell.
17519         (OnListManagerItemChanged): if we're passed an actual index,
17520         redraw that row.
17521
17522         * CurrencyManager.cs (set_Position): don't call PullData here.
17523
17524 2006-06-09  Jackson Harper  <jackson@ximian.com>
17525
17526         * TreeNode.cs:  Recalculate the visible order before doing the
17527         Expand/Collapse Below calls, because those calls generate an
17528         expose.
17529         - Reduce calls to the TreeView property, which is mildly expensive
17530         by using a local var.
17531         * Form.cs: Layout the MDI child windows when creating the parent
17532         form.
17533         - Don't use the internal constructor anymore
17534         * MdiClient.cs: use the parent form width/height (if available)
17535         when laying out the child windows, we do this because the
17536         mdiclient isn't docked yet when the initial layout is done.
17537         - Don't need an internal constructor anymore.
17538
17539 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17540
17541         * FileDialog.cs: handle access errors when trying to create a folder
17542         or changing to a directory. No need to initialize out parameters.
17543
17544 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17545
17546         * FileDialog.cs: Append a number when creating a new folder if the
17547           folder already exists (use parenthesis instead of square brackets)
17548
17549 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17550
17551         * FileDialog.cs:
17552           - Disabled registry support for windows and added better registry
17553             error checking for other systems (need to investigate why it
17554             works perfectly on my system)
17555           - If a folder already exist show an error MessageBox instead of
17556             trying to create an indexed name.
17557           - Fixed a non intentional typo.
17558
17559 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17560
17561         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
17562
17563 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17564
17565         * FileDialog.cs: When creating a new folder don't crash if the
17566           folder already exists.
17567
17568 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17569
17570         * FileDialog.cs: Allmost a complete rewrite.
17571           - added a "virtual" file system that handles the differences
17572             between unix and windows file systems (especially the directory
17573             structure). Moved most of the directory and file handling code
17574             into the vfs.
17575             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
17576             UnixFileSystem and FSEntry.
17577           - Recently used folder/directory, size, location and used file names
17578             (file name ComboBox) are now stored in the registry and get read
17579             before the dialog shows up (fixes part 6 of bug #78446).
17580           - Creation of new folders/directories is now possible (context menu
17581             or ToolBar). Added TextEntryDialog for this that fills in the gap
17582             until ListView.LabelEdit works.
17583           - Fixed cursor handling (bug #78527) and focus handling for
17584             PopupButtonPanel
17585           - Various "Search in" ComboBox enhancements. The content of the
17586             dropdown listbox now almost matches ms.
17587           - Changed the behaviour when the user switches to SpecialFolder
17588             Recent to show the ListView in View.Details.
17589           - Beside using the ToolBar to change the View property of the
17590             file ListView it is now possible to use the context menu too.
17591
17592 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17593
17594         * ComboBox.cs: Don't create a new ObjectCollection when an item
17595           gets inserted. Just insert the item in the existing object_items
17596           ArrayList.
17597
17598 2006-06-08  Jackson Harper  <jackson@ximian.com>
17599
17600         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
17601         that the treeview and root node checks are done also, this fixes a
17602         regression i caused in the unit tests.
17603
17604 2006-06-07  Wade Berrier <wberrier@novell.com> 
17605
17606         * RichTextBox.cs: More ISO8859-1 -> unicode
17607
17608 2006-06-07  Mike Kestner  <mkestner@novell.com>
17609
17610         * ComboBox.cs : use items to hold highlight/selection so that
17611         collection insertions don't require synchronization.
17612
17613 2006-06-07  Jackson Harper  <jackson@ximian.com>
17614
17615         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
17616         routine.  We now always keep the sized edge at the cursor instead
17617         of computing movement and adjusting rects.  There is one buglet
17618         with this method though when the cursor is moved over area that
17619         the window can not expand too (such as the toolbars on the desktop).
17620
17621 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17622
17623         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
17624         here. Fixes crash on startup in AlbumSurfer.
17625
17626 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
17627
17628         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
17629           values
17630
17631 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17632
17633         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
17634         statement to avoid calling XNextEvent which will block if another thread
17635         took the event that we were expecting. Fixes bug #78605.
17636
17637 2006-06-07  Mike Kestner  <mkestner@novell.com>
17638
17639         * ListView.cs : isolated checkbox clicking from the selection logic.
17640         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
17641
17642 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17643
17644         * Form.cs: Check that the value passed to Form.DialogResult
17645         is a valid enum value.
17646
17647 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17648
17649         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
17650         Computer'. Clicking it in the network view goes to 'My Computer'.
17651         Added CIFS filesystem type. Display the mount point of filesystems.
17652         Avoid duplicate mount points (happens for me with CIFS);
17653
17654 2006-06-06  Jackson Harper  <jackson@ximian.com>
17655
17656         * InternalWindowManager.cs: Draw the maximized windows buttons
17657         when resizing.
17658
17659 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17660
17661         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
17662         all other dialogs. Fixes bug #78585.
17663
17664 2006-06-06  Mike Kestner  <mkestner@novell.com>
17665
17666         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
17667         Only invalidate checkbox on checkstate changes to avoid flicker.
17668         * ListBox.cs : avoid unselect/select when clicking selected item.
17669         avoid reselection flicker for already multiselected items.
17670         Fixes #78382.
17671
17672 2006-06-06  Jackson Harper  <jackson@ximian.com>
17673
17674         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
17675         the parent form so that the menu is removed if needed.
17676
17677 2006-06-06  Mike Kestner  <mkestner@novell.com>
17678
17679         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
17680         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
17681
17682 2006-06-06  Mike Kestner  <mkestner@novell.com>
17683
17684         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
17685
17686
17687 2006-06-06  Jackson Harper  <jackson@ximian.com>
17688
17689         * Control.cs: Use the property (instead of the field) to get the
17690         default cursor so it is instantiated correctly.
17691         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
17692         resizes so we need to manually repaint the window decorations here.
17693         - Set the titlebar button locations as soon as they are created,
17694         otherwise they are not set correctly on win32.
17695         
17696 2006-06-06  Chris Toshok  <toshok@ximian.com>
17697
17698         * CurrencyManager.cs (set_Position): call PullData before
17699         OnCurrentChanged.
17700         (AddNew): after calling IBindingList.AddNew, update our
17701         listposition, and call OnCurrentChanged/OnPositionChanged (without
17702         calling PullData).
17703         (OnCurrentChanged): remove the call to PullData from here.
17704         (OnItemChanged): remove the call to PushData from here.
17705         (OnPositionChanged): change the test from == null to != null to
17706         match the other methods.
17707         (ListChangedHandler): the grossest part of the patch.  Implement
17708         this such that it passes the unit tests in CurrencyManagerTest and
17709         the output more or less matches that of MS's implementation.
17710  
17711 2006-06-06  Mike Kestner  <mkestner@novell.com>
17712
17713         * ListView.cs : only update check state on single click.
17714         * ThemeWin32Classic.cs : fix focus drawing for details view without
17715         fullrowselect.  Fixes #78454.
17716         * XplatUIX11.cs : fix for double click emission.
17717
17718 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
17719
17720         * PropertyGridView.cs : Applied Atsushi's patch to fix
17721         font dialog bug  (#78197).
17722
17723 2006-06-05  Jackson Harper  <jackson@ximian.com>
17724
17725         * TreeNode.cs: Compute the next node for expanding/collapsing
17726         correctly. We now factor in nodes without a NextNode
17727         correctly. (Fixes somes cases in nunit-gui).
17728         * InternalWindowManager.cs: Set the bounds when updating the
17729         virtual position of a tool window.
17730         
17731 2006-06-05  Chris Toshok  <toshok@ximian.com>
17732
17733         * DataGrid.cs: rename cached_currencymgr to list_manager.
17734         (set_CurrentCell): move SetCurrentCell code here, and clean it up
17735         some.
17736         (CurrentRow, CurrentColumn): single accessors so we can make the
17737         cursor movement code a lot easier to understand.
17738         (CurrentRowIndex): implement this in terms of CurrentRow.
17739         (BeginEdit): clean this up a bit.
17740         (CancelEditing): sort out the is_editing/is_changing/is_adding
17741         stuff a little.
17742         (EndEdit): minor changes.
17743         (OnKeyDown): add a comment about a (most likely) unnecessary
17744         check.
17745         (OnMouseDown): cancel editing when we click on a row header.  And
17746         use the CurrentRow setter, not CurrentCell.
17747         (ProcessDialogKey): directly call ProcessGridKey.
17748         (UpdateSelectionAfterCursorMove): factor out this common block of
17749         code (it's used everywhere that we move the cursor by updating row
17750         or column).
17751         (ProcessGridKey): pretty substantial overhaul.  Use the
17752         CurrentRow/CurrentColumn properties to make the code a lot more
17753         readable.  Only use the CurrentCell property when we have to
17754         modify both row and column at once.  Tab behavior is still broken,
17755         and Delete is untested.
17756         (Select): if we have no selected rows, set selection_start to
17757         @row.
17758         (EditCurrentCell): rename EditCell this.  It was only ever invoked
17759         with CurrentCell as the arg, so drop the arg and rename it.
17760
17761         * DataGridColumnStyle.cs: clean up the constructors a little, and
17762         drop CommonConstructor().
17763
17764         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
17765         actually get notified when the user hits it.
17766         (ProcessKeyMessage): *substantially* simplify this method.
17767         There's no reason (that I can see) for the textbox to be making
17768         calls into the datagrid at all.  Remove all of them but the ones
17769         for Enter handling.  those will take some more work.
17770
17771         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
17772         calling HideEditBox.
17773         (HideEditBox): if we have an active textbox, render it invisible
17774         without causing a re-layout of the datagrid.
17775
17776 2006-06-05  Mike Kestner  <mkestner@novell.com>
17777
17778         * ListView.cs : fix NRE crasher when focuseditem is cleared by
17779         collection changes by resetting it to Items[0].  Fixes #78587.
17780
17781 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17782
17783         * MessageBox.cs: if the height of the text is larger than the icon_size,
17784         use that. Fixes bug #78575.
17785
17786 2006-06-05  Jackson Harper  <jackson@ximian.com>
17787
17788         * TreeView.cs: Fix line drawing when scrolling.  To do this each
17789         node is basically responsible for drawing its entire horizontal
17790         area.  When drawing a node it draws its parent node lines if
17791         needed.
17792         - Adjust the clip area to the viewport rectangle
17793         - Fix Left/Right key handling to match MS. (It expand/collapses
17794         and moves to parents/first child but does not move selection to
17795         sibling nodes).
17796         - Fix SetTop to work with new bound calculation code
17797         - When scrollbars are no longer needed we need to reset scrolling
17798         vars and recalculate the visible order so the redraw is correct
17799         * TreeNode.cs: We can't expand/collapse nodes with no children.
17800
17801 2006-06-03  John Luke  <john.luke@gmail.com> 
17802
17803         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
17804         so the colors work without dev packages
17805         
17806 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
17807
17808         * Control.cs 
17809           - Select: Implemented to just use activate. Seems to match MS 
17810             behaviour closest. Documented to only do actual control walking 
17811             based on it's parameters if in a container control so I moved 
17812             the code there.
17813           - Removed selection check logic from our internal Select() method
17814         * ContainerControl.cs:
17815           - Select: Moved selection logic from Control here, since MS documents
17816             that containers obey the bool arguments. No longer calling base
17817
17818 2006-06-02  Jackson Harper  <jackson@ximian.com>
17819
17820         * TreeView.cs: If the selected node isn't changed when we get
17821         focus update the previously selected node so that we see the
17822         selection box.
17823
17824 2006-06-02  Mike Kestner  <mkestner@novell.com>
17825
17826         * ComboBox.cs: restructure grab and general mouse event handling.
17827         Make the composite control raise mouse events like it was a single
17828         control for leaves/enters/motion/up/down events.  fix dropdown list
17829         coordinate mangling and refactor it into the scrollbar subclass to
17830         reduce code duplication.  Fixes #78282 #78361 and #78457.
17831
17832 2006-06-02  Mike Kestner  <mkestner@novell.com>
17833
17834         * ScrollBar.cs: remove Capture setting/clearing, as it happens
17835         automatically in the Control.WndProc.
17836
17837 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17838
17839         * FileDialog.cs: fix crash when running SharpChess, which sets the
17840         FilterIndex to 2 with only one Filter.
17841
17842 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17843
17844         * ToolBar.cs: add SizeSpecified property.
17845         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
17846         try to figure out our real size, otherwise fallback to what the
17847         container says.
17848
17849 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
17850
17851         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
17852         * Control.cs (WndProc): MS always calls the DefWndProc to pass
17853           up the event
17854
17855 2006-06-01  Mike Kestner  <mkestner@novell.com>
17856
17857         * ListView.cs: revamp the focus management in ListView.  It still
17858         causes churn of LostFocus/GotFocus emissions on clicks, but it's
17859         better than not handling focus at all.  Will revisit when pdb feels
17860         the general focus handling is solid.  Fixes #78526.
17861
17862 2006-06-01  Jackson Harper  <jackson@ximian.com>
17863
17864         * TreeView.cs: Set the default border style in the constructor.
17865         - Move painting to use OnPaintInternal instead of capturing
17866         WM_PAINT, this is the correct way of doing things
17867         - UpdateBelow shouldn't invalidate the scrollbar area
17868         - Cap the top on update below in case the node was above the top
17869         of the viewport rectangle.
17870         - ExpandBelow and Collapse below need to obey Begin/End Update.
17871         * TreeNode.cs: Make is_expanded internal so the treenode
17872         collection can change it without firing the whole event chain.
17873         * TreeNodeCollection.cs: When clearing all the child nodes make
17874         sure to recalc the visible order.
17875         - Improve algo for remove the top node
17876
17877 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
17878
17879         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
17880           SendMessage directly calling window procedures, which in turn might
17881           call SetFocus()
17882
17883 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
17884
17885         * Control.cs: Don't handle WM_SETFOCUS if the same window already
17886           has focus (works around X11 sending a FocusIn after our SetFocus)
17887         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
17888
17889 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
17890
17891         * Mime.cs: Fix for the NET_2_0 build.
17892           NameValueCollection needs StringComparer now.
17893
17894 2006-05-31  Chris Toshok  <toshok@ximian.com>
17895
17896         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
17897         return (via an out parameter) the starting X of the column.
17898         (UpdateVisibleColumn): track change to FromPixelToColumn.
17899         (HitTest): add a ColumnResize case here.
17900         (DrawResizeLine): new function, probably poorly named.
17901
17902         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
17903         only need to keep one reference.
17904         (set_ListManager): same.
17905         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
17906         Also, add support for HitTestType.ColumnResize.
17907         (OnMouseMove): add column resize behavior here, and change the
17908         cursor to the correct one as we move around the datagrid.
17909         (OnMouseUp): terminate the column resize if we're resizing.
17910         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
17911         for the current cell.
17912         (ConnectListManagerEvents): use cached_currencymgr.
17913         (DisconnectListManagerEvents): fill this in, using
17914         cached_currencymgr.
17915         (SetCurrentCell): remove cached_currencymgr_events handling.
17916         (SetDataMember): only call DisconnectListManagerEvents if
17917         cached_currencymgr is != null.
17918         (SetDataSource): same.
17919         (OnListManagerCurrentChanged): cached_currencymgr_events ->
17920         cached_currencymgr.
17921
17922 2006-05-31  Jackson Harper  <jackson@ximian.com>
17923
17924         * BindingManagerBase.cs: Remove somedebug code that creeped into
17925         SVN.
17926         * TreeNode.cs: We get the indent level dynamically right now, so
17927         don't track it as a member.
17928         * TreeNodeCollection.cs: Make sure all nodes added to the list
17929         have parents, treeviews/topnodes setup properly.
17930         - Don't attempt to track indent level.
17931
17932 2006-05-30  Jackson Harper  <jackson@ximian.com>
17933
17934         * BindingContext.cs: Create the currency manager tables here.
17935         This allows us to more easily create null tables (when bad data
17936         members are used), and more easily create related currency
17937         managers.
17938         * CurrencyManager.cs: All the table creation stuff is done by the
17939         binding context now.
17940         - Current should throw an exception if listposition is -1.
17941         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
17942         been bound yet.
17943
17944 2006-05-30  Mike Kestner  <mkestner@novell.com>
17945
17946         * ListView.cs: allow reexpansion of zero-width column headers.
17947         Fixes #78528.
17948
17949 2006-05-28  Chris Toshok  <toshok@ximian.com>
17950
17951         * CurrencyManager.cs (get_Current): after the late binding
17952         listposition = -1 fix, we need to guard against it here and return
17953         null, otherwise we raise an exception (which is swallowed
17954         elsewhere, and breaks datagrid databinding.)
17955
17956 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
17957
17958         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
17959           than WM_SYSKEY, don't throw if get something unexpected (#78507)
17960
17961 2006-05-26  Jackson Harper  <jackson@ximian.com>
17962
17963         * ControlPaint.cs:
17964         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
17965         values, it's faster and it's all we care about (we don't care if
17966         the names aren't equal).
17967         * KeyboardLayouts.cs: Eliminate some dead code.
17968         - Lazy init things
17969         * X11Keyboard.cs: Lazy init keyboard detection.
17970         - Cleanup access modifiers a little.
17971
17972 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
17973
17974         * XplatUIX11.cs: Once again, attempting to get layout just right.
17975
17976 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
17977
17978         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
17979           the sizes of each link section, that will result in sizes that
17980           match DrawString's layout (Fixes #78391)
17981
17982 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
17983
17984         * FileDialog.cs: If AddExtension property is true autocomplete the
17985           extensions in SaveFileDialog correctly. Fixes bug #78453.
17986           Set MyNetwork and MyComputer to "C:\" for windows. This should
17987           fix part 8 of bug #78446 for now.
17988
17989 2006-05-26  Chris Toshok  <toshok@ximian.com>
17990
17991         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
17992         invalidate the current row header if we need to, but presumably
17993         we'll invalidate the row corrsponding to the bounds or
17994         editingControl.
17995         (GridHScrolled): switch back to this method, as it's part of the
17996         public api.  *sigh*.
17997         (GridVScrolled): same.
17998         (OnMouseWheel): hack up something that more or less works.  Call
17999         GridHScrolled/GridVScrolled directly, instead of duplicating much
18000         of their code here.
18001         (EnsureCellVisibility): reinstate a bunch of this code, since we
18002         can't just set the scrollbar Value and expect to do all the work
18003         in the ValueChanged handler.  Also, Call Update() after scrolling
18004         in one direction so the other XplatX11.ScrollWindow call has the
18005         proper stuff in the proper places.
18006         (EditCell): set is_editing to true before calling .Edit.
18007
18008         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
18009         don't bother comparing first.
18010         (OnKeyPress): call grid.ColumnStartedEditing before calling
18011         base.OnKeyPress.  this will set is_changing and invalidate the row
18012         header if necessary.
18013         (ProcessKeyMessage): for WM_CHAR messages, call
18014         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
18015         and WM_KEYDOWN.
18016         
18017         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
18018         it's done in the DataGrid.
18019         (NextState): call grid.ColumnStartedEditing, which takes care of
18020         invalidating the row header (and setting is_changing).
18021
18022         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
18023         here.  it's done in the DataGrid.
18024
18025 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18026
18027         * Control.cs: allow changing the cursor when the mouse position is
18028         out of bounds but Capture is set.
18029         * LinkLabel.cs: handle the case when the mouse button is pressed on the
18030         linklabel but released somewhere else.
18031
18032 2006-05-25  Jackson Harper  <jackson@ximian.com>
18033
18034         * TreeView.cs: When we get focus if there is no selected node make
18035         it the top node
18036         - Remove some uneeded setup code from Draw.
18037         * TreeNodeCollection.cs: If the tree doesn't have a top node when
18038         a new node is inserted make the new node the top.
18039         * XplatUIX11.cs:
18040         * Timer.cs: Use Utc time so that no local time zone stuff needs to
18041         be used (should be faster).
18042         
18043 2006-05-25  Chris Toshok  <toshok@ximian.com>
18044
18045         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
18046         problem with the last commit.
18047
18048 2006-05-25  Chris Toshok  <toshok@ximian.com>
18049
18050         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
18051         need the invalidate call here, while scrolling right-to-left via
18052         the left arrow key (i.e. moving the editing cell while scrolling).
18053
18054         * DataGrid.cs (.ctor): remove the initialization of
18055         ctrl_pressed/shift_pressed.  We no longer track them using key
18056         up/down handlers, but by using Control.ModifierKeys.  Also, switch
18057         to using ValueChanged handlers on the scrollbars instead of
18058         Scrolled event handlers.  This simplifies a bunch of the scrolling
18059         code.
18060         (GridHValueChanged): rename from GridHScrolled, and change it to
18061         work with the new event args.
18062         (GridVValueChanged): same.
18063         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
18064         (OnMouseWheel): actually scroll the datagrid.  Don't change the
18065         selected cell.
18066         (ProcessGridKey): correct all the keyboard navigation stuff I
18067         could find.  Ctrl up/down/left/right/home/end work now.
18068         (EnsureCellVisibility): correct method name spelling.  Also,
18069         simplify this a touch by not explicitly calling the
18070         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
18071         scrollbar value.
18072         (OnKeyUpDG): no need for this method now.
18073         
18074 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18075
18076         * LinkLabel.cs: display the OverrideCursor when hovering the label.
18077         Fixes bug #78392.
18078
18079 2006-05-25  Chris Toshok  <toshok@ximian.com>
18080
18081         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
18082         r61019.
18083
18084 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
18085
18086         * Application.cs: Moved setting of is_modal and closing to before
18087           we create the control, to allow the event handlers called as a
18088           result of creation affect closing. Also removed Gonzalo's previous
18089           change to setting DialogResult, the behaviour has been moved to 
18090           Form.ShowDialog()
18091         * Form.cs: 
18092           - ShowDialog(): Removed explicit creation of the form, let RunLoop
18093             handle it instead
18094           - ShowDialog(): If no dialog result is set, we need to return Cancel
18095           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
18096             the close is cancelled
18097
18098 2006-05-25  Jackson Harper  <jackson@ximian.com>
18099
18100         * StatusBar.cs: We only need to update the sizes of the other
18101         panels when we have auto size contents.  Also we are only updating
18102         the contents of the panel, not the borders, so compensate for the
18103         border width (TODO: get this width from the theme somehow).
18104         * TreeView.cs: Scrollable is true by default
18105         - Use invalidate instead of refresh where needed
18106         - Factor the scrollable value into scrollbar updating
18107         - Update the scrollbars if the Scrollable property is altered
18108         - Update the selected node if its ImageIndex is changed
18109         - Handle null nodes in UpdateNode (mainly so we don't have to
18110         check if selected is null when updating it
18111         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
18112         are factored into the visible count
18113         - Use VisibleCount for clarity in the code
18114         - When the font is changed we need to recurse through all the
18115         nodes and invalidate their sizes
18116         
18117 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18118
18119         * Application.cs: set the DialogResult to fixed when the main form is
18120         hidden or destroyed while being modal.
18121
18122 2006-05-25  Miguel de Icaza  <miguel@novell.com>
18123
18124         * Theme.cs: Use Tangoified messagebox icons. 
18125
18126         (GetSizedResourceImage): Also cope with width = 0 and do not
18127         trigger a warning in that case (0 means "give me your icon from
18128         the resouce, no special size needed).
18129
18130 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
18131
18132         * Application.cs: Leave runloop if the the main modal form is 
18133           hidden (fixes #78484)
18134
18135 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
18136
18137         * BindingContext.cs : reject null datasource in Contains() and
18138           Item[].
18139         * CurrencyManager.cs : check data_member validity when data_source
18140           is dataset. When it is late binding, the initial position is -1.
18141
18142 2006-05-24  Jackson Harper  <jackson@ximian.com>
18143
18144         * TreeNodeCollection.cs: Dont't recalculate the visible order on
18145         inserted nodes that aren't visible.  This changes the
18146         max_visible_order which confuses scrollbar settings.
18147         - Use the enumerator to get the prev node instead of duplicating
18148         code.
18149         * TreeView.cs: Use new method for setting scrollbar values
18150         - Don't set the bounds every time the scrollbar is updated
18151         - When updating below the root node use an invalidate instead of a
18152         refresh to prevent the child controls (scrollbars) from being
18153         refreshed. (UpdateBelow still needs to be reworked anyways).
18154         - Reenable SetBottom now that visible orders are set correctly,
18155         added some debug code incase we ever get bad values there again.
18156         - Set the scrollbar max to 2 less then the max value, this
18157         compensates for the max value being one above the node count, and
18158         for scrollbars adding one extra "notch".
18159         - When drawing image nodes if there is an imagelist we draw the
18160         first image in the list if the supplied image index is out of the
18161         image list's bounds.
18162         
18163 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
18164
18165         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
18166           we receive a size change from the WM (Fixes #78503)
18167
18168 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
18169
18170         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
18171           rectangle (Fixes #78501)
18172
18173 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
18174
18175         * ButtonBase.cs: 
18176           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
18177             as a bitfield.
18178           - Fixed MouseMove to no longer switch pressed state unless the left
18179             mouse button is pressed. Atsushi provided the original patch (#78485)
18180           
18181 2006-05-24  Jackson Harper  <jackson@ximian.com>
18182
18183         * ScrollBar.cs: New internal methods that allow us to change a
18184         couple values on the scrollbar (the most common case is maximum
18185         and large change) without getting multiple invalidates.
18186
18187 2006-05-24  Chris Toshok  <toshok@ximian.com>
18188
18189         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
18190         (Edit): save off the original state in oldState, and set
18191         grid.is_editing to true.
18192         (OnKeyDown): abort editing if escape is pressed.  also, call
18193         NextState if space is pressed.
18194         (OnMouseDown): call NextState.
18195         (NextState): factor out shared code from OnKeyDown and OnMouseDown
18196         here.  Also, only invalidate the row header once (on the initial
18197         is_changing switch) to save on redraws.
18198
18199 2006-05-24  Chris Toshok  <toshok@ximian.com>
18200
18201         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
18202         if the value in the cell is different than it was before.  This
18203         keeps us from triggering a layout when we move around a datarid
18204         with a highlighted cell.
18205         (Edit): suspend layout when creating/positining the text box, and
18206         resume passing false so we don't ever actually re-layout.
18207         (ReleaseHostedControl): same.
18208         (EnsureTextBox): reformat slightly, and set WordWrap to false.
18209
18210         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
18211         control-key sequences should go to the datagrid - remove that
18212         lock.  Also, modify the conditions under which we move between
18213         cells when moving the cursor within a cell, and remove the "this"
18214         and "base" from field accesses.  We weren't even consistent, given
18215         they all were in the base class.
18216
18217 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
18218
18219         * Binding.cs : (.ctor)
18220           An obvious NRE fix for BindingTest.CtorNullTest().
18221
18222 2006-05-23  Chris Toshok  <toshok@ximian.com>
18223
18224         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
18225         them between lines.  This fixes some quirks editing cells in the
18226         datagrid.
18227
18228 2006-05-23  Jackson Harper  <jackson@ximian.com>
18229
18230         * TreeView.cs: Use begin/end update when doing expand/collapse all
18231         so that we don't get flicker on the scrollbar.
18232
18233 2006-05-23  Jackson Harper  <jackson@ximian.com>
18234
18235         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
18236         treenode calculations to be independant of the painting code. To
18237         do this nodes track a visible order which is calculated by the
18238         treeview.
18239         - Call new methods for expanding/collapsing nodes.  These methods
18240         use scrollwindow so we don't have to update everything below the
18241         node.
18242         * TreeView.cs: Refactored drawing and scrolling code.  We don't
18243         need to update nodes when drawing anymore or calculate scrollbar
18244         stuff.
18245         - Added new methods for expanding/collapsing nodes. These methods
18246         use ScrollWindow so as to not have to redraw all the nodes below.
18247         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
18248         we add/remove nodes or sort.
18249         - Handle removing the selected and the top node properly.
18250
18251 2006-05-23  Chris Toshok  <toshok@ximian.com>
18252
18253         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
18254         maybe this should actually happen in the datagrid code?
18255         (EndEdit): no need to invalidate anything, given that
18256         ReleaseHostedControl causes the datagrid to relayout, which
18257         invalidates everything anyway.
18258
18259         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
18260         in SetCurrentCell).
18261         (set_SelectionBackColor): call InvalidateSelection instead of
18262         Refresh.
18263         (set_SelectionForeColor): same.
18264         (BeginEdit): Flesh this out a bit.
18265         (CancelEditing): only do any of this if we're editing/adding.
18266         (EndEdit): same.
18267         (OnMouseDown): there's no need to cancel editing here, it's done
18268         in SetCurrentCell.
18269         (SetCurrentCell): only invalidate the current row header if it's a
18270         different row than the new one.
18271         (ShiftSelection): fix this to work like MS does.
18272         (ResetSelection): factor out the invalidation of selected_rows to
18273         InvalidateSelection.
18274         (SetDataSource): cancel any editing that's going on.
18275
18276         * DataGridColumnStyle.cs
18277         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
18278         call the non-interface version.
18279
18280         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
18281         header rectangle with the clip rectangle so we don't redraw the
18282         entire header for just a small area.  Gets rid of the last flicker
18283         when horizontally scrolling.
18284         (DataGridPaintRow): same.
18285
18286 2006-05-23  Mike Kestner  <mkestner@novell.com>
18287
18288         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
18289         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
18290         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
18291         Critical bug report.
18292
18293 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
18294
18295         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
18296           and this fixes #78493
18297
18298 2006-05-23  Miguel de Icaza  <miguel@novell.com>
18299
18300         * Theme.cs (GetSizedResourceImage): Scale images if the proper
18301         size is not found.  
18302         
18303         * FileDialog.cs: Do not change the background for the side bar as
18304         it wont work nicely with the theme, and also reduces the artifacts
18305         in rendering the icons (which I want to fix too).
18306
18307         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
18308         resources, not resgen resources. 
18309
18310         (PlatformDefaultHandler): Pull images using the new API.
18311
18312 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
18313
18314         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
18315           a reference to the hwnd and will not remove it unless there are
18316           no pending exposures (fixes #78341)
18317         * XplatUI.cs: Improved debug
18318
18319 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
18320
18321         * MenuAPI.cs : don't handle OnClick event when it was not the left
18322           button. Fixed bug #78487.
18323
18324 2006-05-23  Mike Kestner  <mkestner@novell.com>
18325
18326         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
18327         prefer submenus to the top menu for item lookup, to avoid popping down
18328         top-row items.
18329
18330 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
18331
18332         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
18333           Graphics.FillRectangle as the visual results are really bad (even
18334           on win). We now draw perfect arrows (and perfect shadows when the
18335           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
18336           Pen.DashPattern to draw the dots of each line.
18337
18338 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
18339
18340         * FileDialog.cs: Update the filename combobox when navigating through
18341           the ListView with the cursor keys. Fixes part 7 of bug #78446.
18342
18343 2006-05-22  Mike Kestner  <mkestner@novell.com>
18344
18345         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
18346         Fixes #78463.
18347
18348 2006-05-22  Mike Kestner  <mkestner@novell.com>
18349
18350         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
18351         requests. Fix a misspelled parameter and a copy paste exception error
18352         in Select.
18353
18354 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
18355
18356         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
18357           to get the same width/height (5/13) on X11 as the default font has on
18358           win32. This means that our DefaultFont emSize is smaller than the 
18359           the MS SWF equivalent (even thought the width/height stays the same)
18360
18361 2006-05-20  Jackson Harper  <jackson@ximian.com>
18362
18363         * MdiClient.cs:
18364         * MdiWindowManager.cs:
18365         * InternalWindowManager.cs: Make sure to use the border width from
18366         the theme.
18367
18368 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
18369
18370         * PrintDialog.cs: Implements printer details
18371
18372 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
18373
18374         * FileDialog.cs: Added focus handling for PopupButtonPanel.
18375           Fixes part 1 and 2 of bug #78446
18376
18377 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
18378
18379         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
18380           instead of sticking to the first ever calculated value
18381
18382 2006-05-19  Mike Kestner  <mkestner@novell.com>
18383
18384         * ComboBox.cs: fix mouse motion selection to use MousePosition and
18385         PointToClient, since Capture is set. Fixes #78344.
18386
18387 2006-05-19  Mike Kestner  <mkestner@novell.com>
18388
18389         * ListView.cs: match MS behavior in Details view where items are not
18390         drawn if Columns.Count == 0. 
18391         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
18392         Use a separate pen to draw the check, since changing the width affects
18393         the box as well.  Fixes #78454.
18394
18395 2006-05-18  Miguel de Icaza  <miguel@novell.com>
18396
18397         * ListView.cs: ArgumentOutOfRangeException, single versions of the
18398         exception should throw the name of the invalid argument.
18399
18400         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
18401         there are no files listed. 
18402
18403 2006-05-18  Jackson Harper  <jackson@ximian.com>
18404
18405         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
18406         up.
18407
18408 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
18409
18410         * Control.cs: Brought back our old UpdateZOrder method as a private
18411           function and switched our calls from UpdateZOrder to the new one.
18412           This fixes the Paint.Net canvas disappearing bug.
18413
18414 2006-05-18  Jackson Harper  <jackson@ximian.com>
18415
18416         * Theme.cs:
18417         * ThemeWin32Classic.cs:
18418         * InternalWindowManager.cs: Move the drawing into the theme,
18419         expose everything the theme should need from the window manager.
18420
18421 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
18422
18423         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
18424           from the call to NativeWindow to avoid walking up the parent chain
18425           further than needed (speeds up setting cursors and avoids setting
18426           the wrong cursor if a parent has another cursor defined)
18427         * Cursor.cs: When loading an icon as cursor, MS uses the center of
18428           the icon as hotspot, not what's contained as hotspot in the icon
18429           file. This fixes the perceived drawing offset seen with Paint.Net
18430         
18431 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
18432
18433         * XplatUIX11.cs: 
18434           - Store the calculated rectangle in Hwnd object and use it when 
18435             setting the client size
18436           - Force Toolwindows to always be type Dock, to ensure they're on top
18437
18438 2006-05-18  Mike Kestner  <mkestner@novell.com>
18439
18440         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
18441         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
18442         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
18443         Substantial refactoring to remove confusing nested classes. Coding
18444         standard and Get+Set->property refactorings.  Shift to index based
18445         highlighting in ComboListBox instead of constantly using IndexOf and
18446         Items[]. Add invalidations on resize for DropDownList to fix ugliness
18447         in FileDialog growth.  Draw borders manually since Simple mode needs
18448         to look like two independent controls.  Make listbox border
18449         conditional to DropDownStyle.  Improved OwnerDraw support.
18450
18451 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
18452
18453         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
18454         Don't set the disposed graphics to null, so we can throw the "right"
18455         exception if the graphics is reused later (added a flag to avoid 
18456         double disposing). Some behaviours are different under 2.0 and are
18457         filled under bug #78448.
18458
18459 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
18460
18461         * Control.cs: When double-buffering is enabled, we need to reset
18462           our graphics context between paint calls. Otherwise, any 
18463           transformations and other alterations on the context will 
18464           become cumulative (#77734)
18465
18466 2006-05-18  Mike Kestner  <mkestner@novell.com>
18467
18468         * ListView.cs: do focused item selection like MS on clicks. 
18469         Rework focus handling for ItemControl so LostFocus invalidates as
18470         well.
18471         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
18472         the ListView ItemControl has focus.
18473
18474 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
18475
18476         * XplatUIX11.cs: If client_window ends up being width or height zero
18477           due to border settings, move it off window inside whole_window (#78433)
18478
18479 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
18480
18481         * Mime.cs: Shrink the mime file cache correctly.
18482
18483 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
18484
18485         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
18486
18487 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18488
18489         * XplatUIX11.cs (AddExpose): More sanity checks
18490
18491 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18492
18493         * XplatUIX11.cs:
18494           - AddExpose: Don't add expose ranges outside the size of our
18495             window
18496           - Cast opacity values to Int32 to avoid crashes with certain
18497             values
18498           - Added disabled code paths that protect against illegal cross-
18499             thread painting (Developers.exe)
18500
18501 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18502
18503         * ProgressBar.cs: Invalidate the control when it's resized
18504           since block size is based on control size. (#78388)
18505
18506 2006-05-16  Miguel de Icaza  <miguel@novell.com>
18507
18508         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
18509         of setting the incoming argument to the "reset" value, we set the
18510         this.datamember to string.empty (before we were invalidating the
18511         incoming data).   
18512
18513         Fixes 78420
18514
18515 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18516
18517         * Form.cs: Only apply transparency settings after the form
18518           is created. (Fixes #77800)
18519
18520 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18521
18522         * ApplicationContext.cs: Grab the HandleDestroyed event so
18523           we know when to fire OnMainFormClosed 
18524
18525 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18526
18527         * Application.cs: Introduced sub-class to allow tracking of
18528           threads and centralized triggering of the event mess for
18529           ThreadExit, AppExit, etc..  (#76156)
18530
18531 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
18532
18533         * MimeIcon.cs:
18534           - Do not return a null icon index value for a mime subclass.
18535             Instead try the main mime type class too.
18536           - Seems that some newer distributions don't have a link to some
18537             gnome default icons anymore. So check the default gnome dir too.
18538           
18539
18540 2006-05-16  Jackson Harper  <jackson@ximian.com>
18541
18542         * MdiClient.cs: Don't paint the parent background image if we have
18543         our own background image.
18544
18545 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18546
18547         * Control.cs:
18548           - PerformLayout: Do not shrink space filled by DockStyle.Fill
18549             controls, all filled controls are supposed to overlap (#78080)
18550           - UpdateZOrder is supposed to update the control's z-order in the
18551             parent's z-order chain. Fixed to behave like that
18552           - BringToFront: Removed obsolete code
18553           - SendToBack: Simplyfied
18554           - SetChildIndex: Trigger layout calculations when Z-order changes
18555             since layout is done by z-order
18556
18557 2006-05-16  Chris Toshok  <toshok@ximian.com>
18558
18559         [ fixes bug #78410 ]
18560         * DataGrid.cs (set_AlternatingBackColor): use
18561         grid_drawing.InvalidateCells instead of Refresh().
18562         (set_BackColor): call grid_drawing.InvalidateCells.
18563         (set_BackgroundColor): use Invalidate instead of Refresh.
18564
18565         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
18566         invalidate the cell area.
18567
18568 2006-05-15  Chris Toshok  <toshok@ximian.com>
18569
18570         [ fixes bug #78011 ]
18571         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
18572         on to DataGridPaintRow.
18573         (DataGridPaintRow): take a clip argument, and only draw the cells
18574         which intersect it.  same with the not_usedarea.
18575
18576         * Theme.cs (DataGridPaintRow) add @clip parameter.
18577
18578         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
18579         XplatUI.ScrollWindow.
18580         (ScrollToRow): same.
18581
18582         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
18583         with last column which was causing a gray swath to appear with the
18584         XplatUI.ScrollWindow code.
18585
18586 2006-05-15  Chris Toshok  <toshok@ximian.com>
18587
18588         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
18589         use XplatUI.ScrollWindow.
18590         (VerticalScrollEvent): use XplatUI.ScrollWindow.
18591
18592 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
18593
18594         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
18595
18596 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
18597
18598         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
18599           file since there are no equivalent X11 cursors
18600
18601 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
18602
18603         * MonthCalendar.cs : DateTimePicker should reflect selected date
18604           on mouse*up*, not mouse*down*. Fixed originally reported part of
18605           bug #76474.
18606
18607 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
18608
18609         * TabControl.cs : When argument index is equal or more than tab
18610           count, just ignore. Fixed bug #78395.
18611
18612 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
18613
18614         * Control.cs: Dispose all child controls when control is diposed (#78394)
18615
18616 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18617
18618         * ColorDialog.cs: Finally it is possible to select the color with
18619           the text boxes
18620
18621 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18622
18623         * PrintDialog.cs: Fix typo
18624
18625 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18626
18627         * PrintDialog.cs: PrintDialog is not resizable
18628         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
18629           color. Made some ToolBar drawing methods protected virtual.
18630
18631 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
18632
18633         * PrintDialog.cs: Implementation of the PrintDialog
18634
18635 2006-05-12  Chris Toshok  <toshok@ximian.com>
18636
18637         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
18638         thumb, instead use MoveThumb.  This has the side effect of making
18639         most of the other thumb moving machinery use MoveThumb as well.
18640         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
18641         need to actually invalidate the rectangle where the new thumb will
18642         go.
18643         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
18644         We force an Update() after, so it's not as fast as it could be,
18645         but at least there's zero flicker and no droppings.
18646         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
18647         (UpdateThumbPos): add another argument (dirty), which says whether
18648         or not to calculate/add dirty regions which we later invalidate.
18649         For cases where we know we're going to use MoveThumb, we pass
18650         false for this.  Otherwise, pass true.
18651
18652 2006-05-12  Jackson Harper  <jackson@ximian.com>
18653
18654         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
18655         the status bar.
18656         
18657 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
18658
18659         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
18660           and GetClipRegion methods and UserClipWontExposeParent property.
18661         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
18662           overriding UserClipWontExposeParent property, setting to false, since
18663           Win32 handles the required expose messages to draw our clipped parent
18664           areas internally
18665         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
18666           PaintEventStart to set the user clip region if set.
18667         * Control.cs: 
18668           - Now internally tracking the Region for the control since we need to
18669             store it if the handle is not yet created and only set it when it
18670             becomes created. Before setting the region forced handle creation
18671           - Added code to draw the parents underneath a user-clipped region
18672         * Hwnd.cs: Added UserClip property
18673
18674 2006-05-12  Chris Toshok  <toshok@ximian.com>
18675
18676         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
18677         (set_Maximum): same.
18678         (set_Minimum): same.
18679         (set_SmallChange): same.
18680         (OnMouseUpSB): remove the call to refresh when releasing the
18681         thumb.  We shouldn't need it.
18682         
18683 2006-05-12  Miguel de Icaza  <miguel@novell.com>
18684
18685         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
18686         AutoSize set to None, we do not need to relayout everything, we
18687         just need to invalidate the current region.
18688
18689         (Draw): Do not draw the entire ClientArea, just redraw the
18690         clip area being passed.
18691
18692         * MdiClient.cs: Make MdiClient constructor with the Form argument
18693         internal. 
18694
18695 2006-05-12  Jackson Harper  <jackson@ximian.com>
18696
18697         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
18698         parents background image,  but strangely not their own.
18699         - (DrawStatusBarPanel): Take into account horizontal alignment
18700         when drawing the strings and icons.
18701
18702 2006-05-12  Mike Kestner  <mkestner@novell.com>
18703
18704         * ListBox.cs: avoid invalidations for focus when the collection is
18705         empty. 
18706
18707 2006-05-12  Chris Toshok  <toshok@ximian.com>
18708
18709         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
18710         invalidate the entire thumb area.  Call InvalidateDirty which
18711         limits the redraw to the thumb itself and surrounding pixels.
18712
18713         * XplatUIX11.cs (ScrollWindow): optimize copying.
18714         
18715 2006-05-12  Chris Toshok  <toshok@ximian.com>
18716
18717         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
18718         Figure out the positioning/layout in a single pass instead of
18719         multiple recursive invocations.  Speeds up the initial display of
18720         the data grid.  Also, make many things private that were
18721         originally public but unused outside this class.
18722
18723 2006-05-11  Jackson Harper  <jackson@ximian.com>
18724
18725         * MdiClient.cs: Improved layout code.
18726
18727 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
18728
18729         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
18730           not SelectedObject.
18731
18732 2006-05-11  Chris Toshok  <toshok@ximian.com>
18733
18734         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
18735         union of that will always be {0,0,width,height}.
18736
18737 2006-05-11  Jackson Harper  <jackson@ximian.com>
18738
18739         * Form.cs: Match MS's DefaultSize for forms (they must have
18740         changed the size in sp2).
18741
18742 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
18743
18744         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
18745
18746 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
18747
18748         * TextControl.cs : Fixed bug #78109. This incorrect position
18749           comparison caused crash on automatic line split.
18750         * TextBoxBase.cs : reduce duplicate code.
18751
18752 2006-05-10  Jackson Harper  <jackson@ximian.com>
18753
18754         * MdiClient.cs: Active form is only sent to the back when using
18755         the Next form functionality, when a form is clicked the current
18756         active shouldn't be sent to the back.
18757         - Layout the mdi windows when the container is first made visible.
18758         * Form.cs: Give the MdiClient a ref to the containing form when we
18759         create it.
18760         
18761 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
18762
18763         * LinkLabel.cs : link_font could be uninitialized, so populate one
18764           before actual use. Fixed bug #78340.
18765
18766 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
18767
18768         * XplatUIX11.cs : clipboard format native value is IntPtr.
18769           Fixed bug #78283.
18770
18771 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18772
18773         * Control.cs: 
18774           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
18775             which is passed up the parent chain by DefWndProc
18776           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
18777             to DefWndProc (#77956)
18778         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
18779
18780 2006-05-10  Jackson Harper  <jackson@ximian.com>
18781
18782         * MdiClient.cs: We need to remove the controls from the mdi
18783         collection, when we close the window.
18784         * MdiWindowManager.cs: Special handling of closing mdi windows.
18785         * InternalWindowManager.cs: Make the close method virtual so the
18786         mdi window manager can handle it specially.
18787
18788 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
18789
18790         * DataGrid.cs:
18791           - Recalculate grid when the data source has changed
18792           - Matches styles provided by user from all data sources types
18793         * DataGridTableStyle.cs: For columns that provided by the user set the
18794         with the preferred value is there was unassigned.
18795         * CurrencyManager.cs: throw OnItemChanged event
18796
18797 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
18798
18799         * PictureBox.cs: Don't animate until handle is created. Start animation
18800           when handle is created.
18801
18802 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18803
18804         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
18805           current codebase.
18806         * XEventQueue.cs: We don't need to provide the extra info
18807
18808 2006-05-10  Jackson Harper  <jackson@ximian.com>
18809
18810         * MdiClient.cs: If the mdi clients parent form has a background
18811         image set, we draw that background image for the mdi area's
18812         background.
18813
18814 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18815
18816         * TextBoxBase.cs: Set IBeam cursor (#78347)
18817
18818 2006-05-10  Mike Kestner  <mkestner@novell.com>
18819
18820         * ToolBar.cs: fix some text padding issues with ButtonSize
18821         calculation. Update the default size to match MS documentation.
18822         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
18823         button size. Fixes #78296.
18824
18825 2006-05-10  Mike Kestner  <mkestner@novell.com>
18826
18827         * ListBox.cs: use is_visible for scrollbar positioning in case the
18828         control isn't on screen yet.  Fix off by one with Right vs Width
18829         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
18830         
18831 2006-05-10  Jackson Harper  <jackson@ximian.com>
18832
18833         * X11Dnd.cs: Drop to a control with another control on top of it.
18834         * ToolBar.cs: Work on a copy of the buttons list, so that it can
18835         be modified in click handlers. TODO: Look for similar problems in
18836         other controls.
18837
18838 2006-05-09  Jackson Harper  <jackson@ximian.com>
18839
18840         * Form.cs: Window managers need the old window state when setting
18841         window state now.
18842         * InternalWindowManager.cs: Allow the base mdi window manager to
18843         handle more of the MDI only stuff (like maximize buttons).
18844         * MdiWindowManager.cs: Fix some snafus in changing the window
18845         state.  Add all the menu functionality, for both popup and
18846         maximized menus.
18847         * MdiClient.cs: When a new form is selected the currently
18848         activated form is sent to the back, this matches MS.
18849         - Implement a new method to activate the next mdi child window.
18850
18851 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
18852
18853         * Control.cs: 
18854           - Added new InternalCapture method to allow controls to prevent
18855             the capture behaviour on the click handlers
18856           - Switched to use InternalCapture
18857         * ComboBox.cs:
18858           - Using InternalCapture to prevent mouse captures from being released
18859             on mouse button release (Fixes #78100)
18860         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
18861           returns Form borders if a caption is present. (Fixes #78310)
18862
18863 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
18864
18865         * TreeNode.cs: Changed serialization .ctor to not require every field
18866           to be present. (#78265)
18867         * OwnerDrawPropertyBag.cs: Added serialization .ctor
18868
18869 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
18870
18871         * MimeIcon.cs: for is faster than foreach for strings.
18872
18873 2006-05-05  Mike Kestner  <mkestner@novell.com>
18874
18875         * CheckedListBox.cs: update check handling code to not use selected.
18876         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
18877         behavior for visual feedback, motion response, shift/ctrl handling,
18878         and properly deal with all 4 selection modes. Updates to bounds
18879         handling logic.  Add scroll wheel support. [Fixes #77842]
18880
18881 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
18882
18883         * ListView.cs:
18884           - Moved adding of Implicit controls into .ctor. That way, subsequent
18885             creation of the controls will not cause them to think they are 
18886             toplevel windows (fixes #78200 header problem)
18887           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
18888           - Switched visibility setting of header control to use internal field
18889             to avoid triggering handle creation
18890           - Now checking if handle is created before causing a refresh when items
18891             are added (This makes us now match handle creation time with MS)
18892         * Splitter.cs: Removed loading of private splitter cursor, switched to
18893           Cursors version now that that is loading the right ones
18894         * Cursors.cs: Load proper splitter cursors from resources
18895         * Cursor.cs: Added second method of loading resource cursors for the 
18896           VS.Net users amongst us
18897
18898 2006-05-05  Mike Kestner  <mkestner@novell.com>
18899
18900         * ListView.cs: give header_control a minimum size based on the
18901         ListView size.
18902
18903 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
18904
18905         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
18906           window seems to do that with metacity, so set that type. (#78120)
18907
18908 2006-05-05  Mike Kestner  <mkestner@novell.com>
18909
18910         * ListViewItem.cs: fix Details mode checkbox layout bug.
18911         * ThemeWin32Classic.cs: draw a ListView column header for unused space
18912         at the end of the header, if it exists. [Fixes for #78200]
18913
18914 2006-05-04  Jackson Harper  <jackson@ximian.com>
18915
18916         * MdiClient.cs: Add a helper property to get the container form.
18917         * MdiWindowManager.cs: We have to make sure to use the menu origin
18918         when drawing the icons and buttons, this fixes maximized window
18919         icons/buttons on win32.
18920         * InternalWindowManager.cs: Reset the restore captions when a
18921         window goes from Maximized to Minimized and vice versa. Move the
18922         DrawMaximizedButtons into the MdiWindowManager source, tool
18923         windows can't be maximized. NOTE: This could use a little
18924         refactoring if time ever permits.
18925         
18926 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
18927
18928         * TextBox.cs: Add MWFCategoryAttributes
18929         * TextBoxBase.cs: Add MWFCategoryAttributes
18930         * Form.cs: Add MWFCategoryAttributes
18931
18932 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
18933
18934         * Control.cs: Add MWFCategoryAttributes
18935         * ScrollableControl.cs: Add MWFCategoryAttributes
18936
18937 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
18938
18939         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
18940           Divider is true. Fix a little glitch in PropertyToolBar
18941           drawing code
18942
18943 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
18944
18945         * Control.cs:
18946           - Dispose: Call base.Dispose, this causes the disposed event
18947             to be fired (and probably other, more important stuff)
18948           - SetVisibleCore: Set is_visible to true after creating the
18949             window so that the window still gets created invisible (if
18950             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
18951             to generate a WM_ACTIVE message
18952         * Form.cs: Call Dispose when we want to destroy the window, instead of
18953           just destroying the handle (Dispose will do that for us)
18954         * XplatUIX11.cs:
18955           - RootWindow also needs a queue, so we can properly process the
18956             property change events from RootWindow (like Activate)
18957           - Generatic synthetic WM_ACTIVE message when the active window is
18958             being destroyed
18959
18960 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
18961
18962         * LinkLabel.cs: Trigger a recalc of our label dimensions when
18963           bounds are changed
18964
18965 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
18966
18967         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
18968           for determining width and height (image might not be assigned if
18969           we're drawing an imagelist)
18970
18971 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
18972
18973         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
18974         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
18975           height from system
18976         * Theme.cs: No longer returns hardcoded menu height, instead calls
18977           new driver method
18978         * Form.cs (OnLoad): Scaling happens before triggering Load events 
18979           on MS (# 78257)
18980
18981 2006-05-01  Mike Kestner  <mkestner@novell.com>
18982
18983         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
18984
18985 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
18986
18987         * TextBoxBase.cs: Removed Fixme
18988         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
18989
18990 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
18991
18992         * XplatUIX11.cs:
18993           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
18994             the rectangle relative to the parent, considering borders. We
18995             don't really want that.
18996           - ScrollWindow: Fixed warning to be more understandable
18997         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
18998           scrollbars and scroll only the visible area
18999         * RichTextBox.cs: Removed debug output
19000
19001 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
19002
19003         * NumericUpDown.cs (Text): Just use base
19004         * UpDownBase.cs: Ensure txtView is created before using it
19005
19006 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
19007
19008         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
19009           casting to IntPtr to avoid 64bit overflow errors
19010
19011 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
19012
19013         * Control.cs:
19014           - AllowDrop: Don't force handle creation.
19015           - CreateHandle: Added call to tell driver if we're allowed to drop
19016
19017 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
19018
19019         * FileDialog.cs: Remember the last directory not only for the
19020           current instance but also for new FileDialog instances.
19021
19022 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
19023         
19024         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
19025           broke sending async messages
19026
19027 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
19028
19029         * XplatUIX11.cs:
19030           - ScrollWindow: Fixed method. We finally generate expose events again
19031             for scrolled areas. This was causing 'garbage' when scrolling
19032             textbox and other controls that used ScrollWindow
19033           - Switched from using the regular queue for paint events to the MS 
19034             model of 'generating' paint events when the queue is empty.
19035             We use the new XQueueEvent.Paint subclass to store which windows
19036             need painting.
19037           - AddExpose now takes the x/y/width/height of the exposed area
19038             and inserts the window into the paint queue if not already there
19039           - InvalidateWholeWindow: Switched to use new AddExpose method
19040           - UpdateMessageQueue: Added which queue to monitor for paint events
19041           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
19042             the unlikely case nothing above handles it. We reset the expose
19043             pending states to get them off the queue.
19044           - GetMessage: Now pulls a paint event if no other events are in the
19045             queue
19046           - Invalidate: Switched to new AddExpose method
19047           - PeekMessage: Updated to understand pending paint events
19048           - UpdateWindow: Fixed logic bug. We were only updating if the window
19049             didn't need updating. Also switched to sending WM_PAINT directly,
19050             like MS does.
19051         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
19052           and random access Remove(). The random access is needed to handle
19053           UpdateWindow() where a WM_PAINT is sent directly without accessing
19054           the queue.
19055         * ScrollBar.cs: Added Update() calls to cause immediate updates to
19056           allow for better feedback when scrolling. Scrollbars are small and
19057           the immediate update should make it 'feel' more responsive without
19058           slowing things down. ScrollBar still needs it's invaliate logic
19059           updated to not always invalidate the whole bar on certain changes.
19060
19061 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19062
19063         * Control.cs:
19064         (BackColor): if the control does not support a transparent background,
19065         return the default backcolor when the parent backcolor is transparent.
19066
19067 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
19068
19069         * Application.cs: Updated to new StartLoop/GetMessage API
19070         * RichTextBox.cs: Provide some output on RTF parsing errors
19071         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
19072           new queue_id argument to GetMessage and PeekMessage to allow faster
19073           handling of per-thread queues in drivers.
19074         * Hwnd.cs: Added Queue tracking and property
19075         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
19076         * XEventQueue.cs: Added thread trackingA
19077         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
19078         * XplatUIX11.cs:
19079           - Implemented new per-thread queue
19080           - GetMessage: Fixed return/break behaviour on several cases. We were
19081             returning stale messages in some cases, instead of just processing
19082             the next message
19083
19084 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
19085
19086         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
19087
19088 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
19089
19090         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
19091           fixed off-by-one comparisons between Width/Height and Right/Bottom.
19092
19093 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
19094
19095         * PropertyGridView.cs: Fix drop down width.
19096
19097 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
19098
19099         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
19100           a mess in DrawToolBar, so I removed one of them.
19101
19102 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
19103
19104         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
19105           needed (clip). Otherwise we get artifacts.
19106
19107 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
19108
19109         * FixedSizeTextBox.cs: Added constructor to allow specifying which
19110           dimension is fixed
19111         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
19112           and switched FixedSizeTextBox to only be fixed vertical (#78116)
19113         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
19114           if it matches the scale base font (avoids unneeded scaling)
19115
19116 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
19117
19118         * X11DesktopColors.cs: One gtk_init_check should be enough
19119
19120 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
19121
19122         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
19123           match MS behaviour
19124
19125 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
19126
19127         * TextBoxBase.cs: 
19128           - Generate OnTextChanged for Backspace even if we're only deleting
19129             the current selection
19130           - When setting the Text property, only select all text if the
19131             control does not have focus when it is being set. Otherwise
19132             just place the cursor at the beginning of the control
19133
19134 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
19135
19136         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
19137           Added a little helper to draw PropertyGrid ToolBar with a different
19138           border and a different BackColor.
19139         * PropertyGrid.cs: Some background parts didn't get painted with the
19140           correct background color. Added a class that helps us to draw the
19141           correct border for PropertyGridView and a class that helps us to
19142           draw ToolBars with a different backcolor
19143         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
19144
19145 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
19146
19147         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
19148         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
19149
19150 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
19151
19152         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
19153           into the palette entries. Also, since we're working on a copy
19154           we needed to copy the palette back onto the bitmap.
19155         * Cursor.cs: Same fix as XplatUIWin32.cs.
19156
19157 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
19158
19159         * ImageListStreamer.cs: Need to read the var (or we're off)
19160
19161 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
19162
19163         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
19164           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
19165           TextBoxBase.cs: Unused var fixes
19166         * AxHost.cs: Small 2.0 fix
19167         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
19168           as it seems that is what at least Metacity expects. This will make
19169           icons show up on 64bit platforms. We still have some 64bit size
19170           issues, though, since the startup app window size still won't match.
19171
19172 2006-04-25  Mike Kestner  <mkestner@novell.com>
19173
19174         * *.cs: cleanup newly reported exception var unused warnings.
19175
19176 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
19177
19178         * ThemeWin32Classic.cs: Button image alignment now matches exactly
19179           ms
19180
19181 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
19182
19183         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
19184           image. The image position is always the same, no matter if the
19185           button is pressed or not.
19186
19187 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
19188
19189         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
19190           selection and set the correct filename for SaveFileDialog.
19191           Patch by Emery Conrad.
19192
19193 2006-04-24  Mike Kestner  <mkestner@novell.com>
19194
19195         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
19196         check for item.X outside the ClientRect instead of item.Y. Fixes
19197         #78151.
19198
19199 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19200
19201         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
19202         trust that value blindly and do some sanity check. Fixes bug #77814.
19203
19204 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19205
19206         * ImageListStreamer.cs: save the mask as a 1bpp image.
19207
19208 2006-04-21  Mike Kestner  <mkestner@novell.com>
19209
19210         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
19211         pass Checked and Indeterminate to the Theme Engine. Improve
19212         encapsulation with ListBox.
19213         * ListBox.cs: Keep a StringFormat instead of calculating it every item
19214         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
19215         nested types.  Move all CheckState functionality to CheckedListBox.
19216         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
19217         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
19218         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
19219         single base list. Fix scrollbar sizing and placement to mirror MS.
19220         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
19221         used.
19222         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
19223         for CheckedListBox by using new DrawItemState info.  Center the
19224         checkboxes on the items. Use new StringFormat property.
19225
19226 2006-04-18  Jackson Harper  <jackson@ximian.com>
19227
19228         * Form.cs: MdiChildren don't do default locations the same way as
19229         regular forms.  This prevents a crash when trying to position the
19230         mdi windows.
19231
19232 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
19233
19234         * PropertyGridTextBox.cs: Formatting, copyright
19235         * PropertiesTab.cs: Formatting
19236         * PropertyGrid.cs: Formatting
19237         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
19238           click toggling of values
19239           
19240 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
19241
19242         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
19243         * Control.cs (.ctor): verify_thread_handle is static, don't reset
19244           every time a control is created
19245         * Application.cs: Removed obsolete EnableRTLMirroring method
19246
19247 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
19248
19249         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
19250         SelectedIndex to -1. Fixes bug #78121.
19251
19252 2006-04-17  Jackson Harper  <jackson@ximian.com>
19253
19254         * Binding.cs: Handle null values for Current and BindingContext.
19255         This occurs when binding is a little delayed.
19256         * CurrencyManager.cs: return null for Current when there are no
19257         items in the list.
19258         - Hookup to the listchanged event on the DataView and update
19259         bindings when the list is changed.  This fixes late binding of
19260         controls.
19261
19262 2006-04-17  Jackson Harper  <jackson@ximian.com>
19263
19264         * X11Dnd.cs:
19265         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
19266         Ringenbach.
19267
19268 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
19269
19270         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
19271           place
19272         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
19273           with the correct ButtonState
19274
19275 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
19276
19277         * XplatUIX11.cs: Improved distinguishing between window types to
19278           tell the WM a type closer to what the app wants (Fixes #78107)
19279
19280 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
19281
19282         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
19283           GrabHandle
19284
19285 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
19286
19287         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
19288           drawing code to reflect the size grip changes
19289
19290 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19291
19292         * ImageListStreamer.cs: fix handling of the mask that follows the main
19293         bitmap when deserializing and serialize it properly. The generated mask
19294         should better be a 1bpp image, but I'll do that later.
19295
19296 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
19297
19298         * FileDialog.cs: Show something in the DirComboBox on *nix if the
19299           path doesn't fit into some of our Current.Places
19300
19301 2006-04-13  Jackson Harper  <jackson@ximian.com>
19302
19303         * ComboBox.cs: Use borders instead of drawing our own decorations,
19304         try to obey correct rules for heights.
19305         * Theme.cs:
19306         * ThemeNice.cs:
19307         * ThemeClearLooks.cs:
19308         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
19309         this is now handled by borders.
19310         - Remove unused DrawListBoxDecorationSize method.
19311         
19312 2006-04-13  Mike Kestner  <mkestner@novell.com>
19313
19314         * MenuAPI.cs: null guarding for the disbled click check fixes crash
19315         reported by Alex.
19316
19317 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
19318
19319         * ThemeWin32Classic.cs: 
19320           - Fixed CPDrawStringDisabled
19321           - Corrected drawing of disabled menu items
19322           - Fixed drawing of disabled radio buttons (bug #78095)
19323           - Draw check in a disabled CheckBox with color ControlDark 
19324
19325 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19326
19327         * Form.cs: Use the provided width when calculating the menu size;
19328           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
19329           and ClientSize.Width won't be updated yet
19330         * Application.cs: Use Visible instead of Show() to make form visible,
19331           this way we create the handle later and menusize is considered
19332
19333 2006-04-12  Mike Kestner  <mkestner@novell.com>
19334
19335         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
19336         reporting.
19337
19338 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19339
19340         * TextBox.cs: Implemented context menu
19341
19342 2006-04-12  Mike Kestner  <mkestner@novell.com>
19343
19344         * ListView.cs: implement box selection. fixes #77838.
19345         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
19346
19347 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
19348
19349         * XplatUIX11.cs: Added setting of window type when transient window
19350           is created (metacity would move it otherwise)
19351         * X11Structs.cs: Added WINDOW_TYPE atoms
19352         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
19353           background (the control is Opaque but still wants transparent
19354           backgrounds)
19355
19356 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19357
19358         * Control.cs: Added OnPaintBackgroundInternal to allow controls
19359           that set Opaque but don't mean it (like all ButtonBase-derived
19360           controls) to still draw their background
19361         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
19362           the background
19363
19364 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
19365
19366         * Control.cs (PaintControlBackground): Set the graphics object
19367           on our PaintEvent to null to prevent it from being disposed
19368           when the PaintEvent gets disposed
19369
19370 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
19371
19372         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
19373         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
19374
19375 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
19376
19377         * Control.cs: 
19378           - Added transparency check to BackColor property. Transparent
19379             backgrounds are only allowed if the control styles permit it
19380           - Added recursive painting of parent control background and
19381             foreground if a control with a transparent backcolor is drawn
19382             (Thanks to Tim Ringenback for providing his 'hack' as a base
19383              for this patch) Fixes #77985 and #78026.
19384           - Added Opaque style check before calling OnPaintBackground, no
19385             need to draw the background if the control is opaque
19386           - Removed ControlAccessibleObject owner variable (inherited from
19387             base, no need to define again)
19388           - Added some documentation links explaining the drawing events
19389             and styles
19390
19391 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
19392
19393         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
19394           that the affected control is the located at the left border of our
19395           parent (Fixes #77936)
19396
19397 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
19398
19399         * TextBoxBase.cs: When rendering disabled or readonly controls,
19400           draw the background with 'Control' instead of 'Window' color as
19401           long as the user hasn't specifically set a color
19402
19403 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
19404
19405         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
19406           since that won't be updated if the user types text (only if it's
19407           programatically set)
19408
19409 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
19410
19411         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
19412           layout changes do to app-triggered resizes will have the proper
19413           display rectangle for layout
19414
19415 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
19416
19417         * ThemeWin32Classic.cs:
19418           - Make use of the SystemBrushes and SystemPens wherever possible
19419           - Corrected some highlight colors
19420           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
19421             drawing
19422         * Theme.cs: Added Empty field to CPColor struct
19423
19424 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
19425
19426         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
19427           is displayed when calculating the display rectangle. Thanks to Mike
19428           for teaching me the err of my ways.
19429
19430 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
19431
19432         * ScrollableControl.cs:
19433           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
19434             (instead of 0,0) and we now return the real width/height instead of
19435             just the clientrectangle, adjusted for padding. The rectangle is
19436             now cached and created by the new CalculateDisplayRectangle method.
19437           - Created new CalculateDisplayRectange method, which basically does
19438             what get_DisplayRectangle() did originally, but now using the 
19439             right edge instead of DisplayRectangle to determine the size of
19440             our scrollbars
19441           - get_Canvas(): Fixed it to properly calculate canvas for 
19442             right/bottom controls which seem to be placed to the right/bottom
19443             of any controls that have a fixed location
19444           - Removed TODO that's taken care of
19445           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
19446             and SetDisplayRectLocation according to new MSDN2 docs
19447           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
19448             event when that is called, this is added for compatibility
19449           - ScrollControlIntoView(): Implemented.
19450           - Switched scrollbars to be implicit, they shouldn't be selectable
19451         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
19452           call it when the active control is set/changed
19453         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
19454         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
19455           implicit_control variable (used for native Win32 message generation)
19456         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
19457           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
19458         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
19459         * XplatUIStructs.cs: Added ScrollBarCommands enum
19460
19461 2006-04-10  Jackson Harper  <jackson@ximian.com>
19462
19463         * ButtonBase.cs:
19464         * CheckedListBox.cs:
19465         * ComboBox.cs:
19466         * DataGrid.cs:
19467         * DataGridView.cs:
19468         * Form.cs:
19469         * GroupBox.cs:
19470         * ListBox.cs:
19471         * PrintPreviewControl.cs:
19472         * ProgressBar.cs:
19473         * PropertyGrid.cs:
19474         * Splitter.cs:
19475         * StatusBar.cs:
19476         * TrackBar.cs:
19477         * UpDownBase.cs: Fixup base event overrides.
19478         
19479 2006-04-06  Mike Kestner  <mkestner@novell.com>
19480
19481         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
19482         all user-initiated value changes to min <= value <= max-thumbsz+1.
19483         (set_Value): check for vert/horiz when calculating new thumb position.
19484         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
19485         like MS does.
19486         (OnMouseMoveSB): refactor the thumb dragging code and refine
19487         invalidation logic to reduce flicker.
19488         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
19489         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
19490         (UpdateThumbPosition): small code readability cleanup
19491
19492 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
19493
19494         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
19495           different
19496
19497 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
19498
19499         * ThemeNice.cs: Use a better graphics effect when a button is pressed
19500
19501 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
19502
19503         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
19504         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
19505           This dramatically reduces the number of Pen.Dispose calls. 
19506           Where possible call ResPool methods only once instead of calling it
19507           over and over again (for example for the same color).
19508
19509 2006-04-06  Mike Kestner  <mkestner@novell.com>
19510
19511         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
19512         Also remove an unused private field on the collection. Fixes #77972.
19513
19514 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
19515
19516         * ThemeNice.cs: Added ToolBar drawing code
19517
19518 2006-04-06  Mike Kestner  <mkestner@novell.com>
19519
19520         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
19521         I'm assuming that means we need to look up the toplevel for the
19522         provided control. Fixes the crash trace in #77911 but exposes another
19523         crash in some strange reflection usage in NDocGui.
19524
19525 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
19526
19527         * ThemeNice.cs: Gave it a little silver touch and added Images
19528           method
19529         * FontDialog.cs: FontDialog is not resizable
19530         * FileDialg.cs: Added SizeGripStyle.Show
19531
19532 2006-04-05  Jackson Harper  <jackson@ximian.com>
19533
19534         * KeyboardLayouts.cs: Remove warning.
19535
19536 2006-04-05  Jackson Harper  <jackson@ximian.com>
19537
19538         * Control.cs: Enable OnPaintInternal so we can use it for drawing
19539         all of our controls instead of Paint +=.
19540         * ListBox.cs:
19541         * ListView.cs:
19542         * MenuAPI.cs:
19543         * MessageBox.cs:
19544         * NotifyIcon.cs:
19545         * ProgressBar.cs:
19546         * ScrollBar.cs:
19547         * Splitter.cs:
19548         * StatusBar.cs:
19549         * TabControl.cs:
19550         * TextBoxBase.cs:
19551         * ToolBar.cs:
19552         * TrackBar.cs:
19553         * UpDownBase.cs:
19554         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
19555         use OnPaintInternal. Remove Width/Height and Visible checks in
19556         paint handler, this is done at a higher level now.
19557         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
19558         * PaintEventArgs.cs: Add a handled flag so controls that don't
19559         want anymore painting after OnPaintInternal can make sure OnPaint
19560         isn't called.
19561
19562 2006-04-05  Mike Kestner  <mkestner@novell.com>
19563
19564         * Form.cs: fix the menu WndProc hacks to respect the native enabled
19565         state of the form, so that we don't process events when Modal dialogs
19566         are up. Fixes #77922.
19567
19568 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
19569
19570         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
19571           checking is done.
19572
19573 2006-04-05  Mike Kestner  <mkestner@novell.com>
19574
19575         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
19576
19577 2006-04-05  Mike Kestner  <mkestner@novell.com>
19578
19579         * ListView.cs (HeaderMouseMove): null guarding for the over column
19580         when setting up the drag_to_index.  Fixes #78015.
19581
19582 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
19583
19584         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
19585           in the taskbar. Transient windows seem to accomplish that.
19586
19587 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
19588
19589         * Form.cs:
19590           - Re-enabled CreateParams.X/Y code for FormStartPosition
19591           - Added code for manual placement when creating the Control
19592           - Incomplete patch to treat MDI forms differently when
19593             setting the ClientSizeCore. (Still need to figure out handling
19594             x/y coords there)
19595         * XplatUIX11.cs:
19596           - When we're explicitly setting the X/Y position of a non-Child
19597             window, let the WM know. Metacity really wants this.
19598
19599 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19600
19601         * ThemeNice.cs: Added CPDrawButton
19602
19603 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19604
19605         * ThemeNice.cs: Changed the color for focused buttons and activated
19606           the arrows for small scroll buttons.
19607
19608 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19609
19610         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
19611           anymore. Changed some method modifiers to protected (virtual)
19612         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
19613           changes
19614         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
19615           Updated drawing of menus, buttons and progressbars; added
19616           CPDrawBorder3D 
19617
19618 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19619
19620         * ImageListStreamer.cs: implemented serialization/deserialization
19621         of the images.
19622
19623 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
19624
19625         * ThemeWin32Classic.cs:
19626           - Removed all the DrawFrameControl stuff; CPDrawButton,
19627             CPDrawCheckBox and CPDrawRadioButton are now handled directly
19628             inside the methods
19629           - Updated and corrected the drawing code of CPDrawButton,
19630             CPDrawCheckBox and CPDrawRadioButton to better match ms
19631           - Updated theme checkbox and radiobutton code to use the CP*
19632             methods
19633
19634 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
19635
19636         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
19637           bug is fixed
19638
19639 2006-03-31  Jackson Harper  <jackson@ximian.com>
19640
19641         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
19642         sometimes.
19643         * UpDownBase.cs: Don't CreateGraphics manually, use a
19644         Refresh. Ideally we would invalidate the correct areas here.
19645
19646 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
19647
19648         * XplatUIX11.cs: 
19649           - We now track the mapping state of windows. If a window (or 
19650             one of it's parents) is not mapped we no longer permit
19651             WM_PAINT messages to be generated since we'd otherwise get 
19652             lots of BadMatch X errors. Jackson did all the work figuring
19653             out the problem.
19654           - Destroying the caret if the window it's contained in is 
19655             destroyed. Can't use regular DestroyCaret method since it
19656             might fall into a drawing function (trying to remove the
19657             caret) and with that generate new BadMatch errors. Again,
19658             Jackson tracked this down.
19659           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
19660             make sure we send the messages to all windows. (The old code
19661             would send the WM_DESTROY to the window, and then all child
19662             windows would be 'gone' because the WM_DESTROY handle lookup
19663             would no longer find the destroyed window)
19664         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
19665         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
19666
19667 2006-03-31  Jackson Harper  <jackson@ximian.com>
19668
19669         * ScrollableControl.cs: Dont recalc if we are not visible.
19670
19671 2006-03-31  Mike Kestner  <mkestner@novell.com>
19672
19673         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
19674         the visibility branch.
19675
19676 2006-03-31  Jackson Harper  <jackson@ximian.com>
19677
19678         * ScrollBar.cs: Cap values when incrementing/decrementing.
19679
19680 2006-03-31  Mike Kestner  <mkestner@novell.com>
19681
19682         * MenuAPI.cs: setup menu.tracker for popup/context menus.
19683         * ToolTip.cs: guard against timer expirations with no active control.
19684         Not sure why it happened.
19685
19686 2006-03-31  Mike Kestner  <mkestner@novell.com>
19687
19688         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
19689         text.
19690         * ToolTip.cs: Position the tooltip based on where the cursor is at
19691         popup time, not at MouseEnter time.  Add a Down state so that we don't
19692         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
19693         positioning offset. Lookup DisplaySize at positioning time, since it
19694         can theoretically change during invocation.
19695         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
19696         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
19697
19698 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19699
19700         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
19701           Fixes behaviour when the Text property of the box is String.Empty
19702
19703 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
19704
19705         * XplatUIX11.cs: Only send mouseleave for our client windows, not
19706           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
19707           a window)
19708
19709 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19710
19711         * FileDialog.cs: Visual enhancement for the popup buttons in 
19712           PopupButtonPanel
19713
19714 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19715
19716         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
19717           code
19718
19719 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
19720
19721         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
19722           highlighted menu items to match ms
19723
19724 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
19725
19726         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
19727
19728 2006-03-30  Mike Kestner  <mkestner@novell.com>
19729
19730         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
19731         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
19732         go active to account for HotLight to Selected transition.
19733         * MenuItem.cs: add internal Selected prop. Fill out the Status
19734         property by calculating it from item info. Add HotLight,
19735         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
19736
19737 2006-03-30  Mike Kestner  <mkestner@novell.com>
19738
19739         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
19740
19741 2006-03-29  Jackson Harper  <jackson@ximian.com>
19742
19743         * Form.cs: Implement TODO.
19744
19745 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
19746
19747         * PrintPreviewDialog.cs: Implemented missing methods and events; still
19748           missing proper dialog setup in the constructor
19749
19750 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
19751
19752         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
19753         * Control.cs:
19754           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
19755           - Fixed ResetBindings and removed TODO
19756           - Added check for cross-thread calls to get_Handle()
19757           - Added Marshaller attribute for set_Font to satisfy class status
19758         * FontDialog.cs: Removed TODOs that seemed implemented
19759         * UpDownBase.cs: Removed unneeded TODO and Fixme
19760         * MessageBox.cs: Implemented support for Default button and removed TODO
19761         * FileDialog.cs: Removed obsolete TODO
19762         * DomainUpDown.cs: Removed obsolete TODO
19763         * ButtonBase.cs: Removed obsolete TODO
19764         * XplatUIWin32.cs: Removed obsolete TODO
19765         * Form.cs:
19766           - Removed obsolete TODO
19767           - Calling CheckAcceptButton when the acceptbutton is changed to allow
19768             internal status updates
19769           - Making sure the active control is selected when the control is created
19770         * CurrencyManager.cs: Removed obsolete TODO
19771
19772 2006-03-29  Mike Kestner  <mkestner@novell.com>
19773
19774         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
19775         of PrintPreviewDialog and RichTextBox.
19776
19777 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
19778
19779         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
19780           DarkDark, Light and LightLight colors for a specific color
19781         * ThemeWin32Classic.cs:
19782           - Use Button drawing code to draw RadioButtons and CheckBoxes with
19783             Appearance = Button 
19784           - Make use of the new ResPool helper CPColor
19785           - Draw ProgressBar and StatusBar with correct 3D borders
19786
19787 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
19788
19789         * ColorDialog.cs: Return selected color. Fixes bug #77940.
19790
19791 2006-03-28  Mike Kestner  <mkestner@novell.com>
19792
19793         * ListView.cs: fix Icon layout to plan for scrollbar widths when
19794         calculating col/row counts.
19795
19796 2006-03-28  Mike Kestner  <mkestner@novell.com>
19797
19798         * ColumnHeader.cs:
19799         * ListView.cs:
19800         * ListViewItem.cs:
19801         * Menu.cs: 
19802         switch to explicit interface method implementation for some methods
19803         corcompare identifies as inconsistent with MS.
19804
19805 2006-03-28  Mike Kestner  <mkestner@novell.com>
19806
19807         * MainMenu.cs: 
19808         * Menu.cs:
19809         add a few missing methods from the class status output.
19810
19811 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
19812
19813         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
19814           correct.
19815
19816 2006-03-28  Mike Kestner  <mkestner@novell.com>
19817
19818         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
19819
19820 2006-03-27  Mike Kestner  <mkestner@novell.com>
19821
19822         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
19823         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
19824
19825 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
19826
19827         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
19828
19829 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19830
19831         * ThemeWin32Classic.cs:
19832           - GroupBox: Inserted a little gap between the text and the lines
19833             on the right side
19834           - Made the code in CPDrawBorder3D more readable
19835           - Corrected the drawing location of the up and down arrows in 
19836             CPDrawScrollButton
19837
19838 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19839
19840         * ControlPaint.cs: Corrected line widths in DrawBorder for
19841           ButtonBorderStyle Inset and Outset
19842
19843 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19844
19845         * ThemeWin32Classic.cs:
19846           - Rewrote the totally broken CPDrawBorder3D method. That was
19847             one of the main problems for the terrific ThemeWin32Classic
19848             look
19849           - Updated and corrected Button drawing
19850           - Correct the dimensions of the SizeGrip to match ms ones
19851           - Removed a small drawing glitch in DrawComboBoxEditDecorations
19852         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
19853           Border3DStyle.Sunken to match ms.
19854
19855 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19856
19857         * ThemeWin32Classic.cs: First small part of the "de-uglify
19858           ThemeWin32Classic" effort, SizeGrip
19859
19860 2006-03-24  Jackson Harper  <jackson@ximian.com>
19861
19862         * XplatUIX11.cs: Give a max idle time of one second, this matches
19863         MS and forces an Idle event every second when there are no other
19864         events in the queue.
19865
19866 2006-03-24  Mike Kestner  <mkestner@novell.com>
19867
19868         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
19869         * ListView.Item.cs: fix layout issues with null image lists and images
19870         smaller than checkbox size.
19871         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
19872         mode like MS does.  It's weird, but consistent.  ;-)
19873         Fixes #77890.
19874
19875 2006-03-24  Mike Kestner  <mkestner@novell.com>
19876
19877         * ListView.cs: Scroll wheel support for the item control.  Fixes
19878         #77839.
19879
19880 2006-03-23  Jackson Harper  <jackson@ximian.com>
19881
19882         * ScrollableControl.cs: Special case negative sized areas, not
19883         zero.
19884         * MonthCalendar.cs: Save the rect of the clicked date so we can
19885         use it for invalidation.
19886         - Try to cut down on the number of invalidates
19887         - Invalidate the rect the mouse is over and was over when moving
19888         the mouse, so we get the focus box following the cursor.
19889
19890 2006-03-23  Mike Kestner  <mkestner@novell.com>
19891
19892         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
19893         focus rectangle drawing. Fixes #77835.
19894
19895 2006-03-23  Mike Kestner  <mkestner@novell.com>
19896
19897         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
19898         the if and else if and reverting back to the original == check on the
19899         None conditional.
19900
19901 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
19902
19903         * FontDialog.cs: Update the example panel if the selected index of
19904           the fontListBox changes.
19905
19906 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
19907
19908         * FileDialog.cs: Make FileDialog remember which directory it was in
19909           last in the same execution.
19910
19911 2006-03-22  Mike Kestner  <mkestner@novell.com>
19912
19913         * FileDialog.cs: make the DropDownMenu on the toolbar display
19914         RadioChecks since they are mutually exclusive and that's what MS does.
19915
19916 2006-03-22  Mike Kestner  <mkestner@novell.com>
19917
19918         * Theme.cs: add Color param to CPDrawMenuGlyph.
19919         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
19920         checks and radio marks and arrows are visible on highlighted items.
19921         * ControlPaint.cs: update to use new Theme signature.
19922
19923 2006-03-22  Mike Kestner  <mkestner@novell.com>
19924
19925         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
19926         is active. Fixes #77870.
19927
19928 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
19929
19930         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
19931           to be focused/selected after startup
19932
19933 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
19934
19935         * ColorDialog.cs: 
19936           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
19937             CustomColors and ShowHelp properties
19938           - Some internal rewrites to get better results when using the
19939             ColorMatrix
19940
19941 2006-03-22  Mike Kestner  <mkestner@novell.com>
19942
19943         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
19944         HoverSelection.  Fixes #77836.
19945
19946 2006-03-22  Mike Kestner  <mkestner@novell.com>
19947
19948         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
19949         ToggleButtons.  (De)Sensitize the Back button around a stack count of
19950         1, not 0.  Update ButtonSize based on a pixel count of the win32
19951         control.  Adjust the toolbar size/location for new button size.
19952
19953 2006-03-22  Jackson Harper  <jackson@ximian.com>
19954
19955         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
19956         true.
19957         * ScrollBar.cs: When doing increments and decrements we need to
19958         set the Value property so that ValueChanged gets raised. A
19959         possible optimization here would be to make an internal SetValue
19960         that doesn't invalidate immediately.
19961         * ToolTip.cs: Tooltips get added to their container (when
19962         supplied) so they get disposed when the container is disposed.
19963         - Don't create tooltips for String.Empty. This prevents all these
19964         little 2-3 pixel windows from showing up when running nunit-gui
19965         and driving me mad.
19966         * Form.cs: Don't set topmost when setting the owner if the handles
19967         haven't been created yet.  The topmost set will happen when the
19968         handles are created.
19969
19970 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
19971
19972         * XplatUIX11.cs:
19973           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
19974           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
19975             visible (to allow them to recalculate their sizes)
19976
19977 2006-03-21  Mike Kestner  <mkestner@novell.com>
19978
19979         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
19980         methods. Removed a ton of redundant code.  Still not really happy with
19981         the border rendering, but I think that's mainly because of the
19982         ControlDarkDark being black instead of a dark grey. Depending on how 
19983         close we want to be, we might want to revisit those color choices.
19984         Among the new features added during the refactor were DropDownArrow
19985         pressed rendering, Disabled image rendering.  Proper flat appearance
19986         boundary rendering.  Removed the Divider and Wrapping dividers since I
19987         can't figure out any combination of themes and conditions to make the
19988         MS control draw a horizontal line on a toolbar despite what the
19989         Divider property docs indicate.
19990         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
19991         conditions and incorrect layout.  Updated to coding standard.
19992         * ToolBarButton.cs: refactored layout and positioning code from
19993         ToolBar to here.  Invalidate wherever possible instead of forcing
19994         redraws of the whole toolbar. 
19995         (Known remaining issues: explicit ButtonSize smaller than provided
19996         images.)
19997
19998 2006-03-21  Mike Kestner  <mkestner@novell.com>
19999
20000         * ContextMenu.cs (Show): use the position parameter instead of just
20001         showing at the MousePosition.
20002
20003 2006-03-21  Jackson Harper  <jackson@ximian.com>
20004
20005         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
20006         control handle this.
20007         * TreeNodeCollection.cs: If we are clearing the root node we need
20008         to reset top_node so calcs can still happen.
20009         * ThemeWin32Classic.cs: This is a Flags so we need to check
20010         properly.
20011         
20012 2006-03-21  Jackson Harper  <jackson@ximian.com>
20013
20014         * DataGrid.cs: Create columns when the binding context has been
20015         changed.
20016         * X11Structs.cs: Keysyms are uints.
20017         - Add size to fix build.
20018
20019 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
20020
20021         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
20022           XplatUIOSX.cs: 
20023           - Added ResetMouseHover method to allow controls to retrigger
20024             hovering if they need it more than once
20025           - Implemented MouseHoverTime and MouseHoverSize properties
20026         * Timer.cs: Start() must reset the interval
20027         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
20028           properties
20029
20030 2006-03-21  Jackson Harper  <jackson@ximian.com>
20031
20032         * X11Keyboard.cs: improved layout detection. Move the nonchar
20033         tables into this file.
20034         * KeyboardLayouts.cs: Move the tables into resource files.
20035
20036 2006-03-21  Mike Kestner  <mkestner@novell.com>
20037
20038         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
20039
20040 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
20041
20042         * Mime.cs: Various speed optimizations. Looking up mime types
20043           is now 2 times faster than before
20044
20045 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
20046
20047         * CreateParams.cs: Added internal menu field
20048         * Control.cs: 
20049           - Switched call order for UpdateBounds; now we always call
20050             the one that also takes ClientSize, and we're calculating the 
20051             client size via driver method in the others. The previous
20052             method of tracking client size by difference wasn't working
20053             for forms where even the starting client size wouldn't match
20054             the overall form size (due to borders) (Part of fix for #77729)
20055           - CreateParams(): Do not use parent.Handle unless the handle is
20056             already created. Causes havoc with Nexxia and throws off our
20057             creation of controls
20058         * XplatUIX11.cs:
20059           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
20060           - Switched handling of ConfigureNotify over to new PerformNCCalc 
20061             method (consolidates code)
20062           - Changed RequestNCRecalc to use new PerformNCCalc method
20063           - Added calls to RequestNCRecalc when menus and borders are changed
20064             to allow app to set NC size. (Part of fix for #77729) This matches
20065             when MS send a WM_NCRECALC on Win32 windows.
20066           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
20067             (Part of fix for #77729). This matches what MS does, they also
20068             send that message when the form is made visible.
20069           - XException.GetMessage: Improved usability of X errors by including
20070             a translation of the window into Hwnd and Control class
20071           - Improved debug info for window creation, reparenting and destruction
20072           - Created helper method WindowIsMapped() [Currently not used]
20073         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
20074         * Form.cs:
20075           - CreateParams: Now setting our menu on the new internal menu field
20076           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
20077             avoid calculating the same property twice
20078         * Hwnd.cs:
20079           - Improved usability of ToString() for debugging purposes
20080           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
20081             determine the height of the menu, instead of just the font. This
20082             required to also create a graphics context and to keep a bmp 
20083             around (for performance reasons)
20084
20085 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
20086
20087         * MenuAPI.cs: Added OnMouseUp method
20088         * Form.cs:
20089           - Now remembering the requested client size, avoids size errors
20090           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
20091             instead of base if the menu is active. This is required due to
20092             control now capturing and releasing on down/up and it would
20093             prematurely release our menu capture
20094
20095 2006-03-17  Jackson Harper  <jackson@ximian.com>
20096
20097         * KeyboardLayouts.cs: Add the czech layouts.
20098
20099 2006-03-16  Jackson Harper  <jackson@ximian.com>
20100
20101         * Control.cs: Use the viewport space when sizing not the controls
20102         client size, so things like ScrollableControl that effect the
20103         viewport size (when scrollbars are added) are computed correctly.
20104         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
20105         of ManagerEntrys.
20106         - Handle creating BindingManagers for null data sources.
20107         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
20108         source, otherwise when rows are added they are added to the 'fake'
20109         datasource and we will crash when trying to set the position in
20110         those rows.
20111         - Use Implicit scrollbars on the datagrid so they arent
20112         selectable.
20113         
20114 2006-03-16  Jackson Harper  <jackson@ximian.com>
20115
20116         * Binding.cs:
20117         * InternalWindowManager.cs:
20118         * MdiWindowManager.cs:
20119         * X11Keyboard.cs: I really want Mike to love me again (fix
20120         compiler warnings).
20121
20122 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
20123
20124         * DataGrid.cs:
20125           - OnMouseDown: Switch to editing mode when clicking on the cell
20126                          even if we're clicking on the cell that's currently 
20127                          selected
20128           - ProcessGridKey: Left/Right now wrap like MS.Net does
20129           - ProcessGridKey: Tab now knows to add a new row when tab is
20130                             pressed in the cell of the last column of the 
20131                             last row
20132           - ProcessGridKey: Enter now adds another row  if pressed in the last
20133                             row and selectes the new row, same column cell
20134           - ProcessGridKey: Home/End navigate columns, not rows, like 
20135                             originally implemented
20136           - Broke ProcessKeyPreview code out into an extra Internal method
20137             so it can be called from the edit code
20138         * DataGridTextBox.cs (ProcessKeyMessage):
20139           - Switched to accept Tab keypresses
20140           - Added F2 handling to allow jumping to the end of the edited cell
20141           - Added logic to allow moving caret left/right inside edited cell
20142             and making the edited cell jump when the caret hits cell borders
20143           - Tab and Enter are now passed to the datagrid after being handled
20144         * TextBoxBase.cs:
20145           - Removed capture code now that Control handles it
20146           - set_SelectionStart now ensures caret is visible
20147
20148 2006-03-16  Jackson Harper  <jackson@ximian.com>
20149
20150         * TrackBar.cs: Debackwards the increment/decrement for handling
20151         mouse clicks on the bar with vertical trackbars.
20152         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
20153         bottom to match MS.
20154
20155 2006-03-16  Mike Kestner  <mkestner@novell.com>
20156
20157         * ListView.cs: make shift/ctrl keyboard and mouse selection 
20158         consistent with the MS control. Fix a bug in
20159         SelectedListViewItemCollection.Clear that was pissing me off for the
20160         better part of a day because the collection was being altered
20161         underneath us as we walked the list.
20162
20163 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
20164
20165         * Control.cs: Not sure how we could miss this so long, but it seems
20166           that MS.Net has Capture set all the way from before calling 
20167           OnMouseDown through sending the mouse events until after
20168           OnMouseUp. This will fix DataGrid's selection being set to end
20169           at the location of the MouseUp.
20170
20171 2006-03-15  Jackson Harper  <jackson@ximian.com>
20172
20173         * BindingContext.cs: Check the binding after its added so that it
20174           can initialize the binding managers and hookup to events.
20175         * Binding.cs: Data members seem to sometimes include rows/cols in
20176           the format Row.Column we now take this into account.
20177           - Hookup to the position changed event so we can update the
20178           control when the position has changed in the data set.
20179         * CurrencyManager.cs: Take into account the row/col naming
20180           convention when creating dataset tables.
20181         * BindingContext.cs: Using a newer better way of storing
20182           datasource/datamember pairs.  Hopefully this better matches MS for
20183           looking up binding managers.
20184
20185
20186 2006-03-15  Jackson Harper  <jackson@ximian.com>
20187
20188         * BindingContext.cs: The currency manager needs the data member
20189         name, if the member is a data set we use the name to find the
20190         correct table.
20191         * CurrencyManager.cs: When creating the list prefer an IList over
20192         an IListSource.
20193         - Attempt to create a DataTable from a DataSet (TODO: might need
20194         some better error checking here, although MS doesn't seem to have much)
20195         - If we have a DataTable create a view and use it as our list.
20196
20197 2006-03-15  Mike Kestner  <mkestner@novell.com>
20198
20199         * ListView.cs: keep a matrix of the icon mode layout to facilitate
20200         keyboard navigation. Support Up/Down/Left/Right selection correctly
20201         for all 4 View modes.
20202         * ListViewItem.cs: add internal row/col fields for icon layouts.
20203
20204 2006-03-15  Jackson Harper  <jackson@ximian.com>
20205
20206         * TabControl.cs: Redraw the tabs when we resize so their newly
20207         calculated sizes are drawn on screen.
20208         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
20209         composite characters.
20210         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
20211         - filter events so that composite characters can be created
20212         patches by peter
20213         * X11Structs.cs: Add XIMProperties enum.
20214
20215 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
20216
20217         * Control.cs (BringToFront, SendToBack): Don't use window or handle
20218           unless it's created
20219
20220 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
20221
20222         * Control.cs (PerformLayout): We don't need to consider visiblity
20223           for anchoring, only for docking. This fixes 'whacky' alignment
20224           in listbox and other controls that use implicit scrollbars after
20225           the previous PerformLayout patch
20226         * ListBox.cs: Switched to use implicit scrollbars
20227           
20228 2006-03-14  Mike Kestner  <mkestner@novell.com>
20229
20230         * ToolBar.cs: 
20231         * VScrollBar.cs:
20232         - chain up the "new event" overrides to base and use
20233         OnEvent to raise them.  Part of fix for bug #76509.
20234
20235 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
20236
20237         * FileDialog.cs: Do not select an item in the parent directory
20238           on backspace
20239
20240 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
20241
20242         * Control.cs (PerformLayout): It would seem that we considered
20243           invisible windows for our layout. Not quite the right thing
20244           to do. Now we don't any longer, thereby fixing bug #76889.
20245
20246 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
20247
20248         * Control.cs (CanFocus): I goofed. A control can have focus 
20249           even though it's not selectable. Made it match MS docs.
20250
20251 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
20252
20253         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
20254           center by default (fixes #76895)
20255         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
20256           all uses of Border3DSides.All with the explicit ORd together
20257           Left|Right|Top|Bottom because I assume that nobody was aware 
20258           that All also implies a center fill. Most places I checked had
20259           a fill right above.
20260         * ProgressBarStyle.cs: Added
20261
20262 2006-03-13  Mike Kestner  <mkestner@novell.com>
20263
20264         * ListView.cs: fix breakage in drag shadow header positioning 
20265         from Peter's csc compilation fix.
20266
20267 2006-03-13  Mike Kestner  <mkestner@novell.com>
20268
20269         * ListView.cs: fix NRE produced by backspacing twice in a focused
20270         FileDialog.
20271
20272 2006-03-13  Mike Kestner  <mkestner@novell.com>
20273
20274         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
20275
20276 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
20277
20278         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
20279           be changed
20280         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
20281           the allowed size before making programmatic size changes
20282
20283 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
20284
20285         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
20286           set, metacity is broken and will still use the emty sizes in 
20287           the struct. (Fix for #77089)
20288
20289 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
20290
20291         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
20292           WindowExStyles and marked both enums as Flags
20293         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
20294           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
20295           to match WindowStyles split
20296         * XplatUIX11.cs:
20297           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
20298           - Updated to match WindowStyles split
20299         * XplatUIWin32.cs:
20300           - Fixed FosterParent creation, was using ExStyle on the Style field
20301             (This should help with Popup focus issues)
20302           - Updated to match WindowStyles split
20303
20304 2006-03-13  Jackson Harper  <jackson@ximian.com>
20305
20306         * MdiWindowManager.cs: Use the system menu height. Fixes some
20307         strange sizing issues.
20308
20309 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
20310
20311         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
20312         * TextBoxBase.cs:
20313           - Scroll to caret after inserting text (#77672)
20314           - Make scroll range one pixel higher, fixes off-by-one error (and
20315             makes underlines visible on the last line)
20316
20317 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
20318
20319         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
20320           the keyboard state from being stuck with keys in 'pressed' state when
20321           focus is switched away via keyboard
20322         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
20323           reset the keyboard if no X11 KeyUp events are expected to come
20324         * X11Structs.cs: Switched type of Visible to bool to match driver
20325
20326 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
20327
20328         * TextControl.cs:
20329           - Switched caret to be just 1 pixel wide, matches MS and looks less
20330             clunky
20331           - Moved caret display 1 pixel down from the top of the control
20332             to improve view
20333           - InsertCharAtCharet: Update the selection start if moving the caret
20334             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
20335           - No longer always creating the caret when the caret methods are
20336             called. Only the actual ShowCaret/HideCaret will do that now
20337           - Only setting caret visible if the owner control has focus
20338           - UpdateView: Added invalidation-shortcut logic for center and right 
20339             aligned text. Previously we'd update all according to the left
20340             logic which caused drawing errors. Also fixed height of invalidated
20341             areas, now properly invalidating the whole area (was off-by-one)
20342           - owner_HandleCreated: Always generate the document when the
20343             handle is created; this ensures that 
20344         * TextBoxBase.cs:
20345           - Fixed situation where caret would disappear under the right
20346             window border, also improved scrolling behaviour on left-
20347             aligned textboxes
20348           - Fixed right-aligned textboxes to have a border to the
20349             right instead of the caret being under the right border
20350         * XplatUIX11.cs:
20351           - Switched from 'nested' to simple visible/not visible tracking 
20352             for caret (part of fix for #77671)
20353           - No longer passing through translated FocusIn/FocusOut messages
20354             since we were notifying too often and the wrong windows. Instead
20355             we just notify our focussed window of receiving or loosing focus
20356         * XplatUIWin32.cs: Switched from 'nested' show/hide 
20357           counting for caret to simple visible yes/no behaviour (part of 
20358           fix for #77671)
20359
20360 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
20361
20362         * Mime.cs: Remove debug code...
20363
20364 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
20365
20366         * MimeGenerated.cs: Removed
20367         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
20368           and subclasses) from /usr/(local/)share/mime and
20369           $HOME/.local/share/mime.
20370
20371 2006-03-10  Jackson Harper  <jackson@ximian.com>
20372
20373         * MdiWindowManager.cs: Recalc the NC area when a window is
20374         maximized/restored so that the menu area is drawn on forms that
20375         don't have a menu.
20376
20377 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20378
20379         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20380           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
20381           us to force a WM_NCCALCRESIZE message being sent. This is needed
20382           for MDI maximizing.
20383
20384 2006-03-10  Jackson Harper  <jackson@ximian.com>
20385
20386         * Form.cs: We need to use the ActiveMenu when calculating menu
20387         height.
20388         - Fix nullref when the window manager hasn't been created yet.
20389         * Control.cs: Fix nullref when we try to bring a control to the
20390         front that has no parent.
20391         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
20392         height.
20393         - Add a dummy item to the maximized menu so it always has the
20394         correct height. Otherwise when there are no menus we don't get our
20395         icon and buttons.
20396         
20397
20398 2006-03-10  Jackson Harper  <jackson@ximian.com>
20399
20400         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
20401         stuff.
20402         * Form.cs: Make the window_state internal so the window managers
20403         can track it.
20404         - When an MDI child is maximized let its window manager create the
20405         main menu (so it can add its icon).
20406         - Notify the window managers of state changes
20407         - Let the window manager paint its buttons and handle button
20408         clicks on the menu when it is maximized.
20409         * InternalWindowManager.cs: Move the prev_bounds into the mdi
20410         window manager, since tool windows don't use it, only mdi windows.
20411         - Tell the main form that we don't want it to handle NCPAINT
20412         itself to avoid extra painting.
20413         - Handle clicks on a maximized windows menu.
20414         - Handle window state changes
20415         - Handle minimize/maximize clicks correctly by setting the window state.
20416         * MdiWindowManager.cs: Add an icon menu that (the menu you get
20417         when clicking on the forms icon).
20418         - New method to create a forms maximized menu. This is its normal
20419         menu + an icon.
20420         - Handle window state changes.
20421         - Handle sizing of maximized windows.  Maximized windows are just
20422         drawn bigger then the parent visible area. All controls are still
20423         there, they are just outside the visible area (this matches windows).
20424         * MdiClient.cs: No scrollbars when a child window is maximized.
20425         - Let the children windows figure out how big they should be when
20426         sizing maximized windows.
20427         - Implement a version of ArrangeIconicWindows somewhat similar to
20428         Windows version.  There are some little differences, but I don't
20429         think any app will rely on the layout of minimized mdi windows.
20430
20431 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20432
20433         * Padding.cs: Several fixes to allow compiling with csc 2.0
20434
20435 2006-03-09  Jackson Harper  <jackson@ximian.com>
20436
20437         * Menu.cs:
20438         * MenuItem.cs: Cheap hack so we can add items to the list without
20439         the events being raised.  This allows adding mdi items during
20440         drawing. TODO: Should probably find a better time to add the items.
20441
20442 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20443
20444         * ThemeWin32Classic.cs:
20445           - CheckBox_DrawText: Added logic to not wrap if not enough space
20446             is available (Fix for bug #77727)
20447           - RadioButton_DrawText: Added logic not to wrap if not enough
20448             space is available (Fix for bug #77727). Also removed some
20449             duplicate code, DrawString always drawing the regular text
20450             before hitting the if statement.
20451
20452 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
20453
20454         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
20455
20456 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20457
20458         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
20459         * ContainerControl.cs: Partial implementation of some 2.0 scaling
20460           methods. Moved the new 2.0 properties into alphabetical order with
20461           other properties and added MonoTODO tags
20462
20463 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20464
20465         * AutoScaleMode.cs: Added. Fix build.
20466
20467 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20468
20469         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
20470           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
20471           and was requiring premature handle creation for calls from above
20472         * Form.cs, Control.cs: Removed handle arguments from calls to
20473           CalculateClientRect()
20474
20475 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20476
20477         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
20478           drag_column.column_rect is MarshalByRef and can't be used that way
20479
20480 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20481
20482         * AxHost.cs: Added deserialization constructor for 
20483           AxHost+State (fixes 77743)
20484
20485 2006-03-09  Mike Kestner  <mkestner@novell.com>
20486
20487         * ListView.cs: 
20488         - Added column drag reordering for details view.
20489         - fixed behavior when mouse is dragged off column and
20490         AllowColumnReorder is false.
20491         * ColumnHeader.cs: clone the format too in Clone.
20492         * Theme.cs: add DrawListViewHeaderDragDetails method.
20493         * ThemeWin32Classic.cs:
20494         - impl new method for drawing drag column shadows and targets.
20495         - support column offset for details mode in DrawListViewItem.
20496
20497 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20498
20499         * TextControl.cs: Reset the char_count when the document is cleared
20500           (Fixes bug reported on mono-winforms mailing list)
20501
20502 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20503
20504         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
20505           of calling base we simply process the key ourselves, since both
20506           DefWindowProc and the handled method would set m.Result. 
20507           (Fixes #77732)
20508
20509 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20510
20511         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
20512           method also moves the window; instead implemented a copy of
20513           Control.ScaleCore (Part of fix for #77456)
20514         * TextBoxBase.cs: 
20515           - Created new CreateGraphicsInternal method to allow providing
20516             a graphics context when no handle is created without triggering
20517             handle creation. (Part of fix for #77456)
20518           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20519         * TextControl.cs: 
20520           - Switched Constructor to require TextBoxBase instead of Control (to
20521             allow uncast access to CreateGraphicsInternal)
20522           - Safeguarded use of owner.Handle property. No longer accessing it
20523             unless the handle is already created.
20524           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20525           - Now triggering a recalc when owning control becomes visible
20526         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
20527           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
20528           premature handle creation (Part of fix for #77456)
20529         * Control.cs:
20530           - We now only destroy our double-buffering buffers when the
20531             control is resized or disposed, but not when visibility
20532             changes. (The code even re-created them twice every time)
20533           - Now requiring a redraw of the buffer on visibility changes
20534             (fixes bug 77654 part 2)
20535           - Not passing OnParentVisibleChanged up unless the control
20536             is visible
20537           - CanFocus: Fixed to match MS documentation
20538           - Focus: Fixed to return actual focus state and to check if
20539             setting focus is legal before setting it
20540
20541 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
20542
20543         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
20544           when to draw focus rectangle by looking at parent focus and
20545           selected state instead. This fixes TabPages on Linux sometimes
20546           having none or multiple focus rectangles.
20547         * XplatUIX11.cs (SetFocus): 
20548           - Don't set the focus if the same window already has focus
20549           - Use SendMessage instead of PostMessage (like it's Win32
20550             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
20551             to match MS behaviour
20552         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
20553           are not selectable.
20554
20555 2006-03-07  Jackson Harper  <jackson@ximian.com>
20556
20557         * PictureBox.cs: Revert line I accidently committed last week.
20558
20559 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
20560
20561         * Control.cs: 
20562           - Added new IsRecreating and ParentIsRecreating properties to
20563             allow testing if RecreateHandle has been called on ourselves
20564             or one of our parents
20565           - WndProc(WM_DESTROY): If our control handle is being recreated
20566             we immediately need to create the handle when receiving the
20567             destroy, that way our child windows find a valid parent handle
20568             when they themselves are being recreated upon WM_DESTROY receipt
20569             (fix for bug #77654 part 1)
20570         * XplatUIX11.cs:
20571           - DestroyWindow: WM_DESTROY must be sent to our own window before
20572             notifying any child windows. MS documents that child windows
20573             are still valid when WM_DESTROY is received. (Control now relies on
20574             this behaviour)
20575           - Added some fine-grain debug options
20576
20577 2006-03-06  Jackson Harper  <jackson@ximian.com>
20578
20579         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
20580         box and base calculations off this.
20581         * MdiChildContext.cs:
20582         * MdiWindowManager.cs: Don't need to ensure scrollbars here
20583         anymore.
20584         
20585 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
20586
20587         * Splitter.cs: In situations where the affected control is added
20588           to the parent's control list after the splitter, we would not
20589           populate affected. Now we try populating it on mousedown, if
20590           it's not already set, and force it to be re-set whenever our
20591           parent changes.
20592
20593 2006-03-03  Matt Hargett  <matt@use.net>
20594
20595         * Control.cs: implement Control.Padding
20596         * Padding.cs: -Padding.All returns -1 when constructing with the
20597         implicit default ctor
20598         -Padding.ToString() matches MS.NET
20599         * ContainerControl.cs: implement
20600         ContainerControl.AutoScaleDimensions
20601         * ListControl.cs: implement ListControl.FormattingEnabled
20602         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
20603         * ButtonBase.cs:
20604         * TabPage.cs: Implement UseVisualStyleBackColor.
20605         * PictureBox.cs: Implement PictureBox.InitialImage.
20606
20607 2006-03-03  Mike Kestner  <mkestner@novell.com>
20608
20609         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
20610         event declarations to proxy to base event.
20611         * ListViewItem.cs: update to use ItemControl.
20612         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
20613         * ThemeWin32Classic.cs: update to new ListView theme API and fix
20614         column header label rendering for 0 width columns.
20615
20616 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
20617
20618         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
20619           that causes the control to be created. Fixes #77476.
20620
20621 2006-03-02  Jackson Harper  <jackson@ximian.com>
20622
20623         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
20624         expose_pending.
20625
20626 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
20627
20628         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
20629           passed in for the EventArgs (fixes #77690)
20630
20631 2006-03-01  Jackson Harper  <jackson@ximian.com>
20632
20633         * ScrollBar.cs: Refresh afterbeing resized.
20634
20635 2006-02-28  Mike Kestner  <mkestner@novell.com>
20636
20637         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
20638         Clean up a tracker compile warning.
20639         * MenuItem.cs: add internal PerformPopup method.
20640         [Fixes #77457]
20641
20642 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
20643
20644         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
20645           implicit expose) when the text is set to null
20646
20647 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
20648
20649         * RichTextBox.cs (FlushText): When newline is true, we always
20650           need to split the line, even if no text is on it and we may
20651           never eat newlines. (Fixes #77669)
20652
20653 2006-02-28  Mike Kestner  <mkestner@novell.com>
20654
20655         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
20656         and set Selected instead.
20657         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
20658         collections.
20659
20660 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
20661
20662         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
20663
20664 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
20665
20666         * FontDialog.cs:
20667           - Got rid of the panel. All controls are now directly added to
20668             the dialog form
20669           - It is now possible to set a font with the Font property
20670           - MinSize and MaxSize property do now what they should
20671           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
20672           - Searching and selecting a font with the font textbox works now,
20673             the same applies to the style and size textbox
20674           - Draw the correct 3D border in the example panel
20675           - Fixed a little mem leak (unused fonts didn't get disposed)
20676           - Many other internal updates/rewrites...
20677           - Fix typo
20678
20679 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
20680
20681         * TextControl.cs: 
20682           - InsertRTFFromStream: Added 'number of characters inserted' argument
20683           - set_SelectedRTF: Now using the number of characters to calculate
20684             the new location for the selection and cursor (x/y cannot be used
20685             due to potentially already wrapped text)
20686
20687 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
20688
20689         * TextControl.cs: Added property and implemented means to allow 
20690           disabling recalculation of a document (can be used to speed up
20691           multiple inserts and is needed to make RTF inserts predictable, see
20692           bug #77659)
20693         * RichTextBox.cs: Using the new NoRecalc property of Document to
20694           keep x/y insert locations predictable. Also makes it faster inserting
20695           large chunks of RTF
20696
20697 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
20698
20699         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
20700           it's easier for a child control to handle the other messages without
20701           having to duplicate the special functionality
20702         * TextBoxBase.cs
20703           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
20704             code to handle processing the key ourselves, in order to get 
20705             access to the result of KeyEventArgs.Handled. We now only call 
20706             ProcessKey if they key hasn't been handled already. Fixes #77526.
20707           - set_Text: If null or empty string is given, just clear the 
20708             document. Fixes part of #77526
20709
20710 2006-02-27  Jackson Harper  <jackson@ximian.com>
20711
20712         * SizeGrip.cs: Paint the background color before painting the grip
20713         so things look right.
20714         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
20715
20716 2006-02-27  Mike Kestner  <mkestner@novell.com>
20717
20718         * ListView.cs:
20719           - Restructure layout and invalidation model to remove a ton of
20720           flicker from the control and speed up performance in general.
20721           - Add manual column resize, flickers like crazy, but I already have
20722           some ideas on how I'll fix that. (#76822)
20723           - Merge the three Icon-based views into a single layout method.
20724           - Move item selection interaction logic from the item since 
20725           interaction with the collections is more appropriate to the view.
20726           - Deselection on non-item clicks.
20727         * ListViewItem.cs:
20728           - Encapsulate most of the layout. Add some internal props to trigger
20729           layout.  Move to a model where Items invalidate themselves instead
20730           of just invalidating the whole control every time something changes.
20731           - Invalidate on Text/Caption changes.
20732           - switch to an offset based layout model to avoid having to absolute
20733           position every element on item moves.
20734           - correct checkbox layout to conform to MS layout.
20735         * ThemeWin32Classic.cs:
20736           - refactor some column header drawing code.
20737           - fix string justification for column headers (#76821)
20738           - make SmallIcon labels top justified for compat with MS impl.
20739         * ThemeClearlooks.cs:
20740           - adjust to new ListViewItem internal checkbox bounds api.
20741
20742 2006-02-27  Jackson Harper  <jackson@ximian.com>
20743
20744         * Control.cs:  Change where implicit controls fall in the zorder.
20745         They are now on top of all children.
20746         - Synced AddImplicit code with Add
20747         - Removed unused enumerator.
20748         * SizeGrip.cs: Remove the TODO as its been TODONE.
20749
20750 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
20751
20752         * TextControl.cs(Insert): Combine the last lines unless the insertion
20753           string ends with \n\n, otherwise we leave one line too many (Fixes
20754           something I noticed with the testapp for #77526; the bug itself was
20755           already fixed in the previous checkin)
20756
20757 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
20758
20759         * RichTextBox.cs:
20760           - SelectionColor and SelectionFont methods no longer set absolute
20761             styles. Instead, the keep font or color respectively (This 
20762             resolves a long-standing FIXME in the code)
20763           - When flushing RTF text, the insert code now considers text trailing
20764             behind the insertion point (Fixes the bug where when replacing
20765             the selected text via SelectedRTF the remainder of the line behind 
20766             the selection would stay on the first insertion line)
20767         * TextBoxBase.cs:
20768           - AppendText now updates the selection points after inserting text
20769           - AppendText now ensures that the last tag (sometimes 0-length) of
20770             the document is used for the style information (Fixes part of 
20771             bug #77220)
20772         * TextControl.cs:
20773           - Created new FontDefiniton class to allow describing partial style
20774             changes
20775           - StreamLine() now takes a lines argument, to allow it to decide
20776             whether an encountered zero-length tag is the last in the document
20777             (which must be kept to not loose the font/color contained in it,
20778             for later appends)
20779           - Created Combine() and Split() methods for Marker structs, to 
20780             support marker updates due to reformatted documents (soft line
20781             wraps)
20782           - Implemented Document.CaretTag setter
20783           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
20784             of the last line (Not the cause, but also exposed by bug #77220)
20785           - Added LineTag argument to InsertString method, to allow callers
20786             to force a certain tag to be used (required to force use of the
20787             trailing zero-length tag of a document)
20788           - Now updating markers in Combine(), to avoid stale tag markers
20789           - Added some method descriptions to aid maintenance
20790           - Implemented new FormatText concept, allowing additive/subtractive
20791             formatting by only specifying the components that are to be 
20792             changed. This was needed for resolving the RTB.SelectedColor/
20793             RTB.SelectedFont fixmes
20794           - Added Break() support method to allow breaking up linetags (used
20795             for partial formatting)
20796           - Added GenerateTextFormat() method. It is used for partial 
20797             formatting and allows to generate a full font/color from given
20798             attributes and an existing tag.
20799
20800 2006-02-26  Jackson Harper  <jackson@ximian.com>
20801
20802         * XplatUIX11.cs:  Use the correct caption height.
20803         - Translate hittest coordinates to screen coords to match MS.
20804         * XplatUIWin32.cs: When we create MDI windows we need to reset
20805         some of the style flags, so we get a nice blank window, and can
20806         draw all the decorations ourselves.
20807         - Set a clipping rectangle on the non client paint event, the
20808         window manager drawing code needs one.
20809         * Form.cs: The window manager needs to know when the window state
20810         has been updated.
20811         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
20812         don't need to factor in border and title sizes in these
20813         methods. TODO: Remove the args and fix the call points.
20814         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
20815         properly.
20816         - Let the driver set the cursors.
20817         - Improve active window handling
20818         - Correct sizes for title bars and buttons.
20819         - Match MS drawing better
20820         * MdiWindowManager.cs: We don't need to handle border style
20821         updates specially anymore.
20822         - Check for scrollbars when windows are done moving
20823         - Handle Active properly.
20824         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
20825         correctly. I am spewing the exception though, so we don't hide the
20826         bugs.
20827         
20828 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
20829
20830         * DataGridViewRowPostPaintEventArgs.cs,
20831           DataGridViewCellPaintingEventArgs.cs,
20832           DataGridViewRowCollection.cs,
20833           DataGridViewRowPrePaintEventArgs.cs,
20834           DataGridViewCell.cs: Clear a few warnings and implement a few
20835           exceptions that should be thrown.
20836
20837 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
20838
20839         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
20840           'inheriting' our parent's (non-default) cursor. (Part of
20841            the fix for #77479)
20842
20843 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
20844
20845         * XplatUIX11.cs: Fixed cast to make csc happy
20846
20847 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
20848
20849         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
20850           it's for the client area (part of fix for #77479 and needed
20851           for MDI window cursor handling)
20852         * XplatUIX11.cs
20853           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
20854             the appropriate default cursors and also passing the message
20855             up the parent chain 
20856           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
20857             for non-client areas
20858
20859 2006-02-15  Jackson Harper  <jackson@ximian.com>
20860
20861         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
20862         is a real MDI window
20863
20864 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
20865
20866         * X11DesktopColors.cs: Instead of checking the desktop session
20867           string for "KDE" check if it starts with "KDE"
20868
20869 2006-02-10  Jackson Harper  <jackson@ximian.com>
20870
20871         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
20872         systems).
20873
20874 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
20875
20876         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
20877           errors
20878         * ColorDialog.cs:
20879           - Got rid of the panel. All controls are now directly added to
20880             the dialog form
20881           - Changed to mono coding style
20882
20883 2006-02-10  Jackson Harper  <jackson@ximian.com>
20884
20885         * InternalWindowManager.cs: We don't need the set visibility to
20886         false hack anymore now that peter has written beautiful shutdown
20887         code.
20888
20889 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
20890
20891         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
20892           where already explicitly destroyed
20893
20894 2006-02-10  Jackson Harper  <jackson@ximian.com>
20895
20896         * MdiClient.cs: Handle the case where windows are too high or to
20897         the left and we need scrollbars.
20898
20899 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
20900
20901         * MimeIcon.cs: Added some icons
20902         * FileDialog.cs:
20903           - Fixed bug #77477
20904           - Got rid of the panel. All controls are now directly added to
20905             the dialog form
20906           - Changed to mono coding style
20907           - On Linux "My Computer" and "My Network" will now show some
20908             more usefull information. A new class, MasterMount, gathers
20909             this information from /proc/mount. Updated MWFFileView to make
20910             use of this information
20911           - Fixed a bug that caused FileDialog to crash when
20912             ".recently_used" file had a zero size
20913           - FilterIndex does now what it should
20914           - Some Refactoring
20915         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
20916             FileDialog changes
20917
20918 2006-02-09  Jackson Harper  <jackson@ximian.com>
20919
20920         * ComboBox.cs: Don't touch if null.
20921
20922 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
20923
20924         * Cursor.cs: 64bit safeness fix
20925         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
20926
20927 2006-02-09  Jackson Harper  <jackson@ximian.com>
20928
20929         * Form.cs: If a form is made into an MDI form update the styles so
20930         all the props can get set correctly.
20931         - Kill the mdi_container when we dont need it anymore.
20932         * InternalWindowManager.cs: Add missing NOT
20933
20934 2006-02-08  Jackson Harper  <jackson@ximian.com>
20935
20936         * InternalWindowManager.cs: Respek clipping when drawing MDi
20937         decorations.
20938
20939 2006-02-08  Jackson Harper  <jackson@ximian.com>
20940
20941         * Hwnd.cs: Add bits to track non client expose events.
20942         * XplatUIX11.cs: Track non client expose events on the hwnd. This
20943         gives us a proper invalid rect and will allow for some nice
20944         optimizations with NC client drawing
20945         - MDI windows are children windows, so move their style handling
20946         into the child window block.
20947         * InternalWindowManager.cs: Remove a state reset that was
20948         getting invoked at the wrong time. Fixes managed windows getting
20949         into a 'stuck' captured state.
20950
20951 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
20952
20953         * TextControl.cs (Document.ctor): Now initializing 
20954           selection_anchor. Fixes #77493
20955
20956 2006-02-07  Jackson Harper  <jackson@ximian.com>
20957
20958         * TrackBar.cs: The increment/decrements were backwards.
20959
20960 2006-02-07  Mike Kestner  <mkestner@novell.com>
20961
20962         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
20963         to the instance itself.
20964
20965 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
20966
20967         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
20968           on ulongs and pointers, the size differs between 32bit and 64bit
20969           systems. 
20970
20971 2006-02-07  Mike Kestner  <mkestner@novell.com>
20972
20973         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
20974         for 64 bit platforms to work around a metacity bug. 
20975
20976 2006-02-07  Jackson Harper  <jackson@ximian.com>
20977
20978         * TrackBar.cs: Process the input keys we need, and hookup to
20979         KeyDown instead of using WndProc, so we get key messages.
20980
20981 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
20982
20983         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
20984           machine we're on. 
20985         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
20986           we need to translate the XdndVersion atoms array before sending it
20987
20988 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
20989
20990         * XplatUIX11.cs: 
20991           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
20992             number of bits for the property, not the number of bytes. The
20993             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
20994             but would not crash since it specified 8 bits instead of 4 bits)
20995           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
20996             defined as XID -> long in the C headers)
20997           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
20998             references since those are now IntPtr to begin with
20999           - Switched all Atom.XXX 'int' casts to IntPtr casts
21000           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
21001           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
21002           - Added XChangeActivePointerGrab DllImport (for X11DnD)
21003         * X11Structs.cs:
21004           - Changed 'int' type for Atoms in XEvent structures to IntPtr
21005           - Changed atom in HoverStruct to be IntPtr
21006         * X11DnD.cs:
21007           - Removed local DllImports, switched code to use those from XplatUIX11
21008           - Removed/fixed casts related to the switch of Atom to be a IntPtr
21009
21010 2006-02-06  Mike Kestner  <mkestner@novell.com>
21011
21012         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
21013         method signatures in the import region.  There may still be some
21014         lingering struct marshaling issues, as I didn't drill down into those.
21015         Yet.
21016
21017 2006-02-06  Jackson Harper  <jackson@ximian.com>
21018
21019         * ComboBox.cs: Dont manually set the top_item, this is computed
21020         when the scrollbar position is set.
21021
21022 2006-02-06  Mike Kestner  <mkestner@novell.com>
21023
21024         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
21025         startup crashes on amd64.  There's other fixes needed.  All pinvoke
21026         usage of Atom needs to be mapped to IntPtr for example.  And there are
21027         likely other int/long issues to be addressed.
21028
21029 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
21030
21031         * FileDialog.cs: One more...
21032
21033 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
21034
21035         * FileDialog.cs: Next try
21036
21037 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
21038
21039         * FileDialog.cs: First part of fix for #77464
21040
21041 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
21042
21043         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
21044           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
21045           AcceptButton border drawing.
21046
21047 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
21048
21049         * Form.cs: Moved positioning of form after auto scaling is applied,
21050           otherwise it would possibly use wrong form size.
21051
21052 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
21053
21054         * Control.cs (RecreateHandle): No need to re-create any child
21055           controls, the child windows will get destroyed automatically by
21056           the windowing system or driver, and re-created when the handle
21057           is being accessed the first time. Fixes #77456
21058         * Form.cs: No longer setting the form to closing if the handle is 
21059           being recreated. This seems like the right thing to do, don't
21060           have a bug or testcase for this, though.
21061
21062 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
21063
21064         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
21065           controls to avoid unwanted side effects
21066
21067 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
21068
21069         * Control.cs: 
21070           - ScaleCore needs to scale the bounds, not the ClientSize of the 
21071             control. Fixes #77416.
21072           - DefaultSize is 0,0 for control
21073         * TextBoxBase.cs: 
21074           - DefaultSize is 100, 20
21075           - SetBoundsCore: Now enforcing the height, no matter if the provided
21076             height is more or less than the preferred one, as long as AutoSize
21077             is on
21078         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
21079
21080 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
21081
21082         * Control.cs:
21083           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
21084             call unless both performLayout is true *and* we have a pending
21085             layout change
21086           - ResumeLayout: MS does not completely nest Suspend and Resume,
21087             they bottom out at 0, fixed our code to match that.
21088           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
21089             SetBoundsCore, we were updating even when we shouldn't. This fixes
21090             swf-anchors mis-anchoring when resizing the app fast and lots.
21091           - UpdateDistances: Now only setting the left and top distance if 
21092             we have a parent and are not suspended, this is based on
21093             a suggestion by Don Edvaldson in bug #77355.
21094           - OnVisibleChanged: Fixed logic when to create the control. We may
21095             not create the control if we have no parent or if it's not visible;
21096             switched to using Visible property instead of is_visible field 
21097             since the property also considers parent states. This fixes a bug
21098             when starting Paint.Net
21099
21100 2006-02-02  Jackson Harper  <jackson@ximian.com>
21101
21102         * Form.cs: If the forms handle hasn't been created yet don't call
21103         into xplatui to make it top most, just set the topmost flag on the
21104         form in CreateParams
21105         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
21106
21107 2006-02-01  Jackson Harper  <jackson@ximian.com>
21108
21109         * ScrollableControl.cs: Refactored the Recalculate method a
21110         little, this wasn't handling all the variants of bottom and right
21111         bars needed to be added and added/removed based on their
21112         counterparts being added/removed (which changes the drawable
21113         size). Also we special case client widths and heights of 0 and
21114         don't add the scrollbar for those.
21115
21116 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
21117
21118         * XplatUIX11.cs: 
21119           - Added method to get AbsoluteGeometry(); currently unused, but might
21120             be used in the future, if we try again to figure out toplevel
21121             coordinates with some more crappy window managers
21122           - Added FrameExtents() method to retrieve the WM set decoration size
21123           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
21124             to deal with at least KDE, FVWM and metacity (Fixes #77092)
21125         * Hwnd.cs: 
21126           - Added whacky_wm tracking var for metacity
21127           - Added logic to have default menu height if the actual menu height
21128             has not yet been calculated (part of fix for #77426)
21129         * Form.cs: Keep track whether client size has been set and re-set 
21130           it if a menu is added/removed afterwards (Fixes #77426)
21131
21132 2006-01-31  Jackson Harper  <jackson@ximian.com>
21133
21134         * Control.cs: When a new Site is set on the component attempt to
21135         pull the AmbientProperties from it.
21136
21137 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
21138
21139         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
21140           in the background of the owning form. Fixes #77332
21141
21142 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
21143
21144         * MimeIcon.cs: Fix for #77409
21145
21146 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
21147
21148         * XplatUIX11GTK.cs: Initial import
21149
21150 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
21151
21152         * FixedSizeTextBox: fixes class signature
21153
21154 2006-01-30  Jackson Harper  <jackson@ximian.com>
21155
21156         * FixedSizeTextBox.cs: New internal class that represents a
21157         textBox that will not be scaled.
21158         * TreeView.cs:
21159         * ComboBox.cs:
21160         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
21161         standard TextBox.
21162                 
21163 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
21164
21165         * XplatUIX11.cs: Retrieve default screen number instead of
21166           assuming 0. Attempted fix for #77318
21167
21168 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
21169
21170         * XplatUIWin32.cs: 
21171           - GetWindowPos: When a window is parented by FosterParent, use 
21172             the desktop instead of FosterParent as the base to get coordinates
21173           - CreateWindow: Don't make FosterParent the parent window for Popups
21174             if we don't want a taskbar entry, Popups automatically don't get one
21175         * Hwnd.cs: Need to call remove to actually remove the key from the
21176           hash table
21177
21178 2006-01-30  Mike Kestner  <mkestner@novell.com>
21179
21180         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
21181
21182 2006-01-30  Jackson Harper  <jackson@ximian.com>
21183
21184         * TreeView.cs:
21185         * TreeNode.cs: Raise events no matter how the treenode is
21186         checked. Patch by Don Edvalson.
21187
21188 2006-01-30  Jackson Harper  <jackson@ximian.com>
21189
21190         * TreeNode.cs: Signature fix.
21191
21192 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
21193
21194         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
21195
21196 2006-01-20  Mike Kestner  <mkestner@novell.com>
21197
21198         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
21199         event forwarding when menus are active.
21200         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
21201         Most of the patch is pdb's with a little rework.
21202
21203 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
21204
21205         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
21206           Removed GetMenuDC and ReleaseMenuDC methods; replaced
21207           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
21208         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
21209         * InternalWindowManager.cs: Added use of PaintEventStart/End to
21210           handling of WM_NCPAINT message, now passing the PaintEventArgs to
21211           the PaintWindowDecorations method
21212         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
21213         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
21214         * MenuAPI.cs: Made tracker window invisible
21215         * XplatUIWin32.cs:
21216           - Removed GetMenuDC and ReleaseMenuDC methods
21217           - Implemented the client=false path for PaintEventStart and
21218             PaintEventEnd
21219
21220 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
21221
21222         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
21223         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
21224           styles
21225         * Form.cs: 
21226           - MaximizeBox, MinimizeBox: Recreate the handle when setting
21227             the style
21228           - CreateParams: Reworked the styles to match MS look'n'feel,
21229             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
21230             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
21231
21232 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
21233
21234         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
21235           window is not mapped, since otherwise every form that's being 
21236           created is considered minimized, which is wrong.
21237         * Form.cs: Catching the exception and returning our internal value
21238           instead
21239
21240 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
21241
21242         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
21243           SetWindowMinMax() to have means to tell the driver about the minimum,
21244           maximum and maximized state window sizes. (Part of the fix for #76485)
21245         * Form.cs:
21246           - Implemented tracking of minimum and maximum window size, now calling
21247             new SetWindowMinMax() driver method to tell the driver (Part of the
21248             fix for #76485)
21249           - Finished handling of WM_GETMINMAXINFO method, now setting all values
21250             (Completes fix for #76485)
21251           - Calling new SetWindowMinMax driver method when the handle for a 
21252             form is created, to make sure the driver knows about it even if
21253             the values have been set before the window was created
21254           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
21255             to avoid messing up our anchoring calculations (partial fix
21256             for #77355)
21257         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
21258         * XplatUIX11.cs:
21259           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
21260           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
21261             (and presumably other freedesktop.org compliant WMs). Left the
21262             assumption unmapped=minimized, needed for SetVisible to work.
21263           - Now setting the window state when creating windows
21264           - Fixed SetVisible to consider/set the window state when mapping
21265             a Form. We cannot set the state before it's mapped, and we cannot
21266             use Form.WindowState once it's mapped (since it would ask the
21267             driver and get 'normal'. Therefore, we grab the state before
21268             mapping, map, and then set state.
21269           - Implmemented SetWindowMinMax method; Metacity does not seem to
21270             honor the ZoomHints, though.
21271         * XplatUIWin32.cs:
21272           - Removed MINMAXINFO (moved to XplatUIStructs)
21273           - Added SetWindowMinMax stub (on Win32 the only way to set that
21274             information is in response to the WM_GETMINMAXINFO message, which
21275             is handled in Form.cs)
21276           - Added logic to SetVisible to set the proper window state when a 
21277             form is made visible (fixes #75720)
21278
21279 2006-01-26  Jackson Harper  <jackson@ximian.com>
21280
21281         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
21282         same way we handle them with Invoke.
21283
21284 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
21285
21286         * Form.cs:
21287           - Added tracking of window state so CreateParams can return
21288             the appropriate style
21289           - Moved setting of WS_CAPTION style in CreateParams to allow
21290             styles without caption
21291         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
21292           control if the TextBox property is accessed. Fixes #77345
21293         * Control.cs:
21294           - get_Created: now uses is_disposed and is_created to determine
21295             return value (suggested by Jackson)
21296           - CreateHandle: No longer exits if the handle is being recreated
21297           - RecreateHandle: If the handle is not yet created call the 
21298             appropriate method to create either control or handle. If the
21299             control is already created CreateHandle will simply exit instead
21300             of just creating the handle
21301         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
21302           now SendMessage WM_DESTROY directly to the control when DestroyWindow
21303           is called.
21304         * XplatUIX11.cs: 
21305           - When DestroyWindow is called, instead of waiting for the 
21306             DestroyNotification from X11, we directly post it to the WndProc
21307             and immediately dispose the hwnd object.
21308             Same applies to DestroyChildWindows, and this obsoletes the
21309             expose_pending tracking. Contrary to Win32 behaviour we destroy our
21310             child windows before our own, to avoid X11 errors.
21311           - Removed the direct sending of WM_PAINT on UpdateWindow
21312         * XplatUIWin32.cs:
21313           - Reworked DoEvents and GetMessage to allow access to internal queue
21314             even when trying non-blocking access to the queue.  Fixes #77335. 
21315             Based on a patch suggestion by Don Edvalson. The new private
21316             GetMessage can now also be used as a backend for a PeekMessage
21317             frontend version.
21318         * XplatUI.cs: Improved debug output for CreateWindow
21319
21320 2006-01-25  Jackson Harper  <jackson@ximian.com>
21321
21322         * Help.cs: Allow param to be null. Patch by Don Edvalson.
21323
21324 2006-01-24  Jackson Harper  <jackson@ximian.com>
21325
21326         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
21327         when we have a MaxDropItems lower then the selected index.
21328
21329 2006-01-24  Jackson Harper  <jackson@ximian.com>
21330
21331         * Control.cs: Don't allow selection of non visible controls, allow
21332         selection of controls without parents.
21333
21334 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
21335
21336         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
21337         * DataGridDrawingLogic.cs: Add editing row only when is necessary
21338
21339 2006-01-23  Jackson Harper  <jackson@ximian.com>
21340
21341         * UpDownBase.cs: Make the textbox handle all the selection and
21342         tabbing. This fixes tabing to updown controls.
21343
21344 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
21345
21346         * TextBoxBase.cs: fixes exception thown the object was null
21347
21348 2006-01-23  Jackson Harper  <jackson@ximian.com>
21349
21350         * ButtonBase.cs: Just use the base CreateParams. They set
21351         visibility and enabled correctly.
21352         * ComboBox.cs:
21353         * TrackBar.cs:
21354         * MonthCalendar.cs: Lets let the base set as much of the
21355         createparams as possible so we don't have duplicate code all over
21356         the place.
21357
21358 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
21359
21360         * ThemeGtk.cs: Added TrackBar and some experimental code to
21361           get double buffering back
21362
21363 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
21364
21365         * DataGrid.cs: Allows row number set internally higher than the last
21366         when creating a new row. Restores the editing functionality.
21367
21368 2006-01-20  Mike Kestner  <mkestner@novell.com>
21369
21370         * MimeIcon.cs: delay Image creation until the icons are accessed
21371         instead of creating 190 scaled images on GnomeHandler startup.
21372
21373 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
21374
21375         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
21376           first call base before processing the event. Fixes #77279
21377
21378 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
21379
21380         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
21381           that the stride for the GDI bitmap would match the stride of
21382           a DIB or a Cursor.
21383
21384 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
21385
21386         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
21387
21388 2006-01-19  Jackson Harper  <jackson@ximian.com>
21389
21390         * ComboBox.cs: Hookup the text controls keydown event so we get
21391         those when the text control has the focus.
21392
21393 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
21394
21395         * Label.cs: Now using the base events instead of defining new ones;
21396           this allows us to just call the base properties without having to
21397           duplicate all base property logic 
21398
21399 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
21400
21401         * Label.cs: A label by default is not a tabstop (Fixes one of our
21402           failing nunit tests)
21403
21404 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
21405
21406         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
21407         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
21408
21409 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
21410
21411         * Cursor.cs: Reimplemented creating cursor bitmaps without using
21412           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
21413           This fixes #77218
21414         * XplatUIWin32.cs: 
21415           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
21416             constructor creates images that can't be saved. Part of the fix
21417             for #76103
21418           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
21419           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
21420             bug fix for handling window state in forms properly)
21421
21422 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21423
21424         * ThemeGtk.cs: Simplify ScrollBar drawing
21425
21426 2006-01-18  Jackson Harper  <jackson@ximian.com>
21427
21428         * Splitter.cs: Set the default dock style for the splitter control
21429         in the constructor.
21430
21431 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21432
21433         * ThemeGtk.cs: Corrected StateType and ShadowType for
21434           gtk_paint_box
21435
21436 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21437
21438         * Control.cs: Make use of Theme.DoubleBufferingSupported
21439         * ThemeGtk.cs:
21440           - Added drawing for flat style buttons
21441           - Added ScrollBar drawing
21442
21443 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
21444
21445         * ThemeClearlooks.cs: Removed some unneeded code.
21446         * ThemeGtk.cs: First part of ThemeGtk enhancements.
21447
21448 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
21449
21450         * LinkLabel.cs: We need to update the hover drawing when
21451           leaving the control as well.
21452
21453 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
21454
21455         * DataGrid.cs: Clicking on non empty areas in the columns
21456            area was giving an exception
21457
21458 2006-01-17  Jackson Harper  <jackson@ximian.com>
21459
21460         * ThemeWin32Classic.cs:
21461         * ListView.cs: Do not draw/clip the headers when the header style
21462         is None.
21463
21464 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
21465
21466         * DataGrid.cs: Fixes 77260
21467         
21468 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
21469
21470         * DataGrid.cs: Clicking on a column on a empty grid was giving
21471           an exception
21472
21473 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
21474
21475         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
21476           or any keypress will crash the grid.
21477
21478 2006-01-17  Mike Kestner  <mkestner@novell.com>
21479
21480         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
21481         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
21482         invisible/previously-visible items.
21483         [Fixes #76909]
21484
21485 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
21486
21487         * ThemeClearlooks.cs:
21488         - Added CL_Draw_Button method; now other theme controls that are 
21489           not derived from button or do not have a button can draw buttons
21490           too
21491         - Updated ComboBox drawing
21492         - Beautified RadioButton drawing
21493         - Corrected drawing of bottom and left tabs
21494         - Beautified DateTimePicker and MonthCalendar
21495         - Added CPDrawButton and CPDrawRadioButton
21496
21497 2006-01-16  Jackson Harper  <jackson@ximian.com>
21498
21499         * ComboBox.cs: Set the initial value of the scrollbar to the
21500         current index. Reduce the numbers of refreshs and IndexOfs called.
21501
21502 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
21503
21504         * FileDialog.cs: When the file listview is focused hitting the
21505           backspace key moves the fileview to the parent directory
21506
21507 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
21508
21509         * Form.cs: 
21510           - Added RecreateHandle call when changing taskbar visibility to 
21511             trigger reparenting in Win32 driver (Fixes #75719)
21512           - If a window has minimize or maximize buttons, it cannot have
21513             a help button
21514         * XplatUIWin32.cs:
21515           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
21516             the toplevel form with FosterParent (A toolwindow not on the
21517             taskbar) (Fixes #75719)
21518           - Made FosterParent a toolwindow
21519
21520 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21521
21522         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
21523
21524 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21525
21526         * ToolTip.cs: If SetToolTip is called from a control and the mouse
21527           is currently over that control, make sure that tooltip_window.Text
21528           gets updated
21529
21530 2006-01-13  Mike Kestner  <mkestner@novell.com>
21531
21532         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
21533
21534 2006-01-13  Jackson Harper  <jackson@ximian.com>
21535
21536         * TreeView.cs: On MS GetNodeAt never actually factors in the X
21537         value passed.  Also redraw the selected node when we recieve
21538         focus, so tabbing between trees works correctly.
21539
21540 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21541
21542         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
21543           ~/.gconf/%gconf-tree.xml, so use
21544           .gconf/desktop/gnome/interface/%gconf.xml
21545
21546 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
21547
21548         * TextControl.cs: Draw text in gray if control is disabled
21549
21550 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
21551
21552         * TreeView.cs: Draw the focus rectangle outside the highlight, to
21553           make sure it's always visible. Fixes #76680.
21554
21555 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
21556
21557         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
21558
21559 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
21560
21561         * PageSetupDialog.cs: Added.
21562         * PrintDialog.cs: Attributes.
21563         * PrintPreviewControl.cs: Updates.
21564         * PrintPreviewDialog.cs: Updates.
21565         
21566 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21567
21568         * Control.cs: Undid my selection check fix, since it's not needed
21569         * TextBoxBase.cs:
21570           - Now considering the presence of hscroll/vscroll when sizing
21571             vscroll/hscroll respectively. Fixed bug #77077
21572           - Added Left/Up/Down/Right to IsInputKey list to prevent
21573             ContainerControl from stealing them. This fixes what I broke
21574             with my last checkin.
21575
21576 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
21577
21578         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
21579           I finally understand how the property can be set without a setter :-)
21580
21581 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21582
21583         * Application.cs:
21584           - Switched RunLoop to use static Message.Create to create a 
21585             Message object
21586           - Added PreProcessMessage call in runloop for keyboard events; this
21587             is part of the fix for #77219, I overlooked this originally in the
21588             MSDN doc for PreProcessMessage
21589         * Control.cs:
21590           - Removed call to PreProcessMessage from handling of keyboard 
21591             messages; it's supposed to be done in the message pump
21592           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
21593             per MSDN documentation.
21594           - IsInputChar: All chars are input chars by default; removed the 
21595             parent calling chain, MS does not document that
21596           - PreProcessMessage: If IsInputChar is true, we want to return false
21597             to allow dispatching of the message
21598           - When selecting the next control, now also check that we're not
21599             selecting ourselves again and therefore return a false positive.
21600         * TextBoxBase.cs:
21601           - Tried to match return values for IsInputKey and ProcessDialogKey
21602             to what MS returns; moved processing of our special keys outside
21603             ProcessDialogKey since MS does not seem to return true on those.
21604           - Moved code that previously was in ProcessDialogKey into new private
21605             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
21606           - Reworked handling of WM_CHAR to not have to duplicate code from
21607             Control.cs anymore, instead we simply call down to base.
21608            
21609 2006-01-12  Jackson Harper  <jackson@ximian.com>
21610
21611         * ComboBox.cs: We always need to refresh the text area when
21612         EndUpdate is called. Fixes the combobox in the file dialog.
21613         * Control.cs: Don't create the creator_thread until the controls
21614         handle is created.  Also in InvokeRequired we check if the
21615         creator_thread is null. This gives the effect of InvokeRequired
21616         returning true if the controls handle is not created yet, and
21617         matches MS.
21618
21619 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21620
21621         * XplatUI.cs:
21622           - Added StartLoop() driver method. This is used to allow drivers to
21623             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
21624             loop for a particular thread
21625           - Added EndLoop() driver method. This is called once the message
21626             pump for the thread is shut down
21627           - Added SupportsTransparency method to allow the driver to indicate
21628             opacity support for windows
21629         * Form.cs:
21630           - Removed TODO attribute, completed AllowTransparency property
21631           - Added documented logic to Opacity
21632         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
21633           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
21634           versions of CompatibleTextRendering
21635         * X11Structs.cs: Added opacity atom to our atom enumeration
21636         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
21637           of a form might be set before it's reparented by the WM, and we need
21638           the opacity value without calling up to Form)
21639         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
21640           SupportsTransparency() driver methods
21641         * Application.cs: Now calling StartLoop and EndLoop driver methods
21642         * XplatUIX11.cs:
21643           - Added opacity atom registration
21644           - Added StartLoop()/EndLoop() methods. They're empty right now but
21645             will need to get implemented when we switch to a per-thread queue
21646           - Implemented SupportsTransparency() method
21647           - Implemented SetWindowTransparency() method
21648           - Added support for setting the opacity value when a window is
21649             reparented (since the opacity needs to be set on the WM frame)
21650         * XplatUIOSX.cs, XplatUIWin32.cs:
21651           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
21652
21653 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
21654
21655         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
21656
21657 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
21658
21659         * FileDialog.cs: Added ToolTip for MWFFileView
21660         * MimeIcon.cs: Rewrote GnomeHandler.
21661           - Get currently used gnome icon theme from
21662             ($HOME)/.gconf/%gconf-tree.xml
21663           - Make use of inherited icon themes
21664           - Support SVG icon themes like Tango via librsvg
21665
21666 2006-01-12  Miguel de Icaza  <miguel@novell.com>
21667
21668         Revert's Jackson's revert which broke 2.0 builds.   Fix both
21669         builds. 
21670         
21671         * Application.cs: Move the use_compatible_text_rendering outside
21672         the NET_2_0 define.  If we ever need to use the
21673         use_compatible_text_rendering on the individual controls they will
21674         access the variable from the common shared code paths.
21675
21676 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21677
21678         * XplatUI.cs:
21679           - Added more granular debug options
21680           - Added method to print both window text and id
21681           - Switched debug output to use new Window() debug method
21682           - Added IsEnabled() driver method
21683           - Added EnableWindow() driver method
21684         * Form.cs:
21685           - Removed end_modal; no longer needed, new loop handles termination
21686             via 'closing' variable
21687           - If form is modal, setting DialogResult will now initiate loop
21688             termination via 'closing' variable
21689           - Added support for is_enabled/WS_DISABLED to CreateParams
21690           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
21691             does all the work
21692           - Removed code that's now in RunLoop from ShowDialog()
21693           - Added various documented sanity checks to ShowDialog()
21694           - Added handling of WM_DESTROY message; we set 'closing' on getting
21695             the message to indicate the message pump to terminate
21696           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
21697             send by the Application.ExitThread method. (We send the message
21698             to destroy the window after all other events have been
21699             processed through the queue, instead of destroying the handle 
21700             directly)
21701           - Moved code from Close() method to WM_CLOSE handler; added logic
21702             to only send close-related events if the form is not displayed
21703             modal
21704         * Splitter.cs (..ctor): Fixed typo in resource name
21705         * Control.cs:
21706           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
21707             brush now
21708           - set_Cursor: Now only setting calling into XplatUI if the handle for
21709             the control is already created; this avoids implict handle creation
21710             or crashes if it's not created
21711           - set_Enabled: Now setting the enabled state via the new driver method
21712             instead of just tracking it
21713           - CreateParams: Added logic to set WS_DISABLED based on enabled state
21714           - CreateControl: Reordered event firing and method calls to more
21715             closely fire events in the order MS does. Now setting the
21716             enabled state in the driver when creating the control.
21717           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
21718             match MS order
21719         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
21720           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
21721         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
21722         * Hwnd.cs:
21723           - Added tracking of window enabled state (get_Enabled/set_Enabled)
21724           - Added EnabledHwnd property to easily allow a driver to find the
21725             handle of the first enabled window in the parent chain (this is
21726             used by drivers to pass up input events of disabled windows)
21727         * XplatUIDriver.cs: Added IsEnabled() method
21728         * Application.cs:
21729           - Removed crude and obsolete exiting tracking variable
21730           - Removed internal ModalRun(); replaced by RunLoop()
21731           - Implemented private CloseForms() method to allow closing all 
21732             windows owned by a particular (or all) threads
21733           - Exit() now properly closes all windows without forcing the message
21734             pump to quit
21735           - Removed obsolete InternalExit() method
21736           - Changed Run() methods to use new RunLoop() message pump
21737           - Implemented new RunLoop() method for both modal and non-modal forms
21738         * CommonDialog.cs:
21739           - get_CreateParams: Added setting of WS_DISABLED
21740           - Simplified ShowDialog(); now all the work is done in RunLoop(),
21741             invoked via Form.ShowDialog()
21742         * NativeWindow.cs: We don't remove the window from the collection when
21743           the handle is destroyed; there might still be messages for it in the
21744           queue (mainly the resulting WM_DESTROY); instead it will be removed
21745           when Control calls InvalidateHandle in the WM_DESTROY handler
21746         * XplatUIX11.cs:
21747           - CreateWindow: Added logic to handle the WS_DISABLED window style
21748           - EnableWindow: Implemented based on Hwnd.Enabled
21749           - GetMessage: Reset PostQuitState so the method can be called again
21750           - Implemented support for disabled windows (passing messages to the
21751             first enabled parent) in handling all input messages
21752           - Added optimizations for handling Expose events
21753           - Implemeted new driver method IsEnabled()
21754           - Now always resetting paint pending tracking vars when we start paint
21755           - Re-implemented UpdateWindow via just sending a WM_PAINT message
21756         * XplatUIOSX.cs: Added IsEnabled method stub
21757         * XplatUIWin32.cs: Implemented new IsEnabled() method
21758
21759 2006-01-11  Jackson Harper  <jackson@ximian.com>
21760
21761         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21762         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
21763         variables a little.
21764         * ColorDialog.cs: Clear out the old form before adding the new
21765         panel.  
21766
21767 2006-01-11  Jackson Harper  <jackson@ximian.com>
21768
21769         * X11Dnd.cs: Make sure to add all the text formats when adding
21770         strings to the data object.
21771         * TreeNodeCollection.cs: When adding to a sorted tree we need to
21772         do some redrawing too.  Also change the UpdateNode to an
21773         UpdateBelow so the newly added node gets painted.
21774         
21775 2006-01-11  Miguel de Icaza  <miguel@novell.com>
21776
21777         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21778         LinkLabel.cs, PropertyGrid.cs: Implement the
21779         UseCompatibleTextRendering property for 2.x
21780
21781         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
21782
21783 2006-01-11  Jackson Harper  <jackson@ximian.com>
21784
21785         * TreeView.cs: Use the property for setting the selected node so
21786         the correct events get raised.
21787         * TreeNode.cs: Update the tree when the fore/back colours of a
21788         node are set.
21789
21790 2006-01-10  Jackson Harper  <jackson@ximian.com>
21791
21792         * TreeView.cs: Allow setting SelectedNode to null.
21793
21794 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21795
21796         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
21797
21798 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21799
21800         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
21801
21802 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21803
21804         * PrintDialog.cs: Added attributes and set default property values.
21805
21806 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21807
21808         * PrintControllerWithStatusDialog.cs: 
21809         Added PrintControllerWithStatusDialog.
21810
21811 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21812
21813         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
21814         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
21815
21816 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21817
21818         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
21819
21820 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
21821
21822         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
21823         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
21824
21825 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
21826
21827         * MimeIcon.cs: Added internal class SVGUtil.
21828
21829 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
21830
21831         * FileDialog.cs: Don't crash if there are two files with the
21832           same name but different locations.
21833
21834 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
21835
21836         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
21837         dates across multiple month grids. Used to not highlight entire 
21838         month, but does now.
21839         
21840 2006-01-06  Jackson Harper  <jackson@ximian.com>
21841
21842         * MonthCalendar.cs: Removed DoEvents call to prevent a running
21843         message loop. Change timer intervals to numbers that seem more
21844         natural.
21845
21846 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
21847
21848         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
21849           object for location info since screen object is now implemented.
21850
21851 2006-01-05  Jackson Harper  <jackson@ximian.com>
21852
21853         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
21854         * AsyncMethodResult.cs: We no longer use a WeakReference for the
21855         AsyncMethodResult, this is because we ALWAYS want the
21856         ManualResetEvent to get set.
21857         * Control.cs: When disposing use an async invoke to call shutdown
21858         code, so that thigns don't block on the finalizer thread.  Also
21859         check if we even have a message loop before trying to send
21860         messages, if we don't then don't bother sending messages.
21861         - No more weak references for async methods
21862         * XplatUIDriver.cs: No more weak references for async methods.
21863
21864 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21865
21866         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
21867           returns two FontFamily with the same name
21868
21869 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
21870
21871         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
21872           drawing disabled text. Instead using the ColorGrayText color
21873
21874 2006-01-04  Jackson Harper  <jackson@ximian.com>
21875
21876         * TreeNode.cs: redraw the node when its image index is changed.
21877
21878 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
21879
21880         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
21881           time I checked there are no others like it.
21882
21883 2006-01-04  Jackson Harper  <jackson@ximian.com>
21884
21885         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
21886         this gives the behavoir I was looking for.
21887         * Control.cs: Special case Invoking EventHandlers, this matches MS
21888         and fixes part of bug #76326.
21889
21890 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21891
21892         * ThemeClearlooks.cs, FileDialog.cs:
21893           - Reflect the latest Theme class changes
21894           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
21895             with DateTime
21896             
21897 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21898
21899         * Theme.cs: Cache UI resource images and resize them if needed
21900
21901 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
21902
21903         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
21904           is called. This fixes the crash in Nexxia when setting the font
21905           attributes in the chat. [However, RTF needs a look-over to make sure
21906           that all SelectionXXX methods handle the special case that selection
21907           is empty and therefore the change must be applied to all text starting
21908           at the cursor/selection start]
21909
21910 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
21911
21912         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21913           XplatUIOSX.cs: Added SendMessage and PostMessage methods
21914         * X11Keyboard.cs: Switched to new way of calling PostMessage
21915
21916 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
21917
21918         * Theme.cs: Added theme interface for images to allow the theme to
21919           control what images are used for things like FileDialog, MessageBox
21920           icons, etc.
21921         * MessageBox.cs: Now uses the new Theme icon/image interfaces
21922
21923 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
21924
21925         * FileDialog.cs:
21926           - Removed some dead code
21927           - Opening a recently used file does work now
21928           - Small UI enhancements
21929           - Refactoring
21930
21931 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
21932
21933         * FileDialog.cs: Forgot too add __MonoCS__
21934
21935 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
21936
21937         * FileDialog.cs: We are able to read recently used files now let's
21938           go on and write them.
21939
21940 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
21941
21942         * FileDialog.cs: Breathe some life into "last open"/"recently used"
21943           button
21944         * MimeIcon.cs: Do a check for the top level media type also
21945
21946 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
21947
21948         * ThemeClearlooks.cs:
21949           - Added CPDrawStringDisabled
21950           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
21951             some chars if the text doesn't fit into text_rect
21952           - DrawListViewItem: If View = View.LargeIcon center the image;
21953             rewrote the drawing of ListViewItem.Text if View = 
21954             View.LargeIcon
21955
21956 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
21957
21958         * MimeIcon.cs: Use default KDE icon theme if there is no
21959           "48x48" directory for the current icon theme, fixes #77114
21960         * Mime.cs: Disable not working and actually not used code. 
21961         * ThemeWin32Classic.cs:
21962           - Replace "new SolidBrush" in GetControlBackBrush and
21963             GetControlForeBrush with ResPool.GetSolidBrush
21964           - Changed DrawListViewItem from private to protected virtual
21965         * FileDialog.cs:
21966           - Added form.MaximizeBox = true
21967           - Don't throw an exception if there is a broken symbolic link
21968
21969 2005-12-23  Jackson Harper  <jackson@ximian.com>
21970
21971         * TabControl.cs: Give the panels focus, keyboard navigation is
21972         fixed so this works correctly now.
21973         - We need these key events also.
21974         * ToolBar.cs: Remove some of the poor mans double buffering.
21975         
21976 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
21977
21978         * ComboBox.cs: The internal TextBox now returns the focus.
21979
21980 2005-12-23  Jackson Harper  <jackson@ximian.com>
21981
21982         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
21983
21984 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
21985
21986         * Control.cs: Removed debug code
21987         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
21988           implicit children
21989
21990 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
21991
21992         * Control.cs: When creating the control, update the Z-order after
21993           all it's children are created, too. (Fixes nexxia not showing
21994           picturebox bug)
21995
21996 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
21997
21998         * Control.cs: Do not update the anchoring distances if layout is
21999           suspended, instead do it once layout is resumed
22000
22001 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
22002
22003         * Control.cs: 
22004           - After many hours of debugging, for both Jackson and
22005             myself, it turns out that it helps to set the parent of a control
22006             if you want to actually see it onscreen. In the spirit of that
22007             discovery, we're now setting the parent of the control and
22008             it's children when the control's handle is created. This fix
22009             will make Lutz Roeder's Reflector run happily. 
22010           - now just creating the handle instead of the whole control when
22011             getting a graphics context for the control.
22012
22013 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
22014
22015         * ScrollableControl.cs: When calculating the canvas, don't consider
22016           the scrollbar widths. Instead, predict if horizontal scrollbar
22017           will affect canvas when deciding on vertical display and vice versa.
22018
22019 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
22020
22021         * RichTextBox.cs: Set default RTF font for documents that don't
22022           have a font table (Fixes #77076)
22023
22024 2005-12-22  Jackson Harper  <jackson@ximian.com>
22025
22026         * TextBoxBase.cs: It's difficult to do, but you can have an empty
22027         clipboard. This prevents a NullRef in that case.
22028         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
22029         clipboard. PRIMARY is for the currently selected text only. (We
22030         should implement PRIMARY at some point.
22031
22032 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
22033
22034         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
22035           a Unicode function with a structure that was defined in Ansi way.
22036           This fixes #76942.
22037
22038 2005-12-21  Jackson Harper  <jackson@ximian.com>
22039
22040         * StatusBar.cs: Statusbar handles its fore/back colours on it's
22041         on. Because thats how it rolls. (and this avoids it using ambient
22042         colours).
22043         * ThemeWin32Classic.cs: Use the proper back color for filling.
22044         * Menu.cs: Use the system menu bar color for drawing menu
22045         bars. Using the window back color will bring ambient colours into
22046         the picture.
22047
22048 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
22049
22050         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
22051           Bitmaps were created and not disposed.
22052
22053 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
22054
22055         * Control.cs (CreateControl): Don't do anything if the control is
22056           already created, otherwise we'd fire the OnCreated event more than
22057           once
22058
22059 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
22060
22061         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
22062           will always match. Instead return -1. Fixes #76464.
22063
22064 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
22065
22066         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
22067           neither the beginning nor the end of the line (Fixes bug #76479)
22068
22069 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
22070
22071         * Control.cs:
22072           - ControlNativeWindow.ControlFromHandle(): Now handling situation
22073             where handle is invalid
22074           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
22075             instead of slower linear search
22076         * NativeWindow.cs: Don't remove the window from the hashtable until
22077           after the driver has destroyed it (since the driver might use
22078           Control.FromHandle to lookup the control object
22079         * Hwnd.cs: Added DestroyPending property to track if a window is 
22080           already destroyed as far as the driver is concerned and only hasn't
22081           yet notified the control
22082         * XplatUIX11.cs:
22083           - Activate(): Check if the window is still valid before using the 
22084             handle
22085           - Implemented DestroyChildWindow() method to mark child windows as
22086             destroyed when a window is destroyed. This prevents situations 
22087             where we might call an X method based on queued events for a
22088             window that already has been destroyed but we haven't yet pulled
22089             the destroy method from the queue.
22090           - Added a call to the new DestroyChildWindow() method to the drivers
22091             DestroyWindow code. Also now marking the destroyed window itself
22092             as pending
22093
22094 2005-12-20  Jackson Harper  <jackson@ximian.com>
22095
22096         * StatusBar.cs:
22097         * StatusBarPanel.cs: Don't calculate panel sizes on draw
22098         anymore. Just do them when needed, also track the rects of panels
22099         so that we can optimize refreshing more in the future.
22100
22101 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
22102
22103         * ColorDialog.cs: Fixed focus drawing in small color controls
22104
22105 2005-12-19  Jackson Harper  <jackson@ximian.com>
22106
22107         * InternalWindowManager.cs:
22108         * MdiWindowManager.cs: Cleanup some coordinate system changes so
22109         moving windows works properly.
22110
22111 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
22112
22113         * Control.cs: 
22114           - Removed call to InitLayout() from SetBoundsCore(); doc says
22115             it's only called when a control is added to a container
22116           - Split InitLayout logic, moved to separate UpdateDistances() method
22117             since we need to perform those calculations more often than just
22118             when adding the control to a container. (Needed to fix #77022)
22119           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
22120           - Reduced the OnBindingContextChanged events count, don't send them
22121             unless the control is created, we still aren't totally matching
22122             MS, but I can't quite figure out some of their rules
22123
22124 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
22125
22126         * ThemeClearlooks.cs: Corrected distance between ProgressBar
22127           stripes
22128
22129 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
22130
22131         * ThemeClearlooks.cs:
22132           - Updated ProgressBar drawing
22133           - Corrected drawing of ScrollBars and scroll buttons
22134           - Some temporary fixes for minor pixel artefacts
22135
22136 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
22137
22138         * Control.cs:
22139           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
22140             cause events to be sent in the same order as MS does.
22141           - Added ChangeParent() method to trigger various OnXXXChanged events
22142             that need to be fired when a parent changes (This is a reworking
22143             of the patch from r54254, with the X11 errors fixed)
22144           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
22145             since on MS we get OnLayoutChanged events when calling Clear()
22146           - Changed Enabled property to consider parent state as well, if a
22147             parent is not enabled, the control will not be either
22148           - Changed Parent property to simply call Controls.Add() since that
22149             now does all the work required, this way we avoid code duplication
22150           - Threw in a few OnBindingsContextChanged calls to try and match
22151             when MS sends them. We seem to send a few too many, though.
22152           - Added call to CreateControl when adding the control to a parent.
22153             We were never calling CreateControl. Still needs some work, in
22154             some places we treat HandleCreated and ControlCreated as equal, 
22155             which is wrong
22156           - Removed obsolete commented out code from UpdateZOrder()
22157
22158 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
22159
22160         * ThemeClearlooks.cs: Updated TrackBar drawing.
22161
22162 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
22163
22164         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
22165
22166 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
22167
22168         * FileDialog.cs: Add the Help button and the open readonly
22169           checkbox only if needed
22170
22171 2005-12-16  Jackson Harper  <jackson@ximian.com>
22172
22173         * Control.cs: Make sure we have an active menu before trying to
22174         process commands on it. Prevents menu-less forms from crashing
22175         when Alt is pressed.
22176         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
22177         Dieter Bremes.
22178         * RichTextBox.cs: Expand statement to help out gmcs and fix the
22179         2.0 build.
22180
22181 2005-12-16  Jackson Harper  <jackson@ximian.com>
22182
22183         * InternalWindowManager.cs: Don't translate tool windows screen
22184         coordinates. This fixes windows 'bouncing' around when being moved.
22185
22186 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
22187
22188         * TextBoxBase.cs:
22189           - MaxLength now treats 2^31-1 equal to unlimited length (this is
22190             not quite MS compatible, MS uses that number only for single line
22191             and 2^32-1 for multi-line, but I figure it won't hurt keeping
22192             the limit at 2GB)
22193           - Now enforcing the MaxLength limit when entering characters
22194           - Added argument to internal Paste() method to track if it's called
22195             from programatically or via keyboard, since keyboard driven pastes
22196             need to enforce max-length
22197           - Added logic to Paste to only paste as many chars as MaxLength 
22198             allows
22199         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
22200         * TextControl.cs:
22201           - Added Length property to return number of characters in document
22202           - Added private CharCount property which only tracks actual chars
22203             in the document (no linefeeds) and fires event when CharCount
22204             changes
22205           - Added tracking of character count to all methods that alter it
22206           - Added LengthChanged event to allow applications to subscribe
22207             to any changes to the document
22208
22209 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
22210
22211         * TextBox.cs: 
22212           - Removed local password_char field (moved to TextBoxBase)
22213           - Now setting the document's password var when password is
22214             set
22215         * TextBoxBase.cs:
22216           - Added password_char field (needed here so MultiLine can
22217             access it)
22218           - Added logic to MultiLine property setter to set the document's
22219             variable when password display is allowed
22220           - Removed debug code and made some debug code conditional
22221         * TextControl.cs:
22222           - Added RecalculatePasswordLine() method to handle special password
22223             char only lines
22224           - Added PasswordChar property, also added related tracking vars
22225           - Draw() method now uses local text var for grabbing text to draw,
22226             this var is set to line.text unless we're doing password display,
22227             then it is set to the pre-generated all-password-chars line
22228           - Added calling RecalculatePasswordLine() method for password lines
22229
22230 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
22231
22232         * Hwnd.cs: 
22233           - Added Reparented property to allow tracking of Window Manager
22234             reparenting actions (which affect X/Y calculations of toplevel 
22235             windows)
22236           - Made ToString() print window handles in hex
22237         * XplatUIX11.cs:
22238           - AddConfigureNotify(): Now uses reparented state off Hwnd to
22239             determine if X/Y needs offsetting
22240           - AddConfigureNotify(): Fixed offset calculations
22241           - Now adds ReparentNotify messages into the queue
22242           - Now processes ReparentNotify messages and causes a 
22243             WM_WINDOWPOSCHANGED message to be sent upstream if a window
22244             is reparented (as most likely it's X/Y coordinates are changed
22245             due to that)
22246
22247 2005-12-14  Jackson Harper  <jackson@ximian.com>
22248
22249         * XplatUIX11.cs: Tool windows still need to respek focus.
22250
22251 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
22252
22253         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
22254           have a working release
22255
22256 2005-12-13  Jackson Harper  <jackson@ximian.com>
22257
22258         * Form.cs: Update styles after setting the border style regardless
22259         of whether or not the window is using a window manager.
22260
22261 2005-12-13  Jackson Harper  <jackson@ximian.com>
22262
22263         * Form.cs: We now hook into an internal window manager instead of just an
22264         MDI subsystem, this is so we can have properly behaving tool windows.
22265         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
22266         * InternalWindowManager.cs: New internal class that acts as a
22267         window manager for tool windows and as a base for mdi windows.
22268         * MdiWindowManager.cs: New class that acts as a window manager for
22269         mdi windows.
22270
22271 2005-12-12  Jackson Harper  <jackson@ximian.com>
22272
22273         * Control.cs: Updates so we match behavoir for for implicit
22274         controls. Fixes explosions in MDI.
22275
22276 2005-12-12  Jackson Harper  <jackson@ximian.com>
22277
22278         * Control.cs: Implement Invalidate (Region).
22279
22280 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
22281
22282         * Control.cs: 
22283           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
22284             the same events as MS does. MS fires events for each property 
22285             except, for unknown reasons, Cursor, when the control is reparented. 
22286             I can't seem to totally match add/remove since MS also fires some 
22287             VisibleChanged events, which makes no sense. Consolidated the
22288             parenting code into a separate method so it can be called from
22289             both Add and Remove. set_Parent no longer needs any special logic
22290             as it calls the parent's add method which implicitly fires
22291             all events
22292           - Removed some obsolete code and debug output
22293           - Enabled state is inherited from parents, if this is enabled
22294
22295 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
22296
22297         * Form.cs: Removed commented out code
22298
22299 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
22300
22301         * Control.cs:
22302           - Added internal version of Invoke, with additional argument 
22303             indicating if we're calling it from a Dispose() handler. That
22304             way we can avoid BeginInvoke throwing an exception if we're
22305             calling for an already destroyed window.
22306           - Added a dispose argument to BeginInvokeInternal, and made the
22307             check if a valid window handle chain exists conditional on
22308             it not being a dispose call
22309           - Removed code in DestroyHandle to destroy our children. Since we
22310             now handle the WM_DESTROY message we will catch all our children
22311             being destroyed.
22312           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
22313         * Form.cs:
22314           - Added a field to track the application context of the form.
22315           - No need to set closing variable as response to WM_CLOSE, instead
22316             we destroy the window. We also call PostQuitMessage if the form
22317             has an application context (which makes it the main app form,
22318             which, when closed terminates the app)
22319         * XplatUI.cs:
22320           - Dropped Exit() method, it's naming was confusing
22321           - Added PostQuitMessage() which causes GetMessage to return false
22322             once the message queue is empty
22323         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
22324           PostQuitMessage()
22325         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
22326           no longer a valid XplatUI method, but left it in since it's used
22327           internally. Added empty PostQuitMessage() method.
22328         * MenuAPI.cs: Replaced call to Exit() with call to
22329           PostQuitMessage, even though this is probably no longer needed.
22330         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
22331         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
22332         * Application.cs:
22333           - Replaced call to XplatUI.Exit() with PostQuitMessage()
22334           - Removed old debug code that would call XplatUI for exception
22335             display, enabled standard exception handling (Still not enabled
22336             though, until NativeWindow's ExternalExceptionHandler define
22337             is removed
22338         * NativeWindow.cs:
22339           - Added internal method to allow control to update NativeWindow
22340             after a window has been destroyed
22341           - Added handling of already destroyed windows when calling i
22342             DestroyWindow
22343           - Added removal of handle from list on ReleaseHandle
22344         * XplatUIX11.cs:
22345           - Dropped GetMessageResult var and related code
22346           - Added PostQuitState to field to track if PostQuitMessage has been
22347             called
22348           - Dropped Exit() method
22349           - Added PostQuitMessage() method
22350           - GetMessage now will return false if PostQuitState is set and no
22351             more messages are in the queue.
22352           - Expose handler will no longer generate WM_PAINT messages if we are
22353             in PostQuitState since it's very likely any windows have already
22354             been destroyed, and since Hwnd won't get updated until we have
22355             processed the DestroyNotify we'd be causing X errors.
22356         
22357 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22358
22359         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
22360           Thanks to Mike for pointing out the err of my ways.
22361
22362 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22363
22364         * Control.cs(PreProcessMessage): Moved menu handling back, but
22365           after all other key handling, to match MS (who handles Menu in
22366           DefWndProc)
22367         * Menu.cs (WndProc): Removed my brainfart
22368
22369 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22370
22371         * Control.cs(PreProcessMessage): Removed special menu handling 
22372         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
22373
22374 2005-12-07  Mike Kestner  <mkestner@novell.com>
22375
22376         * Control.cs : special case SYSKEYUP so that we can adjust keynav
22377         state according in tracker.
22378         * Menu.cs : promote tracker field to base class and provide a tracker
22379         lookup capability.  Add/Remove shortcuts dynamically if the top menu
22380         has a tracker. Unparent items that are removed from the collection.
22381         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
22382         * Theme*.cs: add always_show_hotkeys field to support configurability
22383         of mnemonic display.  win32 doesn't show mnemonics until Alt is
22384         pressed.
22385
22386 2005-12-07  Jackson Harper  <jackson@ximian.com>
22387
22388         * MdiChildContext.cs: Use Control.ResetCursor.
22389         * Control.cs: ResetCursor needs to set the property so that the
22390         correct XplatUI call gets made.
22391
22392 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22393
22394         * Control.cs: More fixes to make our key events match MS. We
22395           were not setting the modifier state on KeyData, and we were
22396           not generating any events when Alt was pressed with a key
22397           since handling of WM_SYSxxx was missing for the OnKey methods.
22398
22399 2005-12-07  Jackson Harper  <jackson@ximian.com>
22400
22401         * MdiChildContext.cs: reenable the sizing code.
22402         - When the mouse leaves a window reset its cursor.
22403
22404 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
22405
22406         * ThemeClearlooks.cs: Reflect latest Hwnd changes
22407
22408 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
22409
22410         * Hwnd.cs: Now using the theme 3d bordersize to calculate
22411           widths of Fixed3D borders
22412
22413 2005-12-07  Jackson Harper  <jackson@ximian.com>
22414
22415         * MdiClient.cs: Fix warnings. Earn Mike's love.
22416
22417 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
22418
22419         * ThemeClearlooks.cs:
22420           - Adjusted mouse over button color
22421           - Added first parts of CheckBox drawing
22422           - Added correct color for selected text background
22423           - Fixed ComboBox drawing
22424           - Added CPDrawBorder3D and CPDrawBorder
22425
22426 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
22427
22428         * XplatUIX11.cs: Added call to XBell for AudibleAlert
22429
22430 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
22431
22432         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
22433           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
22434           alert users via sound. We could add an enum arg with different
22435           types of alerts in the future
22436
22437 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
22438
22439         * Control.cs: Fix behaviour problems pointed out by Mike
22440
22441 2005-12-05  Mike Kestner  <mkestner@novell.com>
22442
22443         * StatusBarPanel.cs: add Invalidate method and hook it into all the
22444         prop setters.  Calls parent.Refresh for now, but could be maybe be
22445         optimized with an internal method on StatusBar at some point.
22446         [Fixes #76513]
22447
22448 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
22449
22450         * RichTextBox.cs: Implemented get_SelectionColor
22451
22452 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
22453
22454         * ThemeClearlooks.cs:
22455           - Removed dead code
22456           - Draw black button border only if button is Form.AcceptButton
22457           - Draw correct button color for pressed RadioButton if the mouse 
22458             has entered the button
22459           - Updated ProgressBar drawing!
22460           - Updated CPDrawSizeGrip drawing
22461           - Updated StatusBarPanel drawing
22462
22463 2005-12-05  Mike Kestner  <mkestner@novell.com>
22464
22465         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
22466         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
22467
22468 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
22469
22470         * ThemeClearlooks.cs: Initial check-in, activate with
22471           export MONO_THEME=clearlooks
22472         * ThemeEngine.cs: Added ThemeClearlooks
22473
22474 2005-12-03  Mike Kestner  <mkestner@novell.com>
22475
22476         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
22477         [Fixes #76897]
22478
22479 2005-12-02  Jackson Harper  <jackson@ximian.com>
22480
22481         * Form.cs: If the child form has no menu the default main menu is
22482         used as the active menu.
22483
22484 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
22485
22486         * ListBox.cs: Check if any items exist before trying to resolve 
22487           coordinates into items
22488
22489 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
22490
22491         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
22492           as the second color for the background hatch
22493
22494 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
22495
22496         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
22497         * RichTextBox.cs: FormatText position arguments are 1-based, now making
22498           sure that what we pass to FormatText is always 1-based. Fixes #76885
22499
22500 2005-11-29  Miguel de Icaza  <miguel@novell.com>
22501
22502         * NumericUpDown.cs (EndInit): When we are done initializing,
22503         reflect any updates on the UI.
22504
22505 2005-12-02  Jackson Harper  <jackson@ximian.com>
22506
22507         * ImplicitHScrollBar.cs:
22508         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
22509         their container controls.
22510         * TreeView.cs: Use the new implicit scrollbars.
22511
22512 2005-12-02  Jackson Harper  <jackson@ximian.com>
22513
22514         * TreeView.cs: Make top_node internal so the TreeNodeCollections
22515         can play with it.
22516         * TreeNodeCollection.cs: If we remove the topnode we need to
22517         update topnode to the next node in line.
22518         - When clearing nodes go through the same process as removing
22519         them, so they get depareneted and checked if they are top node.
22520
22521 2005-12-01  Jackson Harper  <jackson@ximian.com>
22522
22523         * TreeView.cs: When imagelists are used the image area is
22524         selectable as well as the text.
22525         - If there are no selected nodes select the first one.
22526         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
22527         so don't do it more then we need to.
22528
22529 2005-12-01  Jackson Harper  <jackson@ximian.com>
22530
22531         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
22532         that arrows can be scaled.
22533
22534 2005-12-01  Jackson Harper  <jackson@ximian.com>
22535
22536         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
22537         fail. Patch by Dieter Bremes
22538
22539 2005-11-30  Jackson Harper  <jackson@ximian.com>
22540
22541         * Form.cs: Property is 2.0 only
22542         * PrintDialog.cs: Signature fix.
22543
22544 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
22545
22546         * TextControl.cs: 
22547           - No longer artificially moves text 2 pixels down (now that we have
22548             borders this is no longer needed)
22549           - Added calcs for left, hanging and right indent
22550
22551 2005-11-23  Mike Kestner  <mkestner@novell.com>
22552
22553         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
22554
22555 2005-11-30  Jackson Harper  <jackson@ximian.com>
22556
22557         * MdiChildContext.cs: Set the cloned menus forms, as these don't
22558         get cloned as part of CloneMenu ().
22559         * Menu.cs: Make sure the parent of the items get set correctly
22560         when they are added.  And the owners are notified of the changes.
22561         * Form.cs: Create an ActiveMenu property, so that when MDI is used
22562         we can change the menu being displayed/handled by the form without
22563         changing the menu assosciated with the form.
22564         - Don't let Mdi children draw/handle menus.
22565         
22566 2005-11-30  Jackson Harper  <jackson@ximian.com>
22567
22568         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
22569         a MenuChanged event. Just to make the API a little more
22570         consistent.
22571         * MainMenu.cs:
22572         * MenuItem.cs: Use the new OnMenuChanged
22573         * MdiChildContext.cs: Handle menu merging.
22574         * Form.cs: Implement MergedMenu.
22575         
22576 2005-11-30  Jackson Harper  <jackson@ximian.com>
22577
22578         * Menu.cs: We were misusing Add. Add goes behind the specified
22579         index according to the docs, and does not replace the specified
22580         index. So I added an Insert method.
22581
22582 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
22583
22584         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
22585           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
22586           is for Jackson
22587         * RichTextBox.cs: Added calls to base for DnD events
22588
22589 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
22590
22591         * TextControl.cs:
22592           - Fixed drag-selection related crash; style fixes
22593           - Implemented undo class
22594             o Implemented method to capture document state for specified
22595               range in document tree
22596             o Implemented method to restore captured document state
22597             o Implemented cursor tracking
22598             o Implemented basic undo stack
22599           - Added undo cursor tracking to methods altering cursor location
22600           - Added undo tracking to selection deletion (still missing
22601             other text-altering hookups)
22602         * RichTextBox.cs:
22603           - Added SelectionLength property
22604           - Implemented CanPaste()
22605           - Implemented Paste()
22606           - Added missing protected methods
22607           - Fixed RTF->Document conversion; now uses font index 0 and color 
22608             index 0 as the default font for the parsed text
22609           - Fixed RTF<->Document font size translation
22610           - Fixed RTF generation, now properly handles cross-tag boundaries
22611             for single line selection
22612           - No longer always appends blank line to generated RTF
22613           - Removed TODOs
22614           - Added missing attributes
22615           - Hooked up undo-related methods
22616         * TextBoxBase.cs:
22617           - Implemented Copy()
22618           - Implemented Paste()
22619           - Implemented Cut()
22620           - Fixed caret mis-behaviour on backspace across line-boundaries
22621
22622 2005-11-29  Jackson Harper  <jackson@ximian.com>
22623
22624         * MdiClient.cs: Add a method for activating mdi children. Very
22625         basic right now. I imagine someday it might need more girth.
22626         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
22627         children windows names are added to the menu item.
22628         * ThemeWin32Classic.cs: Draw the arrow if the item is an
22629         mdilist. This happens regardless of whether or not there are any
22630         mdi windows to see in the list, and according to my tests happens
22631         before the items are even added. Also happens if there isn't even
22632         an mdi client to get windows from.
22633
22634 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
22635
22636         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
22637         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
22638
22639 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
22640
22641         * DataGridTableStyle.cs:
22642           - Create always the styles for the missing columns even if they are
22643             provided by the user (not default table style)
22644         * DataGrid.cs:
22645           - Fixes bug 76770
22646           - Fixes SetDataBinding (always re-attach source)
22647           - Fixes SetNewDataSource (only clear styles if they are not for 
22648             this source)
22649          -  Expands OnTableStylesCollectionChanged to handle style refresh 
22650             and remove properly
22651
22652 2005-11-29  Jackson Harper  <jackson@ximian.com>
22653
22654         * FileDialog.cs: Implement missing bits, remove some dead
22655         code.
22656         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
22657         creation of the panel so that the options set on the dialog are
22658         seen when the panel is created.
22659         * TreeView.cs: raise a click when items are clicked.
22660         
22661 2005-11-29  Jackson Harper  <jackson@ximian.com>
22662
22663         * MdiClient.cs: Pass some signature methods through to base.
22664
22665 2005-11-28  Jackson Harper  <jackson@ximian.com>
22666
22667         * ListView.cs: Raise the click event when items are clicked.
22668
22669 2005-11-28  Jackson Harper  <jackson@ximian.com>
22670
22671         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
22672         a nullref.
22673
22674 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
22675
22676         * ThemeNice.cs: - Removed 1 pixel bitmaps
22677           - Use SmoothingMode.AntiAlias where it makes sense
22678             (ScrollButton arrow for example)
22679           - Enhanced Button focus drawing
22680           - Fixed ComboBox drawing (no artefacts anymore, focus
22681             rectangle is back again, reduced size of ComboButton, etc.)
22682           - Fixed RadioButton focus drawing for Appearence.Button
22683           - Slight ScrollButton redesign
22684           - Some LinearGradientBrush size fixes
22685           - GroupBoxes have now rounded edges
22686           - Fixed StatusBar drawing
22687
22688 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
22689
22690         * ThemeNice.cs: - Remove dead code
22691           - use correct background colors for menus, etc.
22692           - Fake pixel drawing with 1 pixel bitmaps
22693
22694 2005-11-24  Jackson Harper  <jackson@ximian.com>
22695
22696         * MdiClient.cs: Size the scrollbars when resizing the window.
22697         - Resize the maximized windows when the client is resized
22698         * Form.cs: Make the child context available
22699         
22700 2005-11-23  Jackson Harper  <jackson@ximian.com>
22701
22702         * MdiChildContext.cs: Don't size windows if they are maximized.
22703
22704 2005-11-23  Mike Kestner  <mkestner@novell.com>
22705
22706         * ContextMenu.cs: use MenuTracker.
22707         * Control.cs: remove menu handle usage.
22708         * Form.cs: remove menu handle usage.
22709         * Hwnd.cs: remove menu handle usage.
22710         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
22711         motion and clicks to the new Tracker handlers.
22712         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
22713         and handle usage.
22714         * MenuAPI.cs: refactored to combine popup and menubar event handling.
22715         Killed the MENU and MENUITEM data types and associated collections
22716         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
22717         MenuTracker class that exposes the leftovers from the old MenuAPI
22718         static methods. Restructured Capture handling so that only one grab is
22719         done for the entire menu hierarchy instead of handing off grabs to
22720         submenus. Tracker now has an invisible control to Capture when active.
22721         * MenuItem.cs: add sizing accessors, kill Create
22722         and handle usage.
22723         * Theme.cs: remove menu handle and MENU(ITEM) usage.
22724         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
22725         MENU(ITEM). remove menu handle usage, use Menu directly.
22726         * XplatUIDriver.cs: remove menu handle usage.
22727         * XplatUIOSX.cs: remove menu handle usage.
22728         * XplatUIWin32.cs: remove menu handle usage.
22729         * XplatUIX11.cs: remove menu handle usage.
22730
22731 2005-11-22  Jackson Harper  <jackson@ximian.com>
22732
22733         * Hwnd.cs: Don't compute the menu size for
22734         DefaultClientRectangle.
22735         - Reenable menu sizes being computed for GetClienRectangle.
22736         * Form.cs: Remove comment of trechery
22737         
22738 2005-11-22  Jackson Harper  <jackson@ximian.com>
22739
22740         * Hwnd.cs: The adjustments for the menu bar are made when it is
22741         attached to the form.
22742
22743 2005-11-19  Jackson Harper  <jackson@ximian.com>
22744
22745         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
22746         (just like on windows).
22747
22748 2005-11-19  Jackson Harper  <jackson@ximian.com>
22749
22750         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
22751         use real buttons anymore because they are in non client area. The
22752         one TODO here is that I need to somehow invalidate a section of
22753         the non client area.
22754
22755 2005-11-18  Jackson Harper  <jackson@ximian.com>
22756
22757         * Control.cs: Put the enum check back in now that MDI doesnt have
22758         to use this to set border styles.
22759         * Form.cs: Only set mdi child windows borders if the handle has
22760         been created.
22761         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
22762         this directly on to the driver.
22763         - Get the move start position before adjusting for the titlebar
22764         height, this fixes the windows "skipping" when they are first
22765         moved.
22766
22767 2005-11-18  Jackson Harper  <jackson@ximian.com>
22768
22769         * XplatUIX11.cs: Just compute the mdi borders separately as they
22770         don't totally match up with normal form borders.
22771
22772 2005-11-18  Jackson Harper  <jackson@ximian.com>
22773
22774         * Control.cs: Set WS_ styles for borders, so that the driver does
22775         not have to retrieve the control instance to figure out what kind
22776         of borders it should have.
22777         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
22778         driver can know its an mdi child easily.
22779         * XplatUIX11.cs: Get the border styles and whether the window is
22780         MDI from the Styles and ExStyles params instead of having to get a
22781         control. This prevents a chicken and egg problem.       
22782
22783 2005-11-18  Jackson Harper  <jackson@ximian.com>
22784
22785         * MdiClient.cs: Fix typo so scrollbars show up correctly.
22786
22787 2005-11-18  Jackson Harper  <jackson@ximian.com>
22788
22789         * MdiClient.cs: Calculate when to add and remove scrollbars
22790         correctly.
22791         * MdiChildContext.cs: Adjust the y position to take the titlebar
22792         into account.
22793         - No height for FormBorderStyle.None
22794
22795 2005-11-18  Jackson Harper  <jackson@ximian.com>
22796
22797         * Control.cs: Allow non enum values to be used for
22798         InternalBorderStyle.  MDI does this to set a special border style.
22799         - New utility methods for converting points to/from client coords
22800         - Add the newly created control to the Controls collection before
22801         updating its style. This way UpdateStyle can walk the control
22802         heirarchy to find the control if needed.
22803         so I don't need to create a new Point object all the time.
22804         * Form.cs: Let MDI windows handle their border styles.
22805         - Set styles on MDI windows so the correct title style is derived.
22806         * MdiChildContext.cs: Move all the painting and window handling
22807         into the non client area.
22808         - Use correct sizing and put correct buttons on frames based on
22809         the FormBorderStyle.
22810         - Notify the mdi client about scrolling
22811         - Need to handle the buttons ourselves now, because they are all
22812         in non client areas and we can't add controls there.
22813         * MdiClient.cs: Halfway to scrolling, this implementation is
22814         somewhat broken though, we need to check to make sure other
22815         windows aren't causing scrolling before removing the bars. Also
22816         the bars need to be drawn on top, maybe I can switch implicit
22817         controls to be on top.
22818         * Hwnd.cs: caption_height and tool_caption_height are now
22819         properties of an hwnd, this way they can be set by the driver
22820         based on the type of window they are.  In X11 the window manager
22821         handles the decorations so caption_height is zero unless its an
22822         MDI window.
22823         - Add 3 pixel borders for MDI windows (0xFFFF).
22824         - Get rid of some code duplication, have DefaultClientRectanle
22825         just call GetClientRectangle.
22826         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
22827         Hwnd now.
22828         - Set border styles differently for mdi windows.
22829         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
22830         Hwnd now.
22831         
22832 2005-11-15  Mike Kestner  <mkestner@novell.com>
22833
22834         * Menu.cs: when adding an item to the collection, if item is already 
22835         parented, remove it from the parent.
22836
22837 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
22838
22839         * X11DesktopColors.cs: Added KDE support
22840
22841 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
22842
22843         * XplatUIWin32.cs: 
22844           - Clipboard methods now can translate Rtf format
22845           - No longer removes clipboard contents whenever a new format is added
22846             to allow placing multiple formats on the clipboard
22847         * Clipboard.cs: Clipboard now supports getting a IDataObject and
22848           will place all formats contained in it onto the clipboard. Also
22849           now cleans the clipboard before placing a new object onto it
22850         * RichTextBox.cs:
22851           - Implemented set_Rtf
22852           - Implemented set_SelectedRtf
22853           - Created InsertRTFFromStream() method to allow single code base
22854             for all properties and methods that insert RTF into document
22855           - Removed debug output
22856         * TextControl.cs:
22857           - Fixed Delete(int) to fix up line numbers
22858           - Fixed ReplaceSelection to combine start and end line
22859           - Fixed serious DeleteChars bug that would leave the document tree
22860             broken
22861           - Improved DumpTree with several logic checks to detect broken
22862             document trees
22863           - Removed debug lines
22864           - Fixed Caret.WordForward/WordBack moving code, now always also 
22865             updates caret.tag (fixes crash when word-selecting across tag
22866             boundaries via keyboard)
22867           - Added Insert() method for inserting multiline text into documents
22868           - Fixed DeleteChars() calculation errors that would cause a broken
22869             tag chain with multiple tag lines
22870           - DeleteChars() no longer crashes on multi-tag lines if not all tags
22871           - Split() no longer moves caret if split is at caret location
22872           - ReplaceSelection() now updates the cursor and re-displays it
22873           - ReplaceSelection() now uses new Insert() method to avoid code
22874             duplication
22875           - FormatText() can now handle formatting partial lines
22876         * TextBoxBase.cs:
22877           - Append now uses new TextControl.Insert() method (this avoids 
22878             duplicate code)
22879           - Implemented Ctrl-X (Cut) (
22880           - Implemented Ctrl-C (Copy)
22881           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
22882             regeneration when pasting text; roundtripping Copy&Paste within
22883             edit control still fails due to some calculation bugs in GenerateRTF)
22884           - The Delete key will now remove the current selection if it is visible
22885         * TextBox.cs: Removed debug lines
22886         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
22887           driver to be initialized and can't therefore be done via a static ctor)
22888
22889 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
22890
22891         * TextControl.cs: Added backend code for finding char arrays and strings
22892         * TextBoxBase.cs:
22893           - Added mouse wheel scroll support
22894           - Added support for VScroll and HScroll events
22895         * RichTextBox.cs:
22896           - Implemented all seven Find() variants
22897           - Implemented GetCharFromPosition()
22898           - Implemented GetCharIndexFromPosition()
22899           - Implemented GetLineFromIndex()
22900           - Implemented GetPositionFromCharIndex();
22901           - Implemented SaveFile for PlainText and UnicodeText
22902           - Fixed set_Font, now setting a new font applies that font to
22903             the whole document
22904           - Implemented generic Document to RTF converter
22905           - Implemented SaveFile for RichText format (still missing unicode
22906             conversion for non-ansi chars)
22907           - Implemented get_Rtf
22908           - Implemented get_SelectedRtf
22909
22910 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
22911
22912         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
22913           to allow any captures to be released before triggering OnClick. This
22914           way a click handler may capture the mouse without interference.
22915         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
22916           This way we send them even though X may not allow a grab (if the window
22917           isn't visible, for example)
22918
22919 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
22920
22921         * DataGridViewRowEventArgs.cs: DataGridView implementation
22922         * DataGridViewElement.cs: DataGridView implementation
22923         * DataGridViewComboBoxCell.cs: DataGridView implementation
22924         * DataGridViewDataErrorContexts.cs: DataGridView implementation
22925         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
22926         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
22927         * ImageLayout.cs: DataGridView implementation
22928         * DataGridViewComboBoxColumn.cs: DataGridView implementation
22929         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
22930         * DataGridViewSelectionMode.cs: DataGridView implementation
22931         * IDataGridViewEditingControl.cs: DataGridView implementation
22932         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
22933         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
22934         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
22935         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
22936         * DataGridViewColumnSortMode.cs: DataGridView implementation
22937         * DataGridView.cs: DataGridView implementation
22938         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
22939         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
22940         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
22941         * Padding.cs: DataGridView implementation
22942         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
22943         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
22944         * DataGridViewRowEventHandler.cs: DataGridView implementation
22945         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
22946         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
22947         * DataGridViewButtonCell.cs: DataGridView implementation
22948         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
22949         * DataGridViewEditMode.cs: DataGridView implementation
22950         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
22951         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
22952         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
22953         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
22954         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
22955         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
22956         * DataGridViewCellEventHandler.cs: DataGridView implementation
22957         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
22958         * DataGridViewCellStyleConverter.cs: DataGridView implementation
22959         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
22960         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
22961         * DataGridViewColumnEventArgs.cs: DataGridView implementation
22962         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
22963         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
22964         * QuestionEventArgs.cs: DataGridView implementation
22965         * IDataGridViewEditingCell.cs: DataGridView implementation
22966         * DataGridViewTriState.cs: DataGridView implementation
22967         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
22968         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
22969         * DataGridViewColumnCollection.cs: DataGridView implementation
22970         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
22971         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
22972         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
22973         * DataGridViewColumn.cs: DataGridView implementation
22974         * DataGridViewCellBorderStyle.cs: DataGridView implementation
22975         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
22976         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
22977         * DataGridViewRow.cs: DataGridView implementation
22978         * DataGridViewImageCellLayout.cs: DataGridView implementation
22979         * DataGridViewImageCell.cs: DataGridView implementation
22980         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
22981         * DataGridViewCheckBoxCell.cs: DataGridView implementation
22982         * DataGridViewHeaderCell.cs: DataGridView implementation
22983         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
22984         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
22985         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
22986         * DataGridViewTextBoxColumn.cs: DataGridView implementation
22987         * QuestionEventHandler.cs: DataGridView implementation
22988         * DataGridViewCellStyleScopes.cs: DataGridView implementation
22989         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
22990         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
22991         * DataGridViewCell.cs: DataGridView implementation
22992         * DataGridViewCellEventArgs.cs: DataGridView implementation
22993         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
22994         * DataGridViewCellStyle.cs: DataGridView implementation
22995         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
22996         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
22997         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
22998         * TextFormatFlags.cs: DataGridView implementation
22999         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
23000         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
23001         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
23002         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
23003         * DataGridViewButtonColumn.cs: DataGridView implementation
23004         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
23005         * HandledMouseEventArgs.cs: DataGridView implementation
23006         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
23007         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
23008         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
23009         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
23010         * DataGridViewRowCollection.cs: DataGridView implementation
23011         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
23012         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
23013         * DataGridViewHitTestType.cs: DataGridView implementation
23014         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
23015         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
23016         * DataGridViewColumnEventHandler.cs: DataGridView implementation
23017         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
23018         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
23019         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
23020         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
23021         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
23022         * DataGridViewContentAlignment.cs: DataGridView implementation
23023         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
23024         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
23025         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
23026         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
23027         * DataGridViewPaintParts.cs: DataGridView implementation
23028         * DataGridViewCellCollection.cs: DataGridView implementation
23029         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
23030         * DataGridViewImageColumn.cs: DataGridView implementation
23031         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
23032         * DataGridViewElementStates.cs: DataGridView implementation
23033         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
23034         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
23035         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
23036         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
23037         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
23038         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
23039         * DataGridViewRowHeaderCell.cs: DataGridView implementation
23040         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
23041         * DataGridViewTextBoxCell.cs: DataGridView implementation
23042         * DataGridViewBand.cs: DataGridView implementation
23043         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
23044         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
23045         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
23046         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
23047         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
23048         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
23049         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
23050         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
23051         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
23052         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
23053         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
23054
23055 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
23056
23057         * ThemeWin32Classic.cs: 
23058           - Draw the outside focus rectangle around buttons
23059           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
23060             doesn't use end caps for every dash of a line anymore. This
23061             workaround ignores the forecolor.
23062
23063 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
23064
23065         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
23066           endian safe.
23067
23068 2005-11-07  Jackson Harper  <jackson@ximian.com>
23069
23070         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
23071
23072 2005-11-07  Jackson Harper  <jackson@ximian.com>
23073
23074         * ScrollableControl.cs: Calculate the maximum and change vars
23075         (more) correctly so that scrollbars appear as a sensible size.
23076
23077 2005-11-04  Jackson Harper  <jackson@ximian.com>
23078
23079         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
23080         collection.
23081         * TreeView.cs: When the tree is sorted null out the top_node so
23082         that it is recalculated.
23083         - Use dotted lines instead of dashed lines to match MS better.
23084
23085 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
23086
23087         * ListView.cs: 
23088           - Implements key search for items. Useful when browsing files with FileDialog
23089           - When changing view mode or when clear the items reset scrollbar positions
23090
23091 2005-11-04  Jackson Harper  <jackson@ximian.com>
23092
23093         * CurrencyManager.cs: Implement the MetaDataChanged event, the
23094         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
23095         as to what the method may do as there is no real way of creating a
23096         derived CurrencyManager and calling the method. 
23097
23098 2005-11-03  Jackson Harper  <jackson@ximian.com>
23099
23100         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
23101         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
23102         method which seems to just be used internally to refresh the tabs.
23103
23104 2005-11-03  Jackson Harper  <jackson@ximian.com>
23105
23106         * TabControl.cs: Implement the remove method. Fix some broken
23107         comments.
23108
23109 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
23110
23111         * DateTimePicker.cs:
23112           - Added missing DateTimePickerAccessibleObject class
23113           - Added missing events
23114           - Added OnFontChanged method
23115         * Form.cs: Added missing attributes
23116         * TreeView.cs: Added missing attributes
23117
23118 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
23119
23120         * GridItemCollection.cs: Fix signatures
23121
23122 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
23123
23124         * XplatUI.cs: Updated build rev/date
23125         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
23126           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
23127         * Application.cs: Trigger context-specific ExitThread events
23128
23129 2005-11-03  Jackson Harper  <jackson@ximian.com>
23130
23131         * Menu.cs:
23132         * MainMenu.cs:
23133         * GridTableStylesCollection.cs:
23134         * Timer.cs:
23135         * TabPage.cs:
23136         * HelpProvider.cs:
23137         * StatusBar.cs:
23138         * MonthCalendar.cs: Signature fixes
23139
23140 2005-11-03  Jackson Harper  <jackson@ximian.com>
23141
23142         * TreeNodeCollection.cs: Remove should not be virtual.
23143         * TreeView.cs: Implement the last of the missing methods.
23144
23145 2005-11-03  Jackson Harper  <jackson@ximian.com>
23146
23147         * TreeNodeConverter.cs: Implement to get off my class-status back.
23148
23149 2005-11-03  Jackson Harper  <jackson@ximian.com>
23150
23151         * TreeView.cs: Hookup the bits for drag and drop.
23152         * TreeNode.cs: Don't cache the tree_view or index anymore, now
23153         that nodes can be moved from tree to tree easily this just causes
23154         all sorts of problems.
23155         * TreeNodeCollection: Don't need to give treenodes an index and
23156         treeview anymore when they are added, these are computed on the
23157         fly. Also make sure to remove a node before its added.
23158
23159 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
23160
23161         * TextControl.cs:
23162           - Added CaretSelection enum
23163           - Added comparison methods to Marker struct, makes selection code
23164             more readable
23165           - Added SelectionStart and SelectionEnd as 'moveable' location for
23166             the CaretDirection enum and handler
23167           - Added selection_prev variable to track optimized invalidation for
23168             word and line selection
23169           - Added SelectionVisible property (returns true if there is a valid 
23170             selection)
23171           - Switched CaretHasFocus to only display the caret if there is no
23172             visible selection
23173           - Avoiding StringBuilder.ToString to retrieve a single char, instead
23174             using the direct character index; should be much faster
23175           - Added various conditional debug statements
23176           - Fixed invalidation calculation for selection ranges
23177           - Added ExpandSelection() method to support word and line selection
23178           - Switched SetSelectionToCaret to use new Marker compare overloads
23179           - Added central IsWordSeparator() method to determine word 
23180             separators/whitespace and FindWordSeparator() to streamline common
23181             usage of IsWordSeparator()
23182         * TextBoxBase.cs:
23183           - Removed unneeded grabbed variable, it was just mirroring
23184             Control.Capture
23185           - No longer firing OnTextChanged event when Text setter is called,
23186             since the base will fire the event for us
23187           - Added handling of Ctrl-Up/Down selection
23188           - Added handling of Shift-Cursorkey selection
23189           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
23190             words
23191           - Added handling of Shift and Ctrl-Shift-Home/End selection
23192           - Removed some debug output
23193           - Added handling for single/double/tripple-click to place caret/
23194             select word/select line respectively (Fixes bug #76031)
23195           - Added support for drag expansion of word/line selection
23196         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
23197           current selection
23198
23199 2005-11-02  Jackson Harper  <jackson@ximian.com>
23200
23201         * X11Dnd.cs: If the drag is going to and from a MWF window just
23202         copy the data instead of sending it out through the X Selection
23203         mechanism.
23204
23205 2005-11-02  Jackson Harper  <jackson@ximian.com>
23206
23207         * X11Dnd.cs:
23208         * XplatUIX11.cs: When in a drag we don't want motion notify
23209         messages to get passed on to the other controls. This prevents
23210         mouse move messages from showing up in the drag source.
23211
23212 2005-11-02  Jackson Harper  <jackson@ximian.com>
23213
23214         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
23215         the correct button is release to end a drag.
23216         * XplatUIX11.cs: Make the button state internal so the drag system
23217         can access it.  Dragging needs to know about all button releases,
23218         not just left button.
23219
23220 2005-11-02  Miguel de Icaza  <miguel@novell.com>
23221
23222         * Form.cs (Icon): If the icon is null, reset the icon to the
23223         default value. 
23224
23225         * Cursor.cs: When writing the AND-mask bitmap do not include the
23226         number of colors, but hardcode those to two (black and white),
23227         fixes the loading of color cursors (Paint Dot Net).
23228
23229         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
23230         turn off autoscaling.
23231
23232         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
23233
23234 2005-11-02  Jackson Harper  <jackson@ximian.com>
23235
23236         * X11Dnd.cs: Make sure to send a status message if the pointer
23237         enters a control that can not accept a drop, otherwise the cursor
23238         isn't updated correctly. Also tried to compress the lines of code
23239         a bit.
23240
23241 2005-11-02  Jackson Harper  <jackson@ximian.com>
23242
23243         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
23244         set actions correctly.  This isn't perfect as XDND and win32 have
23245         some differences on how you allow actions. I'll clear this up by
23246         adding a path for drag from MWF to MWF windows.
23247         * XplatUIX11.cs: Hook into the dnd system.
23248
23249 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
23250
23251         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
23252         previously shown but they are no longer need it. Very obvious when 
23253         browsing files with FileDialog.
23254
23255 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
23256
23257         * Control.cs: We always need to call OnPaintBackground. We pretty much
23258           ignore AllPaintingInWmPaint and always do the painting there, whether 
23259           it's set or not, since we always ignore the WM_ERASEBKGND message 
23260           (which we don't generate on X11). This fixes #76616.
23261         * Panel.cs: Removed unneeded background painting. This happens properly
23262           in Control.cs already
23263
23264 2005-10-31  Mike Kestner  <mkestner@novell.com>
23265
23266         * Menu.cs: Add items to collection before setting their index.
23267         * MenuItem.cs : add range checking with ArgumentException like MS.
23268         [Fixes #76510]
23269
23270 2005-10-31  Jackson Harper  <jackson@ximian.com>
23271
23272         * ListBox.cs: Invalidate if the area is visible at all not just
23273         contained in the visible rect. Fixes unselection of semi visible
23274         items.
23275
23276 2005-10-31  Jackson Harper  <jackson@ximian.com>
23277
23278         * Control.cs: Consistently name the dnd methods. Make them
23279         internal so we can override them to match some MS behavoir
23280         internally.
23281         * Win32DnD.cs: Use the new consistent names.
23282
23283 2005-10-31  Jackson Harper  <jackson@ximian.com>
23284
23285         * TreeView.cs: Don't draw the selected node when we lose focus.
23286
23287 2005-10-31  Jackson Harper  <jackson@ximian.com>
23288
23289         * X11Dnd.cs: We still need to reset the state even though a full
23290         reset isn't being done, otherwise status's still get sent all over
23291         the place.
23292
23293 2005-10-31  Jackson Harper  <jackson@ximian.com>
23294
23295         * Control.cs: Make the dnd_aware flag internal so the dnd
23296         subsystem can check it. Catch exceptions thrown in dnd handlers to
23297         match MS behavoir.
23298         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
23299         * X11Dnd.cs: Handle null data in the converters. Set the XDND
23300         version when sending a XdndEnter. Use the control/hwnd dnd_aware
23301         flags to reduce the number of dnd enters/status's sent.
23302
23303 2005-10-31  Jackson Harper  <jackson@ximian.com>
23304
23305         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
23306
23307 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
23308
23309         * PictureBox.cs: Fixes 76512
23310
23311 2005-10-28  Jackson Harper  <jackson@ximian.com>
23312
23313         * X11Dnd.cs: Early implementation to support winforms being a drag
23314         source for data on X11. Also restructured the converters so they
23315         can go both ways now.
23316         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
23317         
23318 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
23319
23320         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
23321           clipboard requests
23322
23323 2005-10-27  Jackson Harper  <jackson@ximian.com>
23324
23325         * TreeNode.cs: Implement serialization so my DnD examples will work.
23326
23327 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
23328
23329         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
23330           TreeView.cs: Don't dispose objects that are not owned.
23331           
23332 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
23333
23334         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
23335           should retrieve the current cursor and report that, but XplatUI
23336           doesn't (yet) have an interface for that (and I'm not sure I even
23337           can, on X11)
23338         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
23339           until any message loop processing is done (and the WM_SETCURSOR
23340           replaces the cursor to the proper one)
23341         * XplatUIX11.cs: 
23342           - Fixed override behaviour, we can't set the cursor globally on X11, 
23343             just for our windows.
23344           - Invalidating the System.Drawing X11 display handle when we are
23345             shutting down
23346         * Control.cs: Fix to make csc happy
23347
23348 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
23349
23350         * TextBoxBase.cs: 
23351           - get_Text: Add last line (without trailing newline) to returned
23352             value (Fixes 76212)
23353           - get_TextLength: Count last line in returned length
23354           - ToString: Call Text property instead of duplicating code
23355
23356 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
23357
23358         * ImageList.cs: Dispose ImageAttributes objects.
23359
23360 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
23361
23362         * ImageList.cs: Use attribute constructors with less arguments where
23363           possible.
23364
23365 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
23366
23367         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
23368           Use typeof instead of strings when assembly is referenced. Added
23369           some more comments.
23370
23371 2005-10-21  Jackson Harper  <jackson@ximian.com>
23372
23373         * ListView.cs: Raise a double click event. Also tried to somewhat
23374         fix when the selectedindexchanged event is raised. Its still
23375         broken though.
23376
23377 2005-10-21  Jackson Harper  <jackson@ximian.com>
23378
23379         * TreeView.cs: New method to invalidate the plus minus area of a
23380         node without invalidating the whole node (maybe this can be used
23381         in some more places).
23382         * TreeNodeCollection.cs: When adding to an empty node we need to
23383         invalidate its plus minus area so the little block shows up.
23384         
23385 2005-10-21  Jackson Harper  <jackson@ximian.com>
23386
23387         * TreeView.cs: Make sure that when we invalidate a node the bounds
23388         are big enough to cover the selected box and the focus
23389         rectangle. Use a different colour for the lines connecting nodes
23390         so they show up with all themes.
23391
23392 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
23393
23394         * NativeWindow.cs: Don't call anything that could call into the driver,
23395           we might be on a different thread.
23396
23397 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
23398
23399         * Control.cs(Dispose): Since Dispose might run on a different thread,
23400           make sure that we call methods that could call into the driver via
23401           invoke, to avoid thread issues
23402
23403 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
23404
23405         * XplatUI.cs: Removed finalizer
23406         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
23407           not allowing to be called on the finalizer thread.
23408
23409 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
23410
23411         * ImageList.cs:
23412           - Reverted r51889 and r51891.
23413           - Added ImageListItem class that stores unmodified image items and image
23414             properties required to create list images until handle is created.
23415           - Added AddItem and moved image creation logic to AddItemInternal.
23416           - Added CreateHandle method that creates images based on unmodified items.
23417           - Added DestroyHandle that changes state to store unmodified items.
23418           - Add and AddStrip methods no more create handle.
23419           - ReduceColorDepth has no return value.
23420           - Dispose destroys handle.
23421           - Modified other methods to reflect the above changes.
23422           - Implemented key support.
23423           - Added profile 2.0 members and attributes.
23424           - Added private Reset and ShouldSerialize methods that provide the same
23425             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
23426             them as they are private.
23427           - Added some more comments about implementation details.
23428
23429 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
23430
23431         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
23432
23433 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
23434
23435         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
23436
23437 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
23438
23439         * DataGridDrawingLogic.cs: Fixes column hit calcultation
23440         * DataGridColumnStyle.cs: Remove debug message
23441
23442 2005-10-20  Jackson Harper  <jackson@ximian.com>
23443
23444         * TreeView.cs: We can always get input keys regardless of whether
23445         or not editing is enabled. They are used for navigation.
23446
23447 2005-10-20  Jackson Harper  <jackson@ximian.com>
23448
23449         * TreeNode.cs: Use the viewport rect for determining if a node
23450         needs to be moved for visibility. Don't use Begin/End edit. This
23451         calls a full refresh when its done.
23452         * TreeView.cs: New SetBottom works correctly.  Make the viewport
23453         rect property internal so the treenodes can see it. When clicking
23454         on a node we need to ensure that its visible because it might just
23455         be partly visible when clicked.
23456
23457 2005-10-20  Jackson Harper  <jackson@ximian.com>
23458
23459         * TreeNodeCollection.cs: Remove debug code.
23460
23461 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
23462
23463         * Datagrid.cs: Implements column sorting in Datagrid
23464         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
23465
23466 2005-10-20  Jackson Harper  <jackson@ximian.com>
23467
23468         * TreeNodeCollection.cs: Remove items properly. Update the correct
23469         area after removing them.
23470
23471 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
23472
23473         * Datagrid.cs: Should not call base.OnPaintBackground
23474
23475 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
23476
23477         * XplatUIX11.cs (GetMessage):
23478           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
23479             window instead of client window
23480           - Now properly calculates NC_xBUTTONUP message coordinates
23481           - ScreenToMenu now properly calculates it's coordinates of whole 
23482             window, since menus are in the whole window, not in the client
23483             window
23484           - Added WholeToScreen coordinate translation method
23485
23486 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
23487
23488         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
23489           want to return a message, loop back to the beginning of the function
23490           and grab the next real message to process instead.
23491
23492 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
23493
23494         * Splitter.cs: Properly set limits if no filler control is used
23495
23496 2005-10-19  Jackson Harper  <jackson@ximian.com>
23497
23498         * ColorDialog.cs: Don't show the help button if it is not enabled
23499         instead of disabling it (this is what MS does). Don't create the
23500         panel until the dialog is run, otherwise the vars (such as
23501         ShowHelp) are not set yet.
23502
23503 2005-10-19  Jackson Harper  <jackson@ximian.com>
23504
23505         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
23506         are reduced when adding nodes.
23507         * TreeNode.cs:
23508         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
23509         tree.
23510         
23511 2005-10-19  Jackson Harper  <jackson@ximian.com>
23512
23513         * FolderBrowserDialog.cs: End editing our treeview so the window
23514         actually gets refreshed.
23515
23516 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
23517
23518         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
23519           Obsoleted handling of WM_ERASEBKGND, now always draws our background
23520           inside of WM_PAINT
23521
23522 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23523
23524         * MenuAPI.cs: Returns after Hidding window
23525         * XplatUIX11.cs: Added TODO found while debugging menu issues
23526
23527 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
23528
23529         * XplatUIX11.cs: Do not re-map the whole window when it's size
23530           becomes non-zero unless it's supposed to be actually visible
23531
23532 2005-10-18  Jackson Harper  <jackson@ximian.com>
23533
23534         * TreeView.cs: We don't need to keep a count anymore.
23535         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
23536         use the Grow method.
23537
23538 2005-10-18  Jackson Harper  <jackson@ximian.com>
23539
23540         * TreeNodeCollection.cs: Insert is not supported on arrays, so
23541         implement it manually here.
23542
23543 2005-10-18  Jackson Harper  <jackson@ximian.com>
23544
23545         * ImageList.cs: Dont kill the list when the colour depth is
23546         changed, just change the colour depth of all the images.
23547         - Same goes for setting the image size. Just resize them all
23548         instead of killing the list softly.
23549
23550 2005-10-18  Jackson Harper  <jackson@ximian.com>
23551
23552         * Control.cs: Don't invalidate empty rectangles.
23553
23554 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23555
23556         * ListViewItem.cs:
23557           - Adds checked item to the Checked/Item lists (where empty before)
23558           - Do not add items to the Selected lists if they are already present
23559         * ListView.cs:
23560           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
23561           - When deleting items make sure that we delete them for the Selected
23562           and Checked list also.
23563
23564 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23565
23566         * Label.cs: Dispose objects no longer used
23567         * ThemeWin32Classic.cs: Dispose objects no longer used
23568
23569 2005-10-18  Jackson Harper  <jackson@ximian.com>
23570
23571         * TabControl.cs: Don't refresh the whole control when the tabs are
23572         scrolled, we just need to refresh the tab area.
23573
23574 2005-10-17  Jackson Harper  <jackson@ximian.com>
23575
23576         * XplatUIX11.cs: Compress code a little bit. Only calculate the
23577         after handle when we need it.
23578
23579 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
23580
23581         * Control.cs: When the parent size changes, recalculate anchor 
23582           positions. Partial fix for #76462
23583
23584 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
23585
23586         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
23587           drawn. Fixes #76462
23588
23589 2005-10-17  Jackson Harper  <jackson@ximian.com>
23590
23591         * MonthCalendar.cs: Don't create the numeric up down until our
23592         handle is created. Otherwise our handle is created in the
23593         constructor and we don't know if we are a WS_CHILD or WS_POPUP
23594         yet.
23595
23596 2005-10-17  Jackson Harper  <jackson@ximian.com>
23597
23598         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
23599         correctly.
23600
23601 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
23602         * TreeNode.cs : small logical fix (was using local var instead of field)
23603         
23604 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
23605
23606         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
23607
23608 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
23609
23610         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
23611
23612 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
23613
23614         * Control.cs: 
23615           - Re-implemented anchoring code. My first version was really broken.
23616             This fixes bug #76033. Unlike the previous implementation we will
23617             no longer have round errors since all numbers are calculated from
23618             scratch every time. Removed various anchor-related obsolete vars.
23619           - InitLayout no longer causes layout event firing and layout to be 
23620             performed
23621
23622 2005-10-16  Jackson Harper  <jackson@ximian.com>
23623
23624         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
23625         which was broken).
23626
23627 2005-10-16  Jackson Harper  <jackson@ximian.com>
23628
23629         * TabControl.cs: Remove debug code.
23630
23631 2005-10-16  Jackson Harper  <jackson@ximian.com>
23632
23633         * XEventQueue.cs: Increase the default queue size (very simple
23634         apps needed to grow the queue).
23635         * Hwnd.cs: No finalizer so we don't need to suppress
23636         finalization. Compute the invalid area manually so a new rectangle
23637         does not newto be created.
23638         * ScrollableControl.cs: Don't set any params (otherwise visibility
23639         isn't set correctly).
23640         * MdiChildContext.cs: New constructor takes the mdi parent so it
23641         doesn't have to be computed and avoids a crash on windows. Draw
23642         the window icon properly, and allow the text to be seen.
23643         * Form.cs: Use new MdiChildContext constructor. Make sure the
23644         child context isn't null in wndproc.
23645         * TabControl.cs: Don't set focus, this is muddling keyboard
23646         behavoir. Expand the tab rows when a window size increase will
23647         allow extra tabs to be seen. Don't allow tabs smaller than the
23648         width of a window to be scrolled out of view.
23649         * TreeNode.cs:
23650         * TreeView.cs: Use measure string to calculate a nodes width, the
23651         width is cached and only updated when the text or the font is
23652         changed. Don't check for expand/collapse clicks on the first level
23653         nodes if root lines are disabled.
23654         
23655 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
23656
23657         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
23658
23659 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
23660
23661         * DataGridBoolColumn.cs: fixes warning
23662
23663 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
23664
23665         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
23666         to match more to match more precisely the MS Net behavior
23667
23668 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
23669
23670         * Hwnd.cs: Added field to track if window is mapped
23671         * XplatUIX11.cs: 
23672           - Unmap windows if they become 0-size, re-map when 
23673             they are >0 again; fixes #76035
23674           - Re-set our error handler after initializing X11Desktop
23675             to override any error handlers Gtk or whatever was called
23676             may have set.
23677
23678 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
23679
23680         * CheckedListBox.cs: Removed unused vars
23681         * ListView.cs: Fixed signatures
23682         * RichTextBox.cs: Removed unused vars
23683         * TextBoxBase.cs: Removed unused vars
23684         * XplatUIWin32.cs: Removed unused vars
23685         * XplatUIX11.cs: Removed unused vars
23686         * XplatUI.cs: Updated version and date to latest published
23687
23688 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
23689
23690         * Cursor.cs: Added private .ctor to work around a bug in
23691           resourceset (Thanks to Geoff Norton for the help on this)
23692         * SplitterEventArgs.cs: Made fields accessible so we don't
23693           waste boatloads of objects and can reuse the same one
23694           in Splitter
23695         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
23696           any captions and borders when generating screen coordinates
23697         * Splitter.cs: Reimplemented control, now fully complete, uses
23698           rubberband drawing, supports and obeys all properties, has
23699           proper cursors
23700
23701 2005-10-13  Miguel de Icaza  <miguel@novell.com>
23702
23703         * Form.cs (Form): Setup default values for autoscale and
23704         autoscale_base_size;  Make these instance variables, not static
23705         variables. 
23706
23707         (OnLoad): on the first load, adjust the size of the form.
23708
23709 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
23710
23711         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
23712           width argument to DrawReversibleRectangle()
23713         * XplatUIWin32.cs, XplatUIX11.cs: 
23714           - Implemented width for DrawReversibleRectangle()
23715           - Added logic to DrawReversibleRectangle that recognizes a zero
23716             width or height and only draws a line in that situation
23717         
23718 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
23719
23720         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
23721         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
23722         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
23723           method (it uses our FosterParent window to get a graphics context)
23724
23725 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
23726
23727         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
23728           and SetWindowBackground methods
23729         * Control.cs:
23730           - Setting proper ControlStyles
23731           - We no longer call XplatUI.SetWindowBackground and XplatUI.
23732             EraseWindowBackground, instead we draw the window background
23733             ourselves in PaintControlBackground. This behaviour is
23734             required to match MS, where, when OnPaintBackground is not
23735             called, the background is not drawn.
23736           - Removed unneeded Refresh() in set_Text
23737         * Hwnd.cs: Dropped the ErasePending support. No longer needed
23738         * XplatUIX11.cs:
23739           - Created DeriveStyles method to translate from CreateParams to
23740             FormBorderStyle and TitleStyle, also handles BorderStyle (which
23741             matches FormBorderStyle enum values)
23742           - Consolidated SetHwndStyles and CalculateWindowRect border/title
23743             style calculations into single DeriveStyles method
23744           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
23745             from redrawing the whole window on any resize or expose.
23746           - Fixed CreateWindow usage of SetWindowValuemask. Before not
23747             all styles were applied to our whole/client window appropriately
23748           - Removed EraseWindowBackground() and SetWindowBackground() methods
23749           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
23750             no longer clear/redraw the background through X
23751           - Removed handling of erase_pending bit, we have no use for it (or
23752             so it seems)
23753         * XplatUIOSX.cs:
23754           - Removed generation and handling of WM_ERASEBKGND message
23755           - Removed EraseWindowBackground() and SetWindowBackground() methods
23756           - Removed handling of hwnd.ErasePending flag
23757         * XplatUIWin32.cs:
23758           - Removed EraseWindowBackground() and SetWindowBackground() methods
23759           - We no longer call EraseWindowBackground on PaintEventStart, we 
23760             ignore the fErase flag, erasing is handled in Control in the
23761             background handler
23762         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
23763           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
23764           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
23765           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
23766           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
23767           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
23768           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
23769
23770 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
23771
23772         * PropertyGrids.cs: Get sub properties
23773         * PropertyGridView.cs: Fix drawing code
23774
23775 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23776
23777         * ListBox.cs: Fixes 76383
23778
23779 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23780
23781         * DataGridTextBoxColumn.cs: Sets location and size before attachment
23782         * ThemeWin32Classic.cs: Fixes border drawing and calculations
23783         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
23784
23785
23786 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23787
23788         * ComboBox.cs: Fixes border drawing
23789
23790 2005-10-10  Miguel de Icaza  <miguel@novell.com>
23791
23792         * MimeIcon.cs: Ignore errors if the file can not be read.
23793
23794 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23795
23796         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
23797          - Fixed border calculations
23798          - Fixed horizontal scrolling in single column listboxes
23799          - Fixed drawing issues
23800
23801 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
23802
23803         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
23804           FormBorderStyle enum
23805         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
23806           code to determine FormBorderStyles from CreateParams
23807         * Form.cs:
23808           - Fixed bug where we'd set the wrong window styles if we were
23809             not creating an MDI window
23810           - Added call to XplatUI.SetBorderStyle when form borders are set
23811         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
23812         * Hwnd.cs:
23813           - Removed obsolete edge style
23814           - Switched from BorderStyle to FormBorderStyle
23815         
23816 2005-10-10  Jackson Harper  <jackson@ximian.com>
23817
23818         * Form.cs: Use the property to get the window handle instead of
23819         accessing it directly. Prevents a null reference exception.
23820
23821 2005-10-10  Jackson Harper  <jackson@ximian.com>
23822
23823         * TreeView.cs: Don't adjust the rect given to DrawString now that
23824         our libgdiplus draws correctly.
23825
23826 2005-10-08  Jackson Harper  <jackson@ximian.com>
23827
23828         * TreeView.cs: Don't try to find the clicked on node if there are
23829         no nodes in the tree.
23830
23831 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
23832
23833         * RichTextBox.cs:
23834
23835           restore
23836
23837 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
23838
23839         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
23840           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
23841           ErrorProvider.cs:
23842           Use ResPool for brushes and dispose System.Drawing objects that
23843           are not used anymore.
23844
23845 2005-10-07  Jackson Harper  <jackson@ximian.com>
23846
23847         * MdiChildContext.cs: Use the new borders instead of drawing them
23848         ourselves.
23849
23850 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
23851
23852         * Calling UpdateBounds after changing the window's BorderStyle 
23853         since the style can change the ClientSize
23854
23855 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23856
23857         * Control.cs: Made PaintControlBackground virtual
23858         * Panel.cs: Overriding PaintControlBackground instead of using paint
23859           event; paint event method was interfering with 'real' users of the
23860           event.
23861
23862 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
23863
23864         * ThemeWin32Classic.cs: remove border drawing since it is handled
23865         by the base control class now and was causing double border drawing.
23866
23867 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23868
23869         * Panel.cs: Redraw our background on paint. Not a pretty solution,
23870           but it does seem to match MS behaviour. This fixes bug #75324
23871
23872 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23873
23874         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
23875           somewhat hackish looking
23876
23877 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23878
23879         * TextBoxBase.cs:
23880           - We now accept Enter even if AcceptEnter is false, if the containing
23881             form does not have an AcceptButton configured (fixes bug #76355)
23882           - Calculations are now fixed to no longer use Width/Height, but
23883             ClientSize.Width/Height, since we now support borders (this was
23884             a result of fixing borders and therefore bug #76166)
23885           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
23886             true (fixes bug #76354)
23887         
23888 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23889
23890         * Control.cs: 
23891           - Defaulting BorderStyle and setting it in XplatUI when our window 
23892             is created
23893           - Added enum check to InternalBorderStyle setter
23894         * XplatUIX11.cs: 
23895           - Added drawing of window borders
23896           - Now properly calculates WM decorations offset for toplevel 
23897             windows (fixes bug #74763)
23898         * XplatUIWin32.cs: 
23899           - Implemented BorderStyles for windows (we're letting win32 draw 
23900             the border for us)
23901           - Fixed the signature for SetWindowLong
23902         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
23903           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
23904           setting borders
23905         * UpDownBase.cs: Remove drawing of borders, this is handled by
23906           the driver, outside the client area
23907         * ListView.cs: Removed bogus border calculations. The control should
23908           be oblivious to borders, since those are not part of the client
23909           area. 
23910         * X11DesktopColors.cs: Commented out (currently) unneeded variables
23911         * ThemeWin32Classic.cs: Removed border calculations from ListView 
23912           drawing code
23913
23914 2005-10-06  Jackson Harper  <jackson@ximian.com>
23915
23916         * MdiChildContext.cs: Clear out the old virtual position remove
23917         all the unneeded calls to CreateGraphics.
23918
23919 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23920
23921         * TextControl.cs: Use proper color for highlighted text; fixes #76350
23922
23923 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23924
23925         * Form.cs: 
23926           - Added loading and setting of our new default icon
23927           - Only set icon if window is already created
23928
23929 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23930
23931         * Label.cs:
23932           - Do not explicitly set the foreground and background colors, to
23933             allow inheriting from parents (fixes #76302)
23934           - Use Control's InternalBorderStyle property to deal with borders
23935
23936 2005-10-06  Jackson Harper  <jackson@ximian.com>
23937
23938         * MdiChildContext.cs: Use the new xplatui function to draw a
23939         reversible rect.
23940
23941 2005-10-06  Jackson Harper  <jackson@ximian.com>
23942
23943         * Form.cs: Add the parent before creating the child context cause
23944         we need the parent when setting up the child.
23945
23946 2005-10-06  Jackson Harper  <jackson@ximian.com>
23947
23948         * FolderBrowserDialog.cs: redo the tree population code so a
23949         second thread isn't used. Should be a lot faster and more stable
23950         now.
23951
23952 2005-10-05  Jackson Harper  <jackson@ximian.com>
23953
23954         * TreeView.cs: There are no expand/collapse boxes if the node has
23955         no children.
23956
23957 2005-10-05  Jackson Harper  <jackson@ximian.com>
23958
23959         * X11DesktopColors.cs: Get menu colours for the gtk theme.
23960
23961 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
23962
23963         * FileDialog.cs: Fix InitialDirectory
23964
23965 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
23966
23967         * ComboBox.cs:
23968                 - Fixes changing between styles
23969                 - Fixes simple mode
23970                 - Fixes last item crashing when navigating with keyboard
23971
23972 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
23973
23974         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
23975
23976 2005-10-05  Jackson Harper  <jackson@ximian.com>
23977
23978         * TreeView.cs: If updating the root node do a full refresh.
23979         * TreeNode.cs: The root node should be expanded by default. Also
23980         added a utility prop to tell if we are the root node.
23981         * TreeNodeCollection.cs: Only refresh if the node we are being
23982         added to is expanded. Also added a comment on a potential
23983         optimization.
23984         
23985 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
23986
23987         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
23988           in dispose method. Fixes #76330
23989
23990 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
23991
23992         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
23993
23994                 - Implements vertical and horizontal scrolling using XplatUI
23995                 - Fixes keyboard navagation
23996                 - Fixes EnsureVisible
23997                 - Drawing fixes
23998                 - Handles and draws focus properly
23999
24000
24001 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
24002
24003         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
24004           Create handle. NET_2_0: Destroy handle when value is null.
24005
24006 2005-10-03  Jackson Harper  <jackson@ximian.com>
24007
24008         * ScrollBar.cs: My last scrollbar patch was broken. This is a
24009         revert and a new patch to prevent the thumb from refreshing so
24010         much.
24011
24012 2005-10-02  Jackson Harper  <jackson@ximian.com>
24013
24014         * ScrollBar.cs: Don't update position if it hasn't actually
24015         changed. This occurs when you hold down the increment/decrement
24016         buttons and the thumb gets to the max/min.
24017
24018 2005-10-01  Jackson Harper  <jackson@ximian.com>
24019
24020         * Form.cs:
24021         * MdiChildContext.cs:
24022         * MdiClient.cs: Implement ActiveMdiChild in Form.
24023
24024 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
24025
24026         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
24027
24028 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
24029
24030         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
24031           be found
24032
24033 2005-09-30  Jackson Harper  <jackson@ximian.com>
24034
24035         * ListBox.cs: Don't do a full refresh unless some data has
24036         actually changed.
24037
24038 2005-09-30  Jackson Harper  <jackson@ximian.com>
24039
24040         * TreeView.cs: Make sure that the checkboxes size is factored in
24041         even when not visible.
24042
24043 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
24044
24045         * FileDialog.cs: Fix Jordi's build break
24046
24047 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
24048
24049         * FileDialog.cs: 
24050                 - Use standard the Windows colours for the combobox as espected
24051                 - Dispose objects that use resouces when no longer need them
24052
24053 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
24054
24055         * X11DesktopColors.cs: Initial incomplete implementation
24056         * XplatUIX11.cs: Added call to initialize X11DesktopColors
24057
24058 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
24059
24060         * Theme.cs: 
24061           - Switched Theme color names to match the names defined in 
24062             System.Drawing.KnownColors. Life's hard enough, no need to make 
24063             it harder.
24064           - Added setters to all theme color properties so themes can set
24065             their color schemes. The setters also propagate the color changes
24066             to System.Drawing.KnownColors via reflection
24067         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
24068           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
24069           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
24070           use the new, more logical theme color names
24071         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
24072           post-NT colors
24073         * ThemeWin32Classic.cs:
24074           - Removed code to set the old classic Windows colors. Instead it
24075             now relies on the colors returned by System.Drawing.KnownColors
24076             which will be either modern static colors (Unix) or colors
24077             read from the user's configuration (Win32)
24078           - Updated to use the new, more logical theme color names
24079           - Switched DataGrid drawing code to use only Theme colors instead of
24080             a mix of System.Drawing.KnownColors and Theme colors
24081           - DrawFrameControl(): Removed code that fills the button area, the
24082             fill would overwrite any previous fill done by a control. This
24083             fixes bug #75338 
24084           - Added DrawReversibleRectangle() stub
24085         * ScrollableControl.cs: Set visible state to false when scrollbars
24086           are removed (pdn fix)
24087         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
24088           DrawReversibleRectangle() method to allow drawing primitive 
24089           'rubber bands'
24090         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
24091
24092 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24093
24094         * ImageList.cs: Add(Icon): Create handle.
24095
24096 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
24097
24098         * ListView.cs:
24099         * ThemeWin32Classic.cs:
24100                 - Fixes detail mode
24101                 - Sets clippings
24102                 - Issues with drawing
24103
24104 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24105
24106         * ImageList.cs: Moved RecreateHandle back to ImageList as event
24107           source has to be the ImageList.
24108
24109 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24110
24111         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
24112
24113 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24114
24115         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
24116
24117 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24118
24119         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
24120
24121 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
24122         * GridItem.cs: Fixed TODOs
24123         * GridItemCollection.cs: Added ICollection interface
24124
24125 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
24126
24127         * ImageList.cs: Resize icons when needed.
24128
24129 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
24130
24131         * ListViewItem.cs
24132                 - Fixes GetBounds and returns on screen rects
24133         * ListView.cs:
24134                 - Fixes vertical and horzintal scrolling of items
24135         * ThemeWin32Classic.cs:
24136                 - Fixes drawing
24137                 
24138 2005-09-29  Raja R Harinath  <harinath@gmail.com>
24139
24140         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
24141
24142 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
24143
24144         * ImageList.cs: Added comments about handle creation. Moved Handle,
24145           HandleCreated and OnRecreateHandle implementations to ImageCollection.
24146           Handle is created in Add methods.
24147
24148 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
24149          
24150         * DataGridDrawingLogic.cs: 
24151                 - Takes rows into account on Colum calculations
24152                 - Returns the column when clickig
24153         * DataGrid.cs:
24154                 - Fixes default HitTestInfo values
24155                 - Fixes HitTestInfo.ToString
24156                 - Fixes ResetBackColor          
24157         
24158 2005-09-28  Jackson Harper  <jackson@ximian.com>
24159
24160         * MdiChildContext.cs: Obey rules for fixed sized windows (no
24161         sizing or cursor changes). Also added some temp code to draw the
24162         titlebars text (Makes dev a little easier).
24163
24164 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
24165
24166         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
24167
24168 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
24169          
24170         * ListBox.cs: Fixes bug 76253
24171
24172 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
24173
24174         * ImageList.cs: Added comments about the current implementation. Added
24175           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
24176           Format32bppArgb to preserve transparency and can use Graphics.FromImage
24177           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
24178           with Bitmap.LockBits for better performance. Revised the whole file to
24179           match MS.NET behaviour and provide better performance. Non-public
24180           interface members are calling public members even when they throw
24181           NotSupportedException for better maintainability. Moved ColorDepth,
24182           ImageSize, ImageStream and TransparentColor implementations to
24183           ImageCollection for better performance as these properties are not used
24184           by ImageList.
24185         * ImageListStreamer.cs: Added a new internal constructor that takes an
24186           ImageList.ImageCollection and serializes Images based on
24187           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
24188           match ImageList property name.
24189
24190 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
24191
24192         * ListBox.cs: Fixes IndexFromPoint for last item
24193
24194 2005-09-27  Jackson Harper  <jackson@ximian.com>
24195
24196         * Form.cs: Set the position of new mdi children correctly.
24197
24198 2005-09-27  Jackson Harper  <jackson@ximian.com>
24199
24200         * MdiClient.cs: New mdi children need to be added to the back of
24201         the controls collection so the zorder is set correctly. Also add a
24202         count of all the child windows that have been created.
24203
24204 2005-09-27  Jackson Harper  <jackson@ximian.com>
24205
24206         * Form.cs (CreateParams): Setup MDI forms correctly.
24207
24208 2005-09-27  Jackson Harper  <jackson@ximian.com>
24209
24210         * MdiChildContext.cs:
24211         * MonthCalendar.cs:
24212         * UpDownBase.cs:
24213         * ListBox.cs:
24214         * ListView.cs:
24215         * TextBoxBase.cs:
24216         * TreeView.cs:
24217         * ScrollableControl.cs:
24218         * ComboBox.cs: Add implicit controls using the new implict control
24219         functionality in ControlCollection. Also try to block multiple
24220         control add in a suspend/resume layout to save some cycles.
24221         
24222 2005-09-27  Jackson Harper  <jackson@ximian.com>
24223
24224         * Control.cs: Add functionality to the controls collection to add
24225         'implicit controls' these are controls that are created by the
24226         containing control but should not be exposed to the user. Such as
24227         scrollbars in the treeview.
24228         * Form.cs: The list var of the ControlsCollection is no longer
24229         available because of the potential of implicit controls getting
24230         ignored by someone accessing the list directly.
24231
24232 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
24233
24234         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
24235           loose it's parent. (Fixed bug introduced in r49103 when we added
24236           setting the child parent to null on Remove)
24237
24238 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
24239
24240         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
24241         * Splitter.cs: Added missing attributes for BorderStyle property.
24242         * TextBoxBase.cs: Marked Calculate* methods internal.
24243         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
24244         MS.NET.
24245
24246 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
24247          
24248         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
24249
24250 2005-09-25  Jackson Harper  <jackson@ximian.com>
24251
24252         * TreeView.cs: Update the node bounds correctly regardless of
24253         whether the node is visible.
24254
24255 2005-09-25  Jackson Harper  <jackson@ximian.com>
24256
24257         * ImageList.cs: Don't dispose the image after it is added to the
24258         image list. Only reformat images that need to be resized.
24259
24260 2005-09-25  Jackson Harper  <jackson@ximian.com>
24261
24262         * ImageList.cs: Don't set the format when changing the image.
24263
24264 2005-09-25  Jackson Harper  <jackson@ximian.com>
24265
24266         * TreeView.cs: We can't just assume the node has a font. Use the
24267         treeviews font if no node font is available.
24268
24269 2005-09-25  Jackson Harper  <jackson@ximian.com>
24270
24271         * TreeView.cs: Allow the scrollbars to be reset with negative
24272         values.
24273         - Don't add scrollbars to negative sized windows.
24274
24275 2005-09-23  Jackson Harper  <jackson@ximian.com>
24276
24277         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
24278         old Mono.Posix. Also remove some stray code that shouldn't have
24279         been committed.
24280
24281 2005-09-23  Jackson Harper  <jackson@ximian.com>
24282
24283         * TreeView.cs: Attempt at proper sizing of the horizontal
24284         scrollbar. Also don't resize the scrollbars unless they are
24285         visible.
24286
24287 2005-09-23  Jackson Harper  <jackson@ximian.com>
24288
24289         * TreeView.cs: We don't need to expand the invalid area when the
24290         selection changes, as this is all drawn in the node's bounding
24291         box. The area needs to be expanded (previous typo was contracting
24292         it) when the focus rect moves.
24293
24294 2005-09-23  Jackson Harper  <jackson@ximian.com>
24295
24296         * TreeView.cs: Display the selection box under the correct
24297         circumstances. We were rendering white text with no selection box
24298         before.
24299
24300 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
24301
24302         * TextControl.cs(Split): Now updates selection start/end if it points 
24303           into a line that's being split. Fixes a FIXME and bug #75258
24304
24305 2005-09-23  Jackson Harper  <jackson@ximian.com>
24306
24307         * Binding.cs:
24308         * ListControl.cs: Don't use the path when retrieving binding
24309         managers from the binding context. My bat sense tells me that the
24310         path is only used on insertion.
24311
24312 2005-09-22  Jackson Harper  <jackson@ximian.com>
24313
24314         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
24315
24316 2005-09-22  Jackson Harper  <jackson@ximian.com>
24317
24318         * Splitter.cs: There are special cursors used for splitting.
24319         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
24320
24321 2005-09-22  Jackson Harper  <jackson@ximian.com>
24322
24323         * Splitter.cs: Change the cursor appropriately when the splitter
24324         is moused over, so the user actually knows there is a splitter
24325         there.
24326
24327 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24328
24329        * Label.cs : Fix ToString method to give same output as MS.NET
24330
24331 2005-09-22  Jackson Harper  <jackson@ximian.com>
24332
24333         * TreeView.cs: Create the scrollbars when the handle is created
24334         and add them right away, just make them invisble. Also account for
24335         the window being shrunk vertically to the point that the vert
24336         scrollbar needs to be added.
24337         - Remove some 0.5 adjustments to get around anti aliasing issues.
24338         
24339 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
24340          
24341         * MainMenu.cs: Fixes default value
24342         * MenuItem.cs: Fixes default value
24343
24344 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
24345
24346         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
24347
24348 2005-09-21  Jackson Harper  <jackson@ximian.com>
24349
24350         * Control.cs: Don't try to set the border style on the window if
24351         it hasn't been created. When the window is created the border
24352         style will be used.
24353
24354 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
24355
24356         * Control.cs (Update): Don't call XplatUI if we don't have a
24357           window handle yet
24358
24359 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
24360
24361         * ContainerControl.cs: Instead of throwing an exception, print
24362           a one-time warning about Validate not being implemented
24363         * XplatUIWin32.cs: Removed debug output
24364
24365 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
24366
24367         * Control.cs: Only set XplatUI background if we expect the windowing
24368           system to handle the background. This stops controls that draw their
24369           own background from flickering
24370
24371         * XplatUIX11.cs: Support custom visuals and colormaps for window 
24372           creation. This allows, amongst other things, using MWF X11 windows 
24373           with OpenGL.
24374
24375 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
24376
24377         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
24378           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
24379           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
24380           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
24381           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
24382           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
24383           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
24384           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
24385           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
24386           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
24387           GridColumnStylesCollection.cs, 
24388           IDataGridColumnStyleEditingNotificationService.cs,
24389           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
24390           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
24391           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
24392           TreeNodeCollection.cs, AmbientProperties.cs, 
24393           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
24394           DataObject.cs, ErrorProvider.cs, Splitter.cs,
24395           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
24396           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
24397           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
24398           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
24399           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
24400           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
24401           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
24402           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
24403           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
24404           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
24405           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
24406           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
24407           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
24408           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
24409           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
24410           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
24411           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
24412           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
24413           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
24414           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
24415           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
24416           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
24417           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
24418           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
24419           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
24420           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
24421           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
24422           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
24423           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
24424           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
24425           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
24426           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
24427           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
24428           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
24429           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
24430
24431 2005-09-21  Jackson Harper  <jackson@ximian.com>
24432
24433         * TreeNode.cs: Call Before/After Expand not Collapse when
24434         expanding.
24435
24436 2005-09-20  Jackson Harper  <jackson@ximian.com>
24437         
24438         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
24439
24440 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
24441          
24442         * ListViewItem.cs:
24443                 - Fixes bug 76120
24444                 - Fixes proper storing of subitems
24445                 - Fixes not updated items
24446
24447 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
24448
24449         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
24450           things if our window handle isn't created yet. Also disabled 
24451           debug for TextBoxBase
24452
24453 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
24454
24455         * MenuAPI.cs: Remove filtering of events to allow menu usage
24456
24457 2005-09-20  Miguel de Icaza  <miguel@novell.com>
24458
24459         * Cursor.cs: Allow null to be passed to Cursor.Current.
24460
24461 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
24462
24463         * ThemeWin32Classic.cs:
24464           - Change some private methods/fields to protected virtual so that 
24465             they can be accessed and overriden in derived classes
24466           - First refactoring of some methods. Derived themes now don't 
24467             need to duplicate the complete code from ThemeWin32Classic
24468         * ThemeNice.cs:
24469           - Added nice StatusBar
24470           - Derive from ThemeWin32Classic and not Theme
24471           - Removed duplicate ThemeWin32Classic code
24472
24473 2005-09-20  Miguel de Icaza  <miguel@novell.com>
24474
24475         * Control.cs (ControlCollection.Add): If the value null is passed
24476         the control is ignored. 
24477
24478         Optimize this loop.
24479
24480 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
24481
24482         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
24483           PostQuitMessage state.
24484         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
24485
24486 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
24487
24488         * Application.cs: Our constructor will never get called, move 
24489           initialization to fields; fixes bug #75933
24490
24491 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24492
24493         * FileDialog.cs :
24494                 - Allow files to be selected properly using file name
24495                 combo box.
24496                 - Add ability to change diretory (absolute / relative)
24497                 using file name combo box.
24498
24499 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
24500          
24501         * ListBox.cs: 
24502                 - Fixes Multicolumn listboxes item wrong calculations
24503                 - Allows to click when only one item is in the listbox
24504                 - Fixes crash when no items using keyboard navigation
24505
24506 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
24507
24508         * ComboBox.cs: Reverted almost everything from the latest patch which
24509           broke ComboBox
24510
24511 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
24512         
24513         * ToolTip.cs:
24514                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
24515         * ComboBox.cs:
24516                 - When DropDownStyle is Simple, it does not show scrollbar 
24517                 to the last item of the list.
24518                 - When DropDownStyle is Simple, it crashed when the list was 
24519                 scrolled down with the down cursor key.
24520                 - Fixed a bug that when DropDownStyle is DropDownList, the 
24521                 selected item was not shown.
24522                 - The position of the selected item was not preserved when 
24523                 the next dropdown happened.
24524         * ThemeWin32Classic.cs:
24525                 - Items were wrapped at the right end.
24526         * CheckedListBox.cs:
24527                 - Fixed Add method
24528         * ListBox.cs:
24529                 - Items should be fully shown.
24530                 - When resizing and vertical scrollbar disappeared, the item 
24531                 of index 0 should be on the top of the list.
24532                 - GetItemRectangle should consider the size of ver. scrollbar
24533         * StatusBar.cs:
24534                 - SizingGrip area should not be allocated when it is not 
24535                 displayed.
24536                 - Now it reflects MinWidth of the containing panel and 
24537                 fixed a crash that happens when its width becomes so small.
24538
24539 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
24540
24541         * CheckedListBox.cs: Fixes bug 76028
24542         * ListBox.cs: Fixes bug 76028
24543
24544 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
24545
24546         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
24547         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
24548
24549 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
24550
24551         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
24552
24553 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24554
24555         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
24556
24557 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24558
24559         * IRootGridEntry.cs: Added
24560         * PropertyGridCommands.cs: Added
24561         * PropertiesTab.cs: Added missing methods and property
24562         * PropertyGridView.cs: Made class internal
24563         * PropertyGridTextBox.cs: Made class internal
24564
24565 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24566
24567         * MimeIcon.cs: Try to check some other environment variables
24568           if "DESKTOP_SESSION" returns "default"
24569
24570 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24571
24572         * ThemeNice.cs: Corrected background colors (e.g. menus)
24573         * ColorDialog.cs: Use correct background colors for controls
24574
24575 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24576
24577         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
24578
24579 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
24580
24581         * RichTextBox.cs: Added initial implementation
24582         * lang.cs: Removed. Was accidentally checked in long time ago
24583         * TODO: Removed. Contents were obsolete
24584
24585 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
24586                                                                                 
24587         * PropertiesTab.cs : Added
24588
24589 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
24590                                                                                 
24591         * PropertyGrid.cs : Update
24592         * PropertyGridView.cs : Update
24593         * System.Windows.Forms.resx : Added images and strings
24594
24595 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
24596
24597         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
24598  
24599 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
24600
24601         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
24602           a busy loop right after the Ungrab the X11 display is otherwise 
24603           blocked
24604
24605 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
24606
24607         * ThemeWin32Classic.cs: Optimise the use of clipping
24608
24609 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
24610
24611         * DataGrid.cs: fixes recursion bug
24612
24613 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
24614
24615         * ThemeNice.cs: 
24616           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
24617           - Cleanup
24618
24619 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
24620
24621         * ThemeNice.cs: Draw nice ProgressBars
24622
24623 2005-09-01  Miguel de Icaza  <miguel@novell.com>
24624
24625         * VScrollBar.cs: Another buglet found by Aaron's tool. 
24626
24627         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
24628         bug finder.
24629
24630 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
24631
24632         * ThemeNice.cs:
24633           - Added nicer menu drawing
24634           - Updated DrawTab
24635           - some refactoring
24636
24637 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
24638
24639         * CreateParams.cs (ToString): Made output match MS
24640         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
24641             handle is already created (to avoid forcing window creation)
24642         * XplatUIX11.cs: Set window text to caption after creating window,
24643           in case Text was set before window was created
24644         * Form.cs: Use this.Text instead of a static string as caption
24645
24646 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24647
24648         * NotifyIcon.cs: Don't set the window to visible; this screws
24649           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
24650           OnPaint without a bitmap)
24651         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
24652           happen very often anyway; we could add the check to the WM_PAINT 
24653           event generation code
24654
24655 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
24656
24657         * NotifyIcon.cs: Fill the icon area with a background color, to 
24658           avoid 'residue' when transparent icons are drawn
24659         * XplatUIX11.cs:
24660           - Handle whole_window == client_window when destroying windows
24661           - SystrayAdd(): Set client_window to whole_window value to
24662             get mouse and other events passed to NotifyIcon
24663
24664 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24665
24666         * Form.cs: Set proper default for Opacity property
24667         * NotifyIcon.cs:
24668           - ShowSystray(): Don't bother creating telling the OS
24669             about the systray item if no icon is provided
24670           - Now handles WM_NCPAINT message to deal with whole/client window
24671             split
24672           - Create window as visible to not get caught by Expose optimization
24673         * Hwnd.cs: Removed debug message
24674         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
24675           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
24676             PaintEventStart/End to use new client argument
24677         * TextBoxBase.cs:
24678           - Commented out debug messages
24679           - Switched PaintEventStart/End to use new client argument
24680         * XplatUI.cs: Added client window bool to PaintEventStart()/
24681           PaintEventEnd() calls, to support drawing in non-client areas
24682         * XplatUIDriver.cs: 
24683           - Added client window bool to PaintEventStart()/PaintEventEnd() 
24684             calls, to support drawing in non-client areas
24685           - Added conditional compile to allow using MWF BeginInvoke 
24686             on MS runtime
24687         * XplatUIX11.cs:
24688           - Added some conditional debug output
24689           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
24690             whole/client window split
24691           - Implemented handling of client argument to PaintEventStart()/End()
24692         * Control.cs:
24693           - Throw exception if BeginInvoke() is called and the window handle
24694             or one of the window's parent handles is not created
24695           - Added conditional compile to allow using MWF BeginInvoke on
24696             MS runtime
24697           - get_Parent(): Only sets parent if handle is created. This avoids
24698             forcing window handle creation when parent is set.
24699           - Now fires Layout and Parent changed events in proper order
24700           - Switched to use Handle instead of window.Handle for Z-Order setting,
24701             the get_Parent() patch above causes us to possibly get null for 'window'
24702           - Implemented handling of client argument to PaintEventStart()/End()
24703           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
24704             default handling)
24705           - Now sends a Refresh() to all child windows when Refresh() is called
24706
24707 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
24708
24709         * Form.cs: Added (non-functional) Opacity property
24710         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
24711
24712 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
24713         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
24714           use export MONO_THEME=nice to activate it.
24715           Currently supported controls:
24716           - Button
24717           - ComboBox
24718           - ScrollBar
24719           - TabControl (TabAlignment.Top only, other will follow)
24720         * ThemeEngine.cs: Add theme nice
24721         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
24722           if enabled
24723
24724 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
24725
24726         * Splitter.cs: Resize docked control and its neighbor.
24727
24728 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
24729         -- Making Windows with Menus layout correctly --
24730         * Form.cs : The first leg of the fix
24731                 Menu setter - adjust Client Size as needed to make space for the menu
24732                 SetClientSizeCore - doesn't call base version to be able to pass the 
24733                         menu handle to XplatUI.CalculateWindowRect
24734         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
24735         * XplatUIX11.cs: The critical second leg of the fix
24736                 GetWindowPos needs to use a recalculated client_rect
24737                 so that resizing the window doesn't break layout of child controls. 
24738                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
24739                 Lots of \t\n killed
24740
24741 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24742
24743         * Label.cs: Now properly recalculates width and height on Font and Text
24744           changes if AutoSize is set
24745
24746 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
24747         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
24748
24749 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
24750
24751         * ImageList.cs: Makes ToString method compatible with MS
24752
24753 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
24754
24755         * MenuAPI.cs: fixes bug 75716
24756
24757 2005-08-11 Umadevi S <sumadevi@novell.com>
24758         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
24759
24760 2005-08-11 Umadevi S <sumadevi@novell.com>
24761         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
24762
24763 2005-08-10  Umadevi S <sumadevi@novell.com>
24764         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
24765
24766 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
24767
24768         * Menu.cs: fixes bug 75700
24769         * MenuAPI.cs: fixes navigation issues
24770
24771 2005-08-09  Umadevi S <sumadevi@novell.com>
24772         * CheckedListBox.cs - simple fix for GetItemChecked.
24773
24774 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
24775
24776         * ComboBox.cs: Serveral fixes
24777         * ListBox.cs: Serveral fixes
24778
24779 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
24780
24781         * ComboBox.cs: Fixes FindString methods and GetItemHeight
24782         * ListBox.cs: Fixes FindString methods
24783
24784 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
24785
24786         * DataGrid.cs: fixes bugs exposed by new tests
24787
24788 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
24789
24790         * Mime.cs: Compile Mono assembly references only if compiling
24791           with Mono (Allows to build with VS.Net again)
24792
24793 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
24794
24795         * Control.cs (PaintControlBackground): Draw background image
24796         corrrectly.
24797         (CheckForIllegalCrossThreadCalls): Stubbed.
24798         
24799         * Form.cs (OnCreateControl): Center when should be centered.
24800         
24801         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
24802
24803 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
24804
24805         * Binding.cs: Binding to properties should be case unsensitive
24806
24807 2005-07-18 vlindos@nucleusys.com
24808
24809         * DataGrid.cs: fixes setmember order
24810
24811 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
24812
24813         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
24814         * FileDialog.cs: FileDialog is now resizable and uses the new
24815           MimeIconEngine
24816
24817 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
24818
24819         * DataGridTextBoxColumn.cs: default value
24820         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
24821         * GridTableStylesCollection.cs: fixes checking MappingName
24822         * DataGridDrawingLogic.cs: fixes drawing logic issues
24823         * DataSourceHelper.cs: rewritten to make compatible with more data sources
24824         * DataGrid.cs: fixes    
24825
24826 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
24827
24828         * MimeGenerated.cs: Use case sensitive comparer for
24829           NameValueCollections
24830
24831 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
24832
24833         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
24834         * ThemeWin32Classic.cs: bug fixes, code refactoring
24835         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
24836         * DataGrid.cs: bug fixes, code refactoring
24837         * DataGridTextBox.cs: bug fixes, code refactoring
24838         * DataGridColumnStyle.cs:  bug fixes, code refactoring
24839         * Theme.cs:  bug fixes, code refactoring
24840
24841 2005-07-01  Peter Bartok  <pbartok@novell.com> 
24842
24843         * TextControl.cs: Quick fix for the reported crash on ColorDialog
24844           and other text box usage
24845
24846 2005-07-01  Jackson Harper  <jackson@ximian.com>
24847
24848         * TabControl.cs: Make sure the bottom of the tab covers the pages
24849         border.
24850
24851 2005-06-30  Peter Bartok  <pbartok@novell.com> 
24852
24853         * Form.cs (ShowDialog): Assign owner of the dialog
24854         * TextBoxBase.cs: Always refresh caret size when deleting, caret
24855           might have been moved to a tag with different height
24856
24857 2005-06-30  Jackson Harper  <jackson@ximian.com>
24858
24859         * Form.cs: Don't create an infinite loop when setting focus
24860         * MenuItem.cs: Don't dirty the parents if we don't have any
24861
24862 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
24863
24864         * LibSupport.cs: Rename
24865
24866 2005-06-29  Peter Bartok  <pbartok@novell.com>
24867
24868         * TextBoxBase.cs: Re-align caret after deleting a character
24869         * TextControl.cs:
24870           - DeleteChars(): Ensure that tag covers the provided position
24871           - StreamLine(): Drop reference for dropped tag
24872
24873 2005-06-29  Peter Bartok  <pbartok@novell.com> 
24874
24875         * TextControl.cs: 
24876           - Selections now work properly, anchoring at the initial location
24877             and properly extending in either direction (SetSelectionToCaret(),
24878             SetSelectionStart() and SetSelectionEnd())
24879           - No longer redraws the whole control on selection change, now
24880             calculates delta between previous and new selection and only
24881             invalidates/redraws that area
24882           - Fixed FindPos() math off-by-one errors
24883           - Changed DeleteChars() to verify the provided tag covers the
24884             provided position, selections may have a tag that doesn't cover
24885             the position if the selection is at a tag border
24886           - Fixed off-by-one errors in DeleteChars()
24887           - Added missing streamlining check in DeleteChars() to remove
24888             zero-length tags
24889           - Implemented Invalidate() method, now properly calculates exposures
24890             between two given lines/positions
24891           - Implemented SetSelection()
24892           - Obsoleted and removed FixupSelection()
24893           - Improved RecalculateDocument() logic, removing code duplication
24894
24895 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24896
24897         * LibSupport.cs: changes to match different input/output arguments.
24898
24899 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24900
24901         * LibSupport.cs: added libsupport.so init routine.
24902
24903 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
24904         
24905         * ControlBindingsCollection.cs
24906                 - Throws an exception on null datasource when adding
24907                 - Checks for duplicated bindings when adding
24908
24909 2005-06-28  Jackson Harper  <jackson@ximian.com>
24910
24911         * TreeView.cs (OnKeyDown): Support left and right properly
24912         (navigates as well as expanding and collapsing.
24913         - Add support for Multiply, this expands all the selected nodes
24914         children.
24915         - Fix some tabbing.
24916
24917 2005-06-28  Jackson Harper  <jackson@ximian.com>
24918
24919         * TreeView.cs: Implement keyboard navigation, currently supports,
24920         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
24921         support for toggling checkboxes with the space bar.
24922
24923 2005-06-28  Jackson Harper  <jackson@ximian.com>
24924
24925         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
24926         tree.
24927
24928 2005-06-28  Jackson Harper  <jackson@ximian.com>
24929
24930         * TreeView.cs: Add missing event.
24931
24932 2005-06-27  Peter Bartok  <pbartok@novell.com> 
24933
24934         * TextControl.cs:
24935           - Made line ending size configurable (now allows for counting 
24936             lineendings as \n or \r\n)
24937           - Added margin to viewport to keep caret visible on right side
24938           - Fixed translation routines for line/pos to documentpos to consider
24939             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
24940           - Fixed some line-endings to be unix style
24941           - Fixed Document.FormatText to perform it's calculations 1-based
24942           - Added descriptions for a few methods that might otherwise get 
24943             used wrong
24944           - Added NOTE section with some basic conventions to remember at 
24945             the top of the file
24946           - Major fixup for RichTextBox selection drawing:
24947             * Fixed crashes when multiple tags on a single line were selected
24948             * fixed selection box drawing not overlaying text
24949             * fixed bogus offset calculation for tags not starting at index 1
24950             * Switched behaviour from using multiple Substrings of a 
24951               StringBuilder.ToString() to using multiple 
24952               StringBuilder.ToString(start, length) statements, hoping this is
24953               faster (kept original version commented out in the code, in case
24954               original version was faster)
24955         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
24956           alignment != Left
24957         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
24958           call it as well
24959
24960 2005-06-27  Jackson Harper  <jackson@ximian.com>
24961
24962         * TabControl.cs: Move to the left and right with the arrow
24963         keys. These keys don't cycle beyond first and last like
24964         tab. Refresh all the tabs when scrolling them to the left or
24965         right.
24966
24967 2005-06-27  Jackson Harper  <jackson@ximian.com>
24968
24969         * TabControl.cs:
24970           - ToString: Added method
24971           - CreateParams: Remove TODO and comment
24972           - OnKeyDown: Cycle through bounds properly.
24973           - SelectedIndex: Scroll to the right or left if we need to
24974           display the newly selected tab.
24975
24976 2005-06-23  Jackson Harper  <jackson@ximian.com>
24977
24978         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
24979         set.
24980
24981 2005-06-23  Jackson Harper  <jackson@ximian.com>
24982
24983         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
24984         CTRL-SHIFT-TAB, and HOME, END are there any others?
24985
24986 2005-06-23  Jackson Harper  <jackson@ximian.com>
24987
24988         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
24989
24990 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
24991         
24992         * DataGridTextBoxColumn.cs: fixes and enhancements
24993         * ThemeWin32Classic.cs: fixes and enhancements
24994         * DataGridBoolColumn.cs:  fixes and enhancements
24995         * DataGridDrawingLogic.cs:  fixes and enhancements
24996         * CurrencyManager.cs: fixes and enhancements
24997         * DataGrid.cs: fixes and enhancements
24998         * DataGridColumnStyle.cs:  fixes and enhancements
24999
25000 2005-06-22  Jackson Harper  <jackson@ximian.com>
25001
25002         * TabControl.cs: Add some missing methods that just call into the
25003         base. Make the TabPageCollection's IList interface behave in the
25004         same manner as the MS implementation.
25005
25006 2005-06-22  Peter Bartok  <pbartok@novell.com> 
25007
25008         * TextControl.cs: Added sanity check
25009         * TextBoxBase.cs: 
25010           - Fixed wrapping behaviour, don't set wrap on single line controls
25011             (this fixes the breakage of colordialog introduced in an earlier
25012              checkin)
25013           - Added rudimentary support for autoscrolling right-aligned controls
25014             (still needs fixing, also, center alignment scroll is missing)
25015
25016 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
25017         
25018         * ScrollBar.cs: Fixes thumbpos on Maximum values
25019
25020 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
25021         
25022         * PropertyGridView.cs: Pass context information to UITypeEditors 
25023
25024 2005-06-21  Peter Bartok  <pbartok@novell.com> 
25025
25026         * TextBoxBase.cs:
25027           - Now calling PositionCaret with absolute space coordinates
25028           - Enabled vertical scrolling
25029           - Better tracking of scrollbar changes, tied into WidthChange
25030             event
25031           - Improved cursor tracking
25032           - Removed debug output
25033         * TextControl.cs:
25034           - PositionCaret coordinates are now works in absolute space, not 
25035             the canvas
25036           - Improved tracking of document size
25037           - Added events for width and height changes
25038
25039 2005-06-21  Peter Bartok  <pbartok@novell.com>
25040
25041         * Form.cs: Set focus to active control when form is activated
25042         * TextControl.cs: 
25043           - Added word-wrap functionality to RecalculateLine() 
25044           - Added some short function descriptions for VS.Net to aid in
25045             writing dependent controls
25046           - Added Caret property, returning the current coords of the caret
25047           - Added ViewPortWidth and ViewPortHeight properties
25048           - Added Wrap property
25049           - Added CaretMoved event
25050           - Removed some old debug code
25051           - Split() can now create soft splits
25052           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
25053           - Added method to format existing text
25054           - Fixed size/alignment calculations to use viewport
25055           - RecalculateDocument now can handle changing line-numbers while
25056             calculating lines
25057
25058         * TextBox.cs:
25059           - Added some wrap logic, we don't wrap if alignment is not left
25060           - Added casts for scrollbar var, base class switched types to
25061             also support RichTextBoxA
25062           - Implemented handling of scrollbar visibility flags
25063
25064         * TextBoxBase.cs:
25065           - Switched scrollbars type to RichTextBoxScrollBars to support
25066             RichTextBox
25067           - Added tracking of canvas width/height
25068           - Switched scrollbars to be not selectable (to keep focus on text)
25069           - Added central CalculateDocument() method to handle all redraw
25070             requirements
25071           - Added ReadOnly support
25072           - Added WordWrap support
25073           - Fixed handling of Enter key (we now treat it as a DialogKey)
25074           - Fixed caret positioning when h or v scroll is not zero
25075           - Fixed placing/generation of vertical scrollbar
25076           - Added CalculateScrollBars() method to allow updating scrollbar
25077             limits and visibility
25078           - Fixed handling of horizontal scroll
25079           - Added handling of vertical scroll
25080           - Implemented auto-'jump' when caret moves to close to a left or
25081             right border and there is text to be scrolled into view (currently
25082             there's the potential for a stack overflow, until a bug in
25083             scrollbar is fixed)
25084
25085 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
25086         
25087         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
25088
25089 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
25090
25091         * Mime.cs:
25092         - added inodes.
25093         - return application/x-zerosize for files with size zero
25094           (if no extension pattern matches).
25095         - check matches collection for strings too.
25096         - return only the first mime type if the name value
25097           collection has more than one mime type.
25098
25099 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
25100         
25101         * PropertyGrid.cs: Cleaned up some TODOs
25102         * PropertyGridView.cs: Added support for UITypeEditors
25103
25104 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
25105         
25106         * DataGrid.cs: clears cached value
25107
25108 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
25109
25110         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
25111         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
25112         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
25113         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
25114         
25115 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
25116
25117         * ThemeWin32Classic.cs: fixes colour
25118
25119 2005-06-15  Peter Bartok  <pbartok@novell.com>
25120
25121         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
25122         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
25123         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
25124         * Control.cs: Added some MWFCategory and MWFDescription attributes
25125         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
25126
25127 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
25128
25129         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
25130         usage
25131
25132 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
25133
25134         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
25135         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
25136         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
25137         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
25138         * DataGrid.cs: default datagrid settings for Default Styles, fixes
25139         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
25140
25141 2005-06-13  Jackson Harper  <jackson@ximian.com>
25142
25143         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
25144         isn't printed when the user enables dropping. (X11 does accept
25145         drops).
25146         
25147 2005-06-13  Jackson Harper  <jackson@ximian.com>
25148
25149         * TreeView.cs: Remove some TODOS.
25150
25151 2005-06-13  Jackson Harper  <jackson@ximian.com>
25152
25153         * Form.cs: Hook into the mdi framework.
25154         * MdiClient.cs: Use the base control collections add method so
25155         parents get setup correctly. Set the default back colour and dock
25156         style.
25157         * MdiChildContext.cs: New class, this bad actor handles an
25158         instance of an MDI window. Right now there is only basic
25159         support. You can drag, close, and resize windows. Minimize and
25160         Maximize are partially implemented.
25161
25162 2005-06-13  Jackson Harper  <jackson@ximian.com>
25163
25164         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
25165         freaky when both vals are negative. NOTE: There are probably other
25166         places in XplatUIX11 that this needs to be done.
25167
25168 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
25169
25170         * DataGrid.cs: implement missing methods, move KeyboardNavigation
25171         * DataGridColumnStyle.cs: fixes signature
25172
25173 2005-06-12  Jackson Harper  <jackson@ximian.com>
25174
25175         * XplatUIX11.cs: Use sizing cursors similar to the ones on
25176         windows.
25177
25178 2005-06-11  Jackson Harper  <jackson@ximian.com>
25179
25180         * StatusBarPanel.cs: Signature cleanups. Implement
25181         BeginInit/EndInit.
25182
25183 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
25184
25185         * DataGridTextBoxColumn.cs: Honors aligment
25186         * GridColumnStylesCollection.cs: Contains is case unsensitive
25187         * GridTableStylesCollection.cs: several fixes
25188         * DataGridTableStyle.cs: default column creation
25189         * DataGridDrawingLogic.cs: fixes
25190         * CurrencyManager.cs: ListName property
25191         * DataGrid.cs: multiple styles support
25192         * DataGridColumnStyle.cs: fixes
25193         
25194
25195 2005-06-10  Peter Bartok  <pbartok@novell.com>
25196
25197         * Control.cs(Select): Moved SetFocus call to avoid potential
25198           loops if controls change the active control when getting focus
25199         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
25200           the up/down buttons
25201
25202 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
25203
25204         * ImageListConverter.cs: Implemented
25205
25206 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
25207
25208         * MonthCalendar.cs: Wired in NumericUpDown control for year
25209
25210 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
25211
25212         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
25213           DoubleClick events, since they are not meant to be fired.
25214
25215 2005-06-09  Peter Bartok  <pbartok@novell.com>
25216
25217         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
25218           Jonathan's standalone controls into MWF, implemented missing
25219           events, attributes and methods; added xxxAccessible classes
25220         * AccessibleObject.cs: Made fields internal so other classes
25221           can change them if needed
25222
25223 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
25224
25225         * UpDownBase.cs: Complete implementation
25226         * NumericUpDown.cs: Complete implementation
25227         * DomainUpDown.cs: Complete implementation
25228
25229 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
25230
25231         * DataGridTextBoxColumn.cs: drawing fixes
25232         * DataGridCell.cs: fixes ToString method to match MSNet
25233         * DataGridTableStyle.cs: fixes
25234         * DataGridBoolColumn.cs: fixes, drawing
25235         * DataGridDrawingLogic.cs: fixes, new methods
25236         * DataGridTextBox.cs: Keyboard and fixes
25237         * DataGrid.cs:
25238                 - Keyboard navigation
25239                 - Scrolling fixes
25240                 - Row selection (single, multiple, deletion, etc)
25241                 - Lots of fixes
25242         
25243 2005-06-07  Jackson Harper  <jackson@ximian.com>
25244
25245         * ThemeWin32Classic.cs: Clear the background area when drawing
25246         buttons.
25247
25248 2005-06-06  Peter Bartok  <pbartok@novell.com>
25249
25250         * ImageListStreamer.cs: Fixed signature for GetData
25251         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
25252         * ComboBox.cs:
25253           - Added missing ChildAccessibleObject class
25254           - Added missing OnXXXFocus overrides, switched to using those
25255             instead of the event handler
25256         * Control.cs:
25257           - Added Parent property for ControlAccessibleObject
25258           - Fixed signatures
25259           - Fixed attributes
25260           - Added ResetBindings()
25261         * ListBindingConverter.cs: Implemented some methods
25262         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
25263         * ImageList.cs: Implemented basic handle scheme, removed TODOs
25264         * ContainerControl.cs: Fixed signature, now subscribing to the
25265           ControlRemoved event instead of overriding the handler, LAMESPEC
25266         * CurrencyManager.cs: Added missing attribute
25267         * MonthCalendar.cs: Added missing properties
25268
25269 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
25270
25271         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
25272         
25273 2005-06-06  Gaurav Vaish and Ankit Jain
25274
25275         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
25276         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
25277         
25278 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
25279
25280         * Control.cs: fixes CreateParams Width / Height.
25281
25282 2005-06-05  Peter Bartok  <pbartok@novell.com>
25283
25284         * Win32DnD.cs: Removed compilation warnings
25285
25286 2005-06-05  Peter Bartok  <pbartok@novell.com>
25287
25288         * Control.cs (CreateParams): Since we don't know if one of the
25289           properties we use is overridden, lets make sure if we fail accessing
25290           we continue with a backup plan
25291
25292 2005-06-05  Peter Bartok  <pbartok@novell.com>
25293
25294         * Win32DnD.cs:
25295           - Removed debug output
25296           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
25297             struct
25298           - Plugged resource leak
25299         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
25300           MS size
25301
25302 2005-06-05  Peter Bartok  <pbartok@novell.com>
25303
25304         * XplatUIWin32.cs: Removed DnD code
25305         * Win32DnD.cs: Implemented drop source and drop target functionality
25306
25307 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
25308
25309         * UpDownBase.cs: remove duplicate addition of event, enable some code
25310         that was commented out.
25311         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
25312         Validate input when a key is pressed. It works fine now for every
25313         combination of Hexadecimal. Only missing some drawing love when sharing
25314         space with other controls.
25315
25316 2005-06-04  Peter Bartok  <pbartok@novell.com>
25317
25318         * Control.cs:
25319           - We need to pass a window for DragDrop, so enable callback events
25320           - Added DnD callback events when being a DragSource
25321         * XplatUI.cs (StartDrag): Added window handle argument
25322         * XplatUIDriver.cs (StartDrag): Added window handle argument
25323         * QueryContinueDragEventArgs: Made fields internally accessible so
25324           drivers can set them
25325         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
25326           can set them
25327
25328 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
25329
25330         * DataGridTextBoxColumn.cs: column text editing
25331         * DataGridTableStyle.cs: Respect columns styles created by the user
25332         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
25333         * DataGridBoolColumn.cs: bool column editing
25334         * DataGrid.cs: fixes to scrolling, properties, etc
25335         * DataGridTextBox.cs: handle keyboard
25336         * DataGridColumnStyle.cs: fixes
25337
25338 2005-06-02  Jackson Harper  <jackson@ximian.com>
25339
25340         * ImageListStreamer.cs: Somewhat broken implementation of
25341         GetObjectData. The RLE needs some work to match MS properly.
25342
25343 2005-06-02  Jackson Harper  <jackson@ximian.com>
25344
25345         * X11Dnd.cs: Attempting to keep at least one file in MWF
25346         monostyled.
25347
25348 2005-06-02  Peter Bartok  <pbartok@novell.com>
25349
25350         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
25351           that way
25352
25353 2005-06-02  Peter Bartok  <pbartok@novell.com>
25354
25355         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
25356         * XplatUI.cs: Added DoDragDrop() method
25357         * XplatUIDriver.cs: Added DoDragDrop() method
25358
25359 2005-06-02  Jackson Harper  <jackson@ximian.com>
25360
25361         * Splitter.cs: Implement BorderStyle.
25362
25363 2005-06-02  Jackson Harper  <jackson@ximian.com>
25364
25365         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
25366         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
25367         X11 using XDND.
25368
25369 2005-06-02  Peter Bartok  <pbartok@novell.com>
25370
25371         * DataObject.cs:
25372           - Added Data setter
25373           - Fixed broken insertion code for SetData, now also
25374             overwrites any existing entry of the same format name
25375         * Hwnd.cs: Added list of pointers that automatically gets
25376           freed when the window is disposed
25377         * XplatUI.cs: Call driver initialization method when loading
25378           a driver
25379         * Control.cs:
25380           - OnDragLeave takes EventArgs, not DragEventArgs
25381           - Added setting of WS_EX_ACCEPTFILES style when dropping is
25382             supported
25383           - Forces style update when drop state changes
25384         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
25385           not perfect since we cannot (yet) call the IDataObject.GetData()
25386           method, we keep getting 0x80004005 error, dunno why)
25387
25388 2005-06-02  Peter Bartok  <pbartok@novell.com>
25389
25390         * DragEventArgs.cs: Make fields internal so we can cache the
25391           object and re-set the fields from XplatUI
25392
25393 2005-06-02  Jackson Harper  <jackson@ximian.com>
25394
25395         * Control.cs: Add some internal methods so the DnD subsystem can
25396         raise DnD events. Also call into the driver when AllowDrop is set.
25397         * XplatUI.cs:
25398         * XplatUIDriver.cs: New method for setting whether or not a window
25399         is allowed to accept drag and drop messages.
25400                 
25401 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
25402         
25403         * ScrollBar.cs: Make sure that values sent in Scroll events
25404         are always between Maximum and Minimum.
25405
25406 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
25407
25408         * Menu.cs: Call MenuChanged when menuitem visibility has been
25409         changed.
25410         * MenuItem.cs: Rebuild menu when item is (not) visible.
25411         * MainMenu.cs: MainMenu has special MenuChanged.
25412         * Theme.cs: Caption and FrameBorderSize are not fixed.
25413         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
25414         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
25415         * XplatUIX11.cs,
25416         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
25417         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
25418
25419 2005-05-30  Jackson Harper  <jackson@ximian.com>
25420
25421         * DataFormat.cs: We can't statically initialize this stuff because
25422         it calls into the xplatui and could create a loop. So we lazy init
25423         it.
25424
25425 2005-05-28  Jackson Harper  <jackson@ximian.com>
25426
25427         * Control.cs: Proper implementation of Product(Name/Version).
25428
25429 2005-05-27  Jackson Harper  <jackson@ximian.com>
25430
25431         * DataObject.cs: Dont crash if no data is found.
25432
25433 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
25434         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
25435                 as per status page, guessing it should be set to true
25436
25437 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
25438
25439         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
25440         * DataGridTableStyle.cs: set proper formatting text, def header text
25441         * ThemeWin32Classic.cs: new themable paramaters
25442         * DataGridBoolColumn.cs: paint check box, get data, fixes
25443         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
25444         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
25445         * DataGridColumnStyle.cs: fixes
25446         * Theme.cs: new themable paramaters
25447                 
25448 2005-05-26  Peter Bartok  <pbartok@novell.com>
25449
25450         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
25451
25452 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25453         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
25454
25455 2005-05-24  Peter Bartok  <pbartok@novell.com>
25456
25457         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
25458           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
25459           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
25460           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
25461           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
25462           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
25463           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
25464           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
25465           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
25466           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
25467           missing attributes, etc
25468         * DataGridPreferredColumnWidthTypeConverter.cs: Added
25469
25470 2005-05-24  Peter Bartok  <pbartok@novell.com>
25471
25472         * Help.cs: Added, implemented trivial functions, throws up MessageBox
25473           when user tries to get help
25474         * DataObject.cs, DataFormats.cs, LinkArea.cs,
25475           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
25476           to suppress warnings
25477         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
25478           avoid unreachable code warning
25479
25480 2005-05-20  Peter Bartok  <pbartok@novell.com>
25481
25482         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
25483
25484 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25485
25486         * DataGridTextBoxColumn.cs: Basic painting methods
25487         * DataGridTableStyle.cs: Set table style in the column
25488         * ThemeWin32Classic.cs: Use Theme for colors
25489         * DataGridDrawingLogic.cs: Implement more drawing
25490         * DataGrid.cs: drawing, theming, enhacements, fixes
25491         * DataGridColumnStyle.cs: fixes, drawing
25492         * Theme.cs: theming for Datagrid
25493
25494 2005-05-20  Peter Bartok  <pbartok@novell.com>
25495
25496         * Cursor.cs: Implemented GetObjectData() method
25497
25498 2005-05-20  Peter Bartok  <pbartok@novell.com>
25499
25500         * Cursors.cs: Added setting of cursor name
25501         * Cursor.cs:
25502           - Implemented constructors
25503           - Implemented Draw and DrawStretched
25504           - Implemented Current property
25505           - Implemented == and != operators
25506           - Implemented Dispose()
25507           - Implemented ToString
25508           - Added missing attributes
25509         * XplatUIX11.cs:
25510           - Added missing reset for OverrideCursor when DoEvents is called
25511           - Fixed creation of cursor, logic was wrong
25512         * XplatUIWin32.cs:
25513           - Added missing reset for OverrideCursor when DoEvents is called
25514           - Fixed creation of cursor, bit arrays were swapped
25515         * Clipboard.cs: Removed obsolete MonoTODO attribute
25516
25517 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25518
25519         * ComboBox.cs: fixes OnSelectedItemChanged
25520         * ControlBindingsCollection.cs: fixes item range check
25521
25522 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25523
25524         * UpDownBase.cs:
25525                 - Calc preferred height properly
25526                 - Implement missing properties
25527                 
25528         * NumericUpDown.cs: Implement missing events
25529
25530 2005-05-19  Jackson Harper  <jackson@ximian.com>
25531
25532         * TabControl.cs: New method that resizes the tab pages before
25533         redrawing them. This as needed as the control is double buffered
25534         and sizing will not be recalculated unless ResizeTabPages is
25535         called.
25536         * TabPage.cs: Set base.Text instead of Text in the constructor so
25537         that UpdateOwner does not get called. Use the new Redraw method of
25538         TabControl instead of Refresh so the sizing is recalculated.
25539         * ThemeWin32Classic.cs: Draw the text for button tabs.
25540
25541 2005-05-19  Jackson Harper  <jackson@ximian.com>
25542
25543         * Control.cs: Paint control background images. Fix typo where
25544         PaintControlBackground was not getting called correctly.
25545
25546 2005-05-19  Peter Bartok  <pbartok@novell.com>
25547
25548         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
25549           I can investigate, apparently I broke FileDialog
25550
25551 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
25552
25553         * AxHost.cs: Some simple properties.
25554         * Control.cs: window must be accessible after ctor.
25555         * Form.cs: Added TransparencyKey property.
25556         * TextBoxBase.cs: Implemented Clear. Text property can be null.
25557         * XplatUIWin32.cs: SetBorderStyle implemented.
25558
25559 2005-05-18  Peter Bartok  <pbartok@novell.com>
25560
25561         * DataObject.cs: Entries are not global but particular to the
25562           DataObject, now it behaves that way
25563         * XplatUIWin32.cs: Implemented Clipboard methods
25564         * Clipboard.cs: Implemented
25565         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
25566         * XplatUIOSX.cs: Updated to final clipboard prototypes
25567         * XplatUIX11.cs: Implemented Clipboard methods
25568         * XplatUIDriver.cs: Updated to final clipboard prototypes
25569         * XplatUIStructs.cs:
25570           - Added BITMAPINFOHEADER struct
25571           - Added ClipboardFormats enum
25572         * X11Structs.cs:
25573           - Added ClipboardStruct
25574           - Added Atom enum items for clipboard types
25575           - Fixed atom types for Selection event structures
25576         * DataFormats.cs:
25577           - Added internal properties and methods for drivers to enumerate
25578             all known formats
25579           - Switched initialization method to allow drivers to assign their
25580             own IDs even for the MS predefined clipboard IDs
25581         * XplatUI.cs: Updated to final clipboard interface
25582
25583 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25584         * PropertyGridView.cs: Fixed compiler warnings.
25585
25586 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25587         * PropertyGrid.cs: Added some event calls
25588         * PropertyGridView.cs: Change drawing code to use double buffering
25589         * PropertyGridTextBox.cs: Changed Text property name
25590         * GridItem.cs: Added Bounds property.
25591         * GridEntry.cs: Added Bounds property.
25592
25593 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
25594
25595         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
25596         since GetType() may not return the correct type if the object is
25597         a remoting proxy.
25598
25599 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
25600
25601         * TreeNodeCollection.cs: fixes get/set item ranges
25602         
25603 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
25604
25605         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
25606                 
25607 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
25608
25609         * ComboBox.cs: Fix item range comparation
25610         * ListView.cs: Fix item range comparation
25611
25612 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
25613
25614         * FontDialog.cs:
25615           - Clear example panel when OnPaint is called
25616           - Better solution for displaying the example panel text
25617           - Select default indexes in the ListBoxes
25618
25619 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
25620
25621         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
25622
25623 2005-05-11  Peter Bartok  <pbartok@novell.com>
25624
25625         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
25626         * SelectionRangeConverter.cs: Implemented
25627         * PropertyGrid.cs: Fixed attribute value
25628         * Control.cs:
25629           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
25630           - Added Sebastien Pouliot's CAS Stack Propagation fixes
25631         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
25632           that's common to all drivers. First methods to go there are
25633           Sebastien Pouliot's CAS Stack Propagation helper methods
25634         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
25635           Sebastien Pouliot for CAS Stack Propagation
25636
25637 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
25638
25639         * OSXStructs.cs:
25640           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
25641
25642 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
25643
25644         * DataGridTextBoxColumn.cs: fixed some members
25645         * GridColumnStylesCollection.cs: indexed column is case insensitive
25646         * DataGridTableStyle.cs: fixes
25647         * ThemeWin32Classic.cs: add new theme parameter
25648         * Theme.cs: add new theme parameter
25649         * DataGridDrawingLogic.cs: Datagrid's drawing logic
25650         * DataGrid.cs: fixes, new internal properties, etc.
25651         * DataGridColumnStyle.cs: allows to set grid value
25652         *
25653
25654 2005-05-10  Peter Bartok  <pbartok@novell.com>
25655
25656         * AccessibleObject.cs:
25657           - Removed MonoTODO attribute on help, method is correct
25658           - Fixed Bounds property
25659         * AxHost.cs: Moved MonoTODO
25660         * ButtonBase.cs: Now setting AccessibleObject properties
25661         * RadioButton.cs: Setting proper AccessibleObject role
25662         * CheckBox.cs: Setting proper AccessibleObject role
25663         * ControlBindingsCollection.cs: Added properties, methods and attributes
25664         * DataFormats.cs: Fixed awkward internal API, and changed to enable
25665           userdefined DataFormats.Format items as well
25666         * ListControl.cs: Removed data_member from the public eye
25667         * OpenFileDialog.cs:
25668           - Made class sealed
25669           - Added missing attributes
25670         * SaveFileDialog.cs: Added missing attributes
25671         * ImageListStreamer.cs: Fixed code that caused warnings
25672         * LinkLabel.cs: Removed unreachable code
25673         * TreeView.cs: Fixed code that caused warnings
25674         * PropertyGridView.cs: Fixed code that caused warnings
25675         * GridColumnStylesCollection.cs: Added missing attributes
25676         * GridTableStylesCollection: Added missing attribute
25677         * PropertyManager: Added .ctor
25678         * SecurityIDType: Added
25679         * DataObject.cs: Implemented class
25680         * LinkArea.cs: Added missing attribute
25681
25682 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
25683
25684         * RadioButton.cs: call base method to allow to fire OnClick event
25685         * UpDownBase.cs: OnMouseUp call base method
25686         * CheckedListBox.cs: call base method before returning
25687         * TrackBar.cs: call base method before returning
25688         
25689
25690 2005-05-10  Peter Bartok  <pbartok@novell.com>
25691
25692         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
25693           for messages
25694
25695 2005-05-10  Peter Bartok  <pbartok@novell.com>
25696
25697         * DataFormats.cs: Implemented
25698         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
25699           XplatUIX11.cs: Added Clipboard APIs
25700         * XplatUIWin32.cs: Implemented Clipboard APIs
25701         * FolderBrowserDialog.cs: Added missing event, attributes
25702
25703 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
25704
25705         * CheckBox.cs: call base method to allow to fire OnClick event
25706
25707 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
25708
25709         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
25710
25711 2005-05-06  Peter Bartok  <pbartok@novell.com>
25712
25713         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
25714         * Screen.cs: Implemented
25715         * HelpNavigator.cs: Added
25716         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
25717           property
25718         * HelpProvider.cs: Implemented all we can do until we have a CHM
25719           help library (which means that "What's This" does work now)
25720
25721 2005-05-06  Jackson Harper  <jackson@ximian.com>
25722
25723         * XplatUIX11.cs: Fix waking up the main loop.
25724                 
25725 2005-05-05  Peter Bartok  <pbartok@novell.com>
25726
25727         * XplatUI.cs: Updated revision
25728         * Form.cs: Removed enless loop
25729         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
25730         * Label.cs (OnPaint): Added call to base.OnPaint()
25731         * ToolTip.cs: Made ToolTipWindow reusable for other controls
25732         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
25733         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
25734         * AxHost.cs: Added
25735         * ButtonBase.cs: Moved base.OnPaint() call to end of method
25736         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
25737           to ToolTip.ToolTipWindow for drawing and size methods; this allows
25738           reuse of ToolTipWindow by other controls
25739         * SizeGrip.cs: Moved base.OnPaint() call to end of method
25740         * XplatUIX11.cs: Now clipping drawing area (experimental)
25741         * PictureBox.cs: Moved base.OnPaint() call to end of method
25742         * Theme.cs: Fixed ToolTip abstracts to match new format
25743         * ErrorProvider.cs: Implemented
25744
25745 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
25746
25747         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
25748         * LinkLabel.cs:
25749                 - Adds cursors
25750                 - Handles focus
25751                 - Implements LinkBehavior
25752                 - Fixes many issues
25753
25754 2005-05-03  Jackson Harper  <jackson@ximian.com>
25755
25756         * ListView.cs: Calculate the scrollbar positioning on resize and
25757         paint, so they get put in the correct place.
25758
25759 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
25760
25761         * ColorDialogs.cs: The small color panels are now handled by
25762           SmallColorControl. This fixes drawing of the focus rectangle
25763           and adds a 3D border.
25764
25765 2005-05-03  Peter Bartok  <pbartok@novell.com>
25766
25767         * Control.cs: Modified version of Jonathan Chamber's fix for
25768           double-buffering
25769
25770 2005-05-03  Jackson Harper  <jackson@ximian.com>
25771
25772         * ListView.cs: Remove redraw variable. Control now handles whether
25773         or not a redraw needs to be done, and will only raise the paint
25774         event if redrawing is needed.
25775
25776 2005-05-03  Jackson Harper  <jackson@ximian.com>
25777
25778         * Splitter.cs: No decorations for the splitter form. Cache the
25779         hatch brush.
25780
25781 2005-05-03  Jackson Harper  <jackson@ximian.com>
25782
25783         * TreeView.cs: Use dashed lines to connect nodes. Use the
25784         ControlPaint method for drawing the focus rect instead of doing
25785         that in treeview.
25786
25787 2005-05-02  Peter Bartok  <pbartok@novell.com>
25788
25789         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
25790
25791 2005-04-29  Jackson Harper  <jackson@ximian.com>
25792
25793         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
25794         entire image buffer. Just clear the clipping rectangle.
25795
25796 2005-04-29  Jackson Harper  <jackson@ximian.com>
25797
25798         * ThemeWin32Classic.cs: Don't draw list view items that are
25799         outside the clipping rectangle.
25800
25801 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
25802
25803         * ListBox.cs: added horizontal item scroll
25804
25805 2005-04-29  Jackson Harper  <jackson@ximian.com>
25806
25807         * ThemeWin32Classic.cs: Remove some old debug code that was
25808         causing flicker with the new double buffering code.
25809
25810 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
25811
25812         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
25813         behave like combobox and comboboxlist (still not sure if this is
25814         correct though).
25815
25816 2005-04-28  Jackson Harper  <jackson@ximian.com>
25817
25818         * ThemeWin32Classic.cs: Don't fill the middle of progress
25819         bars. This fills areas outside of the clip bounds that don't need
25820         to be filled.
25821
25822 2005-04-28  Jackson Harper  <jackson@ximian.com>
25823
25824         * Control.cs: Don't expose functionality to touch the image buffers.
25825         * ProgressBar.cs:
25826         * ListView.cs: We do not need to (and no longer can) manipulate
25827         the image buffers directly. All of this is handled by Control.
25828
25829 2005-04-28  Peter Bartok  <pbartok@novell.com>
25830
25831         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
25832           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
25833           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
25834
25835 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
25836
25837         * Combobox:
25838                 - Adjust control's height for non-simple comboboxes (bug fix)
25839                 - Remove dead code
25840         * MenuAPI.cs: remove unused var
25841         * ScrollBar.cs: remove unsed var
25842                  
25843         * ListBox.cs: unselect items when clearing
25844
25845 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
25846
25847         * ListControl.cs: honors OnPositionChanged and default Selected Item
25848         * ListBox.cs: unselect items when clearing
25849
25850 2005-04-27  Jackson Harper  <jackson@ximian.com>
25851
25852         * X11Keyboard.cs: Initialize a default keyboard and give a warning
25853         if a "correct" keyboard is not found. This will make us not crash,
25854         but might give some users bad keyboard layouts...seems to be the
25855         same thing rewind does.
25856
25857 2005-04-27  Jackson Harper  <jackson@ximian.com>
25858
25859         * BindingManagerBase.cs: Attach the current/position changed
25860         handlers to their respective events.
25861
25862 2005-04-27  Jackson Harper  <jackson@ximian.com>
25863
25864         * Control.cs: Make sure that the first WM_PAINT does a full draw,
25865         not just a blit.
25866         * ThemeWin32Classic.cs: Don't fill the background for picture
25867         boxes. This could overright user drawing.
25868         * ComboBox.cs: Just fill the clipping rect not the entire client
25869         rect when drawing the background. This prevents pieces of the
25870         image buffer from getting overwritten and is theoretically faster.
25871
25872 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
25873
25874         * ComboBox.cs: Databinding support fixes, fire missing events
25875         * ListControl.cs: implement missing methods and properties, fixes
25876         * ThemeWin32Classic.cs: Databiding support on Drawing
25877         * CheckedListBox.cs: Databinding support fixes, fire missing events
25878         * ListBox.cs: Databinding support fixes, fire missing events
25879         
25880 2005-04-25  Peter Bartok  <pbartok@novell.com>
25881
25882         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
25883
25884 2005-04-25  Jackson Harper  <jackson@ximian.com>
25885
25886         * TreeView.cs: Use the horizontal scrollbars height not width when
25887         determining how much of the client area is available.
25888
25889 2005-04-25  Jackson Harper  <jackson@ximian.com>
25890
25891         * Control.cs: Double buffering is handled differently now. As per
25892         the spec, the extra buffer is created in the WM_PAINT message and
25893         passed down to the control's drawing code.
25894         * GroupBox.cs:
25895         * Label.cs:
25896         * CheckBox.cs:
25897         * ProgressBar.cs:
25898         * RadioButton.cs:
25899         * ColorDialog.cs:
25900         * ComboBox.cs:
25901         * PropertyGridView.cs:
25902         * UpDownBase.cs:
25903         * MessageBox.cs:
25904         * MenuAPI.cs:
25905         * ListView.cs:
25906         * ButtonBase.cs:
25907         * SizeGrip.cs:
25908         * ScrollBar.cs:
25909         * ListBox.cs:
25910         * TrackBar.cs:
25911         * ToolBar.cs:
25912         * PictureBox.cs:
25913         * DateTimePicker.cs:
25914         * StatusBar.cs:
25915         * TreeView.cs: Update to new double buffering system.
25916         * MonthCalendar.cs: Uncomment block, as Capture is now
25917         working. Update to new double buffering
25918         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
25919         * PaintEventArgs.cs: New internal method allows us to set the
25920         graphics object. This is used for double buffering.
25921         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
25922         rectangle. The internal paint_area var has been removed from
25923         StatusBar. The clipping rect should be used instead.
25924         * Theme.cs: Give the PictureBox drawing method a clipping rect.
25925         * TabPage.cs: The RefreshTabs method was removed, so just call the
25926         tab controls Refresh method now.
25927         * TabControl.cs: Update to new double buffering. Make sure the
25928         handle is created before sizing the tab pages, otherwise we will
25929         get stuck in a loop.
25930
25931 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
25932
25933         * LinkLabel.cs: Fix typo, bug #74719; patch
25934           from Borja Sanchez Zamorano
25935
25936 2005-04-22  Jackson Harper  <jackson@ximian.com>
25937
25938         * TreeNode.cs: Implement Handle stuff.
25939         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
25940
25941 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
25942
25943         * DataGridTextBoxColumn.cs: call base constructors, fixes
25944         * GridColumnStylesCollection.cs: missing events, methods, and functionality
25945         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
25946         * DataGridTableStyle.cs: implements create default column styles
25947         * DataGridBoolColumn.cs: which types can handle
25948         * DataGrid.cs: missing methods, fixes, new functionality
25949         * DataGridColumnStyle.cs: fixes
25950
25951 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
25952         * FolderBrowserDialog.cs:
25953         - Use a thread to fill the TreeView
25954         - Adjusted some sizes
25955
25956 2005-04-19  Peter Bartok  <pbartok@novell.com>
25957
25958         * LinkLabel.cs: (Re-)create the pieces when setting the Text
25959           property. Fixes #74360.
25960
25961 2005-04-19  Jackson Harper  <jackson@ximian.com>
25962
25963         * XEventQueue.cs: Lock when getting the lockqueue size.
25964         * PictureBox.cs: Call base OnPaint
25965         
25966 2005-04-19  Peter Bartok  <pbartok@novell.com>
25967
25968         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
25969           messages were no longer being processed (this broke BeginInvoke)
25970
25971           
25972 2005-04-18  Jackson Harper  <jackson@ximian.com>
25973
25974         * TreeView.cs: buglet that caused node images to get drawn
25975         regardless of whether or not they were in the clipping rectangle.
25976
25977 2005-04-18  Jackson Harper  <jackson@ximian.com>
25978
25979         * CurrencyManager.cs: There are four rules for GetItemProperties:
25980         - If the type is an array use the element type of the array
25981         - If the type is a typed list, use the type
25982         - If the list contains an Item property that is not an object, use
25983         that property
25984         - use the first element of the list if there are any elements in
25985         the list.
25986         
25987 2005-04-17  Jackson Harper  <jackson@ximian.oom>
25988
25989         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
25990         click. This handles offsets for scrolling properly and reduces
25991         memory. Also fixed GetNode to not offset now that TopNode works
25992         properly.
25993         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
25994         
25995 2005-04-17  Jackson Harper  <jackson@ximian.com>
25996
25997         * CursorConverter.cs: Initial implementation.
25998
25999 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
26000
26001         * ListControl.cs: work towards complex data binding support on ListControl
26002         * CurrencyManager.cs: work towards complex data binding support on ListControl
26003         * ListBox.cs: work towards complex data binding support on ListControl
26004
26005
26006 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
26007
26008         * GridTableStylesCollection.cs: fixes name and constructor
26009         * DataGridTableStyle.cs: fixes
26010         * DataGridBoolColumn.cs: fixes names and constructors
26011         * DataGrid.cs: define methods and properties. Some init implementations
26012         * DataGridCell.cs: define methods and properties. Some init implementations
26013         * GridTablesFactory.cs: Define methods and properties
26014
26015 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
26016
26017         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
26018         graphics port changes.  We still want the coordinates in global screen
26019         coordinates.
26020
26021 2005-04-14  Jackson Harper  <jackson@ximian.com>
26022
26023         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
26024         check plus minus or checkbox clicks unless those features are enabled.
26025
26026 2005-04-14  Jackson Harper  <jackson@ximian.com>
26027
26028         * TreeView.cs: Add methods for setting the top and bottom visible
26029         nodes. TreeNode::EnsureVisible uses these methods.
26030         * TreeNode.cs: Implement EnsureVisible
26031
26032 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
26033
26034         * Form.cs: Pospone menu assignation if the window has not been created yet
26035         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
26036         size and position
26037
26038 2005-04-12  Jackson Harper  <jackson@ximian.com>
26039
26040         * TreeView.cs: Set the TopNode properly when scrolling
26041         occurs. This has the added benifit of reducing the amount of
26042         walking that needs to be done when drawing. Also removed an old
26043         misleading TODO.
26044         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
26045         
26046 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
26047
26048         * Timer.cs: fixes interval setting when the timer is already enabled
26049         
26050 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
26051
26052         * FolderBrowserDialog.cs: First approach
26053
26054 2005-04-09  Peter Bartok  <pbartok@novell.com>
26055
26056         * FolderBrowserDialog: Added
26057
26058 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
26059
26060         * LinkLabel.cs: move drawing code into the theme
26061         * ThemeWin32Classic.cs: drawing code and painting background bugfix
26062         * Theme.cs: define DrawLinkLabel method
26063
26064 2005-04-05  Jackson Harper  <jackson@ximian.com>
26065
26066         * BindingContext.cs: Use weak references so these bad actors don't
26067         stay alive longer then they need to.
26068
26069 2005-04-05  Jackson Harper  <jackson@ximian.com>
26070
26071         * ListControl.cs: Basic implementation of complex databinding.
26072         * ComboBox.cs:
26073         * ListBox.cs: Add calls to ListControl databinding methods.
26074
26075 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
26076
26077         * FileDialog.cs:
26078           - Don't change PopupButtonState to Normal when the
26079             PopupButton gets pressed several times.
26080           - Renamed ButtonPanel to PopupButtonPanel
26081
26082 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
26083
26084         * ColorDialog.cs: Use cached objects instead of creating them
26085         * LinkLabel.cs: Use cached objects instead of creating them
26086         * Splitter.cs: Use cached objects instead of creating them
26087         * FontDialog.cs: Use cached objects instead of creating them
26088         * PropertyGridView.cs: Use cached objects instead of creating them
26089         * MessageBox.cs: Use cached objects instead of creating them
26090         * FileDialog.cs: Use cached objects instead of creating them
26091         * ThemeWin32Classic.cs: Use cached objects instead of creating them
26092         * TreeView.cs: Use cached objects instead of creating them
26093         
26094 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
26095
26096         * Control.cs: use Equals to compare the font since no == op
26097         * ScrollBar.cs: use Equals to compare the font since no == op
26098
26099 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
26100
26101         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
26102
26103 2005-04-01  Jackson Harper  <jackson@ximian.com>
26104
26105         * Binding.cs: Implement IsBinding.
26106         * BindingManagerBase.cs:
26107         * PropertyManager.cs:
26108         * CurrencyManager.cs: Add IsSuspended property.
26109
26110 2005-04-01  Jackson Harper  <jackson@ximian.com>
26111
26112         * Binding.cs: Had some IsAssignableFrom calls backwards.
26113
26114 2005-04-01  Jackson Harper  <jackson@ximian.com>
26115
26116         * Binding.cs: Handle null data members when pulling data.
26117         * PropertyManager.cs: Handle the data member being a property that
26118         does not exist.
26119
26120 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
26121
26122         * DataGridTextBoxColumn.cs: fixes signature
26123         * DataGrid.cs: calls right constructor
26124
26125 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
26126
26127         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
26128         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
26129         * GridTableStylesCollection.cs: implements GridTableStylesCollection
26130         * DataGridTableStyle.cs: implements DataGridTableStyle
26131         * DataGridBoolColumn.cs: implements DataGridBoolColumn
26132         * DataGridTextBox.cs: implements DataGridTextBox
26133         * DataGridColumnStyle.cs: implements DataGridColumnStyle
26134
26135 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
26136
26137         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
26138
26139 2005-03-29  Peter Bartok  <pbartok@novell.com>
26140
26141         * Application.cs:
26142           - Properly implemented CompanyName property
26143           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
26144             returns a path that includes CompanyName, ProductName and
26145             Version (fixes bug #70330)
26146
26147 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
26148
26149         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
26150           fixes bug #72588.
26151
26152 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
26153
26154         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
26155         
26156           - Added ReadOnly CheckBox
26157           - Further refactoring: moved some code from Open-/SaveFileDialog
26158             to FileDialog
26159
26160 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
26161
26162         * OpenFileDialog.cs: Fixed CheckFileExists
26163         * FileDialog.cs:
26164           Moved FileView and DirComboBox outside FileDialog class.
26165           They can now be used outside FileDialog
26166
26167 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
26168
26169         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
26170         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
26171
26172 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
26173
26174         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26175           - Added missing CreatePrompt property in SaveDialog
26176           - Overall SaveDialog handling should be better now
26177           - Added non standard ShowHiddenFiles property
26178           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
26179           - Added InitialDirectory and RestoreDirectory support
26180
26181 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
26182
26183         * FileDialog.cs: Made dirComboBox usable
26184
26185 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
26186
26187         * FileDialog.cs: Added Filter support (case sensitiv)
26188
26189 2005-03-24  Jackson Harper  <jackson@ximian.com>
26190
26191         * TabControl.cs: Need a couple more pixels for the lines.
26192
26193 2005-03-23  Jackson Harper  <jackson@ximian.com>
26194
26195         * TabControl.cs: Give the tab page focus when it is selected.
26196
26197 2005-03-23  Jackson Harper  <jackson@ximian.com>
26198
26199         * TabControl.cs: Account for the drawing of tabs borders when
26200         invalidating. If the slider was clicked dont do click detection on
26201         the tabs.
26202
26203 2005-03-23  Jackson Harper  <jackson@ximian.com>
26204
26205         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
26206
26207 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
26208
26209         * CategoryGridEntry.cs: Added
26210         * GridItem.cs: Added helper properties
26211         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
26212         * GridEntry.cs: Updated code for collection
26213         * PropertyGrid.cs: Cleaned up some formatting
26214         * PropertyGridView.cs: Added drop down functionality for enums.
26215         * GridItemCollection.cs: Added enumerator logic
26216         * PropertyGridEntry.cs: Added
26217
26218 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
26219
26220         * FileDialog.cs:
26221           - Removed unnecessary commented code
26222           - Fixed handling for entering the filename manually in the combobox
26223
26224 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
26225
26226         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
26227
26228 2005-03-18  Peter Bartok  <pbartok@novell.com>
26229
26230         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
26231           them being touching the border
26232
26233 2005-03-18  Peter Bartok  <pbartok@novell.com>
26234
26235         * TextControl.cs: Quick hack to center text better
26236
26237 2005-03-18  Peter Bartok  <pbartok@novell.com>
26238
26239         * ControlPaint.cs:
26240           - Don't throw NotImplemented exceptions, just print a notice once
26241             instead (requested by Miguel). This makes running existing SWF
26242             apps a bit easier
26243         * Control.cs:
26244           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
26245           - Added context menu trigger on right click
26246         * Panel.cs: Trigger invalidate on resize
26247         * StatusBar.cs:
26248           - Removed old double-buffer drawing
26249           - Added ResizeRedraw style to force proper update of statusbar
26250         * ListView.cs:
26251           - Removed debug output
26252         * ThemeWin32Classic.cs:
26253           - Fixed drawing of status bar, now draws Text property if there
26254             are no defined panels
26255
26256 2005-03-18  Jackson Harper  <jackson@ximian.com>
26257
26258         * ImageList.cs: When the image stream is set pull all the images
26259         from it.
26260         * ImageListStreamer.cs: Implement reading image list streams.
26261
26262 2005-03-18  Peter Bartok  <pbartok@novell.com>
26263
26264         * ThemeWin32Classic.cs (DrawPictureBox):
26265           - Fixed calculations for centered drawing
26266           - Fixed drawing for normal mode, not scaling the image on normal
26267
26268 2005-03-18  Peter Bartok  <pbartok@novell.com>
26269
26270         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
26271           textbox
26272         * FileDialog.cs:
26273           - Made Open/Save button the accept button for FileDialog
26274           - Tied the cancel button to the IButtonControl cancel button
26275           - Save/Open now properly builds the pathname
26276           - Now handles user-entered text
26277           - Preventing crash on right-click if no item is selected
26278           - Fixed Text property, now uses contents of textbox
26279           - Fixed SelectedText property, now just returns the text part that
26280             is selected in the text box
26281
26282 2005-03-18  Jackson Harper  <jackson@ximian.com>
26283
26284         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
26285         rect, make sure to de-adjust the interior rect after drawing the
26286         tab text.
26287
26288 2005-03-18  Peter Bartok  <pbartok@novell.com>
26289
26290         * MenuAPI.cs: Remove menu *before* executing selected action to
26291           prevent the menu from 'hanging around'
26292           
26293 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
26294
26295         * XplatUIOSX.cs: Implemented WorkingArea property
26296
26297 2005-03-17  Peter Bartok  <pbartok@novell.com>
26298
26299         * XplatUIX11.cs: Fixed menu coord calculations
26300         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
26301           for calculating offsets
26302
26303 2005-03-17  Peter Bartok  <pbartok@novell.com>
26304
26305         * Hwnd.cs: Do not consider menu presence for default client
26306           rectangle location/size
26307         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
26308           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
26309           translation functions
26310         * FileDialog.cs: Fixed (what I presume is a) typo
26311
26312 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
26313
26314         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
26315           X access (avoids X-Async errors)
26316
26317 2005-03-16  Jackson Harper  <jackson@ximian.com>
26318
26319         * TabControl.cs: Raise the SelectedIndexChanged event.
26320
26321 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
26322
26323         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
26324           - Removed vertical ToolBar and replaced it with a custom panel
26325             (desktop and home button already work)
26326           - Added Help button (some controls get resized or relocated then)
26327           - Draw correct text depending on Open or Save.
26328           - Fixed some typos...
26329
26330 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
26331
26332         * ScrollBar.cs:
26333           - Only change Maximum and Minimum when need it (bug fix)
26334
26335 2005-03-15  Peter Bartok  <pbartok@novell.com>
26336
26337         * Form.cs: Use Handle for icon, to trigger creation if
26338           the window does not yet exist
26339         * Control.cs:
26340           - CanSelect: Slight performance improvement
26341           - Focus(): Preventing possible recursion
26342           - Invalidate(): Removed ControlStyle based clear flag setting
26343           - WM_PAINT: fixed logic for calling OnPaintBackground
26344           - WM_ERASEBKGND: Fixed logic, added call to new driver method
26345             EraseWindowBackground if the control doesn't paint background
26346         * XplatUIWin32.cs:
26347           - Moved EraseWindowBackground() method to internal methods
26348           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
26349             is sent via SendMessage on BeginPaint call on Win32
26350         * XplatUIX11.cs:
26351           - Added EraseWindowBackground() method
26352           - No longer sends WM_ERASEBKGND on .Expose, but on call to
26353             PaintEventStart, which more closely matches Win32 behaviour
26354           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
26355           - Fixed SetFocus() to properly deal with client and whole windows
26356         * Hwnd.cs: Added ErasePending property
26357         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
26358         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
26359
26360 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
26361
26362         * XplatUIOSX.cs:
26363           - Fix hard loop when timers exist.
26364           - Fix bugs with middle and right click for 3 button mice.
26365
26366 2005-03-11  Peter Bartok  <pbartok@novell.com>
26367
26368         * XplatUIX11.cs:
26369           - get_WorkingArea: Need to call X directly, GetWindowPos only
26370             returns cached data now
26371           - Added sanity check to GetWindowPos hwnd usage
26372
26373 2005-03-11  Jackson Harper  <jackson@ximian.com>
26374
26375         * BindingManagerBase.cs: This method isn't used anymore as
26376         PullData now updates the data in the control.
26377
26378 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
26379
26380         * Form.cs: fixes menu drawing on X11
26381         * MenuAPI.cs:  fixes menu drawing on X11
26382
26383 2005-03-11  Peter Bartok  <pbartok@novell.com>
26384
26385         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
26386           from Jonathan Gilbert; should fix bug #73606
26387         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
26388           in Screen coordinates. Thanks, Jordi.
26389         * Form.cs: Added missing attribute
26390
26391 2005-03-11  Peter Bartok  <pbartok@novell.com>
26392
26393         * Form.cs:
26394           - Rudimentary Mdi support
26395           - Removed outdated FormParent code
26396           - Implemented lots of missing properties and methods, still missing
26397             transparency support
26398           - Added missing attributes
26399           - Implemented support for MaximumBounds
26400           - Added firing of various events
26401         * XplatUI.cs: Added SetIcon() method
26402         * XplatUIDriver.cs: Added SetIcon() abstract
26403         * XplatUIOSX.cs: Stubbed out SetIcon() method
26404         * XplatUIX11.cs:
26405           - Implemented SetIcon() support
26406           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
26407           - Switched to unix line endings
26408         * XplatUIWin32.cs:
26409           - Made POINT internal so for can access it as part of MINMAX
26410           - Implemented SetIcon() support
26411           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
26412             native Mdi support again, might have to go managed)
26413         * Control.cs: Now fires the StyleChanged event
26414         * MdiClient.cs: Added; still mostly empty
26415
26416 2005-03-10  Peter Bartok  <pbartok@novell.com>
26417
26418         * SaveFileDialog.cs: Added emtpy file
26419
26420 2005-03-08  Peter Bartok  <pbartok@novell.com>
26421
26422         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
26423           in turn triggers OnCreateContro) when creating a handle for the
26424           first time.
26425         * TextControl.cs: Fixed endless loop in certain cases when
26426           replacing the current selection
26427
26428 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
26429
26430         * ScrollBar.cs:
26431           - Honors NewValue changes in Scroll events allowing apps to change it
26432           - Adds First and Last Scroll events
26433           - Fixes Thumb events
26434
26435 2005-03-07  Peter Bartok  <pbartok@novell.com>
26436
26437         * Hwnd.cs: Added DefaultClientRectangle property
26438         * XplatUI.cs: Now using the X11 driver Where() method, which provides
26439           more detailed debug information
26440         * XplatUIX11.cs:
26441           - Fixed size-change feedback loop, where we would pull an old size
26442             off the queue and mistakenly change our window's size to an
26443             earlier value
26444           - Now compressing ConfigureNotify events, to reduce looping and
26445             redraw issues
26446         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
26447           is called
26448
26449 2005-03-07  Jackson Harper  <jackson@ximian.com>
26450
26451         * Binding.cs: Push data pushes from data -> property. Check if the
26452         property is readonly when attempting to set it.
26453
26454 2005-03-07  Jackson Harper  <jackson@ximian.com>
26455
26456         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
26457         instead of IsSubclassOf. Pulling data now sets the value on the
26458         control.
26459         * PropertyManager.cs:
26460         * CurrencyManager.cs: Just need to pull data when updating now,
26461         because PullData will set the value on the control.
26462
26463 2005-03-04  Jackson Harper  <jackson@ximian.com>
26464
26465         * Binding.cs: Implement data type parsing and converting on pulled
26466         data. TODO: Are there more ways the data can be converted?
26467
26468 2005-03-04  Jackson Harper  <jackson@ximian.com>
26469
26470         * Binding.cs: Support <Property>IsNull checks. Also bind to the
26471         controls Validating method so we can repull the data when the
26472         control loses focus.
26473
26474 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
26475
26476         * ColumnHeader.cs:
26477           - Fixes null string format
26478           
26479         * ListView.cs:
26480           - Adds enum type checks
26481           - Fixes redrawing and recalc need after changing some properties
26482           - Fixes on focus_item set after the event
26483           - Fixes adding columns after the control has been created
26484           
26485         * ThemeWin32Classic.cs:
26486           - Fixes CheckBox focus rectangle
26487           - Fixes ColumnHeader drawing
26488
26489
26490 2005-03-03  Jackson Harper  <jackson@ximian.com>
26491
26492         * Binding.cs: Bind to <Property>Changed events so we can detect
26493         when properties are changed and update the data.
26494
26495 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
26496
26497         * ImageList.cs:
26498           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
26499           - Fixes ImageList constructor with ImageList container
26500           - Fixes image scaling (wrong parameters at DrawImage)
26501
26502 2005-02-02  Jackson Harper  <jackson@ximian.com>
26503
26504         * Binding.cs: Make property searches case-insensitive. Eliminate
26505         some duplicated code.
26506
26507 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
26508
26509         * ComboBox.cs:
26510                 - Handle focus event
26511                 - Fix scrollbar events
26512                 - Discard highlighted item if remove it
26513                 - Fixes SelectedItem with strings
26514
26515 2005-03-01  Peter Bartok  <pbartok@novell.com>
26516
26517         * Control.cs:
26518           - Fixed Visible property, now follows (once again) parent chain
26519             to return false if any control in the chain is visible=false
26520           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
26521           - Fixed several places where is_visible instead of Visible was used
26522           - Implemented FIXME related to focus selection when setting focused
26523             control to be invisible
26524
26525         * XplatUIWin32.cs: Now using proper method to find out if window is
26526           visible. Thanks to Jordi for pointing it out
26527
26528 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
26529
26530         * ComboBox.cs: show/hide scrollbar instead of creating it
26531
26532 2005-02-27  Jackson Harper  <jackson@ximian.com>
26533
26534         * CurrencyManager.cs: Add PositionChanged stuff.
26535
26536 2005-02-27  Peter Bartok  <pbartok@novell.com>
26537
26538         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
26539         * XplatUIOSX.cs: Added GetMenuOrigin() stub
26540         * XplatUIWin32.cs: Implemented GetMenuOrigin()
26541         * XplatUIX11.cs:
26542           - Implemented GetMenuDC()
26543           - Implemented GetMenuOrigin()
26544           - Implemented ReleaseMenuDC()
26545           - Implemented generation of WM_NCPAINT message
26546           - Implemented generation and handling of WM_NCCALCSIZE message
26547         * Form.cs: Added debug helper message for Jordi's menu work
26548         * Hwnd.cs:
26549           - Modified ClientRect property; added setter, fixed getter to handle
26550             setting of ClientRect
26551           - Added MenuOrigin property
26552
26553 2005-02-26  Peter Bartok  <pbartok@novell.com>
26554
26555         * XplatUIX11.cs:
26556           - Destroys the caret if a window that's being destroyed contains it
26557           - Ignores expose events coming from the X11 queue for windows that
26558             already are destroyed
26559           - Now uses the proper variable for handling DestroyNotify, before we
26560             marked the wrong window as destroyed
26561           - Improved/added some debug output
26562
26563 2005-02-26  Peter Bartok  <pbartok@novell.com>
26564
26565         * X11Keyboard.cs: Fixes to work on 64bit systems
26566
26567 2005-02-26  Peter Bartok  <pbartok@novell.com>
26568
26569         * Control.cs:
26570           - Now calling OnHandleDestroyed from DestroyHandle()
26571             instead of Dispose()
26572           - Removed bogus call to controls.Remove() from DestroyHandle()
26573
26574 2005-02-26  Peter Bartok  <pbartok@novell.com>
26575
26576         * Control.cs: Properly destroy child windows when our handle is
26577           destroyed
26578
26579 2005-02-25  Peter Bartok  <pbartok@novell.com>
26580
26581         * XplatUI.cs:
26582           - Added 'DriverDebug' define to allow tracing XplatUI API calls
26583           - Alphabetized Static Methods and Subclasses
26584
26585         * XplatUIX11.cs:
26586           - Added XException class to allow custom handling of X11 exceptions
26587           - Created custom X11 error handler, tied into XException class
26588           - Added support for MONO_XEXCEPTIONS env var to allow the user
26589             to either throw an exception on X errors or continue running
26590             after displaying the error
26591           - Added handling of DestroyNotify message
26592           - Added handler for CreateNotify message (still disabled)
26593           - Improved (tried to at least) Where method to provide file and lineno
26594         * X11Structs.cs:
26595           - Added XErrorHandler delegate
26596           - Added XRequest enumeration (to suppor translation of errors)
26597
26598 2005-02-25  Jackson Harper  <jackson@ximian.com>
26599
26600         * PropertyManager.cs: Implement editing features
26601         * CurrencyManager.cs:
26602         * Binding.cs: First attempt at UpdateIsBinding
26603         * BindingManagerBase.cs: Call UpdateIsBinding before
26604         pushing/pulling data.
26605
26606 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
26607
26608         * MenuAPI.cs: Respect disabled items
26609         * ThemeWin32Classic.cs
26610                 - Caches ImageAttributes creation for DrawImageDisabled
26611                 - Fixes vertical menu line drawing
26612                 - Draws disabled arrows in disable menu items
26613
26614 2005-02-24  Peter Bartok  <pbartok@novell.com>
26615
26616         * Hwnd.cs:
26617           - Added UserData property to allow associating arbitrary objects
26618             with the handle
26619           - Fixed leak; now removing Hwnd references from static windows array
26620         * XplatUIWin32.cs:
26621           - Fixed Graphics leak in PaintEventEnd
26622           - Removed usage of HandleData, switched over to Hwnd class
26623         * HandleData.cs: Removed, obsoleted by Hwnd.cs
26624
26625 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
26626
26627         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
26628         * ScrollBar.cs: Fixes bug
26629         * TrackBar.cs: removes death code, clipping, mimize refreshes,
26630          keyboard navigation enhancements
26631
26632 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
26633
26634         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
26635         * GroupBox.cs: Add control styles
26636         * Label.cs: Add control styles
26637         * UpDownBase.cs: Add control styles
26638         * ListBox.cs: Add control styles
26639         * XplatUIWin32.cs: Fixes wrong parameter order
26640
26641
26642 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
26643
26644         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
26645
26646 2005-02-23  Jackson Harper  <jackson@ximian.com>
26647
26648         * PropertyManager.cs: Implement property binding. This doesn't
26649         seem to work yet though as (I think) there are some bugs in
26650         System.ComponentModel.PropertyDescriptor.
26651         * BindingContext.cs: Use new PropertyManager constructor.
26652
26653 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
26654
26655         * ProgressBar.cs: use clip region in ProgressBar
26656         * ThemeWin32Classic.cs: use clip region in ProgressBar
26657
26658 2004-02-22  Jackson Harper  <jackson@ximian.com>
26659
26660         * BindingsCollection.cs: Remove some debug code.
26661
26662 2005-02-22  Jackson Harper  <jackson@ximian.com>
26663
26664         * BindingContext.cs:
26665         * ControlBindingsCollection.cs:
26666         * CurrencyManager.cs:
26667         * Binding.cs:
26668         * BindingManagerBase.cs: Initial implementation
26669         * BindingsCollection.cs: Add an internal contains method that the
26670         BindingManagerBase uses to ensure bindings aren't added twice to
26671         the collection.
26672         * PropertyManager.cs: Stubbed out.
26673         * Control.cs:
26674         * ContainerControl.cs: Hook up databinding
26675         
26676 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
26677
26678         * XplatUIOSX.cs:
26679           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
26680           Fixed Invalidate/Update chain.
26681           Fixed tons of other minor bugs (this is almost a complete rewrite).
26682
26683 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
26684
26685         * ComboBox.cs: do subcontrol creation when the control is created
26686
26687 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26688
26689         * Label.cs: fixes image drawing (image and imagelist)
26690         * ThemeWin32Classic.cs: cache brushes
26691         
26692 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26693
26694         * Form.cs: Move menu drawing code to Theme class
26695         * ComboBox.cs: Move ComboBox drawing code to Theme class
26696         * MenuItem.cs: Move menu drawing code to Theme class
26697         * MenuAPI.cs: Move menu drawing code to Theme class
26698         * ThemeWin32Classic.cs: New methods
26699         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
26700         * ListBox.cs: Move Listbox drawing code to Theme class
26701         * Theme.cs: New methods
26702
26703 2005-02-20  Peter Bartok  <pbartok@novell.com>
26704
26705         * Control.cs:
26706           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
26707             only process mnemonics on those)
26708           - Fixed event sequence for key handling; first calling
26709             ProcessKeyEventArgs now
26710         * TextBoxBase.cs:
26711           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
26712             for processing non-character keys
26713           - Fixed WM_CHAR to generate proper event sequence before processing
26714         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
26715           generation
26716
26717 2005-02-19  Peter Bartok  <pbartok@novell.com>
26718
26719         * UserControl.cs: Added TextChanged event; added attributes
26720         * SizeGrip.cs: Implemented resizing and optional display of grip
26721         * Form.cs: Fixed attribute
26722         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26723           Changed meaning of ScrollWindow bool argument; instead of the
26724           clear attribute (which will be true usually anyway), it gives the
26725           option of moving child controls as well.
26726         * XplatUIX11.cs:
26727           - Changed to match new ScrollWindow argument
26728           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
26729             now handles the implicit parent window a WM puts around us
26730         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
26731           to work)
26732         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
26733         * TreeView.cs: Adjusted to new ScrollWindow arguments
26734
26735 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26736
26737         * Form.cs: Menu integration with non-client area
26738         * MenuItem.cs: Menu integration with non-client area
26739         * MenuAPI.cs: Menu integration with non-client area
26740
26741 2005-02-18  Peter Bartok  <pbartok@novell.com>
26742
26743         * MethodInvoker.cs: Added
26744         * MdiLayout.cs: Added
26745         * SendKeys.cs: Started implementation
26746         * ErrorIconAlignment.cs: Added
26747
26748 2005-02-18  Peter Bartok  <pbartok@novell.com>
26749
26750         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
26751         * Form.cs: Added handling for Menu-related Non-client messages
26752
26753 2005-02-17  Peter Bartok  <pbartok@novell.com>
26754
26755         * UpDownBase.cs: Fixed typo, compilation errors
26756         * DomainUpDown.cs: Fixed attribute value
26757
26758 2005-02-16  Miguel de Icaza  <miguel@novell.com>
26759
26760         * UpDownBase.cs: Attach entry events.
26761         Propagate events.
26762         Add ForeColor property, Focused, InterceptArrowKeys (interception
26763         does not work yet).
26764
26765 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
26766
26767         * Form.cs:
26768                 - Redraw non client are on Setmenu
26769                 - Calc proper menu starting point
26770
26771 2005-02-17  Peter Bartok  <pbartok@novell.com>
26772
26773         * Application.cs: Fixed message_filter check
26774
26775 2005-02-17  Peter Bartok  <pbartok@novell.com>
26776
26777         * Application.cs: Now calls registered message filters
26778         * DockStyle.cs: Fixed attribute
26779         * Form.cs: Fixed attribute
26780         * Menu.cs: Fixed attribute
26781         * ToolTip.cs: Fixed attribute
26782         * TreeNode.cs: Added missing attributes and arranged in regions
26783         * PropertyGrid.cs: Fixed signatures
26784         * TreeNodeCollection.cs: Added attributes
26785         * Splitter.cs: Added missing attributes; arranged into regions
26786         * TabPage.cs: Added missing attributes; arranged into regions
26787         * TextBoxBase.cs: Added missing attributes
26788         * TextBox.cs: Added missing attributes
26789         * ArrangeDirection.cs: Added missing attributes
26790         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
26791         * ToolBarButton.cs: Fixed attributes
26792         * AnchorStyles.cs: Fixed attribute
26793         * TrackBar.cs: Fixed attributes
26794         * TabControl.cs: Added missing attributes and arranged into regions
26795         * ToolBar.cs: Fixed attribute
26796         * StatusBar.cs: Fixed signature, organized into regions and added
26797           attributes
26798         * StatusBarPanel.cs: Fixed attributes
26799         * ContentsResizedEventArgs.cs: Implemented
26800         * ContentsResizedEventHandler.cs: Implemented
26801         * DateBoldEventArgs.cs: Implemented
26802         * DateBoldEventHandler.cs: Implemented
26803         * UpDownEventArgs.cs: Implemented
26804         * UpDownEventHandler.cs: Implemented
26805         
26806 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
26807
26808         * Form.cs: first Menu NC refactoring
26809         * MenuAPI.cs: first Menu NC refactoring
26810         
26811 2005-02-16  Peter Bartok  <pbartok@novell.com>
26812
26813         * ImeMode.cs: Added missing attributes
26814         * Menu.cs: Fixed attribute
26815         * GroupBox.cs: Fixed attribute
26816         * Label.cs: Fixed attribute
26817         * ColorDialog.cs (RunDialog): Removed TODO attribute
26818         * ComboBox.cs: Fixed attributes
26819         * ListControl.cs: Added missing attributes
26820         * PropertyGrid.cs: Fixed attributes
26821         * Control.cs: Fixed attributes
26822         * ListViewItem.cs: Added TypeConverter attribute
26823         * NotifyIcon.cs: Fixed attributes
26824         * ListView.cs: Fixed attributes
26825         * ButtonBase.cs: Fixed attribute
26826         * ImageList.cs: Added missing attributes
26827         * ContainerControl.cs: Fixed signature
26828         * CheckedListBox.cs: Fixed attribute; added missing attributes
26829         * Panel.cs: Fixed attributes
26830         * PropertyTabChangedEventArgs.cs: Added missing attribute
26831         * PropertyValueChangedEventArgs.cs: Added missing attribute
26832         * Binding.cs: Fixed attribute
26833         * ListViewItemConverter: Implemented ListViewSubItemConverter class
26834         * ListBox.cs: Fixed attribute; added missing attributes;
26835         * ScrollableControl.cs: Added missing attributes
26836         * PictureBox.cs: Added missing attributes; implemented missing property
26837         * DateTimePicker.cs: Added missing attributes
26838         * Theme.cs (ToolWindowCaptionHeight): Fixed type
26839         * MonthCalendar.cs: Fixed attributes
26840         * StatusBarPanel.cs: Added missing attributes
26841         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
26842
26843 2005-02-16  Peter Bartok  <pbartok@novell.com>
26844
26845         * TextBoxBase.cs: The previous method to enforce height yet remember
26846           the requested high was less than ideal, this is an attempt to do
26847           it better.
26848         * Control.cs: Added comment about possible problem
26849         * Copyright: Updated format
26850         * GridItemType.cs: Fixed swapped values
26851
26852 2005-02-15  Jackson Harper  <jackson@ximian.com>
26853
26854         * BaseCollection.cs: Use property so we never access an
26855         uninitialized list. Also initialize the list in the property.
26856
26857 2005-02-15  Peter Bartok  <pbartok@novell.com>
26858
26859         * GroupBox.cs (ProcessMnemonic): Implemented
26860         * Label.cs (ProcessMnemonic): Implemented
26861         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
26862           hotkeys
26863
26864 2005-02-15  Peter Bartok  <pbartok@novell.com>
26865
26866         * RadioButton.cs (ProcessMnemonic): Implemented
26867         * CheckBox.cs (ProcessMnemonic): Implemented
26868         * Control.cs:
26869           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
26870             handling
26871           - Added internal method to allow calling ProcessMnemonic from other
26872             controls
26873         * ContainerControl.cs:
26874           - Started support for handling validation chain handling
26875           - Implemented ProcessMnemonic support
26876           - Added Select() call to Active, to make sure the active control
26877             receives focus
26878         * Form.cs: Setting toplevel flag for Forms (this was lost in the
26879           FormParent rewrite)
26880         * ThemeWin32Classic.cs:
26881           - DrawCheckBox(): Fixed stringformat to show hotkeys
26882           - DrawRadioButton(): Fixed stringformat to show hotkeys
26883         * CommonDialog.cs: Removed WndProc override, not needed
26884
26885 2005-02-14  Peter Bartok  <pbartok@novell.com>
26886
26887         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
26888           missed those in the rewrite
26889
26890 2005-02-14  Miguel de Icaza  <miguel@novell.com>
26891
26892         * NumericUpDown.cs (Increment, ToString): Add.
26893         (DecimalPlaces): implement.
26894         
26895         Add attributes.
26896         
26897         * UpDownBase.cs: Add the designer attributes.
26898
26899 2005-02-13  Peter Bartok  <pbartok@novell.com>
26900
26901         * Panel.cs: Removed border_style, now in Control
26902         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
26903           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
26904
26905 2005-02-13  Peter Bartok  <pbartok@novell.com>
26906
26907         * MouseButtons.cs: Added missing attributes
26908         * XplatUIStructs.cs: Added enumeration for title styles
26909         * LeftRightAlignment.cs: Added missing attributes
26910         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
26911           it compatible with Graphics.FromHwnd()
26912         * SelectedGridItemChangedEventArgs.cs: Fixed property type
26913         * Keys.cs: Added missing attributes
26914         * SelectionRange.cs: Added missing attributes
26915         * SelectionRangeConverter.cs: Added
26916         * XplatUI.cs:
26917           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
26918             ReleaseMenuDC methods
26919           - Renamed ReleaseWindow to UngrabWindow
26920           - Added proper startup notice to allow version identification
26921         * Form.cs:
26922           - Added missing attributes
26923           - Removed FormParent concept
26924         * Label.cs: Removed border_style field, now in Control
26925         * RadioButton.cs: Now properly selects RadioButton when focus is
26926           received
26927         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
26928         * Control.cs:
26929           - Added missing attributes
26930           - Added borderstyle handling
26931           - Removed FormParent concept support
26932           - Fixed calls to XplatUI to match changed APIs
26933           - Fixed bug that would case us to use disposed Graphics objects
26934           - Removed unneeded internal methods
26935           - PerformLayout(): Fixed to handle DockStyle.Fill properly
26936           - SelectNextControl(): Fixed to properly check common parents
26937         * TextBoxBase.cs: Removed border_style field (now in Control)
26938         * MessageBox.cs:
26939           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
26940             fixed calculations for form size
26941           - Added support for localized strings and icons
26942           - Improved form size calculations, added border
26943         * ListView.cs: Removed border_style field (now in Control)
26944         * X11Structs.cs: Moved several structs from X11 driver here
26945         * X11Keyboard.cs: Changed debug message
26946         * Application.cs: Removed FormParent concept support
26947         * CommonDialog.cs:
26948           - Resetting end_modal flag
26949           - Removed FormParent concept support
26950         * NativeWindow.cs: Removed FormParent concept support
26951         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
26952           Client area and Non-Client whole window to allow support for WM_NC
26953           messages
26954         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
26955           prevent using it until it supports Hwnd as per Geoff Norton's request
26956         * ToolBar.cs: Fixed drawing, was not doing proper drawing
26957         * PictureBox.cs: Removed border_style field, now in Control
26958         * XplatUIWin32.cs: Added new driver methods
26959
26960 2005-02-12  Peter Bartok  <pbartok@novell.com>
26961
26962         * OpacityConverter.cs: Implemented
26963         * Hwnd.cs: Internal class to support drivers that need to emulate
26964           client area/non-client area window behaviour
26965
26966 2005-02-11  Peter Bartok  <pbartok@novell.com>
26967
26968         * KeysConverter.cs: Implemented
26969
26970 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
26971
26972         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
26973         * LinkLabel: Added missing attributes
26974         * MainMenu.cs: fixes ToString
26975         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
26976         * ListBox.cs: fixes event position
26977         * TrackBar.cs: adds missing attributes and events
26978         
26979 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
26980
26981         * MenuItem.cs: Use SystemInformation and bug fixes
26982         * MenuAPI.cs: Use SystemInformation and bug fixes
26983
26984 2005-02-09  Jackson Harper  <jackson@ximian.com>
26985
26986         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
26987         their keystate otherwise things like VK_MENU get stuck "on".
26988
26989 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
26990
26991         * ListBox.cs: Fixes AddRange bug
26992         
26993 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
26994
26995         * ProgressBar.cs
26996                 - Add missing attributes
26997                 - Add missing method
26998                 
26999         * CheckedListBox.cs: Added missing attributes
27000                 - Add missing attributes
27001                 - Remove extra method
27002         
27003         * ComboBox.cs: Added missing attributes
27004         * VScrollBar.cs: Added missing attributes
27005         * ScrollBar.cs:  Added missing attributes
27006         * ListBox.cs: Fixes signature, add missing consts
27007         * LinkArea.cs:   Added missing attributes
27008         
27009
27010 2005-02-08  Peter Bartok  <pbartok@novell.com>
27011
27012         * Menu.cs: Added missing attributes
27013         * MainMenu.cs: Added missing attributes
27014         * GroupBox.cs: Added missing attributes
27015         * Label.cs: Added missing attributes
27016         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
27017         * ColorDialog.cs:
27018           - Added Instance and Options properties
27019           - Added missing attributes
27020         * Cursor.cs: Made Serializable
27021         * NotifyIcon: Added missing attributes
27022         * MenuItem.cs: Added missing attributes
27023         * TextBoxBase.cs: Implemented AppendText() and Select() methods
27024         * Panel.cs: Added Missing attributes
27025         * MonthCalendar.cs: Fixed CreateParams
27026
27027 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
27028         
27029         * LinkLabel.cs:
27030                 - Fixes signature
27031                 - Fixes issues with links
27032                 - Adds the class attributes
27033
27034 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
27035         
27036         * ComboBox.cs:
27037                 - Fixes button when no items available in dropdown
27038                 - Fixes repainting problems
27039                 - Adds the class attributes
27040                 
27041 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
27042
27043         * XplatUIOSX.cs: Detect the menu bar and title bar height from
27044         the current theme.  Cache these on startup.
27045
27046 2005-02-07  Jackson Harper  <jackson@ximian.com>
27047
27048         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
27049         the scrollbar buttons when they are depressed.
27050
27051 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
27052
27053         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
27054         Get the display size from the main displayid.  We currently dont
27055         support multiple display configurations.
27056
27057 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
27058
27059         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
27060
27061 2005-02-07  Miguel de Icaza  <miguel@novell.com>
27062
27063         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
27064
27065 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
27066
27067         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
27068
27069 2005-02-04  Jackson Harper  <jackson@ximian.com>
27070
27071         * ThemeWin32Classic.cs: Respect the clipping rect when
27072         drawing. Only fill the intersection of clips and rects so there
27073         isn't a lot of large fills.
27074         * ScrollBar.cs: Pass the correct clipping rect to the theme
27075         engine. Remove some debug code.
27076
27077 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
27078         
27079         * DateTimePicker.cs:
27080                 - Fixed crash on DateTime.Parse, use Constructor instead
27081
27082 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
27083         
27084         * MenuItem.cs:
27085         * MenuAPI.cs:
27086                 - Owner draw support (MeasureItem and DrawItem)
27087
27088 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
27089         
27090         *  Menu.cs:
27091                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
27092                 - Fixes MenuItems.Add range
27093         * MenuItem.cs:
27094                 - MergeMenu and Clone and CloneMenu functions
27095
27096 2005-02-03  Jackson Harper  <jackson@ximian.com>
27097
27098         * ScrollBar.cs: Make abstract
27099         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
27100         is abstract.
27101
27102 2005-02-03  Jackson Harper  <jackson@ximian.com>
27103
27104         * ScrollBar.cs: First part of my scrollbar fixups. This removes
27105         all the unneeded refreshes and uses invalidates with properly
27106         computed rects.
27107
27108 2005-02-03  Peter Bartok  <pbartok@novell.com>
27109
27110         * ComponentModel.cs: Added
27111         * IDataGridEditingService.cs: Added
27112         * Timer.cs: Added missing attributes
27113         * ToolTip.cs: Added missing attributes
27114
27115 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
27116
27117         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
27118
27119 2005-02-03  Peter Bartok  <pbartok@novell.com>
27120
27121         * ListBox.cs: Added missing attributes
27122
27123 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
27124         
27125         * ListBox.cs:
27126                 - Fixes font height after font change
27127                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
27128                 
27129 2005-02-02  Peter Bartok  <pbartok@novell.com>
27130
27131         * HandleData.cs: Introduced static methods to allow class
27132           to be more self-contained and track it's own HandleData objects
27133         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
27134           HandleData to use new static methods
27135
27136 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
27137
27138         * Combobox.cs:
27139                 - Fixes default size and PreferredHeight
27140                 - Missing events
27141                 - ObjectCollection.Insert implementation
27142                 
27143         * ListControl.cs
27144                 - Fixes signature
27145         * ListBox.cs:
27146                 - Several fixes
27147                 - ObjectCollection.Insert implementation
27148                 - No selection after clean
27149                 - Small fixes
27150
27151 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
27152
27153         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
27154
27155 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
27156
27157         * Combobox.cs:
27158                 - Caches ItemHeight calculation for OwnerDrawVariable
27159                 - Handles dropdown properly
27160                 - Fixes several minor bugs
27161
27162 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
27163
27164         * ListBox.cs:
27165                 - Fixes 71946 and 71950
27166                 - Fixes changing Multicolumn on the fly
27167                 - Fixes keyboard navigation on Multicolumn listboxes
27168
27169 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
27170         
27171         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
27172         crash reporter log.
27173
27174 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
27175
27176         * XplatUIOSX.cs: Allow applications to actually exit.
27177
27178 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
27179
27180         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
27181         their parent at creation time rather than lazily later.  Fixes a major
27182         regression we were experiencing.
27183
27184 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
27185
27186         * ThemeWin32Classic.cs: more date time picker painting fixes
27187         * DateTimePicker.cs: more monthcalendar drop down fixes
27188         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
27189
27190 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
27191
27192         * ScrollBar.cs:
27193                 - When moving the thumb going outside the control should stop the moving
27194                 - Adds the firing of missing events
27195                 - Fixes no button show if Size is not specified
27196                 - End / Home keys for keyboard navigation
27197
27198 2005-01-30  Peter Bartok  <pbartok@novell.com>
27199
27200         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
27201           sanity check to prevent theoretical loop
27202         * XplatUIWin32.cs (SetVisible): Removed debug output
27203         * XplatUIX11.cs (SystrayChange): Added sanity check
27204         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
27205         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
27206           behaviour, valid until the X11 client window rewrite is done
27207         * TextBox.cs (ctor): Setting proper default foreground and background
27208           colors
27209
27210 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
27211
27212         * Theme: Added DrawDateTimePicker to interface
27213         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
27214         * DateTimePicker.cs: Created (still needs keys and painting code)
27215         * DateTimePickerFormat.cs: added
27216         * MonthCalendar.cs: fixed CreateParams for popup window mode
27217           
27218 2005-01-29  Peter Bartok  <pbartok@novell.com>
27219
27220         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
27221           this should also the calculations for ligher/darker
27222         * Theme.cs: Fixed defaults for ScrollBar widths/heights
27223
27224 2005-01-29  Peter Bartok  <pbartok@novell.com>
27225
27226         * ArrangeDirection.cs: Added
27227         * ArrangeStartingPositon.cs: Added
27228         * SystemInformation.cs: Implemented
27229         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27230           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
27231           used by SystemInformation class
27232         * X11Strucs.cs: Added XSizeHints structure
27233         * MenuAPI.cs:
27234           - Fixed CreateParams to make sure the menu window is always visible
27235           - TrackPopupMenu: Added check to make sure we don't draw the
27236             menu offscreen
27237
27238 2005-01-29  Peter Bartok  <pbartok@novell.com>
27239
27240         * HandleData.cs: Added method for altering invalid area
27241         * TextBoxBase.cs: Implemented TextLength
27242
27243 2005-01-28  Peter Bartok  <pbartok@novell.com>
27244
27245         * XplatUIX11.cs: Improvement over last patch, not sending
27246           the WM_PAINT directly anymore, instead we scroll any pending
27247           exposed areas and let the system pick out the WM_PAINT later
27248
27249 2005-01-28  Peter Bartok  <pbartok@novell.com>
27250
27251         * SWF.csproj: Deleted, no longer used. Instead,
27252           Managed.Windows.Forms/SWF.csproj should be used
27253         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
27254           directly, to avoid a potential race condition with the next
27255           scroll
27256
27257 2005-01-28  Peter Bartok  <pbartok@novell.com>
27258
27259         * XplatUI.cs: Made class internal
27260
27261 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
27262
27263         * CheckedListBox.cs:
27264                 - Draw focus
27265                 - Fixed Drawing
27266                 - Missing methods and events
27267
27268 2005-01-27  Peter Bartok  <pbartok@novell.com>
27269
27270         * Application.cs (Run): Don't use form if we don't have one
27271
27272 2005-01-27  Peter Bartok  <pbartok@novell.com>
27273
27274         * TextBoxBase.cs (get_Lines): Fixed index off by one error
27275
27276 2005-01-27  Peter Bartok  <pbartok@novell.com>
27277
27278         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
27279         * GridItem.cs: Added; Patch by Jonathan S. Chambers
27280         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
27281         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
27282         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
27283         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
27284         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27285         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27286         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27287         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27288         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
27289         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
27290
27291 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
27292
27293         * Combobox.cs:
27294                 - Draw focus on Simple Combobox
27295                 - Fixes drawing issues
27296                 - fixes 71834
27297
27298 2005-01-27  Peter Bartok  <pbartok@novell.com>
27299
27300         * Form.cs:
27301           - Place window in default location, instead of hardcoded 0/0
27302           - Send initial LocationChanged event
27303         * Control.cs:
27304           - UpdateBounds after creation to find out where the WM placed us
27305           - Make sure that if the ParentForm changes location the Form
27306             is notified
27307         * XplatUIX11.cs: XGetGeometry will not return the coords relative
27308             to the root, but to whatever the WM placed around us.
27309             Translate to root coordinates before returning toplevel
27310             coordinates
27311         * XplatUIWin32.cs: Removed debug output
27312         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
27313           flag to GetWindowPos, to allow translation of coordinates on X11
27314
27315 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
27316
27317         * ListBox.cs: connect LostFocus Event
27318
27319 2005-01-27  Peter Bartok  <pbartok@novell.com>
27320
27321         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27322           XplatUIX11.cs: Extended the Systray API
27323         * Form.cs: Removed debug output
27324         * Application.cs: Fixed focus assignment, always need to call
27325           XplatUI.Activate() since Form.Activate() has rules that may
27326           prevent activation
27327         * NotifyIcon.cs: Should be complete now
27328         * ToolTip.cs: Worked around possible timer bug
27329
27330 2005-01-27  Jackson Harper  <jackson@ximian.com>
27331
27332         * TabControl.cs:
27333         - Only invalidate the effected tabs when the
27334         selected index changes. This reduces drawing and gets rid of some
27335         flicker.
27336         - Only refresh if the tabs need to be shifted, otherwise only
27337         invalidate the slider button.
27338         - On windows the tabs are not filled to right if the slider is
27339         visible.
27340         
27341 2005-01-27  Jackson Harper  <jackson@ximian.com>
27342
27343         * TabControl.cs: Only refresh on mouseup if we are showing the
27344         slider. Also only invalidate the button whose state has changed.
27345
27346 2005-01-26  Peter Bartok  <pbartok@novell.com>
27347
27348         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
27349         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
27350           and SystrayRemove() methods
27351         * XplatUIOSX.cs: Stubbed Systray methods
27352         * XplatUIX11.cs:
27353           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
27354             methods
27355           - Fixed broken XChangeProperty calls (marshalling messed up things)
27356         * X11Structs.cs: Added enums and structs required for Size hinting
27357         * NotifyIcon.cs: Added & implemented
27358
27359 2005-01-26  Jackson Harper  <jackson@ximian.com>
27360
27361         * TabControl.cs: Space vertically layed out tabs properly.
27362
27363 2005-01-26  Peter Bartok  <pbartok@novell.com>
27364
27365         * Form.cs (CreateClientParams): Always set the location to 0,0
27366           since we're a child window.
27367
27368         * Control.cs (SetVisibleCore): Always explicitly setting the location
27369           of a toplevel window, apparently X11 doesn't like to move windows
27370           while they're not mapped.
27371
27372 2005-01-26  Jackson Harper  <jackson@ximian.com>
27373
27374         * TabControl.cs: Implement FillToRight size mode with vertically
27375         rendered tabs.
27376
27377 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
27378
27379         * ControlPaint.cs, ThemeWin32Classic.cs
27380                 - Fixes DrawFocusRectangle
27381
27382 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
27383
27384         * MenuAPI.cs:
27385                 - MenuBar tracking only starts when item is first clicked
27386                 - Fixes menu hidding for multiple subitems
27387                 - Unselect item in MenuBar when item Executed
27388                 - Fixes bug 71495
27389
27390 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
27391
27392         * ListControl.cs:
27393                 - IsInputKey for ListBox
27394         * ListBox.cs:
27395                 - Focus item
27396                 - Shift and Control item selection
27397                 - Implement SelectionMode.MultiExtended
27398                 - Fixes RightToLeft
27399         * ComboBox.cs:
27400                 - IsInputKey implemented
27401                 - Do not generate OnTextChangedEdit on internal txt changes
27402                 
27403 2005-01-23  Peter Bartok  <pbartok@novell.com>
27404
27405         * AccessibleObject.cs: Partially implemented Select()
27406         * MonthCalendar.cs: Added missing attributes and events
27407         * Form.cs: Fixed CreateParams behaviour, now controls derived from
27408           form can properly override CreateParams.
27409         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
27410           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
27411           Control performs Invalidate & Update
27412         * NativeWindow (CreateHandle): Added special handling for Form
27413           and Form.FormParent classes to allow overriding of From.CreateParams
27414         * Control.cs:
27415           - ControlNativeWindow: Renamed 'control' variable to more intuitive
27416             name 'owner'
27417           - ControlNativeWindow: Added Owner property
27418           - Removed usage of Refresh() on property changes, changed into
27419             Invalidate(), we need to wait until the queue is processed for
27420             updates, direct calls might cause problems if not all vars for
27421             Paint are initialized
27422           - Added call to UpdateStyles() when creating the window, to set any
27423             styles that CreateWindow might have ignored.
27424           - Added support for Form CreateParent overrides to UpdateStyles()
27425         * MessageBox.cs: Removed no longer needed FormParent override stuff,
27426           CreateParams are now properly overridable
27427         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
27428           CreateParams are now properly overridable
27429
27430 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
27431
27432         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
27433         OnTextBoxChanged.
27434
27435         Capture LostFocus and OnTextBoxChanged.  The later introduces a
27436         recursive invocation that I have not figured out yet.
27437
27438         Reset the timer when not using (it was accumulating).
27439
27440
27441         (OnTextBoxChanged): Set UserEdit to true here to track whether the
27442         user has made changes that require validation.
27443
27444         Reset changing to avoid loops.
27445
27446 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
27447
27448         * NumericUpDown.cs: Display value at startup.
27449
27450         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
27451         ValidateEditText.
27452
27453         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
27454         filled in.  Added some basic parsing of text.
27455
27456         Still missing the OnXXX method overrides, and figuring out the
27457         events that must be emitted.
27458
27459         * UpDownBase.cs: Handle UserEdit on the Text property.
27460         
27461 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
27462
27463         * ComboBox.cs:
27464           - Fixes IntegralHeight
27465           - ToString method
27466
27467 2005-01-21  Jackson Harper  <jackson@ximian.com>
27468
27469         * TabControl.cs: Set the SelectedIndex property when SelectedTab
27470         is set so that the page visibility is updated and the tabs are
27471         sized correctly.
27472
27473 2005-01-21  Jackson Harper  <jackson@ximian.com>
27474
27475         * TabControl.cs: Use cliping rectangle for blitting. Give the
27476         theme the clipping rect so we can do clipping while
27477         drawing. Remove some debug code.
27478
27479 2005-01-21  Jackson Harper  <jackson@ximian.com>
27480
27481         * TabPage.cs: Add a new method so tab pages can force the tab
27482         control to recalculate the tab page sizes.
27483         * TabControl.cs: UpdateOwner needs to make the tab control recalc
27484         sizes.
27485
27486 2005-01-20  Jackson Harper  <jackson@ximian.com>
27487
27488         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
27489
27490 2005-01-20  Jackson Harper  <jackson@ximian.com>
27491
27492         * TreeView.cs: Set the bounds for nodes properly. They were
27493         getting screwed up when checkboxes were not enabled, but images
27494         were.
27495
27496 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
27497
27498         * ListBox.cs:
27499                 - Owner draw support
27500                 - Fixes
27501                 
27502 2005-01-20  Jackson Harper  <jackson@ximian.com>
27503
27504         * XplatUIStructs.cs: More misc keys
27505         * X11Keyboard.cs: Ignore some control keys.
27506
27507 2005-01-20  Jackson Harper  <jackson@ximian.com>
27508
27509         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
27510         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
27511
27512 2005-01-19  Peter Bartok  <pbartok@novell.com>
27513
27514         * Control.cs: Un-selecting the control when it is loosing focus
27515
27516 2005-01-19  Jackson Harper  <jackson@ximian.com>
27517
27518         * TreeView.cs: Hook up to the text controls leave event so we can
27519         end editing when the users clicks outside the text box.
27520         
27521 2005-01-19  Jackson Harper  <jackson@ximian.com>
27522
27523         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
27524         get set in the conversion array.
27525
27526 2005-01-19  Peter Bartok  <pbartok@novell.com>
27527
27528         * Application.cs (ModalRun): Added a call to CreateControl to ensure
27529           focus is properly set
27530         * Button.cs:
27531           - Added missing attributes
27532           - removed styles, those are already set in the base class
27533         * ButtonBase.cs:
27534           - Added missing attributes
27535           - Added clip window styles
27536         * CheckBox.cs: Added missing attributes
27537         * CommonDialog.cs:
27538           - FormParentWindow.CreateParams: Added required clip styles
27539         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
27540           also filters modifier keys
27541         * MessageBox.cs:
27542           - Added assignment of Accept and Cancel button to enable Enter
27543             and Esc keys in MessageBox dialogs
27544           - FormParentWindow.CreateParams: Added required clip styles
27545         * RadioButton.cs: Added missing attributes
27546         * TextControl.cs: No longer draws selection if control does not
27547           have focus
27548         * TextBoxBase.cs:
27549           - Now draws simple rectangle around test area to make it obvious
27550             there's a control. This is a hack until we properly support borders
27551           - A few simple fixes to support selections better, now erases selected
27552             text when typing, and resets selection when using movement keys
27553
27554 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
27555
27556         * UpDownBase.cs: Added some new properties.
27557
27558         * DomainUpDown.cs: Implement a lot to get my test working.
27559
27560 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27561
27562         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
27563
27564 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27565
27566         * OSXStructs (WindowAttributes): Fixed csc complaints
27567
27568 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27569
27570         * XplayUIOSX.cs:
27571           OSXStructs.cs: Initial refactor to move enums and consts into
27572           OSXStructs and use them in the driver for greater readability.
27573
27574 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27575
27576         * XplatUIOSX.cs: Initial support for Standard Cursors.
27577         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
27578
27579 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
27580
27581         * ComboBox.cs: ability to change style when the ctrl is already
27582         created, missing methods and events, bug fixes, signature fixes
27583
27584 2005-01-19  Peter Bartok  <pbartok@novell.com>
27585
27586         * Cursors.cs (ctor): Added ctor to fix signature
27587
27588 2005-01-18  Peter Bartok  <pbartok@novell.com>
27589
27590         * Button.cs: Implemented DoubleClick event
27591         * ButtonBase.cs:
27592           - Fixed keyboard handling to behave like MS, where the press of
27593             Spacebar is equivalent to a mousedown, and the key release is
27594             equivalent to mouseup. Now a spacebar push will give the same
27595             visual feedback like a mouse click.
27596           - Added missing attributes
27597           - Added ImeModeChanged event
27598           - Added support for generating DoubleClick event for derived classes
27599         * CheckBox.cs:
27600           - Implemented DoubleClick event
27601           - Added missing attributes
27602         * CommonDialog.cs: Added missing attribute
27603         * ContextMenu.cs: Added missing attributes
27604         * RadioButton.cs:
27605           - AutoChecked buttons do not allow to be unselected when clicked
27606             (otherwise we might end up with no selected buttons in a group)
27607           - Added missing attributes
27608           - Implemented DoubleClickEvent
27609         * ThreadExceptionDialog.cs: Enabled TextBox code
27610
27611 2005-01-18  Peter Bartok  <pbartok@novell.com>
27612
27613         * Form.cs: Removed debug output
27614         * Button.cs: Added support for DoubleClick method
27615
27616 2005-01-18  Peter Bartok  <pbartok@novell.com>
27617
27618         * Form.cs:
27619           - Added method to parent window that allows triggering size
27620             calculations when a menu is added/removed
27621           - set_Menu: Cleaned up mess from early days of Form and Control,
27622             now properly triggers a recalc when a menu is added/removed
27623           - Added case to select form itself as focused form if no child
27624             controls exist
27625           - Added PerformLayout call when showing dialog, to ensure properly
27626             placed controls
27627         * Control.cs:
27628           - Select(): Made internal so Form can access it
27629           - Focus(): Only call Xplat layer if required (avoids loop), and sets
27630             status
27631         * Application.cs (Run): Removed hack and calls PerformLayout instead
27632           to trigger calculation when Form becomes visible
27633
27634 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
27635
27636         * ComboBox.cs: fixes for ownerdraw
27637
27638 2005-01-18  Peter Bartok  <pbartok@novell.com>
27639
27640         * TextControl.cs:
27641           - Sentinel is no longer static, each Document gets it's own, this
27642             avoids locking or alternatively overwrite problems when more
27643             than one text control is used simultaneously.
27644           - Switched to use Hilight and HilightText brushes for text selection
27645
27646         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
27647
27648 2005-01-18  Peter Bartok  <pbartok@novell.com>
27649
27650         * Control.cs:
27651           - Hooked up the following events:
27652                 o ControlAdded
27653                 o ControlRemoved
27654                 o HandleDestroyed
27655                 o ImeModeChanged
27656                 o ParentChanged
27657                 o TabStopChanged
27658                 o Invalidated
27659                 o SystemColorsChanged
27660                 o ParentFontChanged
27661                 o Move
27662           - Removed debug output
27663           - Added a call to the current theme's ResetDefaults when a color change
27664             is detected
27665         * Form.cs: Now setting the proper ImeMode
27666         * Theme.cs: Defined a method to force recreation of cached resources
27667           and rereading of system defaults (ResetDefaults())
27668         * ThemeWin32Classic.cs: Added ResetDefaults() stub
27669
27670 2005-01-17  Peter Bartok  <pbartok@novell.com>
27671
27672         * Control.cs: Added missing attributes
27673
27674 2005-01-17  Jackson Harper  <jackson@ximian.com>
27675
27676         * TreeNode.cs: Implement editing. Add missing properties selected
27677         and visible.
27678         * TreeView.cs: Implement node editing. Also some fixes to use
27679         Invalidate (invalid area) instead of Refresh when selecting.
27680
27681 2005-01-17  Peter Bartok  <pbartok@novell.com>
27682
27683         * Control.cs:
27684           - Implemented InvokeGotFocus() method
27685           - Implemented InvokeLostFocus() method
27686           - Implemented InvokePaint() method
27687           - Implemented InvokePaintBackground() method
27688           - Implemented InvokeClick() method
27689           - Implemented FindForm() method
27690           - Implemented RectangleToClient() method
27691           - Implemented ClientToRectangle() method
27692           - Implemented ResetBackColor() method
27693           - Implemented ResetCursor() method
27694           - Implemented ResetFont() method
27695           - Implemented ResteForeColor() method
27696           - Implemented ResetImeMode() method
27697           - Implemented ResetLeftToRight() method
27698           - Implemented ResetText() method
27699           - Implemented Scale() methods
27700           - Implemented ScaleCore() method
27701           - Implemented Update() method
27702           - Removed unused variables
27703           - Stubbed AccessibilityNotifyClients and
27704             ControlAccessibleObject.NotifyClients() methods (dunno what to do
27705             with those yet)
27706           - Now setting proper default for RightToLeft property
27707           - Fixed bug in SetClientSizeCore that would cause windows to get
27708             really big
27709           - Now sending Click/DoubleClick events
27710           - Now selecting controls when left mouse button is clicked on
27711             selectable control
27712         * AccessibleEvents.cs: Added
27713         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
27714         * XplatUIOSX.cs: Stubbed UpdateWindow() method
27715         * XplatUIWin32.cs: Implemented UpdateWindow() method
27716         * XplatUIX11.cs: Implemented UpdateWindow() method
27717         * Form.cs: Removed stray semicolon causing CS0162 warning
27718         * ThemeWin32Classic.cs: Fixed unused variable warnings
27719         * ScrollableControl.cs: Now calls base method for ScaleCore
27720         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
27721           style to avoid interference with internal click handler (which is
27722           different than standard Control click handling)
27723         * RadioButton.cs:
27724           - Now unchecks all sibling radio buttons when control is
27725             selected (Fixes #68756)
27726           - Removed internal tabstop variable, using the one inherited from
27727             Control
27728
27729 2005-01-17  Jackson Harper  <jackson@ximian.com>
27730
27731         * NavigateEventArgs.cs: Fix base type.
27732         * LinkLabel.cs: Sig fix
27733         
27734 2005-01-17  Jackson Harper  <jackson@ximian.com>
27735
27736         * TreeView.cs: Only invalidate the effected nodes bounds when
27737         selecting nodes.
27738
27739 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27740
27741         * XplatUIWin32.cs: fixes Win32 marshaling
27742         * XplatUIX11.cs: fixes method signature
27743
27744 2005-01-17  Peter Bartok  <pbartok@novell.com>
27745
27746         * XplatUIX11.cs: Clean up resources when we no longer need them
27747
27748 2005-01-17  Peter Bartok  <pbartok@novell.com>
27749
27750         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
27751           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
27752           and DestroyCursor() methods.
27753         * Cursor.cs: Partially implemented, now supports standard cursors;
27754           still contains some debug code
27755         * Cursors.cs: Implemented class
27756         * Control.cs:
27757           - WndProc(): Added handling of WM_SETCURSOR message, setting the
27758             appropriate cursor
27759           - Implemented Cursor property
27760           - Replaced break; with return; more straightforwar and possibly
27761             faster
27762           - Now properly setting the result for WM_HELP
27763         * X11Structs.cs: Added CursorFontShape enum
27764         * XplatUIStructs.cs:
27765           - Added StdCursor enum (to support DefineStdCursor() method)
27766           - Added HitTest enum (to support sending WM_SETCURSOR message)
27767         * XplatUIX11.cs:
27768           - Now sends the WM_SETCURSOR message
27769           - Implemented new cursor methods
27770         * XplatUIOSX.cs: Stubbed new cursor methods
27771         * XplatUIWin32.cs:
27772           - Implemented new cursor methods
27773           - Added GetSystemMetrics function and associated enumeration
27774
27775 2005-01-15  Peter Bartok  <pbartok@novell.com>
27776
27777         * Control.cs:
27778           - WndProc(): Now handles EnableNotifyMessage
27779           - SelectNextControl(): Fixed bug where if no child or sibling
27780             controls exist we looped endlessly
27781
27782 2005-01-14  Jackson Harper  <jackson@ximian.com>
27783
27784         * TreeView.cs: Recalculate the tab pages when a new one is added
27785         so that the proper bounding rects are created.
27786
27787 2005-01-14  Jackson Harper  <jackson@ximian.com>
27788
27789         * TreeView.cs: Draw a gray box instead of a grip in the lower
27790         right hand corner when there are both horizontal and vertical
27791         scroll bars.
27792
27793 2005-01-14  Jackson Harper  <jackson@ximian.com>
27794
27795         * Control.cs: When erasing backgrounds use FromHwnd instead of
27796         FromHdc when there is a NULL wparam. This occurs on the X driver.
27797         * XplatUIX11.cs: Set the wparam to NULL.
27798
27799 2005-01-13  Jackson Harper  <jackson@ximian.com>
27800
27801         * PictureBox.cs: Implement missing methods (except ToString, need
27802         to test that on windows) and events. When visibility is changed we
27803         need to redraw the image because the buffers are killed. When size
27804         is changed refresh if the sizemode needs it.
27805
27806 2005-01-13  Peter Bartok  <pbartok@novell.com>
27807
27808         * Control.cs (SelectNextControl): Was using wrong method to select
27809           a control
27810
27811 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27812
27813         * ComboBox.cs: fixes dropstyle
27814
27815 2005-01-13  Peter Bartok  <pbartok@novell.com>
27816
27817         * Form.cs:
27818           - Implemented Select() override
27819           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
27820           - Now sets keyboard focus on startup
27821         * Control.cs (SelectNextControl): Now properly handles directed=true
27822         * TextBoxBase.cs:
27823           - WndProc: Now passes tab key on to base if AcceptTabChar=false
27824           - Added (really bad) focus rectangle (mostly for testing)
27825         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
27826           to enforce redraw on focus changes
27827         * ContainerControl.cs:
27828           - Fixed detection of Shift-Tab key presses
27829           - Fixed traversal with arrow keys
27830         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
27831           gonna keep this or if it's complete yet
27832         
27833 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27834
27835         * ComboBox.cs: missing properties, fixes
27836
27837 2005-01-13  Peter Bartok  <pbartok@novell.com>
27838
27839         * Panel.cs (ctor): Setting Selectable window style to off
27840         * Splitter.cs (ctor): Setting Selectable window style to off
27841         * GroupBox.cs (ctor): Setting Selectable window style to off
27842         * Label.cs (ctor): Setting Selectable window style to off
27843
27844 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
27845
27846         * UpDownBase.cs (InitTimer): If the timer has been already
27847         created, enable it.
27848
27849         Use a TextBox instead of a Label.
27850
27851 2005-01-12  Jackson Harper  <jackson@ximian.com>
27852
27853         * TreeView.cs: Refresh the tree after sorting the nodes. Always
27854         draw the connecting node lines (when ShowLines is true).
27855         * TreeNode.cs: The nodes index can now be updated. This is used
27856         when a node collection is sorted.
27857         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
27858         insert or an existing unsorted node collection can be sorted.
27859         
27860 2005-01-12  Peter Bartok  <pbartok@novell.com>
27861
27862         * ContainerControl.cs: Implemented ProcessDialogKeys()
27863
27864 2005-01-12  Peter Bartok  <pbartok@novell.com>
27865
27866         * Control.cs:
27867           - Implemented SelectNextControl() method
27868           - Several focus related bug fixes
27869           - Fixed Docking calculations to match MS documentation and
27870             behaviour
27871
27872 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
27873
27874         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
27875         bug fixes
27876
27877 2005-01-12  Peter Bartok  <pbartok@novell.com>
27878
27879         * Control.cs:
27880           - Fixed broken Contains() method
27881           - Implemented GetNextControl() method. Finally. This is the pre-
27882             requisite for focus handling.
27883
27884 2005-01-12  Peter Bartok  <pbartok@novell.com>
27885
27886         * OSXStrucs.cs: Added
27887
27888 2005-01-12  Peter Bartok  <pbartok@novell.com>
27889
27890         * XplatUIWin32.cs:
27891           - Removed PeekMessageFlags
27892           - Implemented SetWindowStyle() method
27893         * XplatUIStructs.cs: Added PeekMessageFlags
27894         * X11Structs: Added missing border_width field to XWindowChanges struct
27895         * XplatUIX11.cs:
27896           - PeekMessage: Now throws exception if flags which are not yet
27897             supported are passed
27898           - Implemented SetWindowStyle() method
27899           - Fixed SetZOrder to handle AfterHwnd properly
27900         * XplatUI.cs: Added SetWindowStyle() method
27901         * XplatUIDriver.cs: Added SetWindowStyle() abstract
27902         * Control.cs:
27903           - Implemented UpdateStyles() method
27904           - Implemented UpdateZOrder() method
27905         * XplatUIOSX.cs: Added SetWindowStyle() stub
27906
27907 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
27908
27909         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
27910         button mouse).
27911
27912
27913 2005-01-11  Jackson Harper  <jackson@ximian.com>
27914
27915         * TreeView.cs: Still need to draw lines to siblings even if out of
27916         the current node is out of the clip.
27917
27918 2005-01-11  Jackson Harper  <jackson@ximian.com>
27919
27920         * TreeView.cs: When setting the hbar/vbar/grip position use
27921         SetBounds so that perform layout is only called once. Also suspend
27922         and resume layout so layout is only done once for all controls.
27923         - Removed some debug fluff
27924         * SizeGrip.cs: Call base implmentation in overriding methods.
27925         - When visibility is changed the drawing buffers are killed so we
27926         need to redraw.
27927
27928 2005-01-11  Jackson Harper  <jackson@ximian.com>
27929
27930         * TreeView.cs: Calculate the open node count while drawing. This
27931         saves us an entire tree traversal for every paint operation. Use
27932         a member var for the open node count so less vars are passed around.
27933
27934 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
27935
27936         * MonthCalendar.cs:
27937         - fixed selection to use mousemove, not mouse polling on timer
27938         * ThemeWin32Classic.cs
27939         - removed redundant unused variable "no_more_content"
27940         
27941 2005-01-11  Peter Bartok  <pbartok@novell.com>
27942
27943         * XplatUIX11.cs (DoEvents): Needs to return when no more events
27944           are pending, so it now calls PeekMessage instead of GetMessage;
27945           implemented a incomplete version of PeekMessage
27946         
27947 2005-01-11  Peter Bartok  <pbartok@novell.com>
27948
27949         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
27950           I18n issues
27951         * TextBoxBase.cs: Added sending of TextChanged event
27952
27953 2005-01-10  Jackson Harper  <jackson@ximian.com>
27954
27955         * TreeView.cs: Try not to draw outside the clipping rectangle on
27956         each node element.
27957
27958 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
27959
27960         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
27961
27962 2005-01-10  Jackson Harper  <jackson@ximian.com>
27963
27964         * TreeView.cs:
27965         - Implement fast scrolling. Now only the newly
27966         exposed nodes are drawn and the old image is moved using the
27967         XplatUI::ScrollWindow method.
27968         - Factor in height of nodes when calculating whether or not the
27969         node is in the clipping rect.
27970
27971 2005-01-10  Jackson Harper  <jackson@ximian.com>
27972
27973         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
27974
27975 2005-01-10  Peter Bartok  <pbartok@novell.com>
27976
27977         * Application.cs: Added temporary hack to resolve all our resize
27978           required issues on startup. This will get fixed properly at
27979           some point in the future
27980
27981 2005-01-10  Jackson Harper  <jackson@ximian.com>
27982
27983         * SizeGrip.cs: New internal class that is used as a sizing
27984         grip control...hence the name.
27985
27986 2005-01-10  Peter Bartok  <pbartok@novell.com>
27987
27988         * Control.cs: Implemented proper TabIndex handling, now assigning
27989           a tabindex when a control is added to a container
27990         * GroupBox.cs (ctor): Now sets the Container style bit, required
27991           for Control.GetNextControl()
27992
27993 2005-01-09  Jackson Harper  <jackson@ximian.com>
27994
27995         * TextBoxBase.cs: Clear window when scrolling (fixes build).
27996
27997 2005-01-09  Peter Bartok <pbartok@novell.com>
27998
27999         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
28000           XplatUIX11.cs: Added ability to control ScrollWindow expose and
28001           an overload for ScrollWindow to allow only scrolling a rectangle
28002
28003 2005-01-09  Peter Bartok <pbartok@novell.com>
28004
28005         * Form.cs:
28006           - Implemented SetDesktopBounds method
28007           - Implemented SetDesktopLocation method
28008
28009 2005-01-08  Jackson Harper  <jackson@ximian.com>
28010
28011         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
28012         the node count has changed, this removes to VScroll::Refresh calls
28013         when drawing.
28014
28015 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
28016
28017         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
28018
28019 2005-01-07  Jackson Harper  <jackson@ximian.com>
28020
28021         * TreeNode.cs: Just update the single node when it is
28022         checked. Don't refresh after toggling, the Expand/Collapse already
28023         handles this.
28024         * TreeView.cs: Respect clipping a little more when drawing. Try
28025         not to redraw things that don't need to be redrawn. Just hide the
28026         scrollbars when they are no longer needed instead of removing
28027         them, so they don't have to be created again and again.
28028         
28029 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
28030
28031         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
28032         coordinates to window space to place the caret properly, FIXED.
28033         Implement GetWindowState & SetWindowState
28034
28035 2005-01-06  Peter Bartok <pbartok@novell.com>
28036
28037         * Form.cs:
28038           - Implemented ClientSize property
28039           - Implemented DesktopBounds property
28040           - Implemented DesktopLocation property
28041           - Implemented IsRestrictedWindow property
28042           - Implemented Size property
28043           - Implemented TopLevel property
28044           - Implemented FormWindowState property
28045         * Control.cs:
28046           - Implemented GetTopLevel() method
28047           - Implemented SetTopLevel() method
28048         * X11Structs.cs (Atom):
28049           - Added AnyPropertyType definition
28050           - Added MapState definiton and updated XWindowAttribute struct
28051         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
28052         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
28053         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
28054         * XplatUIWin32.cs:
28055           - Implemented GetWindowState() and SetWindowState() methods
28056           - Fixed Win32GetWindowLong return type
28057         * XplatUIX11.cs:
28058           - Introduced central function for sending NET_WM messages
28059           - Implemented GetWindowState() and SetWindowState() methods
28060         * TextBoxBase.cs (set_Lines):
28061           - Now uses Foreground color for text added via Text property (Duh!)
28062           - Added code to remember programmatically requested size (fixes
28063             behaviour when Multiline is set after Size)
28064           - Added AutoSize logic
28065
28066 2005-01-06  Jackson Harper  <jackson@ximian.com>
28067
28068         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
28069
28070 2005-01-06  Jackson Harper  <jackson@ximian.com>
28071
28072         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
28073         set to less then 0.
28074
28075 2005-01-06  Jackson Harper  <jackson@ximian.com>
28076
28077         * ScrollableControl.cs: Lazy init the scrollbars.
28078         
28079 2005-01-06  Jackson Harper  <jackson@ximian.com>
28080
28081         * Theme.cs: Speed up getting pens and solid brushes, by using
28082         their ARGB as a hash instead of tostring and not calling Contains.
28083
28084 2005-01-06  Peter Bartok <pbartok@novell.com>
28085
28086         * Form.cs:
28087           - Implemented OnActivated and OnDeactivate event trigger
28088           - Implemented Activate() method
28089           - Fixed ShowDialog() to activate the form that was active before
28090             the dialog was shown
28091         * XplatUIX11.cs:
28092           - Added global active_window var that tracks the currently active
28093             X11 window
28094           - Now always grabs Property changes from the root window to always
28095             catch changes on the active window property
28096           - Added code to PropertyNotify handler to send Active/Inactive
28097             messages when state changes. This puts X11 and Win32 en par on
28098             WM_ACTIVATE notifications (except for double notifications when
28099             the user clicks away from our modal window to another one of our
28100             windows)
28101
28102 2005-01-05  Jackson Harper  <jackson@ximian.com>
28103
28104         * ImageList.cs: Implment ctor
28105
28106 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
28107
28108         * XplatUIOSX.cs: Implement Activate/SetTopmost
28109
28110 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
28111
28112         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
28113
28114 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
28115
28116         * XplatUIOSX.cs: Implement GetActive/SetFocus.
28117
28118 2005-01-05  Peter Bartok <pbartok@novell.com>
28119
28120         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
28121           XplatUIOSX.cs: Added GetActive method to return the currently
28122           active window for the application (or null, if none is active)
28123         * Form.cs:
28124           - Implemented ActiveForm
28125           - Commented out owner assignment for modal dialogs (causes problems
28126             on Win32, since the owner will be disabled)
28127           - Reworked some Active/Focus handling (still incomplete)
28128         * CommonDialog.cs: Commented out owner assignment for modal dialogs
28129           (causes problems on Win32, since the owner will be disabled)
28130         * IWin32Window: Added ComVisible attribute
28131
28132 2005-01-05  Peter Bartok <pbartok@novell.com>
28133
28134         * ToolTip.cs (WndProc): Enable setting focus now that we have the
28135           required XplatUI functions.
28136
28137 2005-01-05  Peter Bartok <pbartok@novell.com>
28138
28139         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
28140           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
28141           to implement focus and activation handling; still incomplete and
28142           with debug output
28143
28144 2005-01-04  Peter Bartok <pbartok@novell.com>
28145
28146         * TextBoxBase.cs: Changed access level for Document property to
28147           match switch to internal for TextControl
28148
28149 2005-01-04  Peter Bartok <pbartok@novell.com>
28150
28151         * AccessibleObject: Added ComVisible attribute
28152
28153 2005-01-04  Jackson Harper  <jackson@ximian.com>
28154
28155         * X11Keyboard.cs: Remove unneeded var.
28156
28157 2005-01-04  Jackson Harper  <jackson@ximian.com>
28158
28159         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
28160         but PAINT.
28161         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
28162         ClientMessage. This makes apps exit cleanly (more often).
28163         
28164 2005-01-04  Jackson Harper  <jackson@ximian.com>
28165
28166         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
28167         handling focus, return correct colors and fonts,
28168         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
28169         handle selection, horizontal scrolling, and mouse interaction.
28170
28171 2005-01-04  Peter Bartok <pbartok@novell.com>
28172
28173         * ICommandExecutor.cs: Added
28174         * IDataGridColumnStyleEditingNotificationService.cs: Added
28175         * IFeatureSupport.cs: Added
28176         * IFileReaderService.cs: Added
28177         * IDataObject.cs: Added ComVisible attribute
28178         * AmbientProperties.cs: Added
28179         * BaseCollection.cs: Added missing attributes
28180         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
28181         * BaseCollection.cs: Added missing attributes
28182         * Binding.cs: Added TypeConverter attribute
28183         * BindingContext.cs: Added DefaultEvent attribute
28184         * BindingsCollection.cs: Added DefaultEvent attribute
28185         * Button.cs: Added DefaultValue attribute
28186         * DragEventArgs.cs: Added ComVisible attribute
28187         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
28188         * KeyEventArgs.cs: Added ComVisible attribute
28189         * KeyPressEventArgs.cs: Added ComVisible attribute
28190         * MouseEventArgs.cs: Added ComVisible attribute
28191         * NavigateEventArgs.cs: Added
28192         * NavigateEventHandler.cs: Added
28193         * FeatureSupport.cs: Added
28194         * OSFeature.cs: Added
28195         * Theme.cs: Added abstract Version property to support OSFeature
28196         * ThemeWin32Classic.cs: Added Version property to
28197           support OSFeature.Themes
28198         * ProgressBar.cs: Removed OnPaintBackground override, not required since
28199           the proper styles to avoid background drawing are set, also doesn't
28200           match MS signature
28201         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
28202         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
28203         * ScrollEventArgs.cs: Added ComVisible attribute
28204         * SplitterEventArgs.cs: Added ComVisible attribute
28205         * AccessibleSelection.cs: Added Flags attribute
28206         * Appearance.cs: Added ComVisible attribute
28207         * Border3DSide.cs: Added ComVisible attribute
28208         * Border3DStyle.cs: Added ComVisible attribute
28209         * BorderStyle.cs: Added ComVisible attribute
28210         * DragAction.cs: Added ComVisible attribute
28211         * ErrorBlinkStyle.cs: Added
28212         * ScrollEventType.cs: Added ComVisible attribute
28213         * AnchorStyles.cs: Added Editor attribute
28214         * DockStyle.cs: Added Editor attribute
28215         * HorizontalAlignment.cs: Added ComVisible attribute
28216         * HelpEventArgs.cs: Added ComVisible attribute
28217         * PaintEventArgs.cs: Added IDisposable
28218
28219 2005-01-04  Peter Bartok <pbartok@novell.com>
28220
28221         * TextControl.cs: Switched Line, LineTag and Document classes to
28222           internal
28223
28224 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
28225
28226         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
28227         Simple mode, fixes, IntegralHeight, etc.
28228
28229 2005-01-04  Peter Bartok <pbartok@novell.com>
28230
28231         * TextBoxBase.cs: Using proper font variable now
28232
28233 2005-01-04  Peter Bartok <pbartok@novell.com>
28234
28235         * Form.cs (ShowDialog): Set parent to owner, if provided
28236         * GroupBox.cs: Removed unused vars
28237         * TextControl.cs:
28238           - Added GetHashCode() for Document and LineTag classes
28239           - Removed unused variables
28240           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
28241             to allow translation between continuous char position and line/pos
28242         * CheckBox.cs: Removed vars that are provided by base class
28243         * RadioButton.cs: Removed vars that are provided by base class, added
28244           new keyword where required
28245         * LinkLabel.cs: Added new keyword where required
28246         * Control.cs (WndProc): Removed unused variable
28247         * TextBoxBase.cs:
28248           - Finished SelectionLength property
28249           - Implemented SelectionStart property
28250           - Implemented Text property
28251           - Removed unused vars
28252         * MessageBox.cs: Added new keyword where required
28253         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
28254           WndProc signature
28255         * MenuAPI.cs: Added new keyword where required
28256         * ButtonBase.cs: Removed vars that are provided by base class, added
28257           new keyword where required
28258         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
28259           argument to double, to allow compiling with csc 2.0 (Atsushi ran
28260           into this)
28261         * Application.cs (Run): Now triggers the ThreadExit event
28262         * CommonDialog.cs: Added new keyword where required; now properly sets
28263           parent (owner) for dialog
28264         * XplatUIX11.cs: Commented out unused vars
28265         * StatusBar.cs: Fixed signature for Text property
28266         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
28267
28268 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
28269
28270         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
28271         TrackBar.cs, MonthCalendar.cs: remove unused vars
28272
28273 2005-01-03  Jackson Harper  <jackson@ximian.com>
28274
28275         * ThemeWin32Classic.cs:
28276         * X11Keyboard.cs: Remove unused vars.
28277
28278 2005-01-03  Peter Bartok  <pbartok@novell.com>
28279
28280         * TextBox.cs:
28281           - set_Text: Tied into TextControl
28282           - set_TextAlignment: Tied into TextControl
28283         * TextControl.cs:
28284           - Added alignment properties and implemented alignment handling
28285             and drawing (still has a bug, not generating proper expose events)
28286           - Added new Line() constructor to allow passing the line alignment
28287           - Fixed selection setting, properly handling end<start now
28288           - Added aligment considerations to RecalculateDocument()
28289         * TextBoxBase.cs:
28290           - Now properly enforces control height for single line controls
28291           - Added support for CharacterCasing
28292           - Added IsInputKey override
28293           - Fixed Keys.Enter logic
28294           - Added SetBoundsCore override
28295           - Fixed mouse selection handling
28296
28297 2005-01-03  Jackson Harper  <jackson@ximian.com>
28298
28299         * TreeView.cs:
28300           - Collapse and uncheck all nodes when CheckBoxes is disabled.
28301           - Checkboxes are always aligned to the bottom of the node,
28302           regardless of item height.
28303           - Use the node bounds to draw the text so we can center it when
28304           the item height is greater then the font height.
28305           - Node::Bounds are only the text part of the node.
28306         * TreeNode.cs: New method to combine collapsing and unchecking all
28307           nodes recursively.
28308
28309 2005-01-02  Jackson Harper  <jackson@ximian.com>
28310
28311         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
28312         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
28313         tree when a check is changed. TODO: Only refresh the checked node.
28314
28315 2004-12-30  Jackson Harper  <jackson@ximian.com>
28316
28317         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
28318         * TreeNode.cs: When collapsing make sure to never collapse the
28319         root node.
28320
28321 2004-12-29  Jackson Harper  <jackson@ximian.com>
28322
28323         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
28324         
28325 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
28326
28327         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
28328
28329 2004-12-28  Peter Bartok  <pbartok@novell.com>
28330
28331         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
28332           not yet assigned
28333
28334 2004-12-28  Peter Bartok  <pbartok@novell.com>
28335
28336         * Control.cs (WndProc): Added WM_HELP handler, now generates
28337           HelpRequested event
28338         * Form.cs: Added HelpButton property and required support code
28339         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
28340
28341 2004-12-28  Peter Bartok  <pbartok@novell.com>
28342
28343         * CommonDialog.cs:
28344           - Made DialogForm.owner variable internal
28345           - Added check to ensure owner form is set before setting
28346             owner properties in CreateParams
28347
28348 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
28349
28350         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
28351           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
28352           GetCursorPos.  Fix major visibility issues.  Rework the windowing
28353           system to support borderless/titleless windows (implements menus).
28354           Fix GetWindowPos.  Implement initial background color support for
28355           views.
28356
28357 2004-12-28  Peter Bartok  <pbartok@novell.com>
28358
28359         * Form.cs (get_CreateParams): Make sure we have an owner before using
28360           the owner variable. Implement proper default if no owner exists
28361
28362 2004-12-28  Peter Bartok  <pbartok@novell.com>
28363
28364         * In preparation for making Managed.Windows.Forms the default build target
28365           for System.Windows.Forms, the following stubbed files were added.
28366           Dialogs are currently being implemented by contributors and are only
28367           short-term place holders.
28368         * ColorDialog.cs: Initial check-in (minmal stub)
28369         * DataGrid.cs: Initial check-in (minimal stub)
28370         * DataGridLineStyle.cs: Initial check-in (minimal stub)
28371         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
28372         * DataGridTableStyle.cs: Initial check-in (minimal stub)
28373         * FontDialog.cs: Initial check-in (minimal stub)
28374         * FileDialog.cs: Initial check-in (minimal stub)
28375         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
28376         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
28377         * OpenFileDialog: Initial check-in (minimal stub)
28378         * IComponentEditorPageSite.cs: Initial check-in
28379         * Splitter.cs: Initial check-in (for Jackson)
28380         * SplitterEventArgs.cs: Initial check-in (for Jackson)
28381         * SplitterEventHandler.cs: Initial check-in (for Jackson)
28382         * TextBox.cs: Initial check-in; still needs some wiring to
28383           TextControl backend
28384         * Form.cs: Implemented ControlBox property
28385         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
28386         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
28387         * TextControl.cs: Added selection functionality; added todo header
28388         * TextBoxBase.cs:
28389           - Implemented Lines property
28390           - Implemented TextHeight property
28391           - Implemented SelectedText property
28392           - Implemented SelectionLength property
28393           - Implemented SelectAll method
28394           - Implemented ToString method
28395           - Removed and cleaned up some debug code
28396           - Implemented (still buggy) mouse text selection
28397
28398 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
28399
28400         * ComboBox.cs: Complete DropDownList implementation, fixes.
28401
28402 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
28403
28404         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
28405         * ComboBoxStyle.cs: ComboBoxStyle enum
28406         * ComboBox.cs: Initial work on ComboBox control
28407
28408 2004-12-21  Peter Bartok  <pbartok@novell.com>
28409
28410         * Control.cs (ctor, CreateParams): Moved setting of is_visible
28411           forward so that anything that creates a window gets the default,
28412           also no longer uses Visible property in CreateParams to avoid
28413           walking up the parent chain and possibly get the wrong visible
28414           status. Fixed IsVisible to no longer walk up to the parent.
28415
28416 2004-12-21  Peter Bartok  <pbartok@novell.com>
28417
28418         * Form.cs (ShowDialog): Unset modality for the proper window
28419  
28420 2004-12-20  Peter Bartok  <pbartok@novell.com>
28421
28422         * CommonDialog.cs: Initial check-in
28423
28424 2004-12-20  Peter Bartok  <pbartok@novell.com>
28425
28426         * Control.cs (Visible): Now uses the parent window instead of the
28427           client area window for the property
28428
28429         * Form.cs
28430           - ShowDialog(): Now uses the proper window for modality
28431           - The default visibility state for the form parent is now false. This
28432             will prevent the user from seeing all the changes to the form and
28433             its controls before the application hits Application.Run()
28434           - Removed some stale commented out code
28435
28436         * NativeWindow.cs:
28437           - Added FindWindow() method to have a method to check for existence
28438             of a window handle
28439           - Added ability to override default exception handling (for example
28440             when debugging with VS.Net; to do this the ExternalExceptionHandler
28441             define must be set
28442           - Removed some useless debug output
28443
28444         * XplatUIX11.cs:
28445           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
28446             not working as expected
28447           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
28448             property to allow switching back to the modal window if focus is
28449             given to another one of our windows (Application Modal)
28450           - Now only sets override_redirect if we create a window
28451             without WS_CAPTION
28452           - Moved EventMask selection before mapping of newly created window
28453             so we can catch the map event as well
28454           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
28455           - Added various Atom related DllImports
28456           - Implemented Exit() method
28457           - .ctor() : No longer shows window if WS_VISIBLE is not defined
28458             in the CreateParams
28459
28460         * MessageBox.cs: Now properly deals with the FormParent window by
28461           providing an override the FormParent CreateParams property to
28462           set as POPUP instead of OVERLAPPED window.
28463
28464 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
28465
28466         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
28467         Minor code cleanup.
28468
28469 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
28470         
28471         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
28472
28473 2004-12-18  Peter Bartok  <pbartok@novell.com>
28474
28475         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
28476           implementing SetModal() method
28477
28478 2004-12-18  Peter Bartok  <pbartok@novell.com>
28479
28480         * X11Structs.cs (XGCValues): Fixed type of function element
28481         * XplatUI.cs: Added ScrollWindow() method
28482         * XplatUIDriver.cs: Added ScrollWindow() abstract
28483         * XplatUIWin32.cs: Implemented ScrollWindow() method
28484         * XplatUIX11.cs: Implemented ScrollWindow() method
28485         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
28486
28487 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28488
28489         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
28490         Some more keyboard support (INCOMPLETE)
28491
28492 2004-12-17  Peter Bartok  <pbartok@novell.com>
28493
28494         * TextControl.cs:
28495         - Added color attribute to line tags.
28496         - Added color argument to all functions dealing with tags
28497         - Added color argument support to various functions
28498         - Fixed miss-calculation of baseline/shift in certain circumstances
28499
28500         * TextBoxBase.cs: Added new color option to test code
28501
28502 2004-12-17  Jackson Harper  <jackson@ximian.com>
28503
28504         * TreeNode.cs:
28505         * MonthCalendar.cs: Signature fixes
28506
28507 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28508
28509         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
28510         keyboard event moved it.  Create a new graphics context for each paint resolves this
28511
28512 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28513
28514         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
28515         Make caret exist and go blink blink.  Initial keyboard support.
28516         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
28517         works.
28518
28519 2004-12-17  Jackson Harper  <jackson@ximian.com>
28520
28521         * XplatUIStructs.cs: Updated set of virtual keycodes.
28522         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
28523
28524 2004-12-17  Jackson Harper  <jackson@ximian.com>
28525
28526         * XplatUIX11.cs: Prune old keyboard code.
28527
28528 2004-12-17  Jackson Harper  <jackson@ximian.com>
28529
28530         * XplatUIX11.cs: When generating mouse wparams get the modifier
28531         keys from the ModifierKeys property.
28532
28533 2004-12-17  Jackson Harper  <jackson@ximian.com>
28534
28535         * X11Keyboard.cs: Send up/down input when generating
28536         messages. Remove some unused vars.
28537
28538 2004-12-17  Jackson Harper  <jackson@ximian.com>
28539
28540         * TabControl.cs:
28541         * TreeView.cs: get rid of warnings.
28542
28543 2004-12-17  Jackson Harper  <jackson@ximian.com>
28544
28545         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
28546
28547 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
28548
28549         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
28550           CheckedListBox.cs: Implementation
28551
28552 2004-12-17  Peter Bartok  <pbartok@novell.com>
28553
28554         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
28555
28556 2004-12-16  Peter Bartok  <pbartok@novell.com>
28557
28558         * TextControl.cs:
28559           - InsertCharAtCaret(): Fixed start pos fixup
28560           - CaretLine_get: No longer derives the line from the tag, the tag
28561             could be stale if lines in the document have been added or deleted
28562           - RebalanceAfterDelete(): Fixed bug in balancing code
28563           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
28564           - Line.Streamline(): Now can also elminate leading empty tags
28565           - DumpTree(): Added a few more tests and prevented exception on
28566             uninitialized data
28567           - Added Debug section for Combining lines
28568           - Delete(): Now copies all remaining properties of a line
28569           
28570         * TextBoxBase.cs:
28571           - Left mousebutton now sets the caret (and middle button still acts
28572             as formatting tester, which must go away soon)
28573           - Added Debug section for Deleting/Combining lines
28574           - Fixed calculations for UpdateView after Combining lines
28575
28576 2004-12-16  Peter Bartok  <pbartok@novell.com>
28577
28578         * TextControl.cs: Now properly aligns text on a baseline, using the
28579           new XplatUI.GetFontMetrics() method. Simplified several calculations
28580         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
28581           defined
28582
28583 2004-12-16  Peter Bartok  <pbartok@novell.com>
28584
28585         * XplatUI.cs: Added GetFontMetrics() method
28586         * XplatUIDriver.cs: Added GetFontMetrics() abstract
28587         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
28588           into libgdiplus, our private GetFontMetrics function
28589         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
28590         * XplatUIWin32.cs: Implemented GetFontMetrics() method
28591
28592 2004-12-16  Jackson Harper  <jackson@ximain.com>
28593
28594         * XplatUIStruct.cs: Add enum for dead keys
28595         * X11Keyboard.cs: Map and unmap dead keys.
28596
28597 2004-12-16  Jackson Harper  <jackson@ximian.com>
28598
28599         * X11Keyboard.cs: Detect and use the num lock mask.
28600
28601 2004-12-16  Peter Bartok  <pbartok@novell.com>
28602
28603         * Control.cs (CreateGraphics): Added check to make sure the
28604           handle of the window exists before calling Graphics.FromHwnd()
28605
28606 2004-12-16  Peter Bartok  <pbartok@novell.com>
28607
28608         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
28609           contains a lot of code that's not supposed to be there for the
28610           real thing, but required for developing/testing the textbox
28611           backend.
28612
28613 2004-12-16  Peter Bartok  <pbartok@novell.com>
28614
28615         * TextControl.cs:
28616         - Fixed Streamline method
28617         - Added FindTag method to Line
28618         - Added DumpTree method for debugging
28619         - Added DecrementLines() method for deleting lines
28620         - Fixed UpdateView to update the cursor to end-of-line on single-line
28621           updates
28622         - Added PositionCaret() method
28623         - Fixed MoveCaret(LineDown) to move into the last line, too
28624         - Added InsertChar overload
28625         - Fixed InsertChar tag offset calculations
28626         - Added DeleteChar() method
28627         - Added Combine() method for folding lines
28628         - Fixed Delete() method, no longer allocates wasted Line object and
28629           now copies all properties when swapping nodes
28630         - Delete() method now updates document line counter
28631
28632 2004-12-15  Jackson Harper  <jackson@ximian.com>
28633
28634         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
28635         * X11Keyboard.cs: Expose the currently selected modifier keys
28636         through a property.
28637
28638 2004-12-15  Peter Bartok  <pbartok@novell.com>
28639
28640         * TextControl.cs: Initial check-in. Still incomplete
28641
28642 2004-12-15  Jackson Harper  <jackson@ximian.com>
28643
28644         * TreeNode.cs:
28645         * TreeView.cs: Fix build on csc (second time today ;-))
28646
28647 2004-12-15  Jackson Harper  <jackson@ximian.com>
28648
28649         * TreeView.cs: Store the treenodes plus/minus box bounds when it
28650         is calculated and use this for click testing.
28651         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
28652
28653 2004-12-15  Jackson Harper  <jackson@ximian.com>
28654
28655         * TreeView.cs: Pass the nodes image index to the image list when
28656         drawing that image.
28657
28658 2004-12-15  Jackson Harper  <jackson@ximian.com>
28659
28660         * X11Keyboard.cs: Set messages hwnd.
28661         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
28662         post_message calls.
28663
28664 2004-12-15  Jackson Harper  <jackson@ximian.com>
28665
28666         * X11Keyboard.cs: Fix to compile with csc.
28667         
28668 2004-12-15  Jackson Harper  <jackson@ximian.com>
28669
28670         * X11Structs.cs: Add key mask values
28671         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
28672         * X11Keyboard.cs: New file - Extrapolates and interpolates key
28673         down/up foo into WM_CHAR foo
28674         * KeyboardLayouts.cs: Common keyboard layouts
28675         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
28676         post messages into the main queue.
28677
28678 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
28679
28680         * Button.cs: implement ProcessMnemonic
28681         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
28682           brushes everytime
28683         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
28684         * ButtonBase.cs: Show HotkeyPrefix (not the &)
28685
28686 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
28687         
28688         * MonthCalendar.cs: Implemented click-hold for next/previous month
28689           and date selection
28690           
28691 2004-12-11  Peter Bartok  <pbartok@novell.com>
28692
28693         * X11Structs.cs:
28694           - Added XKeyboardState (moved from XplatUIX11.cs)
28695           - Added XCreateGC related enums and structures
28696           - Added GXFunction for XSetFunction
28697
28698         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
28699
28700         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
28701           CaretVisible() calls
28702
28703         * ToolTip.cs: Added code to prevent stealing focus from app windows
28704
28705         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
28706           DestroyCaret, SetCaretPos and CaretVisible)
28707
28708         * XplatUIX11.cs:
28709           - Added implementation for caret functions
28710           - Moved hover variables into a struct, to make it a bit easier
28711             on the eyes and to debug
28712           - Removed XKeyboardState (moved to XplatUIX11.cs)
28713           - Moved Keyboard properties into the properties region
28714
28715         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
28716           call to get a graphics context for our control
28717
28718         * XplatUIOSX.cs: Added empty overrides for the new caret functions
28719
28720         * TreeView.cs: Fixed bug. No matter what color was set it would always
28721           return SystemColors.Window
28722
28723         * XplatUIWin32.cs: Implemented caret overrides
28724
28725 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
28726
28727         * ListBox.cs: fire events, implement missing methods and properties,
28728         sorting.
28729
28730 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
28731
28732         * MonthCalendar.cs: invalidation bug fixing
28733         * ThemeWin32Classic.cs: paint fixing
28734
28735 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
28736
28737         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
28738         prepare the CGContextRef there now.
28739
28740 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
28741
28742         * MonthCalendar.cs:
28743           - optimisationL only invalidate areas that have changed
28744         * ThemeWin32Classic.cs:
28745           - only paint parts that intersect with clip_area
28746
28747 2004-12-09  Peter Bartok  <pbartok@novell.com>
28748
28749         * Application.cs: Undid changes from r37004 which cause problems
28750         on X11
28751
28752 2004-12-09  Ravindra  <rkumar@novell.com>
28753
28754         * ToolBar.cs: Added support for displaying ContextMenu
28755         attached to a button on ToolBar.
28756         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
28757         property.
28758
28759 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
28760
28761         * Label.cs: autosize works in text change and removes unnecessary
28762         invalidate
28763
28764 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
28765
28766         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28767         remove warnings
28768
28769 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
28770
28771         * XplatUIOSX.cs: Added mouse move/click/grab support
28772         Remove some debugging WriteLines not needed anymore.
28773         Add window resizing/positioning.
28774         Fix visibility on reparenting.
28775
28776 2004-12-08  Peter Bartok  <pbartok@novell.com>
28777
28778         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
28779
28780 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
28781
28782         * XplatUIOSX.cs: Initial checkin
28783         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
28784
28785 2004-12-03  Ravindra <rkumar@novell.com>
28786
28787         * ListView.cs: Added some keybindings and fixed scrolling.
28788         ScrollBars listen to ValueChanged event instead of Scroll
28789         Event. This would let us take care of all changes being
28790         done in the scrollbars' values programmatically or manually.
28791         * ListView.cs (CanMultiselect): Added a check for shift key.
28792         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
28793         * ListViewItem.cs (Clone): Fixed. We need to make a copy
28794         of ListViewSubItemCollection as well.
28795
28796 2004-12-06  Peter Bartok <pbartok@novell.com>
28797
28798         * Control.cs (Parent): Added check and exception to prevent
28799         circular parenting
28800
28801 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
28802
28803         * ListBox.cs: implemented clipping, selection single and multiple,
28804         bug fixing
28805
28806 2004-12-03  Ravindra <rkumar@novell.com>
28807
28808         * ListView.cs (ListView_KeyDown):
28809         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
28810         when CTRL key is pressed.
28811         * ListViewItem.cs (Selected): Fixed setting the property.
28812
28813 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
28814
28815         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
28816
28817         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
28818         MinimizeBox, ShowInTaskbar, TopMost properties.
28819
28820         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
28821         will be implemented).
28822
28823 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
28824
28825         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
28826
28827         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
28828         tests.
28829         
28830         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
28831         
28832         * TreeView.cs: BackColor is Colors.Window.
28833
28834 2004-12-01  Jackson Harper  <jackson@ximian.com>
28835
28836         * TreeView.cs: When resizing the tree if the user is making it
28837         smaller we don't get expose events, so we need to handle adding
28838         the horizontal scrollbar in the size changed handler as well as
28839         the expose handler.
28840
28841 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
28842
28843         * DrawItemState.cs: fixes wrong enum values
28844
28845 2004-12-01  Jackson Harper  <jackson@ximian.com>
28846
28847         * TreeView.cs: Resize the hbar as well as the vbar on resize.
28848
28849 2004-12-01  Jackson Harper  <jackson@ximian.com>
28850
28851         * NodeLabelEditEventArgs.cs:
28852         * NodeLabelEditEventHandler.cs:
28853         * OpenTreeNodeEnumerator.cs:
28854         * TreeNode.cs:
28855         * TreeNodeCollection.cs:
28856         * TreeView.cs:
28857         * TreeViewAction.cs:
28858         * TreeViewCancelEventArgs.cs:
28859         * TreeViewCancelEventHandler.cs:
28860         * TreeViewEventArgs.cs:
28861         * TreeViewEventHandler.cs: Initial implementation.
28862
28863 2004-12-01  Ravindra <rkumar@novell.com>
28864
28865         * ListView.cs (CalculateListView): Fixed scrolling related
28866         calculations. Also, removed some debug statements from other
28867         places.
28868         * ListViewItem.cs: Changed access to 'selected' instance variable
28869         from private to internal.
28870         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
28871
28872 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
28873
28874         * ThemeWin32Classic.cs: remove cache of brush and pens for
28875         specific controls and use the global system, fixes scrollbutton
28876         bugs (for small sizes, disabled, etc)
28877         
28878         * ScrollBar.cs: does not show the thumb for very small controls
28879         (as MS) and allow smaller buttons that the regular size
28880
28881 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
28882
28883         * UpDownBase.cs: Add abstract methods for the interface.
28884         Add new virtual methods (need to be hooked up to TextEntry when it
28885         exists).
28886         Add override methods for most features.
28887         Computes the size, forces the height of the text entry.
28888
28889         * NumericUpDown.cs: Put here the current testing code.
28890
28891         * Set eol-style property on all files that do not have mixed line
28892         endings, to minimize the future problems.  There are still a few
28893         files with mixed endings, and someone should choose whether they
28894         want to move it or not.
28895
28896 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
28897
28898         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
28899         System.Colors
28900         
28901 2004-11-30  Ravindra <rkumar@novell.com>
28902
28903         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
28904         drawing and replaced use of SystemColors by theme colors.
28905         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
28906         * ListView.cs (ListViewItemCollection.Add): Throw exception when
28907         same ListViewItem is being added more than once.
28908
28909 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
28910
28911         * MonthCalendar.cs:
28912           - ControlStyles love to make the control not flicker
28913           
28914 2004-11-30  Peter Bartok  <pbartok@novell.com>
28915
28916         * CharacterCasing.cs: Added
28917
28918 2004-11-29  Peter Bartok  <pbartok@novell.com>
28919
28920         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28921           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
28922           I am removing these files as they conflict with already completed
28923           work. While it is fantastic to get contributions to MWF, I
28924           respectfully ask that everyone please coordinate their contributions
28925           through mono-winforms-list or #mono-winforms at this time. We're
28926           explicitly avoiding stubbing and don't want controls that don't have
28927           their basic functionality implemented in svn. Please also see
28928           http://www.mono-project.com/contributing/winforms.html
28929
28930
28931 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
28932
28933         * Application.cs (ModalRun): Don't hang after exit.
28934
28935         * Theme.cs: New TreeViewDefaultSize property.
28936
28937         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
28938         with less hardcoded SystemColors constant.
28939         Implemented TreeViewDefaultSize.
28940
28941         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28942         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
28943
28944
28945 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
28946
28947         * MonthCalendar.cs:
28948           - Fix NextMonthDate and PrevMonthDate click moving calendar
28949
28950 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
28951
28952         * MonthCalendar.cs:
28953           - Fix usage of ScrollChange Property when scrolling months
28954
28955 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
28956
28957         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
28958          - Fixes menu destroying
28959          - Support adding and removing items on already created menus
28960
28961 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
28962
28963         * MonthCalendar.cs:
28964           - Re-worked all bolded dates handling to match win32
28965         * ThemeWin32Classic.cs:
28966           - Fixed rendering with bolded dates
28967
28968 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
28969
28970         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
28971         - Horizontal scroolbar
28972         - Multicolumn
28973         - Fixes
28974
28975
28976 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
28977
28978         * MonthCalendar.cs:
28979           - Fix Usage of MaxSelectionCount from SelectionRange
28980           - Fixed Shift + Cursor Selection
28981           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
28982           - Fixed normal cursor selection to be compat with win32
28983           - Fixed Shift + Mouse Click selection
28984
28985 2004-11-24  Peter Bartok <pbartok@novell.com>
28986
28987         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
28988         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
28989         * XplatUIX11.cs:
28990           - CreatedKeyBoardMsg now updates keystate with Alt key
28991           - Added workaround for timer crash to CheckTimers, Jackson will
28992             develop a proper fix and check in later
28993           - Implemented DispatchMessage
28994           - Removed calling the native window proc from GetMessage (call
28995             now moved to DispatchMessage)
28996
28997         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
28998           the keydata (Fixes bug #69831)
28999
29000         * XplatUIWin32.cs:
29001           - (DispatchMessage): Switched to return IntPtr
29002           - Added DllImport for SetFocus
29003
29004 2004-11-24  Ravindra <rkumar@novell.com>
29005
29006         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
29007         background drawing.
29008         * ListViewItem.cs: Fixed various properties, calculations
29009         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
29010         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
29011         and some internal properties. Fixed MouseDown handler and Paint
29012         method.
29013
29014 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
29015
29016         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
29017
29018 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
29019
29020         * ContainerControl.cs: correct accidental check in of local changes
29021
29022 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
29023
29024         * ThemeWin32Classic.cs:
29025                 - Fixed Drawing Last month in grid (sometimes not showing)
29026         * MonthCalendar.cs:
29027                 - Fixed title width calculation bug (makeing title small)
29028
29029 2004-11-23  Peter Bartok <pbartok@novell.com>
29030
29031         * XplatUIX11.cs:
29032           - Added generation of WM_MOUSEHOVER event
29033           - Added missing assignment of async_method atom
29034           - Fixed WM_ERASEBKGND; now only redraws the exposed area
29035
29036 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
29037
29038         * ThemeWin32Classic.cs:
29039                 - Fixed Drawing of today circle when showtodaycircle not set
29040                 - fixed drawing of first and last month in the grid (gay dates)
29041         * MonthCalendar.cs:
29042                 - Fixed Drawing of today circle
29043                 - Fixed drawing of grady dates
29044                 - Fixed HitTest for today link when ShowToday set to false
29045                 - Fixed DefaultSize to obey ShowToday
29046
29047 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
29048
29049         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
29050         * System.Windows.Forms/Theme.cs
29051         * MonthCalendar.cs: added for MonthCalendar
29052         * SelectionRange.cs: added for MonthCalendar
29053         * Day.cs: added for MonthCalendar: added for MonthCalendar
29054         * DateRangeEventArgs.cs: added for MonthCalendar
29055         * DateRangeEventHandler.cs: added for MonthCalendar
29056
29057 2004-11-22  Ravindra <rkumar@novell.com>
29058
29059         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
29060         property.
29061
29062 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
29063
29064         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
29065         event handler.
29066         
29067         * NumericUpDown.cs: Added new implementation.
29068         * UpDownBase.cs: Added new implementation.
29069
29070         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
29071         implementations.
29072         
29073         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
29074         implementations.
29075
29076         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
29077         methods.
29078
29079 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
29080
29081         * Timer.cs  (Dispose): Should call the base dispose when
29082         overriding.
29083
29084 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
29085
29086         * ScrollBar.cs: updates thumb position when max, min or increment
29087         is changed
29088
29089 2004-11-21  Ravindra <rkumar@novell.com>
29090
29091         * ListView.cs: Implemented item selection, activation and
29092         column header style. Fixed properties to do a redraw, if
29093         required. Added support for MouseHover, DoubleClick, KeyDown
29094         and KeyUp event handling and some minor fixes.
29095         * ListViewItem.cs: Fixed constructor.
29096         * ThemeWin32Classic.cs: Improved drawing for ListView.
29097
29098 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
29099
29100         * ThemeWin32Classic.cs: initial listbox drawing code
29101         * DrawMode.cs: new enumerator
29102         * ListControl.cs: stubbed class
29103         * ListBox.cs: initial implementation
29104         * Theme.cs: new methods definitions
29105         * SelectionMode.cs: new enumerator
29106
29107 2004-11-17  Peter Bartok  <pbartok@novell.com>
29108
29109         * XplatUIWin32.cs: Added double-click events to the class style
29110         * Control.cs (WndProc):
29111           - Added handling of click-count to MouseDown/ MouseUp events.
29112           - Added handling of middle and right mouse buttons
29113           - Removed old debug code
29114
29115 2004-11-17  Jackson Harper  <jackson@ximian.com>
29116
29117         * XplatUIX11.cs: Use the new Mono.Unix namespace.
29118
29119 2004-11-17  Ravindra <rkumar@novell.com>
29120
29121         * ListView.cs: Added event handling for MouseMove/Up/Down.
29122         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
29123         * ThemeWin32Classic.cs: We need to clear the graphics context and
29124         draw column header in a proper state.
29125
29126
29127 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
29128
29129         *  Menu.cs: fixes signature
29130
29131 2004-11-16  Peter Bartok  <pbartok@novell.com>
29132
29133         * XplatUIX11.cs (GetMessage): Implemented generation of
29134           double click mouse messages
29135
29136 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
29137
29138         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
29139         not by menu
29140
29141 2004-11-11  Peter Bartok  <pbartok@novell.com>
29142
29143         * HandleData.cs: Added Visible property
29144         * XplatUIX11.cs (IsVisible): Now uses Visible property from
29145           HandleData
29146         * XplatUIX11.cs: Removed old debug leftovers
29147         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
29148         * Control.cs (WndProc): Removed old debug leftovers,
29149           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
29150           needed WM_SIZE handling
29151
29152 2004-11-11  Jackson Harper  <jackson@ximian.com>
29153
29154         * OwnerDrawPropertyBag.cs:
29155         * TreeViewImageIndexConverter.cs: Initial implementation
29156
29157 2004-11-10  Jackson Harper  <jackson@ximian.com>
29158
29159         * ThemeWin32Classic.cs:
29160         * TabControl.cs: instead of moving tabs by the slider pos just
29161         start drawing at the tab that is offset by the slider. This way
29162         scrolling always moves by exactly one tab.
29163
29164 2004-11-10  Jackson Harper  <jackson@ximian.com>
29165
29166         * TabControl.cs: You can only scroll left when the slider has
29167         already ben moved right.
29168         
29169 2004-11-10  Jackson Harper  <jackson@ximian.com>
29170
29171         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
29172         the clip area.
29173         
29174 2004-11-10  Jackson Harper  <jackson@ximian.com>
29175
29176         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
29177         clip area.
29178         
29179 2004-11-09  Jackson Harper  <jackson@ximian.com>
29180
29181         * TabControl.cs (CalcXPos): New helper method so we can determine
29182         the proper place to start drawing vertical tabs.
29183         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
29184         
29185 2004-11-09  Jackson Harper  <jackson@ximian.com>
29186
29187         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
29188         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
29189         and Bottom, left and right are illegal values for this and
29190         multiline is enabled when the alignment is set to left or right.
29191         (DrawTab): Each alignment block should draw the text itself now
29192         because Left requires special love. Also add rendering for Left
29193         aligned tabs.
29194         
29195 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
29196
29197         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
29198         does not destroy the windows, removes debugging messages
29199
29200 2004-11-09  jba  <jba-mono@optusnet.com.au>
29201
29202         * ThemeWin32Classic.cs
29203         (DrawButtonBase): Fix verticle text rect clipping in windows
29204         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29205         rendering and incorrect text rect clipping
29206         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
29207         rendering and incorrect text rect clipping
29208         
29209 2004-11-08  Jackson Harper  <jackson@ximian.com>
29210
29211         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
29212         bottom when they are bottom aligned so the bottoms of the tabs get
29213         displayed.
29214         * TabControl.cs (DropRow): Move rows up instead of down when the
29215         tab control is bottom aligned.
29216
29217 2004-11-08 13:59  pbartok
29218
29219         * XplatUIX11.cs:
29220           - Added handling for various window styles
29221           - Added handling for popup windows
29222           - Added SetTopmost handling
29223
29224 2004-11-08 13:55  pbartok
29225
29226         * XplatUIWin32.cs:
29227           - Added argument to SetTopmost method
29228           - Fixed broken ClientToScreen function
29229
29230 2004-11-08 13:53  pbartok
29231
29232         * XplatUIStructs.cs:
29233           - Added missing WS_EX styles
29234
29235 2004-11-08 13:53  pbartok
29236
29237         * XplatUI.cs, XplatUIDriver.cs:
29238           - Added argument to SetTopmost
29239
29240 2004-11-08 13:52  pbartok
29241
29242         * X11Structs.cs:
29243           - Added XSetWindowAttributes structure
29244           - Improved XWindowAttributes structure
29245           - Added SetWindowValuemask enum
29246           - Added window creation arguments enum
29247           - Added gravity enum
29248           - Added Motif hints structure
29249           - Added various Motif flags and enums
29250           - Added PropertyMode enum for property functions
29251
29252 2004-11-08 13:50  pbartok
29253
29254         * Form.cs:
29255           - Fixed arguments for updated SetTopmost method
29256
29257 2004-11-08 13:49  pbartok
29258
29259         * ToolTip.cs:
29260           - Fixed arguments for updated SetTopmost function
29261           - Fixed usage of PointToClient
29262
29263 2004-11-08 13:44  pbartok
29264
29265         * MenuAPI.cs:
29266           - Added Clipping of children and siblings
29267
29268 2004-11-08 13:41  pbartok
29269
29270         * MainMenu.cs:
29271           - Removed SetMenuBarWindow call. We do this in Form.cs
29272
29273 2004-11-08 13:40  jackson
29274
29275         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
29276           scrolling jimmi in the correct location with bottom aligned tabs
29277
29278 2004-11-08 13:36  pbartok
29279
29280         * ContainerControl.cs:
29281           - Implemented BindingContext
29282           - Implemented ParentForm
29283
29284 2004-11-08 12:46  jackson
29285
29286         * TabControl.cs: Put bottom rendered tabs in the right location
29287
29288 2004-11-08 07:15  jordi
29289
29290         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
29291           removes dead code
29292
29293 2004-11-05 17:30  jackson
29294
29295         * TabControl.cs: When selected tabs are expanded make sure they
29296           don't go beyond the edges of the tab control
29297
29298 2004-11-05 14:57  jackson
29299
29300         * TabControl.cs: Reset show_slider so if the control is resized to
29301           a size where it is no longer needed it's not displayed anymore
29302
29303 2004-11-05 13:16  jackson
29304
29305         * TabControl.cs: Make tab pages non visible when added to the
29306           control
29307
29308 2004-11-05 12:42  jackson
29309
29310         * TabControl.cs: Implement SizeMode.FillToRight
29311
29312 2004-11-05 12:16  jackson
29313
29314         * Control.cs: Do not call CreateHandle if the handle is already
29315           created
29316
29317 2004-11-05 11:46  jackson
29318
29319         * TabControl.cs: Remove superflous call to CalcTabRows
29320
29321 2004-11-05 09:07  jackson
29322
29323         * XplatUIX11.cs: Update for Mono.Posix changes
29324
29325 2004-11-05 07:00  ravindra
29326
29327         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
29328           scrolling.
29329
29330 2004-11-04 22:47  jba
29331
29332         * ThemeWin32Classic.cs:
29333           - Fix Button rendering for FlatStyle = Flat or Popup
29334           - Fix RadioButton and CheckBox rendering when Appearance = Button
29335             (normal and flatstyle).
29336           - Correct outer rectangle color when drawing focus rectangle
29337           - Adjust button bounds to be 1 px smaller when focused
29338           - Make button not draw sunken 3d border when pushed (windows compat)
29339           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
29340           - Offset the text in RadioButton and Checkbox when being rendered as
29341           a button.
29342           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
29343           radiobuttons
29344           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
29345           - Fixed disabled text rendering for normally rendered radiobuttons
29346
29347 2004-11-04 10:26  jackson
29348
29349         * TabControl.cs: Recalculate tab rows when resizing
29350
29351 2004-11-04 07:47  jordi
29352
29353         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
29354           collection completion, drawing issues, missing features
29355
29356 2004-11-04 05:03  ravindra
29357
29358         * ScrollBar.cs:
29359                 - We need to recalculate the Thumb area when
29360                 LargeChange/maximum/minimum values are changed.
29361           - We set the 'pos' in UpdatePos() method to minimum, if it's less
29362                 than minimum. This is required to handle the case if large_change is
29363                 more than max, and use LargeChange property instead of large_change
29364                 variable.
29365           - We return max+1 when large_change is more than max, like MS does.
29366
29367 2004-11-04 04:29  ravindra
29368
29369         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
29370                 - Changed default value signatures (prefixed all with ListView).
29371                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
29372                 ListView.
29373           - Fixed calculations for ListViewItem and implemented Clone()
29374           method.
29375
29376 2004-11-04 04:26  ravindra
29377
29378         * Theme.cs, ThemeWin32Classic.cs:
29379                 - Changed default ListView values signatures (prefixed all with
29380                 ListView).
29381           - Fixed default size values for VScrollBar and HScrollBar.
29382                 - Fixed DrawListViewItem method.
29383
29384 2004-11-04 04:05  ravindra
29385
29386         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
29387
29388 2004-11-04 04:04  ravindra
29389
29390         * ImageList.cs: Implemented the missing overload for Draw method.
29391
29392 2004-11-03 19:29  jackson
29393
29394         * TabControl.cs: Handle dropping rows on selection properly
29395
29396 2004-11-03 11:59  jackson
29397
29398         * TabControl.cs: remove debug code
29399
29400 2004-11-03 11:52  jackson
29401
29402         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
29403           the scrolly widgerywoo
29404
29405 2004-11-02 13:52  jackson
29406
29407         * TabControl.cs: Resize the tab pages and tabs when the tab control
29408           is resized
29409
29410 2004-11-02 13:40  jackson
29411
29412         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
29413           selected tab to the bottom
29414
29415 2004-11-02 13:39  jackson
29416
29417         * TabPage.cs: Store the tab pages row
29418
29419 2004-11-02 12:33  jordi
29420
29421         * MenuItem.cs: fixes handle creation
29422
29423 2004-11-02 11:42  jackson
29424
29425         * TabControl.cs: signature fix
29426
29427 2004-11-02 08:56  jackson
29428
29429         * TabControl.cs: Calculate whether the tab is on an edge properly.
29430           Remove top secret debugging code
29431
29432 2004-11-01 19:57  jackson
29433
29434         * TabControl.cs: Add click handling, and proper sizing
29435
29436 2004-11-01 19:47  jackson
29437
29438         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
29439           tab controls
29440
29441 2004-11-01 19:39  jackson
29442
29443         * TabPage.cs: add internal property to store the bounds of a tab
29444           page
29445
29446 2004-10-30 04:23  ravindra
29447
29448         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
29449           values.
29450
29451 2004-10-30 04:21  ravindra
29452
29453         * ListView.cs, ListViewItem.cs: Added support for scrolling and
29454           fixed calculations.
29455
29456 2004-10-30 03:06  pbartok
29457
29458         * XplatUIX11.cs:
29459           - Removed extension of DllImported libs
29460
29461 2004-10-29 09:55  jordi
29462
29463         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
29464           navigation, itemcollection completion, menu fixes
29465
29466 2004-10-27 22:58  pbartok
29467
29468         * XplatUIX11.cs:
29469           - Now throws a nice error message when no X display could be opened
29470
29471 2004-10-26 13:51  jordi
29472
29473         * ListView.cs: removes warning
29474
29475 2004-10-26 03:55  ravindra
29476
29477         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
29478           ThemeWin32Classic.cs: Some formatting for my last checkins.
29479
29480 2004-10-26 03:36  ravindra
29481
29482         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
29483           control and default values.
29484
29485 2004-10-26 03:35  ravindra
29486
29487         * Theme.cs: Added some default values for ListView control.
29488
29489 2004-10-26 03:33  ravindra
29490
29491         * ToolBar.cs: ToolBar should use the user specified button size, if
29492           there is any. Added a size_specified flag for the same.
29493
29494 2004-10-26 03:33  ravindra
29495
29496         * ColumnHeader.cs: Added some internal members and calculations for
29497           ColumnHeader.
29498
29499 2004-10-26 03:32  ravindra
29500
29501         * ListViewItem.cs: Calculations for ListViewItem.
29502
29503 2004-10-26 03:31  ravindra
29504
29505         * ListView.cs: Added some internal members and calculations for
29506           ListView.
29507
29508 2004-10-22 13:31  jordi
29509
29510         * MenuAPI.cs: speedup menus drawing
29511
29512 2004-10-22 13:16  jackson
29513
29514         * XplatUIX11.cs: Make sure to update exposed regions when adding an
29515           expose event
29516
29517 2004-10-22 11:49  jackson
29518
29519         * Control.cs: oops
29520
29521 2004-10-22 11:41  jackson
29522
29523         * Control.cs: Check to see if the window should have its background
29524           repainted by X when drawing.
29525
29526 2004-10-22 11:31  jackson
29527
29528         * XplatUIX11.cs: When invalidating areas only use XClearArea if
29529           clear is true, this way we do not get flicker from X repainting the
29530           background
29531
29532 2004-10-22 11:28  jackson
29533
29534         * XEventQueue.cs: Queue properly
29535
29536 2004-10-21 09:38  jackson
29537
29538         * XEventQueue.cs: Fix access modifier
29539
29540 2004-10-21 09:36  jackson
29541
29542         * XEventQueue.cs: Don't loose messages
29543
29544 2004-10-21 09:22  jackson
29545
29546         * XEventQueue.cs: Don't loose messages
29547
29548 2004-10-20 04:15  jordi
29549
29550         * BootMode.cs: enum need it by SystemInfo
29551
29552 2004-10-19 21:58  pbartok
29553
29554         * XplatUIWin32.cs:
29555           - Small sanity check
29556
29557 2004-10-19 21:56  pbartok
29558
29559         * Form.cs:
29560           - Added private FormParentWindow class which acts as the container
29561             for our form and as the non-client area where menus are drawn
29562           - Added/Moved required tie-ins to Jordi's menus
29563           - Fixed/Implemented the FormStartPosition functionality
29564
29565 2004-10-19 21:52  pbartok
29566
29567         * Control.cs:
29568           - Removed unneeded locals
29569           - Added code to all size and location properties to understand and
29570             deal with the parent container of Form
29571
29572 2004-10-19 21:33  pbartok
29573
29574         * Application.cs:
29575           - Fixed to deal with new Form subclasses for menus
29576
29577 2004-10-19 17:48  jackson
29578
29579         * XEventQueue.cs: commit correct version of file
29580
29581 2004-10-19 16:50  jackson
29582
29583         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
29584
29585 2004-10-19 16:15  jordi
29586
29587         * MenuAPI.cs: MenuBarCalcSize returns the height
29588
29589 2004-10-19 08:31  pbartok
29590
29591         * Control.cs:
29592           - Added missing call to PreProcessMessage before calling OnXXXKey
29593           methods
29594
29595 2004-10-19 00:04  ravindra
29596
29597         * ToolTip.cs: Fixed constructor.
29598
29599 2004-10-18 09:31  jordi
29600
29601         * MenuAPI.cs: menuitems in menubars do not have shortcuts
29602
29603 2004-10-18 09:26  jordi
29604
29605         * MenuItem.cs: fixes MenuItem class signature
29606
29607 2004-10-18 08:56  jordi
29608
29609         * MenuAPI.cs: prevents windows from showing in the taskbar
29610
29611 2004-10-18 00:28  ravindra
29612
29613         * ToolTip.cs: Suppressed a warning message.
29614
29615 2004-10-18 00:27  ravindra
29616
29617         * Control.cs: Default value of visible property must be true.
29618
29619 2004-10-17 23:19  pbartok
29620
29621         * ToolTip.cs:
29622           - Complete implementation
29623
29624 2004-10-17 23:19  pbartok
29625
29626         * XplatUIX11.cs:
29627           - Added EnableWindow method
29628           - Added SetModal stub
29629           - Added generation of WM_ACTIVATE message (still needs testing)
29630           - Added SetTopMost stub
29631           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
29632
29633 2004-10-17 23:17  pbartok
29634
29635         * XplatUIWin32.cs:
29636           - Removed VirtualKeys to XplatUIStructs
29637           - Implemented SetTopMost method
29638           - Implemented EnableWindow method
29639           - Bugfix in ScreenToClient()
29640           - Bugfixes in ClientToScreen()
29641
29642 2004-10-17 22:51  pbartok
29643
29644         * XplatUIStructs.cs:
29645           - Added WS_EX styles to WindowStyles enumeration
29646
29647 2004-10-17 22:50  pbartok
29648
29649         * XplatUI.cs, XplatUIDriver.cs:
29650           - Added method for enabling/disabling windows
29651           - Added method for setting window modality
29652           - Added method for setting topmost window
29653
29654 2004-10-17 22:49  pbartok
29655
29656         * ThemeWin32Classic.cs:
29657           - Added ToolTip drawing code
29658
29659 2004-10-17 22:49  pbartok
29660
29661         * Theme.cs:
29662           - Added ToolTip abstracts
29663
29664 2004-10-17 22:47  pbartok
29665
29666         * Form.cs:
29667           - Fixed Form.ControlCollection to handle owner relations
29668           - Added Owner/OwnedForms handling
29669           - Implemented Z-Ordering for owned forms
29670           - Removed unneeded private overload of ShowDialog
29671           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
29672             so I hope)
29673           - Fixed Close(), had wrong default
29674           - Added firing of OnLoad event
29675           - Added some commented out debug code for Ownership handling
29676
29677 2004-10-17 22:16  pbartok
29678
29679         * Control.cs:
29680           - Fixed/implemented flat list of controls
29681
29682 2004-10-17 22:14  pbartok
29683
29684         * Application.cs:
29685           - Added code to simulate modal dialogs on Win32
29686
29687 2004-10-17 16:11  jordi
29688
29689         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
29690           mouse event
29691
29692 2004-10-17 13:39  jordi
29693
29694         * MenuAPI.cs: menu drawing fixes
29695
29696 2004-10-15 09:10  ravindra
29697
29698         * StructFormat.cs: General Enum.
29699
29700 2004-10-15 09:09  ravindra
29701
29702         * SizeGripStyle.cs: Enum for Form.
29703
29704 2004-10-15 09:08  ravindra
29705
29706         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
29707           in Theme for ListView.
29708
29709 2004-10-15 09:06  ravindra
29710
29711         * ColumnHeader.cs: Flushing some formatting changes.
29712
29713 2004-10-15 09:05  ravindra
29714
29715         * ListViewItem.cs: Implemented GetBounds method and fixed coding
29716           style.
29717
29718 2004-10-15 09:03  ravindra
29719
29720         * ListView.cs: Implemented Paint method and fixed coding style.
29721
29722 2004-10-15 07:34  jordi
29723
29724         * MenuAPI.cs: fix for X11
29725
29726 2004-10-15 07:32  ravindra
29727
29728         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
29729                 - Renamed Paint() method to Draw() for clarity. Also, moved
29730                 DrawImage() to OnPaint().
29731
29732 2004-10-15 07:25  ravindra
29733
29734         * CheckBox.cs, RadioButton.cs:
29735                 - Removed Redraw (), we get it from ButtonBase.
29736                 - Implemented Paint (), to do class specific painting.
29737
29738 2004-10-15 07:16  ravindra
29739
29740         * ButtonBase.cs:
29741                 - Redraw () is not virtual now.
29742                 - Added an internal virtual method Paint (), so that
29743                 derived classes can do their painting on their own.
29744                 - Modified OnPaint () to call Paint ().
29745
29746 2004-10-15 06:43  jordi
29747
29748         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
29749           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
29750
29751 2004-10-15 00:30  ravindra
29752
29753         * MessageBox.cs:
29754                 - MessageBox on windows does not have min/max buttons.
29755                 This change in CreateParams fixes this on Windows. We
29756                 still need to implement this windowstyle behavior in
29757                 our X11 driver.
29758
29759 2004-10-14 05:14  ravindra
29760
29761         * ToolBar.cs:
29762                 - Changed Redraw () to do a Refresh () always.
29763                 - Fixed the MouseMove event handling when mouse is pressed,
29764                 ie drag event handling.
29765                 - Replaced the usage of ToolBarButton.Pressed property to
29766                 ToolBarButton.pressed internal variable.
29767
29768 2004-10-14 05:10  ravindra
29769
29770         * ToolBarButton.cs:
29771                 - Added an internal member 'inside' to handle mouse move
29772                 with mouse pressed ie mouse drag event.
29773                 - Changed 'Pressed' property to return true only when
29774                 'inside' and 'pressed' are both true.
29775                 - Some coding style love.
29776
29777 2004-10-14 00:17  ravindra
29778
29779         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
29780           public method.
29781
29782 2004-10-14 00:15  ravindra
29783
29784         * ButtonBase.cs: Redraw () related improvements.
29785
29786 2004-10-14 00:14  ravindra
29787
29788         * MessageBox.cs: Moved InitFormSize () out of Paint method and
29789           removed unnecessary calls to Button.Show () method.
29790
29791 2004-10-13 17:50  pbartok
29792
29793         * XplatUIX11.cs:
29794           - Formatting fix
29795           - Removed destroying of window until we solve the problem of X
29796             destroying the window before us on shutdown
29797
29798 2004-10-13 16:32  pbartok
29799
29800         * ButtonBase.cs:
29801           - Now Redraws on MouseUp for FlatStyle Flat and Popup
29802
29803 2004-10-13 14:18  pbartok
29804
29805         * XplatUIX11.cs:
29806           - Added code to destroy the X window
29807
29808 2004-10-13 14:18  pbartok
29809
29810         * XplatUIWin32.cs:
29811           - Added code to destroy a window
29812
29813 2004-10-13 14:12  pbartok
29814
29815         * ButtonBase.cs:
29816           - Added the Redraw on Resize that got dropped in the last rev
29817
29818 2004-10-13 09:06  pbartok
29819
29820         * ThemeWin32Classic.cs:
29821           - Path from John BouAntoun:
29822             * Fix check rendering (centre correctly for normal style, offset
29823               correctly for FlatStyle).
29824             * Fix border color usage (use backcolor) for FlatStyle.Popup
29825             * Use checkbox.Capture instead of checkbox.is_pressed when
29826               rendering flatstyle states.
29827
29828 2004-10-12 21:48  pbartok
29829
29830         * ThemeWin32Classic.cs:
29831           - Removed all occurences of SystemColors and replaced them with the
29832             matching theme color
29833
29834 2004-10-12 21:41  pbartok
29835
29836         * ThemeWin32Classic.cs:
29837           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
29838             him using the function for flatstyle drawing
29839           - Changed functions to use the new version of CPDrawBorder3D
29840
29841 2004-10-12 21:15  pbartok
29842
29843         * ControlPaint.cs:
29844           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
29845             match MS documentation. They need to return defined colors if the
29846             passed color matches the configured control color. Thanks to John
29847             BouAntoun for pointing this out.
29848
29849 2004-10-12 20:57  pbartok
29850
29851         * Control.cs:
29852           - Fix from John BouAntoun: Raise ForeColorChanged event when text
29853             color is changed
29854
29855 2004-10-12 20:46  pbartok
29856
29857         * CheckBox.cs:
29858           - Fix from John BouAntoun: Now properly sets the Appearance property
29859
29860 2004-10-12 20:45  pbartok
29861
29862         * ThemeWin32Classic.cs:
29863           - Fixes from John BouAntoun: now handles forecolors and backcolors
29864             for flatstyle rendered controls much better; It also fixes normal
29865             checkbox rendering when pushed or disabled.
29866
29867 2004-10-08 02:50  jordi
29868
29869         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
29870           work
29871
29872 2004-10-07 08:56  jordi
29873
29874         * ThemeWin32Classic.cs: Removes deletion of cached brushes
29875
29876 2004-10-06 03:59  jordi
29877
29878         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
29879           XplatUIWin32.cs: removes warnings from compilation
29880
29881 2004-10-05 12:23  jackson
29882
29883         * RadioButton.cs: Fix ctor
29884
29885 2004-10-05 11:10  pbartok
29886
29887         * MessageBox.cs:
29888           - Partial implementation by Benjamin Dasnois
29889
29890 2004-10-05 10:15  jackson
29891
29892         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
29893           by John BouAntoun
29894
29895 2004-10-05 03:07  ravindra
29896
29897         * ToolBar.cs:
29898                 - Removed a private method, Draw ().
29899                 - Fixed the ButtonDropDown event handling.
29900                 - Fixed MouseMove event handling.
29901
29902 2004-10-05 03:04  ravindra
29903
29904         * ThemeWin32Classic.cs:
29905                 - Added DrawListView method and ListViewDefaultSize property.
29906                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
29907                 - Changed DOS style CRLF to Unix format (dos2unix).
29908
29909 2004-10-05 03:03  ravindra
29910
29911         * Theme.cs:
29912                 - Added DrawListView method and ListViewDefaultSize property.
29913
29914 2004-10-05 02:42  ravindra
29915
29916         * ToolBarButton.cs: Added an internal member dd_pressed to handle
29917           clicks on DropDown arrow.
29918
29919 2004-10-04 22:56  jackson
29920
29921         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
29922           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
29923           Control handle the buffers, derived classes should not have to
29924           CreateBuffers themselves.
29925
29926 2004-10-04 21:20  jackson
29927
29928         * StatusBar.cs: The control handles resizing the buffers now.
29929
29930 2004-10-04 21:18  jackson
29931
29932         * Control.cs: When resizing the buffers should be invalidated. This
29933           should be handled in Control not in derived classes.
29934
29935 2004-10-04 14:45  jackson
29936
29937         * TabPage.cs: oops
29938
29939 2004-10-04 02:14  pbartok
29940
29941         * LeftRightAlignment.cs:
29942           - Initial check-in
29943
29944 2004-10-04 01:09  jordi
29945
29946         * ThemeWin32Classic.cs: fixes right button position causing right
29947           button not showing on horizontal scrollbars
29948
29949 2004-10-02 13:12  pbartok
29950
29951         * XplatUIX11.cs:
29952           - Simplified the Invalidate method by using an X call instead of
29953             generating the expose ourselves
29954           - Added an expose when the window background is changed
29955           - Implemented ClientToScreen method
29956
29957 2004-10-02 13:08  pbartok
29958
29959         * XplatUIWin32.cs:
29960           - Added Win32EnableWindow method (test for implementing modal
29961           dialogs)
29962           - Added ClientToScreen method and imports
29963
29964 2004-10-02 13:07  pbartok
29965
29966         * XplatUI.cs, XplatUIDriver.cs:
29967           - Added ClientToScreen coordinate translation method
29968
29969 2004-10-02 13:06  pbartok
29970
29971         * KeyPressEventArgs.cs:
29972           - Fixed access level for constructor
29973
29974 2004-10-02 13:06  pbartok
29975
29976         * NativeWindow.cs:
29977           - Changed access level for the window_collection hash table
29978
29979 2004-10-02 13:05  pbartok
29980
29981         * Form.cs:
29982           - Added KeyPreview property
29983           - Added Menu property (still incomplete, pending Jordi's menu work)
29984           - Implemented ProcessCmdKey
29985           - Implemented ProcessDialogKey
29986           - Implemented ProcessKeyPreview
29987
29988 2004-10-02 13:02  pbartok
29989
29990         * Control.cs:
29991           - Added private method to get the Control object from the window
29992           handle
29993           - Implemented ContextMenu property
29994           - Implemented PointToScreen
29995           - Implemented PreProcessMessage
29996           - Implemented IsInputChar
29997           - Implemented IsInputKey
29998           - Implemented ProcessCmdKey
29999           - Completed ProcessKeyEventArgs
30000           - Fixed message loop to call the proper chain of functions on key
30001           events
30002           - Implemented ProcessDialogChar
30003           - Implemented ProcessDialogKey
30004           - Implemented ProcessKeyMessage
30005           - Implemented ProcessKeyPreview
30006           - Added RaiseDragEvent stub (MS internal method)
30007           - Added RaiseKeyEvent stub (MS internal method)
30008           - Added RaiseMouseEvent stub (MS Internal method)
30009           - Added RaisePaintEvent stub (MS Internal method)
30010           - Added ResetMouseEventArgs stub (MS Internal method)
30011           - Implemented RtlTranslateAlignment
30012           - Implemented RtlTranslateContent
30013           - Implemented RtlTranslateHorizontal
30014           - Implemented RtlTranslateLeftRight
30015           - Added generation of KeyPress event
30016
30017 2004-10-02 05:57  ravindra
30018
30019         * ListViewItem.cs: Added attributes.
30020
30021 2004-10-02 05:32  ravindra
30022
30023         * ListView.cs: Added attributes.
30024
30025 2004-10-01 11:53  jackson
30026
30027         * Form.cs: Implement the Close method so work on MessageBox can
30028           continue.
30029
30030 2004-09-30 14:06  pbartok
30031
30032         * XplatUIX11.cs:
30033           - Bug fixes
30034
30035 2004-09-30 11:34  jackson
30036
30037         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
30038
30039 2004-09-30 07:26  ravindra
30040
30041         * ListViewItemConverter.cs: Converter for ListViewItem.
30042
30043 2004-09-30 07:26  ravindra
30044
30045         * SortOrder.cs: Enum for ListView control.
30046
30047 2004-09-30 07:25  ravindra
30048
30049         * ColumnHeader.cs: Supporting class for ListView control.
30050
30051 2004-09-30 07:24  ravindra
30052
30053         * ListView.cs, ListViewItem.cs: Initial implementation.
30054
30055 2004-09-30 07:20  ravindra
30056
30057         * ItemActivation.cs: Enum for ListView Control.
30058
30059 2004-09-29 20:29  pbartok
30060
30061         * XplatUIX11.cs:
30062           - Added lookup of pixel value for background color; tries to get a
30063             color 'close' to the requested color, it avoids having to create a
30064             colormap.  Depending on the display this could mean the used color
30065             is slightly off the desired color. Might have to change it to a more
30066             resource intensive colormap approach, but it will work as a
30067           workaround to avoid red screens.
30068
30069 2004-09-29 14:27  jackson
30070
30071         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
30072
30073 2004-09-28 12:44  pbartok
30074
30075         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
30076           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
30077           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
30078           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
30079           TrackBar.cs, VScrollBar.cs:
30080           - Streamlined Theme interfaces:
30081             * Each DrawXXX method for a control now is passed the object for
30082               the control to be drawn in order to allow accessing any state the
30083               theme might require
30084
30085             * ControlPaint methods for the theme now have a CP prefix to avoid
30086               name clashes with the Draw methods for controls
30087
30088             * Every control now retrieves it's DefaultSize from the current
30089             theme
30090
30091 2004-09-28 12:17  jackson
30092
30093         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
30094           drawing
30095
30096 2004-09-24 14:57  jackson
30097
30098         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
30099           Gives us a nice little performance boost.
30100
30101 2004-09-24 12:02  jackson
30102
30103         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
30104           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
30105           Control and supporting classes. Initial checkin
30106
30107 2004-09-23 13:08  jackson
30108
30109         * Form.cs: Temp build fixage
30110
30111 2004-09-23 01:39  ravindra
30112
30113         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
30114           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
30115           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
30116           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
30117           EventHandlers needed by ListView Control.
30118
30119 2004-09-22 14:12  pbartok
30120
30121         * ScrollableControl.cs:
30122           - Implemented DockPadding property
30123           - Implemented AutoScroll property
30124           - Implemented AutoScrollMargin property
30125           - Implemented AutoScrollMinSize property
30126           - Implemented AutoScrollPosition property
30127           - Implemented DisplayRectangle property (still incomplete)
30128           - Implemented CreateParams property
30129           - Implemented HScroll property
30130           - Implemented VScroll property
30131           - Implemented OnVisibleChanged property
30132
30133 2004-09-22 14:09  pbartok
30134
30135         * Form.cs:
30136           - Added Form.ControllCollection class
30137           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
30138             RemoveOwnedForm (still incomplete, missing on-top and common
30139             minimize/maximize behaviour)
30140           - Added StartPosition property (still incomplete, does not use when
30141             creating the form)
30142           - Added ShowDialog() methods (still incomplete, missing forcing the
30143             dialog modal)
30144
30145 2004-09-22 14:05  pbartok
30146
30147         * Application.cs:
30148           - Added message loop for modal dialogs
30149
30150 2004-09-22 14:02  pbartok
30151
30152         * GroupBox.cs:
30153           - Fixed wrong types for events
30154
30155 2004-09-22 14:00  pbartok
30156
30157         * Shortcut.cs, FormWindowState.cs:
30158           - Fixed wrong values
30159
30160 2004-09-22 12:01  jackson
30161
30162         * Control.cs: Text is never null
30163
30164 2004-09-20 22:14  pbartok
30165
30166         * XplatUIWin32.cs:
30167           - Fixed accessibility level for Idle handler
30168
30169 2004-09-20 18:54  jackson
30170
30171         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30172           XplatUIX11.cs: New message loop that uses poll so we don't get a
30173           busy loop
30174
30175 2004-09-17 10:43  pbartok
30176
30177         * ScrollBar.cs:
30178           - Fixed behaviour of arrow buttons. Now properly behaves like
30179             Buttons (and like Microsoft's scrollbar arrow buttons)
30180
30181 2004-09-17 10:14  pbartok
30182
30183         * ScrollBar.cs:
30184           - Added missing release of keyboard/mouse capture
30185
30186 2004-09-17 06:18  jordi
30187
30188         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
30189           Theme.cs: Very early menu support
30190
30191 2004-09-16 17:45  pbartok
30192
30193         * XplatUIWin32.cs:
30194           - Fixed sending a window to the front
30195           - Added overload for SetWindowPos to avoid casting
30196
30197 2004-09-16 17:44  pbartok
30198
30199         * Control.cs:
30200           - Added SendToBack and BringToFront methods
30201
30202 2004-09-16 07:00  ravindra
30203
30204         * Copyright: Added Novell URL.
30205
30206 2004-09-16 07:00  ravindra
30207
30208         * ToolBar.cs: Invalidate should be done before redrawing.
30209
30210 2004-09-15 21:19  ravindra
30211
30212         * ColumnHeaderStyle.cs: Enum for ListView Control.
30213
30214 2004-09-15 21:18  ravindra
30215
30216         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
30217           ListView Control.
30218
30219 2004-09-13 18:26  jackson
30220
30221         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
30222           properly
30223
30224 2004-09-13 18:13  jackson
30225
30226         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
30227           a second thread and post messages into the main threads message
30228           queue. This makes timing much more consistent. Both win2K and XP
30229           have a minimum timer value of 15 milliseconds, so we now do this
30230           too.
30231
30232 2004-09-13 15:18  pbartok
30233
30234         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30235           XplatUIX11.cs:
30236           - Added Z-Ordering methods
30237
30238 2004-09-13 10:56  pbartok
30239
30240         * Form.cs:
30241           - Fixed #region names
30242           - Moved properties and methods into their proper #regions
30243
30244 2004-09-13 10:51  pbartok
30245
30246         * Form.cs:
30247           - Added Accept and CancelButton properties
30248           - Added ProcessDialogKey() method
30249
30250 2004-09-13 08:18  pbartok
30251
30252         * IWindowTarget.cs:
30253           - Initial check-in
30254
30255 2004-09-10 21:50  pbartok
30256
30257         * Control.cs:
30258           - Added DoDragDrop() [incomplete]
30259           - Properly implemented 'Visible' handling
30260           - Added SetVisibleCore()
30261           - Implemented FindChildAtPoint()
30262           - Implemented GetContainerControl()
30263           - Implemented Hide()
30264
30265 2004-09-10 19:28  pbartok
30266
30267         * Control.cs:
30268           - Moved methods into their appropriate #regions
30269           - Reordered methods within regions alphabetically
30270
30271 2004-09-10 18:57  pbartok
30272
30273         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30274           - Added method to retrieve text from window
30275
30276 2004-09-10 18:56  pbartok
30277
30278         * Control.cs:
30279           - Moved some internal functions into the internal region
30280           - Implemented FontHeight
30281           - Implemented RenderRightToLeft
30282           - Implemented ResizeRedraw
30283           - Implemented ShowFocusCues
30284           - Implemented ShowKeyboardCues
30285           - Implemented FromChildHandle
30286           - Implemented FromHandle
30287           - Implemented IsMnemonic
30288           - Implemented ReflectMessage
30289           - All public and protected Static Methods are now complete
30290
30291 2004-09-10 16:54  pbartok
30292
30293         * Control.cs:
30294           - Implemented remaining missing public instance properties
30295           - Alphabetized some out of order properties
30296
30297 2004-09-10 05:51  ravindra
30298
30299         * PictureBox.cs: Added a check for null image.
30300
30301 2004-09-10 00:59  jordi
30302
30303         * GroupBox.cs: remove cvs tag
30304
30305 2004-09-09 05:25  ravindra
30306
30307         * ToolBar.cs: Make redraw accessible from ToolBarButton.
30308
30309 2004-09-09 05:23  ravindra
30310
30311         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
30312           parent redraw.
30313
30314 2004-09-09 02:28  pbartok
30315
30316         * ThemeWin32Classic.cs:
30317           - Improve disabled string look
30318
30319 2004-09-09 01:15  jordi
30320
30321         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
30322           args and handler
30323
30324 2004-09-08 23:56  ravindra
30325
30326         * ItemBoundsPortion.cs: It's enum, not a class!
30327
30328 2004-09-08 23:47  ravindra
30329
30330         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
30331           Enums for Form.
30332
30333 2004-09-08 21:13  ravindra
30334
30335         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
30336           ListView control.
30337
30338 2004-09-08 21:03  ravindra
30339
30340         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
30341           avoid crash.
30342
30343 2004-09-08 21:01  ravindra
30344
30345         * ScrollableControl.cs: Removed unreachable code.
30346
30347 2004-09-08 06:45  jordi
30348
30349         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
30350
30351 2004-09-08 01:00  jackson
30352
30353         * XplatUIX11.cs: Only run the timers when updating the message
30354           queue. This effectively gives X messages a higher priority then
30355           timer messages. Timers still need love though
30356
30357 2004-09-07 14:01  jackson
30358
30359         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
30360           this for us and the handle is no longer valid.
30361
30362 2004-09-07 13:59  jackson
30363
30364         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
30365           loop that manages to not crash. TODO: Add poll and cleanup timers
30366
30367 2004-09-07 11:12  jordi
30368
30369         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
30370
30371 2004-09-07 03:40  jordi
30372
30373         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
30374           fixes, methods, multiple links
30375
30376 2004-09-06 06:55  jordi
30377
30378         * Control.cs: Caches ClientRectangle rectangle value
30379
30380 2004-09-05 02:03  jordi
30381
30382         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
30383           certain situations
30384
30385 2004-09-04 11:10  jordi
30386
30387         * Label.cs: Refresh when font changed
30388
30389 2004-09-02 16:24  pbartok
30390
30391         * Control.cs:
30392           - Added sanity check to creation of double buffer bitmap
30393
30394 2004-09-02 16:24  pbartok
30395
30396         * ButtonBase.cs:
30397           - Fixed selection of text color
30398           - Fixed handling of resize event; now properly recreates double
30399             buffering bitmap
30400           - Added missing assignment of TextAlignment
30401           - Added proper default for TextAlignment
30402
30403 2004-09-02 14:26  pbartok
30404
30405         * RadioButton.cs:
30406           - Added missing RadioButton.RadioButtonAccessibleObject class
30407
30408 2004-09-02 14:26  pbartok
30409
30410         * Control.cs:
30411           - Added missing Control.ControlAccessibleObject class
30412           - Started to implement Select()ion mechanisms, still very incomplete
30413
30414 2004-09-02 14:25  pbartok
30415
30416         * AccessibleObject.cs:
30417           - Added missing methods
30418
30419 2004-09-02 14:23  pbartok
30420
30421         * AccessibleNavigation.cs, AccessibleSelection.cs:
30422           - Initial check-in
30423
30424 2004-09-02 10:32  jordi
30425
30426         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
30427           pool for pens, brushes, and hatchbruses
30428
30429 2004-09-01 15:30  jackson
30430
30431         * StatusBar.cs: Fix typo
30432
30433 2004-09-01 14:44  pbartok
30434
30435         * RadioButton.cs:
30436           - Fixed state
30437
30438 2004-09-01 14:39  pbartok
30439
30440         * Button.cs, RadioButton.cs:
30441           - Functional initial check-in
30442
30443 2004-09-01 14:01  pbartok
30444
30445         * CheckBox.cs:
30446           - Added missing default
30447           - Added missing region mark
30448
30449 2004-09-01 09:10  jordi
30450
30451         * Label.cs: fixes method signatures, new methods, events, fixes
30452           autosize
30453
30454 2004-09-01 07:19  jordi
30455
30456         * Control.cs: Init string variables with an empty object
30457
30458 2004-09-01 04:20  jordi
30459
30460         * Control.cs: fires OnFontChanged event
30461
30462 2004-08-31 20:07  pbartok
30463
30464         * ButtonBase.cs:
30465           - Enabled display of strings
30466
30467 2004-08-31 20:05  pbartok
30468
30469         * Form.cs:
30470           - Added (partial) implementation of DialogResult; rest needs to be
30471             implemented when the modal loop code is done
30472
30473 2004-08-31 19:55  pbartok
30474
30475         * CheckBox.cs:
30476           - Fixed to match the removal of the needs_redraw concept
30477
30478 2004-08-31 19:55  pbartok
30479
30480         * ButtonBase.cs:
30481           - Removed the rather odd split between 'needs redraw' and redrawing
30482           - Now handles the events that require regeneration (ambient
30483             properties and size)
30484
30485 2004-08-31 19:41  pbartok
30486
30487         * Control.cs:
30488           - Added firing of BackColorChanged event
30489           - Added TopLevelControl property
30490           - Fixed handling of WM_ERASEBKGRND message
30491
30492 2004-08-31 12:49  pbartok
30493
30494         * ButtonBase.cs:
30495           - Removed debug
30496           - Minor fixes
30497
30498 2004-08-31 12:48  pbartok
30499
30500         * CheckBox.cs:
30501           - Finished (famous last words)
30502
30503 2004-08-31 04:35  jordi
30504
30505         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
30506           scrolling bugs, adds new methods
30507
30508 2004-08-30 14:42  pbartok
30509
30510         * CheckBox.cs:
30511           - Implemented CheckBox drawing code
30512
30513 2004-08-30 14:42  pbartok
30514
30515         * ButtonBase.cs:
30516           - Made Redraw() and CheckRedraw() virtual
30517           - Improved mouse up/down/move logic to properly track buttons
30518
30519 2004-08-30 09:44  pbartok
30520
30521         * CheckBox.cs:
30522           - Updated to fix broken build. Not complete yet.
30523
30524 2004-08-30 09:28  pbartok
30525
30526         * CheckState.cs:
30527           - Initial checkin
30528
30529 2004-08-30 09:17  pbartok
30530
30531         * Appearance.cs:
30532           - Initial check-in
30533
30534 2004-08-27 16:12  ravindra
30535
30536         * ToolBarButton.cs: Added TypeConverter attribute.
30537
30538 2004-08-27 16:07  ravindra
30539
30540         * ImageIndexConverter.cs: Implemented.
30541
30542 2004-08-27 14:17  pbartok
30543
30544         * Control.cs:
30545           - Removed unneeded stack vars
30546           - First attempt to fix sizing issues when layout is suspended
30547
30548 2004-08-25 15:35  jordi
30549
30550         * ScrollBar.cs: more fixes to scrollbar
30551
30552 2004-08-25 14:04  ravindra
30553
30554         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
30555           Added the missing divider code and grip for ToolBar Control.
30556
30557 2004-08-25 13:20  pbartok
30558
30559         * Control.cs:
30560           - Control now properly passes the ambient background color to child
30561             controls
30562
30563 2004-08-25 13:20  jordi
30564
30565         * ScrollBar.cs: small bug fix regarding bar position
30566
30567 2004-08-25 12:33  pbartok
30568
30569         * Timer.cs:
30570           - Now only calls SetTimer or KillTimer if the enabled state has
30571           changed
30572
30573 2004-08-25 12:33  pbartok
30574
30575         * XplatUIWin32.cs:
30576           - Fixed timer handling, now seems to work
30577           - Improved error message for window creation
30578
30579 2004-08-25 12:32  pbartok
30580
30581         * Control.cs:
30582           - Fixed generation of MouseUp message
30583
30584 2004-08-25 12:29  jordi
30585
30586         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
30587           and fixes for progressbar
30588
30589 2004-08-24 18:43  ravindra
30590
30591         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
30592           in ToolBar control.
30593
30594 2004-08-24 17:15  pbartok
30595
30596         * Panel.cs:
30597           - Added #region
30598           - Added missing events
30599           - Alphabetized
30600
30601 2004-08-24 17:14  pbartok
30602
30603         * StatusBar.cs, PictureBox.cs:
30604           - Now uses Control's CreateParams
30605
30606 2004-08-24 16:36  pbartok
30607
30608         * XplatUIX11.cs:
30609           - Fixed background color handling
30610           - Fixed sending of enter/leave events on a grab
30611
30612 2004-08-24 16:35  pbartok
30613
30614         * X11Structs.cs:
30615           - Refined definitions for CrossingEvent
30616
30617 2004-08-24 12:37  jordi
30618
30619         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
30620           formmating, methods signature, and adds missing events
30621
30622 2004-08-24 12:24  jordi
30623
30624         * Control.cs: fire OnEnabledChanged event
30625
30626 2004-08-24 11:17  pbartok
30627
30628         * XplatUIWin32.cs:
30629           - Implemented SetTimer() and KillTimer()
30630
30631 2004-08-24 11:16  pbartok
30632
30633         * XplatUIX11.cs:
30634           - Now uses Remove instead of Add to kill the timer
30635
30636 2004-08-24 10:16  jackson
30637
30638         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
30639           picture boxes in the theme now. Draw picture box borders and obey
30640           sizing modes
30641
30642 2004-08-24 05:49  jackson
30643
30644         * Timer.cs: Remove top secret debugging code
30645
30646 2004-08-24 05:34  jackson
30647
30648         * PictureBox.cs: Temp hack to make picture boxes draw their full
30649           image
30650
30651 2004-08-24 05:29  jackson
30652
30653         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30654           XplatUIX11.cs: Move timers to the driver level. On X they are
30655           queued by the driver and checked on idle.
30656
30657 2004-08-24 01:07  jackson
30658
30659         * XplatUIX11.cs: Use a queue for async messages instead of passing
30660           them as ClientMessages since that was totally broken. Also simply
30661           check for events and return an idle message if none are found. This
30662           gives us an idle handler, and prevents deadlocking when no messages
30663           are in the queue.
30664
30665 2004-08-23 18:19  ravindra
30666
30667         * XplatUIWin32.cs: Removed the unwanted destructor.
30668
30669 2004-08-23 17:27  pbartok
30670
30671         * ButtonBase.cs:
30672           - Finishing touches. Works now, just needs some optimizations.
30673
30674 2004-08-23 16:53  jordi
30675
30676         * ScrollBar.cs: small fix
30677
30678 2004-08-23 16:45  pbartok
30679
30680         * Application.cs:
30681           - Removed debug output
30682           - Simplifications
30683
30684 2004-08-23 16:43  jordi
30685
30686         * ScrollBar.cs: [no log message]
30687
30688 2004-08-23 16:10  pbartok
30689
30690         * Form.cs:
30691           - Fixed handling of WM_CLOSE message
30692           - Removed debug output
30693
30694 2004-08-23 16:09  pbartok
30695
30696         * Application.cs:
30697           - Added handling of Idle event
30698           - Added handling of form closing
30699           - Fixed reporting of MessageLoop property
30700           - Removed some unneeded code, should provide a bit of a speedup
30701
30702 2004-08-23 15:22  pbartok
30703
30704         * Control.cs:
30705           - Added InitLayout() method
30706           - Added code to properly perform layout when Anchor or Dock property
30707             is changed
30708           - Changed 'interpretation' of ResumeLayout. MS seems to have a
30709             LAMESPEC, tried to do it in a way that makes sense
30710
30711 2004-08-23 14:10  jordi
30712
30713         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
30714           properties and methods
30715
30716 2004-08-23 13:55  pbartok
30717
30718         * Control.cs:
30719           - Properly fixed Jordi's last fix
30720           - Now uses Cursor's Position property instead of calling XplatUI
30721           directly
30722
30723 2004-08-23 13:44  jordi
30724
30725         * PaintEventHandler.cs: Adding missing attribute
30726
30727 2004-08-23 13:39  pbartok
30728
30729         * Cursor.cs:
30730           - Implemented Position property
30731
30732 2004-08-23 13:39  pbartok
30733
30734         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30735           - Added method to move mouse cursor
30736
30737 2004-08-23 13:39  pbartok
30738
30739         * XplatUIX11.cs:
30740           - Fixed setting of background color
30741           - Added method to move mouse cursor
30742
30743 2004-08-23 13:16  jordi
30744
30745         * Control.cs: avoids null exception
30746
30747 2004-08-22 17:46  jackson
30748
30749         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
30750           PictureBox
30751
30752 2004-08-22 17:40  jackson
30753
30754         * XplatUIX11.cs: Add some missing locks
30755
30756 2004-08-22 15:10  pbartok
30757
30758         * Control.cs, Form.cs:
30759           - Removed OverlappedWindow style from Control, instead it's default
30760             now is child
30761           - Made form windows OverlappedWindow by default
30762
30763 2004-08-22 13:34  jackson
30764
30765         * ScrollBar.cs: Update the position through the Value property so
30766           the OnValueChanged event is raised.
30767
30768 2004-08-22 12:04  pbartok
30769
30770         * SWF.csproj:
30771           - Added Cursor.cs and UserControl.cs
30772
30773 2004-08-22 12:03  pbartok
30774
30775         * Cursor.cs:
30776           - Started implementation, not usable yet
30777
30778 2004-08-22 12:00  pbartok
30779
30780         * UserControl.cs:
30781           - Implemented UserControl (complete)
30782
30783 2004-08-21 19:20  ravindra
30784
30785         * ToolBar.cs: Correcting the formatting mess of VS.NET.
30786
30787 2004-08-21 18:49  ravindra
30788
30789         * ToolBar.cs: Probably this completes the missing attributes in
30790           toolbar control.
30791
30792 2004-08-21 18:03  ravindra
30793
30794         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
30795           Fixed toolbar control signatures.
30796
30797 2004-08-21 16:32  pbartok
30798
30799         * LinkLabel.cs:
30800           - Signature Fixes
30801
30802 2004-08-21 16:30  pbartok
30803
30804         * Label.cs:
30805           - Signature fixes
30806
30807 2004-08-21 16:19  pbartok
30808
30809         * Control.cs, Label.cs:
30810           - Signature fixes
30811
30812 2004-08-21 15:57  pbartok
30813
30814         * ButtonBase.cs:
30815           - Added loads of debug output for development
30816           - Fixed typo in method name
30817
30818 2004-08-21 15:52  pbartok
30819
30820         * ToolBarButtonClickEventArgs.cs:
30821           - Added missing base class
30822
30823 2004-08-21 14:53  pbartok
30824
30825         * Control.cs:
30826           - Updated to match new GrabWindow signature
30827
30828 2004-08-21 14:51  pbartok
30829
30830         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30831           - Added method to get default display size
30832
30833 2004-08-21 14:23  pbartok
30834
30835         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30836           - Added method to query current grab state
30837           - Added argument to allow confining a grab to a window
30838
30839 2004-08-21 14:22  pbartok
30840
30841         * Keys.cs:
30842           - Added [Flags] attribute so that modifiers can be used in bitwise
30843           ops
30844
30845 2004-08-21 14:21  pbartok
30846
30847         * TrackBar.cs, ScrollBar.cs:
30848           - Replaced direct XplatUI calls with their Control counterpart
30849
30850 2004-08-21 13:32  pbartok
30851
30852         * Control.cs:
30853           - Implemented Created property
30854
30855 2004-08-21 13:28  pbartok
30856
30857         * Control.cs:
30858           - Implemented ContainsFocus
30859
30860 2004-08-21 13:26  pbartok
30861
30862         * Control.cs:
30863           - Implemented CausesValidation
30864
30865 2004-08-21 13:21  pbartok
30866
30867         * Control.cs:
30868           - Implemented CanFocus
30869           - Implemented CanSelect
30870           - Implemented Capture
30871
30872 2004-08-21 12:35  pbartok
30873
30874         * XplatUIWin32.cs:
30875           - Fixed bug with Async message handling
30876           - Implemented getting the ModifierKeys
30877
30878 2004-08-21 12:32  jackson
30879
30880         * AsyncMethodResult.cs: Make sure we have the mutex before we
30881           release it. Fixes BeginInvoke on windows
30882
30883 2004-08-21 11:31  pbartok
30884
30885         * XplatUIWin32.cs, XplatUIX11.cs:
30886           - Drivers now return proper mouse state
30887
30888 2004-08-21 10:54  jackson
30889
30890         * Control.cs: Implement EndInvoke
30891
30892 2004-08-21 10:48  jackson
30893
30894         * Timer.cs: Remove unneeded finalizer
30895
30896 2004-08-20 19:52  ravindra
30897
30898         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
30899           in mouse event handling in the ToolBar control.
30900
30901 2004-08-20 19:50  ravindra
30902
30903         * ImageList.cs: Changed draw method to use the arguments passed in
30904           to draw the image.
30905
30906 2004-08-20 18:58  pbartok
30907
30908         * XplatUIStructs.cs:
30909           - Added private message for async communication
30910
30911 2004-08-20 17:38  ravindra
30912
30913         * Control.cs: Made RightToLeft property virtual and removed a
30914           Console.WriteLine.
30915
30916 2004-08-20 14:39  jordi
30917
30918         * ThemeGtk.cs: use style_attach
30919
30920 2004-08-20 14:39  pbartok
30921
30922         * XplatUIWin32.cs:
30923           - Added jackson's Async code from X11 to Win32
30924
30925 2004-08-20 14:09  pbartok
30926
30927         * SWF.csproj:
30928           - Added all new files
30929
30930 2004-08-20 14:09  pbartok
30931
30932         * Control.cs:
30933           - Added call to set window background color
30934
30935 2004-08-20 14:03  pbartok
30936
30937         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
30938           - Added method for setting the window background
30939
30940 2004-08-20 14:02  pbartok
30941
30942         * XplatUIWin32.cs:
30943           - Added method for setting the background color
30944           - Added handling for erasing the window background
30945
30946 2004-08-20 13:45  jordi
30947
30948         * TrackBar.cs: fixes timer, new properties and methods
30949
30950 2004-08-20 13:34  jackson
30951
30952         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
30953           correct thread
30954
30955 2004-08-20 13:22  jackson
30956
30957         * Timer.cs: Timer Tick events are now handed through Controls Async
30958           mechanism so the callbacks are executed in the same thread as X
30959
30960 2004-08-20 13:19  jackson
30961
30962         * XplatUIDriver.cs: Expose functionality to send async messages
30963           through the driver
30964
30965 2004-08-20 13:18  jackson
30966
30967         * Control.cs: Implement Begininvoke
30968
30969 2004-08-20 13:14  jackson
30970
30971         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
30972           messages through the driver
30973
30974 2004-08-20 13:12  jackson
30975
30976         * XplatUIX11.cs: Lock before all X operations. Also added Async
30977           method functionality through XSendEvent
30978
30979 2004-08-20 13:11  jackson
30980
30981         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
30982           This will screw up on 64 bit systems)
30983
30984 2004-08-20 13:10  jackson
30985
30986         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
30987           Async messages through X/Win32
30988
30989 2004-08-19 19:39  pbartok
30990
30991         * XplatUIX11.cs:
30992           - Updated code to match new HandleData.DeviceContext type
30993
30994 2004-08-19 19:38  pbartok
30995
30996         * HandleData.cs:
30997           - Made DeviceContext a generic object to allow usage from various
30998           drivers
30999           - Added support for queueing Windows messages
31000
31001 2004-08-19 19:37  pbartok
31002
31003         * XplatUIWin32.cs:
31004           - Added generation of MouseEnter, MouseLeave and MouseHover events
31005           - Added cleanup on EndPaint
31006
31007 2004-08-19 19:17  pbartok
31008
31009         * Control.cs:
31010           - Added handling of WM_MOUSEHOVER
31011           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
31012           code
31013
31014 2004-08-19 18:55  jordi
31015
31016         * ThemeGtk.cs: fixes button order
31017
31018 2004-08-19 18:12  jordi
31019
31020         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
31021
31022 2004-08-19 17:09  pbartok
31023
31024         * Control.cs:
31025           - Added Right property
31026           - Added RightToLeft property
31027
31028 2004-08-19 16:27  jordi
31029
31030         * ThemeGtk.cs: experimental GTK theme support
31031
31032 2004-08-19 16:26  jordi
31033
31034         * ITheme.cs, Theme.cs: move themes from an interface to a class
31035
31036 2004-08-19 16:25  jordi
31037
31038         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
31039           theme enhancaments
31040
31041 2004-08-19 16:04  pbartok
31042
31043         * XplatUIX11.cs:
31044           - Added colormap basics
31045           - Added a way to re-initialize with a different display handle
31046           - Fixed setting of the window background color
31047           - Added various X11 imports related to colors and colormaps
31048
31049 2004-08-19 15:51  pbartok
31050
31051         * X11Structs.cs:
31052           - Removed packing hints (Paolo suggested this a while back)
31053           - fixed colormap type
31054           - Added default Atom types
31055           - Added Screen and color structs and enums
31056
31057 2004-08-19 15:39  pbartok
31058
31059         * ImageList.cs:
31060           - Added missing Draw() method
31061           - Added missing RecreateHandle event
31062
31063 2004-08-19 15:30  pbartok
31064
31065         * Form.cs:
31066           - Added handling of WM_CLOSE
31067
31068 2004-08-18 13:16  jordi
31069
31070         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
31071           a table
31072
31073 2004-08-18 09:56  jordi
31074
31075         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
31076
31077 2004-08-17 15:31  ravindra
31078
31079         * SWF.csproj: Updated project.
31080
31081 2004-08-17 15:25  pbartok
31082
31083         * Control.cs:
31084           - Drawing improvement; don't call UpdateBounds if we are not visible
31085             (or have been minimized)
31086
31087 2004-08-17 15:24  pbartok
31088
31089         * XplatUIWin32.cs:
31090           - Finished IsVisible
31091           - Added Win32GetWindowPlacement
31092
31093 2004-08-17 15:08  jackson
31094
31095         * Panel.cs: Initial checkin of the Panel
31096
31097 2004-08-17 14:25  pbartok
31098
31099         * Control.cs:
31100           - Fixed broken handling of default window sizes
31101
31102 2004-08-17 13:29  jackson
31103
31104         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
31105           has a large startup time.
31106
31107 2004-08-17 10:25  jackson
31108
31109         * HandleData.cs: union areas properly
31110
31111 2004-08-17 10:12  jackson
31112
31113         * HandleData.cs: union areas properly
31114
31115 2004-08-16 20:00  ravindra
31116
31117         * ToolBar.cs, ToolBarButton.cs: Added attributes.
31118
31119 2004-08-16 18:48  ravindra
31120
31121         * ToolBar.cs: Added attributes.
31122
31123 2004-08-16 17:17  ravindra
31124
31125         * SWF.csproj: Updated project.
31126
31127 2004-08-16 17:16  jackson
31128
31129         * XplatUIX11.cs: Check for more expose events before sending a
31130           WM_PAINT so they can all be grouped together. This makes dragging a
31131           window across another window redraw in a sane way.
31132
31133 2004-08-16 15:47  pbartok
31134
31135         * Control.cs:
31136           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
31137             support OnMouseEnter/Leave()
31138           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
31139             exposure handling
31140
31141 2004-08-16 15:46  pbartok
31142
31143         * XplatUIStructs.cs, XplatUIX11.cs:
31144           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
31145           OnMouseEnter/Leave()
31146
31147 2004-08-16 15:34  jackson
31148
31149         * XplatUIX11.cs: Group multiple expose events in HandleData, make
31150           sure messages get the message field set to WM_NULL if they are not
31151           handled.
31152
31153 2004-08-16 15:24  jackson
31154
31155         * HandleData.cs: HandleData is used for storing message information
31156           for window handles
31157
31158 2004-08-15 17:23  ravindra
31159
31160         * ColorDepth.cs: Added attribute.
31161
31162 2004-08-15 17:23  ravindra
31163
31164         * SWF.csproj: Updated project for ToolBar Control.
31165
31166 2004-08-15 17:20  ravindra
31167
31168         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
31169           control and also dos2unix format.
31170
31171 2004-08-15 17:13  ravindra
31172
31173         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
31174           ToolBarButtonClickEventArgs.cs,
31175           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
31176           ToolBarTextAlign.cs: First Implementation of ToolBar control.
31177
31178 2004-08-15 15:31  pbartok
31179
31180         * ButtonBase.cs:
31181           - First (mostly) working version
31182
31183 2004-08-13 16:15  pbartok
31184
31185         * Control.cs:
31186           - Fixed Anchor default
31187
31188 2004-08-13 15:43  pbartok
31189
31190         * Control.cs:
31191           - Changed GetCursorPos signature
31192
31193 2004-08-13 15:42  pbartok
31194
31195         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
31196           - Changed signature for GetCursorPos
31197
31198 2004-08-13 15:25  pbartok
31199
31200         * XplatUIX11.cs:
31201           - Cleanup
31202           - Fixed resizing/exposure handling
31203
31204 2004-08-13 15:22  jordi
31205
31206         * ThemeWin32Classic.cs: removes redundant code and fixes issues
31207           with tickposition
31208
31209 2004-08-13 14:55  jordi
31210
31211         * TrackBar.cs: change from wndproc to events
31212
31213 2004-08-13 13:00  jordi
31214
31215         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31216           XplatUIX11.cs: implements PointToClient (ScreenToClient)
31217
31218 2004-08-13 12:53  pbartok
31219
31220         * XplatUIWin32.cs:
31221           - Changed GetWindowPos to also provide client area size
31222           - Fixed broken prototypes for several win32 functions
31223
31224 2004-08-13 12:53  pbartok
31225
31226         * XplatUI.cs, XplatUIDriver.cs:
31227           - Changed GetWindowPos to also provide client area size
31228
31229 2004-08-13 12:52  pbartok
31230
31231         * XplatUIX11.cs:
31232           - Added generation of WM_POSCHANGED
31233           - Changed GetWindowPos to also provide client area size
31234
31235 2004-08-13 12:52  pbartok
31236
31237         * Control.cs:
31238           - Added Dispose() and destructor
31239           - Fixed resizing and bounds calculation
31240           - Fixed Layout
31241           - Added memory savings for invisible windows
31242
31243 2004-08-13 12:46  jordi
31244
31245         * TrackBar.cs: adds timer and grap window
31246
31247 2004-08-13 10:25  jackson
31248
31249         * Timer.cs: SWF Timer
31250
31251 2004-08-12 16:59  pbartok
31252
31253         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31254           - Implemented method to get current mouse position
31255
31256 2004-08-12 14:29  jordi
31257
31258         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
31259           enhancement, fix mouse problems, highli thumb, etc
31260
31261 2004-08-12 13:31  pbartok
31262
31263         * Control.cs:
31264           - Fixed Anchoring bugs
31265
31266 2004-08-12 13:01  jackson
31267
31268         * StatusBar.cs: Don't forget things
31269
31270 2004-08-12 12:54  jackson
31271
31272         * ThemeWin32Classic.cs: Handle owner draw status bars
31273
31274 2004-08-12 12:54  jackson
31275
31276         * StatusBar.cs: Implement missing properties, events, and methods.
31277           Handle mouse clicking
31278
31279 2004-08-12 10:19  jackson
31280
31281         * StatusBarPanelClickEventArgs.cs,
31282           StatusBarPanelClickEventHandler.cs: Classes for handling status
31283           bar panel click events
31284
31285 2004-08-12 10:10  jackson
31286
31287         * Control.cs: Add missing properties
31288
31289 2004-08-12 09:46  pbartok
31290
31291         * BindingsManagerBase.cs:
31292           - Name changed to BindingManagerBase.cs
31293
31294 2004-08-12 09:25  jordi
31295
31296         * ScrollableControl.cs: calls ctrlbase instead of exeception
31297
31298 2004-08-11 16:28  pbartok
31299
31300         * InputLanguageChangingEventArgs.cs:
31301           - Never check in before compiling. Fixes the last check-in
31302
31303 2004-08-11 16:26  pbartok
31304
31305         * InputLanguageChangingEventArgs.cs:
31306           - More signature fixes
31307
31308 2004-08-11 16:20  pbartok
31309
31310         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
31311           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
31312           ImageListStreamer.cs, InputLanguage.cs,
31313           InputLanguageChangedEventArgs.cs,
31314           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
31315           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
31316           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
31317           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31318           - Signature fixes
31319
31320 2004-08-11 16:16  pbartok
31321
31322         * Application.cs:
31323           - Fixed Signature
31324           - Added .Net 1.1 method
31325
31326 2004-08-11 15:25  pbartok
31327
31328         * SWF.csproj:
31329           - Fixed BindingManagerBase.cs filename
31330
31331 2004-08-11 15:22  pbartok
31332
31333         * BindingManagerBase.cs:
31334           - Was checked in with wrong filename
31335
31336 2004-08-11 14:50  pbartok
31337
31338         * SWF.csproj:
31339           - Updated
31340
31341 2004-08-11 13:41  jordi
31342
31343         * XplatUIWin32.cs: Fixes ClientRect
31344
31345 2004-08-11 13:19  pbartok
31346
31347         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31348           XplatUIX11.cs:
31349           - We had SetWindowPos and MoveWindow to set window positions and
31350             size, removed MoveWindow. We have GetWindowPos, so it made sense to
31351             keep SetWindowPos as matching counterpart
31352           - Added some X11 sanity checking
31353
31354 2004-08-11 12:59  pbartok
31355
31356         * Control.cs:
31357           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
31358             (It seems that SetBounds is just a front for SetBoundsCore and
31359              SetBoundsCore updates the underlying window system and
31360              UpdateBounds is responsible for updating the variables associated
31361              with the Control and sending the events)
31362           - Major cleanup of Size handling; we now have two sizes, client_size
31363             and bounds. Bounds defines the window with decorations, client_size
31364             without them.
31365
31366 2004-08-11 12:55  pbartok
31367
31368         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31369           - Added method to calculate difference between decorated window and
31370             raw client area
31371
31372 2004-08-11 12:54  pbartok
31373
31374         * Label.cs:
31375           - Forcing redraw on resize
31376
31377 2004-08-11 11:43  pbartok
31378
31379         * ImageList.cs:
31380           - Removed disposing of the actual images when the list is disposed
31381
31382 2004-08-11 09:13  pbartok
31383
31384         * Control.cs:
31385           - Now properly reparents windows
31386
31387 2004-08-11 08:37  pbartok
31388
31389         * Control.cs:
31390           - Duh!
31391
31392 2004-08-11 07:47  pbartok
31393
31394         * Control.cs:
31395           - Rewrote the collection stuff. Might not be as fast now, not
31396             keeping the number of children around and accessible directly, but
31397             it's more straightforward
31398
31399 2004-08-11 07:44  pbartok
31400
31401         * AccessibleObject.cs:
31402           - Fixed to match ControlCollection rewrite
31403
31404 2004-08-11 07:43  pbartok
31405
31406         * ImageList.cs:
31407           - Added missing creation of the collection list
31408
31409 2004-08-10 20:08  jackson
31410
31411         * StatusBar.cs: Get the paint message from WndProc
31412
31413 2004-08-10 19:31  jackson
31414
31415         * ThemeWin32Classic.cs: Create Brushes as little as possible
31416
31417 2004-08-10 19:20  jackson
31418
31419         * UICues.cs: Add Flags attribute
31420
31421 2004-08-10 19:19  jackson
31422
31423         * StatusBarPanel.cs: Signature cleanup
31424
31425 2004-08-10 19:10  jackson
31426
31427         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
31428           Initial implementation of status bar item drawing
31429
31430 2004-08-10 17:27  jordi
31431
31432         * TrackBar.cs: add missing methods, properties, and restructure to
31433           hide extra ones
31434
31435 2004-08-10 16:24  jackson
31436
31437         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
31438           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
31439           attribute
31440
31441 2004-08-10 13:21  jordi
31442
31443         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
31444           enhancements and standarize on win colors defaults
31445
31446 2004-08-10 12:52  jackson
31447
31448         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
31449           ThemeWin32Classic.cs: Implement DrawItem functionality
31450
31451 2004-08-10 12:47  jordi
31452
31453         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
31454
31455 2004-08-10 12:32  jordi
31456
31457         * Control.cs: throw ontextchange event
31458
31459 2004-08-10 11:43  pbartok
31460
31461         * Control.cs:
31462           - Added more to the still unfinished Dock/Anchor layout code
31463
31464 2004-08-10 11:39  pbartok
31465
31466         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
31467           - Added GetWindowPos method
31468
31469 2004-08-10 11:36  pbartok
31470
31471         * XplatUIWin32.cs:
31472           - Implemented several methods
31473
31474 2004-08-10 09:47  jackson
31475
31476         * TrackBar.cs: Allow control to handle buffering
31477
31478 2004-08-10 09:41  jackson
31479
31480         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
31481
31482 2004-08-10 09:24  jackson
31483
31484         * Label.cs, LinkLabel.cs: Let Control handle buffering.
31485
31486 2004-08-10 09:09  jackson
31487
31488         * StatusBar.cs: Let Control handle all the buffering.
31489
31490 2004-08-10 09:08  jackson
31491
31492         * Control.cs: Control will now handle the buffering code, so each
31493           control does not have to implement this.
31494
31495 2004-08-10 08:34  jackson
31496
31497         * XplatUIDriver.cs: Use default colors from the theme
31498
31499 2004-08-09 17:12  pbartok
31500
31501         * ImageList.cs:
31502           - Fixed several bugs Ravindra pointed out
31503
31504 2004-08-09 16:11  pbartok
31505
31506         * Control.cs:
31507           - Added incomplete dock layout code
31508           - Added support for mouse wheel
31509
31510 2004-08-09 16:09  pbartok
31511
31512         * XplatUIX11.cs:
31513           - Added handling for middle and right mousebutton
31514           - Added handling for mouse wheel
31515           - Added handling for key state and mouse state and position
31516           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
31517           messages
31518
31519 2004-08-09 15:40  jackson
31520
31521         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
31522           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
31523           checkin
31524
31525 2004-08-09 15:37  jackson
31526
31527         * StatusBar.cs: Initial implementation of StatusBar
31528
31529 2004-08-09 15:36  jackson
31530
31531         * ITheme.cs: Add support for drawing status bar and getting status
31532           bar item sizes
31533
31534 2004-08-09 15:35  pbartok
31535
31536         * MouseButtons.cs:
31537           - Fixed values
31538
31539 2004-08-09 15:34  jackson
31540
31541         * ThemeWin32Classic.cs: Add support for drawing status bar and get
31542           status bar item sizes
31543
31544 2004-08-09 15:21  jackson
31545
31546         * ThemeWin32Classic.cs: Use known colors for default control
31547           colours
31548
31549 2004-08-09 15:12  jackson
31550
31551         * ThemeWin32Classic.cs: Make the default font static, it is static
31552           in control so this doesn't change functionality and creating fonts
31553           is sloooooow.
31554
31555 2004-08-09 14:56  pbartok
31556
31557         * X11Structs.cs:
31558           - Added GrabMode enum
31559
31560 2004-08-09 14:55  pbartok
31561
31562         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31563           - Removed Run method, was only required for initial development
31564
31565 2004-08-09 14:51  pbartok
31566
31567         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31568           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
31569           capture
31570
31571 2004-08-09 13:48  pbartok
31572
31573         * XplatUIX11.cs:
31574           - Fixed default sizing for child windows
31575
31576 2004-08-09 12:56  pbartok
31577
31578         * XplatUIX11.cs:
31579           - Added generation of WM_DESTROY message
31580           - Added handling of window manager induced shutdown
31581
31582 2004-08-09 11:31  jackson
31583
31584         * ThemeWin32Classic.cs: New names for control properties
31585
31586 2004-08-09 11:25  jackson
31587
31588         * Control.cs: Use new color names
31589
31590 2004-08-09 11:02  jackson
31591
31592         * XplatUI.cs: Get default window properties from the theme
31593
31594 2004-08-09 11:01  jackson
31595
31596         * ITheme.cs: The theme engine now controls default window
31597           properties
31598
31599 2004-08-09 11:00  jackson
31600
31601         * ThemeWin32Classic.cs: Add default window color properties
31602
31603 2004-08-09 10:17  jackson
31604
31605         * ThemeWin32Classic.cs: Use correct default back color
31606
31607 2004-08-09 10:05  jackson
31608
31609         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
31610           the theme now.
31611
31612 2004-08-09 09:56  jackson
31613
31614         * XplatUI.cs: Remove defaults, these are handled by the theme now.
31615
31616 2004-08-09 09:54  jackson
31617
31618         * Control.cs: Get default properties from the theme.
31619
31620 2004-08-09 09:53  jackson
31621
31622         * ITheme.cs: Themes now handle default control properties
31623
31624 2004-08-09 09:53  jackson
31625
31626         * ThemeWin32Classic.cs: Themes now handle default control
31627           properties so coloring will be consistent
31628
31629 2004-08-08 16:54  jordi
31630
31631         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
31632
31633 2004-08-08 15:08  jordi
31634
31635         * XplatUIX11.cs: fixes keyboard crash
31636
31637 2004-08-08 13:47  jordi
31638
31639         * Label.cs: add cvs header info
31640
31641 2004-08-08 12:09  jackson
31642
31643         * ThemeWin32Classic.cs: Add pen_buttonface
31644
31645 2004-08-08 11:52  jordi
31646
31647         * Label.cs, LinkLabel.cs: [no log message]
31648
31649 2004-08-08 11:34  jordi
31650
31651         * ThemeWin32Classic.cs: Use Windows Standard Colours
31652
31653 2004-08-07 17:32  jordi
31654
31655         * TrackBar.cs: throw exceptions of invalid enums values
31656
31657 2004-08-07 17:31  jordi
31658
31659         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
31660           draw method name
31661
31662 2004-08-07 16:56  jackson
31663
31664         * HorizontalAlignment.cs: Initial checkin
31665
31666 2004-08-07 13:16  jordi
31667
31668         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
31669           methods
31670
31671 2004-08-07 13:05  jordi
31672
31673         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
31674           GetSysColor defines
31675
31676 2004-08-06 18:01  pbartok
31677
31678         * ThemeWin32Classic.cs:
31679           - Fixed some rounding issues with float/int
31680
31681 2004-08-06 18:00  jackson
31682
31683         * DockStyle.cs, AnchorStyles.cs:
31684
31685                   Add flags and serializable attributes.
31686
31687 2004-08-06 17:46  pbartok
31688
31689         * XplatUIX11.cs:
31690           - Implemented GetParent
31691
31692 2004-08-06 17:18  pbartok
31693
31694         * TrackBar.cs:
31695           - Fixed some rounding issues with float/int
31696
31697 2004-08-06 17:17  pbartok
31698
31699         * X11Structs.cs, XplatUIX11.cs:
31700           - Fixed Refresh and Invalidate
31701
31702 2004-08-06 15:30  pbartok
31703
31704         * Control.cs, X11Structs.cs, XplatUIX11.cs:
31705           - Fixed recursive loop when resizing
31706           - Improved/fixed redrawing on expose messages
31707
31708 2004-08-06 09:53  jordi
31709
31710         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
31711           keyboard navigation
31712
31713 2004-08-06 08:02  pbartok
31714
31715         * X11Structs.cs, XplatUIX11.cs:
31716           - Fixed reparenting
31717           - Fixed window border creation
31718
31719 2004-08-05 15:38  pbartok
31720
31721         * XplatUIX11.cs:
31722           - Attempted fix for reparenting problems
31723
31724 2004-08-04 15:14  pbartok
31725
31726         * Control.cs:
31727           - Fixed Invalidation bug (calculated wrong client area)
31728           - Added ClientSize setter
31729
31730 2004-08-04 15:13  pbartok
31731
31732         * Form.cs:
31733           - Added AutoScale properties
31734
31735 2004-08-04 15:13  pbartok
31736
31737         * SWF.csproj:
31738           - Added latest files
31739
31740 2004-08-04 14:11  pbartok
31741
31742         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31743           XplatUIX11.cs:
31744           - Added Invalidate handling
31745
31746 2004-08-03 17:09  jordi
31747
31748         * XplatUIDriver.cs: fixes spelling mistake
31749
31750 2004-07-27 09:53  jordi
31751
31752         * TrackBar.cs: fixes trackbar events, def classname, methods
31753           signature
31754
31755 2004-07-27 09:29  jordi
31756
31757         * ScrollBar.cs: fixes scrollbar events
31758
31759 2004-07-27 04:38  jordi
31760
31761         * Control.cs: changes to be able to run winforms samples
31762
31763 2004-07-26 11:42  jordi
31764
31765         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
31766           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
31767
31768 2004-07-26 05:41  jordi
31769
31770         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
31771           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
31772           implementation
31773
31774 2004-07-22 09:22  jordi
31775
31776         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
31777           check link overlapping, implement events, and fixes
31778
31779 2004-07-21 10:28  jordi
31780
31781         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
31782
31783 2004-07-21 10:19  jordi
31784
31785         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
31786           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
31787           LinkLabelLinkClickedEventArgs.cs,
31788           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
31789           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
31790           implementation
31791
31792 2004-07-19 13:09  jordi
31793
31794         * Control.cs, Label.cs: label control re-written: added missing
31795           functionlity, events, and properties
31796
31797 2004-07-19 10:49  jordi
31798
31799         * Control.cs: fixes SetBounds logic
31800
31801 2004-07-19 01:29  jordi
31802
31803         * Control.cs: Call RefreshWindow only if the window has created
31804
31805 2004-07-15 14:05  pbartok
31806
31807         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
31808           - Implemented ImageList and ImageList.ImageCollection classes
31809           - Added ColorDepth enumeration
31810           - Updated SWF VS.Net project
31811
31812 2004-07-15 11:06  jordi
31813
31814         * XplatUIStructs.cs: added MsgButons enum
31815
31816 2004-07-15 11:03  jordi
31817
31818         * Control.cs: added basic mouse handeling events
31819
31820 2004-07-15 03:38  jordi
31821
31822         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
31823           Vertical TrackBar control implementation
31824
31825 2004-07-13 09:33  jordi
31826
31827         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
31828
31829 2004-07-13 09:31  jordi
31830
31831         * Control.cs, Form.cs: commit: new properties and fixes form size
31832           problems
31833
31834 2004-07-09 14:13  miguel
31835
31836         * ProgressBar.cs: Spelling
31837
31838 2004-07-09 11:25  pbartok
31839
31840         * ProgressBar.cs:
31841           - Removed usage of Rectangle for drawing. Miguel pointed out it's
31842           faster
31843
31844 2004-07-09 11:17  miguel
31845
31846         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
31847
31848                 * ProgressBar.cs: Fixed spelling for `block'
31849
31850                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
31851                 style guidelines.
31852
31853                 Avoid using the += on rect.X, that exposed a bug in the compiler.
31854
31855 2004-07-08 23:21  pbartok
31856
31857         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
31858           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
31859           BaseCollection.cs, Binding.cs, BindingContext.cs,
31860           BindingMemberInfo.cs, BindingsCollection.cs,
31861           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
31862           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
31863           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
31864           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
31865           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
31866           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
31867           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
31868           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
31869           FrameStyle.cs, GiveFeedbackEventArgs.cs,
31870           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
31871           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
31872           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
31873           InputLanguageChangedEventArgs.cs,
31874           InputLanguageChangedEventHandler.cs,
31875           InputLanguageChangingEventArgs.cs,
31876           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
31877           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
31878           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
31879           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
31880           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
31881           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
31882           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
31883           QueryAccessibilityHelpEventArgs.cs,
31884           QueryAccessibilityHelpEventHandler.cs,
31885           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
31886           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
31887           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
31888           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
31889           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
31890           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
31891           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
31892           XplatUIX11.cs, lang.cs:
31893           - Initial check-in
31894
31895