* Control.cs: Corcompare issues.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2
3         * Control.cs: Corcompare issues.
4         * MessageBox.cs: Implemented missing 2.0 functions.
5
6 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7
8         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
9           Implemented more 2.0 members.
10
11 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12
13         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
14           null (strange, but it seems to happen when running unit tests).
15
16 2007-05-30  Andreia Gaita  <avidigal@novell.com>
17
18         * ContainerControl.cs: Set active_control even earlier, before 
19         firing any events, and undo it if validation returns false.
20
21 2007-05-30  Andreia Gaita  <avidigal@novell.com>
22
23         * ContainerControl.cs: Raise Validation and Enter/Leave events
24         even if there is no Form and set active_control earlier, just
25         before firing Enter events (toshok's patches). Fixes #80647.
26
27 2007-05-30  Jackson Harper  <jackson@ximian.com>
28
29         * TextControl.cs: Redid the pageup/pagedown a little to simplify
30         things and fix bug #81311.
31
32 2007-05-30  Jackson Harper  <jackson@ximian.com>
33
34         * X11Dnd.cs: Now that we have our own event loop, we need to
35         cancel when we get a mouseup but it won't be accepted.
36
37 2007-05-30  Chris Toshok  <toshok@ximian.com>
38
39         * DataGrid.cs (set_CurrentCell): guard against negative
40         column/row.
41
42         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
43         array index syntax instead of looping over the property names.
44
45         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
46         and set IsInEditOrNavigateMode to false there.
47
48 2007-05-30  Jackson Harper  <jackson@ximian.com>
49
50         * TreeView.cs: Make sure we don't get a bad visible order when
51         setting to the top node.  Fixes some misc crashing in
52         ControlInspector.
53
54 2007-05-30  Andreia Gaita  <avidigal@novell.com>
55
56         * UserControl.cs: Add 2.0 AutoSizeMode
57
58 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
59
60         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
61
62 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
63
64         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
65         lines. Fixes #80285. 
66
67 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
68
69         * DataGridColumnStyle.cs: Add char trimming column header text format. 
70
71 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
72
73         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
74         Fixes #80147.
75
76 2007-05-29  Jackson Harper  <jackson@ximian.com>
77
78         * TreeNode.cs: Fix off by one on calculating whether or not a node
79         is visible.
80
81 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
82
83         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
84         * ScrollableControl.cs: Force an UpdateDistances when we move the
85         scrollbars.
86         [Fixes bug #80605]
87
88 2007-05-29  Andreia Gaita  <avidigal@novell.com>
89
90         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
91         update the page setup screen.
92
93 2007-05-29  Andreia Gaita  <avidigal@novell.com>
94
95         * PageSetupDialog.cs: Fix landscape mode.
96
97 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
98
99         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
100         IconSizeHorizontalSpacing.
101
102 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
103
104         * ListView.cs: The declaration of prev_tooltip_item should be inside
105         a NET_2_0 conditional (avoid a warning).
106
107 2007-05-28  Andreia Gaita  <avidigal@novell.com>
108
109         * PageSetupDialog.cs: Implement PrintPreview control to display
110         the preview thumbnail. Change unit conversion to use 
111         PrinterUnitConvert methods.
112         
113         Note: there is a huge bug in ms.net where the default margins are 
114         interpreted as centimeters (?), when in fact they are set in inches. When 
115         loading the page setup dialog initially (ms.net), the default margins 
116         are set to 1 inch, and the dialog shows them with value 10, when in fact 
117         it should be 25 (properly converted). Our dialog doesn't have this bug.
118         
119         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
120         RectangleF.
121         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
122
123 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
124
125         * ListView.cs:
126         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
127         items.
128
129 2007-05-28  Andreia Gaita  <avidigal@novell.com>
130
131         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
132         an IntPtr on csc (it builds fine on mcs, could it be a compiler
133         bug?), convert the ptr to Int32 first.
134
135 2007-05-28  Jackson Harper  <jackson@ximian.com>
136
137         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
138         recieved, we will exit the dnd tracking loop.
139
140 2007-05-28  Jackson Harper  <jackson@ximian.com>
141
142         * X11Dnd.cs: Keep tracking until the xdnd finished event is
143         recieved. TODO: I should probably stick a timer on the dropped
144         event, and finish the drag if the XDND Finished event never shows
145         (because some apps don't seem to send it).
146
147 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
148
149         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
150         #81733.
151
152 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
153
154         * MonthCalendar.cs: Only mark the keypresses we actually handle as
155           handled.
156
157 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
158
159         * MonthCalendar.cs: Set the size after initializing all the relevant
160           variables. Fixes #81742.
161
162 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
163
164         * KeyEventArgs.cs: Fix typo.
165
166 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
167
168         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
169         to match MS. Fixed MinDate to only accept value less than or equal
170         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
171         Removed TODO's that are now verified by unit tests.
172
173 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
174
175         * TreeNodeCollection.cs: Minor corrections to exceptions to match
176         MS.
177
178 2007-05-25  Jackson Harper  <jackson@ximian.com>
179
180         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
181         it's own message loop.
182         * XplatUIX11.cs: Remove some of the dnd hooks
183
184 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
185
186         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
187         instead of MinimizedWindowSize.
188
189 2007-05-25  Jackson Harper  <jackson@ximian.com>
190
191         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
192
193 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
194
195         * KeyEventArgs.cs: Added SuppressKeyPress.
196         * Control.cs: Added support for SuppressKeyPress.
197
198 2007-05-24  Andreia Gaita  <avidigal@novell.com>
199
200         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
201         problems with PieChart. suppress_validation should not be a counter,
202         if there are several BeginInit calls, the first EndInit will 
203         activate validation. Fix exceptions thrown by set_Value.
204         * UpDownBase.cs: ValidateText only if it's the user editing it.
205
206 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
207
208         * ListControl.cs: FilterItemOnProperty should return the filtered
209         item proeprty even if DataSource is null. The same applies for
210         GetItemText. Fixes #80427.
211
212 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
213
214         * Control.cs: If a control doesn't have a parent when it's Dock is
215         set, but it has children, it needs to do a layout.  Fixes some nested
216         controls issues.  [Fixes bug #81199]
217
218 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
219
220         * ComboBox.cs: If there are few items in the drop down list, make it
221           the exact size the items need, no bigger. Fixes #81612.
222
223 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
224
225         * Application.cs: When we have captured the keyboard for a menu,
226         check for mouse down events in case we need to close the menu.
227         * Control.cs, Form.cs: Remove mouse down checks for menus.
228
229 2007-05-24  Jackson Harper  <jackson@ximian.com>
230
231         * TextControl.cs: Handle tabs in non multiline mode a little
232         differently.
233
234 2007-05-24  Jackson Harper  <jackson@ximian.com>
235
236         * TextControl.cs: We need to manually break apart tabbed text and
237         move the tabs, since the system.drawing tabbing mechanism relies
238         on tab stops.
239         * TextBoxBase.cs: Move the caret properly when the user enters a
240         tab.
241
242 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
243
244         * ContainerControl.cs: Don't check CanSelect before calling
245         ProcessMnemonic.
246         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
247         release a KeyboardActive on click if it's not ours.
248
249 2007-05-23  Andreia Gaita  <avidigal@novell.com>
250
251         * ColumnHeader.cs: Add TypeConverter
252
253 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
254
255         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
256
257 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
258
259         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
260
261 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
262
263         * LinkLabel.cs: Implement public Padding property.
264
265 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
266
267         * LinkLabel.cs: Implement public FlatStyle.
268
269 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
270
271         * Control.cs: Apply patch from George to call parent.PerformLayout
272         when Visible is changed.  [Fixes bugs #81118, 81718]
273
274 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
275
276         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
277
278 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
279
280         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
281
282 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
283
284         * ContextMenu.cs: Implement Collapse.
285
286 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
287
288         * ToolBarButton.cs: Implement Name.
289
290 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
291
292         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
293         use current_item, it prevents some NRE. Fixes #81675.  
294
295 2007-05-22  Andreia Gaita  <avidigal@novell.com>
296
297         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
298         without updating the text.
299
300 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
301
302         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
303         without calling DeleteObject.  [Should fix bug #81709]
304
305 2007-05-22  Jackson Harper  <jackson@ximian.com>
306
307         * RichTextBox.cs: Set the line endings correctly, when flushing
308         RTF text.
309
310 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
311
312         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
313          {Width=0,Height=0}.
314
315 2007-05-22  Jackson Harper  <jackson@ximian.com>
316
317         * TreeView.cs: Setting top with a null node should set to the very
318         top.
319
320 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
321
322         * Form.cs: ShowDialog: destroy the handle when message loop is
323           finished, matches MS behaviour. Refactor parts of WmClose into
324           RaiseCloseEvents, that only raises events if they haven't already
325           been raised. Fixes #81688 and #81521.
326         * Application.cs: Don't call close on the form when exiting a modal
327           loop, it will raise all the (Form)Closed/Closing events again if
328           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
329           which doesn'r raise any events it they have been raised before.
330
331 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
332
333         * Control.cs: Add OnPrint.
334         * ToolStrip.cs: Add GetChildAtPoint.
335         * ToolStripContainer.cs: Add OnRightToLeftChanged.
336         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
337
338 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
339
340         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
341
342 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
343
344         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
345           isn't visible anymore. Fixes #81651.
346
347 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
348
349         * Control.cs: WmShowWindow: Update children's z-order after setting
350           their parent. SetParent may show the window, thereby corrupting
351           z-order, since the window will be shown on top.
352         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
353           multiple (and redundant) WM_SHOWWINDOW messages.
354         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
355           event has already been raised.
356         * Form.cs: Change is_changing_visible_state to a counter, since
357           SetVisibleCore can be called recursively. CreateHandle: when
358           creating mdi children, send (De)Activated events.
359         * MdiClient.cs: Update use of is_changing_visible_state.
360         * Application.cs: OnThreadException: Surround exception handling with
361           try/finally to ensure we always reset the error-handling state
362           before leaving.
363
364 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
365
366         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
367           (#81704).
368
369 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
370
371         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
372         SmallIcon views, now that we have a standarized horizontal spacing.
373
374         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
375         4, just like the other views (Match .Net).
376
377 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
378
379         * Control.cs: Delay calculating anchor distances until we actually layout.
380         Always query the WM for the actual size and location it put us at instead of
381         only when we send negative values.
382         [Fixes bugs #81694, 81695]
383
384 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
385
386         * Application.cs: Avoid a possible stack overflow when trying to exit
387           the application.
388
389 2007-05-19  Marek Safar  <marek.safar@gmail.com>
390
391         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
392         enum value.
393
394 2007-05-19  Andreia Gaita  <avidigal@novell.com>
395
396         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
397         * NumericUpDownAcceleration.cs, 
398           NumericUpDownAccelerationCollection.cs: Added 2.0
399           implementation.
400
401 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
402
403         * RichTextBox.cs: Recalculate the document after the ScrollBars
404         property is changed. Fixes bug #81681.
405
406 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
407
408         * DataObject.cs: Implement 2.0 methods.
409
410 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
411
412         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
413         in the center of the checkbox, not in the left-top corner. 
414         Fixes #80037.
415
416 2007-05-18  Jackson Harper  <jackson@ximian.com>
417
418         * RichTextBox.cs: Recalculate the document after the scrollbars
419         property is changed.
420         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
421         81486.
422
423 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
424
425         * CreateParams.cs: Make HasWindowManager marginally faster.
426         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
427           into Hwnd so that other drivers can use it as well.
428         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
429           the default location from Hwnd. Fixes MDI client windows always
430           showing up at (0,0) in Windows (Win32 won't set the default
431           location since the window styles aren't correct).
432
433 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
434
435         * TreeView.cs: Modified DoubleBuffered to just use the base
436         implementation.
437
438 2007-05-18  Jackson Harper  <jackson@ximian.com>
439
440         * TreeView.cs: Set the top node to the last child node when
441         expanding all
442         - When we get focus, if there is no selected node, use the top
443         node.
444
445 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
446
447         * KeysConverter.cs: Add CanConvertTo.
448         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
449         * LinkConverter.cs: Added.
450
451 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
452
453         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
454         it prevents error when file dont have write access. Fixes #81669 and #81667.  
455
456 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
457
458         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
459         button text. Fixes #79640.  
460
461 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
462
463         * Control.cs: According to MSDN controls created in the designer theres 
464         keyboard accelerators visible by default. So included check for design
465         in ShowKeyboardCuesInternal.  
466
467 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
468
469         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
470         text. Fixes #81621.  
471
472 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
473
474         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
475         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
476
477 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
478
479         * Control.cs: Finish implementation of UI State using WmChangeUIState
480         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
481         in some controls to check for show_keyboard_cues to draw accell keys "_".  
482
483 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
484
485         * ListBox.cs: When calculating the horizontal scrollbar
486         in single column mode, don't use values less than 0 for
487         Maximum. Fixes #81474.
488
489 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
490
491         * ListBox.cs: Throw the some missing exceptions in
492         ListBox.ObjectCollection methods.
493
494 2007-05-17  Jackson Harper  <jackson@ximian.com>
495
496         * TextBoxBase.cs: Recalculate the document when the word wrap
497         value has changed. This fixes 81488.
498
499 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
500
501         * Clipboard.cs: Implement missing GetText overload.
502
503 2007-05-17  Chris Toshok  <toshok@ximian.com>
504
505         * Control.cs (CheckDataBindings): remove the binding_context arg
506         to binding.Check.
507
508         * CurrencyManager.cs (OnItemChanged): fix this now that
509         BindingManagerBase is fixed. also remove the comment telling where
510         the fix should go.  We set transfering_data to true/false around
511         the call to PushData to keep UpdateIsBinding from being called.
512         (ListChangedHandler): remove the extra OnMetaDataChanged call for
513         PropertyDescriptorAdded in the 1.1 case.  The extra call is
514         actually generated by System.Data generating 2 metadata changed
515         events of its own per column add.  The fix should go there.  Add a
516         comment to that affect in our test's Assert.Ignore.
517
518         * BindingManagerBase.cs: Rework PullData and PushData slightly.
519         we keep a boolean flag (transfering_data) that keeps us from
520         calling UpdateIsBinding multiple times if we re-enter either of
521         them.
522
523         * ControlBindingsCollection.cs (AddCore): remove the
524         binding_context arg to binding.Check.
525
526         * Binding.cs (IsBinding): don't check if we're binding here, just
527         return our cached value.  we update it in UpdateIsBinding.
528         (Check): don't take the binding_context arg, we'll just use our
529         control's.  Also, for some reason MS doesn't use the data member
530         field when getting the bindingmanager for this binding.  it just
531         uses the datasource.  Make this method callable multiple times,
532         and only do the is_null_desc stuff if manager.Position != -1 (so
533         we don't get an exception accessing manager.Current).
534         (UpdateIsBinding): move the code from IsBinding here.
535         (PositionChangedHandler): call Check here to we can initialize
536         things that require a non- -1 position.
537
538 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
539
540         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
541         control.
542
543 2007-05-17  Andreia Gaita  <avidigal@novell.com>
544
545         * TabControl.cs: Add 2.0 methods and events, including
546         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
547         * TabPage.cs: Add 2.0 methods
548
549 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
550
551         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
552         keyboard_cues is properly handled by message method.  
553
554 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
555
556         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
557
558 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
559
560         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
561
562 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
563
564         * Control.cs: 
565         - WmUpdateUIState added to handle state changes, it make call to
566         OnChangeUICues event.
567         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
568         SystemInformation.
569
570 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
571
572         * ImageKeyConverter.cs: Added.
573         * TreeViewImageKeyConverter.cs: Added.
574
575 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
576         
577         * ToolTips.cs: Update Text if SetToolTip is called for a control
578         already showing the tooltip, as well as restarting its timer; show
579         tooltip if we are inside the control bounds by the time of calling
580         SetToolTip. Inside ShowTooltip remove the check to not show the 
581         tooltip again for the active control (it is allowed by .Net to 
582         show the tooltip on the same control multiple times).
583
584 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
585
586         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
587
588 2007-05-16  Andreia Gaita <avidigal@novell.com> 
589
590         * ContainerControl.cs: only process tab key if there are no 
591         modifier keys present, otherwise the control does the 
592         tab processing, if it needs to. Fixes #81622
593         * TabControl.cs: Fixes calculation for which tab to select on
594         shift+ctrl+tab.
595
596 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
597
598         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
599
600 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
601
602         * Control.cs: Make IsInputCharInternal to allow controls to
603         override it and still match MS API.
604         * TextBoxBase.cs: Override IsInputCharInternal and always
605         return true.
606         [Fixes bug #81616]
607
608 2007-05-15  Jackson Harper  <jackson@ximian.com>
609
610         * TextBox.cs: Disable some of the menu options when using a
611         readonly textbox.
612
613 2007-05-15  Jackson Harper  <jackson@ximian.com>
614
615         * TextBox.cs:
616         * TextBoxBase.cs:
617         * RichTextBox.cs: Some new 2.0 methods
618
619 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
620
621         * FileDialog.cs: On 1.0 profile, do not support multidotted 
622         extensions.
623
624 2007-05-14  Jackson Harper  <jackson@ximian.com>
625
626         * TextBoxBase.cs: Implement some of the new 2.0 methods.
627         * RichTextBox.cs: We need to override these methods on 2.0.
628         * MaskedTextBox.cs: These are implemented now
629         * TextControl.cs: This was off by one.
630
631 2007-05-14  Jackson Harper  <jackson@ximian.com>
632
633         * TextControl.cs: Because the line endings are including in the
634         text, we don't need to add them in anymore.
635
636 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
637
638         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
639         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
640
641 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
642
643         * ToolBar.cs: Adjust size to default size when button theres no text and
644         image, it fixes remaining issues from #81524.
645
646 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
647
648         * ToolBar.cs: 
649         - When not flat call redraw to recalculate sizes on creare handle to match
650         win32 behavior.
651         - Revert 77220 because it causes some regressions in toobar
652         button.
653
654 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
655
656         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
657           now actually enters a usable state.
658
659 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
660
661         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
662         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
663         3 buttons.
664
665 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
666
667         * ToolBar.cs: Save default_size on create handle to use later for buttons
668         without text, needed to mimic win32 behavior.
669
670 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
671
672         * ToolBar.cs: Fix button layour to best fit width or height according to
673         vertical or not. Fixes #81524.
674
675 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
676
677         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
678         toolbar size info because different styles theres different sizes.
679         Fixes #81522.
680
681 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
682
683         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
684         if we are using checkboxes, checked is true, and we have less
685         than two images in StateImageList; for the 1.1 in the same scenario
686         draw the first image if we have at least one image in StateImageList.
687         Fixes part of #81191.
688
689 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
690
691         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
692         the owner's Items collection on merge.
693
694 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
695
696         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
697         * ToolStripItemCollection.cs: Lots of fixes to when events get called
698         and parent/owner gets changed based on gert's unit tests.
699
700 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
701
702         * MaskedTextBox.cs: Started implementing parts of it.
703
704 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
705
706         * ListView.cs: When clicking the checkbox on the items
707         take into account the double clicks even if we have only
708         one image in StateImageList (only for 1.0/1.1). Also 
709         generate an extra change of checked state when we receive
710         the second click on checkbox (match .Net behaviour). 
711         Fixes part of #81191.
712
713 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
714
715         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
716
717 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
718
719         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
720         even if OnLoad is overriden and base.OnLoad is not called.
721         [Fixes bug #81582]
722
723 2007-05-10  Andreia Gaita  <avidigal@novell.com>
724
725         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
726         shame. (I blame my ever-persisting and annoying cold)
727
728 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
729
730         * ListView.cs: Don't eat navigation keys.  Let them flow through to
731         KeyDown/KeyPress routines.  [Fixes bug #81569]
732
733 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
734
735         * ListView.cs: When handling keys for selecting the item based off
736         keyboard input, do not consider keys pressed with Alt or Control.  Also,
737         correctly handle keys when the Shift key is down. [Fixes bug #81578]
738
739 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
740
741         * Control.cs: When using UseWaitCursor, we have to store the requested
742         Cursor to use when UseWaitCursor is turned off.
743
744 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
745
746         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
747         to false.
748         * Application.cs: Use PreProcessControlMessage instead of
749         PreProcessMessage.
750         * PreProcessControlMessage.cs: Make internal for 1.1.
751
752 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
753
754         * Control.cs: Add InternalContains focus property, which hast the same
755         functionality of ContainsFocus, but also including implicit controls.
756         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
757         since we need to know if the focus is contained in our implicit
758         ItemControl when calculating Layout. Fixes part of #80888.
759
760 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
761
762         * ToolTip.cs: Remove center form string alignment as it must be align to
763         left.
764
765 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
766
767         * ToolStripItemCollection.cs: Set the new item's parent and owner
768         in Insert like we do in Add.  [Fixes bug #81568]
769
770 2007-05-08  Jackson Harper  <jackson@ximian.com>
771
772         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
773         - Off by one error in SetTop
774         - Disable DoubeBuffering
775         
776 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
777
778         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
779           control as much as necessary in order to make it entirely visible,
780           instead of centering the control in the container (matches MS
781           behaviour). CalculateCanvasSize: we need to take the current scroll
782           position into account when calculating the maximum canvas,
783           otherwise the following scenario will fail: resize so that the
784           scrollbars appear, use the scrollbars to scroll, resize again
785           smaller, and now the canvas size is too small. Recalculate: when
786           showing scrollbars make sure they start off at 0, and try to scroll
787           the active control into view. Fixes #79540. HandleScrollBar: don't
788           scroll anywhere if the scrollbar isn't visible.
789
790 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
791
792         * ListView.cs: When focus changed, call Layout/Invalidate
793         in the focused item to update the selected state (should show
794         entire label when ListView is focused, and a part of it if is not).
795         * ListViewItem.cs: When doing layout for LargeIcon, take into account
796         for displaying the entire label not only the Focused state of the
797         item, but also the Focused state of the ListView (match .Net
798         behaviour).
799
800 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
801
802         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
803         Implement UseWaitCursor. 
804
805 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
806         Applying contributed patch from Sergey Volk.
807
808         * Clipboard.cs: Implement SetDataObject retry logic and new overload
809         of SetDataObject.
810         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
811
812 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
813
814         * Control.cs: Implement DrawToBitmap.
815
816 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
817         Applying contributed patch from Stefan Noack.
818         
819         * Control.cs: Add [Get|Set]AutoSizeMode.
820
821 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
822
823         * MdiClient.cs: Unmerge menus when the last child is closed.
824
825 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
826
827         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
828         * ToolStripManager.cs: Call Merge on DropDowns.
829         [Fixes bug #81477]
830
831 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
832
833         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
834           uints.
835         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
836           visibility. We can't create forms visible, since we have to set the
837           owner before making the form visible (otherwise Win32 will do
838           strange things with task bar icons). The problem is that we set the
839           internal is_visible to true before creating the control, so
840           is_changing_visible_state is the only way of determining if we're
841           in the process of creating the form due to setting Visible=true -
842           this works because SetVisibleCore explicitly makes the form
843           visibile afterwards anyways. Fixes #80775.
844
845 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
846
847         * ThemeWin32Classic.cs: When drawing ListViewItems,
848         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
849         or LargeIcon _and_ item is not focused (match .Net behaviour).
850
851 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
852
853         * Control.cs, Form.cs: Fix some obsolete method warnings.
854
855 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
856
857         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
858         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
859
860 2007-05-04  Andreia Gaita  <avidigal@novell.com>
861
862         * ContainerControl.cs: Fix active_control attribution when going
863         up the parent chain so that the first parent container gets the control
864         and the rest of the parent containers get the child containers (skips
865         non-containers). Fixes #80729
866
867 2007-05-04  Randolph Chung  <tausq@debian.org>
868
869         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
870         [Fixes bug #81499]
871
872 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
873
874         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
875           takes a size parameter, since the CreateParam's size isn't true for
876           minimized forms. Fixes #81518,
877
878 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
879
880         * Form.cs: Add OnDeactivateInternal.
881         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
882
883 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
884
885         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
886           accessing the parent. Fixes #81508.
887
888 2007-05-03  Chris Toshok  <toshok@ximian.com>
889
890         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
891         2.0 block, pass listposition + 1 to ChangeRecordState when a row
892         was added before the current listposition.  Fixes the
893         TestInsertRowBeforeCurrent unit test.
894
895 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
896
897         * Application.cs: Add RaiseIdle.
898         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
899         XplatUIX11.cs: Implement RaiseIdle.
900
901 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
902         corcompare work: N - Z
903         * NotifyIcon.cs
904         * ProgressBar.cs
905         * RadionButton.cs
906         * ScrollableControl.cs
907         * SplitContainer.cs
908         * SplitterPanel.cs
909         * StatusBar.cs
910         * SystemInformation.cs
911         * TabControl.cs
912         * TableLayoutControlCollection.cs
913         * TableLayoutPanel.cs
914         * TabPage.cs
915         * ToolBar.cs
916         * ToolBarButton.cs
917         * ToolStrip.cs
918         * ToolStripComboBox.cs
919         * ToolStripContainer.cs
920         * ToolStripContentPanel.cs
921         * ToolStripDropDown.cs
922         * ToolStripDropDownItem.cs
923         * ToolStripDropDownMenu.cs
924         * ToolStripItem.cs
925         * ToolStripItemCollection.cs
926         * ToolStripMenuItem.cs
927         * ToolStripPanel.cs
928         * ToolStripSplitButton.cs
929         * ToolTip.cs
930         * TreeNode.cs
931         * TreeNodeCollection.cs
932         * TreeNodeMouseHoverEventArgs.cs
933         * TreeView.cs
934
935 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
936
937         * ContextMenu.cs: Add public method Show with alignment property to 2.0
938         stuff. Thanks aatdark for the patch. 
939
940 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
941
942         * GridItem.cs: Implement 2.0 Tag property.
943
944 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
945
946         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
947         count instead of Nodes.Length.  [Fixes bug #81448]
948
949 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
950
951         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
952         [Fixes bug #81506]
953
954 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
955         corcompare work: A - M
956         * BindingNavigator.cs
957         * Button.cs
958         * ButtonBase.cs
959         * CheckBox.cs
960         * Control.cs
961         * FlowLayoutPanel.cs
962         * Form.cs
963         * Label.cs
964         * LinkLabel.cs
965         * ListView.cs
966
967 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
968
969         * Application.cs: Give toolstrips a chance to process mnemonics.
970         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
971         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
972         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
973
974 2007-05-01  Jackson Harper  <jackson@ximian.com>
975
976         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
977         wider area too.
978         - Don't set the BoundsSpecified
979
980 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
981
982         * Application.cs: When using the toolstrip shortcut mechanism, allow the
983         message to pass through to a regular control if it hosted by a toolstrip.
984         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
985         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
986
987 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
988
989         * TextRenderer.cs: Use the flags argument when using the MeasureString
990         fallback algorithm.
991
992 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
993
994         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
995         the MDI menu item.  [Fixes bug #81483]
996
997 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
998
999         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
1000         string. When setting Name to null, use zero-length string instead.
1001
1002 2007-04-29  Andreia Gaita  <avidigal@novell.com>
1003
1004         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
1005         DeselectTab). Implement missing 2.0 TabPageCollection methods
1006         (Add, ContainsKey, RemoveByKey, IndexOfKey)
1007
1008 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
1009
1010         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
1011
1012 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
1013
1014         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
1015         Fixes bug #81479. Include details of exception when LoadFile fails.
1016
1017 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
1018
1019         * DrawListViewSubItemEventArgs.cs: Added missing setter
1020
1021 2007-04-27  Andreia Gaita  <avidigal@novell.com>
1022
1023         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
1024         Hide methods (not complete). Implement missing 2.0 OnPopup event.
1025
1026 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1027
1028         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
1029         removed in ly last commit (it was breaking the Label edit feature).
1030
1031         * ThemeWin32Classic.cs: When drawing a ListViewItem use
1032         StringAlignment.Near for LineAlignment (match .Net).
1033
1034 2007-04-27  Andreia Gaita  <avidigal@novell.com>
1035
1036         * TabControl.cs: Change SetTab so it adds the tabpage to the list
1037         of controls if it isn't already there - was blowing up when doing
1038         tabcontrol.TabPages[i]=new TabPage(). 
1039         SetTab now does a replace by removing the page at the index. 
1040         Add a new InsertTab method that inserts a page in a given index 
1041         instead of replacing. 
1042         Implements TabPageCollection.Insert(int, TabPage).
1043
1044 2007-04-27  Chris Toshok  <toshok@ximian.com>
1045
1046         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
1047         internal handler that can be invoked from our subclasses.)  Also,
1048         add a comment to PushData about how we need to fix it.
1049
1050         * CurrencyManager.cs: tons of changes here.  trying to get things
1051         matching the behavior of .net wrt event orders (ItemChanged,
1052         CurrentChanged, PositionChanged.)  I've implemented a private .net
1053         symbol (ChangeRecordState) that appears in stack traces because
1054         it's actually easier to do this than to effective inline all its
1055         various behaviors at every call site.
1056
1057         * RelatedPropertyManager.cs: guard against an exception here by
1058         not using parent.Current if the position is set to -1 (if the
1059         parent datasource is cleared, for instance).
1060
1061         * Binding.cs: don't parse data in PushData (this might be wrong,
1062         but it jives with MS's behavior.)  Also, don't call PushData when
1063         we get a CurrentChanged event.
1064
1065 2007-04-27  Andreia Gaita  <avidigal@novell.com>
1066
1067         * WebBrowser.cs,
1068           WebBrowserBase.cs,
1069           WebBrowserSiteBase.cs,
1070           HtmlDocument.cs: Added stubbed out classes, no real implementations 
1071           yet.
1072
1073 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
1074
1075         * MainMenu.cs: In draw method without parameters call draw method with 
1076         PaintEvent, another one (just rect) adjust rectangle and we dont need it
1077         as Rect property is already adjusted. Fixes #80694.
1078
1079 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
1080
1081         * Application.cs: Need to handle keyboard menu deselection here.
1082         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
1083         navigation, allowing keyboard to work on X11.
1084         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
1085
1086 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
1087
1088         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
1089         menu bar. It fixes some drawing issues in menu bar.
1090
1091 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
1092
1093         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
1094         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
1095         when <alt> key is pressed.
1096
1097 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
1098
1099         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
1100         example just set visible to false and make this prevent from other problems.
1101         In SystrayAdd always remove pending expose. Fixes #81072.
1102
1103 2007-04-26  Marek Safar  <marek.safar@gmail.com>
1104
1105         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
1106         value is set.
1107
1108 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
1109
1110         * ListView.cs: Added three missing 2.0 events and corresponding
1111         EventHandlers. Added the OwnerDraw property.
1112         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
1113
1114 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
1115
1116         * DrawListViewItemEventArgs.cs
1117         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
1118
1119 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
1120
1121         * TextControl.cs: Fixed typo in constructor
1122
1123 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
1124
1125         * Application.cs: Create a shortcut path so that currently selected
1126         MenuStrips can intercept keyboard events without having focus.
1127         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
1128         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
1129         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
1130         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
1131         generate WM_SYSCOMMAND message in X11 for other platforms.
1132         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
1133         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
1134         * ToolStripSplitButton.cs: Add DefaultItem property.
1135         
1136 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
1137
1138         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
1139         fixes some menu draw problem on Windows with border diferent from default
1140         it also fixes #81403.
1141
1142 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1143
1144         * Form.cs: Refactor WndProc into separate methods, just like Control is
1145           doing it.
1146
1147 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1148
1149         * Control.cs: set_Text: move the call to the driver into a seperate
1150           virtual method so that Form can override it.
1151         * MaskedTextBox.cs: Corcompare fixes.
1152         * Form.cs: Override UpdateWindowText and only update the styles if the
1153           form has been shown (fixes #81405).
1154
1155 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
1156
1157         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
1158         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
1159         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
1160         the form lost focus or another control was clicked.
1161
1162 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
1163
1164         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
1165         fixed.
1166
1167 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1168
1169         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
1170           DrawListViewItemEventHandler.cs,
1171           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
1172           Added.
1173         * X11Structs.cs: More ToString implementation.
1174
1175 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
1176
1177         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
1178         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
1179
1180 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1181
1182         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
1183           handle.
1184         * FormCollection.cs: Don't add a form if it's already in the
1185           collection.
1186         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
1187           according to behaviour and MSDN. The ownerWin32 is the active
1188           window at the moment when we call ShowDialog, not the context's
1189           main form (the context's main form may open another form that opens
1190           a form with ShowDialog, the win32 owner is the second form). Add
1191           and remove forms to the Application.OpenForms in other places to
1192           better match MS behaviour. Add an IsActive property that raises
1193           On(de)Activated only if the active state has changed (we were
1194           raising OnDeactivated before OnActivated while creating forms).
1195         * Application.cs: Refactor Enabling/Disabling of windows for modal
1196           dialog loops out to separate methods, and restore the thread
1197           context when we quit the method. Fixes #81407.
1198
1199 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1200
1201         * ListView.cs: In ItemControl.HandleClicks, also fire 
1202         2.0 MouseClick or MouseDoubleClick events on the parent,
1203         not only the Click/DoubleClick events.
1204
1205 2007-04-24  Andreia Gaita  <avidigal@novell.com>
1206
1207         * TableLayoutSettings.cs: 
1208         - Added a GetControls method and a support structure to help the 
1209         TypeConverter to enumerate the controls for     serialization. 
1210         - Added a new serialization constructor. 
1211         - Added a isSerialized flag initialized to true on the 
1212         serialization constructor so that the TableLayoutPanel.LayoutSettings 
1213         setter does not throw the designed NotSupportedOperation exception
1214         when the object is built through deserialization.
1215         - Implemented GetObjectData
1216         
1217         * TableLayoutPanel.cs: Added check on LayoutSettings.
1218
1219 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1220
1221         * ListView.cs: Report Click and DoubleClick events to the parent
1222         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
1223         from breaking the click count state when using dialog forms (Control
1224         reports the clicks in a similar fashion). In the previous behaviour
1225         the last WM_LBUTTONUP message in a  double click was sent to the
1226         ListView's form, instead of the ListView, which was breaking the click
1227         count for it. Fixes #80387.
1228
1229 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
1230
1231         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
1232
1233 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
1234
1235         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
1236         us from created dropdowns for menu items that do not have subitems.
1237         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
1238         Check HasDropDownItems before calling DropDown so a dropdown will not be
1239         created if it isn't needed.
1240
1241 2007-04-24  Jackson Harper  <jackson@ximian.com>
1242
1243         * TreeView.cs: Set the first node to the selected node when we get
1244         focus if there is no selected node.
1245
1246 2007-04-24  Andreia Gaita  <avidigal@novell.com>
1247
1248         * MimeIcon.cs: remove using blocks so that image streams are
1249         not disposed of. Fixes #80151
1250
1251 2007-04-24  Jackson Harper  <jackson@ximian.com>
1252
1253         * TextBoxBase.cs: Fixup the height of textboxes when the control
1254         is created.
1255
1256 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
1257
1258         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
1259         for each ToolStripItem when the parent's RightToLeftChanged is called.
1260
1261 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1262
1263         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
1264           Fixes #80163.
1265         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
1266           property, so that the setter can be overriden too.
1267         * TextBox.cs: Change GetContextMenuInternal() to use
1268           ContextMenuInternal.
1269
1270 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1271
1272         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1273           #81406.
1274
1275 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1276
1277         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1278           #81406.
1279
1280 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1281
1282         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
1283           avoid duplicate work. Mostily skeleton code, it's not working at
1284           all yet.
1285
1286 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
1287
1288         * NotifyIcon.cs : stub for MouseClick event
1289         * Application.cs: stub for SetUnhandledExceptionMode
1290
1291 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
1292
1293         * BindingNavigator.cs : Initial (partial) implementation
1294
1295 2007-04-23  Jackson Harper  <jackson@ximian.com>
1296
1297         * TreeView.cs: Do not create the treeview's handle when setting
1298         the scroll position.
1299         - ExpandAll needs to compute the scrollbars so it knows which
1300         position to set the bar too.
1301         * TreeNode.cs: 
1302         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
1303
1304 2007-04-23  Jackson Harper  <jackson@ximian.com>
1305
1306         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
1307         key. Fixes #81408.
1308
1309 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
1310
1311         * ToolStripItem.cs: Make GetImageSize internal.
1312         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
1313         need to draw an item.  Fixes a reported issue where images on menus
1314         that were not 16x16 were drawing incorrectly.
1315
1316 2007-04-21  Miguel de Icaza  <miguel@novell.com>
1317
1318         * Padding.cs: Use the converter, fixes the resgen2 issue with
1319         XMLNotePad. 
1320
1321 2007-04-21  Jackson Harper  <jackson@ximian.com>
1322
1323         * TreeView.cs: Dont try to unhighlight the selected node if there
1324         isn't a selected node.
1325
1326 2007-04-21  Jackson Harper  <jackson@ximian.com>
1327
1328         * UpDownBase.cs:
1329         * TextBoxBase.cs:
1330         * ListView.cs:
1331         * ListBox.cs:
1332         * TreeView.cs: Use the InternalBorderStyle property to set the
1333         initial border style, this forces the client rectangle to be sized
1334         correctly.
1335
1336 2007-04-20  Jackson Harper  <jackson@ximian.com>
1337
1338         * TreeView.cs: Simplify scrolling to the last node after expanding
1339         all.
1340         - Fix some off by ones with setting the bottom.
1341
1342 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1343
1344         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
1345         that.  We were incorrectly doing it the other way around.  Also,
1346         update ClientSize if we change the BorderStyle before the control
1347         is created.
1348
1349 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1350
1351         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1352         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1353         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
1354         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1355         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1356         Caption to CaptionHeight.
1357         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
1358         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
1359         and FixedFrameBorderSize to return value from current XplatUI driver.
1360         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
1361         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
1362         and FixedFrameBorderSize using win32 API. Renamed Caption to
1363         CaptionHeight.
1364         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
1365         * SystemInformation.cs: Fixed typo in BorderSize.
1366
1367 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1368
1369         * XplatUI.cs: Added MenuAccessKeysUnderlined.
1370         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
1371         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
1372         returning false.
1373         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
1374         value from XplatUI driver.
1375         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
1376         SystemParametersInfo.
1377         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
1378         override.
1379         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
1380         returning false.
1381
1382 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1383
1384         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
1385
1386 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1387
1388         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
1389
1390 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1391
1392         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
1393         MenuStrips that contain ToolStripSeparators.
1394
1395 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1396
1397         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
1398           DefineStdCursorBitmap.
1399         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
1400           has been created off a standard cursor. This is used to get a
1401           bitmap of the standard cursor when Draw or DrawStretched is called
1402           in order to draw the cursor.
1403         * X11Structs.cs: Added XcursorImage and XcursorImages.
1404         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
1405           DefineStdCursorBitmap.
1406         * Cursors.cs: Update all relevant creations of Cursor to use the new
1407           internal constructor.
1408
1409 2007-04-19  Jackson Harper  <jackson@ximian.com>
1410
1411         * TextBox.cs: Move the has_been_focused into the base control, so
1412         some of the text adding methods can manipulate it (probably time
1413         for a better name for this flag too).
1414         - Call a new version of selectall that doesn't scroll
1415         * TextBoxBase.cs: When we append text, if the document is empty,
1416         don't scroll.  If the document has text already, we scroll to the
1417         end of the appended text.
1418         - When the text is changed, we reset the has_been_focused, so the
1419         next time the control gets focused, all the text is selected.
1420
1421 2007-04-19  Jackson Harper  <jackson@ximian.com>
1422
1423         * TextControl.cs: Move the margins to the document, add a method
1424         so the margin sizes can be updated.
1425         * TextBoxBase.cs: When the border style is changed, update the
1426         border sizes.
1427
1428 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
1429
1430         * Control.cs: Respect DefaultPadding.
1431         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
1432         padding into account.
1433         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
1434
1435 2007-04-19  Jackson Harper  <jackson@ximian.com>
1436
1437         * TextControl.cs: Oops, we need to use the ClientRect not the
1438         bounds here.
1439
1440 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1441
1442         * ListView.cs: In ItemControl.ItemsMouseDown, take into
1443         account the double clicks when CheckBoxes are used and
1444         the pointer is inside the checkbox. Fixes part of #81191.
1445
1446 2007-04-18  Jackson Harper  <jackson@ximian.com>
1447
1448         * TextControl.cs: Pressing the end key shouldn't move the caret
1449         past the line ending.
1450         * TextBoxBase.cs: We can still delete if we are in the line
1451         ending and the combine will just kill the existing line ending.
1452
1453 2007-04-18  Jackson Harper  <jackson@ximian.com>
1454
1455         * TextControl.cs: We can't move lines, then invalidate their
1456         bounds, we need to get the old bounds and combine that with the
1457         new bounds.
1458         * TextBoxBase.cs: Before combining two lines for a delete, we need
1459         to invalidate the area of the old line, since that will be moved
1460         in the combine operation.
1461
1462 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
1463
1464         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
1465         with transparent background. Fixes #80482.
1466
1467 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
1468
1469         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
1470         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
1471         [Fixes bug #81391]
1472
1473 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1474
1475         * CreateParams.cs: Add a couple of helper methods and do a less string
1476           concatenation in ToString.
1477         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
1478           overload that takes a Control parameter, since this method may be
1479           called before a control is assigned to the hwnd (from
1480           CreateWindow), and update CreateWindow to use the new overload. In
1481           GetMenuOrigin subtract the title bar from the y position if the
1482           form has a window manager (since we're painting it and not X).
1483         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
1484           CreateParams to calculate the origin (since border sizes may vary).
1485           In ScreenToMenu only subtract the title height if we actually have
1486           a title.
1487         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
1488           mdi children never have menus of themselves.
1489         * InternalWindowManager.cs: Implement menu handling like form does.
1490           Added GetMenuOrigin to calculate the menu origin, can't use the
1491           CreateParams from the form like normally since it's lying.
1492         * Hwnd.cs: Implement GetBorderSize better (in the sense more
1493           windows-like) and add Inflate and comparison operators to the
1494           Borders type. When calculating MenuOrigin and it's a form with a
1495           window manager, use the window manager to calculate it.
1496
1497 2007-04-17  Chris Toshok  <toshok@ximian.com>
1498
1499         * Control.cs (CreateControl): turns out in 2.0 we don't need this
1500         OnBindingContextChanged thing here.  It's only generated from
1501         ContainerControl.OnCreateControl.  Fixes a newly written unit test
1502         - BindingTest.BindingContextChangedTest4.
1503         
1504 2007-04-17  Jackson Harper  <jackson@ximian.com>
1505
1506         * ScrollBar.cs: When setting values, make sure the current
1507         position stays within the new values range.
1508
1509 2007-04-17  Chris Toshok  <toshok@ximian.com>
1510
1511         * Control.cs (CreateControl): talk about a bizarre corner case.
1512         Don't emit OnBindingContextChanged here if we're a parentless
1513         control (i.e. if we're a form.).  Fixes
1514         BindingTest.BindingContextChangedTest2.
1515
1516 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1517
1518         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
1519         from win32. Fixes #81255.
1520
1521 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1522
1523         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
1524         already present in CalculateButtonTextAndImageLayout.
1525
1526 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1527
1528         * XplatUIX11.cs: When setting min/max size for a window we need to
1529           translate the coordinates to x coordinates. Create an overload of
1530           SetWindowMinMax that takes a CreateParams handling this, and change
1531           SetWMStyles to call this function (can't use Control.FromHandle in
1532           the SetWindowMinMax to get the control/CreateParams from the handle
1533           because the handle might not have been assigned to the control
1534           yet). Fixes #81371.
1535
1536 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1537
1538         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
1539         if StateImageList is non-null and it has less than two items (match MS
1540         behaviour). Also, in HandleNavKeys handle the Space key, calling
1541         the new ToggleItemsCheckState method, which tries to change the
1542         checked state of the selected items. Fixes part of #81191.
1543
1544 2007-04-16  Jackson Harper  <jackson@ximian.com>
1545
1546         * RichTextBox.cs: namespace cleanup.
1547
1548 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1549
1550         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
1551
1552 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1553
1554         [Fixes #79447]
1555         * Control.cs: Call invalidate in set_Region.
1556
1557         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
1558         it dont works here.
1559
1560 2007-04-16  Jackson Harper  <jackson@ximian.com>
1561
1562         * TextBoxBase.cs: When enter is pressed, we need to update all
1563         lines below the current.
1564
1565 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
1566
1567         * MdiClient.cs: Implement implicit menu merging for MDI
1568         children.  When a child form is active, if it has a menustrip
1569         and the parent form has a MainMenuStrip, automatically merge
1570         the menus.
1571
1572 2007-04-15  Andreia Gaita  <avidigal@novell.com>
1573
1574         * TabControl.cs: Refactored sizing methods to not repeat
1575         code all over the place. Tab bounds are now calculated
1576         as if alignment is top and single line, and only when 
1577         setting the bounds are the positions adjusted according
1578         to alignment. Replaced hardcoded positions, spacings and
1579         paddings by getting the values the ThemeEngine. 
1580         Fixes #79619.
1581         
1582         * Theme.cs: Change TabControl properties and methods so
1583         that all start with TabControl*. Added more properties
1584         to help remove hardcoded values on tabcontrol.
1585         Add CPDrawBorder3D declaration so the Theming classes
1586         can access it.
1587         
1588         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
1589
1590         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
1591         on the Theming namespace, and call the appropriate methods here.
1592         Change CPDrawBorder3D to public.
1593
1594 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1595
1596         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
1597         the control after firing the OnMouseUp event, instead of sending
1598         the message before the mentioned event. This is so we can match the
1599         MS behaviour. Fixes part of #80385.
1600
1601 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1602
1603         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
1604         RightToLeft property.
1605
1606 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1607
1608         * ToolStrip.cs: Add properties and internal methods to support merging.
1609         * ToolStripItem.cs: Add MergeAction and MergeIndex.
1610         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
1611         not trigger reparenting or layouts.
1612         * ToolStripManager.cs: Add Merge and RevertMerge methods.
1613         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
1614         is hosting the overflow menu.
1615
1616 2007-04-13  Jackson Harper  <jackson@ximian.com>
1617
1618         * TextControl.cs: Set the line ending correctly for the first
1619         inserted line.
1620
1621 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
1622
1623         * Theme.cs: Update GetMethod to get the new definition for 
1624         KnownColors.Update (and fix theme color updates).
1625
1626 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
1627
1628         * MessageBox.cs: Fix some test and button position.
1629
1630 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1631
1632         * Form.cs: Consider the implicit controls in
1633         GetRealChildAtPoint. We need it since this method
1634         is called on Form when handling the some messages in
1635         WndProc, and need to consider those implicit ones too.
1636         Fixes #80385.
1637
1638 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
1639
1640         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
1641         if there are no ShortcutKeys set.
1642         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
1643         set, use it when painting.
1644
1645 2007-04-12  Jackson Harper  <jackson@ximian.com>
1646
1647         * TextControl.cs: Fix some off-by-one issues in line duplication
1648         and insertion in the undo manager. Also, overwrite the first tag
1649         of a line on insert, if it is just a zero lengthed tag. This
1650         prevents us from getting an extra stranded tag at the beginning of
1651         the first line.
1652
1653 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
1654
1655         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
1656         to calculated proper size including when handle was not created yet.
1657
1658 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1659
1660         * MdiWindowManager.cs: When moving a form, allow the form to be moved
1661           when the mouse is outside of it's parent's client rectangle. Fixes
1662           #79982 (take 3, part 2).
1663
1664 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1665
1666         * X11Structs.cs: Add a few ToString() overrides.
1667         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
1668           the window location in a window-manager independent way. Reworked
1669           FrameExtents, it now actually works. Reworked AddConfigureNotify
1670           and ReparentNotify handling to use GetTopLevelWindowLocation
1671           instead of the earlier, more hacky solution. Reworked SetWMStyles,
1672           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
1673           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
1674           for all other windows (fixes #81281 part 1), a toolwindow is hidden
1675           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
1676           and generally refactored to do as few calculations as possible
1677           inside the lock.
1678
1679 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
1680
1681         * Theme.cs: Change "reflective-contract" between MWF and SD to 
1682         minimize # of calls, avoid Color serialization and avoid updating 
1683         every "known colors" each time a single one is updated.
1684
1685 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1686
1687         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
1688         when not readonly and the text is explicitly set. Code style updates.
1689         * DataGridTableStyle.cs: Removed extra line.
1690         * DataGrid.cs: Code style updates. Removed extra whitespace.
1691         * DataGridColumnStyle.cs: Code style updates. Removed extra 
1692         whitespace.
1693
1694 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1695
1696         * XplatUIX11.cs: Added comment that "fixes" #80021.
1697
1698 2007-04-09  Jackson Harper  <jackson@ximian.com>
1699
1700         * TextControl.cs: We don't need this -1 on the line count anymore.
1701
1702 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1703
1704         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
1705         entered value to underlying type, and convert it back to a string to
1706         apply formatting. Modified GetFormattedValue to use TypeConverter
1707         if available.
1708
1709 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
1710
1711         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
1712         Use SubItems property when we want to ensure there's at least one
1713         subitem. Modified SubItems property to ensure there's always at least
1714         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
1715         the NRE's reported by MS.
1716
1717 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
1718
1719         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
1720         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
1721         Spaces to tabs. Removed extra tabs.
1722
1723 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
1724
1725         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1726         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
1727
1728 2007-04-06  Jackson Harper  <jackson@ximian.com>
1729
1730         * TextBoxBase.cs: When a delete removes a line, recalculate all
1731         lines below that line (they need to get offsets setup correctly)
1732         and invalidate.
1733
1734 2007-04-05  Jackson Harper  <jackson@ximian.com>
1735
1736         * TextControl.cs: We need to invalidate across the width of the
1737         document when we are invalidating multiple lines.
1738         * TextBoxBase.cs: Don't delete into the line ending.
1739
1740 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1741
1742         * ListView.cs: Restore the check for the MouseHover event
1743         in ListView. It looks like the ListView fires more than one MouseHover
1744         event when HoverSelection is true  _only_ in weird-corner scenarios, but
1745         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
1746         event.
1747
1748 2007-04-05  Mike Kestner  <mkestner@novell.com>
1749
1750         * ListView.cs : raise MouseDown before updating selection.
1751         [Fixes #80373 tab 1&3]
1752
1753 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1754
1755         * ToolStripRenderer.cs: Add static method to mirror image.
1756         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
1757         and RightToLeftAutoMirrorImage.
1758         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
1759
1760 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1761
1762         * ToolStripSplitStackLayout.cs: Support Alignment property.
1763         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
1764
1765 2007-04-05  Jackson Harper  <jackson@ximian.com>
1766
1767         * TextControl.cs: Move around the line endings when crossing line
1768         boundaries.
1769         - When combining lines, strip the ending text off the first line.
1770
1771 2007-04-05  Jackson Harper  <jackson@ximian.com>
1772
1773         * TextControl.cs:
1774         * TextBoxBase.cs: Try to never move the cursor into the line
1775         ending.
1776         
1777 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1778
1779         * ToolStripItem.cs: Make sure we aren't firing mouse events when
1780         the item is disabled.  Also add a few missing methods.
1781
1782 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1783
1784         * ListView.cs: We don't need the MouseEnter/MouseLeave check
1785         to fire just one MouseHover event when HoverSelection is true, since
1786         .Net does fire more than one MouseHover event in that scenario. Also,
1787         fix the selection in HoverSelection, by invoking UpdateMultiSelect
1788         if MultiSelect is true, instead of only setting ListViewItem.Selected.
1789         Finally, we need to reset the Hover logic in MouseMove, even when we
1790         don't have a selected item.
1791
1792 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1793
1794         * ToolStrip.cs: Add several missing methods, properties, and events.
1795
1796 2007-04-04  Chris Toshok  <toshok@ximian.com>
1797
1798         * DataGridTextBoxColumn.cs: set the bounds of the text box to
1799         (0,0,0,0) in Commit, as MS does.
1800
1801         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
1802         make sure we set CurrentRow on a row header click *before* calling
1803         Select.  This moves the current cell (and the textbox) to the new
1804         row.  The call to Select then hides the textbox, giving us the
1805         correct behavior.  Fixes #80362.
1806
1807         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
1808         (ListChangedHandler): reorder the position/current changed events,
1809         and call UpdateIsBinding in the ItemAdded case.
1810
1811         * GridColumnStylesCollection.cs: add some columns events, one of
1812         which raises the CollectionChanged event.
1813
1814 2007-04-04  Jackson Harper  <jackson@ximian.com>
1815
1816         * TextControl.cs: When we delete multiple selection lines
1817         invalidate the selection area, don't need to do that for single
1818         lines because the final update view will handle it.
1819
1820 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1821
1822         * Control.cs: When we CreateControl, we need to also create all of the
1823         control's children.  The child's OnLoad must also fire before the parent's
1824         OnLoad.  Fixes the toolbox size in PDN.
1825
1826 2007-04-04  Jackson Harper  <jackson@ximian.com>
1827
1828         * TextBoxBase.cs: When the user presses enter, insert a line
1829         ending into the text. (Maybe this would be a good spot for
1830         Environment.NewLine).
1831         * TextControl.cs: Remove undo manager hack, line endings get
1832         inserted properly now.
1833         
1834 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1835
1836         * MenuAPI.cs: 
1837         - Remove unneeded parameters in UpdateCursor.
1838         - Fix UpdateCursor to check if menu is active.
1839         - Call UpdateCursor when menu deactivate my click.
1840         [Fixes remaining issues from #80410]
1841
1842 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1843
1844         * Control.cs: GetRealChildAtPoint method added, it make an
1845         recursive child control search for the point. 
1846
1847         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
1848         menu.
1849
1850         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
1851
1852 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1853
1854         * Form.cs: Fix mouse position when send back mouse event after closes
1855         menu.
1856
1857 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1858
1859         * Form.cs: Simplify the BUTTONDOWN for active tracker.
1860
1861 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1862
1863         * Control.cs: Fix an issue where if a user resized a control inside
1864         a sizing method like OnResize, we would overwrite their explicit
1865         value.  Also, only call DefaultSize once in the constructor instead
1866         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
1867         nothing actually changed.
1868
1869 2007-04-03  Jackson Harper  <jackson@ximian.com>
1870
1871         * TextControl.cs: Don't attempt to copy text for lines with no
1872         text in them (technically this shouldn't happen, but we aren't
1873         always inserting line endings when we should be).
1874
1875 2007-04-03  Jackson Harper  <jackson@ximian.com>
1876
1877         * TextBoxBase.cs: Calculate the scrollbars before calculating the
1878         document, because this sets some of the document size properties
1879         that are needed.
1880
1881 2007-04-03  Jackson Harper  <jackson@ximian.com>
1882
1883         * TextBoxBase.cs: We need to calculate maximums even if this is
1884         not a multiline control, because the maxs are used for scrolling.
1885         - Display the caret after doing a page up/down, we need to
1886         manually display it because a proper CaretMoved event isn't
1887         triggered (this is because of the way the math is done to
1888         determine how far to scroll).
1889
1890 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1891
1892         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
1893         (ToolBar was relying on SetBoundsCore to default the values sent 
1894         base off of BoundsSpecified.)
1895
1896 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1897
1898         * DateTimePicker.cs: Change Text so that when a null value or empty
1899           string is assigned to the test we always raise ValueChanged and
1900           TextChanged (earlier implementation would only raise ValueChanged
1901           if the current date value was different from DateTime.Now).
1902
1903 2007-04-03  Andreia Gaita <avidigal@novell.com> 
1904
1905         * ButtonBase: Call update after invalidation, fixes #80194
1906
1907 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1908
1909         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
1910           #79335.
1911
1912 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1913
1914         * XplatUIX11.cs: SetWMStyles: If the control is a form with
1915           FormBorderStyle = None, don't give the window any decorations.
1916           Fixes #81276.
1917
1918 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1919
1920         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1921         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
1922           to check for is a mix of several styles (such as WS_CAPTION for
1923           instance).
1924         * Control.cs: Don't paint an area bigger than the client area when
1925           painting the background colour. Add an internal GetCreateParams.
1926           Update calls to XplatUI.CalculateWindowRect due to API change.
1927         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
1928           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
1929           the size if it hasn't been handled by any windows. When creating
1930           and moving windows, X wants the location of the entire window, but
1931           the size of the client window, so add
1932           TranslateClientRectangleToXClientRectangle,
1933           TranslateWindowSizeToXWindowSIze and
1934           TranslatedXWindowSizeToWindowSize to cope with this, and call them
1935           before every window creation and move. Update CalculateWIndowRect
1936           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
1937           In AddConfigureNotify don't do anything if the hwnd is a zombie
1938           (fixes the BadWindow we were getting while running the tests),
1939           always calculate the offsets when it's a parentless window, not
1940           only when reparented, and translate the window size, since we're
1941           getting the client size of the whole window, excluding entire
1942           window.
1943         * Theme.cs: Added BorderSizableSize.
1944         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1945           anymore. Update calls to XplatUI.CalculateWindowRect due to API
1946           chang
1947         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
1948           change. Fake the window styles here instead of in XplatUIWin32 so
1949           that all back-ends get the same window styles (and it's Form that's
1950           deciding when to use wm, not the Win32 backend anyways)
1951         * Hwnd.cs: Completely reworked GetWindowRectangle and
1952           GetClientRectangle - they are now passed a CreateParams and they
1953           only use Style and ExStyle to determine the rectangles (they should
1954           now work just like Win32AdjustWindowRectEx - though quite a few
1955           special cases are probably missing). They should also be 100%
1956           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
1957           == rect), and all numbers (borders, menu sizes) are taken from the
1958           current theme. Added a GetBorders helper function that will return
1959           the borders for any given CreateParams (including captions and
1960           menus), and GetBorderSize that returns the given border size only.
1961         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1962           Hwnd.GetClientRectangle.
1963
1964 2007-04-02  Chris Toshok  <toshok@ximian.com>
1965
1966         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
1967         logic between the values we present to the user and the values
1968         which are stored in the column's property.  Also, don't call
1969         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
1970
1971 2007-04-02  Jackson Harper  <jackson@ximian.com>
1972
1973         * TextBoxBase.cs: Scroll faster!
1974
1975 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1976
1977         * StatusStrip.cs: Layout fixes for PDN.
1978         * ToolStrip.cs: Set item's available to true, and placement to main when
1979         added.
1980         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
1981         changing in setter before doing any work, add InternalVisible.
1982         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
1983         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1984         infinite loop.
1985
1986 2007-04-02  Jackson Harper  <jackson@ximian.com>
1987
1988         * TextBox.cs: LBUTTON does not make the textbox select all of it's
1989         text on focus.
1990
1991 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1992
1993         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
1994           Makes ToolStripComboBoxes show up again.
1995
1996 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1997
1998         * ListView.cs: Add a hover_pending field in ListView
1999         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
2000         cycle (we are resetting the MouseHover logic in XplatUI
2001         to handle HoverSelection). Fixes #80429.
2002
2003 2007-04-02  Jackson Harper  <jackson@ximian.com>
2004
2005         * TextControl.cs: Make sure the attributes get set on the last
2006         tag.
2007         - Still have to do the end tag if we have stepped all the ways to
2008         the end.
2009
2010 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
2011
2012         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
2013         on an internal libgdiplus call when the information is already 
2014         available via the public API.
2015
2016 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2017
2018         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
2019           control is removed from a control collecftion.
2020         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
2021           Fixes FormPropertyTest (failed on rare occasions).
2022         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
2023           of Win32SetParent (when changing from no parent to a parent it
2024           might add the new parent's location in screen coordinates to this
2025           window's location).
2026         * Form.cs: Rework ChangingParent once again, now the handle is
2027           recreated whenever a FormWindowManager is added or removed (that is
2028           whenever a normal form is parented or abandoned). Also change
2029           CreateParams so that all non-toplevel windows always get the
2030           specified sice (StartupPosition is never considered for
2031           non-TopLevel forms).
2032         * ContainerControl.cs: Add ChildControlRemoved, the container control
2033           needs to be notified when a control is removed from it's
2034           collection, in the case the removed control is the active control.
2035
2036 2007-04-02  Jackson Harper  <jackson@ximian.com>
2037
2038         * RichTextBox.cs: Use the new methods for setting the font and
2039         color, these methods set the specified attribute without
2040         overriding the other attributes.
2041
2042 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
2043
2044         * ToolStripPanel.cs: Fixes for better layouts in PDN.
2045
2046 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
2047
2048         * TextBox.cs: Added internal ChangeBackColor method to special-case
2049         Color.Empty. Added check for invalid ScrollBars value.
2050         * TextBoxBase.cs: Added internal ChangeBackColor method.
2051         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
2052         internal ChangeBackColor method to special-case Color.Empty. Added
2053         check for invalid ScrollBars value.
2054
2055 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
2056
2057         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
2058
2059 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
2060
2061         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
2062         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
2063         [Based on submitted patch from Olivier Duff.]
2064
2065 2007-03-30  Jackson Harper  <jackson@ximian.com>
2066
2067         * TextBox.cs: Only select all on initial focus if the user has not
2068         specified a selection area.
2069
2070 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
2071
2072         * UserControl.cs: Override CreateParams.
2073
2074 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2075
2076         [ Fixes #80995 ]
2077
2078         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
2079         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
2080           check for is a mix of several styles (such as WS_CAPTION for instance).
2081         * Control.cs: Don't paint an area bigger than the client area when painting
2082           the background colour. Add an internal GetCreateParams. Update calls to
2083           XplatUI.CalculateWindowRect due to API change.
2084         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
2085           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
2086           hasn't been handled by any windows. When creating and moving windows, X
2087           wants the location of the entire window, but the size of the client
2088           window, so add TranslateClientRectangleToXClientRectangle,
2089           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
2090           to cope with this, and call them before every window creation and move.
2091           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
2092           removing DeriveStyles). In AddConfigureNotify don't do anything if the
2093           hwnd is a zombie (fixes the BadWindow we were getting while running the
2094           tests), always calculate the offsets when it's a parentless window, not
2095           only when reparented, and translate the window size, since we're getting
2096           the client size of the whole window, excluding entire window.
2097         * Theme.cs: Added BorderSizableSize.
2098         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
2099           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
2100         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
2101           Fake the window styles here instead of in XplatUIWin32 so that all
2102           back-ends get the same window styles (and it's Form that's deciding when
2103           to use wm, not the Win32 backend anyways)
2104         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
2105           they are now passed a CreateParams and they only use Style and ExStyle
2106           to determine the rectangles (they should now work just like
2107           Win32AdjustWindowRectEx - though quite a few special cases are probably
2108           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
2109           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
2110           sizes) are taken from the current theme. Added a GetBorders helper
2111           function that will return the borders for any given CreateParams
2112           (including captions and menus), and GetBorderSize that returns the given
2113           border size only.
2114         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
2115           Hwnd.GetClientRectangle.
2116
2117 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2118
2119         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
2120           layout of the mdi children is handled by CreateParams. Fixes
2121           #79964,
2122
2123 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2124
2125         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
2126         processed.
2127
2128         * Form.cs: When active tracker mouse down is not processed, send event 
2129         back to control inside mouse position. [Fixes #81227]
2130
2131 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
2132
2133         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
2134         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
2135         stealing focus from the active form on Windows.  (Control will be made
2136         visible in ShowWindow.)
2137
2138 2007-03-29  Mike Kestner  <mkestner@novell.com>
2139
2140         * ImageList.cs : add internal Changed event.
2141         * ListView.cs : hook up to StateImageList.Changed to perform
2142         invalidations when the the state icon list changes. [Fixes #81191]
2143
2144 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
2145
2146         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
2147         to prevent tooltips from stealing focus from the active form on Windows.
2148
2149 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2150
2151         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
2152
2153         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
2154
2155 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2156
2157         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
2158         balloons.
2159
2160 2007-03-29  Jackson Harper  <jackson@ximian.com>
2161
2162         * TextControl.cs: When deleting text from non multiline textboxes,
2163         we need to update the entire document, because line offsets will
2164         be shifting.
2165
2166 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2167
2168         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
2169         added to theme, now we can create themes that uses diferent notify engines
2170         like notification-daemon from galago project or growl for Mac OS.
2171
2172 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
2173
2174         * NotifyIcon.cs: Prevent Balloon to show in task bar.
2175
2176 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
2177
2178         * XplatUIX11.cs: Prevent system to open more than one balloon.
2179
2180         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
2181         some compiler warning messages.
2182
2183 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
2184
2185         [Fixes #79149]
2186
2187         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
2188
2189         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
2190         implemented, this methods is used by NotifyIcon.BalloonWindow class.
2191
2192         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
2193         systems.
2194
2195 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2196
2197         * ListViewItem.cs: Forgot to make Invalidate internal.
2198
2199 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2200
2201         * ListView.cs: Add a InvalidateSelection method to
2202         invalidate methods which are currently selected, and call
2203         it when setting FullRowSelect and HideSelection, instead of
2204         calling Redraw.
2205
2206 2007-03-28  Chris Toshok  <toshok@ximian.com>
2207
2208         * XplatUIX11.cs (UnmapWindow): reindent this block.
2209
2210         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
2211         the selection_start if we're moving the selection (that is, not
2212         extending it). Fixes bug #80461.
2213
2214 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2215
2216         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
2217         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
2218         create private ControlCollection.
2219
2220 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2221
2222         * Control.cs: We need to call OnVisibleChanged for our implicit
2223         children as well as our normal children.  Fixes scrollbars in
2224         comboboxes not showing up.
2225
2226 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2227
2228         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
2229         the check for IsHandleCreated first.  The check in CreateHandle is not
2230         good enough because CreateHandle can be overriden, and the override 
2231         should not be called if the handle is already created.
2232
2233 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2234
2235         * ToolStrip.cs: Remove MonoTODO for tooltips.
2236         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
2237         * ToolStripContainer.cs: Add custom ControlCollection class.
2238         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
2239         * ToolStripDropDown.cs: Add some missing properties/methods.
2240         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
2241         * ToolStripItem.cs: Remove MonoTODO for tooltips.
2242         * ToolStripManager.cs: Add IsShortcutDefined.
2243         * ToolStripOverflow.cs: Override LayoutEngine.
2244         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
2245         * ToolStripSeparator.cs: Add ImageKey.
2246
2247 2007-03-28  Jackson Harper  <jackson@ximian.com>
2248
2249         * TextControl.cs: If a char delete removes a line ending, we need
2250         to update the ending style.
2251         - Make sure the line ending calcs get called.
2252
2253 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2254
2255         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
2256           it was making the new code not work. Fixed a typo in the new code
2257           as well. Fixes #79826.
2258
2259 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2260
2261         * XplatUIWin32.cs:
2262         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
2263         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
2264         - SystrayBalloon method implemented.
2265         [Add support for notifyicon balloon on win32, #79149]
2266
2267 2007-03-27  Mike Kestner  <mkestner@novell.com>
2268
2269         * ThemeWin32Classic.cs : update StateImageList selection to mirror
2270         the ms behavior when only one image is added to the list.
2271         [Fixes #81191]
2272
2273 2007-03-27  Jackson Harper  <jackson@ximian.com>
2274
2275         * TextControl.cs: Improvements to non multiline line ending
2276         drawing/measuing.
2277
2278 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2279
2280         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
2281
2282 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2283
2284         * NotifyIcon.cs: 
2285         - Balloon message handling added.
2286         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
2287
2288         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2289         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
2290         to SystrayBalloon to me like other Systray method, also a
2291         handle parameter added.
2292
2293 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2294
2295         * ListView.cs: Show scrollbars even when items.Count == 0
2296         but the columns Width is bigger than the ListView.Width.
2297         Also, when columns.Count == 0 set layout_wd and layout_ht
2298         to the ClientRectangle values, so we don't show any scrollbar
2299         in that case.
2300
2301 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2302
2303         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
2304
2305 2007-03-27  Jackson Harper  <jackson@ximian.com>
2306
2307         * RichTextBox.cs: The RTF library decodes the text properly for us
2308         now.
2309
2310 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2311
2312         * ListView.cs: Display HeaderControl even when columns.Count == 0.
2313         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
2314         ListView header (HeaderControl), instead of Control.BackColor.
2315
2316 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2317
2318         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
2319         Fixes tab control issues where controls would not show up because they
2320         never received their OnVisibleChanged call.
2321
2322 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2323
2324         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
2325         BalloonTipShown).
2326
2327 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2328
2329         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
2330         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
2331         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
2332         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
2333         the handle.  Fix WindowState by using the internal variable until we are 
2334         sure that we've been shown.
2335         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
2336         max or min.
2337         [Fixes bug #81198]
2338
2339 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2340
2341         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
2342           (at least borders). Fixes #79386 on Linux (with a small difference
2343           in behaviour: when trying to resize a caption-less window metacity
2344           shows the sysmenu. Resizing is still possible though).
2345         * XplatUIWin32.cs: When setting window styles send request an extra
2346           WM_NCCALCSIZE when it's a form without title (due to no text and no
2347           caption), since Win32 seems to calculate it wrong the first time we
2348           get the message, though the second time things work as they should.
2349         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
2350           newly reparented window might show up unparented. Update
2351           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
2352           there's no title text. Fixes #79386.
2353
2354 2007-03-27  Mike Kestner  <mkestner@novell.com>
2355
2356         * ListBox.cs : don't perform invalidations if the handle hasn't been
2357         created.  [Fixes #80753]
2358
2359 2007-03-27  Mike Kestner  <mkestner@novell.com>
2360
2361         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
2362         [Fixes #80428]
2363
2364 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2365
2366         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
2367         needed to implement Balloon.
2368
2369 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2370
2371         * ListViewItem.cs: In the constructors that take
2372         an array of strings, don't use ListViewSubItemCollection.AddRange
2373         method to add items, since we need to have a different behaviour (in
2374         the constructors we add an item for each null string, opposed to
2375         the behaviour of AddRange, which adds nothing).
2376
2377 2007-03-26  Andreia Gaita  <avidigal@novell.com>
2378
2379         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
2380
2381 2007-03-26  Jackson Harper  <jackson@ximian.com>
2382
2383         * TextControl.cs: Draw and measure line endings when in non
2384         multiline mode.
2385         - When searching the text, count the end of the last line as a
2386         word boundary.
2387
2388 2007-03-26  Jackson Harper  <jackson@ximian.com>
2389
2390         * RichTextBox.cs: The selection_start and selection_end don't
2391         really track the correct tags for the selection. So we'll manually
2392         compute the correct tag here.
2393
2394 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2395
2396         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
2397           and Continuous styles. Fixes #79469.
2398
2399 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2400
2401         * ToolStrip.cs: Implement Tooltips.
2402         * ToolStripItem.cs: Create internal method for determining tooltip.
2403
2404 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2405
2406         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
2407
2408 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2409
2410         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
2411         it prevents a problem thak keeps icon visible after application 
2412         closes on win32.
2413
2414 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2415
2416         * NotifyIcon.cs: Balloon properties and methods created.
2417
2418         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2419         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
2420
2421 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
2422
2423         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
2424
2425 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2426
2427         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
2428         parameter indicates which aspects were explicit/user-set.
2429         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
2430
2431 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2432
2433         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
2434         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
2435         SmallChange, and Value (2.0).
2436         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
2437
2438 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2439
2440         * ListView.cs: Always set item_control.Width in LayoutDetails
2441         if View is Details. Setting it later in CalculateScrollBars
2442         in a not-so-corner scenario (the sum of columns width is
2443         not bigger than the ListView width when handle is created, and then
2444         that sum gets bigger by increasing the width of the columns)
2445         causes a very weird recursion path (which shouldn't be happening,
2446         since header_control sets it in CalculateScrollBars too). This bug
2447         appeared after Chris' fixes for handle created issues, so probably
2448         it's related to some handle-creation time.
2449
2450 2007-03-23  Chris Toshok  <toshok@ximian.com>
2451
2452         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
2453         case where there's an add row, just so we don't end up in a case
2454         where it's not displayed (this happens when the row is partially
2455         obscured).  Fixes bug #79574.
2456
2457 2007-03-23  Jackson Harper  <jackson@ximian.com>
2458
2459         * TextControl.cs:
2460         * TextBoxBase.cs:
2461         * RichTextBox.cs: Preserve line endings in the lines text buffer,
2462         also added an enum that represents the line ending type. 
2463
2464 2007-03-23  Andreia Gaita  <avidigal@novell.com>
2465
2466         * NumericUpDown.cs: Fix logic so Text and Value properties are not
2467         messed with in every method call, but only from DownButton, 
2468         UpButton, UpdateEditText() and ValidateText. Fixes #80346
2469
2470 2007-03-23  Chris Toshok  <toshok@ximian.com>
2471
2472         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
2473         format objects if the format spec is "".  Fixes bug #80889.
2474
2475 2007-03-22  Miguel de Icaza  <miguel@novell.com>
2476
2477         * ToolStripPanel.cs (Join): added stubs to build PDN3
2478
2479         * Control.cs (AutoScrollOffset): Add.
2480
2481         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
2482         property, its only implemented for Win32, on X11 it defaults to
2483         some hardcoded value.
2484
2485         * ToolStripItem.cs (AllowDrop): Add property
2486
2487 2007-03-22  Mike Kestner  <mkestner@novell.com>
2488
2489         * ListView.cs : in FullRowSelect Details mode, only enable box
2490         selection if the user clicks over the "item" column outside of the
2491         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
2492
2493 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2494
2495         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
2496           handle is not created yet.
2497         * Form.cs: Select: Don't call CreateHandle if the handle is already
2498           created, avoids a stack overflow on Windows when we are recreating
2499           controls.
2500         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
2501           they are made visible, and override AfterTopMostControl to keep
2502           them on top when other controls are brought to front.
2503           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
2504           or force_*scroll_visible is true (old implementation always shows
2505           scrollbars when needed, no matter what auto_scroll was set to).
2506         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
2507           IsHandleCreated check.
2508
2509 2007-03-22  Andreia Gaita  <avidigal@novell.com>
2510
2511         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
2512         row or col separator.
2513         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
2514
2515 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2516
2517         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
2518
2519 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2520
2521         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
2522         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
2523         every time. Fixes #80410.
2524
2525 2007-03-22  Chris Toshok  <toshok@ximian.com>
2526
2527         * BindingSource.cs (AddNew): partially implement.
2528
2529         remove a couple of NotImplementedException's
2530         to get bug #81148 closed.
2531
2532 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2533
2534         [Fixes #80380]
2535         
2536         * Control.cs:
2537         - UpdateCursor method added to update the screen cursor.
2538         - GetAvailableCursor method added to return cursor for enabled tree,
2539         it searches for cursor on control and it's parent's for enabled control.
2540         - Call UpdateCursor method on setter of Cursor property.
2541         - On setter of Enabled call UpdateCursor when it is false, we need to
2542         change cursor to normal (or to this parent cursor) because cursor 
2543         setting theres no effect to disabled controls.
2544         - Some minor source changes to follow the coding style guidelines.
2545
2546         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
2547         controls.
2548
2549 2007-03-22  Chris Toshok  <toshok@ximian.com>
2550
2551         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
2552         generates.
2553
2554 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2555
2556         * XplatUIX11.cs: Implement default locations for forms.
2557         * Form.cs: Completely rework startup location for forms. Fixes #79964.
2558         * Hwnd.cs: Add previous_child_startup_location (to track the current
2559           startup location for any child forms of the current form) and
2560           previous_main_startup_location (to track the startup location for
2561           the current toplevel form).
2562
2563 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2564
2565         * Control.cs: Don't trigger a layout if an implicit control is added
2566         that isn't visible.  Also, don't notify the owner when an implicit control
2567         is added.  (Owners shouldn't even know about their implicit controls.)
2568
2569 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2570
2571         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
2572         to save some re-layouts.
2573
2574 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
2575
2576         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
2577         [Fixes #81203]
2578
2579 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2580
2581         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
2582         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
2583
2584 2007-03-21  Mike Kestner  <mkestner@novell.com>
2585
2586         * ListView.cs : disable selection update for non-left button clicks
2587         with mods and over selected items.  [Fixes #80524]
2588
2589 2007-03-20  Jackson Harper  <jackson@ximian.com>
2590
2591         * TextControl.cs:
2592         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
2593         \r\r\n, \n.
2594
2595 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2596
2597         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
2598           very probably a more complicated calculation there. Update the
2599           textbox' ForeColor and BackColor when the ComboBox' colors are
2600           changed. Change the border change in LayoutComboBox to only affect
2601           the textbox, not all the calculations there. Seems to fix most of
2602           #79436.
2603
2604 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2605
2606         * ComboBox.cs: Handle Home and End keys as well as all combinations of
2607           modifiers + navigation keys as input keys, enables advanced text
2608           selection in the combobox (like Shift+Left Arrow for instance).
2609           ComboTextBox now overrides Focused and returns whatever
2610           ComboBox.Focused returns, since it really should be focused
2611           whenever the ComboBox is. Fixes #80795. Also make the border around
2612           the text box one pixel bigger, as mentioned in #79436.
2613
2614 2007-03-20  Jackson Harper  <jackson@ximian.com>
2615
2616         * TreeView.cs: Don't offset the images, this was causing some
2617         artifacts when expanding/collapsing with images that were the
2618         exact height of the treenode.
2619
2620 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2621
2622         * TrackBar.cs: Query the theme for the correct value when the mouse
2623           moves and the thumb is pressed. 
2624         * Theme.cs: Added TrackBarValueFromMousePosition
2625         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
2626           implementation was updating the trackbar value when drawing, now
2627           the drawing methods only draw. Fixes #80900. Refactored the
2628           calculations out to TrackBarValueFromMousePosition and
2629           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
2630           according to the mouse position whenever it wants to. Changed the
2631           light coloured pen when drawing the thumb from ControlLight to
2632           ControlLightLight, because the ControlLight is the same colour as
2633           the background so the 3D effect is lost. 
2634
2635 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2636
2637         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
2638         defined. Fixes #80784.
2639
2640 2007-03-20  Marek Habersack  <mhabersack@novell.com>
2641
2642         * ContextMenuStrip.cs: align with the change introduced in
2643         revision 74664.
2644
2645 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2646
2647         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
2648         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
2649         in SetTopmost.
2650
2651 2007-03-19  Chris Toshok  <toshok@ximian.com>
2652
2653         * Control.cs (WmPaint): don't make use of the Handle property
2654         after an event is emitted, as the user could have closed the
2655         form/destroyed the control.  Store the Handle in a local variable
2656         and make use of that.  Fixes bug #80768.
2657
2658 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2659
2660         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
2661         behavior in X11 environments.
2662
2663 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2664
2665         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
2666         because on setter of topmost we dont call SetTopmost when handle is not
2667         created.
2668
2669 2007-03-20  Jackson Harper  <jackson@ximian.com>
2670
2671         * TextControl.cs: Need to use SelectionLength () not
2672         selection_length, since that var is reset to -1.
2673         - Draw the caret when we don't have focus.
2674         * TextBox.cs: The selectall actually doesn't occur until the first
2675         focus.
2676         * TextBoxBase.cs: Need to update the caret position after a
2677         selectall.
2678         
2679 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2680
2681         * ListView.cs: Enable scrolling when using Tile view.
2682
2683 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2684
2685         [Fixes #80902]
2686
2687         * XplatUIDriver.cs: Abstract SetOwner method created.
2688
2689         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
2690         must be implemented and was masked as todo.
2691
2692         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
2693         GWL_HWNDPARENT.
2694
2695         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
2696         cheking for null owner to remove transient. The SetTopmost will be change
2697         on a decond step.
2698
2699         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
2700         SetTopmost. Now owned forms will work properly in win32 and X11.
2701
2702 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2703
2704         * MdiWindowManager.cs: Update function name.
2705         * Form.cs: After closing a form MdiParent is always null.
2706         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
2707           better what it should do: necessary book-keeping when the form is
2708           closed, it should not close the form itself.
2709
2710 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2711
2712         * ListViewItem.cs: Fix back and fore color. The subitems only
2713         use their own colors if they are set, otherwise use the listview's
2714         colors. Don't set default colors on constructor for subitem.
2715         Fixes #79315.
2716
2717 2007-03-19  Mike Kestner  <mkestner@novell.com>
2718
2719         * ListView.cs : make box selection for Details views with 
2720         FullRowSelect conform to MS behavior when clicking in the "item" 
2721         column and clicking outside the defined columns.
2722         [Fixes case 5-6 of #80374]
2723
2724 2007-03-19  Chris Toshok  <toshok@ximian.com>
2725
2726         * ScrollableControl.cs: create the controls from within the ctor,
2727         but don't actually add them until our handle is created.  this
2728         fixes a NRE possibility jpobst found (if you override OnLayout in
2729         a subclass, it's called before your ctor).  Also, add a
2730         IsHandleCreated guard to UpdateSizeGripVisibility as well.
2731
2732 2007-03-19  Jackson Harper  <jackson@ximian.com>
2733
2734         * TextBox.cs: Reduce the amount of invalidation we do.
2735         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
2736         some of them are true by default on MS.
2737         - Add some functions to reduce the amount of invalidates we do.
2738         * TextControl.cs: Less invalidation.
2739
2740 2007-03-19  Chris Toshok  <toshok@ximian.com>
2741
2742         [ Fixes #81773, and *seems* to fix #81553 as well ]
2743
2744         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
2745         AccumulateDestroyedHandles.  We need to do it *after* we send
2746         WM_DESTROY, as the user's code can access Control.Handle in
2747         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
2748         move the WM_DESTROY/zombie handling to before the call to
2749         XDestroyWindow.  For some reason without this ordering
2750         FormTest.RecreateHandle hangs.  This ordering is semantically
2751         equivalent, however, as XDestroyWindow is async anyway.
2752
2753 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
2754
2755         * RichTextBox.cs: Reset backcolor_set after setting default.
2756
2757 2007-03-19  Chris Toshok  <toshok@ximian.com>
2758
2759         * ScrollableControl.cs: the scroll position should not effect the
2760         canvas size.  commit patch from georgegiolfan@yahoo.com, which
2761         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
2762         
2763 2007-03-19  Chris Toshok  <toshok@ximian.com>
2764
2765         * ScrollableControl.cs: clean this up a bit.  create the
2766         scrollbars in the ctor and just show/hide them as needed.  Also,
2767         make hscroll_visible/vscroll_visible internal to Recalculate, and
2768         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
2769         everywhere else.  This seems to fix the scrollbars appearing
2770         beneath the content for me (i have *no* idea why that is,
2771         however.)
2772
2773 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2774
2775         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
2776         some redundacy for stuff in Anchor and Dock that base will take care of.
2777         [Fixes #80762]
2778
2779 2007-03-19  Mike Kestner  <mkestner@novell.com>
2780
2781         * ListView.cs : make box selection for Details views without 
2782         FullRowSelect dependent on the text bounds, not item bounds.
2783         * ListViewItem.cs : add an internal property to obtain the TextBounds
2784         in Details view.  [Fixes case 1-4 of #80374]
2785
2786 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2787
2788         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
2789         we're < 2.0. #78448 && #80316
2790
2791 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2792
2793         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
2794         have the same style available as the previously selected one.  Also,
2795         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
2796
2797 2007-03-19  Jackson Harper  <jackson@ximian.com>
2798
2799         * TextControl.cs: Add an alignment property that all new lines
2800         will be given.
2801         - Make sure to use the align shift when calculating the line's X
2802         position.
2803         * TextBox.cs: Set the alignment on the document as well as on all
2804         the document lines.
2805
2806 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2807
2808         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
2809           throw if setting the parent of an mdichild that already has an
2810           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
2811           AssemblyProductAttribute in the assembly, use the type's namespace (as
2812           MS seems to do). CreateControl: don't create the handle if the control
2813           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
2814           create handle if the control is not a form. Change FocusInternal to
2815           virtual so that it can be overriden by Form.
2816         * TextBox.cs: Update call to FocusInternal.
2817         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
2818           form is not a toplevel form when it's a mdi child, so update is_toplevel
2819           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
2820           hasn't been created. Show (IWin32Window): Don't allow this overload for
2821           toplevel windows. CenterToParent/CenterToScreen/Select: create the
2822           handle as MS does. SetVisibleCore: if called on a MdiChild and the
2823           parent isn't visible yet, save the visibility and restore it when the
2824           parent is made visible.
2825         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
2826           methods, since the visibility of the scrollbars can be changed from
2827           several places, not only from AutoScroll.
2828           [Fixes #81179]
2829
2830 2007-03-19  Jackson Harper  <jackson@ximian.com>
2831
2832         * RichTextBox.cs: Enable shortcuts by default.
2833         * TextBoxBase.cs: Add conditional shortcuts.  
2834
2835 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2836
2837         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
2838
2839 2007-03-19  Chris Toshok  <toshok@ximian.com>
2840
2841         [ Fixes bug #80604]
2842         
2843         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
2844         swallow the message we're waiting on, instead of delivering it, as
2845         this is only used for the WM_SHOWWINDOW raised from
2846         MapWindow/UnmapWindow, and the message needs to be generated
2847         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
2848         before doing the Map/Unmap.  Also make sure that the Hwnd is still
2849         alive after the message has been handled.
2850
2851         *before* the window is shown.
2852
2853         * Control.cs (CreateControl): guard a few more things inside the
2854         if (!is_created) block, as we might end up being called again -
2855         yay .net.
2856         (WmShowWindow): call CreateControl if we're showing the control.
2857
2858 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2859
2860         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
2861           controls without a handle if they have any parent with a handle. In
2862           Dispose add a check whether the handle is created or not before
2863           calling BeginInvoke, this removes the need of the extra disposing
2864           parameter (which was bogus anyway since it didn't prevent the
2865           invoke from happening, it only skipped the check for an existing
2866           handle, meaning that the invoke would call on an inexistent
2867           handle).
2868
2869 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2870
2871         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
2872         appears in taskbar.
2873
2874 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2875
2876         * MessageBox.cs:
2877         - Fixed a problem that dont show help button for messages with 3 buttons.
2878         - Refactory button size and position calculations, now dont use fixed 
2879         values, also fixed button sizes (#80043) and form's border space.
2880         - AddButton method created, now all other AddButton methods call this one.
2881         - Some other source code cosmetic changes.
2882
2883 2007-03-18  Jackson Harper  <jackson@ximian.com>
2884
2885         * RichTextBox.cs: Don't do this all fonts must match check if
2886         there is only one char selected.
2887
2888 2007-03-18  Jackson Harper  <jackson@ximian.com>
2889
2890         * TreeView.cs: ScrollWindow works properly now, so we don't need
2891         to screw around with the scroll area.  This fixes some artifacts
2892         when expanding and collapsing.
2893
2894 2007-03-18  Jackson Harper  <jackson@ximian.com>
2895
2896         * TextBoxBase.cs: Allow updating the selection position when the
2897         cursor is outside the textarea, but we have a capture.
2898         * TextControl.cs: A special case for when the cursor is outside
2899         the bounds of the TB.
2900         
2901 2007-03-18  Jackson Harper  <jackson@ximian.com>
2902
2903         * TextBoxBase.cs: Remove image pasting code for now.  There is no
2904         way to get an image on the clipboard right now anyways.
2905         * TextControl.cs:
2906         * RichTextBox.cs: Use the new RTF Picture class for pictures.
2907
2908 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2909
2910         * MessageBox.cs:
2911         - Set window properties in constructor intead of on CreateParams.
2912         - Remove topmost from Window ExStyle.
2913         - Set ShowInTaskbar to false.
2914         - Set form border to FixedDialog.
2915         - Some cosmetic changes and remove unneeded comments.
2916         - It fixes itens 2,3 and 4 of bug #80043.
2917
2918 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
2919
2920         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
2921         none was explicitly set. Fixes part of bug #79949.
2922
2923 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2924
2925         * ToolStripComboBox.cs: Add AutoComplete*.
2926
2927 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2928
2929         * ToolStripComboBox.cs: Add FlatStyle.
2930
2931 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
2932
2933         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
2934         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
2935
2936 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2937
2938         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
2939           CheckBox.cs, RadioButton.cs, BindingSource.cs,
2940           DataGridColumnStyle.cs: Remove warnings.
2941
2942 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2943
2944         * Menu.cs: MergeMenu: Check menu argument for null before looping over
2945           it.
2946         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
2947           visibility of mdi child forms. FormSizeChangedHandler: update the
2948           maximized size if size has changed while maximized.
2949         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
2950           creating the handle.
2951         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
2952           avoid creating the handle if not created.
2953         * XplatUI.cs: Update debug output.
2954         * XplatUIStructs.cs: Added ToString's for a couple of structs.
2955
2956 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
2957
2958         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
2959         ProcessCmdKey().
2960         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
2961         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
2962         Implement keyboard shortcuts.
2963
2964 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2965
2966         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
2967         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
2968         ColorDialog and all derived classes.
2969
2970 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2971
2972         [ Fixes bug #79828 ]
2973
2974         * ToolBar.cs:
2975         - Rename ToolBarButtonInfor to ToolBarItem.
2976         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
2977         - Maintain an array of ToolBarItem, used instead of ToolBarButton
2978         collection to be able add same button more than one time on a toolbar.
2979         - Refactory all properties and methods to use ToolBarItem. 
2980
2981         * ToolBarButton.cs: 
2982         - Remove all propeties and methods that is now in ToolBarItem.
2983         - Rectangle propery now gets the rectangle from first ToolBarItem to
2984         mimic win32 behavior.
2985         - Size calculation and layout methods also removed.
2986
2987         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
2988         ToolBarItem instead of ToolBarButton to right drawing buttons when
2989         same button/separator was added more than one time to ToolBar.
2990
2991         * ThemeNice.cs: Same as above. 
2992
2993 2007-03-15  Andreia Gaita  <avidigal@novell.com>
2994
2995         * XplatUIX11.cs: Fire extra MouseMove events right after
2996         MouseDown and MouseUp, emulating win32's <censored> behaviour
2997         for apps that rely on it.
2998
2999 2007-03-15  Jackson Harper  <jackson@ximian.com>
3000
3001         * TextControl.cs:
3002         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
3003         it is drawn on the controls client window and there is no NC
3004         area.
3005         - Set the background color to gray on 2.0 when we are readonly.
3006
3007 2007-03-15  Chris Toshok  <toshok@ximian.com>
3008
3009         [ Fixes bug #81144 ]
3010         
3011         * XplatUIX11.cs: implement VirtualScreen independently of
3012         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
3013         property.
3014
3015 2007-03-15  Chris Toshok  <toshok@ximian.com>
3016
3017         * Hwnd.cs: add an internal field for the cached_window_state.
3018
3019         * XplatUIX11.cs: cache the window state, invalidating the cache
3020         (and thus re-querying the X server) only when we see an update to
3021         the _NET_WM_STATE property.
3022
3023 2007-03-15  Chris Toshok  <toshok@ximian.com>
3024
3025         * BindingSource.cs: get a lot of the unit tests working.
3026
3027 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
3028
3029         * Control.cs: Modify UpdateStyles to store distances when bounds >=
3030         0 instead of just bounds > 0.  [Fixes bug #80912]
3031
3032 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
3033
3034         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
3035         and methods.
3036
3037 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
3038         
3039         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
3040         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
3041         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
3042         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
3043
3044 2007-03-15  Chris Toshok  <toshok@ximian.com>
3045
3046         [ Fixes #81101 ]
3047         
3048         * Control.cs: add Ivan's fix for 81101, with a slight modification
3049         - you can set control.Target to null.
3050
3051 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
3052
3053         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
3054         HideDropDown, use Hide instead to prevent an NRE.
3055         [Fixes bug #81147]
3056
3057 2007-03-14  Jackson Harper  <jackson@ximian.com>
3058
3059         * TextBoxBase.cs: Mess with the creation stuff a little. We need
3060         to calculate the document before the handle is created, in some
3061         cases. (Actually just one case).
3062
3063 2007-03-14  Jackson Harper  <jackson@ximian.com>
3064
3065         * TextBoxBase.cs: Need to display the caret after letting the base
3066         wndproc handle the focus methods, because the caret display
3067         methods check the focus state.
3068         - Try to display the caret after updating it's position with SelectWord.
3069         - Don't need to do an immediate update on this recalc, since there
3070         will be an invalidate anyways.
3071
3072 2007-03-14  Jackson Harper  <jackson@ximian.com>
3073
3074         * TreeView.cs: Some workarounds so that we can match event order a
3075         little better.
3076
3077 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
3078
3079         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
3080         #80803. Avoid NullReferenceException when Control does not have
3081         parent. Fixed different blinkstyle issues. Only subscribe to Tick
3082         event a single time. Only draw error icon when control is created and
3083         visible. Fixes failing unit tests.
3084
3085 2007-03-14  Andreia Gaita  <avidigal@novell.com>
3086
3087         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
3088         Selecting events. Fire Leave and Enter events when changing tabs.
3089
3090 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
3091
3092         * TreeView.cs: Add TreeViewNodeSorter.
3093         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
3094
3095 2007-03-14  Chris Toshok  <toshok@ximian.com>
3096
3097         * Form.cs: go ahead and remove the RecreateHandles that jpobst
3098         removed earlier and I had him add back it.  It turns out metacity
3099         *does* in fact handle the MOTIF_WM_HINTS property changing, it
3100         just doesn't redraw the window titlebar until you resize the
3101         window.  This also means we aren't recreating the entire window
3102         hierarchy on X when you change this property.  And it looks better
3103         on windows, too.
3104
3105 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3106
3107         * ListViewItem.cs:
3108         * ListView.cs: Collecting selection information
3109         is now done in SelectedIndexCollection rather than in
3110         SelectedListViewItemCollection. This is done so we can
3111         have the selection information code in one single place
3112         (virtual mode selection information entirely depends on
3113         SelectedIndexCollection).
3114
3115 2007-03-13  Miguel de Icaza  <miguel@novell.com>
3116
3117         * ErrorProvider.cs: Add stubs for ISupportInitialize
3118
3119 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3120
3121         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
3122         in the right order with the right values, from the Checked property, 
3123         just as MS does (instead of triggering them from ListView).
3124
3125         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
3126
3127 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3128
3129         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
3130         the correct handler in OnItemCheck method (ItemCheckEventHandler 
3131         instead of EventHandler). This used to throw an InvalidCastException.
3132
3133 2007-03-13  Jackson Harper  <jackson@ximian.com>
3134
3135         * TextBoxBase.cs: Calculate the document before the handle is
3136         created, so there isn't an extra invalidate called.
3137
3138 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
3139
3140         * Form.cs: Don't set owner in ShowDialog until we are sure
3141         that we aren't going to throw an exception.  [Fixes bug #80773]
3142
3143 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
3144
3145         * TreeView.cs: Make it compile.
3146
3147 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3148
3149         * Control.cs: Another place we don't call SizeFromClientSize.
3150         * Form.cs: Another place we don't call SizeFromClientSize.
3151         [Fixes bug #81125]
3152
3153 2007-03-12  Jackson Harper  <jackson@ximian.com>
3154
3155         * TreeView.cs: Basically emulating some strangness here with
3156         exanding nodes and setting node positions when windows aren't
3157         created.
3158         - Also attempting to walk the node tree less than previously, and
3159         just use visible order calculations for determining offsets.
3160         - oops made scrolling backwards.
3161         * TreeNode.cs: We need to start nodes with a zero visible order,
3162         because the order calcs are based on the first nodes order.
3163
3164 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3165
3166         * Form.cs: Don't exit the program if RecreateHandle is called on
3167         the main form.
3168
3169 2007-03-12  Chris Toshok  <toshok@ximian.com>
3170
3171         * XEventQueue.cs: remove the use of PostQuitState.
3172
3173         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
3174         WM_QUIT message in GetMessage, return false (and if we're in the
3175         nested WaitForHwndMessage, repost the WM_QUIT message).
3176
3177 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3178
3179         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
3180         or the MaximizeBox properties.  [Part of bug #80640]
3181
3182 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
3183
3184         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
3185         no links.
3186
3187 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3188
3189         * ToolStripItem.cs: Fix some tests I broke by checking Visible
3190         instead of visible.
3191
3192 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
3193
3194         * FileDialog.cs: Use text of File name combobox to determine what
3195         files the user selected. Added tokenizer to parse the file names.
3196         Fixes bug #81123.
3197
3198 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3199
3200         * Control.cs: We can't call SizeFromClientSize in the constructor,
3201         but we still need to do the same work, so make an internal version.
3202         [Fixes bug #80621]
3203
3204 2007-03-12  Jackson Harper  <jackson@ximian.com>
3205
3206         * TreeView.cs:
3207         * TreeNode.cs:
3208         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
3209         IsExpanded.
3210
3211 2007-03-12  Jackson Harper  <jackson@ximian.com>
3212
3213         * TextBoxBase.cs: Now that the handles are being created a little
3214         later, we need to make sure that the document is recalculated when
3215         the handle is created.
3216
3217 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
3218
3219         * Theme.cs: GetLinkFont abstract method added.
3220         
3221         * LinkLabel.cs: 
3222         - Remove CalcTrimRectangle, no longer needed.
3223         - Factor also remove, position issues must be fixed in libgdiplus.
3224         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
3225         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
3226         care about font used to draw links.
3227         - Set TabStop to true when control is "Selectable", control is selectable
3228         when have one or more links. Fixes #80501 (test case is also added).
3229         - Set the LinkArea values after links change, LinkArea values must be
3230         based in first link position and size, a test case was created.
3231         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
3232         the attribute must be true LinkArea.Length > 0. The same was applied to
3233         TabStop.
3234         
3235         * ThemeWin32Classic.cs: 
3236         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
3237         in draw method.
3238         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
3239         color change.
3240         - Draw focus rectangle for every parts focused, including parts that 
3241         is on another line, its because regions returns various rectangles
3242         and not only one. Needed to mimic W32 look.
3243         - Uses Graphics.Clip to delimite region painted, it mean that now 
3244         complete text is passed to DrawString, with this we solve layout
3245         issues without create another text renderer.
3246         - Uses Region.Intersect to fix some flickers problems, now only needed
3247         parts will redrawed.
3248         - This changes fixes #79614 and some other unreported issues, on Linux 
3249         some layout problems still remain, the problem is under 
3250         MeasureCharacterRanges but it is an libgdiplus bug.
3251
3252 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
3253
3254         * TextBox.cs: Set for foreground color.
3255         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
3256         this is already done in Control.
3257
3258 2007-03-10  Jackson Harper  <jackson@ximian.com>
3259
3260         * TextBox.cs: Set the background color, but reset the
3261         backcolor_set flag which is just for the user setting the
3262         background color.
3263
3264 2007-03-09  Chris Toshok  <toshok@ximian.com>
3265
3266         * Control.cs: really remove the call to XplatUI.SetVisible from
3267         CreateHandle(), like I said I did when I merged the branch.
3268
3269         * BindingSource.cs: implement some more of this stuff.
3270
3271 2007-03-09  Jackson Harper  <jackson@ximian.com>
3272
3273         * TextBox.cs: Don't explicitly set our background colors.
3274         * TextControl.cs:
3275         * TextBoxBase.cs: Draw readonly text.
3276         - Need to invalidate when backcolor or readonly are changed.
3277         
3278 2007-03-09  Jackson Harper  <jackson@ximian.com>
3279
3280         * TextBoxBase.cs: Don't set the forecolor until the handle is
3281         created.
3282         - Do not raise OnPaint, and removed some old debug code.
3283
3284 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
3285
3286         * ScrollableControl.cs: Fix mouse wheel scrolling.
3287
3288 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
3289
3290         * Control.cs: Wire up MouseDoubleClick event.
3291
3292 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
3293
3294         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
3295         top or bottom.
3296         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
3297         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
3298         item is added.  This logic was moved to ToolStrip.OnItemAdded.
3299         [Fixes bug #81090]
3300
3301 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3302
3303         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
3304
3305 2007-03-08  Jackson Harper  <jackson@ximian.com>
3306
3307         * TreeView.cs: Show the correct image for selected node (this used
3308         to work, not sure how the code got deleted). Also implemented 2.0 feature
3309         SelectedImageKey.
3310
3311 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3312
3313         * ListView.cs:
3314         * ListViewItem.cs: Cache index in items when retrieving them
3315         in VirtualMode.
3316
3317 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3318
3319         * ToolStripItem.cs: Don't return the explicit_size if we are using 
3320         AutoSize.  Fixes invalidation issue when user has explicitly set a
3321         size and has AutoSize = true.
3322
3323 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3324
3325         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
3326
3327 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3328
3329         * DataGridView.cs: Remove event handler from DataView when a
3330         DataTable is used as DataSource.
3331
3332 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3333
3334         * Control.cs: Create internal setter for client_size to allow it to be
3335         set without triggering resizing code.
3336         * Form.cs: Calculate client_size in constructor, only change client_size
3337         in FormBorderStyle property if Handle has been created.
3338         [Fixes #80574, #80791]
3339
3340 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
3341
3342         * SystemInformation.cs: Add TerminalServerSession.
3343
3344 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3345
3346         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
3347         TreeView code.
3348
3349 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3350
3351         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
3352         Handle before we were supposed to.  Now checks ActivateOnShow property
3353         in Control.
3354         * Control.cs: Add internal ActivateOnShow property.
3355         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
3356         for ActivateOnShow.
3357         * Hwnd.cs Remove no longer needed no_activate field.
3358
3359 2007-03-07  Jackson Harper  <jackson@ximian.com>
3360
3361         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
3362         2.0 properties
3363         * DrawTreeNodeEventHandler.cs: Add
3364         * DrawTreeNodeEventArgs.cs: Correct default value.
3365         
3366 2007-03-07  Chris Toshok  <toshok@ximian.com>
3367
3368         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
3369         to be called before NativeWindow.WndProc.  Put the HwndCreating
3370         magic there to hook up our Hwnd's to handles.
3371
3372 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
3373
3374         * DataGridView.cs: Comment out debug code.
3375
3376 2007-03-07  Chris Toshok  <toshok@ximian.com>
3377
3378         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
3379         to make the rest of the world happy]
3380
3381         * Control.cs (CreateHandle): there's no need to call
3382         XplatUI.SetVisible here, it's effectively done by
3383         XplatUI.CreateWindow on X now, and always was on windows.
3384
3385         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
3386         shortcircuit out of the loop if we have a message loop running on
3387         this thread.
3388
3389         [Changelog from merge]
3390
3391         2007-03-05  Chris Toshok  <toshok@ximian.com>
3392
3393                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
3394                 causes handle creation.
3395
3396         2007-02-28  Chris Toshok  <toshok@ximian.com>
3397
3398                 * ApplicationContext.cs: Add a flag to make sure we only raise the
3399                 ThreadExit event once (ExitThreadCore can be indirectly called
3400                 from a few places.)  I don't like the additional flag, but it
3401                 makes the event ordering/count correct.
3402
3403                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
3404                 without locking the collection.  An enumerator doesn't give us any
3405                 protection from modification anyway.  Lock the thread hash and
3406                 replace the complicated enumerator loop with a foreach.
3407                 (Application.CloseForms): make internal so it can be called from
3408                 ApplicationContext.  This should probably be moved to MWFThread.
3409                 (Application.ExitThread): don't call MWFThread.Current.Exit()
3410                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
3411                 when the runloop exits (in response to WM_QUIT.)
3412                 (Application.RunLoop): add a comment (and check) for
3413                 context.MainForm being null after setting context.MainForm.Visible
3414                 = true.  This is because you're perfectly free to dispose of a
3415                 form in VisibilityChanged.  Chalk this up to another case where we
3416                 need to synchronously generate WM_ACTIVATE from Control.Show.
3417                 Also, add handling for WM_QUIT here so we'll exit the loop.
3418                 
3419                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
3420                 fact that we don't wait if we're only unmapping the whole_window
3421                 makes me a bit nervous, but it doesn't seem to cause any problems
3422                 yet.
3423
3424                 also, add a comment about the stupid, broken and wrong resetting
3425                 of PostQuitState to false in GetMessage().
3426
3427                 In PostQuitMessage, we need to add a WM_QUIT message to the
3428                 thread's queue.  We use the FosterParent to get the right
3429                 handle/hwnd/queue.
3430
3431                 Lastly, in SetVisible, we need to unmap both windows, since the
3432                 waiting only happens when we're unmapping the client window.  So
3433                 now, the *only* time we unmap just the whole_window is in the hack
3434                 for resizing a control to 0,0.
3435                 
3436         2007-02-21  Chris Toshok  <toshok@ximian.com>
3437
3438                 * Application.cs (CloseForms): rewrite this so that we don't
3439                 modify the list while we're traversing it.
3440
3441         2007-02-20  Chris Toshok  <toshok@ximian.com>
3442
3443                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
3444                 of OnHandleCreated.
3445                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
3446                 handle is created.  otherwise we'll create it here.
3447                 (VerticalScrollEvent): same here.
3448
3449                 * Application.cs (CloseForms): call Form.Dispose, don't post
3450                 WM_CLOSE_INTERNAL.
3451
3452                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
3453                 here. Application should Dispose() of the Form's.
3454
3455                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
3456                 WM_DESTROY as well.
3457                 (MapWindow,UnmapWindow): only actually do the waiting for
3458                 SHOWWINDOW if the control we're dealing with is a Form.
3459                 (CreateWindow): if the control isn't a form, SendMessage
3460                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
3461
3462                 * Control.cs (SetVisibleCore): always use is_visible here, not
3463                 value.  If we use value, we can end up re-setting something
3464                 visible if, for instance, you do Control.Hide() in a delegate
3465                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
3466
3467         2007-02-20  Chris Toshok  <toshok@ximian.com>
3468
3469                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
3470                 the message we need.  PeekMessage returning false should not be a
3471                 condition under which we exit the loop.
3472
3473         2007-02-15  Chris Toshok  <toshok@ximian.com>
3474
3475                 * Control.cs (Refresh): only refresh if we've got a handle and are
3476                 visible.
3477                 (CreateAccessibilityInstance): CreateControl() here.
3478                 (UpdateChildrenZOrder): complicate the code loop even more by
3479                 taking into account controls that haven't had their handle
3480                 created, and those that aren't visible.  But on the flip side,
3481                 simplify the code by splitting it into two loops.  one which
3482                 builds up the list of child controls we're interested in, and the
3483                 other that sets the z order of those children.
3484
3485         2007-02-14  Chris Toshok  <toshok@ximian.com>
3486
3487                 * Control.cs: Control.AccessibilityObject causes the control to be
3488                 created, not just the handle.
3489
3490         2007-02-14  Chris Toshok  <toshok@ximian.com>
3491
3492                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
3493                 problem on X where a window might have its handle created (and be
3494                 visible) while the window is unmapped.  calling XConfigureWindow
3495                 on an unmapped window is bad, and generates X errors.
3496
3497         2007-02-13  Chris Toshok  <toshok@ximian.com>
3498
3499                 * Control.cs (CreateHandle): don't loop over our children setting
3500                 their parent here.  do it when in WndProc when we're shown.
3501                 (UpdateChildrenZOrder): make this internal so we can call it from
3502                 ScrollableControl.
3503                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
3504                 creating its handle.  Also, remove the calls to PerformLayout from
3505                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
3506                 OnVisibleChanged only seems to be called directly here for the
3507                 toplevel control.  It's propagated down the window hierarchy by
3508                 calls to child.OnParentVisibleChanged.
3509                 (OnVisibleChanged): don't do layout here - it's done (oddly
3510                 enough, according to a glance at stack traces on ms.net..) in
3511                 ScrollableControl.
3512                 
3513                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
3514                 z order of our children before calling PerformLayout.
3515
3516         2007-02-12  Chris Toshok  <toshok@ximian.com>
3517
3518                 [big change, fixes #80020]
3519                 
3520                 * AccessibleObject.cs: we need to make owner internal again to fix
3521                 some of ControlAccessibleObject.
3522
3523                 * Control.cs: lots of changes here.  add support for WM_CREATE,
3524                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
3525                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
3526                 we create child controls.  leave the MonoTODO's for the
3527                 accessibility calls, but fix the exceptions so the tests pass.
3528
3529                 Add the InvalidOperationExceptions to Invoke methods, and remove a
3530                 couple of InvokeInternal methods we aren't using.
3531                 
3532                 Also, add a couple of CreateHandle calls in places where we know
3533                 the handles are being created but our code doesn't reference
3534                 .Handle.
3535
3536                 Make SetVisibleCore call OnVisibleChange if the handle isn't
3537                 created.  If the handle is created, we rely on XplatUI.SetVisible
3538                 generating the event synchronously.
3539                 
3540                 Lastly, make sure we don't use this.Handle inside CreateHandle,
3541                 because we can call back into client (and that code can dispose of
3542                 the control).
3543
3544                 * XplatUIStructs.cs: misc/cleanup.
3545
3546                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
3547                 although we don't populate the wParam properly.
3548                 (CreateWindow): generate WM_CREATE.
3549                 (MapWindow,UnmapWindow): make these calls synchronous, at great
3550                 performance expense (particularly in the unmap case), to match
3551                 win32 behavior.
3552
3553                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
3554                 to call it.
3555                 (set_MdiParent): don't recreate the handle unless it's been
3556                 created already.
3557                 
3558                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
3559                 it's created.
3560
3561                 * NativeWindow.cs: this is probably the weirdest part of the
3562                 patch.  We need a way to link up the window being created to the
3563                 WM_CREATE message.  Since we can only be creating one window at a
3564                 time on a given thread, we keep track of a per-thread reference so
3565                 we can dispatch it properly.  We also need to keep track of the
3566                 Hwnd currently being created so that the win32 backend doesn't
3567                 have problems.
3568                 
3569                 * XplatUIWin32.cs: a similar change to the one we made in
3570                 NativeWindow.cs.
3571
3572 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3573
3574         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
3575         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
3576         to draw the menu shortcut string.
3577
3578 2007-03-07  Jackson Harper  <jackson@ximian.com>
3579
3580         * TreeNode.cs: Add the 2.0 collapse method.
3581
3582 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3583
3584         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
3585
3586 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3587
3588         * DataGridView.cs: Change DataSource will clear column and row
3589         lists. Call Invalidate() to reflect DataSource change.
3590
3591 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3592
3593         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
3594         and a new row is added to it.
3595
3596 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3597
3598         * DataGridView.cs: Add columns when DataSource is en empty list but
3599         is a System.Data.DataView (from a System.Data.DataTable).
3600
3601 2007-03-06  Andreia Gaita  <avidigal@novell.com>
3602
3603         * Label.cs: Implement AutoEllipsis (2.0)
3604
3605 2007-03-06  Jackson Harper  <jackson@ximian.com>
3606
3607         * TreeView.cs: Implement 2.0 TopNode setter property.
3608         - Use a local var instead of the skipped_nodes field for computing
3609         how many nodes to skip.  Otherwise we won't scroll because the
3610         valuechanged handler checks if skipped_nodes is equal to the new
3611         value.
3612         - Implement 2.0 Sort method.
3613         - Add useless 2.0 DoubleBuffer property
3614         - Implement 2.0 LineColors property.  Lets you change the color of
3615         the lines in the tree. Terribly useful for creating non cohesive
3616         desktops.
3617         - Implement 2.0 image key feature.
3618
3619 2007-03-06  Jackson Harper  <jackson@ximian.com>
3620
3621         * TreeView.cs: We can't get the bounds of the nodes before raising
3622         the AfterSelect event, because that event could change the node's
3623         bounds (scrolling, font change, etc).
3624
3625 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3626
3627         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
3628         * Form.cs: Don't recreate handle when creating FormWindowManager, just
3629           update window styles. In CreateParams us VisibleInternal instead of
3630           VIsible to get the actual visible flag set for this form.
3631         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
3632           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
3633           handle the case when the form is already maximized, in which case
3634           it should be restored. Fixes #81043.
3635
3636 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3637
3638         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
3639
3640 2007-03-05  Jackson Harper  <jackson@ximian.com>
3641
3642         * TreeViewHitTestInfo.cs: implement.
3643
3644 2007-03-05  Jackson Harper  <jackson@ximian.com>
3645
3646         * InternalWindowManager.cs: class status fix.
3647
3648 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3649
3650         * InternalWindowManager.cs: All windows that have a parent
3651         are confined to their parent when they're being moved.
3652         Fixes #80822.
3653
3654 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
3655
3656         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
3657         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
3658
3659 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3660
3661         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
3662           buttons invisible before deciding which ones should be visible
3663           (fixes minimize/maximize buttons showing up in toolwindows). Remove
3664           an unused variable.
3665         * InternalWindowManager.cs: Remove warning.
3666
3667 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3668
3669         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
3670         to throw an InvalidOperationException is virtual mode is being used.
3671
3672 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3673
3674         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
3675         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
3676         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
3677         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
3678         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
3679         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
3680
3681 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3682
3683         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
3684           driver.KeyboardDelay from XplatUI.KeyboardDelay 
3685         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
3686           (patch by Sergey Volk)
3687
3688 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3689
3690         * ToolWindowManager.cs: Added, contains logic for
3691           tool windows.
3692         * CreateParams.cs: Add a few helper methods and an
3693           internal variable to know which control the CreateParams belongs
3694           to.
3695         * Control.cs: Call Form.ChangingParent when the
3696           parent is about to be changed.
3697         * XplatUIX11.cs: DeriveStyles (): Set
3698           caption_height for all windows that have captions and are children.
3699           Update to use ToolWindowManager instead of InternalWindowManager
3700           for ToolWindows.
3701         * XplatUIWin32.cs: Set fake window styles for all
3702           windows that have window managers.
3703         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
3704           now duplicated for mdi windows when they are
3705           maximized, first for the buttons the window itself has, then for
3706           the buttons that appear in the menu bar. Makes things a little
3707           easier). Updated UpdateWindowDecorations, SetWindowState and the
3708           mouse eventhandlers accordingly.
3709         * Form.cs: Add ChangingParent (), contains the
3710           logic of what should happen when the parent changes. In MdiParent
3711           don't set things that ChangingParent () is doing. When handling
3712           WM_CLOSE, we can close the form if there are any other modal forms
3713           and the current form is a descendent of the modal form.
3714         * InternalWindowManager.cs: A lot of refactoring,
3715           the title buttons are now extracted to a separate container class
3716           that takes care of all button code (clicks, tooltips, etc). Moved
3717           Iconic|Maximized|Normal Bounds properties to this class from
3718           MdiWindowManager, so that the window state logic can succeed for
3719           other than mdi wm's. Implemented general window state change logic.
3720           Moved CreateButtons to ThemeWin32Classic, since the theme might
3721           override which buttons are available when as well as the exact
3722           location.
3723         * FormWindowManager.cs: Added, contains logic for
3724           normal forms.
3725         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
3726           which buttons go where (and if they are at all visible). 
3727           Removed special handling of maximized windows, since they aren't special. 
3728           In DrawManagedWindowDecorations don't try to draw the text if it is
3729           empty.
3730         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
3731           use whatever the wm gives us.
3732
3733 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3734
3735         * ButtonBase.cs: Add 2.0 properties.
3736         * Button.cs: Override Draw for 2.0.
3737         * Control.cs: Add Entered and Selected properties.
3738         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
3739         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
3740         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
3741         buttons.
3742         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
3743
3744 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3745
3746         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
3747
3748 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3749
3750         * XplatUIWin32.cs: Register a new class with Windows each time we get
3751         a new ClassStyle.  [Fixes bugs #79432, #80817]
3752         * Controls.cs: Set the correct ClassStyle in CreateParams.
3753         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
3754
3755 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
3756
3757         * ListView.cs: Add fireEvent argument to ReorderColumn since the
3758         ColumnReordered event must not be signaled when modifying DisplayIndex
3759         of a ColumnHeader. Added internal ReorderColumns method which takes
3760         care of drawing, and updating the internal DisplayIndex of the
3761         ColumnHeader. Added AddColumn method which is invoked from
3762         ColumnHeaderCollection when adding or inserting columns, and which
3763         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
3764         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
3765         Recalculated dispay indices after removing a ColumnHeader.
3766         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
3767         match MS. Allows last display index to be returned after ListView
3768         is disposed. Update actual location of ColumnHeader when DisplayIndex
3769         is modified.
3770
3771 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
3772
3773         * LinkLabel.cs: Improve CalcTrimRectangle.
3774         
3775         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
3776
3777 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3778
3779         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
3780         get rectangle as a result value.
3781
3782 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3783
3784         * LinkLabel.cs: Theres some diferences between rectangle return from 
3785         MeasureCharacterRanges and the area used for DrawString to fix this 
3786         CalcMeasurementFactor method was created, it calcules the diferences
3787         to be use later to adjust rectangle in draw operations. Fixes #80473.
3788         
3789         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
3790         to adjust draw rectangle.
3791
3792 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3793
3794         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
3795         text and some other changes to reduce and optimize source code.
3796
3797 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3798
3799         * RadioButton.cs: Implement 2.0 event.
3800         * RelatedImageListAttribute.cs: Implement new class.
3801
3802 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3803
3804         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
3805
3806 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3807
3808         * CheckBox.cs: Implement 2.0 functionality.
3809
3810 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3811
3812         * ListView.cs: Refactor Add and AddRange methods of
3813         ListViewItemCollection, to not update the ListView
3814         everytime an item is added in AddRange. Also move the update
3815         code to a new CollectionChanged method, and call it
3816         from other methods that need it as well (this should also fix some
3817         bugs when Sorting is used).
3818
3819 2007-02-27  Jackson Harper  <jackson@ximian.com>
3820
3821         * TextControl.cs: Try to never let the caret stay in a non-text
3822         tag.
3823         * TextBoxBase.cs: Update the caret.
3824
3825 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
3826
3827         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
3828         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
3829         delete POINT structure, duplicate of one in XplatUIStructs.
3830         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
3831
3832 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
3833
3834         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
3835         edit box since otherwise the Label would immediately be set (even if
3836         the user did not modify the label). In OnKeyDown set Handled to true
3837         if Return or Escape was pressed. In ColumnHeaderCollection unlink
3838         columns that are to be removed. In ListViewItemCollection unlink items
3839         that are to be removed.
3840
3841 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
3842
3843         * TextRenderer.cs: If we set a GDI clip region, we need to clear
3844         it when we are done.  [Fixes bug #80949]
3845
3846 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3847
3848         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
3849
3850 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3851
3852         * ListView.cs: I forgot to commit the changes for ListView 
3853         in my previous patch.
3854
3855 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3856
3857         * Clipboard.cs: Partially implement an overload of SetDataObject.
3858         * Form.cs: Implement ShowWithoutActivation.
3859         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
3860
3861 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3862
3863         This is a first set of changes to make the Virtual mode works,
3864         by avoiding the retrieval of ListViewItem instances until
3865         draw time.
3866
3867         * ListView.cs: Store item position in the ListView instead of the
3868         ListViewItem, this way we don't request the Bounds property of
3869         ListViewItem inside the ListView calculations, as well as cache the item
3870         size in item_size field. Store indexes instead of ListViewItem
3871         instances in the matrix used by icon view. Add a ItemMatrixLocation
3872         struct to hold the row and col info of the matrix info.
3873
3874         * ListViewItem.cs: Don't store the location anymore, and only cache
3875         the rectangles for GetBounds. Use the ListView.GetItemLocation
3876         method to retrieve the actual location.
3877
3878 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3879
3880         * TextRenderer.cs: Add clipping support, thanks to George.
3881         [Fixes bug #80949]
3882
3883 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3884
3885         * ListViewItem.cs: Cancel label edit when item is removed from 
3886         ListView.
3887         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
3888         event before the edit textbox is displayed.  Added CancelEdit method
3889         which is used end to editing while ignoring the value set by the
3890         user. In EndEdit, set focus to ListView to avoid losing focus to
3891         other controls. In ListViewItemCollection.Clear, cancel editing of
3892         any of the items.  In Remove, cancel editing of item being removed.
3893         Avoid udplicate code by modifing RemoveAt to invoke Remove.
3894
3895 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3896
3897         * FileDialog.cs: Update FSEntry when move is successful. Fixes
3898         bug #80948.  
3899
3900 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3901
3902         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
3903         compatible with non X11 systems. Fixes #80901.
3904
3905 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3906
3907         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
3908         whether the item should be unselected and reselect. We do no want this
3909         when we're starting to edit the label. Do not fire the 
3910         SelectedIndexChanged event from ListView when its already been fired
3911         by modifying ListViewItem.Selected. Fixes bug #80943.
3912
3913 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3914
3915         * TextRenderer.cs: Previos commit logic was backwards.
3916
3917 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3918
3919         * TextRenderer.cs: Don't add padding on MeasureText if we were
3920         sent the NoPadding flag.
3921
3922 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3923
3924         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
3925         after DrawButton. To prevent image overlaps button borders SetClip and 
3926         ResetClip added before and after draw image. Fixes #79129.
3927
3928 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3929
3930         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
3931         window size, it fix problem when you run under win32 that theres
3932         Size diferent than ClientSize. Also fix controls size and positions
3933         to mimic Win32. Fixes #80837.
3934
3935 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
3936
3937         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
3938         menu area to fix some problems for non X11 systems. Fixes #80613.
3939
3940 2007-02-22  Jackson Harper  <jackson@ximian.com>
3941
3942         * TreeNode.cs: When a node is expanded, set its is_expanded flag
3943         even if it doesn't have any children.
3944
3945 2007-02-22  Jackson Harper  <jackson@ximian.com>
3946
3947         * TreeView.cs: Calculate the top node 'on the fly', this
3948         eliminates issues where you need to click on the tree before
3949         scrolling it to get the top node computed correctly.
3950         * TreeNodeCollection.cs: We don't need to mess with the top node
3951         anymore.
3952
3953 2007-02-22  Jackson Harper  <jackson@ximian.com>
3954
3955         * DataGridViewRow.cs: Fix typo so height can actually be set.
3956         Patch by Peter Grimm.
3957
3958 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3959
3960         * FileDialog.cs: Fixed support for renaming files and directories.
3961         * ListView.cs: Do not lose focus when edit is canceled. Process
3962         Escape as regular key (to prevent closing of dialogs).
3963
3964 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3965
3966         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
3967         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
3968
3969 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3970
3971         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
3972         did not modify label.
3973         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
3974         modified the text. Reset Label when user presses Escape in edit mode.
3975         Move focus to ListView after having cancelled or finished editing the
3976         label.
3977
3978 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
3979
3980         * ComboBox.cs: Removed unnecessary initializations. Marked items field
3981         private. Clear textbox when Text is set to null and SelectedIndex is
3982         already -1.
3983         * FileDialog.cs: Removed unnecessary initializations. Removed 
3984         workarounds for ComboBox bugs that are now fixed. Modified
3985         DefaultExt, InitialDirectory and Title property to change null to
3986         zero-length string in getters. Avoid directly accessing fields.
3987
3988 2007-02-20  Jackson Harper  <jackson@ximian.com>
3989
3990         * TextControl.cs: Remove RecalAlignments call, that was some
3991         debugging leftovers.
3992         - Don't use the line indent when we shouldn't.
3993         * RichTextBox.cs: Add support for paragraph left indents.
3994
3995 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3996
3997         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
3998         Seems like the class status pages doesn't catch params differences.
3999
4000 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
4001
4002         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
4003
4004 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
4005
4006         * ComboBox.cs: Setting Text should have no effect if item text of
4007         selected item exactly matches value. First lookup text using
4008         case-sensitive comparison, and fallback to case-insensitive comparison.
4009         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
4010         allow startIndex to be last index. Changed ArgumentOutOfRangeException
4011         paramname to match MS. Restart from first item if string is not found
4012         after startIndex. Fixed paramname of ArgumentNullException that is
4013         thrown for null value in ObjectCollection.Contains.
4014
4015 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
4016
4017         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
4018
4019 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4020
4021         * ListControl.cs: In SelectedValue use value.Equals to compare for
4022         equality instead of ==, otherwise it will fail for strings.
4023         Fixes #80794.
4024
4025 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4026         
4027         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
4028         since the caret won't show up unless ShowSelection is true. 
4029         Fixes #80795.
4030
4031 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4032
4033         * Application.cs: When disabling all forms but the main form, do not
4034           disable any descendants of the main form (such as mdi children or
4035           other parented forms). Fixes #80822 on Windows.
4036         * Form.cs: If we have a parent, set the WS_CHILD style.
4037         * Control.cs: Update the window styles if the control whose parent has
4038           changed is a form (the WS_CHILD style has to be switched).
4039
4040 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
4041
4042         * XplatUIStructs.cs: MsgUIState structure added.
4043
4044 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
4045
4046         * FileDialog.cs: Removed need for separate fileName field. On 2.0
4047         profile, do not check filename(s) for illegal character if filename(s)
4048         were set non-interactively but always check on 1.0 profile. Fixed NRE
4049          in DefaultExt and only strip off first leading dot. Improve exception
4050         message when invalid Filter is set. Do not ignore InitialDirectory if
4051         it does no exist. Store specified Title, and if empty use default
4052         title (depending on type of dialog). Added an internal DialogTitle 
4053         property for retrieving dialog title. Fixed logic of displayed dir to
4054         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
4055         string as its buggy.
4056         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
4057         FileName is a zero-length string (it can never be null). Override 
4058         DialogTitle property to set default title of dialog box.
4059         * SaveFileDialog.cs: Override DialogTitle property to set default
4060         title of dialog box.
4061
4062 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
4063
4064         * FileDialog.cs: Modify default text of filename and filetype labels
4065         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
4066         after we've updated the SelectedIndex. Fixes part of bug #80887.
4067         * SaveFileDialog.cs: Set text of filetype label.
4068
4069 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4070
4071         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
4072         label field. Needed by latest Jackson's fixes for ListView.
4073
4074 2007-02-16  Andreia Gaita  <avidigal@novell.com>
4075
4076         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
4077         print preview images.
4078
4079 2007-02-16  Jackson Harper  <jackson@ximian.com>
4080
4081         * ListView.cs: Make AfterLabelEdit work correctly.
4082         * FileDialog.cs: After changing the name of the folder, we have to
4083         make sure that it is created, or that we pop up an error because
4084         it already exists.
4085
4086 2007-02-16  Jackson Harper  <jackson@ximian.com>
4087
4088         * X11Dnd.cs: Implement aliases on mime handlers, so things like
4089         System.String are mapped to text.
4090         - Handle dataobjects, getting all the possible formats out of them
4091         - We dont need the drag event args before we give feedback. This
4092         allows feedback cursors to be immediate before selections have
4093         been converted.
4094
4095 2007-02-16  Jackson Harper  <jackson@ximian.com>
4096
4097         * TextBoxBase.cs: Modified the method for inserting images to
4098         taking a line and position instead of tag and position.
4099         * RichTextBox.cs: Handle PngBlip data by inserting the png image
4100         into the RTF file.
4101         * TextControl.cs: Allow images to be inserted as the first tag of
4102         a line.
4103         - Fix some off by one issues when we assume the first tag is a
4104         text tag, not an image tag.
4105
4106 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4107
4108         * ListView.cs: Set focus to ListView when ItemControl gets a
4109         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
4110         Fixes part of #80467.
4111
4112 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4113
4114         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
4115           validate Text input (if null or empty string reset Value to default
4116           value). Fixes #80830.
4117
4118 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4119
4120         * ListView.cs: Set owner as null for columns and items when
4121         Dispose is invoked. Fixes #80607.
4122
4123 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
4124
4125         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
4126         showing DropDowns, don't show a Grip when doing Flow layout.
4127         [This fixes the toolbox in PDN 2.72.]
4128         * ToolStripItem.cs: Add Anchor property and some internal properties to
4129         reduces needed changes to FlowLayout.
4130         * ToolStripOverflow.cs: Remove unused variable.
4131         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
4132         use it in the layout calculations.
4133
4134 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4135
4136         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
4137         reported in #79640.
4138         
4139         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
4140         size calculation.
4141
4142 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4143
4144         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
4145         MeasureString format, it can make button very large in some cases, it is
4146         strange but is what win32 do.
4147
4148 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4149
4150         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
4151         size calculation.
4152
4153         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
4154         rendering, the value is based on MenuAccessKeysUnderlined.
4155
4156 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4157
4158         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
4159         for most themes.
4160         
4161         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
4162         
4163         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
4164         and use MenuAccessKeysUnderlined instead.
4165
4166 2007-02-13  Andreia Gaita  <avidigal@novell.com>
4167
4168         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
4169         A selected control would not get a Focus call if:
4170                 - the default active control of the container is the same as
4171                   the one that was selected
4172                 - we are switching from one container to another
4173         Under these conditions, the container being selected already has
4174         an active_control, which is the same as the one being activated, 
4175         so set_ActiveControl would always return and not send the Focus
4176         call. Fix to check if the currently active control of the container
4177         is actually focused.
4178
4179 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
4180
4181         * StatusStrip.cs: Implement the spring layout.
4182         * ToolStripControlHost.cs: Make sure the hosted control's visibility
4183         always matches the host.
4184         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
4185         and TextAfterImage.
4186
4187 2007-02-13  Andreia Gaita  <avidigal@novell.com>
4188
4189         * Control.cs: Code reorganization only.
4190           - Reorganize the WndProc cases so that each case has it's own handling method, 
4191           to help with the no-line-numbering stack traces.
4192           - Formatting changes (it's vstudio's fault, really :p)
4193
4194 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4195
4196         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
4197           Thread.CurrentUICulture to match DateTimePicker's (and MS)
4198           behaviour.
4199
4200 2007-02-12  Jackson Harper  <jackson@ximian.com>
4201
4202         * RichTextBox.cs:
4203         * TextBox.cs: By default we have a non multiline document
4204         - use the multiline property instead of the internal variable
4205         * TextBoxBase.cs: Treat multiline and non multiline the same in
4206         most places.
4207         - Use the documents multiline flag instead of tracking it ourself
4208         * TextControl.cs: Attempt at getting multiline to match MS
4209         behavior.  Lines now track an offset, which is either their X or Y
4210         offset depending on whether or not we are in multiline mode.
4211         - Update all the methods to understand that lines have an X value.
4212         - Fix crash in Undo::Duplicate when empty lines are deleted.
4213
4214 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
4215
4216         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
4217         code moved to properties PreferredHeight and PreferredWidth. It solve the
4218         all problems when preferred sizes must be recalculated. Fixes #80801.
4219
4220 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
4221
4222         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
4223         font height when compatible_text_rendering is false. Partially fix #80801.
4224
4225 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
4226
4227         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
4228
4229 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
4230
4231         * Form.cs: Improved exception messages in ShowDialog.
4232
4233 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
4234
4235         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
4236         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
4237         if not set. Fixes bug #80764. Avoid accessing current_settings field
4238         directly.
4239
4240 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
4241
4242         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
4243         false.
4244
4245         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
4246         public in 2.0 and for easy maintenance and dont break compatibility it is 
4247         internal in 1.1.
4248         
4249 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4250
4251         * ToolStripItem.cs: Implement using images from ImageList.
4252
4253 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4254
4255         * DateTimePicker.cs: Change default date-formatting culture from
4256           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
4257           seems to be the way MS does it.
4258
4259 2007-02-08  Andreia Gaita  <avidigal@novell.com>
4260
4261         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
4262         (the 6 was cut off on the right side)
4263
4264 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4265
4266         * Form.cs: Tell MenuStrips to close when the form is clicked.
4267         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
4268         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
4269         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
4270         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
4271         support for Overflow, where items that do not fit are automatically
4272         reparented to a drop down menu.
4273         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
4274         Also: fixes bug #80747.
4275
4276 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4277
4278         * ComboBox.cs: Remove warning (unused code).
4279         * ScrollableControl.cs: Remove warning for 1.1 profile.
4280
4281 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4282
4283         * Form.cs: Remove a warning.
4284
4285 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4286
4287         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
4288           'g' specifier, not documented anywhere, but seems to always show up
4289           as a single space (might have something to do with the DateTime 'g'
4290           specifier, which is the era format, but since DateTimePicker can't
4291           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
4292           won't crash if the format has an unmatched quote. Now shows
4293           single-character formats correctly. Fixes #80744.
4294
4295 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4296
4297         * StatusStrip.cs: Stretch property needs to call base.Stretch,
4298         not this.Stretch to fix stack overflow. [Fixes bug #80760]
4299
4300 2007-02-07  Chris Toshok  <toshok@ximian.com>
4301
4302         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
4303         background color.  it overwrites the background image we've
4304         already painted.  Fixes #80599.
4305
4306 2007-02-07  Chris Toshok  <toshok@ximian.com>
4307
4308         * DataGrid.cs: return immediately from Edit() when there are no
4309         columns.  Fixes #80662.
4310
4311 2007-02-07  Chris Toshok  <toshok@ximian.com>
4312
4313         * MessageBox.cs: fix #80625.  don't always show the Help button in
4314         2.0.  use the displayHelpButton parameter to determine if we
4315         should show it. Also, make the internal show_help field private.
4316
4317 2007-02-07  Chris Toshok  <toshok@ximian.com>
4318
4319         * Control.cs (SetVisibleCore): check in the proposed patch for
4320         80604, and set is_visible before calling CreateControl.
4321
4322 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
4323
4324         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
4325         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
4326         on it.
4327
4328 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
4329
4330         * MenuAPI.cs: hotkey_active internal field added, it is required because
4331         we need to know when hotkeys must be draw, before this change a keystate
4332         Navigating was used but we can have menu in navigating state without
4333         hotkeys. Fixes #80694.
4334         
4335         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
4336
4337 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4338
4339         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
4340           corresponding events and methods to be internal for 1.1 profile and
4341           public for 2.0 profile (required by SizeGrip).
4342         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
4343           implicit control list). Don't set the size nor the location of the
4344           SizeGrip anymore as it's not needed.
4345         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
4346           draw directly on the captured control (fixes #80656). Removed
4347           ShowGrip (it wasn't used anywhere), redraw (always true), added
4348           GetDefaultSize and GetDefaultRectangle to calculate defaults.
4349         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
4350           be called from SizeGrip.
4351
4352 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4353
4354         * Timer.cs: Throw ArgumentException if Interval <= 0.
4355
4356 2007-02-05  Jackson Harper  <jackson@ximian.com>
4357
4358         * TreeView.cs: We need to check scrollbar visibility when window
4359         visibility is updated, because non visible trees don't ever add
4360         scrollbars.
4361         * Cursor.cs: We want the override cursor to be reset to NULL when
4362         we set current cursor to the default cursor.
4363
4364 2007-02-05  Jackson Harper  <jackson@ximian.com>
4365
4366         * TextControl.cs: Don't have crlfs when we are non multiline.
4367         - Consolidate the line position.
4368
4369 2007-02-05  Jackson Harper  <jackson@ximian.com>
4370
4371         * X11Keyboard.cs: BACK+CTRL gets a special char code.
4372
4373 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4374
4375         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
4376           handling LeaveNotify->NotifyUngrab in order to send
4377           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
4378           after calling XUngrabPointer, so we call WindowUngrabbed directly
4379           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
4380         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
4381           MouseCaptureChanged correctly. Also create handles if changing
4382           Capture (matches MS behaviour).
4383
4384 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4385
4386         * SizeGrip.cs: Make the last change 2.0 only.
4387
4388 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4389
4390         * SizeGrip.cs: If resizing and the capture is lost, revert any size
4391           changes to initial size (fixes #80597).
4392
4393 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4394
4395         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
4396
4397 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4398
4399         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
4400           background) and only allow dragging if enabled. This way the
4401           sizegrip can be used to fill the open square that otherwise would
4402           have been shown in the bottom right corner of ScrollableControl
4403           when ScrollableControl is not suppose to support sizing.
4404         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
4405           sizegrip is shown and enabled, and hook up with necessary events.
4406
4407 2007-02-01  Chris Toshok  <toshok@ximian.com>
4408
4409         * DataGridTextBoxColumn.cs: clean up the
4410         GetFormattedString/GetColumnValueAtRow combination of functions.
4411         Also fix UpdateUI, and the initial state of
4412         IsInEditOrNavigateMode.
4413
4414         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
4415         aren't supposed to scroll the textbox here, we're supposed to
4416         scroll the datagrid.
4417
4418 2007-02-01  Chris Toshok  <toshok@ximian.com>
4419
4420         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
4421         setting the position.
4422
4423 2007-02-01  Chris Toshok  <toshok@ximian.com>
4424
4425         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
4426         here, since the most recent focus fixes keep us from generating
4427         the Leave event when our textbox gets focus.
4428         (Edit): we should be passing null for the column style's
4429         instantText parameter.
4430         
4431 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
4432
4433         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
4434         raised.  Fixes menu text/icons not showing up in PDN.
4435
4436 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4437
4438         * Control.cs: Remove code in constructor that makes every
4439         control with WS_CHILD set have initial location -1, -1.
4440
4441 2007-01-31  Jackson Harper  <jackson@ximian.com>
4442
4443         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
4444         XplatUIX11.
4445         * XplatUIX11.cs: Give teh keyboard to teh dnd.
4446
4447 2007-01-31  Jackson Harper  <jackson@ximian.com>
4448
4449         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
4450         - Remove some debug code.
4451
4452 2007-01-31  Jackson Harper  <jackson@ximian.com>
4453
4454         * XplatUIX11.cs: If you set the override cursor during a grab, it
4455         should actually override the grab cursor.  This comes into play
4456         when you are setting custom cursors in a DND feedback method.
4457
4458 2007-01-31  Jackson Harper  <jackson@ximian.com>
4459
4460         * X11Dnd.cs: Add support for handling the QueryContinue and
4461         GiveFeedback events.
4462         - Cancel drag and drop actions when the escape key is clicked.
4463         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
4464         can handle the ESCAPE key.
4465         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
4466         done when dnd events are continued after the button is released.
4467         - Add a new helper method so that dnd can translate key events.
4468
4469 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
4470
4471         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
4472         make it more obvious what is happening.
4473
4474 2007-01-30  Jackson Harper  <jackson@ximian.com>
4475
4476         * XplatUIX11.cs: Don't break when handling button release in drag
4477         and drop operations. We need that BUTTONUP message to get through
4478         so capture is released.
4479         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
4480         this is handled automatically when the mouse is down.
4481
4482 2007-01-30  Jackson Harper  <jackson@ximian.com>
4483
4484         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
4485         is closed, so we need to make sure that we aren't changing the
4486         dialog result when the OK (Open or Save) button has been clicked
4487         and we are closing the window ourselves.  Note we don't need to
4488         worry about the cache being written in this case, because it was
4489         already done in the previous FilOk call.
4490
4491 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4492         
4493         * DateTimePicker.cs: Remove a warning.
4494         * ComboBox.cs: Remove a couple of warnings.
4495
4496 2007-01-29  Chris Toshok  <toshok@ximian.com>
4497
4498         * XplatUIX11.cs: don't crash, and remove the icon if the user has
4499         set one, if SetIcon is passed a null icon.
4500
4501 2007-01-29  Andreia Gaita  <avidigal@novell.com>
4502
4503         * TextBox.cs: Redraw when the password characters changes
4504         * TextControl.cs: Check if textbox has a password char and draw 
4505         a line of password chars instead of the text in the line. LineTag gets 
4506         an extra Draw() method which allows document.Draw to override the text 
4507         that will be drawn. Removes 1024 char limitation on length of passworded 
4508         lines.
4509
4510 2007-01-29  Jackson Harper  <jackson@ximian.com>
4511
4512         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
4513         single chars is not.
4514
4515 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
4516
4517         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
4518         one pixel.  Fix a StackOverflowException caused by an overload wrongly
4519         calling itself.
4520
4521 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
4522
4523         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
4524         also remove ProcessArrowKey and put the code inside ProcessKeys.
4525
4526 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
4527
4528         * PaddingConverter.cs: Added.
4529
4530 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4531         
4532         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
4533         ShowPanels is false (fixes #80600). Only draw up to 127 characters
4534         of text (fixes #80601). For panels clip the text to draw to the
4535         panel (fixes #80603).
4536
4537 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4538
4539         * ComboBox.cs: Fixed implementation of ResetText.
4540
4541 2007-01-25  Jackson Harper  <jackson@ximian.com>
4542
4543         * TextControl.cs: For the last char of a line we need to use the
4544         line size, not that chars width, since it won't actually be
4545         computed since the right side of a char is based on the start of
4546         the left side of the next char, and the next char does not exist.
4547
4548 2007-01-25  Chris Toshok  <toshok@ximian.com>
4549
4550         * Splitter.cs: fix the new unit tests, and reindent some switch
4551         statements.
4552
4553 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4554
4555         * ComboBox.cs: Implemented 2.0 methods and events.
4556         * TextBoxBase.cs: Added OnTextUpdate, so that
4557         ComboBox.ComboTextBox can inform ComboBox of it.
4558
4559 2007-01-25  Jackson Harper  <jackson@ximian.com>
4560
4561         * TextControl.cs: Respect ShowSelection when deciding whether or
4562         not to display the caret, this allows comboboxes to have carets
4563         when the combotextbox does not have focus.
4564
4565 2007-01-25  Jackson Harper  <jackson@ximian.com>
4566
4567         * TextControl.cs: Add a Suspend/Resume for updating, basically the
4568         same as the Suspend/Resume for recalc, except this will do actual
4569         Invalidates.
4570         - New Undo manager, works much like the MS version.
4571         - Implemented Redo
4572         * TextBoxBase.cs: The Cut operation is undoable.
4573
4574 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4575         
4576         * TextBoxBase.cs: Don't antialias text. Makes it look way better
4577         on Windows (no difference on Linux).    
4578
4579 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4580
4581         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
4582         we don't want to activate any windows. Fixes #79433.
4583
4584 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
4585
4586         - ButtonBase.cs: Fix capitalization of parameter: disposing.
4587         [Fixes bug #80609]
4588
4589 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
4590
4591         * FileDialog.cs:
4592         - Move to using System.ComponentModel.EventHandlerList
4593         - Replace Refresh with Invalidate
4594         - Clear the mime filecache on closing
4595         - Some other memory reducing work. After beeing closed FD now uses
4596           only about 300 KB for the fdo mime stuff plus the memory of the
4597           cached icons.
4598         * Mime.cs: Changed coding style and removed unnecessary commented
4599         code. Some more memory memory reducing work.
4600
4601 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4602
4603         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
4604         a few other missing 2.0 properties.
4605         * Theme.cs: Added DrawFlatStyleComboBox.
4606         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
4607
4608 2007-01-24  Chris Toshok  <toshok@ximian.com>
4609
4610         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
4611         wake_waiting flag, not just when there's data to be read.  if we
4612         don't, then future wakeup's won't reach us and we'll be doomed to
4613         wait for the entire 1 second timeout forever (unless there are X
4614         events to be had).
4615
4616 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
4619         until you pass Items.Count, not Items.Count - 1 like 1.1.
4620
4621 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
4622
4623         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
4624
4625 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4626
4627         * ToolStripContainer.cs: The recent Dock fix exposed that I was
4628         adding the panels in the wrong order.
4629
4630 2007-01-24  Jackson Harper  <jackson@ximian.com>
4631
4632         * TextBoxBase.cs: When we move the caret we also need to move the
4633         selection, this fixes some random crashing after doing select
4634         text, unselect, delete a char, paste.
4635
4636 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4637
4638         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
4639
4640 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4641
4642         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
4643         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
4644         * ToolBar.cs: Force redraw in BackgroundImageChanged.
4645
4646 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4647
4648         * ToolBar.cs:
4649         - Implement support for vertical toolbars. Fixes #80539;
4650         - Call LayoutToolBar when resize, it fix some other problems in layout.
4651         - Rename requested_height to requested_size, as we can have width on it
4652         when toolbar is vertical.
4653         - Create a private property "Vertical" that uses Dock to verify when 
4654         toolbar is vertical or not.
4655         - Set ControlStyles when change Dock property.
4656         - Refactory in LayoutToolBar to have better variables names and to support
4657         vertical toolbars.
4658         - Fixes default value for ButtonSize when button count is equal zero, size
4659         must be (39, 36) test case writed.
4660
4661 2007-01-23  Chris Toshok  <toshok@ximian.com>
4662
4663         * Control.cs: fix the checks so that they work correctly for mdi
4664         parents/children.
4665
4666 2007-01-23  Chris Toshok  <toshok@ximian.com>
4667
4668         * Control.cs: ControlCollection seems to have super-secret
4669         abstraction breaking knowledge of Mdi containers.  allow MdiClient
4670         to add toplevel controls.
4671
4672 2007-01-23  Chris Toshok  <toshok@ximian.com>
4673
4674         * Control.cs: throw an ArgumentException if a toplevel control is
4675         added to our control collection from ControlCollection.Add, as
4676         well as from ControlCollection.IList.Add.  This fixes the
4677         ControlSetTopLevelTest.TestTopLevelAdd unit test.
4678
4679         Also, in ControlCollection.IList.Add, don't through an
4680         ArgumentNullException, throw an ArgumentException, when value ==
4681         null.  This matches MS.
4682
4683 2007-01-23  Chris Toshok  <toshok@ximian.com>
4684
4685         * BindingSource.cs: initial, incomplete, implementation of
4686         BindingSource.
4687
4688 2007-01-23  Jackson Harper  <jackson@ximian.com>
4689
4690         * TextControl.cs:
4691         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
4692         that I can fix a broken unit test (TextBoxTest::ClearUndo)
4693         
4694 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4695
4696         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
4697
4698 2007-01-23  Andreia Gaita  <avidigal@novell.com>
4699
4700         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
4701         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
4702         IndexOfKey() for 2.0
4703
4704 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4705
4706         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
4707         to prevent it from changing z-order.
4708         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
4709         leave UI updates in MdiWindowManager.
4710         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
4711         1 sized (NC handling goes weird on Linux otherwise).
4712         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
4713         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
4714         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
4715         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
4716         and SetWindowState(s) to allow for changing the size of an activated child
4717         before activating it (reduces a lot of flicker).
4718
4719 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4720
4721         * Form.cs: Changing FormBorderStyle has different semantics based
4722         on whether the Form is visible or not.  If not visible, don't change
4723         the Size.  But InvalidateNC needs to be called to force the window
4724         to pick up the changes and redraw itself.  [Fixes bug #80574]
4725
4726 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4727
4728         [Moma work]
4729         * ContainerControl.cs: ProcessCmdKey.
4730         * ErrorProvider.cs: new constructor.
4731         * Form.cs: fix AutoValidateEvent compiler warning.
4732         * Label.cs: fix OnAutoSizeChanged compiler warning.
4733         * MenuStrip.cs: fix CanOverflow compiler warning.
4734         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
4735         * TextBox.cs: Dispose.
4736         * ToolStrip.cs: CanOverflow, re-enable double buffering.
4737         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
4738         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
4739         * ToolStripItem.cs: Overflow, RightToLeft properties.
4740
4741 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4742
4743         * Form.cs: Move the layout of the main form to MdiWindowManager.
4744         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
4745         do a layout of the main window to update MdiClient's client area to
4746         the right area. Fixes #80533. Remove the calculation of nc size, 
4747         it was just wrong and the correct one is the same as for 
4748         InternalWindowManager. 
4749
4750 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
4751
4752         * Control.cs: Setting Anchor or Dock needs to reset the other
4753         to its default.  [Fixes bug #80556]
4754
4755 2007-01-20  Chris Toshok  <toshok@ximian.com>
4756
4757         * CheckedListBox.cs: class status changes.
4758
4759         * ScrollableControl.cs: same.
4760
4761         * RichTextBox.cs: same.
4762
4763         * ContainerControl.cs: same.
4764
4765         * ListView.cs: same.
4766
4767         * NotifyIcon.cs: same.
4768
4769         * MenuStrip.cs: same.
4770
4771         * RadioButton.cs: same.
4772
4773         * CheckBox.cs: same.
4774
4775         * PrintPreviewDialog.cs: same.
4776
4777         * Form.cs: same.
4778
4779 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
4780
4781         * TreeNode.cs: Apply Alan's patch for Name property.
4782
4783 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4784         
4785         * Form.cs: Implemented SizeGripStyle.
4786         * SizeGrip.cs: Check for minimum and maximum size for the
4787         control being resized and only resize if size has actually
4788         changed.
4789
4790 2007-01-19  Chris Toshok  <toshok@ximian.com>
4791
4792         * DataGridColumnStyle.cs: stop setting _readonly in the
4793         PropertyDescriptor setter.  fixes a unit test failure.
4794
4795         also, rename ParentReadOnly to TableStyleReadOnly, and have it
4796         just consult our table style (if we have one).  We don't need to
4797         consult the datagrid readonly attribute because that's passed in
4798         as the _ro arg to Edit.  this simplifies things a little.
4799         
4800         * DataGrid.cs: use CurrentColumn instead of
4801         current_cell.ColumnNumber just to simplify some of the code.
4802
4803         switch the order of some things in the CurrentCell setter to keep
4804         the previous cell from getting a textbox again -
4805         EnsureCellVisibility causes scrolling to happen, which calls Edit.
4806         So we need to set the new cell before calling it.
4807         
4808         call Edit in OnEnter, as does Microsoft.
4809         
4810         also, make sure the current table style isn't the one we create
4811         initially when checking to see if it's different than the one
4812         we're setting it to in BindColumns (this fixes #80421).
4813
4814         * GridTableStylesCollection.cs: table styles can have "" for a
4815         mapping name.  part of the fix for #80421.
4816
4817         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
4818         Edit significantly.
4819
4820 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4821
4822         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
4823         and less GDI object leaky-er.
4824
4825 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4826
4827         * LinkLabel.cs: Add opaque control style
4828
4829 2007-01-18  Jackson Harper  <jackson@ximian.com>
4830
4831         * TextControl.cs: Calculate width properly.
4832         - Don't store the tag's X offset, this can be figured out very
4833         easily.
4834         - When getting the caret tag make sure to get the last empty tag.
4835
4836 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4837
4838         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
4839         [Fixes bug #79959]
4840
4841         * Control.cs: Color.Empty shouldn't count for previous transparent
4842         redraw changes.
4843
4844 2007-01-18  Jackson Harper  <jackson@ximian.com>
4845
4846         * TextBox.cs:
4847         * RichTextBox.cs:
4848         * TextControl.cs: Starting to merge in some pieces of my older
4849         undo work.  Basically just some slight cleanup of the undo API.
4850
4851 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4852
4853         * TrackBar.cs: Fix signature of RightToLeftLayout.
4854         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
4855         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
4856         * Application.cs: Implemented UseWaitCursor.
4857
4858 2007-01-18  Jackson Harper  <jackson@ximian.com>
4859
4860         * TextControl.cs: We can't skip tags if any part of the tag is
4861         visible.
4862
4863 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4864
4865         * ContainerControl.cs: Override OnLayout.
4866
4867 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4868
4869         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
4870
4871         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
4872         everything else.
4873
4874 2007-01-18  Chris Toshok  <toshok@ximian.com>
4875
4876         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
4877         (leftover from the container_selected days, I'd wager).  fixes bug
4878         #80546.
4879
4880 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4881
4882         * Control.cs: Apply patch from George to fix the new testcase on
4883         bug #80451.  We can't just check for Color.Transparent, we need 
4884         to check if the back color's alpha channel is < 255.
4885
4886 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4887
4888         * Form.cs: Move setting show_icon = true to before the constructor
4889         so that the base constructor has that information when it calculates
4890         the form's size.  Was causing forms to be (6, 6) bigger than they
4891         were supposed to be.  Thanks for catching this Rolf!
4892
4893 2007-01-18  Jackson Harper  <jackson@ximian.com>
4894
4895         * TextControl.cs: When replacing a selection we need to invalidate
4896         from the initial selection start, because selection start is moved
4897         to the end of the replacement.
4898
4899 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4900
4901         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
4902
4903 2007-01-18  Chris Toshok  <toshok@ximian.com>
4904
4905         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
4906         I just added.
4907
4908 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
4909
4910         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
4911         layout methods and properties from ToolBarButton must be available
4912         into ToolBarButtonInfo.
4913
4914 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4915
4916         * Control.cs: If the control has a transparent background, we
4917         need to refresh it when it moves and when it's parent's background
4918         image changes.  [Fixes bug #80451]
4919
4920 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4921
4922         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
4923
4924 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4925
4926         * XplatUIWin32.cs: Implement proper double buffering for Windows.
4927         [Fixes bug #80447, and probably speeds up things as well]
4928
4929 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4930
4931         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
4932         * XplatUIWin32.cs: We need to recalculate NC size after changing 
4933         window style to toolwindow (otherwise the client rectangle will be
4934         3 pixels to small for some reason).
4935         * MdiWindowManager.cs: Revert NC size calculations to match how
4936         they are calculated only based on window styles (to match
4937         Win32AdjustWindowRectEx, since otherwise when setting size or 
4938         location, Control will call Win32AdjustWindowRectEx to update client 
4939         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
4940         calculate a different value of client size causing another paint 
4941         (and flickering))
4942         * InternalWindowManager.cs: When moving or resizing a window only
4943         update size or location if they actually changed.
4944         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
4945         (seems to match Windows behaviour better). Cleaned up 
4946         ManagedWindowDecorations to draw what's needed and nothing else
4947         (was drawing borders and lines where they shouldn't be)
4948         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
4949         (style = 0xFFFF) and takes into account caption height when 
4950         calculating window rectangle.   
4951
4952 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4953
4954         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
4955         can be added to toolbar multiple times, we need to maintain a list of 
4956         button information for each positions.
4957
4958 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4959
4960         * ToolBar.cs: Some small stetic changes.
4961
4962 2007-01-16  Jackson Harper  <jackson@ximian.com>
4963
4964         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
4965         that allow us to have nested recalc = false blocks.
4966         - Add paste support for images in the RichTextBox
4967         * RichTextBox.cs: flush the text after the color is changed, so
4968         the change takes effect.
4969         - Use SuspendRecalc
4970         - Some extra debugging info
4971         * TextControl.cs: Tags no longer track their length, it is just
4972         computed from the next tags length, this makes things a little
4973         simpler and reduces places that we have to track length changes.
4974         - Refactored the linetag class a little so we could make it
4975         a base class for different kinds of tags
4976         - Created a image tag, a tag that can have a single image inserted
4977         into it
4978         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
4979         that we can call suspend multiple times.
4980         - Add some debugging methods
4981
4982 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4983
4984         * MdiClient.cs: Add ActivatePreviousChild for 
4985         mdi child window navigation.
4986         * Form.cs: Use MdiClient.ActivateNextChild/
4987         ActivatePreviousChild instead of Form.SelectNextControl
4988         to select the next/previous child since 
4989         SelectNextControl doesn't do it in the same order
4990         as mdi children should do it.
4991
4992 2007-01-16  Chris Toshok  <toshok@ximian.com>
4993
4994         * Control.cs: remove container_selected field.
4995
4996 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4997
4998         * MdiClient.cs: Update main form's ActiveChild when
4999         updating keyboard focus for the mdi child.
5000
5001 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
5002
5003         * Control.cs: PreferredSize fix.
5004
5005         * Form.cs: Add several 2.0 events, properties, and methods.
5006
5007 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
5008
5009         * Form.cs: Provide meaningful message when MdiParent is assigned a
5010         Form that is not an MdiContainer.
5011
5012 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5013
5014         * MdiClient.cs: Update main form's ActiveChild when
5015         activating a mdi child.
5016
5017 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5018
5019         * MdiWindowManager.cs: Fix NRE when merging menus and main form
5020         doesn't have a menu.
5021
5022         * Form.cs: Request NCRecalc after creating a mdi child window.
5023         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
5024         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
5025         
5026         * MdiClient.cs: Add new method SendFocusToActiveChild that either
5027         sends keyboard focus to the active child, or to the MdiClient
5028         if there are no child forms.
5029         
5030 2007-01-15  Chris Toshok  <toshok@ximian.com>
5031
5032         * ListView.cs: drop the *Internal overrides, just do our work in
5033         ItemControl's WndProc instead.
5034
5035         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
5036         of the various controls, and forward the events properly (in the
5037         same manner as MS) from the textbox to the UpDown.  Also the
5038         ActiveControl of the UpDownBase gets set properly now.  Finally,
5039         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
5040
5041         * NumericUpDown.cs: set Text in the ctor.
5042
5043         * DomainUpDown.cs: call UpdateEditText in the ctor.
5044         
5045         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
5046         so even a Selectable = false textbox can be focused if you click
5047         in it.  Go figure.
5048
5049         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
5050         just add their handling in their respective WndProc's.  Also add
5051         an explicit FocusInternal method that doesn't consult CanFocus
5052         before calling Select(this).
5053
5054         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
5055         do our work in WndProc instead.
5056
5057         * TabControl.cs: same.
5058
5059         * ComboBox.cs: same.
5060
5061 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
5062
5063         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
5064         Fixes #80006.
5065
5066 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
5067
5068         * ListViewItem.cs:
5069         * ThemeWin32Classic.cs: Don't draw the item text outside
5070         item bounds in Details view, as well as use trimming.
5071         Fixes bug #80376.
5072
5073 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
5074
5075         * Form.cs: Implement Form.ShowIcon.
5076         
5077         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
5078         null, which when combined with the DlgModalFrame window style removes
5079         the icon from the title bar.
5080
5081 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
5082
5083         * Control.cs: Call OnMouseClick after OnClick. (2.0)
5084
5085 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
5086
5087         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
5088         menu when mdi child windows theres a menu, uses insert to get icon
5089         at first position. Partially fix #80006.
5090
5091 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
5092
5093         * Clipboard.cs: Implement 2.0 methods.
5094
5095 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
5096
5097         * Menu.cs: Implement Insert method of MenuItemCollection class
5098         to fix MenuMerge.
5099
5100 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5101
5102         * ListView.cs: Implement 2.0 FindItemWithText method.
5103
5104 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
5105
5106         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
5107         to calculate menu bar size. Fixes #80290.
5108
5109 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
5110
5111         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
5112
5113 2007-01-11  Chris Toshok  <toshok@ximian.com>
5114
5115         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
5116         initial form.
5117
5118 2007-01-11  Chris Toshok  <toshok@ximian.com>
5119
5120         * LinkLabel.cs: make sure to call base.Select in our Select method
5121         if it turns out we're going to be selected (i.e. if we have a link
5122         that is going to receive focus).  That way our container's
5123         ActiveControl is updated properly.
5124
5125 2007-01-11  Chris Toshok  <toshok@ximian.com>
5126
5127         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
5128         they have 1 or more links.  this fixes the crash gert reported.
5129
5130 2007-01-11  Andreia Gaita  <avidigal@novell.com>
5131
5132         * ContainerControl.cs: Remove ContainerSelected flag, not needed
5133         anymore.
5134
5135         * Control.cs (Controls.Add): Check if control to be added to the collection
5136         is a top level control, and throw an ArgumentException if it is.
5137         Remove ContainerSelectedFlag, not needed anymore.
5138
5139         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
5140         top most control doesn't activate the form. This fixes a problem in the
5141         MessageBox, where the default button wouldn't get focus because the form
5142         was activated before being Loaded - when the Owner is set, SetTopMost is
5143         called, and it would activate it.
5144
5145 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
5146
5147         * Button.cs: When clicked and setting the parent form's DialogResult,
5148         use FindForm instead of Parent, since parent could be a container
5149         control and not the Form.  Fixes bug #80495.
5150
5151 2007-01-10  Chris Toshok  <toshok@ximian.com>
5152
5153         * Form.cs: move the call to SendControlFocus into the same
5154         is_loaded check.
5155
5156 2007-01-10  Chris Toshok  <toshok@ximian.com>
5157
5158         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
5159         It breaks in the face of the new ActiveControl stuff, and should
5160         be unnecessary.
5161
5162         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
5163         activecontrol's focus if it's not already set, after we set
5164         ActiveControl, but before we call OnActivated.  Re-fixes #79667
5165         after the previous focus/active control fixes regressed it.
5166
5167         * Control.cs: reindent some code.
5168         
5169 2007-01-10  Chris Toshok  <toshok@ximian.com>
5170
5171         * Splitter.cs: clearing some outstanding changes from my tree.
5172         Replace all accesses (not writes) to the internal dock_style field
5173         with the Dock property.
5174
5175 2007-01-10  Chris Toshok  <toshok@ximian.com>
5176
5177         * Control.cs: make FireEnter, FireLeave, FireValidating, and
5178         FireValidated virtual.
5179
5180         * Form.cs: override and don't chain up calls to FireEnter and
5181         FireLeave.
5182
5183 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5184
5185         * ListView.cs: Add more text padding space when using
5186         auto resize for columns (the previous value didn't work fine).
5187
5188         * ThemeWin32Classic.cs: Update text position inside columns,
5189         to match the appeareance of .Net.
5190
5191         * ColumnHeader.cs: When using auto resize, only the Width should
5192         depend on the sub items, not the Height. Also, set width after
5193         auto resizing (the value of Width should never remain as -1 or -2).
5194
5195 2007-01-10  Chris Toshok  <toshok@ximian.com>
5196
5197         * Application.cs: fix compilation errors when debug is enabled.
5198
5199 2007-01-10  Chris Toshok  <toshok@ximian.com>
5200
5201         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
5202         add some nice ascii art pictures and explanation of the process).
5203         (GetMostDeeplyNestedActiveControl): new utility function we need
5204         because our ActiveControl can refer to a child container with its
5205         own ActiveControl.
5206
5207         * Form.cs (OnActivated): remove the call to SelectActiveControl
5208         from here, since you can override this method and not chain up,
5209         and winforms still sets the active control.
5210         (OnCreateControl): also remove the unnecessary SelectActiveControl
5211         call from here.
5212         (WndProc): it's actually called from the WM_ACTIVATE block, just
5213         before calling OnActivated.
5214
5215         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
5216         inside the else.  the ActiveControl setter will end up setting
5217         focus on @control.  This keeps us from setting it again (and
5218         generating an extra LostFocus/GotFocus pair).
5219         (Select (bool, bool)): reindent.
5220
5221 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
5222
5223         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
5224         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
5225         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
5226         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5227         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
5228         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
5229         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
5230         ToolStripTextBox.cs: Another wave of corcompare work.
5231
5232 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5233
5234         * ColumnHeader.cs: Implement 2.0 AutoResize method using
5235         the Width property.
5236
5237         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
5238         methods by callling Column.AutoResize method on columns.
5239
5240 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
5241
5242         * Control.cs: Provide proper implementations of PreferredSize
5243         and GetPreferredSize (2.0).
5244
5245 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
5246
5247         * Form.cs: Remove one character (!) to make my previous OnClosing
5248         stuff work for modal windows like MessageBox.
5249
5250 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5251
5252         * ListView.cs:
5253         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
5254         ListView.Columns to get the last displayed column. Fixes #80452.
5255
5256 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
5257
5258         * Label.cs, LinkLabel.cs: Source code identation fixes.
5259
5260 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
5261
5262         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
5263         we dont need to invalidate only borders because when we invalidate four
5264         border lines the invalidate's generates a complete redraw of button, 
5265         because it now invalidate a complete rect some other redraws operations
5266         are fixed. Fixes #80196.
5267         
5268         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
5269         Remove ToolBarInvalidateEntireButton as it is not used.
5270
5271 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
5272         
5273         * Form.cs: Make sure that both OnClosing and OnFormClosing are
5274         called for 2.0 profile.
5275         * CloseReason.cs: Make class internal for 1.1.
5276
5277 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
5278
5279         * ToolStripManager.cs: Implement FindToolStrip functionality.
5280         * ToolStrip.cs: Register and unregister with ToolStripManager.
5281
5282 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
5283
5284         * Control.cs: This was messy.  2.0 moves much of ControlCollection
5285         to ArrangedElementCollection.  Implemented this with as few #if's as 
5286         possible (which is still too many).
5287
5288 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
5289
5290         * Control.cs: Implement SizeFromClientSize() [2.0].
5291
5292 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
5293
5294         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
5295         use Theme.BorderSize to calculate area instead of static value 1, 
5296         by the way use new BorderStaticSize instead     Border3DSize when 
5297         border_static is true. Fixes #79537.
5298         
5299         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
5300         
5301         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
5302         it is not needed.
5303
5304 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5305
5306         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
5307
5308 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5309
5310         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
5311         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
5312         
5313         * Hwnd.cs: 
5314         - border_static field added, it will used to define when a control 
5315         theres 3D border but it must be static (thin).
5316         - In GetWindowRectangle use Theme.BorderSize to calculate area 
5317         instead of static value 1, by the way use new BorderStaticSize instead
5318         Border3DSize when border_static is true.
5319
5320         * XplatUIX11.cs, XplatUIOSX.cs: 
5321         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
5322         
5323         * Theme.cs: BorderStaticSize field added.
5324
5325 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5326
5327         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
5328
5329 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5330
5331         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
5332         mimic same behavior than win32 that set border only in CreateParams,
5333         it fix problems under CreateParams overrides. Fix #79442 and partial
5334         fix #79537.
5335         
5336         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
5337         of thi control you must call recreate handle. 
5338         
5339         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
5340         need to do anything as RecreateHangle will take care about borders.
5341
5342 2007-01-05  Mike Kestner  <mkestner@novell.com>
5343
5344         * ListView.cs: hack to eliminate Lost/Got focus notifications on
5345         cycles between the ItemControl and parent.  Fixes #80388.
5346
5347 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
5348
5349         * Control.cs: Lazy init layout engine. Do not directly use 
5350         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
5351
5352 2007-01-05  Chris Toshok  <toshok@ximian.com>
5353
5354         * DataGrid.cs: don't forceably rebind columns in SetDataSource
5355         unless our list manager has changed (i.e. unless we have reason to
5356         believe our columns have changed).  Fixes #80422.
5357         
5358         also, disable the call do BindColumns in
5359         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
5360         1.1 the event isn't raised in response to a column addition on a
5361         table.)
5362
5363 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5364
5365         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
5366         that inheritors can not call it if they choose.  Fixes bug #80456.
5367
5368 2007-01-05  Andreia Gaita  <avidigal@novell.com>
5369
5370         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
5371         doesn't blow up with a null exception on marshalling.
5372         
5373 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5374
5375         * Control.cs: Implement several 2.0 protected properties and methods.
5376         Ensure that all necessary events are being called when properties
5377         are set.
5378
5379 2007-01-05  Mike Kestner  <mkestner@novell.com>
5380
5381         * ListView.cs: implement PgUp/PgDn for Details view.  Also
5382         fixes First/LastVisibleIndex to use the item_control.ClientRect 
5383         instead of the parent control.  Fixes #80378.
5384
5385 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
5386
5387         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
5388           determine whether to use yard-pound or not (bug #78399).
5389
5390 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5391
5392         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
5393         problems. So it is time to bring back the old popupbutton colors.
5394
5395 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5396
5397         * ColumnHeader.cs:
5398         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
5399         property by using the internal information of the
5400         columns order in ListView.
5401
5402 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
5403
5404         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
5405         Add 2.0 Tag properties.
5406
5407         * LinkArea.cs: Add 2.0 ToString method.
5408
5409 2007-01-03  Chris Toshok  <toshok@ximian.com>
5410
5411         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
5412         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
5413         when we're editing, which fixes #80047.
5414
5415 2007-01-03  Chris Toshok  <toshok@ximian.com>
5416
5417         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
5418         #80404.
5419
5420 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
5421
5422         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
5423         property and implementation.
5424
5425         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
5426         for MdiWindowListItem property.
5427
5428         * ToolStripDropDown.cs: Don't consider hidden menu items while
5429         laying out the menu.
5430
5431 2007-01-03  Andreia Gaita  <avidigal@novell.com>
5432
5433         * SendKeys.cs: window handle is not needed in win32, so just
5434         get the active window for X after parsing keys and don't use
5435         it when building the message; it is passed by parameter to the 
5436         Xplat method and used there to build the message instead. Also,
5437         wait for events to be processed on SendWait, as opposed to Send,
5438         which doesn't wait :) Playing with threads and Send() completely 
5439         hangs on ms.net, only SendWait() works.
5440         
5441         XplatUIX11.cs
5442         X11Display.cs: Check for valid window handle.
5443
5444 2007-01-03  Jackson Harper  <jackson@ximian.com>
5445
5446         * TextControl.cs: Need to prevent wrap calculations when replacing
5447         text (this was there before i removed it accidently).
5448         - Don't update the cursor during the positioning, just set it to
5449         selection_start at the end of the operaion.
5450
5451 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5452
5453         * Control.cs:
5454         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
5455         
5456 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5457
5458         * MonthCalendar.cs: Added Click and DoubleClick events again,
5459         but this time they only hide Control's Click and DoubleClick.
5460         
5461 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
5462
5463         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
5464         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
5465
5466 2007-01-02  Jackson Harper  <jackson@ximian.com>
5467
5468         * TextBoxBase.cs: We move the caret with the split now, so we
5469         don't need to explicitly move the caret after splitting.  This
5470         fixes the caret bumping down an extra line on Enter.
5471
5472 2007-01-02  Miguel de Icaza  <miguel@novell.com>
5473
5474         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
5475         2.72). 
5476
5477         * ScrollableControl.cs: Add Scroll event.
5478
5479 2007-01-02  Mike Kestner  <mkestner@novell.com>
5480
5481         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
5482         to fix all hdr height padding codepaths.  Fixes #80207.
5483
5484 2007-01-02  Chris Toshok  <toshok@ximian.com>
5485
5486         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
5487         setting it to the Control defaults anyway, and it being after the
5488         Dock set was screwing up layout.
5489         (set_Dock): don't short circuit out of setting base.Dock.  Also,
5490         no need to call UpdateStatusBar here, as it'll be re-layed out if
5491         it needs to be.
5492
5493 2007-01-02  Mike Kestner  <mkestner@novell.com>
5494
5495         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
5496         to header height for width == -1. Fixes the rest of #80207.
5497
5498 2007-01-02  Mike Kestner  <mkestner@novell.com>
5499
5500         * ListView.cs: rework the mouse event forwarding everaldo added
5501         to translate the coordinates to the parent control not
5502         raise the parent events until after we've done our work. Hover
5503         needs more work, in the case where HoverSelection is on, because
5504         the item control receives more than one MouseHover per Enter
5505         event, so we need to ensure only the "first" hover gets forwarded.
5506         Opening a minor bug for that.
5507
5508 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
5509
5510         * CheckedListBox.cs: Fixed SelectionMode to match MS.
5511         * ListControl.cs: Implemented AllowSelection property. Removed extra
5512         tabs.
5513         * ListBox.cs: Implemented AllowSelection property.
5514
5515 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5516
5517         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
5518         SelectedItem, it prevent for errors when you must disable item
5519         before perform click. Fixes #80409.
5520
5521 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5522
5523         * MenuAPI.cs: Prevent second level and beyond submenus to close
5524         until first level when move out side of popup.
5525         
5526 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5527
5528         * MenuAPI.cs:
5529         - Down submenu positin in three pixels.
5530         - Closes sub menu when mouse leaves from menu. Fixes #80402.
5531
5532 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5533
5534         * ThemeWin32Classic.cs:
5535         - Fix popup menu size adding one pixel on the top.
5536         - Down menu item border from two to one to mimic Win32.
5537         - Some source identation fixes. 
5538
5539 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5540
5541         * ThemeWin32Classic.cs: Use float numbers to calculate size and
5542         position of menu arrows, it fix wrong arrow size.
5543
5544 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5545
5546         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
5547         instead of line, it simplify draw operation and fix it using 3D
5548         borders to mimic Win32.
5549
5550 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
5551
5552         * StatusStrip.cs: Add implementation of the sizing grip.
5553
5554         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
5555         StatusStrip rendering.
5556
5557 2006-12-31  Chris Toshok  <toshok@ximian.com>
5558
5559         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
5560         override the layout style (anchor/dock) of the control.  assign to
5561         Dock instead.  Fixes bug #80416.
5562
5563         * ToolStrip.cs: same.
5564
5565 2006-12-31  Andreia Gaita  <avidigal@novell.com>
5566
5567         * ContainerControl.cs: Use ContainerSelected flag to check if 
5568         a Container is directly selected, or if Select is called on a 
5569         non-container. If a container is directly selected, focus events 
5570         should not be raised.
5571         Apply #80411 patch to throw exception on set_ActiveControl if 
5572         control is the same as the current one.
5573         
5574         * Control.cs: Use ContainerSelected flag (see above).
5575         Add invalidation check to raise event but not invalidate if 
5576         dimensions are 0.       
5577         Apply #80411 patch.
5578         
5579
5580 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
5581
5582         * MenuAPI.cs: After click, dont close popup menu when menu is
5583         ContextMenu. Fixes #80399.
5584
5585 2006-12-30  Chris Toshok  <toshok@ximian.com>
5586
5587         * ContainerControl.cs: make sure we throw the exception if the
5588         container control doesn't contain the control we're setting
5589         ActiveControl to.
5590
5591 2006-12-30  Chris Toshok  <toshok@ximian.com>
5592
5593         * Control.cs (SetTopLevel): fix the exception raised by
5594         SetTopLevel for child controls.
5595         (set_Anchor): call UpdateDistances when setting the anchor type.
5596         This fixes bug #80336.
5597
5598 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5599
5600         * Theme.cs: For now, revert back to 8pt font.
5601
5602 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
5603
5604         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
5605         Fixes #80395.
5606
5607 2006-12-29  Chris Toshok  <toshok@ximian.com>
5608
5609         * Control.cs: reorder the code in OnResize to give the same event
5610         ordering as MS.
5611
5612 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5613
5614         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
5615         TileHorizontally and TileVertically.
5616         
5617 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
5618
5619         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
5620         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
5621         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
5622         Corrected copyright and email adress.
5623
5624 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5625
5626         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
5627         of Exception in FullPath property if no TreeView is associated with
5628         the TreeNode.
5629
5630 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5631
5632         * Theme.cs: Marked default_font as private, and initialize it in ctor
5633         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
5634         on 2.0 profile.
5635         * ThemeGtk.cs: Removed default_font intialization.
5636         * ThemeWin32Classic.cs: Removed default_font initialization.
5637
5638 2006-12-28  Chris Toshok  <toshok@ximian.com>
5639
5640         * Control.cs: fix a couple of place where we were creating handles
5641         more aggressively than we should be.  Fixes ControlRefresh unit
5642         tests.
5643
5644 2006-12-28  Chris Toshok  <toshok@ximian.com>
5645
5646         * Control.cs: contrary to what the comment said, Control.Dock does
5647         not supercede Control.Anchor - the last one you assign to decides
5648         the layout behavior.  so we need to keep track of which was the
5649         last set.  Also, fix some of the affected property arguments in
5650         PerformLayout calls, and remove an redundant parent.PerformLayout
5651         call in OnResized.
5652
5653         Add a VisibleInternal property, which returns is_visible.  We
5654         can/should get rid of all the usage of this field elsewhere.
5655
5656 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5657         
5658         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
5659         control style, not DoubleBuffer. Added UseDoubleBuffering property
5660         that indicates whether doublebuffering is enabled and supported.
5661         (comment from and code based on Gert Driesen's patch in #80324).
5662         Fixes #80324.
5663
5664 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5665         
5666         * Control.cs: Fixed a NRE.
5667
5668 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5669
5670         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
5671         for 2.0.
5672
5673 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5674
5675         * Control.cs: Rewrote double buffering, now a seperate
5676         class handles all the buffering, no Graphics is disposed of
5677         until the painting is finished (earlier implementation 
5678         would crash if the control was resized in the OnPaint, 
5679         since it would cause the double buffer to be recreated
5680         and the old one disposed), a separate Graphics is 
5681         created for every paint (MS behaviour and anyways the state
5682         of the Graphics would have to be saved and restored otherwise)
5683         
5684         * XplatUIDriver.cs: 
5685         * XplatUIX11.cs:
5686         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
5687         so that we can get the graphics for the back buffer without
5688         having to create a new one and remove the offscreen_dc parameter
5689         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
5690         
5691 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5692
5693         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
5694         Also make virtual all the key-related methods.
5695
5696         * ListViewItem.cs: Make virtual the key related methods for
5697         ListViewSubItemCollection.
5698
5699 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5700
5701         * ListView.cs:
5702         * ListViewItem.cs:
5703         * ThemeWin32Classic.cs:
5704         * Theme.cs: Initial support for Tile view in ListView,
5705         as well as the implementation of the required bits for it (Item
5706         and Subitem).
5707
5708 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5709
5710         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
5711         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
5712         Provide useful exception messages.
5713
5714 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5715
5716         * TrackBar.cs: Remove a warning.
5717         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
5718         when used by DateTimePicker, fixes #80287. This also requires that 
5719         MonthCalendar implements it's own drawing for the yearly updown control,
5720         otherwise the Capture tracking would be too complicated. Removed the Click 
5721         and DoubleClick events (according to comments they were hiding the base class
5722         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
5723         raise these events, not that they cannot be raised. It is possible to raise 
5724         them by calling OnClick and OnDoubleClick). Added two internal fields in 
5725         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
5726         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
5727         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
5728         event, no longer needed.
5729         
5730 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5731
5732         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
5733         true if new value differs from current value.
5734
5735 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5736
5737         * Control.cs: ControlCollection.Count must be public. Fixed build of
5738         unit tests.
5739
5740 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5741
5742         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
5743
5744 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5745
5746         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
5747
5748 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5749
5750         * Control.cs: Invalidates control including when Width and Height is 
5751         equal zero or is not visible, only Paint event must be care about 
5752         this. Fixes #79913.
5753
5754 2006-12-26  Chris Toshok  <toshok@ximian.com>
5755
5756         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
5757         more corcompare work.
5758
5759         * DataGridView.cs: fix compiler warning.
5760
5761         * ColumnHeader.cs: some corcompare work, and also take the
5762         opportunity to make the internal fields private.
5763
5764         * ListView.cs: fix the fallout from the above field change.
5765
5766 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5767
5768         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
5769         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
5770         ToolStripTextBox.cs: Fixes to events and corcompare.
5771
5772 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5773
5774         * ListView.cs: Call owner.OnMousexx event to propagate events from
5775         item to ListView. Fixes #80367.
5776
5777 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5778
5779         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
5780         if value is less than one. ItemHeight should not be set to a value
5781         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
5782         Removed extra tabs.
5783
5784 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5785
5786         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
5787         * ToolStripStatusLabel.cs: Add Spring for Moma.
5788
5789 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5790
5791         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
5792         Fixed code formatting. Removed debug code.
5793         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
5794
5795 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5796
5797         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
5798         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
5799         ArgumentOutOfRangeException if ColumnCount is negative. In 
5800         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
5801         less than 4 or higher than 32768.
5802         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
5803         Fixed FormatProvider to return CurrentCulture unless explicitly set.
5804         Fixed IsFormatProviderDefault to return true if FormatProvider has
5805         not been explicitly set.
5806
5807 2006-12-25  Chris Toshok  <toshok@ximian.com>
5808
5809         * Application.cs: add a couple of 2.0 events.
5810
5811 2006-12-25  Chris Toshok  <toshok@ximian.com>
5812
5813         * Control.cs: fix compiler warning.
5814
5815         * AxHost.cs: corcompare fixes.
5816
5817         * ApplicationContext.cs: corcompare fixes.
5818
5819 2006-12-25  Chris Toshok  <toshok@ximian.com>
5820
5821         * Control.cs: only update dist_right/dist_bottom if the
5822         width/height is > 0.  this fixes anchored controls being resized
5823         smaller until they disappear and then resized larger again.
5824
5825 2006-12-25  Chris Toshok  <toshok@ximian.com>
5826
5827         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
5828         since they're nothing more than X/Left and Y/Top, respectively.
5829
5830         Also, move back to a per-control Bitmap/Graphics for
5831         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
5832         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
5833         Height.
5834
5835 2006-12-25  Miguel de Icaza  <miguel@novell.com>
5836
5837         * MessageBox.cs: Implemented overload that takes a new "bool
5838         displayHelpButton" by adding a new internal field "show_help".
5839         When clicked this will raise the HelpRequested on the owner or the
5840         main form. 
5841
5842         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
5843         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
5844
5845         * ListView.cs: Add support ColumnWidthChanged and
5846         ColumnWidthChanging. 
5847
5848         Add support for ColumnReordered event.
5849         (ReorderColumn): Add NET_2_0 specific support for cancelling the
5850         reorder.
5851
5852         Very nice codebase!
5853
5854         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
5855
5856         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
5857
5858 2006-12-24  Chris Toshok  <toshok@ximian.com>
5859
5860         * GridTablesFactory.cs: 2.0 corcompare work.
5861
5862         * ToolStripContainer.cs: add "override" to
5863         ContextMenuStripChanged, and remove the local event object.
5864
5865         * ToolStripDropDown.cs: same with a couple properties.
5866
5867         * ToolStripPanel.cs: same with AutoSizeChanged event.
5868
5869         * TextBoxBase.cs: add "override" to AutoSizeChanged.
5870
5871         * Form.cs: add the remaining 2.0 events, and do some corcompare
5872         attribute work.
5873
5874         * DateTimePicker.cs: add "new" to padding.
5875
5876         * ButtonBase.cs: use Control's use_compatible_text_rendering.
5877
5878         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
5879
5880         * DataGridView.cs: PaddingChanged is overridden.
5881
5882 2006-12-24  Chris Toshok  <toshok@ximian.com>
5883
5884         * Control.cs: corecompare work here too.
5885
5886         * DataGridViewElement.cs, DataGridView.cs,
5887         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
5888         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
5889         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
5890         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
5891         work.
5892
5893 2006-12-24  Miguel de Icaza  <miguel@novell.com>
5894
5895         * Control.cs: Switched the error message on the console for a
5896         todo.  A review of the code will have to cope with this anyways
5897         (since its a large feature, it is in our radar) and it was
5898         producing too much output when running PDN.
5899
5900         * ToolStripComboBox.cs: Set the text when the SelectedIndex
5901         changes.  Applications depend on this (PDN 2.72)
5902
5903 2006-12-23  Chris Toshok  <toshok@ximian.com>
5904
5905         * TableLayoutSettings.cs: finish up the corcompare work for this
5906         class.
5907
5908 2006-12-23  Chris Toshok  <toshok@ximian.com>
5909
5910         * Control.cs: make SetImplicitBounds internal, do some futzing
5911         with LayoutEngine so that it's available in 1.1, and remove the
5912         entire duplicated code mess from PerformLayout.  Use
5913         System.Windows.Forms.Layout.DefaultLayout instead.
5914
5915         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
5916
5917 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5918
5919         * Form.cs: Add MainMenuStrip property.
5920
5921 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5922
5923         * Control.cs: Add ContextMenuStrip property and implementation.
5924         Fix ContextMenu implementation to show menu centered on control when
5925         activated using the keyboard instead of showing at screen (0,0).
5926
5927         * ToolStripDropDown.cs: Fix needed overload of Show ().
5928
5929 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5930
5931         * Menu.cs: Name property added for 2.0 profile.
5932         
5933 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5934
5935         * Menu.cs: Update information about FindMenuItem, method to be
5936         implemented soon.
5937
5938 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5939
5940         * MenuAPI.cs: When deselect items deselect also selected subitems.
5941         
5942 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5943
5944         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
5945         FindSubItemByCoord to found itens that is not active, also an
5946         cheking added to FindSubItemByCoord to search for items only 
5947         in visible popup windows. Fixes #80274.
5948
5949 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
5950
5951         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
5952         internal property, it be care about change ExStyle. 
5953
5954 2006-12-22  Andreia Gaita  <avidigal@novell.com>
5955
5956         * ContainerControl.cs: set activeControl for parent forms up the 
5957         tree when the new activecontrol is a container.
5958         When validating the active control, if it is a container, also
5959         raise up the validation for it's active control. Fixes #80280
5960         
5961         * Control.cs: Add internal property flag and check to prevent
5962         Focus events from getting raised when Select() is called for
5963         a ContainerControl. There are still too many focus events being
5964         raised at the moment though.
5965         Cleaned up the code a bit.
5966
5967 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5968
5969         * Control.cs: Added all missing 2.0 events.and
5970         fixed a couple of corcompare issues.
5971         * TrackBar.cs: Implemented missing 2.0 bits.
5972         * MonthCalendar.cs, 
5973         * DateTimePicker.cs, 
5974         * MdiClient.cs: Fixed some corcompare issues.
5975
5976 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5977
5978         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
5979         SplitterPanel.cs: corecompare work.
5980
5981 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5982
5983         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
5984         Clean up warnings for BackgroundImageChanged and PaddingChanged
5985         events now that they are implemented in Control.cs.
5986
5987 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5988
5989         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
5990         
5991         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
5992         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
5993         of TableLayoutPanel and supporting cast.
5994
5995 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5996
5997         * XplatUIWin32.cs: 
5998         - GrabWindow now confines the mouse pointer to the confine window.
5999         - Added Win32ClipCursor and Win32GetClipCursor.
6000
6001         * Control.cs: 
6002         - Added CaptureWithConfine to be able to capture and confine 
6003         mouse pointer.
6004         
6005         * InternalWindowManager.cs: 
6006         - Call CaptureWithConfine instead of Capture if we're an
6007         MdiChild (fixes #79982).
6008
6009 2006-12-21  Chris Toshok  <toshok@ximian.com>
6010
6011         * DataGrid.cs: guard against the initial state of selection, where
6012         selection_start == -1.  make sure we only select from index >= 0.
6013         Fixes bug #80291.
6014
6015 2006-12-21  Chris Toshok  <toshok@ximian.com>
6016
6017         * Control.cs: we don't need to be so draconian with
6018         UpdateDistances, and we thusly don't need to call it before
6019         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
6020
6021 2006-12-21  Daniel Nauck  <dna@mono-project.de>
6022
6023         * ComboBox.cs,
6024         TextBox.cs: Implemented AutoComplete properties.
6025
6026 2006-12-20  Chris Toshok  <toshok@ximian.com>
6027
6028         * DataGridView*.cs: some corecompare work.
6029
6030 2006-12-20  Jackson Harper  <jackson@ximian.com>
6031
6032         * XplatUIX11.cs: We need to hide the caret when deleting it,
6033         otherwise you get carets left lying around everywhere.
6034         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
6035         prevents getting some weird half drawn caret tracers when
6036         scrolling.
6037         * TextControl.cs: Attempt to reduce the number of times we need to
6038         recreate the caret.
6039
6040 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
6041
6042         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
6043
6044 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6045
6046         * DateTimePicker.cs:
6047         - Implemented missing 2.0 bits.
6048         - Changed some default values to match MS.
6049         
6050 2006-12-20  Jackson Harper  <jackson@ximian.com>
6051
6052         * TextBoxBase.cs: When changing the font across the document we
6053         can't recalculate after changing each line, since that will cahnge
6054         the line count.
6055         - PreferredHeight is a little different than i thought.
6056         - When backspacing, move the caret before we do the actual char
6057         delete, because when that delete crosses a wrap boundary the
6058         positional information will change.
6059
6060 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6061
6062         * Control.cs: Added some missing 2.0 bits: 
6063         BackgroundImageLayout, BackgroundImageLayoutChanged, 
6064         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
6065         add IBindableComponent and IDropTarget implementation.
6066         
6067         * MonthCalendar.cs: 
6068         - Added all missing 2.0 features:
6069         BackgroundImageLayout, RightToLeftLayout, 
6070         OnHandleDestroyed, RightToLeftLayoutChanged, 
6071         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
6072         PaddingChanged.
6073         - Rewrote all the BoldDate code, it was completely broken.
6074         - Fixed all the tests (the tests can now be re-enabled, the
6075         problems were not with the tests, but with the control, it was
6076         mostly broken).
6077         
6078         * DateTimePicker.cs: Changed the location where the 
6079         MonthCalendar is shown.
6080         
6081 2006-12-19  Chris Toshok  <toshok@ximian.com>
6082
6083         * DataGridView.cs: add IDropTarget implementation.
6084
6085         * ToolStripPanel.cs: add IDropTarget implementation.
6086
6087 2006-12-19  Jackson Harper  <jackson@ximian.com>
6088
6089         * TextControl.cs: soft now means something different than what it
6090         used to mean, we want to move the caret regardless of whether or
6091         not this break was soft (would we really have wanted the caret
6092         to not move with the break in the old context?)
6093         * TreeView.cs: Make sure we factor in the vert scrollbar when
6094         calculating the horizontal scrollbar's maximum.
6095
6096 2006-12-19  Andreia Gaita  <avidigal@novell.org>
6097
6098         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
6099         check for keywords in alternate casing, close bug #80049.
6100
6101 2006-12-19  Chris Toshok  <toshok@ximian.com>
6102
6103         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
6104         methods (which all do nothing).
6105
6106         * IDropTarget.cs: add the 4 missing methods.
6107
6108 2006-12-19  Chris Toshok  <toshok@ximian.com>
6109
6110         * TableLayoutRowStyleCollection.cs: corcompare work.
6111         
6112         * TableLayoutSettings.cs: same.
6113
6114         * TableLayoutStyle.cs: same.
6115
6116         * TableLayoutColumnStyleCollection.cs: same.
6117
6118 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
6119
6120         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
6121         TableLayoutPanel I've had in my local tree for way too long.
6122
6123 2006-12-19  Miguel de Icaza  <miguel@novell.com>
6124
6125         * TableLayoutSettings.cs: Finish the public API (still needs all
6126         the logic to update on changes). 
6127
6128         * TableLayoutPanelCellPosition.cs: new file.
6129         
6130         * TableLayoutRowStyleCollection.cs,
6131         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
6132         TableLayoutSettings.cs: Track the final 2.0 table api.
6133
6134 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6135
6136         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
6137         and Image List 2.0 members for ColummnHeader.
6138         * ListView.cs: Add key-related 2.0 methods for
6139         ColumnHeaderCollection.
6140
6141 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
6142
6143         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
6144         ArgumentNullException if items argument is null. Ignore null item in
6145         arrays. Removed extra tabs.
6146
6147 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
6148
6149         * MonthCalendar.cs: Fixed InvalidCastException.
6150
6151 2006-12-19  Jackson Harper  <jackson@ximian.com>
6152
6153         * TextControl.cs: Don't increment the position here.
6154         - When calculating char positions only add in the line break size
6155         for hard line breaks.
6156
6157 2006-12-19  Andreia Gaita  <avidigal@novell.org>
6158
6159         * SendKeys.cs: Changed some things to match ms.net behaviour
6160         when parsing shifted capital letters.
6161         
6162         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
6163         Add window handle as parameter to SendInput. X11 needs the 
6164         window handle, and the handle being passed      to it in the keys 
6165         queue is the active control handle (which windows needs), not 
6166         the window handle.
6167         
6168         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
6169         to support SendKeys on X.       
6170         
6171         * X11Keyboard: Implement helper method to lookup a linux keycode
6172         given the virtual keycode. Added table of keycode-2-virtualkey
6173         values to support this.
6174
6175 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6176
6177         * ListView.cs: Add support for SelectedIndexCollection
6178         and SelectedItemCollection 2.0 methods. Implement support
6179         for ImageKey too.
6180         * ListViewItem.cs: Add support for ListViewSubItemCollection
6181         2.0 methods. Also, fix an incorrect behavior of AddRange method
6182         (it shouldn't call Clear).
6183         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
6184
6185 2006-12-19  Jackson Harper  <jackson@ximian.com>
6186
6187         * RichTextBox.cs: 
6188         * TextBoxBase.cs: New args for FormatText
6189         * TextControl.cs: Rewrote the main drawing method, this version
6190         feels a little easier to understand and debug to me.  Hopefully it
6191         does to others also
6192         - Fix FormatText to OR in the new formating values.  Added
6193         FormatSpecified param, basically this works in the same way as
6194         BoundsSpecified in Control.
6195         - Set the caret properties when the caret is positioned.
6196         - When wrapping text make sure that we calculate the width of the
6197         last character
6198         - when calculating alignments we might have wrapped down to the
6199         next line, so don't search for an individual tag, search for the
6200         end of the line
6201         - We need to invalidate the selection area when we replace the
6202         selection.
6203         
6204 2006-12-19  Daniel Nauck  <dna@mono-project.de>
6205
6206         * Application.cs: add Restart () 2.0 support
6207
6208 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6209
6210         * MenuItem.cs: Invalidate menu item rectangle after change Enable
6211         property. Fixes #80268.
6212         
6213 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6214
6215         * MenuAPI.cs: Dont trigger select event when closes top menu
6216         item. Fixes #80270.
6217
6218 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6219
6220         * MenuAPI.cs: When you click on menuitem only trigger onselect
6221         event for top menu itens. Fixes #80271.
6222         
6223 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6224
6225         * MdiWindowManager.cs: Make IconicBounds depend on
6226         the bottom of MdiClient, not the top (fixes #80267)
6227         
6228 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6229
6230         * MdiClient.cs: Added missing 2.0 attribute
6231
6232 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6233
6234         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
6235         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
6236
6237 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6238
6239         * MenuAPI.cs: Fix click when menuitem is not popup,
6240         this regression was caused by last commit (#80272).
6241
6242 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
6243
6244         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
6245         fire click event or close menu. Fixes #80272.
6246
6247 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6248
6249         * ListViewHitTestInfo.cs: add
6250
6251 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6252
6253         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
6254         * FlatButtonAppearance.cs: add
6255         * DockingAttribute.cs: add
6256
6257 2006-12-17  Chris Toshok  <toshok@ximian.com>
6258
6259         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
6260         and rebind our columns when it does - this way, if you make
6261         changes to the DataTable (or set the Table attribute on a DataView
6262         after setting it as the DataGrid's DataSource, the changes are
6263         made visible.)  Fixes bug #80107.
6264
6265 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6266
6267         * ListViewGroup.cs: add internal Location property for layouting.
6268         * Theme.cs: add abstract ListViewGroupHeight function.
6269         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
6270
6271 2006-12-16  Andreia Gaita  <avidigal@novell.com>
6272
6273         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
6274         Added reset of selected index to 0 when adding first tab page.
6275         Fixes #80264
6276         
6277         * NumericUpDown.cs: Fix NET_2_0 check
6278
6279 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6280
6281         * ListViewGroup.cs: fixed DefaultValueAttribute value
6282
6283 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6284
6285         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
6286
6287 2006-12-15  Miguel de Icaza  <miguel@novell.com>
6288
6289         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
6290         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
6291         ScrollableControl.cs: Add a handful of methods that are
6292         overwritten in 2.0 
6293
6294 2006-12-15  Chris Toshok  <toshok@ximian.com>
6295
6296         * XplatUIWin32.cs: initial implementation of the Reversible
6297         drawing functions.  there are some problems.  DrawReversibleFrame
6298         doesn't seem to work at all for Dashed FrameStyle, and in the
6299         Thick case there are drawing errors at the corners (we probably
6300         need to bind Rectangle instead of doing moveto/lineto's.)
6301
6302 2006-12-16  Andreia Gaita  <avidigal@novell.com>
6303         
6304         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
6305         to send blocks of key messages. Send accumulates keys to send with Flush, 
6306         while SendWait sends all keys immediately.
6307                 
6308         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
6309         XplatUIX11.cs,  XplatUIX11-new.cs:
6310         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
6311         to Win32 SendInput.
6312         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
6313         
6314         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
6315         testing for ms.net on this class is very tricky, as the tests run too fast 
6316         to allow the hook to release, essentially freezing the keyboard and the 
6317         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
6318         category :p
6319
6320 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6321
6322         * Padding.cs: fixed serialization compability to MS ("_var" field names),
6323                         added missing attributes.
6324  
6325 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6326
6327         * ListViewGroup.cs: Added missing attributes.
6328         * ListViewGroupCollection.cs: Added missing attributes.
6329
6330 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6331
6332         * ListViewItem.cs: fixed ListViewSubItem text property.
6333
6334 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6335         
6336         * Control.cs: Added missing 2.0 attributes
6337         
6338 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6339         
6340         * MdiClient.cs: Added missing 2.0 attribute.
6341         * MonthCalendar.cs: Added some missing 2.0 attributes 
6342         and properties.
6343         
6344 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6345
6346         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
6347
6348 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
6349
6350         * MainMenu.cs: Add the new 2.0 constructor to help out people
6351         using the MainMenu in VS2005.
6352
6353 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6354         
6355         * MdiChildContext.cs: Removed it, no longer used.
6356         * MdiClient.cs: Added missing 2.0 attributes.
6357         
6358 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6359         
6360         * InternalWindowManager.cs: Fix a NullRef with previous 
6361         changes for toolwindows.
6362         
6363 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6364
6365         * Control.cs: 
6366         - Added AfterTopMostControl to allow for certain controls 
6367         to always stay on top when normal controls are brought to 
6368         front.
6369         
6370         * XplatUIWin32.cs: 
6371         - (DrawInversibleRectangle): Get window rectangle from Win32 
6372         in stead of from control, since Win32 doesn't calculate
6373         screen coords correctly from control's Location if it 
6374         have docked siblings.
6375         
6376         * MdiWindowManager.cs:
6377         - Correct the control menu popup location when clicked on
6378         the maximized form icon. (fixes #80223.1)
6379         - Don't show moving rectangle if mouse hasn't moved from
6380         the original clicked point.
6381         - Removed FormGotFocus handler (not used).
6382         - Calculate the control buttons location from the main
6383         window's size and not client size (fixes #79770).
6384         - Form is now closed when the form icon is double-clicked
6385         (fixes #79775). 
6386         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
6387         
6388         * InternalWindowManager.cs:
6389         - Moved some MDI-only methods to MdiWindowManager.
6390         - Removed unused properties and methods.
6391         - Unified method naming for methods handling wm messages.
6392         - Moved all message handling to seperate methods for
6393         each message.
6394         
6395         * ThemeWin32Classic.cs:
6396         - DrawManagedWindowDecorations now draws the title bar 
6397         with a gradient brush.
6398         - Add a CPDrawButtonInternal that allows us to specify
6399         light, normal and dark colors for the buttons (control 
6400         buttons for MDI children were drawn with the same light
6401         color as the background, therefore loosing the 3D effect).
6402         
6403         * SizeGrip.cs:
6404         - Add a CapturedControl property that is used to 
6405         determine the control to resize (defaults to parent). 
6406         Needed for MdiClient, since its SizeGrip's parent is
6407         MdiClient, but the control to resize is the main form.
6408         
6409         * MdiClient.cs:
6410         - Set SizeGrip's CapturedControl to the main form in order
6411         to resize the main form and not the MdiClient.
6412         - Override AfterTopMostControl to leave the scrollbars 
6413         always on top.
6414
6415 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6416
6417         * ListView.cs: fixed ListViewItemCollection AddRange and
6418                         implemented ListViewItemCollection AddRange 2.0 support.
6419
6420 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6421
6422         * ListViewGroup.cs: Add.
6423         * ListViewGroupCollection.cs: Add
6424         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
6425         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
6426                                 stub for ImageKey 2.0 support.
6427
6428 2006-12-14  Mike Kestner  <mkestner@novell.com>
6429
6430         * ListView.cs: add text padding to the autocalculation for columns
6431         of width -2.  Fixes #80207.
6432  
6433 2006-12-14  Mike Kestner  <mkestner@novell.com>
6434
6435         * ListView.cs: add some index guarding for partial row navigation 
6436         logic.  Fixes #80250.
6437
6438 2006-12-14  Mike Kestner  <mkestner@novell.com>
6439
6440         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
6441         are added or inserted to the collection.  Fixes #81099.
6442
6443 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
6444
6445         * MenuAPI.cs: Closes menu when right click out side of popup
6446         it fix problem in ContextMenu and MainMenu. Fixes #80252.
6447
6448 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6449
6450         * ListViewItem.cs: Fix dumb error.
6451
6452         * ListView.cs: Add Find and ContainsKey methods in 
6453         ListViewItemCollection, and also return true for IsReadOnly
6454         and IsFixedSize (changes for 2.0). 
6455
6456 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
6457
6458         * Control.cs: Allow Region to be set to null.
6459
6460 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6461
6462         * MdiWindowManager.cs: Remove unused (commented out) code.
6463         * Form.cs: When the MdiChild is maximized, the form needs 
6464         WM_NCMOUSELEAVE, so request it.
6465         * InternalWindowManager.cs: 
6466         - Added tooltips to control buttons.
6467         - Removed duplicated control button handling code.
6468         - Removed unused (commented out) code.
6469         
6470 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
6471
6472         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
6473         was used because we must set cursor without trigger ChangeCursor event
6474         and without change Cursor control property. Fixes #79963.
6475
6476 2006-12-12  Andreia Gaita  <avidigal@novell.com>
6477         
6478         * Control.cs: Check if Region setter value is null, and ignore
6479
6480 2006-12-12  Jackson Harper  <jackson@ximian.com>
6481
6482         * TextControl.cs: We were almost always drawing one more line then
6483         needed, since the GetLineByPixel will return the last line found
6484         at that pixel. In most cases though, we were invalidating up to
6485         the junction between two lines.
6486         - Improve debug code.
6487
6488 2006-12-12  Chris Toshok  <toshok@ximian.com>
6489
6490         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
6491         and FillReversibleRectangle.
6492
6493         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
6494         and FillReversibleRectangle.
6495
6496         * XplatUIWin32.cs: add stubs which do nothing for
6497         DrawReversibleFrame, DrawReversibleLine, and
6498         FillReversibleRectangle.
6499
6500         * XplatUIOSX.cs: add stubs which raise NIE for
6501         DrawReversibleFrame, DrawReversibleLine, and
6502         FillReversibleRectangle.
6503
6504         * XplatUIX11.cs: add working implementation for
6505         DrawReversibleFrame, DrawReversibleLine, and
6506         FillReversibleRectangle.
6507         
6508         * ControlPaint.cs: implement DrawReversibleFrame,
6509         DrawReversibleLine, and FillReversibleRectangle, by calling into
6510         the appropriate XplatUI method.
6511
6512 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6513
6514         * Form.cs: Make MdiClient have the focus even if it's
6515         not selectable, since it should receive WM_KEY* and WM_MOUSE 
6516         messages. Fixes #79907.
6517         
6518 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6519
6520         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
6521         queried after the window is created.
6522         
6523         * XplatUIX11.cs: Added SendParentNotify to implement 
6524         WM_PARENTNOTIFY logic. Fixes #79965.
6525         
6526         * Control.cs: Added MakeParam.
6527         
6528 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6529
6530         * MdiClient.cs: Resume Layout before setting window
6531         states (fixes #80201).
6532
6533 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6534
6535         * MenuAPI.cs: Deselect a menu item after performing
6536         the click (fixes #80197).
6537
6538 2006-12-11  Jackson Harper  <jackson@ximian.com>
6539
6540         * TextBoxBase.cs: We need to cap this value, since Maximum -
6541         ViewPortHeight can be less than zero.
6542         - Only do selection with the left mouse button.
6543         * TextBox.cs: Don't tell the world that we have a context menu.
6544         * Control.cs: New method so that we can control whether or not the
6545         context menu is visible outside MWF.
6546
6547 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6548
6549         * ToolBarButton.cs: Fix text positon. 
6550
6551 2006-12-11  Miguel de Icaza  <miguel@novell.com>
6552
6553         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
6554
6555         * Control.cs (DoubleBuffered): Add implementation.
6556
6557         * Application.cs (OpenForms): Add.
6558
6559 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6560
6561         * Form.cs: Use opacity instead of Opactiy to determine if we need
6562         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
6563
6564 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6565
6566         * Control.cs: Fix NRE if Control.Site was set to null.
6567
6568 2006-12-11  Chris Toshok  <toshok@ximian.com>
6569
6570         * Control.cs: ControlCollection.Remove should return if the arg is
6571         null, and ControlCollection.SetChildIndex should raise a ANE.
6572
6573 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
6574
6575         * Control.cs: Verify value set for Dock property. Code formatting
6576         updates.
6577
6578 2006-12-11  Jackson Harper  <jackson@ximian.com>
6579
6580         * TextControl.cs: Draw the caret and the selection when a flag is
6581         set on the owner.
6582         * TextBoxBase.cs: We want to draw the caret and the selection for
6583         TextBox but not for TextBoxBase.
6584         - If the window is resized and scrolling is no longer needed (the
6585         whole doc is visible) set the scroll position to zero.
6586         - The default SelectWord (the one TextBox uses) should move the
6587         caret to the end of the word.
6588         - SelectAll moves the caret to the end of the selection.
6589         * TextBox.cs: We don't selectall on focus, we just do it when the
6590         control is created.
6591         
6592 2006-12-11  Mike Kestner  <mkestner@novell.com>
6593
6594         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
6595
6596 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6597
6598         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
6599         2.0 support.
6600         * ListViewItem.cs: Add Name 2.0 property.
6601
6602 2006-12-11  Andreia Gaita  <avidigal@novell.com>
6603
6604         * TabControl.cs: Set visibility on selected or default tab 
6605         when tabcontrol handle is created, so that it's contents
6606         actually show up (duh). Fixes #80193
6607         Don't redraw the control if there is no handle created, as
6608         the selected index might be completely invalid. Added some tests
6609         to check for this.
6610
6611 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6612
6613         * ToolBar.cs: Uses maximun width and height of all buttons as 
6614         button rectangle when ButtonSize specified, it looks strange but
6615         is what happens in Win32. Fixes #80189.
6616
6617 2006-12-11  Jackson Harper  <jackson@ximian.com>
6618
6619         * TextControl.cs: Need to track undo levels ourself, since
6620         compound actions will mess them up.
6621
6622 2006-12-10  Andreia Gaita  <avidigal@novell.com>
6623
6624         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
6625         SelectedIndex value is changed (even if it's not valid).
6626         Reset SelectedIndex to 0 when the handle is created and if
6627         the current index is invalid.
6628         Fixes SelectdeIndex unit tests and #80128
6629
6630 2006-12-08  Chris Toshok  <toshok@ximian.com>
6631
6632         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
6633         calls EndEdit, it needs to be called before we set current_cell to
6634         its new value.  Otherwise, we end up committing the value in the
6635         textbox to the new cell as well.  Fixes bug #80160.
6636
6637 2006-12-08  Chris Toshok  <toshok@ximian.com>
6638
6639         * Form.cs (set_CancelButton): if the button's DialogResult is
6640         None, set it to Cancel.  Fixes bug 80180.
6641
6642 2006-12-08  Jackson Harper  <jackson@ximian.com>
6643
6644         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
6645         to watch ourselves when setting the canvas size and setting the
6646         scrollbar values.
6647
6648 2006-12-08  Chris Toshok  <toshok@ximian.com>
6649
6650         * DataGrid.cs: comment out the two MakeTransparent calls for the
6651         time being so people using trunk (and not 1.2.2) on windows can
6652         actually use the datagrid.  This deals with bug #80151.
6653
6654 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6655
6656         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
6657         Graphics.DrawImage (image, int, int, int, int) overload instead
6658         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
6659         the dpi difference and was blurring images it drew.
6660         [Fixes bug #79960]
6661
6662 2006-12-08  Chris Toshok  <toshok@ximian.com>
6663
6664         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
6665         rowcnt is 0 (such as with an empty datasource), and make sure we
6666         initialize not_usedarea.Y to cells.Y, so we don't draw over the
6667         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
6668
6669 2006-12-08  Chris Toshok  <toshok@ximian.com>
6670
6671         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
6672         grid.
6673
6674 2006-12-08  Chris Toshok  <toshok@ximian.com>
6675
6676         [ Fixes bug #80167 ]
6677         
6678         * ThemeWin32Classic.cs: don't draw the image if the button's flat
6679         style is FlatStyle.System.
6680
6681         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
6682         ButtonBase.flat_style private, and switch uses of it to the public
6683         property.
6684         
6685 2006-12-08  Chris Toshok  <toshok@ximian.com>
6686
6687         [ Fixes bug #80121 ]
6688         
6689         * ThemeWin32Classic.cs: center the caption text in the datagrid
6690         when we draw it.
6691
6692         * DataGrid.cs: lessen the amount we add to the caption height from
6693         6 to 2.  6 was making it huge.
6694
6695 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6696
6697         * UpDownBase: Handle MouseWheel call directly instead of capturing
6698         the inner textbox's OnMouseWheel. Fixes #80166
6699
6700 2006-12-08  Jackson Harper  <jackson@ximian.com>
6701
6702         * TextControl.cs: We need to invalidate the textbox when we empty
6703         it (how had this not been discovered before?)
6704
6705 2006-12-08  Jackson Harper  <jackson@ximian.com>
6706
6707         * TextBoxBase.cs: Reworked the mouse down code so I could get it
6708         to behave like MS, we now ignore the eventargs.Click and just
6709         track state ourself, which we were already doing anyways.
6710         - Constrain the double click handler to the double click size.
6711         
6712 2006-12-08  Chris Toshok  <toshok@ximian.com>
6713
6714         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
6715         direction if that scrollbar isn't shown.  fixes bug #80158.
6716
6717 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6718
6719         * NumericUpDown.cs: Update value on getter. Fixes #79950
6720
6721 2006-12-08  Chris Toshok  <toshok@ximian.com>
6722
6723         * MenuItem.cs: add back in the event cloning code.  I didn't know
6724         how to do it in the face of the EventHandlerList work i'd done
6725         last week.  Fixes bug #80183.
6726
6727 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6728
6729         * Control.cs: Add an invalidate to the BackgroundImage setter.
6730         [Fixes 80184]
6731
6732 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6733
6734         * ToolStrip*: Add some small properties reported by MoMA, fix event
6735         firing and default properties based off of unit tests, and add some
6736         attributes based off of the class status page.
6737
6738 2006-12-07  Jackson Harper  <jackson@ximian.com>
6739
6740         * TextBoxBase.cs: Take HideSelection into account when determining
6741         whether or not to show the selection.
6742         * RichTextBox.cs: After inserting the RTF into the document move
6743         the cursor to the beginning of the document.
6744
6745 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6746
6747         * Control.cs: Remove static ArrayList "controls" which maintained
6748         a reference to every control created.
6749         * Application.cs: Create a static FormCollection to maintain a reference
6750         to every form created.  Use it in places that formerly enumerated through
6751         the controls one looking for forms.
6752         * Form.cs: Add and remove self from above FormCollection.
6753
6754 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
6755
6756         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
6757           not libgdk (though it makes me wonder why I didn't have any
6758           problems)
6759
6760 2006-12-07  Chris Toshok  <toshok@ximian.com>
6761
6762         [ you had to know this was coming after that last commit...]
6763         
6764         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
6765         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
6766         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
6767         XCopyArea).
6768
6769 2006-12-07  Chris Toshok  <toshok@ximian.com>
6770
6771         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
6772         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
6773         all the behavior we need for double buffering.
6774
6775         * XplatUIDriver.cs: implement the 3 double buffer methods using a
6776         client side Bitmap, just like the old Control-based double buffer
6777         code did.  The methods are virtual, so each XplatUI driver
6778         subclass can replace the implementation to use a faster, platform
6779         specific approach.
6780
6781         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
6782         double buffer code, and clean things up a bit in the process.
6783
6784 2006-12-06  Chris Toshok  <toshok@ximian.com>
6785
6786         * Control.cs: reindent WndProc.
6787
6788 2006-12-06  Chris Toshok  <toshok@ximian.com>
6789
6790         [ I wanna be like BenM when I grow up ]
6791         
6792         * Hwnd.cs: create a single static Graphics object on the static
6793         Bitmap we create.  use this for our text measurements.
6794
6795         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
6796         This was causing us to allocate a backbuffer for every control,
6797         even when it wasn't flagged as double buffered.  Instead use the
6798         single graphics instance.  This might have implications for
6799         multithreaded applications.  If we run into problems we can switch
6800         to creating 1 Graphics per control, on the static Hwnd bitmap.
6801
6802         this change nets us a 7M savings in private dirty mappings when
6803         running FormsTest.exe.
6804
6805 2006-12-06  Chris Toshok  <toshok@ximian.com>
6806
6807         * ListView.cs: the BackgroundImage override is just to set
6808         attributes.  chain up to base.BackgroundImage.
6809
6810         * RichTextBox.cs: same.
6811
6812         * ToolBar.cs: same, but we need to also redraw the toolbar when it
6813         changes, so instead a handler for BackgroundImageChanged.
6814         
6815         * Control.cs: make background_image private.
6816
6817 2006-12-06  Chris Toshok  <toshok@ximian.com>
6818
6819         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
6820         sure we even need this assignment, but roll with it for now.
6821
6822         * Control.cs: make the cursor field private.
6823
6824 2006-12-06  Chris Toshok  <toshok@ximian.com>
6825
6826         * Form.cs: we don't need to explicitly set ImeMode to
6827         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
6828         behavior in the face of ImeMode.Inherit.
6829
6830         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
6831         change the ctor's assignment to use ImeMode instead of ime_mode.
6832
6833         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
6834         ImeModeInherit.  Only check for the parent's imemode (and return
6835         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
6836         This fixes the button unit test, which sets both ImeMode and
6837         DefaultImeMode to ImeMode.Disable.
6838
6839         also make the ime_mode field private.
6840
6841 2006-12-06  Chris Toshok  <toshok@ximian.com>
6842
6843         * Control.cs: make control_style private.
6844
6845         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
6846         setting the styles to true, then setting them to false instead of
6847         reverting to their previous values.
6848
6849         also, call SetStyle on the scrollbars instead of using
6850         control_style directly.
6851
6852 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
6853
6854         * FormCollection.cs: Implement. [2.0]
6855
6856 2006-12-06  Chris Toshok  <toshok@ximian.com>
6857
6858         * Control.cs: make tab_stop private.
6859
6860         * Label.cs: set TabStop, not tab_stop.  reformat some event
6861         add/remove methods to make them more compact.
6862
6863 2006-12-06  Chris Toshok  <toshok@ximian.com>
6864
6865         * RadioButton.cs: fix TabStop handling.
6866
6867 2006-12-06  Chris Toshok  <toshok@ximian.com>
6868
6869         * TextBox.cs: remove the explicit assignments to has_focus.
6870         Control does that.
6871
6872         * ButtonBase.cs: remove the assignment to has_focus.  Control will
6873         manage that.
6874         
6875 2006-12-06  Chris Toshok  <toshok@ximian.com>
6876
6877         * ButtonBase.cs: remove all uses of is_enabled from this code.
6878         it's always true when any of the code containing the checks is
6879         executed.
6880
6881 2006-12-06  Chris Toshok  <toshok@ximian.com>
6882
6883         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
6884         with different semantics (some are present in both 1.1 and 2.0
6885         profiles) so that we match MS's behavior in our unit tests.
6886
6887 2006-12-06  Jackson Harper  <jackson@ximian.com>
6888
6889         * TextControl.cs: Make this operation undoable.
6890         * TextBoxBase.cs: Factor the border width into the preferred
6891         height.
6892         - implement Modified as per the spec.
6893
6894 2006-12-06  Chris Toshok  <toshok@ximian.com>
6895
6896         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
6897
6898 2006-12-06  Chris Toshok  <toshok@ximian.com>
6899
6900         * Control.cs: make right_to_left and context_menu fields private.
6901
6902 2006-12-06  Chris Toshok  <toshok@ximian.com>
6903
6904         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
6905         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
6906         Control.child_controls private.  switch all uses over to
6907         Control.Controls.
6908
6909 2006-12-06  Chris Toshok  <toshok@ximian.com>
6910
6911         * System.Windows.Forms/GroupBox.cs,
6912         System.Windows.Forms/AccessibleObject.cs,
6913         System.Windows.Forms/ErrorProvider.cs,
6914         System.Windows.Forms/Control.cs,
6915         System.Windows.Forms/UpDownBase.cs,
6916         System.Windows.Forms/ScrollBar.cs,
6917         System.Windows.Forms/DateTimePicker.cs,
6918         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
6919         System.Windows.Forms/ToolTip.cs,
6920         System.Windows.Forms/RadioButton.cs,
6921         System.Windows.Forms/LinkLabel.cs,
6922         System.Windows.Forms/Splitter.cs,
6923         System.Windows.Forms/TextBoxBase.cs,
6924         System.Windows.Forms/ToolStripTextBox.cs,
6925         System.Windows.Forms/ContainerControl.cs,
6926         System.Windows.Forms/ThemeWin32Classic.cs,
6927         System.Windows.Forms/SizeGrip.cs,
6928         System.Windows.Forms/ToolStripDropDown.cs,
6929         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
6930         private.  switch all uses over to Control.Parent.
6931
6932 2006-12-06  Chris Toshok  <toshok@ximian.com>
6933
6934         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
6935         Control does this before calling emitting these events.
6936
6937         * TabControl.cs: same.
6938
6939         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
6940         Control.client_rect.
6941
6942         * ButtonBase.cs: use the ClientSize property instead of the
6943         client_size field.
6944
6945         * ScrollableControl.cs: same.
6946
6947         * Control.cs: another pass at making properties private.  also,
6948         move the initialization of tab_stop to the ctor.
6949
6950 2006-12-05  Andreia Gaita <avidigal@novell.com>
6951
6952         * TabControl.cs: Let the selected index be set freely if the 
6953         control handle is not yet created.
6954
6955 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6956
6957         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
6958         internal until I can rewrite DefaultLayout.
6959         * ToolStrip.cs: Fix build error and some general cleaning.
6960         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
6961         Fix build errors caused by making some of Control's fields private.
6962
6963 2006-12-05  Jackson Harper  <jackson@ximian.com>
6964
6965         * TextControl.cs: Redo Insert a little so that it use IndexOf
6966         instead of Split, this prevents it from messing up on things like
6967         \n\n\n. Also more effecient since the split array doesn't need to
6968         be created.
6969         * TextBoxBase.cs: AppendText doesnt handle multiline and non
6970         multiline text differently, this is the first of many fixes that
6971         will make multiline/non-multiline the same thing as far as the
6972         TextBoxBase is concerned.
6973         - Don't split the text and insert lines, this can lose some line
6974         endings (like is the last line a soft or hard break). Instead use
6975         the new Insert.
6976         - Fix an off by one when combining all the lines in the Text
6977         getter.
6978         - Remove separate multiline handling from the Text getter/setter.
6979
6980 2006-12-05  Chris Toshok  <toshok@ximian.com>
6981
6982         * ButtonBase.cs: a few changes:
6983
6984         - don't reinitialize internal Control fields in the ctor when they
6985         have the same values as Control sets them.
6986
6987         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
6988         this before calling those methods.
6989
6990         - we don't need to call Refresh for anything.  use Invalidate
6991         instead.
6992
6993         - OnEnabledChanged doesn't need to redraw at all - Control.cs
6994         calls Refresh in its OnEnabledChanged.
6995         
6996         - several of the events we were registered for in the ctor to
6997         redraw ourselves already include calls to Invalidate in the
6998         property setters that raise the events.  remove the extra
6999         invalidation.
7000
7001         - reformat a switch statement that was 83274658 columns wide.
7002         
7003 2006-12-05  Mike Kestner  <mkestner@novell.com>
7004
7005         * ComboBox.cs: fix a unit test regression from a TextBox
7006         SelectionLength return of -1 when there's no selection.  
7007
7008 2006-12-05  Chris Toshok  <toshok@ximian.com>
7009
7010         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
7011         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
7012         cleaning up some of the internal Control fields being used by
7013         subclasses.
7014
7015 2006-12-05  Mike Kestner  <mkestner@novell.com>
7016
7017         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
7018         listbox after AddImplicit calls since it defaults to hidden. Add a 
7019         hack to preserve requested heights across DropDownStyle changes.
7020
7021 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
7022
7023         * PropertyGrid.cs: Hide FindFirstItem method from public API.
7024
7025 2006-12-05  Chris Toshok  <toshok@ximian.com>
7026
7027         * DataGridView.cs: fix compiler warnings.
7028
7029         * PrintControllerWithStatusDialog.cs: same.
7030
7031         * ToolBar.cs: same.
7032
7033         * FolderBrowserDialog.cs: same.
7034
7035         * Splitter.cs: same.
7036
7037         * DataGridViewComboBoxCell.cs: same.
7038
7039         * XplatUIWin32.cs: same.
7040
7041         * PictureBox.cs: same.
7042
7043         * Win32DnD.cs: same.
7044
7045         * PageSetupDialog.cs: same.
7046
7047         * FileDialog.cs: same.
7048
7049         * PrintDialog.cs: same.
7050
7051         * DataGridTextBoxColumn.cs: same.
7052
7053         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
7054
7055 2006-12-05  Chris Toshok  <toshok@ximian.com>
7056
7057         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
7058         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
7059         System.ComponentModel.EventHandlerList work.
7060
7061 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
7062
7063         * DrawTreeNodeEventArgs.cs: Added.
7064
7065 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7066         
7067         * InternalWindowManager.cs: Remove an unused field.
7068         
7069 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7070
7071         * InternalWindowManager.cs:
7072         - Save the point where the title bar is clicked.
7073         
7074         * MdiWindowManager.cs:
7075         - Only allow moving of the window as long as the 
7076         clicked point on the title bar does not get out of
7077         MdiClient's rectangle. Fixes #79982.
7078         
7079         * MdiClient.cs:
7080         - Added Horizontal/VerticalScrollbarVisible.
7081         - Simplified the scrollbar sizing algorithm.
7082         - Cache the difference in scrolled value in
7083         H/VBarValueChanged and move the calculation out
7084         of the for loop.
7085
7086 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7087
7088         * Control.cs: Make the Console.WriteLine in WndProc 
7089         write more info.
7090
7091 2006-12-05  Chris Toshok  <toshok@ximian.com>
7092
7093         * ToolStripManager.cs, ToolStripButton.cs,
7094         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
7095         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
7096         ToolStripSplitButton.cs, ToolStripSeparator.cs,
7097         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
7098         ToolStripProgressBar.cs, ToolStripContainer.cs,
7099         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
7100         to using System.ComponentModel.EventHandlerList.
7101
7102 2006-12-04  Chris Toshok  <toshok@ximian.com>
7103
7104         * LinkLabel.cs: fix up compiler warnings.
7105
7106         * TableLayoutSettings.cs: same.
7107
7108         * TreeView.cs: same.
7109
7110         * ToolBar.cs: same.
7111
7112         * TabControl.cs: same.
7113
7114         * RichTextBox.cs: same.
7115
7116         * ListViewItem.cs: same.
7117
7118         * PropertyGrid.cs: same.
7119
7120         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
7121
7122         * ToolTip.cs same.
7123
7124         * TextRenderer.cs: fix up compiler warnings.
7125
7126         * Label.cs: same.
7127
7128         * Form.cs: corcompare fixes.
7129
7130         * PictureBox.cs: fix up compiler warnings.
7131
7132         * ImageListStreamer.cs: same.
7133
7134         * TrackBar.cs: corcompare fix.
7135
7136         * Control.cs: fix up compiler warnings.
7137
7138         * SplitterPanel.cs: same.
7139
7140         * NumericTextBox.cs: same.
7141
7142         * ImageList.cs: same.
7143
7144         * StatusStrip.cs: same.
7145
7146         * ProgressBar.cs: corcompare fix.
7147
7148         * ToolStripButton.cs: fix up compiler warnings.
7149
7150         * ToolStripStatusLabel.cs: same.
7151
7152         * ToolStripSplitButton.cs: same.
7153
7154         * ToolStripSeparator.cs: same.
7155
7156         * ToolStripProgressBar.cs: same.
7157
7158         * ToolStripDropDownMenu.cs: same
7159
7160         * ToolStripDropDown.cs: same.
7161
7162         * ToolStripDropDownButton.cs: same.
7163
7164         * ToolStrip.cs: same.
7165
7166         * ToolStripControlHost.cs: same.
7167
7168         * ToolStripContentPanel.cs: same.
7169
7170         * ToolStripDropDown.cs: same.
7171
7172         * ToolStripContainer.cs: same.
7173
7174         * ToolStripPanel.cs: same, and add "new" where we need it to work
7175         with the new ArrangedElementCollection.
7176
7177         * ToolStripItemCollection.cs: add "new" where we need it to work
7178         with the new ArrangedElementCollection.
7179
7180 2006-12-04  Andreia Gaita <avidigal@novell.com>
7181
7182         * TabControl.cs: Fix default tab selection to after TabControl
7183         gets focus and not before. Fixes #80128
7184
7185 2006-12-04  Chris Toshok  <toshok@ximian.com>
7186
7187         * DataGridTableStyle.cs: remove the gross calling of
7188         datagrid.Refresh from here.  It's a broken idea and it doesn't
7189         work anyway.
7190
7191         * DataGrid.cs: instead, just register/unregister from the
7192         DataGridTableStyle events in CurrentTableStyle.  we play it
7193         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
7194         even though some would most likely not require it.  Fixes bug
7195         #80115 (and one portion of #80117 as a side effect).
7196
7197 2006-12-04  Chris Toshok  <toshok@ximian.com>
7198
7199         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
7200         so the textbox (if any) goes away.  Fixes bug #80117.
7201
7202 2006-12-04  Chris Toshok  <toshok@ximian.com>
7203
7204         * DataGridColumnStyle.cs: set the column's readonly property
7205         initially based on the property descriptor's IsReadOnly.  Fixes
7206         bug #80044.
7207
7208 2006-12-04  Chris Toshok  <toshok@ximian.com>
7209
7210         * ComboBox.cs: wrap the dropdown style changing work in
7211         SuspendLayout/ResumeLayout.  Fixes bug #79968.
7212
7213 2006-12-04  Jackson Harper  <jackson@ximian.com>
7214
7215         * TextBoxBase.cs: Fix off by one, since these are one-based.
7216         * TextBox.cs: Select all the text when we get focus.  The TextBox
7217         does this but the RTB does not.
7218
7219 2006-12-04  Chris Toshok  <toshok@ximian.com>
7220
7221         * DataGridTextBoxColumn.cs: remove some spew.
7222
7223         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
7224         but some part of me is saying "it shouldn't be here.."  At any
7225         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
7226         setting the value.
7227
7228 2006-12-04  Chris Toshok  <toshok@ximian.com>
7229
7230         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
7231         to reassign the propertydescriptor.
7232
7233 2006-12-04  Jackson Harper  <jackson@ximian.com>
7234
7235         * TextBoxBase.cs:
7236         * TextControl.cs: Remove some unused variables.  Maybe this will
7237         patch things up between mike and I.
7238         - don't split lines less then one char wide, if the viewport is
7239         that small text won't be visible anyways.
7240         
7241 2006-12-04  Jackson Harper  <jackson@ximian.com>
7242
7243         * TextBoxBase.cs: Default selection length is -1, need to do some
7244         more testing on windows to see when this is used for the property.
7245         - Redid the Lines [] property to that we properly remove soft line
7246         breaks
7247         - added support for preserving carriage returns
7248         -  CanUndo is not a variable like 'is undo enabled' it just returns
7249         true if there is undo operations available.
7250         - AppendText doesn't need to grab the last tag itself anymore,
7251         this happens automatically when we move the cursor.
7252         * TextControl.cs: Add CompoundActions to the undo class. This
7253         allows combining the other operations into one big option.  ie a
7254         paste will combine { delete old, insert new, move cursor }
7255         - Add InsertString undo operation
7256         - New method for deleting multiline text
7257         - Add carriage returns to lines. So we can preserve carriage
7258         returns when text is 'roundtripped'
7259
7260 2006-12-04  Chris Toshok  <toshok@ximian.com>
7261
7262         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
7263         minimum 0.  Fixes the scrollbar exception in bug #80136.
7264
7265 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7266
7267         * MdiClient.cs: 
7268         * MdiWindowManager: Removed unused fields and methods.
7269         
7270 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7271         
7272         * StatusBar.cs: Update all panels when a AutoSize=Contents
7273         panel needs updating.
7274         
7275         * StatusBarPanel.cs: Remove twidth and only use initialize.
7276         Fixes #80031.
7277                 
7278 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7279
7280         * Form.cs: When a form's MdiParent is set add it directly
7281         on top of the z-order in stead of relying on MdiClient's
7282         ActivateChild to do it. Fixes #80135.
7283         
7284         * MdiClient.cs: 
7285         - Remove original_order, mdi_child_list is already doing
7286         the same thing.
7287         - Create mdi_child_list on construction in
7288         stead of first use (avoids a few null checks).
7289
7290         * MenuItem.cs: Use an already existing list of mdi children
7291         to get the correct order of children and remove the other
7292         redundant list.
7293
7294 2006-12-04  Chris Toshok  <toshok@ximian.com>
7295
7296         * PropertyGridView.cs: cached_splitter_location is only used in
7297         !DOUBLEBUFFER code.
7298
7299         * PropertyGrid.cs: implement the ComComponentNameChanged event
7300         using Events, hoping that would fix the warning.  Looks like a
7301         compiler bug instead (#80144).
7302
7303         * PropertyManager.cs: remove unused method.
7304
7305 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
7306
7307         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
7308         include parentesis to fix expression evaluation. Fixes #79634.
7309
7310 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
7311         
7312         * MenuAPI.cs:
7313         - Changes to fix behavior in Menu control, some reported in #80097
7314         and other detected during behavior refactory like a select event
7315         problems.
7316         - Remove unneded "if's" conditions.
7317         - Created an internal to flag when popup is active in control, we need 
7318         it because in .NET you can have menu active but without popup active
7319         when you active menu using popup without visible items.
7320         - Mimic win32 behavior for Select and Popup events.  
7321         - Dont open popup menu when you dont have visible subitems.
7322         - Do nothing when click on disabled menu item.
7323         - Some small changes to follow the coding style guidelines.
7324         - Unselect menu only when another control gives focus. Fixes #80097.
7325         - Remove unused code.
7326         
7327         * MenuItem.cs: internal VisibleItems method to check if menu
7328         theres visible subitems, it will be usefull to fix some 
7329         behavior in Menu control.
7330         
7331 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7332         
7333         * Timer.cs: Tag property for 2.0 profile.
7334         
7335 2006-12-01  Chris Toshok  <toshok@ximian.com>
7336
7337         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
7338         
7339         * Win32DnD.cs: comment out some unused fields.
7340
7341         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
7342         some unused properties/methods.
7343
7344         * XplatUIX11.cs: fix MousePosition so we override the base class's
7345         property instead of conflicting with it.
7346
7347         * PictureBox.cs: comment out some unused fields
7348
7349         * OSXStructs.cs: make some struct fields public.
7350
7351         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
7352         MousePosition so we override the base class's property instead of
7353         conflicting with it.
7354
7355         * X11Dnd.cs: comment out some unused fields
7356
7357         * X11DesktopColors.cs: fix some struct field visibility to quiet
7358         the compiler.
7359
7360         * X11Dnd.cs: remove some debug code.
7361
7362         * ThemeClearlooks.cs: comment out unused field.
7363
7364         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
7365
7366         * ThemeGtk.cs: comment out some unused pinvokes.
7367
7368         * Timer.cs: remove some unused fields.
7369
7370         * ThemeClearlooks.cs: comment out unused field.
7371
7372         * UpDownBase.cs: comment out unused field.
7373
7374         * DataObject.cs: comment out unused field.
7375
7376         * DataGridBoolColumn.cs: reomve unused field.
7377
7378         * DataGrid.cs: remove unused field.
7379
7380         * Cursor.cs: remove old ToBitmap code.
7381
7382         * ControlPaint.cs: remove unused method.
7383
7384         * ScrollBar.cs: remove unused fields.
7385
7386         * ComboBox.cs: remove unused field, and chain up to
7387         AccessibleObject ctor.
7388
7389         * ListBox.cs: remove unused field.
7390
7391         * ButtonBase.cs: wrap a couple fields in NET_2_0.
7392
7393         * GridEntry.cs: remove unused fields.
7394
7395         * Binding.cs: remove unused fields.
7396
7397         * AxHost.cs: remove unused method.
7398
7399         * ContainerControl.cs: remove unused field.
7400
7401         * ScrollableControl.cs: remove unused fields.
7402
7403 2006-12-01  Chris Toshok  <toshok@ximian.com>
7404
7405         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
7406         the Where/WhereString stuff.  it's easy enough to CWL
7407         Environment.StackTrace.
7408
7409         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
7410         unused private fields.
7411
7412 2006-12-01  Jackson Harper  <jackson@ximian.com>
7413
7414         * TextControl.cs: Do not update the view while inserting multiline
7415         text. If we update the view we might wrap lines, before entering
7416         the new lines, which causes the new line insertion calculations to
7417         be totally fubared.
7418         - Remove an old TODO
7419         - Make debug output a little nicer
7420         
7421 2006-12-01  Chris Toshok  <toshok@ximian.com>
7422
7423         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
7424
7425 2006-12-01  Chris Toshok  <toshok@ximian.com>
7426
7427         [ fix the majority of the CS0108 warnings we've been suppressing ]
7428         
7429         * TreeView.cs: mark BackgroundImageChanged as 'new'.
7430
7431         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
7432         to "LayoutToolBar" to quiet mcs.
7433         
7434         * TabControl.cs: mark our ControlCollection class as 'new'.
7435
7436         * TextBoxBase.cs: mark some events as 'new'.
7437
7438         * Splitter.cs: TabStop is 'new'.
7439
7440         * ControlBindingsCollection.cs: mark a few methods as new since
7441         they change the visibility from protected to public.
7442
7443         * RadioButton.cs: DoubleClick -> base class, and remove unused
7444         HaveDoubleClick.
7445
7446         * MonthCalendar.cs: ImeMode property -> base class, and mark many
7447         events as new.
7448
7449         * NumericUpDown.cs: TextChanged -> base class.
7450
7451         * CheckedListBox.cs: mark our ObjectCollection class as new to
7452         quiet mcs.
7453
7454         * FolderBrowserDialog.cs: make HelpRequest event new and have it
7455         muck with the base class.
7456
7457         * StatusBar.cs: fix some mcs warnings about Update being the same
7458         name as a base class method.
7459
7460         * RichTextBox.cs: mark some events as new, and make them do things
7461         to the base class impl.
7462
7463         * UserControl.cs: mark TextChanged as new, and have it manipulate
7464         base.TextChanged.
7465
7466         * UpDownBase.cs: mark some things new.
7467
7468         * CheckBox.cs: mark DoubleClick "new", and add some text about
7469         what we need to look at.
7470
7471         * Panel.cs: make the events "new", and manipulate the base
7472         version.  these are just here for attributes.
7473
7474         * AccessibleObject.cs: make owner private.
7475
7476         * Control.cs: deal with AccessibleObject.owner being private.
7477         cache our own copy if we need it.
7478
7479         * Button.cs: add "new" to the DoubleClickEvent.
7480
7481         * ListBox.cs: no need to track our own has_focus here.  let
7482         Control.has_focus do it for us.  Also some other work to clear up
7483         warnings about not overriding base class methods of the same name.
7484         
7485         * ComboBox.cs: clear up some warnings about not override base
7486         class methods of the same name.
7487
7488 2006-12-01  Chris Toshok  <toshok@ximian.com>
7489
7490         * Form.cs: flag a few things as "new" to quiet some of the mcs
7491         warnings.
7492
7493         * AxHost.cs: same.
7494
7495         * PrintPreviewDialog.cs: same.
7496
7497         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
7498         now DGV isn't so horrible on the class status page.  also, move
7499         all events to using System.ComponentModel.EventHandlerList.  my
7500         wrists hurt.
7501
7502 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7503
7504         * MdiWindowManager.cs:
7505         - Set form to active mdi child if shown,
7506         and update the active mdi child to the next 
7507         remaining child in the z-order if the form is hidden.
7508
7509         * Form.cs: 
7510         - Track if the form has been visible and if its 
7511         visibility is beeing changed, so that the MdiClient
7512         can properly decide the ActiveMdiChild. The MdiClient 
7513         cannot track this since the form can change visibility 
7514         before MdiClient is created.
7515
7516         * MdiClient.cs:
7517         - Don't activate anything of the parent form is changing
7518         its visibility.
7519         - Rework ActiveMdiChild to only return visible mdi 
7520         children and take into account several other corner 
7521         cases.
7522
7523 2006-12-01  Chris Toshok  <toshok@ximian.com>
7524
7525         * IBindableComponent.cs: new 2.0 interface.
7526
7527 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
7528
7529         * DataGrid.cs: Font for caption area is bold by default.
7530
7531 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
7532
7533         * Menu.cs: Tag property for 2.0.
7534         
7535 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7536
7537         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
7538         
7539 2006-12-01  Chris Toshok  <toshok@ximian.com>
7540
7541         * TreeView.cs: doh, the Begin* events should be
7542         TreeViewCancelEventHandler.
7543
7544 2006-12-01  Chris Toshok  <toshok@ximian.com>
7545
7546         * Form.cs: Form.ControlCollection already stores off the
7547         form_owner field.  don't access the base class's internal "owner"
7548         field.
7549
7550         * Control.cs: make all the fields in Control.ControlCollection
7551         private.  there's no need for any internal fields here.
7552
7553 2006-12-01  Chris Toshok  <toshok@ximian.com>
7554
7555         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
7556         OnHandleCreated.  Fixes bug #80109.
7557
7558 2006-12-01  Chris Toshok  <toshok@ximian.com>
7559
7560         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
7561         SplitContainer.cs, Control.cs, StatusStrip.cs,
7562         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
7563         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
7564         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
7565         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
7566         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
7567         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
7568         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
7569         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
7570         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
7571         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
7572
7573         do most of the work to convert our code over to use
7574         System.ComponentModel.Component.Events for
7575         adding/removing/dispatching events.
7576
7577
7578 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7579
7580         * DataGridView.cs: Fix an ArgumentNullException reported 
7581         twice today in IRC.
7582
7583 2006-11-30  Mike Kestner  <mkestner@novell.com>
7584
7585         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
7586         grabbed listbox.  Fixes #80036 and #80101.
7587
7588 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7589
7590         * Message.cs: Changed ToString() to match MS.
7591         
7592 2006-11-30  Jackson Harper  <jackson@ximian.com>
7593
7594         * TextBoxBase.cs: You can still change the selected text on a read
7595         only textbox.
7596         * TextControl.cs: Lower magic number for wrap calculations. This
7597         lets text get closer to the right (far) edge.
7598
7599 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7600
7601         * Control.cs: Tweak 2.0 layout properties.
7602         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
7603         * TextRenderer.cs: Add a new overload.
7604         * ToolStrip*: Huge amount of changes and new features.
7605
7606 2006-11-30  Mike Kestner  <mkestner@novell.com>
7607
7608         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
7609         scroll range correct.  Fixes #79994.
7610
7611 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7612
7613         * MdiWindowManager.cs: Update main form's text when
7614         a form is closed. (fixes #80038)
7615         
7616 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
7617
7618         * ToolBar.cs:
7619         - Fix an regression in ButtonSize.
7620         - Get ImeMode default value change to "Disable".
7621         - Get ShowTooltips default value change to true, default value is 
7622         "false" but after make a test in .NET we get "true" result as default.
7623         
7624 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
7625
7626         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
7627
7628 2006-11-29  Chris Toshok  <toshok@ximian.com>
7629
7630         * XplatUIWin32.cs (GetWindowTransparency): check return value of
7631         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
7632         SetWindowTransparency hasn't been called.
7633
7634 2006-11-29  Chris Toshok  <toshok@ximian.com>
7635
7636         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
7637         if it's supported.
7638         (set_AllowTransparency): reorder things a little so that the
7639         WS_EX_LAYERED style is removed properly.
7640
7641 2006-11-29  Chris Toshok  <toshok@ximian.com>
7642
7643         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
7644         
7645         * Form.cs: only call the XplatUI transparency method (get/set) if
7646         SupportsTransparency says it's supported. Otherwise fallback to
7647         doing nothing (in the set case) or returning the instance field we
7648         cache (in the get case).
7649
7650         * XplatUIStructs.cs: add TransparencySupport flag enum.
7651         
7652         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
7653         change to SupportsTransparency.
7654
7655         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
7656         TransparencySupport.None from SupportsTransparency.
7657
7658         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
7659         TransparencySupport.Set from SupportsTransparency.
7660
7661         * XplatUIWin32.cs: implement GetWindowTransparency calling
7662         GetLayeredWindowAttributes, and implement SupportsTransparency by
7663         checking whether or not both
7664         GetWindowTransparency/SetWindowTransparency are available
7665         entrypoints.  We need to do this since SetWindowTransparency is
7666         available as of win2k, but GetWindowTransparency requires winxp.
7667         yay win32 api.
7668
7669         * XplatUI.cs: Add GetWindowTransparency, and change
7670         SupportsTransparency to allow for either/both Get/Set.
7671
7672 2006-11-29  Chris Toshok  <toshok@ximian.com>
7673
7674         * DataGrid.cs: keep from going into an infinite loop redrawing a
7675         datagrid that has no datasource.  Fixes bug #80033.
7676
7677 2006-11-29  Chris Toshok  <toshok@ximian.com>
7678
7679         * MenuItem.cs: fix the NRE when we assign text (and therefore call
7680         Invalidate) before the mainmenu has been assigned to a control.
7681
7682 2006-11-29  Chris Toshok  <toshok@ximian.com>
7683
7684         * DataGrid.cs: detect when we should be double the double click
7685         row/column autosize stuff, although that codepath has yet to be
7686         written.  part of the work for bug #79891.
7687
7688 2006-11-29  Chris Toshok  <toshok@ximian.com>
7689
7690         * Binding.cs (SetControl): fix unit test.
7691
7692 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7693
7694         * PageSetupDialog.cs: Validate the margins and set them in
7695         PageSettings. 
7696         * NumericTextBox.cs: New class to mimic the behavior of the
7697         textboxes used in the printing dialogs.
7698
7699 2006-11-29  Andreia Gaita  <avidigal@novell.com>
7700         
7701         * Form.cs: Revert previous change (remove call UpdateBounds
7702         from form constructor), because it messes with the handle creation
7703         order, and that one needs lots and lots of love.
7704         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
7705         for valid printer and throw InvalidPrinterException if document
7706         is set but printer not valid), adding a MonoTODO. Once 
7707         handle creation is done properly, we can put this back in.
7708
7709 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7710
7711         * MenuItem.cs: Create a invalidate method for menu item, to be
7712         calling from set text, it make text changes to imadiate update
7713         on screen. Fixes #80013. 
7714         
7715 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7716
7717         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
7718         fixes bug #80070 and some other problem on toolbar buttons
7719         layout.
7720
7721 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7722
7723         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
7724         with dotted brush.      Fixes #79564
7725         
7726 2006-11-28  Andreia Gaita  <avidigal@novell.com>
7727
7728         * Form.cs: Removed call to UpdateBounds on Form
7729         constructor, it was causing a call to CreateHandle
7730         before it was supposed to.
7731         * PrintControllerWithStatusDialog: Applied patch
7732         by Chris Toshok to hide controller when there are
7733         no printers available.
7734         PrintDialog.cs: initialize printer settings to 
7735         null - correct DefaultValues test #5
7736         * PrintPreviewControl.cs: Move PrintController
7737         initialization to GeneratePreview
7738         * PrintPreviewDialog.cs: 
7739         - Remove Preview generation     from Document_set(). It is 
7740         called on OnPaint
7741         - Throw InvalidPrinterException on CreateHandle if
7742         a Document is set but there are no printers or 
7743         printer is not valid.
7744         * ThemeWin32Classic: don't paint PrintPreviewControl
7745         if there is nothing to paint    
7746
7747 2006-11-28  Miguel de Icaza  <miguel@novell.com>
7748
7749         * Form.cs: Add another popular method.
7750
7751         * TabPage.cs: ditto.
7752
7753 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7754
7755         * MenuItem.cs: Fixed a warning.
7756         * InternalWindowManager: Fixed a warning.
7757
7758 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7759
7760         * MenuItem.cs:
7761         - When cloning a menu also clone MdiList and clone the 
7762           window menu items properly (as the forms and menuitems
7763           are kept in an internal hashtable, these need updating 
7764           as well)
7765         - Rewrote the window menu code, menu items are added in the
7766           order the forms were added to their parent, and they are
7767           updated every time the window menu is shown (before the
7768           list was only generated once, in the current order of the
7769           forms, and would never be updated). A checkmark is shown
7770           next to the item corresponding to the active mdi child.
7771
7772 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7773
7774         * XplatUIStructs.cs: 
7775         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
7776         
7777         * XplatUIWin32.cs: 
7778         - Added TME_NONCLIENT to TMEFlags.
7779         - Handles WM_NCMOUSEMOVE in GetMessage to 
7780           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
7781
7782         * MdiWindowManager:
7783         - Now merges mdi child menu to parent menu when maximized.
7784         - Recalculate NC areas of both mdi child and mdi parent. 
7785           Fixes #79757 (4).
7786           on window state and size changes.Fixes #79844 (3).
7787         - Handle WM_NCCALCSIZE to properly calculate borders.
7788
7789         * Form.cs:
7790         - Add/remove to the mdi containers list of mdi children 
7791           in the order they are added.
7792         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
7793           to the maximized mdi child.
7794         
7795         * InternalWindowManager.cs:
7796         - Only execute a click on the control buttons on the mouse up,
7797           not on the mouse down. Show the state of the button 
7798           (was only showing Normal state, never Pressed state). The
7799           pressed button now follows the mouse (if you click the Close 
7800           button and move the mouse over the Maximize button, the 
7801           Maximize button will be shown as pressed). Since Win32 does
7802           not generate WM_NCLBUTTONUP if you release the button outside
7803           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
7804           it as a mouse up.
7805         
7806         * ThemeWin32Classic.cs:
7807         - Draw a missing border around mdi child forms. Fixes #79844 (2).
7808
7809         * MdiClient.cs:
7810         - Added a list of forms which contains the order the forms are
7811           added to the mdi parent.
7812         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
7813         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
7814         - If the active form changes set the scrollbars to the top
7815           of the Z order, otherwise the form could hide them.
7816         - Scrollbars are now sized according to ClientSize, not 
7817           to Size, and they take into account the other scrollbar
7818           to determine maximum.
7819         
7820 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
7821         
7822         * XplatUI.cs:
7823         * XplatUIDriver.cs:
7824         * XplatUIX11.cs:
7825         * XplatUIWin32.cs:
7826         * XplatUIOSX.cs:
7827         - Added RequestAdditionalWM_NCMessages for windows to 
7828           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
7829           Currently only implemented in XplatUIWin32.
7830
7831 2006-11-27  Chris Toshok  <toshok@ximian.com>
7832
7833         * Hwnd.cs: only add the hwnd to the windows hash in
7834         set_WholeWindow and set_ClientWindow if whole_window/client_window
7835         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
7836
7837 2006-11-27  Mike Kestner  <mkestner@novell.com>
7838
7839         * ComboBox.cs: remove redundant OnDropDown call.  It is called
7840         from the ComboListBox.ShowWindow code. Fixes #79969.
7841
7842 2006-11-27  Chris Toshok  <toshok@ximian.com>
7843
7844         * Hwnd.cs: remove the setters for ExposePending and
7845         NCExposePending - noone uses them.
7846
7847 2006-11-27  Jackson Harper  <jackson@ximian.com>
7848
7849         * TextControl.cs: new param for ReplaceSelection which determines
7850         whether we select the new selection, or set the cursor to the end
7851         of the new selection.
7852         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
7853         pasting, select the new text.
7854         * RichTextBox.cs: Use new param for ReplaceSelection.
7855
7856 2006-11-27  Jackson Harper  <jackson@ximian.com>
7857
7858         * TextBoxBase.cs: Set the selection to the caret after the caret
7859         is moved, otherwise they get out of sync.
7860
7861 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7862
7863         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
7864         it fixes #80015
7865
7866 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7867
7868         * ThemeWin32Classic.cs: 
7869         - Fix toolbar drop down arrow position.
7870         - Fix drop down appearance when ToolBar.Appearance is normal,
7871         it fixes #80018.
7872         
7873 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
7874
7875         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
7876         * Control.cs: Same.
7877         * UpDownBase.cs: Same.
7878         * ButtonBase.cs: Same.
7879         * ScrollBar.cs: Same.
7880         * TrackBar.cs: Same.
7881         * PictureBox.cs: Same.
7882         * UserControl.cs: Same.
7883         * Label.cs: Same.
7884         * ListControl.cs: Same.
7885         * TextBoxBase.cs: Same.
7886         * ListView.cs: Same.
7887         * RichTextBox.cs: Same.
7888         * TreeView.cs: Same.
7889
7890 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
7891
7892         * PrintDialog.cs:
7893         - Text label for where 
7894         - Text label comment was not shown
7895
7896 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
7897
7898         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
7899
7900 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7901
7902         * InternalWindowManager.cs: 
7903         - Handle WM_PARENTNOTIFY to activate the form
7904         if any child control is clicked.
7905         - The form is only sizable if not minimized.
7906
7907         * MdiWindowManager.cs:
7908         - Save the IconicBounds if the form is moved.
7909         - Rework SetWindowState, now the window bounds 
7910         are stored only if the old window state is Normal.
7911         
7912         * MdiClient.cs:
7913         - In SetWindowStates store the old window state if 
7914         the window is maximized and restore window state if
7915         the window looses focus.
7916         - Don't handle any scrollbar value changes if 
7917         initializing the scroll bars. Fixes #79771.
7918         - Reworked ArrangeIconicWindows. Current algorithm
7919         tests bounds agains all other minimized windows, if
7920         any intersections create new bounds (going left to 
7921         right, bottom to top) and then test again. When 
7922         successful the bounds are saved and never computed
7923         again. Fixes #79774.
7924
7925 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7926
7927         * InternalWindowManager.cs: Added HandleTitleBarUp.
7928
7929 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7930
7931         * NumericUpDown.cs: In .NET 1.1, user entered text is still
7932         hexadecimal in ParseUserEdit.
7933
7934         
7935 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7936
7937         * MdiWindowManager.cs: 
7938         - Handle a click on the form's icon to show the 
7939         system menu (when maximized). Fixes #79775.
7940         - Change the existing click handler for the form's
7941         icon when not maximized to show on MouseUp.
7942         Fixes #79776.
7943
7944         * Form.cs: In OnResize only layout the mdi child's
7945         parent if it actually has a parent. Might not if
7946         the window is closing.
7947
7948
7949 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7950
7951         * MdiClient.cs: Ignore active MDI client for text of parent, if
7952         child has no text set.
7953
7954 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7955
7956         * ToolBar.cs: Fixed ToString to match MS.
7957
7958 2006-11-22  Andreia Gaita  <avidigal@novell.com>
7959
7960         * NumericUpDown: 
7961         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
7962         update inner values on set. Fixes #79966.
7963         - Override OnLostFocus to update value on NET 2. Fixes #79950.
7964         - Fix hexadecimal parsing.
7965         
7966         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
7967         parent. Fixes #79957
7968
7969 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7970
7971         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
7972         the actual size has to be queried, since if height /
7973         width is negative Win32 changes it to 0. 
7974         Fixes #79999 on Windows.
7975         
7976         * XplatUIX11.cs: Set height / width to 0 if negative
7977         in SetWindowPos. Fixes #79999 on Linux.
7978         
7979 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7980
7981         * ThemeWin32Classic.cs: Fix text redenring when button is
7982         pressed.
7983
7984 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7985
7986         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
7987         and later navigate by mouse. Fixes #79528.
7988
7989 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7990
7991         * ToolBar.cs: Set default value for TabStop to false in
7992         constructor, it fixes remaining behavior of bug #79863.
7993
7994 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7995
7996         * MdiWindowManager.cs:
7997         * InternalWindowManager.cs:
7998         - Moved a few methods specific to Mdi from 
7999         InternalWindowManager to MdiWindowManager.
8000         Fixes #79996.
8001         
8002 2006-11-21  Chris Toshok  <toshok@ximian.com>
8003
8004         * XplatUIOSX.cs: stub out InvalidateNC.
8005
8006         * XplatUIWin32.cs: implement InvalidateNC using the call I found
8007         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
8008
8009         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
8010
8011         * XplatUIDriver.cs: add InvalidateNC abstract method.
8012
8013         * XplatUI.cs: add InvalidateNC.
8014
8015 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
8016
8017         * ToolBar.cs: Invalidate complete button area when pressed status 
8018         was changed.
8019         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
8020         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
8021         by 1 when button is pressed.
8022
8023 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
8024
8025         * ToolButton.cs: Invalidate middle of DropDown button when
8026         ToolBar theres DropDownArrows.
8027         * ThemeWin32Classic.cs: Change position of DropDown arrow and
8028         fix DropDown drawing operations.
8029
8030 2006-11-20  Chris Toshok  <toshok@ximian.com>
8031
8032         * NativeWindow.cs: fix the formatting of functions ('{' on the
8033         following line), and enable the thread exception dialog.
8034
8035         * Application.cs: remove the duplicate exception catching from
8036         here.
8037
8038 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
8039
8040         * Toolbar.cs: Triggers button click event when click on icon
8041         of dropdown ToolBarButton. Fixes #79912.
8042         
8043 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8044
8045         * Theme.cs:
8046         * ThemeWin32Classic.cs:
8047         - Added a property WindowBorderFont to enable themeing
8048           of mdi child windows' Text.
8049           
8050 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8051
8052         * InternalWindowManager.cs:
8053         * Form.cs:
8054         * MdiClient.cs:
8055         * MdiWindowManager.cs: 
8056         - If mdi child is maximized, set mdi parent's
8057           text to "Parent - [Child]". Fixes #79770.
8058         - If there is any maximized mdi child windows, only the active 
8059           window (and any new windows) is maximized, the rest are normal.
8060         - On a WindowState change only save mdi child's window bounds 
8061           if the old window state was normal. Fixes #79774.
8062         - The scroll bars are now calculated on hopefully all
8063           necessary events. Fixed #79771 / #79844->6 / #79906.
8064         - MdiClient.SizeScrollBars() now takes into account docked 
8065           controls in the parent when calculating available space.
8066         - InternalWindowManager now always repaints the entire title
8067           area. Fixes #79844->1/4/5.
8068         - Added RequestNCRecalc on mdi child windowstate changes.
8069           Fixes #79772.
8070
8071 2006-11-20  Mike Kestner  <mkestner@novell.com>
8072
8073         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
8074         in the MouseUp handler of the listbox and move the return handling
8075         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
8076
8077 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
8078
8079         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
8080
8081 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
8082
8083         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
8084           working in 1.2.x anymore. So, updated.
8085
8086 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
8087
8088         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
8089         NumberGroupSeparator of current culture instead of assuming en-US.
8090         Fixed bug #79967.
8091
8092 2006-11-17  Mike Kestner  <mkestner@novell.com>
8093
8094         * Control.cs: Add the concept of implicit bounds setting so that
8095         dock/undock round trips preserve explicitly set size/locations.
8096         Fixes #79313.
8097
8098 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
8099
8100         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
8101           can't handle those filters. (Fixes bug #79961)
8102
8103 2006-11-17  Chris Toshok  <toshok@ximian.com>
8104
8105         [ fixes the exit/crashes associated with #79835.  it's clearly
8106         suboptimal though, we need to figure out a better way to solve
8107         this. ]
8108         
8109         * PrintPreviewControl.cs: deal with the new invalid printer
8110         exceptions.
8111
8112         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
8113         and return false (so CommonDialog.ShowDialog doesn't actually show
8114         the form.)
8115
8116         * PrintDialog.cs: enable/disable the Ok button depending on
8117         whether or not the printer is valid.
8118
8119         * CommonDialog.cs (ShowDialog): only actually show the form if
8120         RunDialog returns true.
8121
8122 2006-11-17  Jackson Harper  <jackson@ximian.com>
8123
8124         * TextControl.cs: When soft splitting a line, mark it as a soft
8125         split line. Also carry over the current line break to the next
8126         line.
8127
8128 2006-11-17  Chris Toshok  <toshok@ximian.com>
8129
8130         * XplatUIX11.cs: when scrolling a window with an invalid area, we
8131         only want to shift the part of the invalid area that overlaps the
8132         area we're scrolling.  we also don't want to clear the invalid
8133         area unless the invalid area was entirely contained within the
8134         scrolling area.
8135
8136 2006-11-16  Chris Toshok  <toshok@ximian.com>
8137
8138         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
8139         also make sure to free the memory returned by XGetWindowProperty
8140         in GetText().
8141
8142         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
8143
8144 2006-11-16  Chris Toshok  <toshok@ximian.com>
8145
8146         * XplatUI.cs: add a new super secret way to get at the totally
8147         unsupported X11 backend.
8148
8149 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
8150
8151         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
8152
8153 2006-11-16  Jackson Harper  <jackson@ximian.com>
8154
8155         * TreeView.cs: Allow more explicit setting of top node position
8156         for scrollbars. Slower algo, but more accurate.
8157         - CollapseAll should maintain the current top node.
8158         * TextBoxBase.cs: When positioning the caret, use the line, pos
8159         method, since the x, y method does not grab the correct tag, and
8160         the caret height never gets set correctly. (Maybe I should just do
8161         away with the caret having its own height, and always use the
8162         carets current tag for height).
8163
8164 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
8165
8166         [Fixes 79778, 79923]
8167
8168         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
8169         Parent to the FosterParent instead.
8170
8171 2006-11-16  Jackson Harper  <jackson@ximian.com>
8172
8173         * TreeView.cs: Need to recalc the topnode when we expand or
8174         collapse. The scrolling methods can't handle this on their own,
8175         since they use differences between the last scroll position, and
8176         those difference get completely messed up since we are expanding
8177         nodes.  This problem should probably be fixed in the scrolling
8178         methods, so they can figure out exactly where they are, but this
8179         will slow things down a little.
8180         * ThemeWin32Classic.cs: Special case for groupboxes with empty
8181         strings, makes nunit-gui look a lot nicer.
8182
8183 2006-11-16  Chris Toshok  <toshok@ximian.com>
8184
8185         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
8186         the broken multithreaded event handling we have in here.  File
8187         this entry under "Why we should move to the new X11 backend".
8188
8189         Any thread can make it into UpdateMessageQueue, which gets events
8190         from the X socket - some of which could belong to hwnds being
8191         managed by a different thread.  We can also have multiple threads
8192         in UpdateMessageQueue at the same time, with each one reading from
8193         the X socket.  This leads to many problems, with the following
8194         solutions:
8195
8196         We can't use hwnd.Queue.Enqueue anywhere in here and must use
8197         EnqueueLocked.
8198
8199         The MotionNotify compression we do can't work across threads
8200         (without locking the entire queue, perhaps) since we call
8201         hwnd.Queue.Peek, so we just punt and don't compress motion events
8202         unless the owning thread is the one which got the X event.
8203
8204         ConfigureNotify is another fun one, since it modifies the hwnd's
8205         bounds and then enqueues the event.  We add a lock to Hwnd which
8206         is held when setting configure_pending to true (and enqueuing the
8207         event).
8208
8209         There is a race wrt the wake socket.  we need to make sure that
8210         only 1 thread is waiting on that socket, or else a thread could
8211         sleep waiting for data that never comes.  It's difficult (but not
8212         impossible) to make happen, because it seems to require something
8213         like the following:
8214
8215             1. Thread 1 polls on wake_receive
8216         
8217             2. poll returns saying there's data to be read on
8218                wake_receive.
8219         
8220             3. Thread 2 polls on wake_receive and immediately returns
8221                saying there's data to be read.
8222
8223             4. Thread 2 reads the wakeup byte from wake_receive
8224
8225             5. Thread 1 attempts to read the wakeup byte from
8226                wake_receive.
8227
8228             6. Thread 2 exits (due to a form closing, perhaps).
8229
8230             7. Thread 1 blocks forever.
8231         
8232         Fun, eh?
8233
8234         Fixing the Expose handling isn't done yet, and the races inherent
8235         in that piece of code are responsible for the drawing mistakes you
8236         see when generating expose events in a MT app (like NPlot).  This
8237         one is the likely to be the hardest to bandaid, and it doesn't
8238         appear to cause anything but drawing problems.  The other issues
8239         caused apps to exit or hang.
8240
8241         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
8242         called from a different thread than the one that should be calling
8243         these functions.
8244
8245         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
8246
8247 2006-11-15  Chris Toshok  <toshok@ximian.com>
8248
8249         * Application.cs: null out the context's MainForm when we exit
8250         RunLoop.  Fixes a newly checked in unit test as well as the last
8251         ODE from bug #79933.
8252
8253 2006-11-15  Chris Toshok  <toshok@ximian.com>
8254
8255         * Form.cs (set_Owner): allow a null value so we can clear the
8256         form's owner.
8257         (Dispose): set all our owned_form's Owner properties to null, and
8258         clear the owned_forms collection.
8259         (WM_CLOSE): clean up this a little bit.. still not right though.
8260
8261         * ApplicationContext.cs: OnMainFormClosed should only call
8262         ExitThreadCore if the main form isn't recreating.  Fixes unit
8263         test.
8264
8265 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8266
8267         [Fixes 78346]
8268
8269         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
8270
8271 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8272
8273         [Fixes 79433]
8274
8275         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
8276         keep popup window types from stealing focus from the main form
8277         on Windows.
8278
8279         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
8280
8281         * MenuAPI.cs: Set above flag to true.
8282
8283 2006-11-15  Chris Toshok  <toshok@ximian.com>
8284
8285         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
8286         the button being released is not in wParam.
8287
8288 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8289
8290         * Form.cs: Add the released button to MouseEventArgs.Button
8291         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
8292         on Win32.
8293
8294 2006-11-15  Chris Toshok  <toshok@ximian.com>
8295
8296         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
8297         GetText().  untested because it's unused in our implementation.
8298         Control.Text always caches the text, even if
8299         ControlStyles.CacheText is not set.
8300
8301         fixes bug #79939.
8302
8303 2006-11-15  Chris Toshok  <toshok@ximian.com>
8304
8305         [ fixes #79933 ]
8306         
8307         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
8308         message.  no hiding, no disposing.
8309
8310         in the WM_CLOSE handler, hide the form if it's modal.
8311
8312 2006-11-15  Chris Toshok  <toshok@ximian.com>
8313
8314         * XplatUIX11.cs: use AddExpose instead of sending a message.
8315         fixes textbox border drawing.
8316
8317 2006-11-15  Chris Toshok  <toshok@ximian.com>
8318
8319         * PropertyGridView.cs: keep from crashing on mouse move/down when
8320         the property grid is empty.
8321
8322 2006-11-14  Jackson Harper  <jackson@ximian.com>
8323
8324         * TextControl.cs: Make PageUp and PageDown more like the MS
8325         versions.
8326         * TextBoxBase.cs: When we set the text property position the
8327         cursor at the beginning of the document.
8328
8329 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8330
8331         * Form.cs: if a mdi child's WindowState has changed
8332         before it's creation, it would display wrong control
8333         buttons.
8334         
8335 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
8336
8337         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
8338           (Fixes bug #79927)
8339
8340 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8341
8342         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
8343         the window gets to paint its borders even if the window is
8344         getting smaller.
8345         
8346         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
8347         otherwise the old control buttons would still be painted 
8348         if the window gets bigger.
8349         
8350         * PaintEventArgs.cs: add an internal method so that the clip 
8351         rectangle can be changed.
8352         
8353 2006-11-13  Chris Toshok  <toshok@ximian.com>
8354
8355         [ fixes bug #79745 ]
8356         
8357         * NotifyIcon.cs: lots of cleanup.
8358
8359         * X11Structs.cs: add an enum for XEMBED messages.
8360
8361         * XplatUIX11.cs: reindent one of the giant switch statements, it
8362         was taking up an additional tab stop, and this file is already way
8363         too wide for my laptop's screen.
8364
8365         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
8366         we get it, resize the hwnd to the WMNormalHints max_width/height.
8367
8368 2006-11-13  Jackson Harper  <jackson@ximian.com>
8369
8370         * TextBoxBase.cs: Compute the value changes for the mouse wheel
8371         teh simple way.
8372
8373 2006-11-13  Chris Toshok  <toshok@ximian.com>
8374
8375         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
8376         #79898.  force a reference to the Region to stick around so the
8377         unmanaged object isn't collected (rendering our handle in the MSG
8378         stale).
8379
8380 2006-11-13  Chris Toshok  <toshok@ximian.com>
8381
8382         * XplatUIX11.cs: fix #79917 for window managers which support
8383
8384         using XStoreName on the raw utf8, and we need to convert to
8385         COMPOUND_TEXT if it's non-latin1.
8386
8387 2006-11-13  Chris Toshok  <toshok@ximian.com>
8388
8389         * Form.cs (set_DialogResult): we need to set closing to false if
8390         we're setting our result to None.  fixes bug #79908.
8391
8392 2006-11-13  Jackson Harper  <jackson@ximian.com>
8393
8394         * TextControl.cs: When formatting text, compute the adjusted tag
8395         lengths correctly, using FindTag for the end tag instead of trying
8396         to figure it out outselves.
8397         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
8398         the item, ItemHeight doesn't work, because trees with large
8399         imagelists use those for their height
8400         * TreeView.cs: ActualItemHeight factors in the image height
8401         - compute left edge of checkboxes correctly
8402         - when expanding/collapsing move the bottom down one pixel, so we
8403         aren't moving part of the node
8404
8405 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8406
8407         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
8408         stack in PaintEventStart so that it won't get disposed by the gc
8409         before reaching PaintEventEnd.
8410
8411 2006-11-13  Jackson Harper  <jackson@ximian.com>
8412
8413         * TextBoxBase.cs: Don't select the word if we are on a line with
8414         no text.
8415         - We don't need to position the caret on mouse up, since the mouse
8416         move handler should be doing this
8417         - When double clicking a blank line, the caret is advanced to the
8418         next line.
8419
8420 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
8421
8422         * TreeNodeCollection.cs: Avoid duplicating indexer code.
8423
8424 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
8425
8426         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
8427         Fixes part of bug #79910.
8428
8429 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
8430
8431         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
8432           (bug #79903). Some minor string updates to match ms.
8433
8434 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8435
8436         * FileDialog.cs: Don't add an extension if the filename
8437           already ends with that extension.
8438
8439 2006-11-10  Jackson Harper  <jackson@ximian.com>
8440
8441         * TreeView.cs: Use the currently highlighted node for the
8442         BeforeSelect event.
8443         * TextBoxBase.cs: There is no need to expand selection on
8444         MouseMove.
8445         - CanUndo means 'is there any undo operations', not 'is undo
8446         allowed on this textcontrol. Fixed ClearUndo unit test.
8447
8448 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
8449
8450         * Button.cs: only perform click when button is Selectable (so as 
8451         not to activate default buttons when they're disabled)
8452         
8453         * Control.cs: Rewrite of the SelectNextControl and related 
8454         methods. HandleClick now selects next control if the current one
8455         is being disabled.
8456         
8457         * Form.cs: OnActivated selects next active control only if Load 
8458         has already occurred. If Load hasn't run, there's no point in 
8459         selecting here, Load might change the state of controls.
8460         
8461         * FocusTest.cs: Tests marked as working again for these fixes
8462
8463 2006-11-10  Chris Toshok  <toshok@ximian.com>
8464
8465         * XplatUIX11.cs: a couple of fixes.
8466
8467         - use XInternAtoms with almost all the atoms we need to register,
8468         instead of many, many calls to XInternAtom.  should help a bit on
8469         startup time, at the expense of making the code look a little
8470         worse.
8471
8472         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
8473         isn't reparented (which seems to be a clue that we're running fon
8474         compiz) and they have an Owner form.  This fixes the tool windows
8475         in paint.net when running under compiz.
8476
8477         - when setting the opacity of a window, support both the case
8478         where the window has been reparented and also when it hasn't been.
8479         Since compiz/beryl doesn't seem to reparent windows, and these are
8480         the only window managers which support translucency, I'm not sure
8481         why we need the hwnd.reparented case at all.. but leave it in.
8482         now we get translucent windows in paint.net under compiz/beryl.
8483
8484 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8485
8486         * FileDialog.cs: Always return the value for FilterIndex that
8487           was set. Internally convert it to values that make sense.
8488
8489 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8490         
8491         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
8492
8493 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8494
8495         * Toolbar.cs: Change default value of DropDownArrows to true, the 
8496         signature still using false to make it compatible with MS but the 
8497         initial value is true. Fixes #79855.
8498
8499 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8500
8501         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
8502           only available on Linux.
8503
8504 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
8505
8506         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
8507         reduce number of calls to redraw method during toolbar creation.
8508
8509 2006-11-09  Mike Kestner  <mkestner@novell.com>
8510
8511         * ListView.cs : raise SelectedIndexChanged when an item is selected
8512         programmatically via the Item.Selected property.  Gert's nice 
8513         ListViewSelectedIndexChanged test fixture now runs clean.
8514
8515 2006-11-09  Mike Kestner  <mkestner@novell.com>
8516
8517         * ListView.cs : raise SelectedIndexChanged when a selected item is
8518         removed from the item collection using Remove or RemoveAt.
8519
8520 2006-11-09  Mike Kestner  <mkestner@novell.com>
8521
8522         * ListView.cs : raise SelectedIndexChanged once per selected item
8523         for compat with MS.  Fixes #79849+.
8524
8525 2006-11-09  Chris Toshok  <toshok@ximian.com>
8526
8527         * TabControl.cs: initialize row_count to 0, and set it to 1 when
8528         we need to (if we have any tab pages).  Fixes unit test.
8529
8530 2006-11-09  Chris Toshok  <toshok@ximian.com>
8531
8532         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
8533         width is 0, not 3.  Fixes a unit test.
8534
8535 2006-11-09  Mike Kestner  <mkestner@novell.com>
8536
8537         * ListView.cs : use Implicit scrollbars so that focus isn't 
8538         stolen from the listview when they are clicked. Fixes #79850.
8539
8540 2006-11-09  Chris Toshok  <toshok@ximian.com>
8541
8542         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
8543         have a root item.  Fixes #79879.
8544
8545 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
8546
8547         * FileDialog.cs:
8548           - Fix ToString ()
8549           - An ArgumentException is now thrown if a wrong filter
8550             is applied (matches ms). The previous filter doesn't change
8551             anymore if an exception is thrown.
8552           - Changing the FileName property also affects FileNames
8553         * ColorDialog.cs: The length of the CustomColors array is always
8554           16. It doesn't matter if we use a smaller array or null to update
8555           or change the custom colors property.
8556         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
8557           for RootFolder if we get a undefined value.
8558
8559 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8560
8561         * StatusBarPanel.cs: 
8562         - Width is set to MinWidth if Width is smaller than
8563         MinWidth. Fixes #79842.
8564         - MinWidth now always overrides Width (MSDN says MinWidth
8565         is set to Width when AutoSize = None, but they do not 
8566         behave like that).
8567         - Style has now the the correct default value.
8568         
8569 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8570  
8571         * TrackBar.cs: 
8572         - The control is completely invalidated on 
8573         Got/LostFocus to draw the focus rectangle correctly.
8574         - When AutoSize then height is always 45 (width for 
8575         vertical controls).
8576         
8577         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
8578         on the mouse when moved and it doesn't move when grabbed
8579         until the mouse moves as well. Also fixed some wrong 
8580         calculations when clicking on the thumb (control thought
8581         click was outside of thumb and didn't grab it).
8582         Fixes some of the issues in #79718.
8583
8584 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
8585
8586         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
8587
8588 2006-11-08  Chris Toshok  <toshok@ximian.com>
8589
8590         * PropertyGridView.cs: only call ToggleValue if the item is not
8591         readonly.
8592
8593 2006-11-08  Jackson Harper  <jackson@ximian.com>
8594
8595         * TextBoxBase.cs: The RichTextBox and textbox have very different
8596         word selection methods.  Implement the textbox's simple word
8597         selection here, and let the RichTextBox override and provide it's
8598         own.
8599         - Don't do extra selection on mouseup
8600         * RichTextBox.cs: Use the documents word selection algorithm, I
8601         think ideally, this function will be pulled into the
8602         RichTextBox.cs code someday.
8603
8604 2006-11-08  Chris Toshok  <toshok@ximian.com>
8605
8606         * RootGridEntry.cs: new class to represent GridItemType.Root.
8607
8608         * CategoryGridEntry.cs: reformat, and add boilerplate.
8609         
8610         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
8611         returns the UI parent anyway, and we need special handling to
8612         implement the GetTarget method in the face of it.  Also, implement
8613         Select().
8614
8615         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
8616         a root grid item, and use that instead of PropertyGrid.grid_items.
8617         Also, make use of TypeConverters (and add limitted support for
8618         ICustomTypeDescriptors) when initially populating the grid.
8619         Arrays now show up more or less properly.
8620
8621 2006-11-08  Chris Toshok  <toshok@ximian.com>
8622
8623         * Application.cs: set the modal dialog to non modal after we close
8624         it.  Fixes bug #79866.
8625
8626 2006-11-08  Jackson Harper  <jackson@ximian.com>
8627
8628         * TextControl.cs: When combining lines carry over the line end
8629         style from the end line.
8630         - Invalidate the selected area when setting it, if it is visible.
8631         * TextBoxBase.cs: Only rich text box can do full line selects.
8632         - Make sure to set the cursor position when there is a click,
8633         otherwise two clicks in separate areas could cause a large chunk
8634         to be selected.
8635
8636 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8637
8638         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
8639         Fixes #79863.
8640
8641 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8642
8643         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
8644         time. Remove tooltips when ToolButton click events.  Fixes #79856.
8645
8646 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8647
8648         * MenuAPI.cs: Ignore right click for menu actions and fixes
8649         menu border when clicked.  Fixes #79846.
8650
8651 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8652
8653         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
8654         MouseState after create wParam for message, this fixes mouse button 
8655         equal none in mouse up events.
8656         
8657 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
8658
8659         * Control.cs : Focus() now calls Select to set the Container's
8660         Active Control and to give it focus. To avoid infinite recursion
8661         (because ActiveControl also calls Focus at one point), a check 
8662         is made in Focus with the help of a new internal variable
8663         is_focusing.
8664
8665 2006-11-07  Mike Kestner  <mkestner@novell.com>
8666
8667         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
8668         if there's a selection.  Fixes #79849.
8669
8670 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
8671
8672         * PropertyGrid.cs: Avoid fixed height of help description label.
8673         Fixes part of bug #79829.
8674
8675 2006-11-07  Chris Toshok  <toshok@ximian.com>
8676
8677         * XplatUIX11.cs: fix #79790 again, by using the
8678         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
8679
8680 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8681
8682         * ToolBar.cs: Fix left click checking.
8683
8684 2006-11-07  Chris Toshok  <toshok@ximian.com>
8685
8686         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
8687
8688 2006-11-07  Chris Toshok  <toshok@ximian.com>
8689
8690         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
8691         PropertyManager unit tests.
8692
8693         * PropertyManager.cs: make property_name internal.
8694
8695 2006-11-07  Chris Toshok  <toshok@ximian.com>
8696
8697         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
8698         pass a unit test.  Also, don't set image_index to anything in
8699         response to setting the ImageList property.
8700
8701 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8702
8703         * ToolBar.cs: Ignore click events when mouse button is not a
8704         left button, only accepts other button for dropdown menus.  
8705         Fixes #79854.
8706
8707 2006-11-07  Chris Toshok  <toshok@ximian.com>
8708
8709         * DataGrid.cs: make the back and parent row buttons a little less
8710         ugly.
8711
8712 2006-11-07  Jackson Harper  <jackson@ximian.com>
8713
8714         * TextBoxBase.cs: When converting to Text don't put line breaks in
8715         for soft line breaks.
8716         * TextControl.cs: There is an initial "fake" line in the document,
8717         this is now a soft break line, so that an extra line feed doesn't
8718         get added to the end of documents.
8719
8720 2006-11-07  Chris Toshok  <toshok@ximian.com>
8721
8722         [ fix bug #79778 ]
8723         
8724         * CurrencyManager.cs: if the list is readonly, don't bother
8725         checking if IBindingList.AllowNew is true.
8726
8727         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
8728         for non-DataRowView datasources..  or rather, make it not crash.
8729         (DataGridPaintRelationRow): make sure we limit the row painting to
8730         the area not covered by the row header, and make our cell width at
8731         least large enough to cover the relation area.  This allows grids
8732         that have relations but no rows to render correctly.
8733         (DataGridPaintRowContents): same type of changes here.
8734         (SetDataSource): move back to always calling
8735         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
8736         navigating back through relations.
8737         (HitTest): handle the case where we have no cells but have
8738         relations.  Right now we generate a hit in cell 0 of whatever the
8739         row is, not sure if this is strictly correct, but it works for our
8740         purposes.
8741         
8742         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
8743         bother doing anything.
8744
8745 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
8746
8747         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
8748         early version of StatusStrip.  Not responsible for eaten
8749         application or firstborn children.
8750
8751 2006-11-06  Chris Toshok  <toshok@ximian.com>
8752
8753         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
8754         call GetTabRect with a -1 index.  Fixes #79847.
8755
8756 2006-11-06  Jackson Harper  <jackson@ximian.com>
8757
8758         * TreeNodeCollection.cs: Update scrollbars after clearing.
8759
8760 2006-11-06  Chris Toshok  <toshok@ximian.com>
8761
8762         * NumericUpDown.cs: fix the ToString method for some unit test
8763         love.
8764
8765 2006-11-06  Chris Toshok  <toshok@ximian.com>
8766
8767         * PropertyGrid.cs:
8768         - set the initial SelectedGridItem if we can.
8769
8770         - Exclude non-mergable properties only if we're merging > 1
8771         object.  Merging 1 object isn't really merging, obviously.
8772
8773         - Handle PropertySort.NoSort just like Alphabetical, which is
8774         wrong of course, but at least gets things on the screen.
8775         
8776         * PropertyGridView.cs:
8777         - Add method "FindFirstItem" which finds the first property grid
8778         item, so we can select it by default.
8779
8780         - make use of GridEntry.CanResetValue.
8781
8782         - Don't call RedrawBelowItemOnExpansion here anymore, the
8783         individual GridEntry's will do that.
8784
8785         - Remove the ITypeDescriptorContextImpl internal class.
8786         
8787         * GridEntry.cs:
8788         - this class needs to implement ITypeDescriptorContext, as it's
8789         what MS's PropertyDescriptorGridEntry does, which means we can
8790         remove the ITypeDescriptorContextImpl internal class from
8791         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
8792
8793         - keep a reference to our PropertyGridView, and move the call to
8794         RedrawBelowItemOnExpansion here from PGV.  This means
8795         programmaticly setting Expanded actually does something visible.
8796
8797         - add a CanResetValue() function which takes into account our
8798         possibly multiple "selected_objects" in the merged case.  Shifting
8799         PropertyGridView to use this method fixes another unreported
8800         crasher found running the test for #79829.
8801
8802         - when Top or Bounds is updated, make sure the PropertyGridTextBox
8803         is updated to reflect this.
8804
8805         * CategoryGridEntry.cs: the ctor takes the PGV now.
8806         
8807 2006-11-06  Jackson Harper  <jackson@ximian.com>
8808
8809         * TextControl.cs: These are 1 based.
8810         * TextBoxBase.cs: When setting the selected text, don't change the
8811         selected text tags, this is done by ReplaceText, just position the
8812         cursor at the end of the new text.
8813
8814 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8815
8816         * ListView.cs: Allow label edit only when, when LabelEdit is
8817           set to true.
8818
8819 2006-11-06  Jackson Harper  <jackson@ximian.com>
8820
8821         * TextControl.cs: If a suitable wrapping position isn't found,
8822         just wrap right in the middle of a word.
8823
8824 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8825
8826         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
8827           bug #79820.
8828
8829 2006-11-06  Jackson Harper  <jackson@ximian.com>
8830
8831         * TreeView.cs: Can't use the VisibleCount property when setting
8832         scrollbar heights, because this doesn't take into account whether
8833         or not the horz scrollbar just came visible.
8834
8835 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
8836
8837         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
8838         activated.  Fixes #79369, #79832.
8839
8840 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
8841
8842         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
8843           had to remove support for links that point to a directory. FileInfo
8844           returns no usefull information (means, the directory they point to)
8845           for such links. Replaced some empty string ("") with String.Empty.
8846
8847 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8848
8849         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
8850         NullReferenceException when attempting to remove node that is not in
8851         collection. Throw NullReferenceException when null is passed to 
8852         Remove. Allow first element of the collection to be removed. Fixes
8853         bug #79831.  In GetEnumerator ().Current return null if positioned 
8854         before the first element of the collection. In GetEnumerator ().Reset,
8855         position before first element of the collection.
8856
8857 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8858
8859         * PropertyGrid.cs: To match MS, remove default title and description
8860         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
8861         buttons.
8862
8863 2006-11-04  Chris Toshok  <toshok@ximian.com>
8864
8865         * Theme.cs: add a Clamp method, just for kicks.
8866
8867         * ThemeWin32Classic.cs: clamp all color components to [0..255].
8868
8869 2006-11-04  Chris Toshok  <toshok@ximian.com>
8870
8871         * Form.cs: if the form isn't visible, Close() does nothing.
8872
8873 2006-11-03  Chris Toshok  <toshok@ximian.com>
8874
8875         * Form.cs (Close): if the form is modal, don't Dispose of it, only
8876         Hide it.
8877         (WndProc): don't Dispose after handling the WM_CLOSE message.
8878
8879         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
8880         them as such, instead of using casts from Control to Form.  Also,
8881         don't Dispose of the modal dialog when we fall out of the loop -
8882         Close() it instead.
8883
8884         fixes bug #79813.
8885
8886 2006-11-03  Chris Toshok  <toshok@ximian.com>
8887
8888         * Control.cs (Dispose): only go through the dispose thing if we're
8889         @disposing, and we haven't already been disposed.  Fixes bug
8890         #79814.
8891
8892         * Form.cs: no reason to call "base.Dispose()" here instead of
8893         "Dispose()".
8894
8895 2006-11-03  Mike Kestner  <mkestner@novell.com>
8896
8897         * ComboBox.cs : use ToString instead of casts in AddItem for
8898         sorting functionality.  Fixes #79812.
8899
8900 2006-11-03  Chris Toshok  <toshok@ximian.com>
8901
8902         * Application.cs: pave the way for actually using the thread
8903         exception dialog.  it's ifdefed out at the moment.
8904
8905 2006-11-03  Chris Toshok  <toshok@ximian.com>
8906
8907         * ThreadExceptionDialog.cs: until we get a better layout, actually
8908         hide the details textbox and label when we shouldn't see them.
8909
8910 2006-11-03  Jackson Harper  <jackson@ximian.com>
8911
8912         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
8913         multiline textboxes anymore.  This method also determines the
8914         width/height of a textboxes canvas area.
8915         - Sorta a revert of the last patch.  For multiline just position
8916         the controls, then bail.  This way the scrollbar width won't be
8917         altered.
8918
8919 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
8920
8921         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
8922         it dont need.  Fixes #79537.
8923
8924 2006-11-02  Jackson Harper  <jackson@ximian.com>
8925
8926         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
8927         send the status after firing the DndOver event.
8928
8929 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8930
8931         * TrackBar.cs: Now orientation only switches height / width if
8932         the control's handle is created (Win32 does it like this). Also 
8933         fixed a typo in ToString() for a test to pass, changed the 
8934         exception thrown in set_LargeChange and set_SmallChange to 
8935         match Win32 behaviour, and added TrackBar tests to the unit 
8936         tests.
8937
8938 2006-11-02  Chris Toshok  <toshok@ximian.com>
8939
8940         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
8941         not _NET_WM_STATE_NO_TASKBAR.
8942
8943 2006-11-02  Jackson Harper  <jackson@ximian.com>
8944
8945         * TextControl.cs: Increment count by one, since in the update view
8946         count - 1 is used.
8947
8948 2006-11-02  Jackson Harper  <jackson@ximian.com>
8949
8950         * TextBoxBase.cs: Use client rectangle not bounds for checking if
8951         the mouse is in the client rectangle (duh).
8952
8953 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8954         
8955         * TrackBar.cs: Fixed trackbar jumping around when clicking
8956         on it - the trackbar was not detecting correctly at which
8957         side of the thumb the click was done. (fixes #79718)
8958
8959 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
8960
8961         * ListBox.cs: scroll visible area when change SelectedIndex to
8962         a non visible area.  Fixes #79481.
8963
8964 2006-11-01  Jackson Harper  <jackson@ximian.com>
8965
8966         * TextControl.cs: When replacing the selection move the selection
8967         start/end/anchor to the end of the new text.
8968
8969 2006-11-01  Jackson Harper  <jackson@ximian.com>
8970
8971         * XplatUIWin32.cs: When setting the parent change the controls
8972         visibility to it's visibility flag, not to it's old parents
8973         visibility (.Visible walks the parent chain).
8974
8975 2006-11-01  Chris Toshok  <toshok@ximian.com>
8976
8977         * XplatUIX11.cs: revert the #79790 fix, as the simple.
8978         XSetTransientForHint fix breaks paint .net's tool windows.  more
8979         work needed for that one.
8980
8981 2006-11-01  Chris Toshok  <toshok@ximian.com>
8982
8983         * ScrollBar.cs: throw ArgumentException instead of Exception in
8984         LargeChange/SmallChange setters.  fixes unit tests.
8985
8986 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8987
8988         * ContainerControl.cs: reverted rev.67183 (which was itself
8989         a reversion of rev.66853... eh).
8990         
8991         * Control.cs: Fixes Reflector hang by changing Focus() call
8992         to what it was before rev.66643 (calling Select() here sets 
8993         ActiveControl, which in some situations calls back Focus and 
8994         eventually does a stack overflow). Temp fix.    
8995         Changes to GetNextControl() to not look for children to select when
8996         parent cannot be selectable (so it looks for siblings instead)  
8997         
8998 2006-10-31  Mike Kestner  <mkestner@novell.com>
8999
9000         * CheckedListBox.cs : off by one error in returned index from
9001         ObjectCollection.Add.  Fixes #79758.
9002
9003 2006-10-31  Chris Toshok  <toshok@ximian.com>
9004
9005         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
9006         calls for the textbox/spinner, to keep from recursing to the point
9007         where we crash.  Fixes #79760.
9008
9009 2006-10-31  Chris Toshok  <toshok@ximian.com>
9010
9011         * ListControl.cs (set_SelectedValue): don't throw exceptions on
9012         null/"" value, just return.  matches ms's behavior and fixes some
9013         failing tests.
9014
9015 2006-10-31  Chris Toshok  <toshok@ximian.com>
9016
9017         * Control.cs (set_Capture): make a logic a little easier to
9018         follow.
9019
9020         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
9021         if it's being destroyed.  A necessary fix surely, but a bandaid
9022         also, to fix the stuck capture problem in bug #78413.
9023
9024 2006-10-31  Chris Toshok  <toshok@ximian.com>
9025
9026         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
9027         convention of clearing hwnd.ClientRect when we set the
9028         width/height (so it'll be recalculated by Hwnd).
9029
9030 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
9031
9032         * ContainerControl.cs: reversed Contains check from
9033         ActiveControl due to hanging problems. This fix
9034         partly regresses #79667 (button does not have
9035         initial focus), so this might be a symptom for 
9036         a larger parenting problem (set_ActiveControl
9037         is being called but the child control does
9038         not have the parent set yet?)   
9039         
9040 2006-10-31  Mike Kestner  <mkestner@novell.com>
9041
9042         * MenuAPI.cs : fix keynav when menu is click activated.
9043
9044 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
9045
9046         * ToolStrip*: Version 0.2.
9047
9048         * MenuStrip.cs: Version 0.1.
9049
9050         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
9051
9052 2006-10-30  Chris Toshok  <toshok@ximian.com>
9053
9054         [ fixes the oversized notify icon issue in bug #79745 ]
9055         
9056         * NotifyIcon.cs: scale the icon down to the size we're given by
9057         the XplatUI layer (this would be faster if we did it once instead
9058         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
9059         since it's never invoked.
9060
9061         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
9062         pixels high by default, so let's hardcode our systray icon to that
9063         size.  The SYSTEM_TRAY protocol should really have a way for
9064         client apps to query for the correct icon size.. but oh well.  A
9065         couple of patches to deal with the screwy client_window ==
9066         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
9067         instance, and also make sure we don't XSelectInput twice).
9068
9069 2006-10-30  Chris Toshok  <toshok@ximian.com>
9070
9071         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
9072         recreating forms.  Control recreation is the bane of my existence.
9073         Fix it in a way that keeps everyone happy.
9074
9075 2006-10-30  Chris Toshok  <toshok@ximian.com>
9076
9077         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
9078         just non-CHILD ones.  otherwise sometimes scrollbars end up with
9079         client_windows not being resized to the proper size (ReportBuilder
9080         shows this extremely well).
9081
9082 2006-10-30  Chris Toshok  <toshok@ximian.com>
9083
9084         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
9085         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
9086         showing up in the gnome taskbar.  Fixes bug #79790.
9087
9088 2006-10-30  Chris Toshok  <toshok@ximian.com>
9089
9090         * ApplicationContext.cs: guard against a NRE.
9091
9092         * Application.cs: null out the old MainForm for the context, so we
9093         don't try to use it again once it's disposed.  Fixes bug #79783.
9094
9095 2006-10-30  Chris Toshok  <toshok@ximian.com>
9096
9097         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
9098         BindingContext, set the data source directly, otherwise do the
9099         lazy approach - the actual ListManager will be created when we get
9100         a BindingContext. Fixes bug #79700.
9101
9102 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
9103
9104         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9105           XplatUIX11.cs: Remove old 2 parameter SetVisible.
9106
9107         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
9108
9109 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
9110
9111         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
9112         of SetVisible that allows a window to be shown, but not activated.
9113         This is needed on Windows for MenuStrip, and can probably be used
9114         with MainMenu and ComboBox to fix the focus stealing issues on
9115         Windows.
9116
9117         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
9118
9119 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
9120
9121         * PictureBox.cs: Fix the output of the ToString method.
9122
9123 2006-10-29  Chris Toshok  <toshok@ximian.com>
9124
9125         * Control.cs (get_TopLevelControl): fix bug #79781.
9126
9127 2006-10-29  Chris Toshok  <toshok@ximian.com>
9128
9129         * ListControl.cs (set_DataSource): throw Exception here, not
9130         ArgumentException, to match MS behavior.
9131
9132 2006-10-29  Chris Toshok  <toshok@ximian.com>
9133
9134         * Form.cs: remove the try-catch's around calls to GetWindowState.
9135         We can just check the return value.
9136
9137         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
9138         Instead return -1.
9139
9140         * XplatUI.cs: Add note about additional return value for
9141         GetWindowState.
9142
9143 2006-10-29  Chris Toshok  <toshok@ximian.com>
9144
9145         * Control.cs (CreateHandle): when we create our handle, we also
9146         create the handles of our child controls.  Fixes one of the
9147         Control unit tests (CH11).
9148
9149 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
9150
9151         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
9152
9153 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
9154
9155         * ThemeClearlooks.cs: A little speedup.
9156
9157 2006-10-27  Chris Toshok  <toshok@ximian.com>
9158
9159         * Control.cs: implement Control.FromChildHandle in a way that
9160         matches the docs (and fixes the failed test.)
9161
9162 2006-10-27  Chris Toshok  <toshok@ximian.com>
9163
9164         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
9165         comments).
9166
9167         * DataGrid.cs: implement ResetForeColor such that the tests
9168         succeed.
9169         
9170 2006-10-27  Chris Toshok  <toshok@ximian.com>
9171
9172         * ToolBarButton.cs: setting text/tooltiptext to null results in it
9173         being set to "".  Fixes bug #79759.
9174
9175 2006-10-27  Jackson Harper  <jackson@ximian.com>
9176
9177         * TextControl.cs: We need to clear the entire selection area when
9178         setting the start, otherwise multiline selections are still
9179         visible.
9180
9181 2006-10-26  Chris Toshok  <toshok@ximian.com>
9182
9183         * PropertyGridView.cs: 
9184
9185         - ifdef all the code specific to the double
9186         buffer case, and provide some alternatives in the non-doublebuffer
9187         code, which makes heavy use of XplatUI.ScrollWindow to move things
9188         around without having to invalidate (and cause flicker).  There
9189         are still some drawing problems in the non-doublebuffered case, so
9190         DOUBLEBUFFER is defined by default.
9191
9192         - Fix the way dropdowns are handled.  now we explicitly watch for
9193         the events which might cause the dropdown to close, and break out
9194         of the nested event loop there.  This gets rid of all Capture
9195         code, at the expense of the Msg special casing.  Seems to work,
9196         though, and fixes bug #79743.
9197
9198 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
9199         * Control.cs: SetIsRecreating now recreates implicitly added
9200         child controls as well. Finally fixes #79629. The flag passed to 
9201         SetIsRecreating has also been removed since it wasn't used.
9202         
9203 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9204
9205         * PageSetupDialog.cs: Clean some code, fix some bits, 
9206         add some checks, and add a printer sub-dialog.
9207
9208 2006-10-26  Chris Toshok  <toshok@ximian.com>
9209
9210         * PropertyGrid.cs: make set_SelectedObject call
9211         set_SelectedObjects, and move the duplicate logic to the
9212         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
9213
9214         * PropertyGridView.cs: hide the textbox when we get a
9215         SelectedObjectsChanged event.
9216
9217         Fixes bug #79748.
9218
9219 2006-10-26  Chris Toshok  <toshok@ximian.com>
9220
9221         * PropertyGridView.cs: deal with the type converter not supporting
9222         GetStandardValues() or GetStandardValues() returning null, which
9223         is does in the default case.  Fixes #79742.
9224
9225 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
9226
9227         * CheckedListBox.cs: nunit no longer crashes when selecting 
9228         Project/Edit menu option
9229         
9230 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
9231
9232         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
9233         is no menu selected. fixes #79739
9234
9235 2006-10-25  Chris Toshok  <toshok@ximian.com>
9236
9237         * PropertyGridView.cs: factor out the splitter invalidation code
9238         into the SplitterPercent setter, and for kicks implement the
9239         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
9240         amount in either direction.
9241
9242 2006-10-25  Chris Toshok  <toshok@ximian.com>
9243
9244         * PropertyGridView.cs: do some cleanup of the brush used to draw
9245         text - read only fields should be grayed out.  not sure how to do
9246         this with the textbox, though.  but the textbox's should also be
9247         readonly now at least.  Also, hide/show the textbox when resizing
9248         the control.
9249         
9250         * CursorConverter.cs: use System.Reflection when getting the
9251         properties of Cursors, as TypeDescriptor.GetProperties isn't
9252         returning static properties.
9253
9254 2006-10-25  Chris Toshok  <toshok@ximian.com>
9255
9256         * PropertyGridView.cs: factor out the up/down handling, and reuse
9257         it for page up/down.  also add End/Home support.
9258
9259 2006-10-25  Chris Toshok  <toshok@ximian.com>
9260
9261         * PropertyGridView.cs:
9262
9263         - ensure the selected grid item is visible in the scrolled area,
9264         fixes bug #79572.
9265
9266         - fix Keys.Down handling when you're on the last item in the
9267         propertygrid.
9268
9269 2006-10-25  Mike Kestner  <mkestner@novell.com>
9270
9271         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
9272         clicks too.  Fixes #79725.
9273
9274 2006-10-24  Chris Toshok  <toshok@ximian.com>
9275
9276         * PropertyGrid.cs: use property.Converter instead of
9277         TypeDescriptor.GetConverter(property.PropertyType), so we catch
9278         TypeConverters declared on the property as well as on the
9279         PropertyType.  Fixes bug #79678.
9280
9281 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
9282
9283         * MimeIcon.cs, Mime.cs:
9284           Fallback to the default platform handler if no shared mime info
9285           stuff exists (fixes #79693).
9286
9287 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9288         * ContainerControl.cs: Incorrect contains check in ActiveControl 
9289         from previous fix (duh).
9290
9291 2006-10-20  Chris Toshok  <toshok@ximian.com>
9292
9293         * PropertyGridView.cs: the dropdown should be MIN(number of items
9294         in list, 15).  Fixes #79551.
9295
9296 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9297         Fixes #79384, #79394, #79652, #79667
9298         * Application.cs: 
9299         
9300         - Modal windows are now destroyed in the proper order for windows
9301         
9302         * ContainerControl.cs:
9303         
9304         - ActiveControl setter has more conditions on when to return:
9305                 - if we're reselecting the active control, but it actually
9306                 didn't have focus (window hidden or some such), it runs
9307                 - if the active control being selected doesn't actually 
9308                 exist in the container, it returns
9309         
9310         * Form.cs
9311         
9312         - The ShowDialog now gets the current form as the owner when
9313         invoking without parameters, and correctly activates the owner 
9314         when returning
9315         
9316         * MessageBox.cs
9317         
9318         - MessageBox now catches the Escape key to exit
9319
9320 2006-10-20  Chris Toshok  <toshok@ximian.com>
9321
9322         * PropertyGridView.cs: fix a number of issues (bug #78565, and
9323         most of bug #79676):
9324
9325         - you can navigate around the property grid with the arrow keys.
9326
9327         - the dropdown is sized properly when the pg has a vertical
9328         scrollbar.
9329
9330         - fix the indentation for subentries, and properly select the
9331         entire label rect.
9332
9333         - fix the gray bar's drawing (only draw it to the last element,
9334         not for the height of the control.  Also make sure we draw that
9335         last horizontal grid line.
9336
9337         - use the same mechanism the datagrid uses wrt the editing textbox
9338         when scrolling/resizing/etc.  Namely, we hide it first, do the
9339         operation, then show it again (if it's still visible).
9340         
9341         - aggressively remove a lot of unnecessary refreshes (and also
9342         calls to Invalidate(). call more limited variants, and only redraw
9343         what we need.)
9344         
9345         * PropertyGrid.cs:
9346
9347         - when we're populating the merged collection, fill in the UI
9348         parent with either the passed in item, or the category item we
9349         create.
9350
9351         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
9352
9353         * GridItem.cs: drop some fully qualified names.
9354         
9355         * GridEntry.cs: add a "UIParent", which is basically the parent
9356         treenode.
9357
9358         * GridItemCollection.cs: add an IndexOf method.
9359
9360 2006-10-20  Mike Kestner  <mkestner@novell.com>
9361
9362         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
9363         a working win32 NC invalidation mechanism, we can't invalidate
9364         menus.  [Fixes #79705]
9365
9366 2006-10-20  Mike Kestner  <mkestner@novell.com>
9367
9368         * ListBox.cs : don't update the VScrollbar if the list is empty,
9369         just hide it.  [Fixes #79692]
9370
9371 2006-10-20  Jackson Harper  <jackson@ximian.com>
9372
9373         * RichTextBox.cs: Handle some special chars better, and don't skip
9374         the entire group when we encounter a special char that we don't
9375         handle correctly.
9376
9377 2006-10-18  Chris Toshok  <toshok@ximian.com>
9378
9379         * PropertyGridView.cs: address a number of issues from bug #79676,
9380         mostly of the cosmetic variety.
9381
9382         - The highlight rectangle for indented items not extends all the
9383         way to the left.
9384
9385         - Indented items aren't indented so much.
9386
9387         - the dropdown is properly sized width-wise if the pg has a
9388         vertical scrollbar.
9389
9390 2006-10-18  Chris Toshok  <toshok@ximian.com>
9391
9392         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
9393         systray stuff is rather convoluted to begin with.
9394
9395         systray icons are a single window for some reason (that I haven't
9396         figured out yet), and for them, client_window == whole_window.
9397         Given the way the tests are structured elsewhere to determine
9398         which paints are pending (client vs. nc), that situation will
9399         always yield PAINT, not NCPAINT.  So, if we have a pending
9400         nc_expose and no pending expose, remove the hwnd from the paint
9401         queue, and also set nc_expose_pending to false, to keep us from
9402         blocking further expose's adding the hwnd to the paint queue.
9403
9404         phew.  like i said, a rather convoluted change.  Fixes the
9405         notifyicon repaint issues in bug #79645.
9406
9407 2006-10-18  Chris Toshok  <toshok@ximian.com>
9408
9409         * Form.cs: when getting the backcolor of the form, don't get
9410         base.BackColor, as this allows parents to influence the background
9411         color.  This breaks mdi forms.  Instead, if the background_color
9412         is empty, return the default.
9413
9414 2006-10-18  Chris Toshok  <toshok@ximian.com>
9415
9416         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
9417         to being private instead of internal static.
9418
9419         * Control.cs: remove all the stupid ParentWaitingOnRecreation
9420         crap, it wasn't working for more deeply nested controls anyway,
9421         and we already have the is_recreating flag - use that instead.
9422         Before calling DestroyHandle in RecreateHandle, recurse through
9423         the control tree setting it to true.  this returns the recreate
9424         code to much of its original simplicity, while now guaranteeing we
9425         actually recreate everything we're supposed to.  This change gets
9426         fyireporting actually showing mdi children.
9427
9428 2006-10-17  Chris Toshok  <toshok@ximian.com>
9429
9430         * Form.cs: remove some debug spew, and collapse some duplicate
9431         code at the end of SetClientSizeCore.
9432
9433         * XplatUIX11.cs: 
9434         - add some more debug spew here too wrt Destroy handling.
9435         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
9436         in Control's handling of WM_DESTROY.
9437         - Remove the handling of zombie window DestroyNotifies from the
9438         event loop - we don't need it.  Now the only DestroyNotifies we
9439         actually handle are ones generated by X.
9440         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
9441         match gtk's (functioning) handling of this. This keep metacity
9442         from leaving droppings in the form of wm borders with no window
9443         contents all over the place.
9444
9445         * Control.cs:
9446         - add a bunch of debug spew wrt control recreation.
9447         - fix a bug where we weren't tracking Visible properly on
9448         recreated hwnds.
9449         - fixed the WM_PAINT double buffer handling to support re-entrant
9450         calls (yes, i know it's gross, but it's happening to us).
9451
9452 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9453         * ThemeWin32Classic.cs: changed drawing of selected days
9454         to make them look better.
9455
9456 2006-10-16  Chris Toshok  <toshok@ximian.com>
9457
9458         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
9459         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
9460
9461         * XplatUIX11.cs: move away from using hwnd.client_dc and
9462         hwnd.non_client_dc and on to a stack of dc's (and in window's
9463         case, PAINTSTRUCT's), so we can deal with nested Paint calls
9464         without puking or not disposing of Graphics objects.
9465
9466         * XplatUIOSX.cs: same.
9467
9468         * XplatUIWin32.cs: same.
9469
9470 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9471
9472         * FileDialog.cs: Don't call on_directory_changed inside
9473           OnSelectedIndexChanged (it changes the SelectedIndex too).
9474           Instead move it to OnSelectionChangeCommitted.
9475
9476 2006-10-13  Chris Toshok  <toshok@ximian.com>
9477
9478         * XplatUIX11.cs: more Destroy work.  the current code does the
9479         following things, in order:
9480
9481         1. Enumerates all handles of all controls at or below the one
9482         being destroyed, in pre-order.  As it is doing this, it marks the
9483         handles as zombie and clears all references to them.
9484         
9485         2. calls XDestroyWindow on the window passed in.
9486
9487         3. SendMessage's WM_DESTROY to all he handles in the accumulated
9488         list.
9489
9490 2006-10-13  Chris Toshok  <toshok@ximian.com>
9491
9492         * XplatUIX11.cs: set hwnd.zombie to true before calling
9493         SendMessage (WM_DESTROY).  this keeps us from marking the new
9494         window a zombie, and also keeps us from calling sendmessage at
9495         all.
9496
9497 2006-10-13  Jackson Harper  <jackson@ximian.com>
9498
9499         * TextControl.cs: Do not show the caret and selection at the same
9500         time.  Reduces ugliness by 35%.
9501
9502 2006-10-13  Chris Toshok  <toshok@ximian.com>
9503
9504         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
9505         zombie after we do the recursive call, so we actually do call
9506         SendMessage on the children controls.
9507         (GetMessage): if we find a pending paint event for a zombie hwnd,
9508         remove the hwnd from the paint queue, or else it will always be
9509         there (and we'll effectively loop infinitely)
9510
9511 2006-10-13  Mike Kestner  <mkestner@novell.com>
9512
9513         * MenuItem.cs : add Selected format under keynav too.
9514         Fixes #79528.
9515
9516 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9517
9518         * PropertyGrid.cs: Fixed some NRE's and small difference between our
9519         implementation and that of MS.
9520
9521 2006-10-13  Chris Toshok  <toshok@ximian.com>
9522
9523         * Control.cs (OnInvalidated) only futz with the invalid_region if
9524         the control is double buffered.  this fixes the apparent hang in
9525         the ListView unit tests.  Someone needs to make the
9526         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
9527
9528 2006-10-13  Chris Toshok  <toshok@ximian.com>
9529
9530         * PropertyGridView.cs:
9531
9532         - do a little refactoring so that only one place calls
9533         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
9534         else call that.  Also make it Refresh, since there are redraw bugs
9535         otherwise (we should take a look at that...)
9536
9537         - do a little more refactoring work to share the body of code
9538         involved with the drop down.  it was duplicated in the code
9539         dealing with the listbox handling and in the code dealing with the
9540         UITypeEditors.
9541
9542         - add a Capture to the dropdown form's control once it's
9543         displayed, and add a MouseDown handler that checks to make sure
9544         the position is inside the control.  If it's not, close the
9545         dropdown.  This fixes #78190.
9546
9547         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
9548         if the value is different than the initial value.
9549         
9550 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
9551
9552         * Control.cs: see #78650
9553         - Fixed GetNextControl for several cases:
9554                 - Changed FindFlatForward to return 
9555                 correct sibling control when more than one
9556                 control has same TabIndex as the currently 
9557                 focused one.
9558                 - Changed FindFlatBackward to loop children
9559                 from last to first and apply same logic as in
9560                 FindFlatForward
9561                 - Changed FindControlForward to search for
9562                 children when control is not a container
9563                 but has children, or search for siblings if
9564                 control is a container...
9565                 - Changed FindControlBackward   to continue
9566                 searching for child controls when hitting 
9567                 Panel-like parents
9568                 
9569         - Fixed Focus method to update ActiveControl
9570         (FocusTest.FocusSetsActive failure)
9571         
9572         * TabControl.cs:
9573         - Focus rectangle now refreshes when gaining
9574         or losing focus
9575         - Removed grab for Tab key on IsInputKey that 
9576         was keeping tab navigation from working (#78650)
9577
9578 2006-10-13  Chris Toshok  <toshok@ximian.com>
9579
9580         * PropertyGridView.cs:
9581         - Rewrite SetPropertyValue to loop over SelectedGridItem's
9582         SelectedObjects.
9583
9584         - Deal with GridItem.Value == null a few places.
9585
9586         * PropertyGrid.cs: 
9587         - replace the PopulateGridItemCollection with a pair of methods
9588         which compute the intersection of all the properties in the
9589         SelectedObjects array.  Fixes #79615.
9590
9591         - Throw ArgumentException from set_SelectedObjects if there's a
9592         null in the array.
9593
9594         - Add GetTarget method which can be used to traverse up the
9595         GridItem.Parent chain.  It depends on the assumption that
9596         selected_objects for different GridEntries are always in the same
9597         order (a safe assumption).  Use this method and loop over all the
9598         selected objects in the entry when calling RemoveValueChanged and
9599         AddValueChanged.
9600         
9601         * GridEntry.cs: Make this handle multiple selected objects.
9602         .Value returns null if not all the selected objects share the same
9603         value.
9604
9605 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
9606         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
9607           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
9608           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
9609           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
9610           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
9611         add additional functionality.
9612
9613 2006-10-12  Mike Kestner  <mkestner@novell.com>
9614
9615         * ErrorProvider.cs : new ToolTipWindow ctor sig.
9616         * HelpProvider.cs : new ToolTipWindow ctor sig.
9617         * ToolTip.cs : remove ToolTip param from Window sig since it is
9618         not used.
9619         * ToolBar.cs : add tooltip support.  Fixes #79565.
9620
9621 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9622
9623         * ComboBox.cs: move the events in set_SelectedIndex to 
9624         after the call to HighlightIndex in order to avoid 
9625         possible recursion and subsequent problems with the call
9626         to HighlightIndex and include a range check in 
9627         set_HighlightIndex. Fixes #79588
9628         
9629 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9630
9631         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
9632         to ui thread's settings instead of sunday. 
9633         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
9634
9635 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9636
9637         * DateTimePicker.cs
9638         * MonthCalendar.cs
9639         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
9640         and implement missing functionality (selecting different parts 
9641         of the date and edit them individually with the keyboard).
9642         
9643 2006-10-11  Chris Toshok  <toshok@ximian.com>
9644
9645         * Control.cs (OnInvalidated): fix NRE relating to last change.
9646
9647 2006-10-11  Chris Toshok  <toshok@ximian.com>
9648
9649         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
9650         atoms in _NET_WM_STATE here if the window is maximized.  We need
9651         to do this because we're *replacing* the existing _NET_WM_STATE
9652         property, so those atoms will be lost otherwise, and any further
9653         call to GetWindowState will return Normal for a window which is
9654         actually maximized.  Fixes #79338.
9655
9656 2006-10-11  Jackson Harper  <jackson@ximian.com>
9657
9658         * TextControl.cs: Special case for setting selection end to
9659         selection start, we basically kill the anchor.
9660         - some todo comments.
9661
9662 2006-10-11  Chris Toshok  <toshok@ximian.com>
9663
9664         * Control.cs: switch to using an "invalid_region" to track which
9665         parts of the image buffer need updating.  This is more code than
9666         the simple fix from r66532.  That version just attempted to always
9667         fill the entire buffer on redraw, which turns out to be
9668         inefficient when invalidating small rectangles.  This version
9669         simply adds the invalid rectangle to the invalid region.  When we
9670         get any WM_PAINT message we see if it can be filled using the
9671         image buffer, and if it can't (if the paint event's clip rectangle
9672         is visible in the invalid region) we first fill the image buffer.
9673         So, the image buffer is still a cache, we just fill it lazily.
9674
9675         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
9676         need it any longer.
9677
9678 2006-10-11  Chris Toshok  <toshok@ximian.com>
9679
9680         * XplatUIX11.cs (SetWindowPos): we need to update both position as
9681         well as size after calling XMoveResizeWindow.  This keeps us from
9682         ignoring future SetWindowPos calls.  Fixes the disappearing
9683         DateTimePicker in the ToolBarDockExample from bug #72499.
9684
9685 2006-10-11  Chris Toshok  <toshok@ximian.com>
9686
9687         * TextBoxBase.cs: reorder things a bit when it comes to
9688         resizing-causing-recalculation.  we were recalculating the
9689         document when our position was changed, which shouldn't happen.
9690         We only care about size changes.  Clear up some more redundant
9691         recalculation calls while I'm at it.  This makes the toolbar dock
9692         example snappy when you're just dragging toolbars around (since it
9693         causes a relayout whenever you move one.)
9694
9695 2006-10-11  Chris Toshok  <toshok@ximian.com>
9696
9697         * ToolBarButton.cs (get_Rectangle): this only returns
9698         Rectangle.Empty if Visible == false, or Parent == null.
9699         Parent.Visible doesn't matter.
9700
9701 2006-10-10  Chris Toshok  <toshok@ximian.com>
9702
9703         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
9704         by .net 1.1, so switch to an internal method instead.
9705
9706 2006-10-10  Chris Toshok  <toshok@ximian.com>
9707
9708         * Control.cs (WM_PAINT): when a control is double buffered we draw
9709         initially to the ImageBuffer and then copy from there.  But when a
9710         parent control which has child controls is double buffered, the
9711         initial drawing doesn't encompass the entire ClientRectangle of
9712         the parent control, so we end up with uninitialized bits (this is
9713         easily seen by dragging the top toolbar in
9714         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
9715         manually set the ClipRectangle of the paint_event (only the one we
9716         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
9717         of the nastiness in bug #72499.
9718
9719         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
9720         which we use in Control.cs's WM_PAINT handling.
9721
9722 2006-10-10  Jackson Harper  <jackson@ximian.com>
9723
9724         * TextBoxBase.cs: Finish off the autoscrolling stuff.
9725
9726 2006-10-10  Chris Toshok  <toshok@ximian.com>
9727
9728         * Cursor.cs: Apply a slightly different patch to the one suggested
9729         in #79609.
9730
9731 2006-10-10  Jackson Harper  <jackson@ximian.com>
9732
9733         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
9734         not the parent form.
9735         * TextControl.cs: use difference in old line count vs new count to
9736         calculate how many lines were added, this takes into account soft
9737         line breaks properly.
9738
9739 2006-10-10  Chris Toshok  <toshok@ximian.com>
9740
9741         * LinkLabel.cs: don't call MeasureCharacterRanges against a
9742         rectangle located at 0,0 and the size of the text.  Use
9743         ClientRectangle instead.  This fixes rendering of non-left aligned
9744         link labels.
9745
9746 2006-10-10  Jackson Harper  <jackson@ximian.com>
9747
9748         * TextBoxBase.cs: When we set the selection start position the
9749         caret.
9750         * TextControl.cs: Need to update the caret when we decrement it to
9751         zero.
9752         - Make sure that the selection_visible flag gets reset to false if
9753         the selection isn't visible.  Before this you could get it set to
9754         visible by changing the selection start, then changing the end to
9755         equal the start.
9756
9757 2006-10-09  Jackson Harper  <jackson@ximian.com>
9758
9759         * TreeView.cs: Don't update scrollbars when we aren't visible.
9760         * TreeNodeCollection.cs: Only need to update scrollbars if being
9761         added to an expanded visible node or the root node.
9762
9763 2006-10-09  Chris Toshok  <toshok@ximian.com>
9764
9765         * XplatUIX11.cs (SendMessage): fix NRE.
9766
9767 2006-10-09  Jackson Harper  <jackson@ximian.com>
9768
9769         * TextBoxBase.cs: Implement horizontal autoscrolling.
9770         * TextControl.cs: Add a movement types that allows moving forward
9771         and backwards without wrapping.
9772
9773 2006-10-09  Mike Kestner  <mkestner@novell.com>
9774
9775         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
9776         with focus "expansion" of labels.  Fixes #79532 and then some.
9777         * ThemeWin32Classic.cs : add LineLimit to ListView label format
9778         when wrapping.
9779
9780 2006-10-09  Jackson Harper  <jackson@ximian.com>
9781
9782         * TextBoxBase.cs: Set the default max values to MaxValue since
9783         we use the scrollbar for autoscrolling and the default value is
9784         100.  If we don't do this the caret won't keep up with typing
9785         after about 18 characters.
9786         * TextControl.cs: Make sure the selection is offset by the
9787         viewport x.  This fixes selection when using auto scrolling.
9788
9789 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
9790         
9791         * Form.cs: The active control should be selected after the 
9792         OnLoad so that any child control initialization that affects
9793         the selection is done. Fixes #79406
9794
9795 2006-10-06  Chris Toshok  <toshok@ximian.com>
9796
9797         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
9798         to have no evil effects.
9799
9800         - Stop selecting StructureNotifyMask on non-toplevel windows.
9801
9802           The only way children should be resized is by using the SWF api,
9803           and we already send WM_WINDOWPOSCHANGED messages in those cases.
9804           Toplevel windows can be interacted with via the window manager,
9805           and so we keep the input mask there.
9806
9807           The other event StructureNotifyMask gives us (that we care
9808           about) is DestroyNotify.  The code is already structured such
9809           that it assumes we won't be getting a DestroyNotify event for
9810           the window we pass to XDestroyWindow (which is what
9811           StructureNotifyMask is supposed to guarantee.)  So, that code
9812           shouldn't be affected by this either.
9813
9814         - Stop selecting VisibilityChangeMask altogether.
9815
9816           We weren't doing anything with the resulting events anyway.
9817         
9818         This vastly reduces the number of X requests and events we see
9819         when resizing/laying out a large ui.
9820
9821 2006-10-06  Chris Toshok  <toshok@ximian.com>
9822
9823         * ScrollableControl.cs (DisplayRectangle): we need to take into
9824         account the DockPadding regardless of whether or not auto_scroll
9825         == true.  rework this slightly to this effect, and fix bug #79606,
9826         and part of #72499 (you can now see the drag handles and drag
9827         toolbars around).
9828
9829 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
9830
9831         * ListViewItem.cs: Collections of selected and checked items are now
9832         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
9833         we mark the collection "dirty".
9834         * ListView.cs: Marked collections readonly. Modified UpdateSelection
9835         to only clear SelectedItems when a new item is selected and MultiSelect
9836         is enabled. CheckedItems and SelectedItems now subscribe to Changed
9837         event of ListViewItemCollection, and mark its list dirty whenever
9838         that event is fire. This allows us to return selected/checked items 
9839         in the same order as they are in the Items collection. This matches
9840         the MS behavior.
9841
9842 2006-10-06  Chris Toshok  <toshok@ximian.com>
9843
9844         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
9845         right mouse clicks.  Fixes bug #79593.
9846
9847 2006-10-06  Chris Toshok  <toshok@ximian.com>
9848
9849         * Splitter.cs: doh, fix splitters that don't want to cancel the
9850         movement when you drag them.  Also, impose the limits on the
9851         values we send to the SplitterMovingEvent.  Fixes #79598.
9852
9853 2006-10-06  Jackson Harper  <jackson@ximian.com>
9854
9855         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
9856         since we use this for auto scrolling also.
9857
9858 2006-10-05  Chris Toshok  <toshok@ximian.com>
9859
9860         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
9861         beginning to think that most datagrid column types don't need this
9862         method.  Fixes bug #79392.
9863
9864 2006-10-05  Chris Toshok  <toshok@ximian.com>
9865
9866         * DataGrid.cs: move back to a more lazy scheme for creating the
9867         CurrencyManager, so we aren't updating it every time you set
9868         either DataSource or DataMember.  Also, don't call
9869         RecreateDataGridRows if the currency manager hasn't changed.
9870
9871 2006-10-05  Chris Toshok  <toshok@ximian.com>
9872
9873         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
9874         emitted, SelectedIndex should already be updated.  Fixes bug
9875         #78929.
9876
9877 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
9878
9879         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
9880           ToolStripTextBox.cs: Initial commit.
9881         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
9882
9883 2006-10-05  Jackson Harper  <jackson@ximian.com>
9884
9885         * TabControl.cs: We need to invalidate the tab control area when
9886         new ones are added (duh).
9887
9888 2006-10-03  Chris Toshok  <toshok@ximian.com>
9889
9890         * Form.cs (ProcessDialogKey): if the focused control is in this
9891         form and is a button, call its PerformClick method here.  Fixes
9892         #79534.
9893
9894 2006-10-04  Jackson Harper  <jackson@ximian.com>
9895
9896         * TabPage.cs: Ignore setting of Visible, and add an internal
9897         method for setting the controls visibility.  TabPage's Visible
9898         property is a little strange on MS, this seems to make us
9899         compatible, and fixes cases where people set all the tab pages to
9900         visible.
9901         * TabControl.cs: Use the new internal setting on tab pages
9902         visibility.
9903
9904 2006-10-03  Mike Kestner  <mkestner@novell.com>
9905
9906         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
9907
9908 2006-10-03  Mike Kestner  <mkestner@novell.com>
9909
9910         * ListView.cs : use is_visible instead of Visible to check if 
9911         scrollbars should be placed/sized.  Also some max_wrap_width
9912         love for LargeIcon view.  [Fixes #79533]
9913
9914 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
9915
9916         * TextControl.cs :
9917           Make set_TextAlign() do actually update the align. Fixed #78403.
9918
9919 2006-10-03  Chris Toshok  <toshok@ximian.com>
9920
9921         * DataGrid.cs: fix a crash when switching datasources if the
9922         vertical scrollbar is at someplace other than Value = 0.  Also,
9923         reduce the number of recalculation passes we do in SetDataSource
9924         from 2 to 1.
9925
9926 2006-10-03  Jackson Harper  <jackson@ximian.com>
9927
9928         * TextBoxBase.cs: Move the if value the same bail check up, we
9929         don't want to empty the document if it is already empty, this
9930         seems to severly mess up the caret.  TODO: I should probably fix
9931         the empty statement to update teh caret somehow.
9932
9933 2006-10-03  Chris Toshok  <toshok@ximian.com>
9934
9935         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
9936         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
9937         reflection, an internal row type, properties on said type, etc.)
9938         will work with our datagrid.  Fixes #79531.
9939
9940 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9941
9942         * FileDialog.cs: Don't crash if a path is not accessible
9943           (System.UnauthorizedAccessException). Fixes #79569.
9944         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
9945           a ':' too. Return unknown icon for those paths/files.
9946
9947 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
9948
9949         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
9950         GetContainerControl returns null.
9951
9952 2006-10-02  Chris Toshok  <toshok@ximian.com>
9953
9954         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
9955         call to XGetWindowAttributes instead of "handle".  fixes an X
9956         error using notifyicon after the NotifyIconWindow to Form base
9957         class switch.
9958
9959 2006-10-02  Chris Toshok  <toshok@ximian.com>
9960
9961         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
9962         server grab and looping we need to do to get down to the most
9963         deeply nested child window.
9964         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
9965         QueryPointer again after the WarpPointer so we can generate a
9966         proper (fake) MotionNotify event to be enqueued in the destination
9967         window's queue.
9968         (GetCursorPos): call QueryPointer.
9969
9970         Fixes #79556.
9971
9972 2006-10-02  Jackson Harper  <jackson@ximian.com>
9973
9974         * NotifyIcon.cs: Derive the notify icon from a form, so things
9975         like FindForm work on it.
9976         - Swallow the WM_CONTEXTMENU message, since that is generated on
9977         mouse down, and context menu is a mouse up kinda guy.  I believe
9978         the correct fix here is probably to make the notify icon entirely
9979         NC area, but this seems to work fine for anyone not manipulating
9980         WndProc.
9981
9982 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
9983
9984         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
9985           ToolStripItemCollection.cs, ToolStripLabel.cs,
9986           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
9987           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
9988           Initial implementation.
9989         * TextRenderer.cs: Provide padding to MeasureText.
9990
9991 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
9992
9993         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
9994         of ButtonBaseAccessibleObject. Fix bug #79552.
9995
9996 2006-10-02  Jackson Harper  <jackson@ximian.com>
9997
9998         * MdiWindowManager.cs: When maximizing use the containers client
9999         rect, not it's bounds, so nc area is accounted correctly.
10000         - Use the parent form's size for the menu position, since the
10001         client isn't always the full form size.
10002
10003 2006-10-01  Chris Toshok  <toshok@ximian.com>
10004
10005         * ScrollableControl.cs: make sure neither right_edge or
10006         bottom_edge are < 0, since they're used as LargeChange for the
10007         horiz/vert scrollbars respectively.  Fixes #79539.
10008
10009 2006-10-01  Chris Toshok  <toshok@ximian.com>
10010
10011         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
10012         the xplatuix11 code can cause us to destroy/recreate our handle.
10013
10014         * XplatUIX11.cs
10015         (SystrayAdd):
10016         - this code can be invoked many times for the same Hwnd.  Make
10017           sure we only destroy the client window once (the first time this
10018           method is called).  This fixes bug #79544.
10019         - Remove the call to the improperly bound XSync.  why we had two
10020           bindings to this, I will never know, but this call resulted in
10021           events being discarded from the queue(!).
10022         - correct a misunderstanding of _XEMBED_INFO - the second atom is
10023           not our current state but the state we wish to be in.  So, 0 if
10024           we don't want to be mapped.  Change it to 1.
10025         (SystrayRemove): The XEMBED spec makes mention of the fact that
10026         gtk doesn't support the reparent of client windows away from the
10027         embedder.  Looking at gtksocket-x11.c seems to agree with this.
10028         The only avenue we have for removing systray icons is to destroy
10029         them.  We don't want the handle to go away for good, though, so
10030         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
10031         #79545.
10032         
10033 2006-10-01  Chris Toshok  <toshok@ximian.com>
10034
10035         * Form.cs (WndProc): inline the native_enabled variable usage into
10036         the cases in which it's used.  Fixes #79536.
10037
10038 2006-09-29  Mike Kestner  <mkestner@novell.com>
10039
10040         * ListView.cs : toggle the selection state for ctrl clicks in 
10041         multiselect mode. [Fixes #79417]
10042
10043 2006-09-29  Mike Kestner  <mkestner@novell.com>
10044
10045         * ListView.cs : kill CanMultiSelect and refactor the selection
10046         code to support multiselection in the absence of mod keys. Steal
10047         arrow/home/end keys by overriding InternalPreProcessMessage to
10048         restore regressed keynav behavior.
10049         [Fixes #79416]
10050
10051 2006-09-29  Jackson Harper  <jackson@ximian.com>
10052
10053         * MdiClient.cs: Repaint the titlebars when the active window is
10054         changed.
10055
10056 2006-09-29  Chris Toshok  <toshok@ximian.com>
10057
10058         * Application.cs: when entering a runloop with a modal, make sure
10059         the hwnd is enabled.  Fixes #79480.
10060
10061 2006-09-29  Chris Toshok  <toshok@ximian.com>
10062
10063         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
10064         when ListManager.CanAddRows == false, bump us back one.
10065
10066         * DataGridColumnStyle.cs (ParentReadOnly): remove the
10067         listmanager.CanAddRows check.  This makes ArrayLists uneditable
10068         using a datagrid, which is not right.
10069         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
10070         is an IEditable, but call property_descriptor.SetValue regardless.
10071         fixes #79435.
10072
10073 2006-09-29  Chris Toshok  <toshok@ximian.com>
10074
10075         * DataGridBoolColumn.cs: we need to test equality in the face of
10076         possible null values (as is the case with the default NullValue).
10077         This patch keeps us from crashing in that case.
10078
10079 2006-09-29  Jackson Harper  <jackson@ximian.com>
10080
10081         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
10082         here, since it will get called for every node collection in the
10083         tree. This is now done in the treeview once the sorting is
10084         finished.
10085         * TreeView.cs: Recalculate the visible order, and update the
10086         scrollbars after sorting, set the top nope to the root so that the
10087         recalc actually works.
10088
10089 2006-09-29  Chris Toshok  <toshok@ximian.com>
10090
10091         * LinkLabel.cs: more handling of the default link collection in
10092         the face of LinkArea manipulation.  The default link collection
10093         contains 1 element (start=0,length=-1).  If the user sets LinkArea
10094         to anything and the links collection is the default, clear it.
10095         Then only add the link if its nonempty.  Fixes #79518.
10096
10097 2006-09-29  Chris Toshok  <toshok@ximian.com>
10098
10099         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
10100         piece correctly when we hit a '\n'.  Fixes #79517.
10101
10102 2006-09-29  Chris Toshok  <toshok@ximian.com>
10103
10104         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
10105         change the binding of gdk_init_check to take two IntPtr's, and
10106         pass IntPtr.Zero for both of them.  Fixes #79520.
10107
10108 2006-09-29  Mike Kestner  <mkestner@novell.com>
10109
10110         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
10111         [Fixes #78779]
10112
10113 2006-09-28  Jackson Harper  <jackson@ximian.com>
10114
10115         * XplatUIX11.cs: When translating NC messages make sure we go from
10116         whole window to screen, not client window to screen.
10117         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
10118         method doesn't exist
10119         - Skip over controls that aren't forms when arranging.
10120
10121 2006-09-28  Jackson Harper  <jackson@ximian.com>
10122
10123         * XplatUIWin32.cs: Clip the rect to the parent window.
10124         * XplatUIStructs.cs: Add clipping modes struct.
10125         * InternalWindowManager.cs: New private method that factors title
10126         bar heights in when calculating the pos of an NC mouse message.
10127         - Use SendMessage to force a paint when the form's size is changed
10128         instead of painting the decorations immediately.
10129         - Don't let the NC button click messages get to DefWndProc,
10130         because they will attempt to handle windowing themself, and this
10131         messes up z-order (it will put them in front of the scrollbars).
10132         * XplatUIX11.cs: Make sure that we don't reset window managers if
10133         we already have one (ie the window is an MDI window).
10134
10135 2006-09-28  Chris Toshok  <toshok@ximian.com>
10136
10137         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
10138         menu code really needs going over.
10139
10140 2006-09-27  Chris Toshok  <toshok@ximian.com>
10141
10142         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
10143         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
10144         window is maximizable.  So, we need to make sure that even if we
10145         clear the border/wm frame of those functions, they're still
10146         available (basically, we remove the decoration without removing
10147         the function).  Half the fix for #79338.
10148
10149 2006-09-27  Chris Toshok  <toshok@ximian.com>
10150
10151         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
10152         Fixes bug #79515.
10153
10154 2006-09-27  Chris Toshok  <toshok@ximian.com>
10155
10156         * Splitter.cs: reorder things a bit so that we don't actually
10157         draw/move the splitter until after calling OnSplitterMoving.  This
10158         lets users cancel/disallow the movement by explicitly setting
10159         event.SplitX/SplitY.  Fixes #79372.
10160
10161 2006-09-27  Jackson Harper  <jackson@ximian.com>
10162
10163         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
10164         because it is most likely on a window being destroyed, and that
10165         will give us an X11 error.
10166
10167 2006-09-27  Chris Toshok  <toshok@ximian.com>
10168
10169         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
10170         the dropdown button now toggles between showing and hiding the
10171         dropdown.  Also, get rid of dropdown_form_showing and just use
10172         dropdown_form.Visible.  We still don't do a grab, but I'll leave
10173         that part to someone who has handled Capture-fu before.
10174
10175 2006-09-27  Chris Toshok  <toshok@ximian.com>
10176
10177         * DataGrid.cs: return false if alt isn't pressed when '0' is
10178         pressed.  this keeps the '0' key from being swallowed, and fixes
10179         bug #79350.
10180
10181 2006-09-27  Chris Toshok  <toshok@ximian.com>
10182
10183         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
10184         Calling Refresh (in response to a scrollbar event) screws up the
10185         scrollbar painting.  Fixes bug #78923.
10186
10187 2006-09-27  Chris Toshok  <toshok@ximian.com>
10188
10189         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
10190         then insert into hashtable" blocks threadsafe.
10191
10192 2006-09-27  Chris Toshok  <toshok@ximian.com>
10193
10194         * MessageBox.cs (CreateParams): the styles should be |'ed with our
10195         baseclass's, since otherwise the
10196         ControlBox/MinimizeBox/MaximizeBox assignments above have no
10197         effect.  This gets the close button back in messageboxes.
10198
10199 2006-09-27  Chris Toshok  <toshok@ximian.com>
10200
10201         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
10202         flag, not just != 0.  this makes flags that are actually multiple
10203         bits (like WS_CAPTION) work.  fixes bug #79508.
10204
10205 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
10206
10207         * PageSetupDialog.cs: add support for getting and settings the 
10208         paper size, source and orientation.
10209
10210 2006-09-26  Chris Toshok  <toshok@ximian.com>
10211
10212         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
10213         and caption == "", we need to remove the resize handles as well as
10214         the title bar.
10215
10216         * Control.cs (set_Text): turns out that setting Text on a form
10217         should change the WM styles on the window, since if ControlBox ==
10218         false, the only way to get a window border is to have a non-""
10219         Text property.  check winforms/forms/text.cs for an example.  so,
10220         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
10221         update both window styles and title.  This fixes a lot of dialogs
10222         (including the preferences dialog in MonoCalendar.)
10223
10224 2006-09-26  Chris Toshok  <toshok@ximian.com>
10225
10226         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
10227         control isn't a Form), call Win32ShowWindow to hide the window,
10228         but don't update the control Visible property.  When we reparent
10229         back to a parent control, call SetVisible in order for the
10230         window's visibility to be reinstated.
10231
10232         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
10233         the FosterParent.
10234
10235         * Control.cs (ControlCollection.Remove): remove that value.Hide()
10236         call for good, since it breaks MonoCalendar (and other things I'm
10237         sure.) Also, set all_controls to null *after* the owner calls,
10238         which end up regenerating it.
10239         (ChangeParent): allow new_parent to be == null, passing
10240         IntPtr.Zero down to XplatUI.
10241
10242         this fixes #79294 the right way.
10243
10244 2006-09-26  Mike Kestner  <mkestner@novell.com>
10245
10246         * GridEntry.cs : internal SetParent method.
10247         * PropertyGrid.cs : attach to property changed on the proper
10248         target if we have a hierarchical grid with subobjects. Setup
10249         GridItem.Parent for hierarchical items.
10250         * PropertyGridView.cs : Set value on the correct target for
10251         hierarchical grids. [Fixes #78903]
10252
10253 2006-09-26  Chris Toshok  <toshok@ximian.com>
10254
10255         * Control.cs (ChildNeedsRecreating): this should return true if
10256         either we're being recreated and the child is in our list, or our
10257         parent is waiting for our recreation.
10258
10259 2006-09-26  Chris Toshok  <toshok@ximian.com>
10260
10261         * Control.cs (ControlCollection.Remove): reinstate the
10262         value.Hide() call as suggested in bug #79294.
10263
10264 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
10265
10266         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
10267         coordinates (versus a relative move).
10268
10269 2006-09-26  Chris Toshok  <toshok@ximian.com>
10270
10271         * Control.cs: rework child recreation a little bit.  It turns out
10272         that we race between the DestroyNotify the WM_DESTROY message.  If
10273         the parent gets its DestroyNotify before the child gets the
10274         WM_DESTROY message, the child ends up not recreating (since the
10275         parent finishes its recreation on DestroyNotify, and the child
10276         checks ParentIsRecreating.)
10277
10278         So, instead we store off a list of all the child controls which
10279         need to be recreated when the parent control starts to recreate
10280         itself.  Then, when child controls get their WM_DESTROY message we
10281         check to see if they're in the parent's pending recreation list,
10282         and if so, we recreate.  This removes all dependency on ordering
10283         from the code and fixes the initial MonoCalendar upgrade dialog.
10284         
10285 2006-09-26  Jackson Harper  <jackson@ximian.com>
10286
10287         * TextControl.cs: Use the Line to get the length of the line,
10288         since soft line breaks can change the end line.
10289
10290 2006-09-26  Chris Toshok  <toshok@ximian.com>
10291
10292         * Control.cs (ControlCollection.AddImplicit): don't add the
10293         control again if it's already in one of our lists.  This keeps us
10294         from adding controls over and over again for comboboxes when their
10295         handle gets recreated (as the combobox adds implicit controls in
10296         OnHandleCreated).  Fixes the X11 errors in bug #79480.
10297
10298 2006-09-26  Jackson Harper  <jackson@ximian.com>
10299
10300         * TextControl.cs: When deleting characters make sure that any
10301         orphaned zero lengthed tags get deleted.
10302         - Fix ToString for zero lengthed tags.
10303
10304 2006-09-25  Jackson Harper  <jackson@ximian.com>
10305
10306         * TextControl.cs: When getting a tag at the location there can be
10307         multiple tags at the same spot, these are 0-lengthed tags that
10308         appear when extra formatting has been stuck in a location.  We
10309         need to pull out the last of these 0 lengthed tags.
10310
10311 2006-09-25  Jackson Harper  <jackson@ximian.com>
10312
10313         * TextControl.cs: Fix print out in debug method.
10314         * TextBoxBase.cs: When text is set bail if we are setting to the
10315         previous value.
10316         
10317 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
10318
10319         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
10320           It is now possible to change the selected index in a FontXXXListBox
10321           with the up and down arrow keys from the FontXXXTextBoxes.
10322           Also, send the FontXXXTextBox mouse wheel event to the corresponding
10323           FontXXXListBoxes to match ms.
10324
10325 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
10326
10327         * SystemInformation.cs: Return a clone of the theme's MenuFont because
10328         anyone can dispose it, anytime. All other properties returns enums, 
10329         structs or basic types so they don't need such tricks.
10330
10331 2006-09-22  Jackson Harper  <jackson@ximian.com>
10332
10333         * XplatUI.cs:
10334         * XplatUIWin32.cs:
10335         * Clipboard.cs:
10336         * DataFormats.cs:
10337         * XplatUIOSX.cs:
10338         * XplatUIDriver.cs: Update interface to add a primary selection
10339         flag, so the driver can use the primary selection buffer if
10340         needed.
10341         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
10342
10343         * RichTextBox.cs: We need to supply the data object to paste now
10344         (so we can choose to supply CLIPBOARD or PRIMARY).
10345         * TextBoxBase.cs: Supply data object to paste (see above).
10346         - Middle click uses the primary selection data object.
10347         
10348 2006-09-21  Chris Toshok  <toshok@ximian.com>
10349
10350         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
10351         of SetWMStyles.  It's still a rat's nest and is largely
10352         order-dependent which I dislike immensely.  This also fixes the X
10353         button disappearing from toplevel forms.
10354
10355 2006-09-21  Mike Kestner <mkestner@novell.com>
10356
10357         * ListBox.cs: move Jordi's click/dblclick raising code to the
10358         mouse up handler.
10359
10360 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
10361
10362         * ListBox.cs: Fixes 79450
10363
10364 2006-09-21  Mike Kestner <mkestner@novell.com>
10365
10366         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
10367         to deal with people updating the TreeNodeCollection after the tree
10368         is disposed.  "Fixes" 79330.
10369
10370 2006-09-20  Jackson Harper <jackson@ximian.com>
10371
10372         * TextControl.cs: Push the cursor record onto the undo stack
10373         before the delete action. This fixes 78651.
10374
10375 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
10376
10377         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
10378         CreateParams. Fixes 79329.
10379
10380 2006-09-19  Chris Toshok  <toshok@ximian.com>
10381
10382         * XplatUIX11.cs: a couple of blanket code massage passes to clean
10383         things up a bit.  First, get rid of the NetAtoms array (and the NA
10384         enum), and just embed the atoms as static fields.  Also, add a
10385         couple of functions (StyleSet and ExStyleSet) to clean up all the
10386         bitmask testing of styles.
10387
10388         * X11Structs.cs: remove the NA enum, not needed anymore.
10389         
10390 2006-09-19  Chris Toshok  <toshok@ximian.com>
10391
10392         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
10393         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
10394         added cleanup to get MessageBox titles appearing again, which were
10395         broken by my earlier fix for caption-less/ControlBox-less windows.
10396
10397 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
10398
10399         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
10400           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
10401           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
10402           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
10403           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
10404           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
10405           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
10406           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
10407           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
10408           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
10409           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
10410             Inital import.
10411         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
10412           ToolStripButton.cs: Stubs needed for above.
10413         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
10414
10415 2006-09-15  Chris Toshok  <toshok@ximian.com>
10416
10417         * XplatUIX11.cs:
10418         - make the MessageQueues hashtable Synchronized.
10419         
10420         - SendMessage: if the Hwnd is owned by a different thread, use the
10421         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
10422         thread.  Fixes bug #79201.
10423
10424 2006-09-15  Chris Toshok  <toshok@ximian.com>
10425
10426         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
10427         ControlBox == false, we disallow maximize/minimize/close.  If the
10428         form Caption is "" we also disallow move (and get rid of the Title
10429         decoration).  Unfortunately, regardless of how things are set,
10430         we're stuck with the Title and WM menu.
10431
10432 2006-09-15  Chris Toshok  <toshok@ximian.com>
10433
10434         * Application.cs: add locking around the static message_filters
10435         ArrayList, part of #79196.
10436
10437 2006-09-15  Chris Toshok  <toshok@ximian.com>
10438
10439         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
10440         Form.ControlBox == false, the window has no titlebar nor resize
10441         handles.  fixes bug #79368.
10442
10443 2006-09-15  Chris Toshok  <toshok@ximian.com>
10444
10445         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
10446         >= 0.  Fixes bug #79370.
10447
10448 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
10449         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
10450         * Control.cs:
10451             Add properties: LayoutEngine, Margin, DefaultMargin.
10452             Add method: GetPreferredSize.
10453             Move layout logic from PerformLayout to layout engines. 
10454
10455 2006-09-13  Chris Toshok  <toshok@ximian.com>
10456
10457         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
10458         fix for #79326 broke #78718, so this change addresses that.
10459
10460         - in SendWMDestroyMessages remove the call to
10461         CleanupCachedWindows, since we might be recreating the control and
10462         need to maintain the references to right Hwnd handles.  Also, set
10463         the zombie flag to true for each of the children in the hierarchy
10464         instead of calling hwnd.Dispose.  This will cause GetMessage to
10465         ignore all events for the window except for DestroyNotify.
10466
10467         - In GetMessage, ignore messages except for DestroyNotify for
10468         zombie hwnds.
10469         
10470         * Control.cs: revert the is_recreating fix from the last
10471         ChangeLog.  It's definitely "right", but it breaks switching from
10472         an MDI form to a non-MDI form.  Will need to revisit that.
10473
10474         * Hwnd.cs: add a zombie flag, which means "the
10475         client_window/whole_window handles are invalid, but we're waiting
10476         for the DestroyNotify event to come in for them".  Set the flag to
10477         false explicitly if setting WholeWindow/ClientWindow, and also
10478         when Disposing.
10479         
10480 2006-09-13  Chris Toshok  <toshok@ximian.com>
10481
10482         * XplatUIX11.cs: rework window destruction slightly.
10483
10484         - when destroying the windows associated with a control, we don't
10485         need 2 separate XDestroyWindow calls.  Just the one for the
10486         whole_window (or for client_window if whole_window is somehow
10487         IntPtr.Zero -- can this happen?) is enough.
10488
10489         - reworked SendWMDestroyMessages slightly, so we always dispose
10490         the child control hwnd's after sending the messages.
10491         
10492         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
10493         the two places it was used (one was even using hwnd.Handle and the
10494         other hwnd.client_window.  ugh), adding another call in
10495         SendWMDestroyMessages.  We need this new call because now the
10496         DestroyNotify events in the queue will be ignored for the child
10497         controls (as their hwnd's were disposed, and the window id's
10498         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
10499
10500         - this fixes bug #79326.
10501
10502 2006-09-13  Chris Toshok  <toshok@ximian.com>
10503
10504         * Control.cs: don't always set is_recreating to false at the end
10505         of RecreateHandle, since sometimes we're not done (and won't be
10506         until WndProc handles the WM_DESTROY message).  Also, set
10507         is_recreating to false in the WM_DESTROY handling code.  Part of
10508         the fix for bug #79326.
10509
10510 2006-09-13  Miguel de Icaza  <miguel@novell.com>
10511
10512         * X11DesktopColors.cs: Start the droppage of debugging messages.
10513
10514         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
10515
10516 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
10517
10518         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
10519
10520 2006-09-12  Chris Toshok  <toshok@ximian.com>
10521
10522         * DataGrid.cs (get_ListManager): if the list_manager is null, try
10523         to create it using SetDataSource.  Fixes bug #79151.
10524
10525 2006-09-11  Chris Toshok  <toshok@ximian.com>
10526
10527         * XEventQueue.cs: add a DispatchIdle property.
10528
10529         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
10530         either the queue is null, or the queue has DispatchIdle set to
10531         true.
10532         (DoEvents): set queue.DispatchIdle to false around the
10533         peek/translate/dispatch message loop in this method.  This keeps
10534         Application.Doevents from emitting idle events.  Part of the fix
10535         for #78823.
10536
10537 2006-09-11  Chris Toshok  <toshok@ximian.com>
10538
10539         * DataGrid.cs (set_DataSource): make this work for both the
10540         winforms/datagrid test and ReportBuilder.  It seems as though when
10541         we've created a ListManager (or maybe it's if we have a
10542         BindingContext?), when we set the DataSource it clears the
10543         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
10544         #79333.
10545
10546 2006-09-11  Chris Toshok  <toshok@ximian.com>
10547
10548         * XplatUIX11.cs: deal with queue being null, which happens in all
10549         the Clipboard functions.  Fixes one of the two problems mentioned
10550         in #78612.
10551
10552 2006-09-11  Chris Toshok  <toshok@ximian.com>
10553
10554         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
10555         button on various spots (including outside the menu) works closer
10556         to MS, and doesn't crash.  Fixes #79343.
10557
10558 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
10559
10560         * ListView.cs: Do not initialize item_sorter in init. To match MS,
10561         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
10562         and the internal comparer is set. When a new ListViewItemSorter is set,
10563         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
10564         was specified. No further processing is necessary if SortOrder is set
10565         to it's current value. If Sorting is modified to None, and View is
10566         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
10567         (either custom or our internal ItemComparer) to null, on 1.0 profile
10568         only set item_sorter to null if its our internal IComparer. If Sorting
10569         is modified to Ascending or Descending, then use our internal IComparer
10570         if none is set, and if the current IComparer is our internal one then:
10571         on 2.0 profile always replace it with one for new Sorting, and on 1.0
10572         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
10573         Enum.IsDefined to verify whether a valid View value is specified in
10574         its setter. Automatically sort listview items when listview is
10575         created. In Sort, do nothing if ListView is not yet created, or if
10576         no item_sorter is set (no Sorting was set, Sorting was explicitly set
10577         to None or ListViewItemSorter was set to null). Added Sort overload
10578         taking a bool to indicate whether the ListView should be redrawn when
10579         items are sorted (we use this in ListViewItemCollection to avoid double
10580         redraws). Modified our internal IComparer to take the sort order into
10581         account. In Add and AddRange methods of ListViewItemCollection, also
10582         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
10583         view), but use overload with noredraw option to avoid double redraw.
10584         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
10585         true when View is Tile, and do the same when attempting to set View to
10586         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
10587         for selected/checked indices, as it involves overhead when sorting is
10588         done while these collections are not used all that often. Instead
10589         we'll build the indices on demand. Modified IList implementation of
10590         CheckedIndexCollection to use public methods if object is int.
10591         Modified CheckedListViewItemCollection to hide checked items if
10592         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
10593         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
10594         IList implementation in SelectedIndexCollection to use public methods
10595         if object is int. Modified SelectedListViewItemCollection to hide
10596         selected items if listview is not yet created.
10597         * ListViewItem.cs: CheckedIndices list no longer needs to be
10598         maintained separately (see ListView changes). Also clone font, fixes
10599         test failure.
10600
10601 2006-09-11  Mike Kestner  <mkestner@novell.com>
10602
10603         * ComboBox.cs: if we are updating the contents of the currently
10604         selected index, refresh the control or the textbox selection.
10605         [Fixes #79066]
10606
10607 2006-09-11  Mike Kestner  <mkestner@novell.com>
10608
10609         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
10610         the 'specified' logic has been moved there.  This seems like a bug 
10611         in Control.cs, since our current SetBoundsCore completely ignores 
10612         the specified parameter.  Peter's commit seems to indicate that is 
10613         the way the MS control implementation works.  [Fixes #79325]
10614
10615 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
10616
10617         * XplatUI.cs: Set default_class_name to be composed
10618         of current domain id. This allows MWF to be loaded in multiple
10619         domains on Win32.
10620
10621 2006-09-09  Miguel de Icaza  <miguel@novell.com>
10622
10623         * X11Keyboard.cs: If we are unable to obtain the input method, do
10624         not call CreateXic to create the input context.   Should fix
10625         #78944/79276.
10626
10627 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
10628
10629         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
10630           Simplified gnome support by adding more pinvokes to get the
10631           icon for a file or mime type.
10632
10633 2006-09-08  Jackson Harper  <jackson@ximian.com>
10634
10635         * MenuAPI.cs: Deslect popup context menu items before closing the
10636         window, so that you don't see the previously selected item
10637         selected when you reopen the menu.
10638         * TextControl.cs: Update the cursor position even if we don't have
10639         focus.  This fixes typing in things like the ComboBox.  I'm not
10640         totally sure we should always set the visibility if we don't have
10641         focus, but couldn't find any corner cases where the cursor showed
10642         up when it shouldn't.
10643
10644 2006-09-08  Chris Toshok  <toshok@ximian.com>
10645
10646         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
10647         our arrays are length 256.  & 0xff before indexing.  Fixes the
10648         crash in bug #78077.
10649         
10650 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10651
10652         * ThemeWin32Classic.cs: 
10653         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
10654         is true. Handle that check box too.
10655
10656 2006-09-07  Chris Toshok  <toshok@ximian.com>
10657
10658         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
10659         79244.
10660
10661 2006-09-07  Chris Toshok  <toshok@ximian.com>
10662
10663         * Control.cs: in set_BackColor only do the work if
10664         background_color != value.
10665
10666         * XplatUIX11.cs: move the clearing of invalid areas (both client
10667         and nc) to the same block of code where we set (nc_)expose_pending
10668         to false.  That is, move it from PaintEventEnd to PaintEventStart,
10669         so things that cause invalidates from within OnPaint will trigger
10670         another call to OnPaint.  Fixes bug #79262.
10671
10672 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
10673
10674         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
10675         * FileDialog.cs: Fix typo
10676
10677 2006-09-07  Jackson Harper  <jackson@ximian.com>
10678
10679         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
10680         for tab pages if they have any.
10681
10682 2006-09-06  Mike Kestner  <mkestner@novell.com>
10683
10684         * Splitter.cs: use the "current" rect when finishing drag handle
10685         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
10686
10687 2006-09-06  Mike Kestner  <mkestner@novell.com>
10688
10689         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
10690         support offset splitters. [Fixes #79298]
10691
10692 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
10693
10694         * Mime.cs: Fixed a bug that could override the global mime type
10695           result.
10696
10697 2006-09-05  Jackson Harper  <jackson@ximian.com>
10698
10699         * TabControl.cs: Better calculation method for setting the slider
10700         pos. Prevents crashes on really wide tabs.
10701         - Draw Image on tab pages if an image list is used.
10702
10703 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10704
10705         * MonthCalendar.cs: When Font changes, the Size should be
10706         updated to fit the new font's space requirements.
10707
10708 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
10709
10710         * ListBox.cs: If the items are cleared with Items.Clear set
10711           top_index to 0.
10712
10713 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10714
10715         * MonthCalendar.cs: Handle arrow keys as input keys. Also
10716         fire DateChanged event instead of DateSelected event when
10717         the date was changed by keyboard interaction.
10718
10719 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10720
10721         * DateTimePicker.cs: Handle DateChanged for the associated
10722         month_calendar control, and set month_calendar.Font from 
10723         OnFontChanged method, as well as resize the height of the
10724         control when needed. Make PreferredHeight proportional.
10725
10726 2006-09-01  Chris Toshok  <toshok@ximian.com>
10727
10728         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
10729         properties.
10730
10731         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
10732
10733 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
10734
10735         * FileDialog.cs: Set ClientSize instead of window size, to allow space
10736           for decorations (Fixes #79219)
10737
10738 2006-09-01  Mike Kestner  <mkestner@novell.com>
10739
10740         * ComboBox.cs: first stab at sorting plus some selection handling
10741         fixes to bring us more in line with MS behavior.  Also switches back
10742         to index based selection.  Alternative patches for index-based 
10743         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
10744         and latency@gmx.de on bug 78848.  I assume they were similar to this
10745         code I've had simmering in my tree forever.
10746         [Fixes #78848]
10747
10748 2006-09-01  Chris Toshok  <toshok@ximian.com>
10749
10750         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
10751         when setting list position guard against ending up with a -1 index
10752         (the other part of the fix for #78812).  Should probably make sure
10753         we don't need the analogous fix in the ItemDeleted case.
10754
10755         * DataGrid.cs:
10756         - in SetDataSource, work around the fact that the way
10757         OnBindingContextChanged is invoked will cause us to re-enter this
10758         method.  I'll remove the hack once I investigate
10759         OnBindingContextChanged.
10760
10761         - fix the logic in set_DataSource and set_DataMember (basically
10762         what to do if the other of the two is null.)
10763         
10764         - in OnListManagerItemChanged, we need to take into account the
10765         edit row when deciding whether or not to call RecreateDataGridRows
10766         (part of the fix for #78812).
10767
10768 2006-09-01  Jackson Harper  <jackson@ximian.com>
10769
10770         * Splitter.cs: Don't do anything if there is no control to affect
10771         (prevents us from crashing in weird tet cases).
10772         * TreeView.cs: Bounding box for the mouse movement reverting
10773         focus/selection back to previously selected node.  This matches
10774         MS, and makes the tree a lot more useable.
10775         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
10776         use clipping so they are not drawn.  This fixes when the control
10777         is set to have a transparent background, or if it was over an
10778         image.
10779
10780 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
10781
10782         * MimeIcon.cs: Improved handling for reading default icons when
10783           using gnome (2.16 made it necessary). Check and read svg icons
10784           first, then 48x48 and then 32x32 icons.
10785
10786 2006-08-31  Chris Toshok  <toshok@ximian.com>
10787
10788         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
10789         visible.
10790
10791         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
10792         ProcessKeyPreview.  Fixes part of #77806.
10793
10794         * DataGrid.cs: big patch.
10795
10796         - revert the queueing up of DataSource/DataMember if inside
10797         BeginInit/EndInit calls.  That's not the way the datagrid achieves
10798         its delayed databinding.  Instead, call SetDataSource in
10799         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
10800         #78811.
10801
10802         - Also, it wasn't mentioned in #78811, but the test case exhibits
10803         behavior that was lacking in our datagrid implementation - Columns
10804         that have mapping names that don't exist in the datasource's
10805         properties aren't shown.  Yuck.  To fix this I added the bound
10806         field to the column style, and basically any calculation to figure
10807         out anything about columns uses a loop to find the bound columns.
10808         still need to investigate if I can cache an array of the bound
10809         columns or if the indices must be the same.
10810
10811         - When setting CurrentCell, we no longer abort if the cell being
10812         edited was in the add row.  This fixes the other part of #77806.
10813
10814         - The new code also fixes #78807.
10815         
10816         * ThemeWin32Classic.cs: perpetrate the same disgusting
10817         column.bound field hack, and only render bound fields.
10818
10819 2006-08-31  Chris Toshok  <toshok@ximian.com>
10820
10821         * DataGridColumnStyle.cs: add bound field.  this field is true if
10822         the datasource has a property corresponding to the mapping name.
10823
10824         * DataGridTableStyle.cs: set the bound field on the column styles
10825         depending on whether or not we have a column for that property.
10826
10827 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
10828
10829         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
10830           splitter control (fixes #79228)
10831
10832 2006-08-31  Chris Toshok  <toshok@ximian.com>
10833
10834         * DataGridColumnStyle.cs: we need to delay the assignment of
10835         property descriptor until the last possible moment due to the lazy
10836         databinding stuff in the datagrid.  Also, fix the exceptions
10837         thrown by CheckValidDataSource to match MS.
10838
10839 2006-08-31  Jackson Harper  <jackson@ximian.com>
10840
10841         * Form.cs: When activated select the active control, if there is
10842         no active control, we select the first control.
10843         * XplatUIX11.cs: If there is no focus control when we get a
10844         FocusIn event, find the toplevel form and activate it.  This
10845         occurs when you popup a window, it becomes the focus window, then
10846         you close that window, giving focus back to the main window.
10847
10848 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10849
10850         * MonthCalendar.cs: 
10851         * ThemeWin32Classic.cs: Cache Font in bold style, as well
10852         as StringFormat with Center alignments in MonthCalendar,
10853         instead of creating new ones when drawing the control. 
10854         Also, draw the month name in bold style.
10855
10856 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10857
10858         * Control.cs:
10859           - PerformLayout(): It would seem MS performs the fill even if the 
10860             control is not visible (part of #79218 fix)
10861           - ResetBackColor(): Use the setter to reset the color, to allow
10862             overriders to catch the change.
10863         * Form.cs:
10864           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
10865           - CreateHandle(): dito (part of $79218 fix)
10866           - Don't set an icon if we have a dialog
10867         * ScrollableControl.cs:
10868           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
10869           - ScrollIntoView(): No need to scroll if control is already visible
10870             (resolves fixme and fixes #79218)
10871
10872 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10873
10874         * MonthCalendar.cs: Change proportions in SingleMonthSize
10875         to match the aspect of the original control.
10876
10877 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
10878
10879         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
10880           get updated when they get maximized.
10881
10882 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10883
10884         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
10885
10886 2006-08-29  Chris Toshok  <toshok@ximian.com>
10887
10888         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
10889
10890 2006-08-29  Jackson Harper  <jackson@ximian.com>
10891
10892         * TreeView.cs: Need to track selected node and highlighted node,
10893         they aren't always the same thing, when the mouse is down on a
10894         node it is hilighted, but not selected yet.
10895         - Do the HideSelection stuff right
10896         - Need to focus on rbutton mouse down. And redraw selection when
10897         right click is mouse upped.
10898
10899 2006-08-29  Mike Kestner  <mkestner@novell.com>
10900
10901         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
10902         when SubItems.Count < Columns.Count.  [Fixes #79167]
10903
10904 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
10905
10906         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
10907
10908 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
10909
10910         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
10911           from X. Only send based on ConfigureNotify if we don't have the
10912           correct location in hwnd (if the window manager moved us)
10913
10914 2006-08-28  Mike Kestner  <mkestner@novell.com>
10915
10916         * ListView.cs: remove a TODO. 
10917         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
10918         [Fixes ListView part of #79166]
10919
10920 2006-08-28  Mike Kestner  <mkestner@novell.com>
10921
10922         * ListView.cs: move wheel handler to parent since it is focused
10923         instead of the item_control now.  [Fixes #79177]
10924
10925 2006-08-28  Mike Kestner  <mkestner@novell.com>
10926
10927         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
10928         when the control is focused. [Fixes #79171]
10929
10930 2006-08-28  Mike Kestner  <mkestner@novell.com>
10931
10932         * ListView.cs: size the item and header controls for empty and
10933         unscrollable views.
10934         * ThemeWin32Classic.cs: draw disabled backgrounds.
10935         [Fixes #79187]
10936
10937 2006-08-28  Chris Toshok  <toshok@ximian.com>
10938
10939         * Form.cs: remove unused "active_form" static field.
10940
10941         * Hwnd.cs: lock around accesses to static windows collection.
10942
10943         * Application.cs: lock threads in Exit ().
10944
10945 2006-08-28  Chris Toshok  <toshok@ximian.com>
10946
10947         * NativeWindow.cs: lock around accesses to window_collection.
10948         
10949 2006-08-28  Chris Toshok  <toshok@ximian.com>
10950
10951         * Control.cs: err, fix this the right way, by locking on controls
10952         when using it.  not by making it synchronized.
10953
10954 2006-08-28  Chris Toshok  <toshok@ximian.com>
10955
10956         * Control.cs: make the static "controls" field synchronized, as it
10957         gets updated from multiple threads.
10958
10959 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10960
10961         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
10962           Prevent other threads from exiting when calling thread sets quit state.
10963         * XEventQueue.cs: Added PostQuitState property
10964
10965 2006-08-27  Chris Toshok  <toshok@ximian.com>
10966
10967         * AsyncMethodData.cs: add a slot for the window handle.
10968
10969         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
10970         window (the destination control's window, not the foster window).
10971
10972         * Control.cs (BeginInvokeInternal): store the window's handle in
10973         the AsyncMethodData.
10974         
10975
10976 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10977
10978         * XplatUIX11.cs:
10979           - PostQuitMessage: Removed resetting S.D display handle, we might have
10980             another loop started after calling PostQuitMessage (Fixes #79119)
10981           - Created destructor to reset S.D handle
10982
10983 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
10984
10985         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
10986
10987 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10988
10989         * TextControl.cs (Insert): Update the caret position even if we don't
10990           have a handle yet, just don't call the driver in that case.
10991         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
10992           to the end of the new selection text (Fixes #79184)
10993
10994 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10995
10996         * Form.cs (Activate): Only activate if the handle is created)
10997         * Control.c:
10998           - Mark window as invisible when it's disposed
10999           - Check if window handle is created when setting window visible, 
11000             instead of relying just on the is_created variable
11001           - Check if object is disposed when creating the control (Fixes #79155)
11002
11003 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
11004
11005         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
11006           when allowing layout again. Otherwise we re-generate the anchoring 
11007           distance to the border again and actually alter what the user wanted
11008           This is ugly, it'd be better if we used DisplayRectangle instead of
11009           ClientRectangle for Control.UpdateDistances, but that causes us to
11010           have other problems (initial anchoring positons would be wrong)
11011           (Fixes #78835)
11012
11013 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11014
11015         * Control.cs:
11016           - The size and location setters shouldn't go directly to 
11017             SetBoundsCore, but to SetBounds, which triggers layout on the
11018             parent, then calls SetBoundsCore. (Related to fix for #78835)
11019           - SetBounds: Moved actual location update code into this function
11020             from SetBoundsCore, to match MS. Added call to PerformLayout if
11021             we have a parent (to trigger resizing of anchored parents if the 
11022             child size has changed (see testcase for #78835) 
11023         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
11024           new control code
11025         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
11026
11027 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
11028
11029         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
11030           System.Drawing when a toplevel window gets closed; there might
11031           be other toplevel windows belonging to the same app (Fixes #78052)
11032
11033 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
11034
11035         * FileDialog.cs: After reading FileDialog settings from mwf_config
11036           use Desktop prefix only if a real folder doesn't exist anymore.
11037         * FontDialog.cs: Added char sets.
11038           It is now possible to select the font, size or style with the
11039           textboxes.
11040
11041 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
11042
11043         * PrintPreviewDialog.cs: Use assembly name constants.
11044
11045 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
11046
11047         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
11048           scrollbar from whacking it's buttons)
11049
11050 2006-08-24  Chris Toshok  <toshok@ximian.com>
11051
11052         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
11053         in this patch (aggregating setting Left/Top/Width/Height to
11054         setting Bounds on the scrollbars), but the crux of the fix is in
11055         Recalculate, where we scroll by the remaining scroll_position if
11056         we're hiding a scrollbar.  The 2*$5 reward in the comment is
11057         serious.
11058
11059 2006-08-24  Jackson Harper  <jackson@ximian.com>
11060
11061         * MdiClient.cs:
11062         * MdiWindowManager.cs: If the form is made a non-mdi window we
11063         need to remove the form closed event so that closing forms works
11064         correctly.
11065
11066 2006-08-24  Jackson Harper  <jackson@ximian.com>
11067
11068         * Control.cs: Make IsRecreating internal so that the driver can
11069         check it
11070         - Temporarily remove the Hide when controls are removed, its
11071         making a whole bunch of things not work because visibility isn't
11072         getting reset elsewhere correctly
11073         * Form.cs: Need to do a full handle recreation when the mdi parent
11074         is set.
11075         * XplatUIX11.cs: If we are recreating handles don't dispose the
11076         HWNDs.  What was happening is the handles were being recreated in
11077         SendWMDestroyMessages, but then flow continued on in that method
11078         and destroyed the new handles.
11079
11080 2006-08-23  Jackson Harper  <jackson@ximian.com>
11081
11082         * Form.cs: MdiClient is always at the back of the bus
11083         * Control.cs: When the order of items in the collection is changed
11084         we need to reset the all_controls array
11085         - do the same sorta setup thats done when adding a control when a
11086         control is set on the collection.
11087
11088 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
11089
11090         * TextBoxBase.cs (get_Text): Return an empty array if our document
11091           is empty (fixes #79052)
11092
11093 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11094
11095         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
11096           on WM_SYSCHAR messages (fixes #79053)
11097
11098 2006-08-23  Chris Toshok  <toshok@ximian.com>
11099
11100         * DataGrid.cs: fix flickering when scrolling vertically.
11101
11102 2006-08-23  Chris Toshok  <toshok@ximian.com>
11103
11104         * DataGrid.cs (EndEdit): only invalidate the row header when we
11105         need to.
11106
11107 2006-08-23  Chris Toshok  <toshok@ximian.com>
11108
11109         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
11110         methods.  fixes the flicker when scrolling around.
11111
11112 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11113
11114         * FileDialog.cs: Making sure the control is created before we get a 
11115           chance to use it with BeginInvoke (Fixes #79096)
11116
11117 2006-08-23  Chris Toshok  <toshok@ximian.com>
11118
11119         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
11120         width to use when painting the rows.
11121
11122 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11123
11124         * TextBoxBase.cs:
11125           - Throw ArgumentException if a negative value is passed to SelectionLength
11126           - Update the selection end if start is moved. end needs to be always
11127             after start. (Fixes #79095)
11128           - Track selection length; MS keeps the selection length even if start
11129             is changed; reset on all other operations affection selection
11130
11131 2006-08-22  Jackson Harper  <jackson@ximian.com>
11132
11133         * TreeView.cs: Make sure both scrollbars get displayed and sized
11134         correctly when the other bar is visible.
11135         - Use the original clip rectangle for checking if the area between
11136         the two scrollbars is visible, not the viewport adjusted clipping
11137         rectangle.
11138
11139 2006-08-22  Jackson Harper  <jackson@ximian.com>
11140
11141         * Binding.cs: We don't use IsBinding because it requires the
11142         control to be created, which really shouldn't be necessary just to
11143         set a property on the control.
11144
11145 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11146
11147         * ComboBox.cs: Some CB.ObjectCollection methods must throw
11148         ArgumentNullReferenceException when the argument is null.
11149
11150 2006-08-21  Jackson Harper  <jackson@ximian.com>
11151
11152         * Timer.cs: Track the thread that the timer is started in (NOT
11153         CREATED), this way messages for it will only be triggered on its
11154         queue.
11155         * XEventQueue.cs: Track the timers here, this makes timers per
11156         thread, like MS.
11157         * XplatUIX11.cs: The timers are moved to the XEventQueue.
11158
11159 2006-08-19  Chris Toshok  <toshok@ximian.com>
11160
11161         * XplatUIX11.cs: after further communication with pdb, we get the
11162         best of both worlds.  SetZOrder working for un-Mapped windows, and
11163         no X errors for un-mapped windows.
11164
11165 2006-08-19  Chris Toshok  <toshok@ximian.com>
11166
11167         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
11168         as it was causing pdn toolbars to not have the correct stacking.
11169
11170 2006-08-18  Mike Kestner  <mkestner@novell.com> 
11171
11172         * ListView.cs : guard against negative ClientArea.Width in scrollbar
11173         calculation.  Not sure why control should ever be setting a negative
11174         width though.  Fixes #78931.
11175
11176 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11177
11178         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
11179         null items in ObjectCollection class.
11180         * ListBox.cs.: Likewise.
11181
11182 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
11183
11184         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
11185           as the base method in ThemeWin32Classic should work fine.
11186           Fixed bug #78607.
11187
11188 2006-08-18  Jackson Harper  <jackson@ximian.com>
11189
11190         * Binding.cs: When validating if the value entered doesn't convert
11191         properly reset to the old value.
11192         * RadioButton.cs: Don't fire click when we get focus.
11193
11194 2006-08-18  Jackson Harper  <jackson@ximian.com>
11195
11196         * FileDialog.cs: Paint the selection on the directory combobox the
11197         same way as on MS. 
11198
11199 2006-08-17  Jackson Harper  <jackson@ximian.com>
11200
11201         * ErrorProvider.cs: Don't allow the error control to be selected.
11202         * Control.cs: Don't send the SetFocus messages, the control
11203         activation will do this, and if we do it blindly here validation
11204         does not work.
11205
11206 2006-08-17  Jackson Harper  <jackson@ximian.com>
11207
11208         * Control.cs:
11209         * ContainerControl.cs: Make validation events fire in the correct
11210         order.  TODO: For some reason the first validation event is not
11211         getting fired.
11212
11213 2006-08-17  Mike Kestner  <mkestner@novell.com> 
11214
11215         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
11216
11217 2006-08-17  Mike Kestner  <mkestner@novell.com> 
11218
11219         * ComboBox.cs : implement scroll wheel support for popped-down
11220         state. Fixes #78945. 
11221
11222 2006-08-17  Jackson Harper  <jackson@ximian.com>
11223
11224         * TreeView.cs: Specify treeview actions (old patch that didn't get
11225         committed for some reason).
11226         - Don't let the mouse wheel scroll us too far.  Just want to make
11227         the bottom node visible, not scroll it all the ways to the top.
11228
11229 2006-08-17  Jackson Harper  <jackson@ximian.com>
11230
11231         * XplatUIX11.cs: Mouse wheel events go to the focused window.
11232
11233 2006-08-17  Mike Kestner  <mkestner@novell.com> 
11234
11235         * ComboBox.cs : don't do mouseover selection in simple mode.
11236
11237 2006-08-16  Jackson Harper  <jackson@ximian.com>
11238
11239         * Form.cs: Fire the closing events for all the mdi child windows
11240         when a window is closed.  If the cancel args are set to true, the
11241         main window still gets the event fired, but it doesn't not close.
11242         * MdiWindowManager.cs: Do this closing cleanup in a Closed
11243         handler, instead of when the button is clicked, so cancelling the
11244         close works correctly.
11245         * ComboBox.cs: Send the mouse down to the scrollbar.
11246
11247 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11248
11249         * ListBox.cs: When passing 'null' to SelectedItem,
11250         set SelectedIndex to -1, to unselect items. This is the
11251         observed behaviour in .Net.
11252
11253 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
11254
11255         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
11256           MS flags saying there won't be any. (fixes #78800)
11257         * Control.cs (HandleClick): Made virtual
11258
11259 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
11260
11261         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
11262           cultures. Fixed bug #78399.
11263
11264 2006-08-16  Jackson Harper  <jackson@ximian.com>
11265
11266         * Form.cs: Use the MdiClients MdiChildren property to access
11267         MdiChildren instead of creating the array from the child controls.
11268         * MdiClient.cs: Maintain a separate array of the mdi children, so
11269         that insertion order is maintained when the Z-order is changed.
11270
11271 2006-08-16  Mike Kestner  <mkestner@novell.com> 
11272
11273         * ListView.cs : add an ItemComparer and default to it for sorting.
11274         Fixes #79076, but sorting needs a complete overhaul to be compat with
11275         MS.
11276
11277 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11278
11279         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
11280
11281 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11282
11283         * Hwnd.cs (Mapped): Properly traverse the tree
11284
11285 2006-08-15  Chris Toshok  <toshok@ximian.com>
11286
11287         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
11288         pass manager.Current.GetType() to ParseData.  It has to be the
11289         property type.  So, hold off doing the ParseData until we're in
11290         SetPropertyValue where we know the type.  This fixes the crash in
11291         #78821 but the textbox is still empty.
11292
11293 2006-08-15  Chris Toshok  <toshok@ximian.com>
11294
11295         * DataGrid.cs:
11296         - when we're scrolling, only call Edit() again if the
11297         current cell is still unobscured. Fixes bug #78927.
11298         - when handling mousedown on a cell, ensure the cell is visible
11299         before calling Edit.
11300         - remove the properties from DataGridRow, and remove the
11301         DataGridParentRow class altogether.
11302         
11303
11304 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11305
11306         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
11307           fire OnTextChanged by ourselves. There's no point calling base,
11308           we don't set the base value anywhere else. Fixes #78773.
11309
11310 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11311
11312         * ListBox.cs: Call CollectionChanged when modifying
11313         an item from Items indexer, to update the actual items
11314         in the list box.
11315
11316 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11317
11318         * PrintDialog.cs: Small fixes for focus and a pair of checks,
11319         to match .Net behaviour.
11320
11321 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11322
11323         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
11324
11325 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11326
11327         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
11328
11329 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11330
11331         * MessageBox.cs: Prevent potential NRE exception.
11332         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
11333
11334 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11335
11336         * MessageBox.cs: Calculate the owner of a messagebox, also make
11337           it topmost. Fixes #78753
11338
11339 2006-08-14  Chris Toshok  <toshok@ximian.com>
11340
11341         * XplatUIX11.cs: A couple of fixes so that metacity will let us
11342         programmatically move windows.  first, set the PPosition hint as
11343         well as the USPosition hint.  Second include some code from pdb
11344         that sets the window type to NORMAL when we set the transient for
11345         hint.  This is because, in the absence of a window type, metacity
11346         thinks any window with TransientFor set is a dialog, and refuses
11347         to let us move it programmatically.  fascists.
11348
11349 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11350
11351         * XplatUIX11.cs: When setting normal hints, take into consideration
11352           an different hints previously set so we don't delete them (fixes #78866)
11353
11354 2006-08-12  Chris Toshok  <toshok@ximian.com>
11355
11356         * ToolBarButton.cs: make Layout return a boolean, if something to
11357         do with the button's layout changed.
11358
11359         * ToolBar.cs:
11360         - add another parameter to Redraw, @force, which all existing
11361           calls set to true.
11362         - make the Layout function return a boolean which is true if the
11363           layout has actually changed.  Redraw now uses this (and @force)
11364           to determine when to invalidate.  At present the only place
11365           where @force can be false is the call from OnResize, when
11366           background_image == null.  So, resizing a toolbar when the
11367           layout doesn't change results in no drawing.
11368
11369 2006-08-12  Chris Toshok  <toshok@ximian.com>
11370
11371         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
11372         the VScrollBar and HScrollbar reversed.  oops.
11373
11374         * DataGrid.cs: fix the logic that assigns sizes to the implicit
11375         scrollbars.  we were assigning them twice (once in
11376         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
11377         therefore causing two scrollbar resizes (and redraws?) to happen
11378         per grid resize.
11379
11380 2006-08-12  Chris Toshok  <toshok@ximian.com>
11381
11382         * ToolBarButton.cs: redraw the entire button if the theme tells us
11383         to.
11384
11385         * Theme.cs: add ToolBarInvalidateEntireButton.
11386
11387         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
11388         buttons, just the border.
11389
11390         * ThemeNice.cs: redraw the entire toolbar button since we need to
11391         draw the highlight image.
11392
11393         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
11394         we need to redraw the entire button (not just the border).
11395
11396 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11397
11398         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
11399           for vertical bars. Fixes the mismatches shown by #78513
11400
11401 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
11402
11403         * FileDialog.cs: If a saved/remembered path doesn't exist
11404           anymore, fall back to "Desktop".
11405
11406 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11407
11408         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
11409           parent. It's apparently legal to not have one
11410         * XplatUIX11.cs:
11411           - SetZOrder: Don't try to set Z-Order on an unmapped window
11412           - CreateWindow: 0,0 are legal coordinates for a window. don't move
11413             it unless the coordinates are negative
11414
11415 2006-08-10  Mike Kestner  <mkestner@novell.com>
11416
11417         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
11418         when setting to null per msdn docs.  Fixes #78854.
11419
11420 2006-08-10  Chris Toshok  <toshok@ximian.com>
11421
11422         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
11423         flickering by setting a clip rectangle on the Graphics when we
11424         need to redraw just a particular menuitem.  Also, rename "OnClick"
11425         to "OnMouseDown" to reflect what it actually is.
11426         
11427         * Form.cs: track the OnMouseDown change.
11428
11429 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
11430
11431         * CommonDialog.cs: Properly inherit the CreateParams from the form
11432           and only change what we need. Fixes #78865
11433
11434 2006-08-10  Chris Toshok  <toshok@ximian.com>
11435
11436         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
11437         flickering in flat mode (and most of the flickering in general) by
11438         only invalidating the button border (and not the entire rectangle)
11439         when the state changes.  A couple of cases still flicker:
11440         ToggleButtons, and the dropdown arrow case when the user mouse
11441         ups.
11442
11443 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
11444
11445         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
11446           for german keyboards. Numlock state shouldn't affect the behaviour
11447           of the Del key. Fixes bug #78291.
11448
11449 2006-08-10  Chris Toshok  <toshok@ximian.com>
11450
11451         * ListControl.cs: remove the items.Clear line from BindDataItems,
11452         as this is the first thing done by both subclasses in their
11453         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
11454         passed -1, refresh the list.  This gets databinding working when
11455         the datasource is set on the list before the datasource is
11456         populated (as in wf-apps/ReportBuilder.)
11457
11458         * ComboBox.cs: remove the argument to BindDataItems.  This call
11459         should really go away, and be initiated by the ListControl code.
11460
11461         * ListBox.cs: same.
11462
11463 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11464
11465         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
11466           if no data is in the document when the control is displayed
11467
11468 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
11469
11470         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
11471           yes (fixes #78806)
11472         * TextControl.cs: 
11473           - PositionCaret: Allow positioning of caret but don't call methods 
11474             requiring a handle if the window isn't created yet
11475           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
11476           - owner_HandleCreated: Don't position the caret, just update it's 
11477             location. User might have already set a different position
11478
11479 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11480
11481         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
11482           windows. Screws up the returned coordinates for child windows. 
11483           Fixes #78825. I'm hoping this doesn't break something, since the
11484           code was explicitly put in 8 months ago, but no bug was attached.
11485           Menus still seem to work properly.
11486
11487 2006-08-08  Chris Toshok  <toshok@ximian.com>
11488
11489         * DataGrid.cs: make BeginInit/EndInit actually do what they're
11490         supposed to do - delay data binding until the EndInit call.  Also,
11491         make the table style collection's CollectionChangeAction.Refresh
11492         work properly.
11493
11494         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
11495         (with action = Refresh) when a consituent table's MappingName is
11496         changed.
11497
11498 2006-08-08  Chris Toshok  <toshok@ximian.com>
11499
11500         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
11501         Invalidate, since changing the text can change the size of the all
11502         toolbar buttons.
11503
11504 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11505
11506         * Form.cs (AddOwnedForm): Still need to add the form to our listif
11507           we don't have it yet
11508
11509 2006-08-08  Chris Toshok  <toshok@ximian.com>
11510
11511         * PrintControllerWithStatusDialog.cs: don't .Close() the status
11512         dialog, as this causes X errors later on, since we actually
11513         destroy the window.  Instead, .Hide() it.
11514
11515 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11516
11517         * ComboBox.cs: Added focus reflection for popup window
11518         * XplatUIX11.cs: 
11519           - Removed transient setting for non-app windows for now, not sure it
11520             was needed
11521           - Fixed logic checking if we have captions when deciding 
11522             override_redirect, WS_CAPTION is two bits and a 0 check was not
11523             sufficient
11524           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
11525             complicated
11526         * Form.cs: 
11527           - AddOwnedForm: Don't just add the form to the list, call the property
11528             to ensure the driver is informed about the ownership as well
11529           - CreateHandle: Set the TopMost status in the driver if we have an owner
11530         * XplatUI.cs: Fixed debug statement
11531
11532 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
11533         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11534           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
11535           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
11536           TrackBarRenderer.cs: Make constructor private.
11537         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
11538         * ProfessionalColorTable.cs: Make properties virtual.
11539
11540 2006-08-06  Duncan Mak  <duncan@novell.com>
11541
11542         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
11543         is not changing.
11544
11545 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11546         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11547           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
11548           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
11549           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
11550           Initial import of new 2.0 classes.
11551
11552 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11553         * Application.cs: Add 2.0 VisualStyles properties.
11554
11555 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11556         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11557           XplatUIX11.cs: Create property to allow access to existing private
11558           variable "themes_enabled"
11559
11560 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11561
11562         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
11563         file size, as otherwise our class libraries fail using windows. Fixes
11564         bug #78759.
11565
11566 2006-08-04  Jackson Harper  <jackson@ximian.com>
11567
11568         * Form.cs:
11569         * XplatUIX11.cs: Move the toolwindow window manager creation into
11570         the X11 driver, this way on win32 we can let windows create/handle
11571         the toolwindows.
11572
11573 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11574
11575         * PrintDialog.cs: Remove some redundant checks, add some others,
11576         clean some code, and move the focus to the text boxes when the
11577         values are incorrect.
11578
11579 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
11580
11581         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
11582
11583 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11584
11585         * NumericUpDown.cs: Setting the Minimum and Maximum is now
11586           handled correctly. Fixes bug #79001.
11587
11588 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11589
11590         * PrintDialog.cs: The "Copies" numeric up down must have
11591         set the Minimum property to 1; only if the value is bigger
11592         than 1, activate "Collate" check box. This is the behaviour of .Net.
11593         Also modify the Document elements only if it is not null.
11594
11595 2006-08-03  Jackson Harper  <jackson@ximian.com>
11596
11597         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
11598         length. (We have a larger array then actual node count).
11599                 
11600 2006-08-03  Jackson Harper  <jackson@ximian.com>
11601
11602         * ComboBox.cs: Don't show selection by default.
11603         - The SelectAll isn't needed here, since the focus code should do
11604         that
11605         - DDL style lists to manual selection drawing, so when they
11606         get/lose focus they have to invalidate.
11607
11608 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
11609
11610         * TextBoxBase.cs: Don't always show all selections by default.
11611
11612 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
11613         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
11614           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
11615           Fixed various typos.
11616
11617 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11618
11619         * Control.cs: Removing the controls in a ControlCollection with
11620           Clear now hides the controls as expected. Fixes bug #78804. 
11621
11622 2006-08-03  Jackson Harper  <jackson@ximian.com>
11623
11624         * Control.cs: Revert previous focus patch, it breaks reflector.
11625
11626 2006-08-03  Jackson Harper  <jackson@ximian.com>
11627
11628         * ComboBox.cs: Cleanup selection and focus with the combobox.
11629         This also eliminates some duplicated keyboard code, since now
11630         everything is handled by the main class.
11631         - Make list selection work on mouse up instead of down, to match
11632         MS.
11633
11634 2006-08-02  Jackson Harper  <jackson@ximian.com>
11635
11636         * Control.cs: Setting focus needs to go through the whole
11637         selection mechanism.
11638
11639 2006-08-02  Chris Toshok  <toshok@ximian.com>
11640
11641         * PrintPreviewDialog.cs: change MinimumSize to use
11642         base.MinimumSize so it works.
11643
11644 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
11645
11646         * TextControl.cs:
11647           - UpdateCaret: Added sanity check in case caret isn't defined yet
11648           - Line.Delete: Now updating selection and caret markers if we're
11649             transfering a node (Properly fixes #78323)
11650           - SetSelectionEnd: Added sanity check
11651         * TextBoxBase.cs: Removed broken attempt to fix #78323
11652
11653 2006-08-01  Chris Toshok  <toshok@ximian.com>
11654
11655         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
11656         Close() call is handled in Form, not here.
11657
11658 2006-08-01  Chris Toshok  <toshok@ximian.com>
11659
11660         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
11661         layout/rendering.
11662
11663         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
11664         for sizes < 100% zoom.  The code now aggressively attempts to keep
11665         from calling document.Print (), and tries not to use the scaling
11666         g.DrawImage whenever possible (it still does if you scale to >
11667         100%, since usually that involves huge images).
11668
11669         * PrintPreviewControl.cs: hook up the close button.
11670
11671 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
11672         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
11673           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
11674           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
11675           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
11676           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
11677           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
11678           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
11679           Removed [Serializable] for 2.0 Event Handlers.
11680
11681 2006-07-31  Jackson Harper  <jackson@ximian.com>
11682
11683         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
11684         * TextControl.cs: Uncomment out the body of this method.
11685
11686 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
11687
11688         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
11689           standard cursors.
11690
11691 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11692
11693         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
11694           that embed TextBox and need selections visible even if textbox is not
11695           focused to enforce that behaviour.
11696         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
11697           selection drawing
11698
11699 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11700
11701         * TextControl.cs:
11702           - Added new SetSelectionStart/SetSelectionEnd overloads
11703           - Fixed viewport width assignment to be accurate
11704           - Adjusted alignment line shift calculations to allow cursor on right
11705             aligned lines to be always visible at the right border (like MS)
11706         * TextBoxBase.cs:
11707           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
11708           - TextBoxBase_SizeChanged: recalculating canvas on size changes
11709           - CalculateScrollBars: Use ViewPort size instead of window size, to
11710             properly consider space occupied by the border and scrollbars 
11711             (Fixes #78661)
11712           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
11713             calculations; no longer leaves artifacts
11714           - CaretMoved: Adjusted window scrolling to match MS and fixed several
11715             calculation bugs (Still missing right/center align calculations)
11716
11717 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
11718
11719         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
11720           use of both scroll rect and clip rect, as they do the same.
11721
11722 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11723
11724         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
11725           in the event handler (fixes #78912)
11726
11727 2006-07-31  Chris Toshok  <toshok@ximian.com>
11728
11729         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
11730         grid.ListManager.Count, since grid.ListManager might be null.
11731         This of course begs the question "why are we drawing rows for a
11732         grid with no list manager (and therefor no rows)?"  Fixes the
11733         crash in bug #78929.
11734
11735 2006-07-31  Chris Toshok  <toshok@ximian.com>
11736
11737         * RelatedPropertyManager.cs: Don't always chain up to the parent
11738         ctor.  instead, call SetDataSource if the parent's position is !=
11739         -1.  Fixes the crash in #78822.
11740
11741 2006-07-31  Chris Toshok  <toshok@ximian.com>
11742
11743         * DataGrid.cs (get_ListManager): use field instead of property
11744         accessors for datasource and datamember.
11745         (RowsCount): make internal again.
11746         (OnMouseDown): end edits before resizing columns/rows.
11747         (OnMouseUp): restart edits after resizing columns/rows.
11748
11749 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
11750
11751         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
11752           This fixes the situation where the last set cursor is displayed
11753           whenever the mouse is over scrollbars.
11754
11755 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11756
11757         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
11758         Document properties, as well as initial values.
11759
11760 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
11761
11762         * XplatUIWin32.cs (SetBorderStyle): Setting both border
11763           and ClientEdge results in a 3-pixel border, which is
11764           wrong.
11765
11766 2006-07-28  Jackson Harper  <jackson@ximian.com>
11767
11768         * TreeNodeCollection.cs: Fix the clear method.
11769         - Fix the Shrink also
11770
11771 2006-07-27  Jackson Harper  <jackson@ximian.com>
11772
11773         * TreeView.cs: Make sure the visible order is computed when we
11774         attempt to size the scrollbars (for trees that mess with the
11775         scrolling when they shouldn't.
11776         - Make sure to give the scrollbars valid values.
11777
11778 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11779
11780         * XplatUIX11.cs: Move motion compression code to where it
11781           has less performance impact
11782
11783 2006-07-26  Jackson Harper  <jackson@ximian.com>
11784
11785         * UpDownBase.cs: When the control is selected make the child
11786         controls non selectable, so that a click on them won't do a
11787         focus/unfocus cycle.
11788         - Don't give focus to the text box when the spinner is selected.
11789         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
11790
11791 2006-07-26  Chris Toshok  <toshok@ximian.com>
11792
11793         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
11794         satisfied with this solution.  If the bitmaps are small, we should
11795         just cache them in the PrintPreviewDialog and draw them here.
11796         Also, the layout is broken for the 2-up and 3-up cases.
11797
11798         * Theme.cs: add PrintPReviewControlPaint.
11799
11800         * PrintPreviewDialog.cs: first pass implementation.
11801
11802         * PrintPreviewControl.cs: first pass implementation.  No
11803         scrollbars yet.
11804
11805         * PrintDialog.cs: only validate fields if that particular portion
11806         of the UI is enabled.  Also, set the document's controller to a
11807         PrintControllerWithStatusDialog wrapping the document's print
11808         controller.
11809
11810         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
11811         bring up a SaveFileDialog (i hope we don't want to match the
11812         behavior of the crappy windows file entry) and set the
11813         PrinterSettings.PrintFileName accordingly.
11814
11815 2006-07-26  Jackson Harper  <jackson@ximian.com>
11816
11817         * ContainerControl.cs: Add a field that disables auto selecting
11818         the next control in a container when the container is activated.
11819         * UpDownBase.cs: Don't select the text box when the up down is
11820         selected.
11821
11822 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11823
11824         * XEventQueue.cs: Added methods for peeking (used for compression
11825           of successive events)
11826         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
11827           mouse move events (fixes #78732)
11828
11829 2006-07-25  Jackson Harper  <jackson@ximian.com>
11830
11831         * UpDownBase.cs: Use an internal class for the textbox so that we
11832         can control focus.  the updown control should always have focus,
11833         if either the text area or the buttons are clicked.
11834         - Send the key messages to the textbox, since it never actually
11835         has focus
11836         - Activate and decativate the textbox caret.
11837
11838 2006-07-24  Jackson Harper  <jackson@ximian.com>
11839
11840         * Control.cs: Use the directed select when selecting a control,
11841         this way the container controls override will get called and the
11842         whole ActiveControl chain will get triggered.  TODO: probably need
11843         to make sure this gets done everywhere instead of the old
11844         Select(Control).
11845         * ContainerControl.cs: Implement the directed Select method to
11846         find and activate the correct child control.    
11847         
11848 2006-07-22  Mike Kestner  <mkestner@novell.com>
11849
11850         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
11851         menu handling code so that clicks without a grab work too.
11852         [Fixes #78914]
11853
11854 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
11855
11856         * FileDialog.cs: Enable the BackButton when dirstack has one element.
11857           Added some small optimizations.
11858
11859 2006-07-21  Matt Hargett  <matt@use.net>
11860
11861         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
11862
11863 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
11864
11865         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
11866           tests pass and match MS in some strange border cases.
11867
11868 2006-07-21  Chris Toshok  <toshok@ximian.com>
11869
11870         * ThemeWin32Classic.cs: handle drawing of the relation links and
11871         parent row buttons.
11872
11873         * Theme.cs: change args to DataGridPaintParentRow.
11874
11875         * DataGrid.cs: Don't use controls for the relation links and
11876         parent buttons, so we have to handle all their interactions in
11877         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
11878         when we're navigating through child tables, so we can reinstate
11879         selection, expanded state, current cell, etc.
11880
11881 2006-07-20  Chris Toshok  <toshok@ximian.com>
11882
11883         * ToolBar.cs: When we redraw a button, for whatever reason,
11884         there's no reason to redraw the entire toolbar.  Also, don't call
11885         Control.Refresh from within Redraw, as it's much heavier than
11886         Invalidate (which is really what we want).
11887
11888 2006-07-20  Chris Toshok  <toshok@ximian.com>
11889
11890         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
11891         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
11892         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
11893         traces from within a debug IBindingList datasource
11894         (in mono/winforms/datagrid) for *days*, I've finally gotten things
11895         to work in a similar fashion.
11896
11897 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11898
11899         * ListBox.cs: Don't call Sort () when setting 
11900         the Sorted property to false (avoid an unnecessary sort).
11901
11902 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11903
11904         * ListControl.cs: DataSource should throw an ArgumentException
11905         instead of a normal exception when the argument is not of the 
11906         correct type.
11907
11908 2006-07-20  Mike Kestner  <mkestner@novell.com>
11909
11910         * Control.cs: add InternalPreProcessMessage to allow us to steal
11911         key events before MWF gets its paws on them.  Adapted from a
11912         suggestion by eno.
11913         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
11914         up/down/left/right navigation. Override the new internal control
11915         method to steal the events since they never make it to WndProc.
11916         * ToolBarButton.cs: don't worry about pushed when setting hilight
11917         since the drawing code prefers pushed to hilight. Invalidate on 
11918         Hilight changes. Fixes #78547 and #78525.
11919
11920 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11921
11922         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
11923           the canvas size. Fixes #78868
11924
11925 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
11926
11927         * Splitter.cs: Track requested split position until first layout
11928           is performed. Fixes #78871
11929
11930 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11931
11932         * Application.cs: Removed code that forces 1.x for the version
11933           number if the version started with 0. Not sure why that code was
11934           there and I couldn't find any bugs that indicated we needed it.
11935           Fixes #78869
11936
11937 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
11938
11939         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
11940           ResetDefaults(), just write some output to the console until it's
11941           implemented. Fixes bug #78907 for now. Eliminated two warnings.
11942
11943 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
11944
11945         * PropertyGridView.cs: set StartPosition of drop down forms
11946         so they appear in correct initial spot.  Fixes #78190.
11947
11948 2006-07-19  Mike Kestner  <mkestner@novell.com>
11949
11950         * ThemeWin32Classic.cs: use parent background color when drawing
11951         flat toolbars.  Restructure the conditionals to make sure non-flat
11952         non-Divider toolbars are filled too.  Fixes #78837.
11953
11954 2006-07-19  Mike Kestner  <mkestner@novell.com>
11955
11956         * ListBox.cs: Sort on collection changes even if the handle
11957         isn't created yet.  Fixes #78813.
11958
11959 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11960
11961         * ListControl.cs: DisplayMember should never be null,
11962         and now we assign String.Empty when null is passed to it (this
11963         is the .Net way).
11964
11965 2006-07-17  Mike Kestner  <mkestner@novell.com>
11966
11967         * ListViewItem.cs: restructure Font and subitem Font handling 
11968         to hold a specific font and refer back to owner on null.
11969         Fixes #78761.
11970
11971 2006-07-17  Mike Kestner  <mkestner@novell.com>
11972
11973         * ToolBar.cs: bandaid for side-effect of previous patch which was
11974         discarding explicit heights for non-AutoSize toolbars.  Need to
11975         extend my format tester to deal with AutoSize=false. Fixes #78864.
11976
11977 2006-07-15  Jackson Harper  <jackson@ximian.com>
11978
11979         * LabelEditTextBox.cs:
11980         * TreeView.cs: Use a new LabelEdit class for node editing, this
11981         class automatically 'closes' itself when it gets the enter key or
11982         loses focus.
11983         - Use the client rectangle when setting the trees scrollbars, so
11984         border style is taken into account.
11985         
11986 2006-07-14  Jackson Harper  <jackson@ximian.com>
11987
11988         * TreeNode.cs:
11989         * TreeView.cs: Make the editing work similar to MSs, firing the
11990         events correctly and ending edits correctly.
11991
11992 2006-07-14  Mike Kestner  <mkestner@novell.com>
11993
11994         * ToolBarButton.cs:
11995         * ToolBar.cs: layout restructuring and redraw enhancements to support
11996         formatting changes gracefully, like setting TextAlign, ImageList, 
11997         ButtonSize, and Appearance.  Handles explicit button sizing quirks
11998         of the MS controls.  Things like flat toolbars ignoring button size
11999         but becoming constant sized at the largest button's size.  Normal
12000         toolbars with an image set cannot be shrunk smaller than the image,
12001         but text can be clipped/ignored.
12002         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
12003         is zero.  Seems like DrawString should be smart enough to not put
12004         anything on screen though. Also trim labels and ellipsize at the char
12005         boundary, not word.
12006         Fixes #78711 and #78483.
12007
12008 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
12009
12010         * FolderBrowserDialog.cs: Disable "New Folder" button and
12011           "New Folder" contextmenu menuitem if a folder like "My Computer"
12012           is selected.
12013
12014 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
12015
12016         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
12017         * FolderBrowserDialog.cs:
12018           - Use MWFConfig to store and read size and position settings
12019           - Added code to create a new folder (button or context menu).
12020             Use TreeView labeledit to change the name of the new folder.
12021
12022 2006-07-14  Jackson Harper  <jackson@ximian.com>
12023
12024         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
12025         when the tree is scrolled we end editing.
12026
12027 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
12028
12029         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
12030           Down arrows
12031
12032 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
12033
12034         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
12035         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
12036         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
12037         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
12038         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
12039         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
12040         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
12041         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
12042         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
12043         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
12044         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
12045         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
12046         ListViewItemSelectionChangedEventHandler.cs,
12047         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
12048         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
12049         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
12050         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
12051         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
12052         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
12053         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
12054         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
12055         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
12056         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
12057         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
12058         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
12059         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
12060         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
12061         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
12062         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
12063         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
12064         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
12065         WebBrowserNavigatingEventHandler.cs, 
12066         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
12067
12068 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
12069
12070         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
12071         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
12072         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
12073         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
12074         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
12075         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
12076         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
12077         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
12078         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
12079         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
12080         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
12081         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
12082         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
12083         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
12084         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
12085         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
12086         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
12087         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
12088         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
12089         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
12090         ListViewItemStates.cs, MaskFormat.cs: Added
12091
12092 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
12093
12094         * PropertyGridView.cs: Fix keyboard navigation of drop down.
12095         Patch from eno for bug 78558.
12096         
12097 2006-07-13  Jackson Harper  <jackson@ximian.com>
12098
12099         * TreeView.cs: When an edit is finished make sure that the
12100         selected node is visible.
12101         - When setting the top/bottom use the scrollbars is_visible, so
12102         everything will be set correctly even if the tree isn't visible
12103         yet.
12104
12105 2006-07-13  Jackson Harper  <jackson@ximian.com>
12106
12107         * ComboBox.cs: Revert the item->index part of my previous patch.
12108         * TreeView.cs: Use LostFocus instead of Leave for detecting when
12109         the edit box has lost focus (duh).
12110         - Just make the edit box not visible when we get return, that will
12111         take the focus, which will call EndEdit
12112         * TreeNode.cs When we start editing, notify the treeview.
12113
12114 2006-07-12  Jackson Harper  <jackson@ximian.com>
12115
12116         * ComboBox.cs: Clear out old items before setting the item list.
12117         This prevents databound controls from having their items added
12118         twice.
12119         - Switch the combobox to use indices whereever possible instead of
12120         using Item's.  This allows usto navigate through lists that have
12121         more then one item with the same string value (ie a, b, b, a).
12122         - Scroll the listboxes scrollbar when a non visible item is
12123         highlighted
12124         - Allow keypress to cycle through all the possible values. For
12125         example if you have b1, b2, b3 and hold down the B key all the
12126         values will be cycled through.
12127         
12128 2006-07-12  Jackson Harper  <jackson@ximian.com>
12129
12130         * TextBoxBase.cs:
12131         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
12132         this using the internal methods.
12133         * Control.cs: Add OnGotFocusInternal.  A new method that allows
12134         controls to "override" OnGotFocus and change focus behavior if
12135         needed.
12136         - Same thing for LostFocus
12137         * ComboBox.cs: Pass off focus to the text control properly.
12138
12139 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
12140
12141         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
12142         * FolderBrowserDialog.cs: Almost a complete rewrite.
12143           - Better support for Environment.Specialfolders
12144           - Added support for MWFVFS
12145           - Made setting SelectedPath work
12146
12147 2006-07-12  Jackson Harper  <jackson@ximian.com>
12148
12149         * Control.cs: Optimze getting all the controls.
12150
12151 2006-07-11  Jackson Harper  <jackson@ximian.com>
12152
12153         * ContainerControl.cs: Override SETFOCUS in the container control,
12154         so that it is not selected on mouse click.
12155
12156 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
12157
12158         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
12159           Hopefully we will have a better way once all of focus is complete.
12160
12161 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
12162
12163         * ThemeWin32Classic.cs: Commented out some debug code and fixed
12164           a compile error with csc.
12165
12166 2006-07-11  Jackson Harper  <jackson@ximian.com>
12167
12168         * Control.cs: When hiding a control only select the next control
12169         if the current control was focused.
12170         - Don't handle enter/leave when setting/killing focus, this is
12171         done by the container control.
12172         - Remove is_selected, it's not needed anymore.
12173         - Add utility methods for selecting a child control, and for
12174         firing the Enter/Leave events.
12175         * ContainerControl.cs: When a control is activated fire the
12176         enter/leave events.
12177         - Don't wrap when processing the tab key, so that focus can be
12178         moved outside of the container.
12179         - Use the correct active control
12180
12181 2006-07-11  Jackson Harper  <jackson@ximian.com>
12182
12183         * ComboBox.cs: Remove some debug code that was blinding me.
12184         * UpDownBase.cs: These controls actually aren't implicit, they are
12185         visible to the user.
12186
12187 2006-07-10  Chris Toshok  <toshok@ximian.com>
12188
12189         * DataGrid.cs: move back to the is_adding boolean field.  god i
12190         hate this is_editing/is_adding/is_changing stuff.
12191
12192 2006-07-10  Chris Toshok  <toshok@ximian.com>
12193
12194         * DataGridTableStyle.cs: just check if the property type is bool.
12195         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
12196         Don't use CanRenderType.
12197
12198         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
12199         if our text == NullText.  Remove CanRenderType.
12200
12201         * DataGridBoolColumn.cs: nuke CanRenderType.
12202
12203         * DataGrid.cs: reenable some code to end the current edit inside
12204         of set_CurrentCell.  This fixes the other 1.1.16 regression.
12205         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
12206         Also, remove the visible_row_count arg from CalcRowHeaders, since
12207         we don't need to worry about the actual height of the area.
12208
12209 2006-07-10  Chris Toshok  <toshok@ximian.com>
12210
12211         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
12212         mode, just return.
12213
12214         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
12215         the real sense of the IsInEditOrNavigateMode property (true =
12216         navigate, false = edit).  Also, update OnKeyPress to reflect this.
12217
12218         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
12219         column style exists, we still need to set its property descriptor
12220         to match up with our list manager.
12221
12222 2006-07-10  Chris Toshok  <toshok@ximian.com>
12223
12224         * ThemeWin32Classic.cs: implement the new row/header painting
12225         approach.  The parent row painting will likely go away and
12226         replaced with label controls, but the rest seems to work ok (and
12227         efficiently).
12228
12229         * Theme.cs: change the way we draw datagrid rows.  we don't draw
12230         the row headers as a block now.  Instead we draw them in the
12231         normal draw-row loop.  Add some calls for drawing parent rows and
12232         relation rows.
12233
12234         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
12235         a default table style.  Set the defaults from ThemeEngine.Current,
12236         not SystemColors.  Fix lots of misc issues with property setters.
12237
12238         * DataGrid.cs: move loads of style information out of this class
12239         as it's being duplicated with DataGridTableStyle.  keep track of a
12240         special DataGridTableStyle for the properties we used to mirror
12241         here.  Switch all the style properties to access this table style
12242         instead of instance fields of this class.  Also add a internal
12243         class to represent parent rows (more needs to be stored here, like
12244         the selection state from the parent table, as well as the
12245         expansion state.)  Also, for datasources with relations, do the
12246         right thing for collapse/expand, and add support for the
12247         navigation/parent row buttons.
12248
12249         Lastly, fix the crash in the 1.1.16 build.
12250
12251         * GridTableStylesCollection.cs: make the explicit interface
12252         implementations call the class's methods as opposed to duplicating
12253         them.
12254
12255         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
12256         0 so the text doesn't jump around when we move the cursor.
12257
12258 2006-07-10  Jackson Harper  <jackson@ximian.com>
12259
12260         * TextBoxBase.cs:
12261         * ListBox.cs: Match MS's ToString (this makes debugging focus
12262         stuff infinitely easier).
12263
12264 2006-07-10  Jackson Harper  <jackson@ximian.com>
12265
12266         * Control.cs (SelectNextControl): When checking the control's
12267         parent use this instead of ctrl.parent so that null can be passed
12268         to SelectNextControl. (I have unit tests for this).
12269         - Remove unused var.
12270
12271 2006-07-10  Chris Toshok  <toshok@ximian.com>
12272
12273         * CurrencyManager.cs: correct one regression, the removal of the
12274         finalType field.  Also, add a MonoTODO on CanAddRows, implement
12275         Refresh() correctly, and fix some event emission in
12276         ListChangedHandler.
12277
12278 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
12279
12280         * FileDialog.cs: Don't use brackets for new folders if they exist
12281           under *nix. Instead use -(number of existing folders +1).
12282
12283 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
12284
12285         * FileDialog.cs:
12286           - Fixed really nasty bug #78771
12287           - Don't block the whole GUI when reading directories with a lot of
12288             entries. Use an other thread instead and call BeginInvoke to
12289             update the ListView in MWFFileView
12290
12291 2006-07-07  Chris Toshok  <toshok@ximian.com>
12292
12293         * Control.cs (Dispose): release any Capture when disposing.
12294
12295 2006-07-07  Chris Toshok  <toshok@ximian.com>
12296
12297         * LinkLabel.cs (Select): if we chain up to the parent, set
12298         focused_index to -1 so we'll search for the first available link
12299         the next time the user tabs into us.  Also, if the direction is
12300         backward and focused_index == -1, start the search from the last
12301         element.
12302
12303 2006-07-07  Chris Toshok  <toshok@ximian.com>
12304
12305         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
12306         is beyond the end of the text, don't do anything.
12307         (CreateLinkPieces): set our ControlStyles.Selectable based on
12308         whether or not we have any links.
12309         (Link.Invalidate): use a loop instead of foreach.
12310         (Link.set_Start): null out owner.sorted_links so it'll be
12311         recreated by CreateLinkPieces.
12312
12313 2006-07-06  Chris Toshok  <toshok@ximian.com>
12314
12315         * LinkLabel.cs: revert the SetStyle change.
12316
12317 2006-07-06  Chris Toshok  <toshok@ximian.com>
12318
12319         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
12320         (OnEnableChanged): s/Refresh/Invalidate
12321         (OnGotFocus): if we have a focused index already, refocus it (so
12322         if we mouse out/in to the window it'll focus the right link).
12323         (OnKeyDown): move the tab handling out of here.
12324         (OnLostFocus): don't set focused_index to -1, so we can refocus it
12325         when we lose focus.
12326         (OnMouseDown): don't Capture here - Control handles it.  Also,
12327         focus the active link.
12328         (OnMouseUp): don't deal with Capture.
12329         (OnPaintBackgroundInternal): remove.
12330         (OnTextAlignChanged): CreateLinkPieces before calling the
12331         superclass's method.
12332         (OnTextChanged): call CreateLinkPieces before calling superclass's
12333         method.
12334         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
12335         move around.
12336         (Select): implement this, moving the selection between different
12337         links, and call parent.SelectNextControl if we don't have another
12338         link to focus in the given direction.
12339         (CreateLinkPieces): call Invalidate instead of Refresh.
12340         
12341 2006-07-06  Chris Toshok  <toshok@ximian.com>
12342
12343         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
12344         new LinkLabel internals.
12345
12346         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
12347         over pieces looking for active/focused/etc links.  also, deal with
12348         runs of text (and links) with embedded \n's in them, and use
12349         MeasureCharacterRanges instead of MeasureString to figure out the
12350         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
12351         two-step.
12352
12353 2006-07-04  Jackson Harper  <jackson@ximian.com>
12354
12355         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
12356         XKB or key auto repeat, do it manually.  Without key auto repeat,
12357         when a key is held down we get key press, key release, key press,
12358         key release, ... with auto repeat we get key press, key press, key
12359         press ..., and then a release when the key is actually released.
12360
12361 2006-07-03  Jackson Harper  <jackson@ximian.com>
12362
12363         * TabControl.cs:
12364         * ThemeWin32Classic.cs: Tabs do not obey normal background color
12365         rules, they are always control color regardless of the background
12366         color.
12367
12368 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
12369
12370         * FileDialog.cs: Added internal class MWFConfig.
12371           Removed Registry support and replaced it with support for the new
12372           MWFConfig class. See MWFConfig comments for more information.
12373
12374 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
12375
12376         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
12377           rectangle. Added some patches from eno from bug #78490 and fixed
12378           the arrow position for small up and down CPDrawScrollButtons.
12379
12380 2006-06-30  Jackson Harper  <jackson@ximian.com>
12381
12382         * InternalWindowManager.cs: Remove some debug code.
12383         * Form.cs: When an MdiParent is set to null, the window is
12384         "detatched" and becomes a normal window.
12385         * MdiClient.cs: Don't bring the new child form to the front until
12386         it is activated (setting it as active does this), this makes the
12387         previously active forms titlebar get redrawn as inactive.
12388
12389 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
12390
12391         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
12392           with later controls
12393
12394 2006-06-29  Mike Kestner  <mkestner@novell.com>
12395
12396         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
12397         arrow in keynav state.  Fixes #78682.
12398
12399 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12400
12401         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
12402           order (fixes #78393)
12403
12404 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
12405
12406         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
12407           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
12408           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
12409           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
12410           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
12411           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
12412           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
12413           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
12414           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
12415           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
12416           enumerations (FlagsAttribute, SerializableAttribute, added/removed
12417           values)
12418
12419 2006-06-28  Mike Kestner  <mkestner@novell.com>
12420
12421         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
12422
12423 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12424
12425         * PropertyGrid.cs,
12426           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
12427           item lines from other area (It also makes BackColor consistent and
12428           compatible with .NET). Fixed bug #78564.
12429
12430 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
12431
12432         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
12433         Patch from Eno for #78555.
12434
12435 2006-06-27  Chris Toshok  <toshok@ximian.com>
12436
12437         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
12438
12439         * DataGridColumnStyle.cs: same.
12440
12441         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
12442         
12443         * DataGridDrawingLogic.cs: nuke.
12444
12445 2006-06-27  Chris Toshok  <toshok@ximian.com>
12446
12447         * DataGridTableStyle.cs: clean up the constructors, and build the
12448         list of child relations for this table.  I have no idea if this is
12449         where we should be doing it (it probably isn't), but since we're
12450         already iterating over the properties..
12451
12452         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
12453         struct and array for keeping track of row information, similar to
12454         what's shown in a hack on
12455         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
12456
12457         * Theme.cs: be consistent about the naming of DataGrid methods,
12458         prefering ColumnWidths and RowHeights over columnsWidths and
12459         RowsHeights.
12460
12461         * ThemeWin32Classic.cs: same, and also add support for variable
12462         sized rows (and the +/- expansion icons for related rows).
12463
12464 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12465
12466         * TextBoxBase.cs: Applied Eno's patch from #78660
12467
12468 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12469
12470         * Form.cs (ScaleCore): We don't want to scale our form if it's
12471           state is minimized or maximized, but we still need to scale our
12472           child windows. Also, added try/finally block to ensure layout
12473           gets reset (Fixes #78697)
12474
12475 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12476
12477         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
12478
12479 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12480
12481         * Form.cs: Fixed c+p error and added check to resize form if minimum
12482           size is bigger than current size (Fixes #78709)
12483
12484 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
12485
12486         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
12487
12488 2006-06-26  Mike Kestner  <mkestner@novell.com>
12489
12490         * ComboBox.cs: only do Keypress handling in the combo when there  
12491         are items in the collection. Fixes #78710.
12492
12493 2006-06-26  Chris Toshok  <toshok@ximian.com>
12494
12495         * Binding.cs: make this work bi-directionally.  also, clear up
12496         other mixups between Push/Pull Data (e.g. we're supposed to pull
12497         data when validating).
12498
12499         * BindingManagerBase.cs: trim some fully qualified collection
12500         types.
12501
12502         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
12503
12504 2006-06-23  Chris Toshok  <toshok@ximian.com>
12505
12506         * PropertyManager.cs: It appears (according to the unit tests)
12507         that PropertyManager doesn't use
12508         PropertyDescriptor.AddValueChanged to track propery value changes
12509         in its datasource, but uses the same scheme as Binding, where it
12510         looks for a <Property>Changed event and binds to it.
12511
12512         Also, according to the docs, IsSuspended always returns false for
12513         a property manager with a non-null datasource.
12514
12515 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
12516
12517         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
12518           need to update the actual DialogResult. (Fixes #78613)
12519
12520 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
12521
12522         * Form.cs (ShowDialog): Release any captures before running the
12523           new message pump (fixes #78680)
12524
12525 2006-06-22  Mike Kestner  <mkestner@novell.com>
12526
12527         * ListView.cs: Layout column widths properly in details mode even 
12528         if HeaderStyle.None is set.  Fixes #78691.
12529
12530 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
12531
12532         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
12533
12534 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
12535
12536         * Control.cs (ContainsFocus): Using new driver method to get focused
12537           window, instead of trying to use internal tracking var, which can
12538           recursion issues (Fixes #78685)
12539         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
12540           XplatUIWin32.cs: Added GetFocus method to return focused window
12541
12542 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12543
12544         * ColorDialog.cs: when the mouse button is pressed inside the color
12545         matrix, don't let the cursor move out of it until the button is
12546         released, which is the behavior on windows. Changed 'colours' by
12547         'colors' to use the same word consistently.
12548
12549 2006-06-21  Chris Toshok  <toshok@ximian.com>
12550
12551         * DataGrid.cs: add in some basic navigation stuff (navigating to a
12552         child relation and back, using a stack).  Also, remove
12553         GetDataSource and the code that calls it - it's not needed.  Also,
12554         track CurrencyManager.ListName's removal.
12555
12556 2006-06-21  Chris Toshok  <toshok@ximian.com>
12557
12558         * CurrencyManager.cs: push some of the original type checking from
12559         BindingContext.CreateBindingManager to here, and remove some of
12560         the finalType stuff.  Need more tests to make sure I've got the
12561         ListName part right, and we might need more in SetDataSource.
12562
12563         * PropertyManager.cs: add a ctor that takes just the datasource,
12564         and no property name.  Make SetDataSource work with a null
12565         property_name, and make Current return the data_source if the
12566         property descriptor is null.  this makes 'string foo = "hi";
12567         BindingContext[foo].Current' return "hi" as it should.
12568
12569         * RelatedCurrencyManager.cs: make this code more generic - there's
12570         no reason the parent manager has to be CurrencyManager, and
12571         there's no reason to pass the DataRelation.  It suffices to use a
12572         BindingManagerBase and PropetyDescriptor.
12573
12574         * RelatedPropertyManager.cs: make a similar change here.
12575         
12576         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
12577         flower I knew it could be.
12578
12579 2006-06-20  Chris Toshok  <toshok@ximian.com>
12580
12581         * PropertyManager.cs: the PropertyChangedHandler is invoked when
12582         data in the source has changed and we need to update the control,
12583         so s/PullData/PushData.
12584
12585         * CurrencyManager.cs: Refresh is meant to update the control from
12586         data in the datasource.  So, s/PullData/PushData.
12587
12588         * BindingContext.cs: add more ugliness (we weren't handling the
12589         case where data_source = DataTable and data_member = column_name).
12590
12591         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
12592         from the perspective of the datasource.  PullData pulls from the
12593         control, PushData pushes to the control.
12594
12595 2006-06-20  Chris Toshok  <toshok@ximian.com>
12596
12597         * BindingContext.cs: rewrite the CreateBindingManager code to
12598         handle navigation paths more or less properly.  This could
12599         definitely stand some more work, in particular to push the
12600         recursion up to the toplevel.  But that relies on fixes in other
12601         places (System.Data comes to mind).
12602
12603         Also, move to a flat hashtable (and encode the twolevel nature of
12604         the dictionary into the hash key).  This lets us implement the
12605         IEnumerable.GetEnumerator method.
12606
12607         * RelatedCurrencyManager.cs: new class.  Update our view based on
12608         our relation and our parent CurrencyManager's position.
12609
12610         * CurrencyManager.cs: split out some logic from the ctor into
12611         SetView, so it can be called from the new RelatedCurrencyManager
12612         subclass.
12613
12614         * RelatedPropertyManager.cs: new class.  Update our datasource
12615         based on the position of our parent CurrencyManager.
12616
12617         * PropertyManager.cs: split out some logic from the ctor into
12618         SetDataSource, so it can be called from the new RelatedDataSource
12619         subclass.  Also, make the Current getter return the value
12620         of the PropertyDescriptor, not the data_source.
12621
12622         * Binding.cs: no need to duplicate the string splitting code here.
12623
12624 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12625
12626         * Control.cs:
12627           - set_Enabled: OnEnabledChanged is not called if the inherited state 
12628             of the control is not altered, even though  we might be changing the
12629             internal state of the control (#78458)
12630           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
12631             OnEnabledChanged, to allow easy altering of any child window state
12632           - OnEnabledChanged: Added code to enable/disable driver window state
12633           - OnParentEnabledChanged: Instead of firing the event, call 
12634             OnEnabledChanged, which will fire the event and also a) set driver
12635             window state and pass the enabled state to any grandchildren (#78458)
12636
12637 2006-06-19  Jackson Harper  <jackson@ximian.com>
12638
12639         * InternalWindowManager.cs: We don't set the cursor explicitly
12640         thats done via the response to NCHITTESTs.
12641         - Don't need to adjust for titlebar heights anymore, the
12642         coordinates are coming in the correct coordinates now (see peters
12643         last patch).
12644
12645
12646 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12647
12648         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
12649           being translated relative to whole window, instead of client window.
12650           That caused broken offsets on mouseclick (and caused gas for our
12651           InternalWindowManager)
12652
12653 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12654
12655         * TextControl.cs:
12656           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
12657           - Undo(): Added replay of cursor move on DeleteChars action; added
12658             calling Undo() again if a recorded cursor move is invalid (to
12659             ensure that some action is performed on Undo)
12660         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
12661
12662 2006-06-16  Jackson Harper  <jackson@ximian.com>
12663
12664         * MdiClient.cs: Instead of just sizing maximized windows when
12665         there is a resize we also have to adjust the Y of minimized
12666         windows, so they stay pinned to the bottom of the mdi container.
12667         - Eliminate separate tracking of the active control, we can just
12668         get this from the controls collection.
12669         - Paint the decorations for the newly activated titlebar so we get
12670         a pretty blue bar.
12671         * InternalWindowManager.cs:
12672         * ThemeWin32Classic.cs: Minimized windows get all three buttons
12673         even if they are a tool window.
12674         
12675 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12676
12677         * TextControl.cs (Undo): Handle non-existent cursor locations in the
12678           undo buffer, these can happen when text was deleted and the cursor
12679           was recorded first. Since we will also have a recorded cursor
12680           after the delete this is not an issue. (Fixes #78651)
12681
12682 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
12683
12684         * AccessibleObject.cs: Remove dependence on Control.is_selected;
12685           instead properly track control states internally (allows us to
12686           remove is_selected from Control)
12687
12688 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12689
12690         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
12691         whose width is not a multiple of 8.
12692
12693 2006-06-13  Jackson Harper  <jackson@ximian.com>
12694
12695         * MdiClient.cs:  Only maximize the next child if the current one
12696         is maximized.
12697
12698 2006-06-13  Chris Toshok  <toshok@ximian.com>
12699
12700         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
12701         modified.  Also, guard against grid or grid_drawing being null in
12702         Invalidate.
12703
12704         * DataGrid.cs: Reformat tons of getters/setters.  In the
12705         DataMember setter, just call SetNewDataSource instead of
12706         duplicating some of its functionality.  In SetNewDataSource, don't
12707         check ListManager for null, since the property getter creates the
12708         object if needed.
12709
12710         * DataGridTableStyle.cs: don't set TableStyle or call
12711         SetDataGridInternal on the column here, it's done in
12712         GridColumnStylesCollection.Add.
12713
12714         * GridColumnStylesCollection.cs: fix all the explicit interface
12715         implementations to just call our methods.  Nuke AddInternal() and
12716         move the body of it to Add().  Also, add a call to
12717         column.SetDataGridInternal to Add().
12718
12719         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
12720         base()+duplicate code.  Also, use the Format property instead of
12721         format to generate an Invalidate ala MS.  Lastly, create the
12722         textbox here, unconditionally.
12723         (set_Format): call Invalidate.
12724         (get_TextBox): no need to call EnsureTextBox.
12725         (Commit): remove the message box.
12726         (Edit) remove the call to EnsureTextBox.
12727         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
12728         (EnterNullValue): no need to check textbox for null.
12729         (HideEditBox): no need to check textbox for null.
12730         (SetDataGridInColumn): add the textbox to the grid's controls.
12731         (EnsureTextBox): nuke.
12732         
12733 2006-06-13  Jackson Harper  <jackson@ximian.com>
12734
12735         * MdiWindowManager.cs: Hook up to the maximized menus paint event
12736         and redraw the buttons when needed. Unhook when the window is
12737         unmaximized.
12738         * MainMenu.cs: Add an internal Paint event, the mdi window manager
12739         needs this so that it can redraw its buttons when the menu is
12740         repainted.
12741         * InternalWindowManager.cs:
12742         * Form.cs: The method order has changed for DrawMaximizedButtons,
12743         so that it can be a PaintEventHandler.
12744         
12745 2006-06-13  Jackson Harper  <jackson@ximian.com>
12746
12747         * MdiClient.cs: When we close a maximized mdi window, the next mdi
12748         window is activated and maximized, even if it wasn't before.
12749         - When  a new window is activated repaint the decorations of the
12750         old one, so that it no longer has the Active "look" (the blue
12751         titlebar).
12752         * InternalWindowManager.cs: Open up CreateButtons to base classes
12753         so they can recreate the buttons on state changes.
12754         - If a window is maximized give it all three buttons
12755         * MdiWindowManager.cs: Create the titlebar buttons when the state
12756         is changed, this is needed because a toolwindow will not have all
12757         three buttons until it is maximized.
12758
12759 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
12760
12761         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
12762           Fixed bug #78609.
12763
12764 2006-06-12  Jackson Harper  <jackson@ximian.com>
12765
12766         * KeysConverter.cs: Make sure we handle the Ctrl special case
12767         if its the only key.
12768         
12769 2006-06-12  Jackson Harper  <jackson@ximian.com>
12770
12771         * Theme.cs: Add a method to get the size of a managed window
12772         toolbar button.
12773         * InternalWindowManager.cs: Remove the ButtonSize property, this
12774         should be retrieved from the theme.
12775         * MdiWindowManager.cs: Get the button size from the theme
12776         * ThemeWin32Classic.cs: Make the method to get the managed window
12777         titlebar button size public.
12778         - Handle the different button sizes of maximized toolwindows
12779         (should match any maximized window).
12780         - Get the titlebar height from the theme, not the WM (which gets
12781         it from the theme).
12782
12783 2006-06-12  Jackson Harper  <jackson@ximian.com>
12784
12785         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
12786         event down to the mdi window manager.
12787         - Expose some extra stuff to base classes
12788         - Make sure to end the Capture on an NC Mouse up, so that we can
12789         get double clicks properly, and the sizing doens't stick.
12790         - When doing PointToClient contain it in the workable desktop
12791         area, this prevents windows from changing size when the cursor is
12792         pulled outside of the working area while sizing.
12793         * MdiWindowManager.cs: When we get a double click maximize the
12794         window.
12795         - Reset the cursor after handling mode changes.
12796
12797 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
12798
12799         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
12800           current desktop, instead of just assuming a 0, 0 origin. This
12801           is needed for our internal window manager, to know the top
12802           margin of the desktop
12803
12804 2006-06-12  Chris Toshok  <toshok@ximian.com>
12805
12806         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
12807         we need this to get rid of the selected background in the bool
12808         column.
12809         (CancelEditing): move the ConcedeFocus call to above the Abort
12810         call.  Also, set is_changing to false and invalidate the row
12811         header if we were changing before.
12812         (ProcessKeyPreviewInternal): remove, since noone outside this
12813         class calls it anymore.  Roll the code into ProcessKeyPreview.
12814         (EndEdit): remove the internal version.
12815         (InvalidateCurrentRowHeader): make private.
12816
12817         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
12818         Keys.Escape handling (and with it the last call to
12819         DataGrid.EndEdit from outside the class.)
12820
12821
12822 2006-06-12  Chris Toshok  <toshok@ximian.com>
12823
12824         * DataGridTextBox.cs (.ctor): isedit defaults to false.
12825         (OnKeyPress): set isedit to true.
12826         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
12827         already handled by the grid.
12828
12829         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
12830         right.  ugh.
12831         (set_DataSource): SetDataSource always returns true, so stop
12832         putting it in an if statement.
12833         (EndEdit): get rid of some {}'s
12834         (ProcessGridKey): return true in case Keys.Escape.
12835         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
12836         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
12837         PositionChanged, stopped connecting to CurrentChanged.
12838         (GetDataSource): simplify this a bunch.
12839         (SetDataSource): change return type from bool to void.
12840         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
12841         to this, and make sure we don't set ListManager.Position inside
12842         set_CurrentCell.
12843         (OnListManagerItemChanged): if we're passed an actual index,
12844         redraw that row.
12845
12846         * CurrencyManager.cs (set_Position): don't call PullData here.
12847
12848 2006-06-09  Jackson Harper  <jackson@ximian.com>
12849
12850         * TreeNode.cs:  Recalculate the visible order before doing the
12851         Expand/Collapse Below calls, because those calls generate an
12852         expose.
12853         - Reduce calls to the TreeView property, which is mildly expensive
12854         by using a local var.
12855         * Form.cs: Layout the MDI child windows when creating the parent
12856         form.
12857         - Don't use the internal constructor anymore
12858         * MdiClient.cs: use the parent form width/height (if available)
12859         when laying out the child windows, we do this because the
12860         mdiclient isn't docked yet when the initial layout is done.
12861         - Don't need an internal constructor anymore.
12862
12863 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12864
12865         * FileDialog.cs: handle access errors when trying to create a folder
12866         or changing to a directory. No need to initialize out parameters.
12867
12868 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12869
12870         * FileDialog.cs: Append a number when creating a new folder if the
12871           folder already exists (use parenthesis instead of square brackets)
12872
12873 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12874
12875         * FileDialog.cs:
12876           - Disabled registry support for windows and added better registry
12877             error checking for other systems (need to investigate why it
12878             works perfectly on my system)
12879           - If a folder already exist show an error MessageBox instead of
12880             trying to create an indexed name.
12881           - Fixed a non intentional typo.
12882
12883 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12884
12885         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
12886
12887 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12888
12889         * FileDialog.cs: When creating a new folder don't crash if the
12890           folder already exists.
12891
12892 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12893
12894         * FileDialog.cs: Allmost a complete rewrite.
12895           - added a "virtual" file system that handles the differences
12896             between unix and windows file systems (especially the directory
12897             structure). Moved most of the directory and file handling code
12898             into the vfs.
12899             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
12900             UnixFileSystem and FSEntry.
12901           - Recently used folder/directory, size, location and used file names
12902             (file name ComboBox) are now stored in the registry and get read
12903             before the dialog shows up (fixes part 6 of bug #78446).
12904           - Creation of new folders/directories is now possible (context menu
12905             or ToolBar). Added TextEntryDialog for this that fills in the gap
12906             until ListView.LabelEdit works.
12907           - Fixed cursor handling (bug #78527) and focus handling for
12908             PopupButtonPanel
12909           - Various "Search in" ComboBox enhancements. The content of the
12910             dropdown listbox now almost matches ms.
12911           - Changed the behaviour when the user switches to SpecialFolder
12912             Recent to show the ListView in View.Details.
12913           - Beside using the ToolBar to change the View property of the
12914             file ListView it is now possible to use the context menu too.
12915
12916 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12917
12918         * ComboBox.cs: Don't create a new ObjectCollection when an item
12919           gets inserted. Just insert the item in the existing object_items
12920           ArrayList.
12921
12922 2006-06-08  Jackson Harper  <jackson@ximian.com>
12923
12924         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
12925         that the treeview and root node checks are done also, this fixes a
12926         regression i caused in the unit tests.
12927
12928 2006-06-07  Wade Berrier <wberrier@novell.com> 
12929
12930         * RichTextBox.cs: More ISO8859-1 -> unicode
12931
12932 2006-06-07  Mike Kestner  <mkestner@novell.com>
12933
12934         * ComboBox.cs : use items to hold highlight/selection so that
12935         collection insertions don't require synchronization.
12936
12937 2006-06-07  Jackson Harper  <jackson@ximian.com>
12938
12939         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
12940         routine.  We now always keep the sized edge at the cursor instead
12941         of computing movement and adjusting rects.  There is one buglet
12942         with this method though when the cursor is moved over area that
12943         the window can not expand too (such as the toolbars on the desktop).
12944
12945 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12946
12947         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
12948         here. Fixes crash on startup in AlbumSurfer.
12949
12950 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
12951
12952         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
12953           values
12954
12955 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12956
12957         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
12958         statement to avoid calling XNextEvent which will block if another thread
12959         took the event that we were expecting. Fixes bug #78605.
12960
12961 2006-06-07  Mike Kestner  <mkestner@novell.com>
12962
12963         * ListView.cs : isolated checkbox clicking from the selection logic.
12964         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
12965
12966 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12967
12968         * Form.cs: Check that the value passed to Form.DialogResult
12969         is a valid enum value.
12970
12971 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12972
12973         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
12974         Computer'. Clicking it in the network view goes to 'My Computer'.
12975         Added CIFS filesystem type. Display the mount point of filesystems.
12976         Avoid duplicate mount points (happens for me with CIFS);
12977
12978 2006-06-06  Jackson Harper  <jackson@ximian.com>
12979
12980         * InternalWindowManager.cs: Draw the maximized windows buttons
12981         when resizing.
12982
12983 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12984
12985         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
12986         all other dialogs. Fixes bug #78585.
12987
12988 2006-06-06  Mike Kestner  <mkestner@novell.com>
12989
12990         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
12991         Only invalidate checkbox on checkstate changes to avoid flicker.
12992         * ListBox.cs : avoid unselect/select when clicking selected item.
12993         avoid reselection flicker for already multiselected items.
12994         Fixes #78382.
12995
12996 2006-06-06  Jackson Harper  <jackson@ximian.com>
12997
12998         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
12999         the parent form so that the menu is removed if needed.
13000
13001 2006-06-06  Mike Kestner  <mkestner@novell.com>
13002
13003         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
13004         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
13005
13006 2006-06-06  Mike Kestner  <mkestner@novell.com>
13007
13008         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
13009
13010
13011 2006-06-06  Jackson Harper  <jackson@ximian.com>
13012
13013         * Control.cs: Use the property (instead of the field) to get the
13014         default cursor so it is instantiated correctly.
13015         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
13016         resizes so we need to manually repaint the window decorations here.
13017         - Set the titlebar button locations as soon as they are created,
13018         otherwise they are not set correctly on win32.
13019         
13020 2006-06-06  Chris Toshok  <toshok@ximian.com>
13021
13022         * CurrencyManager.cs (set_Position): call PullData before
13023         OnCurrentChanged.
13024         (AddNew): after calling IBindingList.AddNew, update our
13025         listposition, and call OnCurrentChanged/OnPositionChanged (without
13026         calling PullData).
13027         (OnCurrentChanged): remove the call to PullData from here.
13028         (OnItemChanged): remove the call to PushData from here.
13029         (OnPositionChanged): change the test from == null to != null to
13030         match the other methods.
13031         (ListChangedHandler): the grossest part of the patch.  Implement
13032         this such that it passes the unit tests in CurrencyManagerTest and
13033         the output more or less matches that of MS's implementation.
13034  
13035 2006-06-06  Mike Kestner  <mkestner@novell.com>
13036
13037         * ListView.cs : only update check state on single click.
13038         * ThemeWin32Classic.cs : fix focus drawing for details view without
13039         fullrowselect.  Fixes #78454.
13040         * XplatUIX11.cs : fix for double click emission.
13041
13042 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
13043
13044         * PropertyGridView.cs : Applied Atsushi's patch to fix
13045         font dialog bug  (#78197).
13046
13047 2006-06-05  Jackson Harper  <jackson@ximian.com>
13048
13049         * TreeNode.cs: Compute the next node for expanding/collapsing
13050         correctly. We now factor in nodes without a NextNode
13051         correctly. (Fixes somes cases in nunit-gui).
13052         * InternalWindowManager.cs: Set the bounds when updating the
13053         virtual position of a tool window.
13054         
13055 2006-06-05  Chris Toshok  <toshok@ximian.com>
13056
13057         * DataGrid.cs: rename cached_currencymgr to list_manager.
13058         (set_CurrentCell): move SetCurrentCell code here, and clean it up
13059         some.
13060         (CurrentRow, CurrentColumn): single accessors so we can make the
13061         cursor movement code a lot easier to understand.
13062         (CurrentRowIndex): implement this in terms of CurrentRow.
13063         (BeginEdit): clean this up a bit.
13064         (CancelEditing): sort out the is_editing/is_changing/is_adding
13065         stuff a little.
13066         (EndEdit): minor changes.
13067         (OnKeyDown): add a comment about a (most likely) unnecessary
13068         check.
13069         (OnMouseDown): cancel editing when we click on a row header.  And
13070         use the CurrentRow setter, not CurrentCell.
13071         (ProcessDialogKey): directly call ProcessGridKey.
13072         (UpdateSelectionAfterCursorMove): factor out this common block of
13073         code (it's used everywhere that we move the cursor by updating row
13074         or column).
13075         (ProcessGridKey): pretty substantial overhaul.  Use the
13076         CurrentRow/CurrentColumn properties to make the code a lot more
13077         readable.  Only use the CurrentCell property when we have to
13078         modify both row and column at once.  Tab behavior is still broken,
13079         and Delete is untested.
13080         (Select): if we have no selected rows, set selection_start to
13081         @row.
13082         (EditCurrentCell): rename EditCell this.  It was only ever invoked
13083         with CurrentCell as the arg, so drop the arg and rename it.
13084
13085         * DataGridColumnStyle.cs: clean up the constructors a little, and
13086         drop CommonConstructor().
13087
13088         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
13089         actually get notified when the user hits it.
13090         (ProcessKeyMessage): *substantially* simplify this method.
13091         There's no reason (that I can see) for the textbox to be making
13092         calls into the datagrid at all.  Remove all of them but the ones
13093         for Enter handling.  those will take some more work.
13094
13095         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
13096         calling HideEditBox.
13097         (HideEditBox): if we have an active textbox, render it invisible
13098         without causing a re-layout of the datagrid.
13099
13100 2006-06-05  Mike Kestner  <mkestner@novell.com>
13101
13102         * ListView.cs : fix NRE crasher when focuseditem is cleared by
13103         collection changes by resetting it to Items[0].  Fixes #78587.
13104
13105 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13106
13107         * MessageBox.cs: if the height of the text is larger than the icon_size,
13108         use that. Fixes bug #78575.
13109
13110 2006-06-05  Jackson Harper  <jackson@ximian.com>
13111
13112         * TreeView.cs: Fix line drawing when scrolling.  To do this each
13113         node is basically responsible for drawing its entire horizontal
13114         area.  When drawing a node it draws its parent node lines if
13115         needed.
13116         - Adjust the clip area to the viewport rectangle
13117         - Fix Left/Right key handling to match MS. (It expand/collapses
13118         and moves to parents/first child but does not move selection to
13119         sibling nodes).
13120         - Fix SetTop to work with new bound calculation code
13121         - When scrollbars are no longer needed we need to reset scrolling
13122         vars and recalculate the visible order so the redraw is correct
13123         * TreeNode.cs: We can't expand/collapse nodes with no children.
13124
13125 2006-06-03  John Luke  <john.luke@gmail.com> 
13126
13127         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
13128         so the colors work without dev packages
13129         
13130 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
13131
13132         * Control.cs 
13133           - Select: Implemented to just use activate. Seems to match MS 
13134             behaviour closest. Documented to only do actual control walking 
13135             based on it's parameters if in a container control so I moved 
13136             the code there.
13137           - Removed selection check logic from our internal Select() method
13138         * ContainerControl.cs:
13139           - Select: Moved selection logic from Control here, since MS documents
13140             that containers obey the bool arguments. No longer calling base
13141
13142 2006-06-02  Jackson Harper  <jackson@ximian.com>
13143
13144         * TreeView.cs: If the selected node isn't changed when we get
13145         focus update the previously selected node so that we see the
13146         selection box.
13147
13148 2006-06-02  Mike Kestner  <mkestner@novell.com>
13149
13150         * ComboBox.cs: restructure grab and general mouse event handling.
13151         Make the composite control raise mouse events like it was a single
13152         control for leaves/enters/motion/up/down events.  fix dropdown list
13153         coordinate mangling and refactor it into the scrollbar subclass to
13154         reduce code duplication.  Fixes #78282 #78361 and #78457.
13155
13156 2006-06-02  Mike Kestner  <mkestner@novell.com>
13157
13158         * ScrollBar.cs: remove Capture setting/clearing, as it happens
13159         automatically in the Control.WndProc.
13160
13161 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13162
13163         * FileDialog.cs: fix crash when running SharpChess, which sets the
13164         FilterIndex to 2 with only one Filter.
13165
13166 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13167
13168         * ToolBar.cs: add SizeSpecified property.
13169         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
13170         try to figure out our real size, otherwise fallback to what the
13171         container says.
13172
13173 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
13174
13175         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
13176         * Control.cs (WndProc): MS always calls the DefWndProc to pass
13177           up the event
13178
13179 2006-06-01  Mike Kestner  <mkestner@novell.com>
13180
13181         * ListView.cs: revamp the focus management in ListView.  It still
13182         causes churn of LostFocus/GotFocus emissions on clicks, but it's
13183         better than not handling focus at all.  Will revisit when pdb feels
13184         the general focus handling is solid.  Fixes #78526.
13185
13186 2006-06-01  Jackson Harper  <jackson@ximian.com>
13187
13188         * TreeView.cs: Set the default border style in the constructor.
13189         - Move painting to use OnPaintInternal instead of capturing
13190         WM_PAINT, this is the correct way of doing things
13191         - UpdateBelow shouldn't invalidate the scrollbar area
13192         - Cap the top on update below in case the node was above the top
13193         of the viewport rectangle.
13194         - ExpandBelow and Collapse below need to obey Begin/End Update.
13195         * TreeNode.cs: Make is_expanded internal so the treenode
13196         collection can change it without firing the whole event chain.
13197         * TreeNodeCollection.cs: When clearing all the child nodes make
13198         sure to recalc the visible order.
13199         - Improve algo for remove the top node
13200
13201 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
13202
13203         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
13204           SendMessage directly calling window procedures, which in turn might
13205           call SetFocus()
13206
13207 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
13208
13209         * Control.cs: Don't handle WM_SETFOCUS if the same window already
13210           has focus (works around X11 sending a FocusIn after our SetFocus)
13211         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
13212
13213 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
13214
13215         * Mime.cs: Fix for the NET_2_0 build.
13216           NameValueCollection needs StringComparer now.
13217
13218 2006-05-31  Chris Toshok  <toshok@ximian.com>
13219
13220         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
13221         return (via an out parameter) the starting X of the column.
13222         (UpdateVisibleColumn): track change to FromPixelToColumn.
13223         (HitTest): add a ColumnResize case here.
13224         (DrawResizeLine): new function, probably poorly named.
13225
13226         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
13227         only need to keep one reference.
13228         (set_ListManager): same.
13229         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
13230         Also, add support for HitTestType.ColumnResize.
13231         (OnMouseMove): add column resize behavior here, and change the
13232         cursor to the correct one as we move around the datagrid.
13233         (OnMouseUp): terminate the column resize if we're resizing.
13234         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
13235         for the current cell.
13236         (ConnectListManagerEvents): use cached_currencymgr.
13237         (DisconnectListManagerEvents): fill this in, using
13238         cached_currencymgr.
13239         (SetCurrentCell): remove cached_currencymgr_events handling.
13240         (SetDataMember): only call DisconnectListManagerEvents if
13241         cached_currencymgr is != null.
13242         (SetDataSource): same.
13243         (OnListManagerCurrentChanged): cached_currencymgr_events ->
13244         cached_currencymgr.
13245
13246 2006-05-31  Jackson Harper  <jackson@ximian.com>
13247
13248         * BindingManagerBase.cs: Remove somedebug code that creeped into
13249         SVN.
13250         * TreeNode.cs: We get the indent level dynamically right now, so
13251         don't track it as a member.
13252         * TreeNodeCollection.cs: Make sure all nodes added to the list
13253         have parents, treeviews/topnodes setup properly.
13254         - Don't attempt to track indent level.
13255
13256 2006-05-30  Jackson Harper  <jackson@ximian.com>
13257
13258         * BindingContext.cs: Create the currency manager tables here.
13259         This allows us to more easily create null tables (when bad data
13260         members are used), and more easily create related currency
13261         managers.
13262         * CurrencyManager.cs: All the table creation stuff is done by the
13263         binding context now.
13264         - Current should throw an exception if listposition is -1.
13265         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
13266         been bound yet.
13267
13268 2006-05-30  Mike Kestner  <mkestner@novell.com>
13269
13270         * ListView.cs: allow reexpansion of zero-width column headers.
13271         Fixes #78528.
13272
13273 2006-05-28  Chris Toshok  <toshok@ximian.com>
13274
13275         * CurrencyManager.cs (get_Current): after the late binding
13276         listposition = -1 fix, we need to guard against it here and return
13277         null, otherwise we raise an exception (which is swallowed
13278         elsewhere, and breaks datagrid databinding.)
13279
13280 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
13281
13282         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
13283           than WM_SYSKEY, don't throw if get something unexpected (#78507)
13284
13285 2006-05-26  Jackson Harper  <jackson@ximian.com>
13286
13287         * ControlPaint.cs:
13288         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
13289         values, it's faster and it's all we care about (we don't care if
13290         the names aren't equal).
13291         * KeyboardLayouts.cs: Eliminate some dead code.
13292         - Lazy init things
13293         * X11Keyboard.cs: Lazy init keyboard detection.
13294         - Cleanup access modifiers a little.
13295
13296 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
13297
13298         * XplatUIX11.cs: Once again, attempting to get layout just right.
13299
13300 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
13301
13302         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
13303           the sizes of each link section, that will result in sizes that
13304           match DrawString's layout (Fixes #78391)
13305
13306 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
13307
13308         * FileDialog.cs: If AddExtension property is true autocomplete the
13309           extensions in SaveFileDialog correctly. Fixes bug #78453.
13310           Set MyNetwork and MyComputer to "C:\" for windows. This should
13311           fix part 8 of bug #78446 for now.
13312
13313 2006-05-26  Chris Toshok  <toshok@ximian.com>
13314
13315         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
13316         invalidate the current row header if we need to, but presumably
13317         we'll invalidate the row corrsponding to the bounds or
13318         editingControl.
13319         (GridHScrolled): switch back to this method, as it's part of the
13320         public api.  *sigh*.
13321         (GridVScrolled): same.
13322         (OnMouseWheel): hack up something that more or less works.  Call
13323         GridHScrolled/GridVScrolled directly, instead of duplicating much
13324         of their code here.
13325         (EnsureCellVisibility): reinstate a bunch of this code, since we
13326         can't just set the scrollbar Value and expect to do all the work
13327         in the ValueChanged handler.  Also, Call Update() after scrolling
13328         in one direction so the other XplatX11.ScrollWindow call has the
13329         proper stuff in the proper places.
13330         (EditCell): set is_editing to true before calling .Edit.
13331
13332         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
13333         don't bother comparing first.
13334         (OnKeyPress): call grid.ColumnStartedEditing before calling
13335         base.OnKeyPress.  this will set is_changing and invalidate the row
13336         header if necessary.
13337         (ProcessKeyMessage): for WM_CHAR messages, call
13338         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
13339         and WM_KEYDOWN.
13340         
13341         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
13342         it's done in the DataGrid.
13343         (NextState): call grid.ColumnStartedEditing, which takes care of
13344         invalidating the row header (and setting is_changing).
13345
13346         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
13347         here.  it's done in the DataGrid.
13348
13349 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13350
13351         * Control.cs: allow changing the cursor when the mouse position is
13352         out of bounds but Capture is set.
13353         * LinkLabel.cs: handle the case when the mouse button is pressed on the
13354         linklabel but released somewhere else.
13355
13356 2006-05-25  Jackson Harper  <jackson@ximian.com>
13357
13358         * TreeView.cs: When we get focus if there is no selected node make
13359         it the top node
13360         - Remove some uneeded setup code from Draw.
13361         * TreeNodeCollection.cs: If the tree doesn't have a top node when
13362         a new node is inserted make the new node the top.
13363         * XplatUIX11.cs:
13364         * Timer.cs: Use Utc time so that no local time zone stuff needs to
13365         be used (should be faster).
13366         
13367 2006-05-25  Chris Toshok  <toshok@ximian.com>
13368
13369         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
13370         problem with the last commit.
13371
13372 2006-05-25  Chris Toshok  <toshok@ximian.com>
13373
13374         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
13375         need the invalidate call here, while scrolling right-to-left via
13376         the left arrow key (i.e. moving the editing cell while scrolling).
13377
13378         * DataGrid.cs (.ctor): remove the initialization of
13379         ctrl_pressed/shift_pressed.  We no longer track them using key
13380         up/down handlers, but by using Control.ModifierKeys.  Also, switch
13381         to using ValueChanged handlers on the scrollbars instead of
13382         Scrolled event handlers.  This simplifies a bunch of the scrolling
13383         code.
13384         (GridHValueChanged): rename from GridHScrolled, and change it to
13385         work with the new event args.
13386         (GridVValueChanged): same.
13387         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
13388         (OnMouseWheel): actually scroll the datagrid.  Don't change the
13389         selected cell.
13390         (ProcessGridKey): correct all the keyboard navigation stuff I
13391         could find.  Ctrl up/down/left/right/home/end work now.
13392         (EnsureCellVisibility): correct method name spelling.  Also,
13393         simplify this a touch by not explicitly calling the
13394         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
13395         scrollbar value.
13396         (OnKeyUpDG): no need for this method now.
13397         
13398 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13399
13400         * LinkLabel.cs: display the OverrideCursor when hovering the label.
13401         Fixes bug #78392.
13402
13403 2006-05-25  Chris Toshok  <toshok@ximian.com>
13404
13405         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
13406         r61019.
13407
13408 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13409
13410         * Application.cs: Moved setting of is_modal and closing to before
13411           we create the control, to allow the event handlers called as a
13412           result of creation affect closing. Also removed Gonzalo's previous
13413           change to setting DialogResult, the behaviour has been moved to 
13414           Form.ShowDialog()
13415         * Form.cs: 
13416           - ShowDialog(): Removed explicit creation of the form, let RunLoop
13417             handle it instead
13418           - ShowDialog(): If no dialog result is set, we need to return Cancel
13419           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
13420             the close is cancelled
13421
13422 2006-05-25  Jackson Harper  <jackson@ximian.com>
13423
13424         * StatusBar.cs: We only need to update the sizes of the other
13425         panels when we have auto size contents.  Also we are only updating
13426         the contents of the panel, not the borders, so compensate for the
13427         border width (TODO: get this width from the theme somehow).
13428         * TreeView.cs: Scrollable is true by default
13429         - Use invalidate instead of refresh where needed
13430         - Factor the scrollable value into scrollbar updating
13431         - Update the scrollbars if the Scrollable property is altered
13432         - Update the selected node if its ImageIndex is changed
13433         - Handle null nodes in UpdateNode (mainly so we don't have to
13434         check if selected is null when updating it
13435         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
13436         are factored into the visible count
13437         - Use VisibleCount for clarity in the code
13438         - When the font is changed we need to recurse through all the
13439         nodes and invalidate their sizes
13440         
13441 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13442
13443         * Application.cs: set the DialogResult to fixed when the main form is
13444         hidden or destroyed while being modal.
13445
13446 2006-05-25  Miguel de Icaza  <miguel@novell.com>
13447
13448         * Theme.cs: Use Tangoified messagebox icons. 
13449
13450         (GetSizedResourceImage): Also cope with width = 0 and do not
13451         trigger a warning in that case (0 means "give me your icon from
13452         the resouce, no special size needed).
13453
13454 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13455
13456         * Application.cs: Leave runloop if the the main modal form is 
13457           hidden (fixes #78484)
13458
13459 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
13460
13461         * BindingContext.cs : reject null datasource in Contains() and
13462           Item[].
13463         * CurrencyManager.cs : check data_member validity when data_source
13464           is dataset. When it is late binding, the initial position is -1.
13465
13466 2006-05-24  Jackson Harper  <jackson@ximian.com>
13467
13468         * TreeNodeCollection.cs: Dont't recalculate the visible order on
13469         inserted nodes that aren't visible.  This changes the
13470         max_visible_order which confuses scrollbar settings.
13471         - Use the enumerator to get the prev node instead of duplicating
13472         code.
13473         * TreeView.cs: Use new method for setting scrollbar values
13474         - Don't set the bounds every time the scrollbar is updated
13475         - When updating below the root node use an invalidate instead of a
13476         refresh to prevent the child controls (scrollbars) from being
13477         refreshed. (UpdateBelow still needs to be reworked anyways).
13478         - Reenable SetBottom now that visible orders are set correctly,
13479         added some debug code incase we ever get bad values there again.
13480         - Set the scrollbar max to 2 less then the max value, this
13481         compensates for the max value being one above the node count, and
13482         for scrollbars adding one extra "notch".
13483         - When drawing image nodes if there is an imagelist we draw the
13484         first image in the list if the supplied image index is out of the
13485         image list's bounds.
13486         
13487 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13488
13489         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
13490           we receive a size change from the WM (Fixes #78503)
13491
13492 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
13493
13494         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
13495           rectangle (Fixes #78501)
13496
13497 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13498
13499         * ButtonBase.cs: 
13500           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
13501             as a bitfield.
13502           - Fixed MouseMove to no longer switch pressed state unless the left
13503             mouse button is pressed. Atsushi provided the original patch (#78485)
13504           
13505 2006-05-24  Jackson Harper  <jackson@ximian.com>
13506
13507         * ScrollBar.cs: New internal methods that allow us to change a
13508         couple values on the scrollbar (the most common case is maximum
13509         and large change) without getting multiple invalidates.
13510
13511 2006-05-24  Chris Toshok  <toshok@ximian.com>
13512
13513         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
13514         (Edit): save off the original state in oldState, and set
13515         grid.is_editing to true.
13516         (OnKeyDown): abort editing if escape is pressed.  also, call
13517         NextState if space is pressed.
13518         (OnMouseDown): call NextState.
13519         (NextState): factor out shared code from OnKeyDown and OnMouseDown
13520         here.  Also, only invalidate the row header once (on the initial
13521         is_changing switch) to save on redraws.
13522
13523 2006-05-24  Chris Toshok  <toshok@ximian.com>
13524
13525         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
13526         if the value in the cell is different than it was before.  This
13527         keeps us from triggering a layout when we move around a datarid
13528         with a highlighted cell.
13529         (Edit): suspend layout when creating/positining the text box, and
13530         resume passing false so we don't ever actually re-layout.
13531         (ReleaseHostedControl): same.
13532         (EnsureTextBox): reformat slightly, and set WordWrap to false.
13533
13534         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
13535         control-key sequences should go to the datagrid - remove that
13536         lock.  Also, modify the conditions under which we move between
13537         cells when moving the cursor within a cell, and remove the "this"
13538         and "base" from field accesses.  We weren't even consistent, given
13539         they all were in the base class.
13540
13541 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
13542
13543         * Binding.cs : (.ctor)
13544           An obvious NRE fix for BindingTest.CtorNullTest().
13545
13546 2006-05-23  Chris Toshok  <toshok@ximian.com>
13547
13548         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
13549         them between lines.  This fixes some quirks editing cells in the
13550         datagrid.
13551
13552 2006-05-23  Jackson Harper  <jackson@ximian.com>
13553
13554         * TreeView.cs: Use begin/end update when doing expand/collapse all
13555         so that we don't get flicker on the scrollbar.
13556
13557 2006-05-23  Jackson Harper  <jackson@ximian.com>
13558
13559         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
13560         treenode calculations to be independant of the painting code. To
13561         do this nodes track a visible order which is calculated by the
13562         treeview.
13563         - Call new methods for expanding/collapsing nodes.  These methods
13564         use scrollwindow so we don't have to update everything below the
13565         node.
13566         * TreeView.cs: Refactored drawing and scrolling code.  We don't
13567         need to update nodes when drawing anymore or calculate scrollbar
13568         stuff.
13569         - Added new methods for expanding/collapsing nodes. These methods
13570         use ScrollWindow so as to not have to redraw all the nodes below.
13571         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
13572         we add/remove nodes or sort.
13573         - Handle removing the selected and the top node properly.
13574
13575 2006-05-23  Chris Toshok  <toshok@ximian.com>
13576
13577         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
13578         maybe this should actually happen in the datagrid code?
13579         (EndEdit): no need to invalidate anything, given that
13580         ReleaseHostedControl causes the datagrid to relayout, which
13581         invalidates everything anyway.
13582
13583         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
13584         in SetCurrentCell).
13585         (set_SelectionBackColor): call InvalidateSelection instead of
13586         Refresh.
13587         (set_SelectionForeColor): same.
13588         (BeginEdit): Flesh this out a bit.
13589         (CancelEditing): only do any of this if we're editing/adding.
13590         (EndEdit): same.
13591         (OnMouseDown): there's no need to cancel editing here, it's done
13592         in SetCurrentCell.
13593         (SetCurrentCell): only invalidate the current row header if it's a
13594         different row than the new one.
13595         (ShiftSelection): fix this to work like MS does.
13596         (ResetSelection): factor out the invalidation of selected_rows to
13597         InvalidateSelection.
13598         (SetDataSource): cancel any editing that's going on.
13599
13600         * DataGridColumnStyle.cs
13601         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
13602         call the non-interface version.
13603
13604         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
13605         header rectangle with the clip rectangle so we don't redraw the
13606         entire header for just a small area.  Gets rid of the last flicker
13607         when horizontally scrolling.
13608         (DataGridPaintRow): same.
13609
13610 2006-05-23  Mike Kestner  <mkestner@novell.com>
13611
13612         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
13613         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
13614         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
13615         Critical bug report.
13616
13617 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13618
13619         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
13620           and this fixes #78493
13621
13622 2006-05-23  Miguel de Icaza  <miguel@novell.com>
13623
13624         * Theme.cs (GetSizedResourceImage): Scale images if the proper
13625         size is not found.  
13626         
13627         * FileDialog.cs: Do not change the background for the side bar as
13628         it wont work nicely with the theme, and also reduces the artifacts
13629         in rendering the icons (which I want to fix too).
13630
13631         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
13632         resources, not resgen resources. 
13633
13634         (PlatformDefaultHandler): Pull images using the new API.
13635
13636 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13637
13638         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
13639           a reference to the hwnd and will not remove it unless there are
13640           no pending exposures (fixes #78341)
13641         * XplatUI.cs: Improved debug
13642
13643 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
13644
13645         * MenuAPI.cs : don't handle OnClick event when it was not the left
13646           button. Fixed bug #78487.
13647
13648 2006-05-23  Mike Kestner  <mkestner@novell.com>
13649
13650         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
13651         prefer submenus to the top menu for item lookup, to avoid popping down
13652         top-row items.
13653
13654 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
13655
13656         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
13657           Graphics.FillRectangle as the visual results are really bad (even
13658           on win). We now draw perfect arrows (and perfect shadows when the
13659           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
13660           Pen.DashPattern to draw the dots of each line.
13661
13662 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
13663
13664         * FileDialog.cs: Update the filename combobox when navigating through
13665           the ListView with the cursor keys. Fixes part 7 of bug #78446.
13666
13667 2006-05-22  Mike Kestner  <mkestner@novell.com>
13668
13669         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
13670         Fixes #78463.
13671
13672 2006-05-22  Mike Kestner  <mkestner@novell.com>
13673
13674         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
13675         requests. Fix a misspelled parameter and a copy paste exception error
13676         in Select.
13677
13678 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
13679
13680         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
13681           to get the same width/height (5/13) on X11 as the default font has on
13682           win32. This means that our DefaultFont emSize is smaller than the 
13683           the MS SWF equivalent (even thought the width/height stays the same)
13684
13685 2006-05-20  Jackson Harper  <jackson@ximian.com>
13686
13687         * MdiClient.cs:
13688         * MdiWindowManager.cs:
13689         * InternalWindowManager.cs: Make sure to use the border width from
13690         the theme.
13691
13692 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
13693
13694         * PrintDialog.cs: Implements printer details
13695
13696 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
13697
13698         * FileDialog.cs: Added focus handling for PopupButtonPanel.
13699           Fixes part 1 and 2 of bug #78446
13700
13701 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
13702
13703         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
13704           instead of sticking to the first ever calculated value
13705
13706 2006-05-19  Mike Kestner  <mkestner@novell.com>
13707
13708         * ComboBox.cs: fix mouse motion selection to use MousePosition and
13709         PointToClient, since Capture is set. Fixes #78344.
13710
13711 2006-05-19  Mike Kestner  <mkestner@novell.com>
13712
13713         * ListView.cs: match MS behavior in Details view where items are not
13714         drawn if Columns.Count == 0. 
13715         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
13716         Use a separate pen to draw the check, since changing the width affects
13717         the box as well.  Fixes #78454.
13718
13719 2006-05-18  Miguel de Icaza  <miguel@novell.com>
13720
13721         * ListView.cs: ArgumentOutOfRangeException, single versions of the
13722         exception should throw the name of the invalid argument.
13723
13724         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
13725         there are no files listed. 
13726
13727 2006-05-18  Jackson Harper  <jackson@ximian.com>
13728
13729         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
13730         up.
13731
13732 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13733
13734         * Control.cs: Brought back our old UpdateZOrder method as a private
13735           function and switched our calls from UpdateZOrder to the new one.
13736           This fixes the Paint.Net canvas disappearing bug.
13737
13738 2006-05-18  Jackson Harper  <jackson@ximian.com>
13739
13740         * Theme.cs:
13741         * ThemeWin32Classic.cs:
13742         * InternalWindowManager.cs: Move the drawing into the theme,
13743         expose everything the theme should need from the window manager.
13744
13745 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13746
13747         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
13748           from the call to NativeWindow to avoid walking up the parent chain
13749           further than needed (speeds up setting cursors and avoids setting
13750           the wrong cursor if a parent has another cursor defined)
13751         * Cursor.cs: When loading an icon as cursor, MS uses the center of
13752           the icon as hotspot, not what's contained as hotspot in the icon
13753           file. This fixes the perceived drawing offset seen with Paint.Net
13754         
13755 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13756
13757         * XplatUIX11.cs: 
13758           - Store the calculated rectangle in Hwnd object and use it when 
13759             setting the client size
13760           - Force Toolwindows to always be type Dock, to ensure they're on top
13761
13762 2006-05-18  Mike Kestner  <mkestner@novell.com>
13763
13764         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
13765         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
13766         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
13767         Substantial refactoring to remove confusing nested classes. Coding
13768         standard and Get+Set->property refactorings.  Shift to index based
13769         highlighting in ComboListBox instead of constantly using IndexOf and
13770         Items[]. Add invalidations on resize for DropDownList to fix ugliness
13771         in FileDialog growth.  Draw borders manually since Simple mode needs
13772         to look like two independent controls.  Make listbox border
13773         conditional to DropDownStyle.  Improved OwnerDraw support.
13774
13775 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
13776
13777         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
13778         Don't set the disposed graphics to null, so we can throw the "right"
13779         exception if the graphics is reused later (added a flag to avoid 
13780         double disposing). Some behaviours are different under 2.0 and are
13781         filled under bug #78448.
13782
13783 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13784
13785         * Control.cs: When double-buffering is enabled, we need to reset
13786           our graphics context between paint calls. Otherwise, any 
13787           transformations and other alterations on the context will 
13788           become cumulative (#77734)
13789
13790 2006-05-18  Mike Kestner  <mkestner@novell.com>
13791
13792         * ListView.cs: do focused item selection like MS on clicks. 
13793         Rework focus handling for ItemControl so LostFocus invalidates as
13794         well.
13795         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
13796         the ListView ItemControl has focus.
13797
13798 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
13799
13800         * XplatUIX11.cs: If client_window ends up being width or height zero
13801           due to border settings, move it off window inside whole_window (#78433)
13802
13803 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13804
13805         * Mime.cs: Shrink the mime file cache correctly.
13806
13807 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13808
13809         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
13810
13811 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13812
13813         * XplatUIX11.cs (AddExpose): More sanity checks
13814
13815 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13816
13817         * XplatUIX11.cs:
13818           - AddExpose: Don't add expose ranges outside the size of our
13819             window
13820           - Cast opacity values to Int32 to avoid crashes with certain
13821             values
13822           - Added disabled code paths that protect against illegal cross-
13823             thread painting (Developers.exe)
13824
13825 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13826
13827         * ProgressBar.cs: Invalidate the control when it's resized
13828           since block size is based on control size. (#78388)
13829
13830 2006-05-16  Miguel de Icaza  <miguel@novell.com>
13831
13832         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
13833         of setting the incoming argument to the "reset" value, we set the
13834         this.datamember to string.empty (before we were invalidating the
13835         incoming data).   
13836
13837         Fixes 78420
13838
13839 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13840
13841         * Form.cs: Only apply transparency settings after the form
13842           is created. (Fixes #77800)
13843
13844 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13845
13846         * ApplicationContext.cs: Grab the HandleDestroyed event so
13847           we know when to fire OnMainFormClosed 
13848
13849 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13850
13851         * Application.cs: Introduced sub-class to allow tracking of
13852           threads and centralized triggering of the event mess for
13853           ThreadExit, AppExit, etc..  (#76156)
13854
13855 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
13856
13857         * MimeIcon.cs:
13858           - Do not return a null icon index value for a mime subclass.
13859             Instead try the main mime type class too.
13860           - Seems that some newer distributions don't have a link to some
13861             gnome default icons anymore. So check the default gnome dir too.
13862           
13863
13864 2006-05-16  Jackson Harper  <jackson@ximian.com>
13865
13866         * MdiClient.cs: Don't paint the parent background image if we have
13867         our own background image.
13868
13869 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13870
13871         * Control.cs:
13872           - PerformLayout: Do not shrink space filled by DockStyle.Fill
13873             controls, all filled controls are supposed to overlap (#78080)
13874           - UpdateZOrder is supposed to update the control's z-order in the
13875             parent's z-order chain. Fixed to behave like that
13876           - BringToFront: Removed obsolete code
13877           - SendToBack: Simplyfied
13878           - SetChildIndex: Trigger layout calculations when Z-order changes
13879             since layout is done by z-order
13880
13881 2006-05-16  Chris Toshok  <toshok@ximian.com>
13882
13883         [ fixes bug #78410 ]
13884         * DataGrid.cs (set_AlternatingBackColor): use
13885         grid_drawing.InvalidateCells instead of Refresh().
13886         (set_BackColor): call grid_drawing.InvalidateCells.
13887         (set_BackgroundColor): use Invalidate instead of Refresh.
13888
13889         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
13890         invalidate the cell area.
13891
13892 2006-05-15  Chris Toshok  <toshok@ximian.com>
13893
13894         [ fixes bug #78011 ]
13895         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
13896         on to DataGridPaintRow.
13897         (DataGridPaintRow): take a clip argument, and only draw the cells
13898         which intersect it.  same with the not_usedarea.
13899
13900         * Theme.cs (DataGridPaintRow) add @clip parameter.
13901
13902         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
13903         XplatUI.ScrollWindow.
13904         (ScrollToRow): same.
13905
13906         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
13907         with last column which was causing a gray swath to appear with the
13908         XplatUI.ScrollWindow code.
13909
13910 2006-05-15  Chris Toshok  <toshok@ximian.com>
13911
13912         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
13913         use XplatUI.ScrollWindow.
13914         (VerticalScrollEvent): use XplatUI.ScrollWindow.
13915
13916 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
13917
13918         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
13919
13920 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13921
13922         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
13923           file since there are no equivalent X11 cursors
13924
13925 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13926
13927         * MonthCalendar.cs : DateTimePicker should reflect selected date
13928           on mouse*up*, not mouse*down*. Fixed originally reported part of
13929           bug #76474.
13930
13931 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13932
13933         * TabControl.cs : When argument index is equal or more than tab
13934           count, just ignore. Fixed bug #78395.
13935
13936 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13937
13938         * Control.cs: Dispose all child controls when control is diposed (#78394)
13939
13940 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13941
13942         * ColorDialog.cs: Finally it is possible to select the color with
13943           the text boxes
13944
13945 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13946
13947         * PrintDialog.cs: Fix typo
13948
13949 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13950
13951         * PrintDialog.cs: PrintDialog is not resizable
13952         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
13953           color. Made some ToolBar drawing methods protected virtual.
13954
13955 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
13956
13957         * PrintDialog.cs: Implementation of the PrintDialog
13958
13959 2006-05-12  Chris Toshok  <toshok@ximian.com>
13960
13961         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
13962         thumb, instead use MoveThumb.  This has the side effect of making
13963         most of the other thumb moving machinery use MoveThumb as well.
13964         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
13965         need to actually invalidate the rectangle where the new thumb will
13966         go.
13967         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
13968         We force an Update() after, so it's not as fast as it could be,
13969         but at least there's zero flicker and no droppings.
13970         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
13971         (UpdateThumbPos): add another argument (dirty), which says whether
13972         or not to calculate/add dirty regions which we later invalidate.
13973         For cases where we know we're going to use MoveThumb, we pass
13974         false for this.  Otherwise, pass true.
13975
13976 2006-05-12  Jackson Harper  <jackson@ximian.com>
13977
13978         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
13979         the status bar.
13980         
13981 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
13982
13983         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
13984           and GetClipRegion methods and UserClipWontExposeParent property.
13985         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
13986           overriding UserClipWontExposeParent property, setting to false, since
13987           Win32 handles the required expose messages to draw our clipped parent
13988           areas internally
13989         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
13990           PaintEventStart to set the user clip region if set.
13991         * Control.cs: 
13992           - Now internally tracking the Region for the control since we need to
13993             store it if the handle is not yet created and only set it when it
13994             becomes created. Before setting the region forced handle creation
13995           - Added code to draw the parents underneath a user-clipped region
13996         * Hwnd.cs: Added UserClip property
13997
13998 2006-05-12  Chris Toshok  <toshok@ximian.com>
13999
14000         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
14001         (set_Maximum): same.
14002         (set_Minimum): same.
14003         (set_SmallChange): same.
14004         (OnMouseUpSB): remove the call to refresh when releasing the
14005         thumb.  We shouldn't need it.
14006         
14007 2006-05-12  Miguel de Icaza  <miguel@novell.com>
14008
14009         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
14010         AutoSize set to None, we do not need to relayout everything, we
14011         just need to invalidate the current region.
14012
14013         (Draw): Do not draw the entire ClientArea, just redraw the
14014         clip area being passed.
14015
14016         * MdiClient.cs: Make MdiClient constructor with the Form argument
14017         internal. 
14018
14019 2006-05-12  Jackson Harper  <jackson@ximian.com>
14020
14021         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
14022         parents background image,  but strangely not their own.
14023         - (DrawStatusBarPanel): Take into account horizontal alignment
14024         when drawing the strings and icons.
14025
14026 2006-05-12  Mike Kestner  <mkestner@novell.com>
14027
14028         * ListBox.cs: avoid invalidations for focus when the collection is
14029         empty. 
14030
14031 2006-05-12  Chris Toshok  <toshok@ximian.com>
14032
14033         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
14034         invalidate the entire thumb area.  Call InvalidateDirty which
14035         limits the redraw to the thumb itself and surrounding pixels.
14036
14037         * XplatUIX11.cs (ScrollWindow): optimize copying.
14038         
14039 2006-05-12  Chris Toshok  <toshok@ximian.com>
14040
14041         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
14042         Figure out the positioning/layout in a single pass instead of
14043         multiple recursive invocations.  Speeds up the initial display of
14044         the data grid.  Also, make many things private that were
14045         originally public but unused outside this class.
14046
14047 2006-05-11  Jackson Harper  <jackson@ximian.com>
14048
14049         * MdiClient.cs: Improved layout code.
14050
14051 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
14052
14053         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
14054           not SelectedObject.
14055
14056 2006-05-11  Chris Toshok  <toshok@ximian.com>
14057
14058         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
14059         union of that will always be {0,0,width,height}.
14060
14061 2006-05-11  Jackson Harper  <jackson@ximian.com>
14062
14063         * Form.cs: Match MS's DefaultSize for forms (they must have
14064         changed the size in sp2).
14065
14066 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
14067
14068         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
14069
14070 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
14071
14072         * TextControl.cs : Fixed bug #78109. This incorrect position
14073           comparison caused crash on automatic line split.
14074         * TextBoxBase.cs : reduce duplicate code.
14075
14076 2006-05-10  Jackson Harper  <jackson@ximian.com>
14077
14078         * MdiClient.cs: Active form is only sent to the back when using
14079         the Next form functionality, when a form is clicked the current
14080         active shouldn't be sent to the back.
14081         - Layout the mdi windows when the container is first made visible.
14082         * Form.cs: Give the MdiClient a ref to the containing form when we
14083         create it.
14084         
14085 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
14086
14087         * LinkLabel.cs : link_font could be uninitialized, so populate one
14088           before actual use. Fixed bug #78340.
14089
14090 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
14091
14092         * XplatUIX11.cs : clipboard format native value is IntPtr.
14093           Fixed bug #78283.
14094
14095 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
14096
14097         * Control.cs: 
14098           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
14099             which is passed up the parent chain by DefWndProc
14100           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
14101             to DefWndProc (#77956)
14102         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
14103
14104 2006-05-10  Jackson Harper  <jackson@ximian.com>
14105
14106         * MdiClient.cs: We need to remove the controls from the mdi
14107         collection, when we close the window.
14108         * MdiWindowManager.cs: Special handling of closing mdi windows.
14109         * InternalWindowManager.cs: Make the close method virtual so the
14110         mdi window manager can handle it specially.
14111
14112 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
14113
14114         * DataGrid.cs:
14115           - Recalculate grid when the data source has changed
14116           - Matches styles provided by user from all data sources types
14117         * DataGridTableStyle.cs: For columns that provided by the user set the
14118         with the preferred value is there was unassigned.
14119         * CurrencyManager.cs: throw OnItemChanged event
14120
14121 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
14122
14123         * PictureBox.cs: Don't animate until handle is created. Start animation
14124           when handle is created.
14125
14126 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
14127
14128         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
14129           current codebase.
14130         * XEventQueue.cs: We don't need to provide the extra info
14131
14132 2006-05-10  Jackson Harper  <jackson@ximian.com>
14133
14134         * MdiClient.cs: If the mdi clients parent form has a background
14135         image set, we draw that background image for the mdi area's
14136         background.
14137
14138 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
14139
14140         * TextBoxBase.cs: Set IBeam cursor (#78347)
14141
14142 2006-05-10  Mike Kestner  <mkestner@novell.com>
14143
14144         * ToolBar.cs: fix some text padding issues with ButtonSize
14145         calculation. Update the default size to match MS documentation.
14146         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
14147         button size. Fixes #78296.
14148
14149 2006-05-10  Mike Kestner  <mkestner@novell.com>
14150
14151         * ListBox.cs: use is_visible for scrollbar positioning in case the
14152         control isn't on screen yet.  Fix off by one with Right vs Width
14153         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
14154         
14155 2006-05-10  Jackson Harper  <jackson@ximian.com>
14156
14157         * X11Dnd.cs: Drop to a control with another control on top of it.
14158         * ToolBar.cs: Work on a copy of the buttons list, so that it can
14159         be modified in click handlers. TODO: Look for similar problems in
14160         other controls.
14161
14162 2006-05-09  Jackson Harper  <jackson@ximian.com>
14163
14164         * Form.cs: Window managers need the old window state when setting
14165         window state now.
14166         * InternalWindowManager.cs: Allow the base mdi window manager to
14167         handle more of the MDI only stuff (like maximize buttons).
14168         * MdiWindowManager.cs: Fix some snafus in changing the window
14169         state.  Add all the menu functionality, for both popup and
14170         maximized menus.
14171         * MdiClient.cs: When a new form is selected the currently
14172         activated form is sent to the back, this matches MS.
14173         - Implement a new method to activate the next mdi child window.
14174
14175 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
14176
14177         * Control.cs: 
14178           - Added new InternalCapture method to allow controls to prevent
14179             the capture behaviour on the click handlers
14180           - Switched to use InternalCapture
14181         * ComboBox.cs:
14182           - Using InternalCapture to prevent mouse captures from being released
14183             on mouse button release (Fixes #78100)
14184         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
14185           returns Form borders if a caption is present. (Fixes #78310)
14186
14187 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
14188
14189         * TreeNode.cs: Changed serialization .ctor to not require every field
14190           to be present. (#78265)
14191         * OwnerDrawPropertyBag.cs: Added serialization .ctor
14192
14193 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
14194
14195         * MimeIcon.cs: for is faster than foreach for strings.
14196
14197 2006-05-05  Mike Kestner  <mkestner@novell.com>
14198
14199         * CheckedListBox.cs: update check handling code to not use selected.
14200         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
14201         behavior for visual feedback, motion response, shift/ctrl handling,
14202         and properly deal with all 4 selection modes. Updates to bounds
14203         handling logic.  Add scroll wheel support. [Fixes #77842]
14204
14205 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
14206
14207         * ListView.cs:
14208           - Moved adding of Implicit controls into .ctor. That way, subsequent
14209             creation of the controls will not cause them to think they are 
14210             toplevel windows (fixes #78200 header problem)
14211           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
14212           - Switched visibility setting of header control to use internal field
14213             to avoid triggering handle creation
14214           - Now checking if handle is created before causing a refresh when items
14215             are added (This makes us now match handle creation time with MS)
14216         * Splitter.cs: Removed loading of private splitter cursor, switched to
14217           Cursors version now that that is loading the right ones
14218         * Cursors.cs: Load proper splitter cursors from resources
14219         * Cursor.cs: Added second method of loading resource cursors for the 
14220           VS.Net users amongst us
14221
14222 2006-05-05  Mike Kestner  <mkestner@novell.com>
14223
14224         * ListView.cs: give header_control a minimum size based on the
14225         ListView size.
14226
14227 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
14228
14229         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
14230           window seems to do that with metacity, so set that type. (#78120)
14231
14232 2006-05-05  Mike Kestner  <mkestner@novell.com>
14233
14234         * ListViewItem.cs: fix Details mode checkbox layout bug.
14235         * ThemeWin32Classic.cs: draw a ListView column header for unused space
14236         at the end of the header, if it exists. [Fixes for #78200]
14237
14238 2006-05-04  Jackson Harper  <jackson@ximian.com>
14239
14240         * MdiClient.cs: Add a helper property to get the container form.
14241         * MdiWindowManager.cs: We have to make sure to use the menu origin
14242         when drawing the icons and buttons, this fixes maximized window
14243         icons/buttons on win32.
14244         * InternalWindowManager.cs: Reset the restore captions when a
14245         window goes from Maximized to Minimized and vice versa. Move the
14246         DrawMaximizedButtons into the MdiWindowManager source, tool
14247         windows can't be maximized. NOTE: This could use a little
14248         refactoring if time ever permits.
14249         
14250 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14251
14252         * TextBox.cs: Add MWFCategoryAttributes
14253         * TextBoxBase.cs: Add MWFCategoryAttributes
14254         * Form.cs: Add MWFCategoryAttributes
14255
14256 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14257
14258         * Control.cs: Add MWFCategoryAttributes
14259         * ScrollableControl.cs: Add MWFCategoryAttributes
14260
14261 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
14262
14263         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
14264           Divider is true. Fix a little glitch in PropertyToolBar
14265           drawing code
14266
14267 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
14268
14269         * Control.cs:
14270           - Dispose: Call base.Dispose, this causes the disposed event
14271             to be fired (and probably other, more important stuff)
14272           - SetVisibleCore: Set is_visible to true after creating the
14273             window so that the window still gets created invisible (if
14274             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
14275             to generate a WM_ACTIVE message
14276         * Form.cs: Call Dispose when we want to destroy the window, instead of
14277           just destroying the handle (Dispose will do that for us)
14278         * XplatUIX11.cs:
14279           - RootWindow also needs a queue, so we can properly process the
14280             property change events from RootWindow (like Activate)
14281           - Generatic synthetic WM_ACTIVE message when the active window is
14282             being destroyed
14283
14284 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
14285
14286         * LinkLabel.cs: Trigger a recalc of our label dimensions when
14287           bounds are changed
14288
14289 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
14290
14291         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
14292           for determining width and height (image might not be assigned if
14293           we're drawing an imagelist)
14294
14295 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
14296
14297         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
14298         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
14299           height from system
14300         * Theme.cs: No longer returns hardcoded menu height, instead calls
14301           new driver method
14302         * Form.cs (OnLoad): Scaling happens before triggering Load events 
14303           on MS (# 78257)
14304
14305 2006-05-01  Mike Kestner  <mkestner@novell.com>
14306
14307         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
14308
14309 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
14310
14311         * TextBoxBase.cs: Removed Fixme
14312         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
14313
14314 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
14315
14316         * XplatUIX11.cs:
14317           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
14318             the rectangle relative to the parent, considering borders. We
14319             don't really want that.
14320           - ScrollWindow: Fixed warning to be more understandable
14321         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
14322           scrollbars and scroll only the visible area
14323         * RichTextBox.cs: Removed debug output
14324
14325 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14326
14327         * NumericUpDown.cs (Text): Just use base
14328         * UpDownBase.cs: Ensure txtView is created before using it
14329
14330 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14331
14332         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
14333           casting to IntPtr to avoid 64bit overflow errors
14334
14335 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14336
14337         * Control.cs:
14338           - AllowDrop: Don't force handle creation.
14339           - CreateHandle: Added call to tell driver if we're allowed to drop
14340
14341 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14342
14343         * FileDialog.cs: Remember the last directory not only for the
14344           current instance but also for new FileDialog instances.
14345
14346 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14347         
14348         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
14349           broke sending async messages
14350
14351 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14352
14353         * XplatUIX11.cs:
14354           - ScrollWindow: Fixed method. We finally generate expose events again
14355             for scrolled areas. This was causing 'garbage' when scrolling
14356             textbox and other controls that used ScrollWindow
14357           - Switched from using the regular queue for paint events to the MS 
14358             model of 'generating' paint events when the queue is empty.
14359             We use the new XQueueEvent.Paint subclass to store which windows
14360             need painting.
14361           - AddExpose now takes the x/y/width/height of the exposed area
14362             and inserts the window into the paint queue if not already there
14363           - InvalidateWholeWindow: Switched to use new AddExpose method
14364           - UpdateMessageQueue: Added which queue to monitor for paint events
14365           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
14366             the unlikely case nothing above handles it. We reset the expose
14367             pending states to get them off the queue.
14368           - GetMessage: Now pulls a paint event if no other events are in the
14369             queue
14370           - Invalidate: Switched to new AddExpose method
14371           - PeekMessage: Updated to understand pending paint events
14372           - UpdateWindow: Fixed logic bug. We were only updating if the window
14373             didn't need updating. Also switched to sending WM_PAINT directly,
14374             like MS does.
14375         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
14376           and random access Remove(). The random access is needed to handle
14377           UpdateWindow() where a WM_PAINT is sent directly without accessing
14378           the queue.
14379         * ScrollBar.cs: Added Update() calls to cause immediate updates to
14380           allow for better feedback when scrolling. Scrollbars are small and
14381           the immediate update should make it 'feel' more responsive without
14382           slowing things down. ScrollBar still needs it's invaliate logic
14383           updated to not always invalidate the whole bar on certain changes.
14384
14385 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14386
14387         * Control.cs:
14388         (BackColor): if the control does not support a transparent background,
14389         return the default backcolor when the parent backcolor is transparent.
14390
14391 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
14392
14393         * Application.cs: Updated to new StartLoop/GetMessage API
14394         * RichTextBox.cs: Provide some output on RTF parsing errors
14395         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
14396           new queue_id argument to GetMessage and PeekMessage to allow faster
14397           handling of per-thread queues in drivers.
14398         * Hwnd.cs: Added Queue tracking and property
14399         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
14400         * XEventQueue.cs: Added thread trackingA
14401         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
14402         * XplatUIX11.cs:
14403           - Implemented new per-thread queue
14404           - GetMessage: Fixed return/break behaviour on several cases. We were
14405             returning stale messages in some cases, instead of just processing
14406             the next message
14407
14408 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14409
14410         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
14411
14412 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
14413
14414         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
14415           fixed off-by-one comparisons between Width/Height and Right/Bottom.
14416
14417 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14418
14419         * PropertyGridView.cs: Fix drop down width.
14420
14421 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14422
14423         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
14424           a mess in DrawToolBar, so I removed one of them.
14425
14426 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14427
14428         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
14429           needed (clip). Otherwise we get artifacts.
14430
14431 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14432
14433         * FixedSizeTextBox.cs: Added constructor to allow specifying which
14434           dimension is fixed
14435         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
14436           and switched FixedSizeTextBox to only be fixed vertical (#78116)
14437         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
14438           if it matches the scale base font (avoids unneeded scaling)
14439
14440 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14441
14442         * X11DesktopColors.cs: One gtk_init_check should be enough
14443
14444 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
14445
14446         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
14447           match MS behaviour
14448
14449 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14450
14451         * TextBoxBase.cs: 
14452           - Generate OnTextChanged for Backspace even if we're only deleting
14453             the current selection
14454           - When setting the Text property, only select all text if the
14455             control does not have focus when it is being set. Otherwise
14456             just place the cursor at the beginning of the control
14457
14458 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14459
14460         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
14461           Added a little helper to draw PropertyGrid ToolBar with a different
14462           border and a different BackColor.
14463         * PropertyGrid.cs: Some background parts didn't get painted with the
14464           correct background color. Added a class that helps us to draw the
14465           correct border for PropertyGridView and a class that helps us to
14466           draw ToolBars with a different backcolor
14467         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
14468
14469 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
14470
14471         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
14472         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
14473
14474 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14475
14476         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
14477           into the palette entries. Also, since we're working on a copy
14478           we needed to copy the palette back onto the bitmap.
14479         * Cursor.cs: Same fix as XplatUIWin32.cs.
14480
14481 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
14482
14483         * ImageListStreamer.cs: Need to read the var (or we're off)
14484
14485 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14486
14487         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
14488           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
14489           TextBoxBase.cs: Unused var fixes
14490         * AxHost.cs: Small 2.0 fix
14491         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
14492           as it seems that is what at least Metacity expects. This will make
14493           icons show up on 64bit platforms. We still have some 64bit size
14494           issues, though, since the startup app window size still won't match.
14495
14496 2006-04-25  Mike Kestner  <mkestner@novell.com>
14497
14498         * *.cs: cleanup newly reported exception var unused warnings.
14499
14500 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14501
14502         * ThemeWin32Classic.cs: Button image alignment now matches exactly
14503           ms
14504
14505 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14506
14507         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
14508           image. The image position is always the same, no matter if the
14509           button is pressed or not.
14510
14511 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14512
14513         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
14514           selection and set the correct filename for SaveFileDialog.
14515           Patch by Emery Conrad.
14516
14517 2006-04-24  Mike Kestner  <mkestner@novell.com>
14518
14519         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
14520         check for item.X outside the ClientRect instead of item.Y. Fixes
14521         #78151.
14522
14523 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14524
14525         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
14526         trust that value blindly and do some sanity check. Fixes bug #77814.
14527
14528 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14529
14530         * ImageListStreamer.cs: save the mask as a 1bpp image.
14531
14532 2006-04-21  Mike Kestner  <mkestner@novell.com>
14533
14534         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
14535         pass Checked and Indeterminate to the Theme Engine. Improve
14536         encapsulation with ListBox.
14537         * ListBox.cs: Keep a StringFormat instead of calculating it every item
14538         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
14539         nested types.  Move all CheckState functionality to CheckedListBox.
14540         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
14541         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
14542         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
14543         single base list. Fix scrollbar sizing and placement to mirror MS.
14544         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
14545         used.
14546         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
14547         for CheckedListBox by using new DrawItemState info.  Center the
14548         checkboxes on the items. Use new StringFormat property.
14549
14550 2006-04-18  Jackson Harper  <jackson@ximian.com>
14551
14552         * Form.cs: MdiChildren don't do default locations the same way as
14553         regular forms.  This prevents a crash when trying to position the
14554         mdi windows.
14555
14556 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
14557
14558         * PropertyGridTextBox.cs: Formatting, copyright
14559         * PropertiesTab.cs: Formatting
14560         * PropertyGrid.cs: Formatting
14561         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
14562           click toggling of values
14563           
14564 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
14565
14566         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
14567         * Control.cs (.ctor): verify_thread_handle is static, don't reset
14568           every time a control is created
14569         * Application.cs: Removed obsolete EnableRTLMirroring method
14570
14571 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
14572
14573         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
14574         SelectedIndex to -1. Fixes bug #78121.
14575
14576 2006-04-17  Jackson Harper  <jackson@ximian.com>
14577
14578         * Binding.cs: Handle null values for Current and BindingContext.
14579         This occurs when binding is a little delayed.
14580         * CurrencyManager.cs: return null for Current when there are no
14581         items in the list.
14582         - Hookup to the listchanged event on the DataView and update
14583         bindings when the list is changed.  This fixes late binding of
14584         controls.
14585
14586 2006-04-17  Jackson Harper  <jackson@ximian.com>
14587
14588         * X11Dnd.cs:
14589         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
14590         Ringenbach.
14591
14592 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
14593
14594         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
14595           place
14596         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
14597           with the correct ButtonState
14598
14599 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
14600
14601         * XplatUIX11.cs: Improved distinguishing between window types to
14602           tell the WM a type closer to what the app wants (Fixes #78107)
14603
14604 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14605
14606         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
14607           GrabHandle
14608
14609 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14610
14611         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
14612           drawing code to reflect the size grip changes
14613
14614 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14615
14616         * ImageListStreamer.cs: fix handling of the mask that follows the main
14617         bitmap when deserializing and serialize it properly. The generated mask
14618         should better be a 1bpp image, but I'll do that later.
14619
14620 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14621
14622         * FileDialog.cs: Show something in the DirComboBox on *nix if the
14623           path doesn't fit into some of our Current.Places
14624
14625 2006-04-13  Jackson Harper  <jackson@ximian.com>
14626
14627         * ComboBox.cs: Use borders instead of drawing our own decorations,
14628         try to obey correct rules for heights.
14629         * Theme.cs:
14630         * ThemeNice.cs:
14631         * ThemeClearLooks.cs:
14632         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
14633         this is now handled by borders.
14634         - Remove unused DrawListBoxDecorationSize method.
14635         
14636 2006-04-13  Mike Kestner  <mkestner@novell.com>
14637
14638         * MenuAPI.cs: null guarding for the disbled click check fixes crash
14639         reported by Alex.
14640
14641 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14642
14643         * ThemeWin32Classic.cs: 
14644           - Fixed CPDrawStringDisabled
14645           - Corrected drawing of disabled menu items
14646           - Fixed drawing of disabled radio buttons (bug #78095)
14647           - Draw check in a disabled CheckBox with color ControlDark 
14648
14649 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14650
14651         * Form.cs: Use the provided width when calculating the menu size;
14652           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
14653           and ClientSize.Width won't be updated yet
14654         * Application.cs: Use Visible instead of Show() to make form visible,
14655           this way we create the handle later and menusize is considered
14656
14657 2006-04-12  Mike Kestner  <mkestner@novell.com>
14658
14659         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
14660         reporting.
14661
14662 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14663
14664         * TextBox.cs: Implemented context menu
14665
14666 2006-04-12  Mike Kestner  <mkestner@novell.com>
14667
14668         * ListView.cs: implement box selection. fixes #77838.
14669         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
14670
14671 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14672
14673         * XplatUIX11.cs: Added setting of window type when transient window
14674           is created (metacity would move it otherwise)
14675         * X11Structs.cs: Added WINDOW_TYPE atoms
14676         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
14677           background (the control is Opaque but still wants transparent
14678           backgrounds)
14679
14680 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14681
14682         * Control.cs: Added OnPaintBackgroundInternal to allow controls
14683           that set Opaque but don't mean it (like all ButtonBase-derived
14684           controls) to still draw their background
14685         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
14686           the background
14687
14688 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14689
14690         * Control.cs (PaintControlBackground): Set the graphics object
14691           on our PaintEvent to null to prevent it from being disposed
14692           when the PaintEvent gets disposed
14693
14694 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
14695
14696         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
14697         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
14698
14699 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14700
14701         * Control.cs: 
14702           - Added transparency check to BackColor property. Transparent
14703             backgrounds are only allowed if the control styles permit it
14704           - Added recursive painting of parent control background and
14705             foreground if a control with a transparent backcolor is drawn
14706             (Thanks to Tim Ringenback for providing his 'hack' as a base
14707              for this patch) Fixes #77985 and #78026.
14708           - Added Opaque style check before calling OnPaintBackground, no
14709             need to draw the background if the control is opaque
14710           - Removed ControlAccessibleObject owner variable (inherited from
14711             base, no need to define again)
14712           - Added some documentation links explaining the drawing events
14713             and styles
14714
14715 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14716
14717         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
14718           that the affected control is the located at the left border of our
14719           parent (Fixes #77936)
14720
14721 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14722
14723         * TextBoxBase.cs: When rendering disabled or readonly controls,
14724           draw the background with 'Control' instead of 'Window' color as
14725           long as the user hasn't specifically set a color
14726
14727 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14728
14729         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
14730           since that won't be updated if the user types text (only if it's
14731           programatically set)
14732
14733 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14734
14735         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
14736           layout changes do to app-triggered resizes will have the proper
14737           display rectangle for layout
14738
14739 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
14740
14741         * ThemeWin32Classic.cs:
14742           - Make use of the SystemBrushes and SystemPens wherever possible
14743           - Corrected some highlight colors
14744           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
14745             drawing
14746         * Theme.cs: Added Empty field to CPColor struct
14747
14748 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14749
14750         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
14751           is displayed when calculating the display rectangle. Thanks to Mike
14752           for teaching me the err of my ways.
14753
14754 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
14755
14756         * ScrollableControl.cs:
14757           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
14758             (instead of 0,0) and we now return the real width/height instead of
14759             just the clientrectangle, adjusted for padding. The rectangle is
14760             now cached and created by the new CalculateDisplayRectangle method.
14761           - Created new CalculateDisplayRectange method, which basically does
14762             what get_DisplayRectangle() did originally, but now using the 
14763             right edge instead of DisplayRectangle to determine the size of
14764             our scrollbars
14765           - get_Canvas(): Fixed it to properly calculate canvas for 
14766             right/bottom controls which seem to be placed to the right/bottom
14767             of any controls that have a fixed location
14768           - Removed TODO that's taken care of
14769           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
14770             and SetDisplayRectLocation according to new MSDN2 docs
14771           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
14772             event when that is called, this is added for compatibility
14773           - ScrollControlIntoView(): Implemented.
14774           - Switched scrollbars to be implicit, they shouldn't be selectable
14775         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
14776           call it when the active control is set/changed
14777         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
14778         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
14779           implicit_control variable (used for native Win32 message generation)
14780         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
14781           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
14782         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
14783         * XplatUIStructs.cs: Added ScrollBarCommands enum
14784
14785 2006-04-10  Jackson Harper  <jackson@ximian.com>
14786
14787         * ButtonBase.cs:
14788         * CheckedListBox.cs:
14789         * ComboBox.cs:
14790         * DataGrid.cs:
14791         * DataGridView.cs:
14792         * Form.cs:
14793         * GroupBox.cs:
14794         * ListBox.cs:
14795         * PrintPreviewControl.cs:
14796         * ProgressBar.cs:
14797         * PropertyGrid.cs:
14798         * Splitter.cs:
14799         * StatusBar.cs:
14800         * TrackBar.cs:
14801         * UpDownBase.cs: Fixup base event overrides.
14802         
14803 2006-04-06  Mike Kestner  <mkestner@novell.com>
14804
14805         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
14806         all user-initiated value changes to min <= value <= max-thumbsz+1.
14807         (set_Value): check for vert/horiz when calculating new thumb position.
14808         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
14809         like MS does.
14810         (OnMouseMoveSB): refactor the thumb dragging code and refine
14811         invalidation logic to reduce flicker.
14812         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
14813         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
14814         (UpdateThumbPosition): small code readability cleanup
14815
14816 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
14817
14818         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
14819           different
14820
14821 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14822
14823         * ThemeNice.cs: Use a better graphics effect when a button is pressed
14824
14825 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14826
14827         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
14828         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
14829           This dramatically reduces the number of Pen.Dispose calls. 
14830           Where possible call ResPool methods only once instead of calling it
14831           over and over again (for example for the same color).
14832
14833 2006-04-06  Mike Kestner  <mkestner@novell.com>
14834
14835         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
14836         Also remove an unused private field on the collection. Fixes #77972.
14837
14838 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14839
14840         * ThemeNice.cs: Added ToolBar drawing code
14841
14842 2006-04-06  Mike Kestner  <mkestner@novell.com>
14843
14844         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
14845         I'm assuming that means we need to look up the toplevel for the
14846         provided control. Fixes the crash trace in #77911 but exposes another
14847         crash in some strange reflection usage in NDocGui.
14848
14849 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14850
14851         * ThemeNice.cs: Gave it a little silver touch and added Images
14852           method
14853         * FontDialog.cs: FontDialog is not resizable
14854         * FileDialg.cs: Added SizeGripStyle.Show
14855
14856 2006-04-05  Jackson Harper  <jackson@ximian.com>
14857
14858         * KeyboardLayouts.cs: Remove warning.
14859
14860 2006-04-05  Jackson Harper  <jackson@ximian.com>
14861
14862         * Control.cs: Enable OnPaintInternal so we can use it for drawing
14863         all of our controls instead of Paint +=.
14864         * ListBox.cs:
14865         * ListView.cs:
14866         * MenuAPI.cs:
14867         * MessageBox.cs:
14868         * NotifyIcon.cs:
14869         * ProgressBar.cs:
14870         * ScrollBar.cs:
14871         * Splitter.cs:
14872         * StatusBar.cs:
14873         * TabControl.cs:
14874         * TextBoxBase.cs:
14875         * ToolBar.cs:
14876         * TrackBar.cs:
14877         * UpDownBase.cs:
14878         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
14879         use OnPaintInternal. Remove Width/Height and Visible checks in
14880         paint handler, this is done at a higher level now.
14881         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
14882         * PaintEventArgs.cs: Add a handled flag so controls that don't
14883         want anymore painting after OnPaintInternal can make sure OnPaint
14884         isn't called.
14885
14886 2006-04-05  Mike Kestner  <mkestner@novell.com>
14887
14888         * Form.cs: fix the menu WndProc hacks to respect the native enabled
14889         state of the form, so that we don't process events when Modal dialogs
14890         are up. Fixes #77922.
14891
14892 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
14893
14894         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
14895           checking is done.
14896
14897 2006-04-05  Mike Kestner  <mkestner@novell.com>
14898
14899         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
14900
14901 2006-04-05  Mike Kestner  <mkestner@novell.com>
14902
14903         * ListView.cs (HeaderMouseMove): null guarding for the over column
14904         when setting up the drag_to_index.  Fixes #78015.
14905
14906 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
14907
14908         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
14909           in the taskbar. Transient windows seem to accomplish that.
14910
14911 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
14912
14913         * Form.cs:
14914           - Re-enabled CreateParams.X/Y code for FormStartPosition
14915           - Added code for manual placement when creating the Control
14916           - Incomplete patch to treat MDI forms differently when
14917             setting the ClientSizeCore. (Still need to figure out handling
14918             x/y coords there)
14919         * XplatUIX11.cs:
14920           - When we're explicitly setting the X/Y position of a non-Child
14921             window, let the WM know. Metacity really wants this.
14922
14923 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14924
14925         * ThemeNice.cs: Added CPDrawButton
14926
14927 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14928
14929         * ThemeNice.cs: Changed the color for focused buttons and activated
14930           the arrows for small scroll buttons.
14931
14932 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14933
14934         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
14935           anymore. Changed some method modifiers to protected (virtual)
14936         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
14937           changes
14938         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
14939           Updated drawing of menus, buttons and progressbars; added
14940           CPDrawBorder3D 
14941
14942 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14943
14944         * ImageListStreamer.cs: implemented serialization/deserialization
14945         of the images.
14946
14947 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
14948
14949         * ThemeWin32Classic.cs:
14950           - Removed all the DrawFrameControl stuff; CPDrawButton,
14951             CPDrawCheckBox and CPDrawRadioButton are now handled directly
14952             inside the methods
14953           - Updated and corrected the drawing code of CPDrawButton,
14954             CPDrawCheckBox and CPDrawRadioButton to better match ms
14955           - Updated theme checkbox and radiobutton code to use the CP*
14956             methods
14957
14958 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14959
14960         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
14961           bug is fixed
14962
14963 2006-03-31  Jackson Harper  <jackson@ximian.com>
14964
14965         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
14966         sometimes.
14967         * UpDownBase.cs: Don't CreateGraphics manually, use a
14968         Refresh. Ideally we would invalidate the correct areas here.
14969
14970 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14971
14972         * XplatUIX11.cs: 
14973           - We now track the mapping state of windows. If a window (or 
14974             one of it's parents) is not mapped we no longer permit
14975             WM_PAINT messages to be generated since we'd otherwise get 
14976             lots of BadMatch X errors. Jackson did all the work figuring
14977             out the problem.
14978           - Destroying the caret if the window it's contained in is 
14979             destroyed. Can't use regular DestroyCaret method since it
14980             might fall into a drawing function (trying to remove the
14981             caret) and with that generate new BadMatch errors. Again,
14982             Jackson tracked this down.
14983           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
14984             make sure we send the messages to all windows. (The old code
14985             would send the WM_DESTROY to the window, and then all child
14986             windows would be 'gone' because the WM_DESTROY handle lookup
14987             would no longer find the destroyed window)
14988         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
14989         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
14990
14991 2006-03-31  Jackson Harper  <jackson@ximian.com>
14992
14993         * ScrollableControl.cs: Dont recalc if we are not visible.
14994
14995 2006-03-31  Mike Kestner  <mkestner@novell.com>
14996
14997         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
14998         the visibility branch.
14999
15000 2006-03-31  Jackson Harper  <jackson@ximian.com>
15001
15002         * ScrollBar.cs: Cap values when incrementing/decrementing.
15003
15004 2006-03-31  Mike Kestner  <mkestner@novell.com>
15005
15006         * MenuAPI.cs: setup menu.tracker for popup/context menus.
15007         * ToolTip.cs: guard against timer expirations with no active control.
15008         Not sure why it happened.
15009
15010 2006-03-31  Mike Kestner  <mkestner@novell.com>
15011
15012         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
15013         text.
15014         * ToolTip.cs: Position the tooltip based on where the cursor is at
15015         popup time, not at MouseEnter time.  Add a Down state so that we don't
15016         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
15017         positioning offset. Lookup DisplaySize at positioning time, since it
15018         can theoretically change during invocation.
15019         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
15020         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
15021
15022 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
15023
15024         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
15025           Fixes behaviour when the Text property of the box is String.Empty
15026
15027 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
15028
15029         * XplatUIX11.cs: Only send mouseleave for our client windows, not
15030           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
15031           a window)
15032
15033 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
15034
15035         * FileDialog.cs: Visual enhancement for the popup buttons in 
15036           PopupButtonPanel
15037
15038 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
15039
15040         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
15041           code
15042
15043 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
15044
15045         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
15046           highlighted menu items to match ms
15047
15048 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
15049
15050         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
15051
15052 2006-03-30  Mike Kestner  <mkestner@novell.com>
15053
15054         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
15055         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
15056         go active to account for HotLight to Selected transition.
15057         * MenuItem.cs: add internal Selected prop. Fill out the Status
15058         property by calculating it from item info. Add HotLight,
15059         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
15060
15061 2006-03-30  Mike Kestner  <mkestner@novell.com>
15062
15063         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
15064
15065 2006-03-29  Jackson Harper  <jackson@ximian.com>
15066
15067         * Form.cs: Implement TODO.
15068
15069 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
15070
15071         * PrintPreviewDialog.cs: Implemented missing methods and events; still
15072           missing proper dialog setup in the constructor
15073
15074 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
15075
15076         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
15077         * Control.cs:
15078           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
15079           - Fixed ResetBindings and removed TODO
15080           - Added check for cross-thread calls to get_Handle()
15081           - Added Marshaller attribute for set_Font to satisfy class status
15082         * FontDialog.cs: Removed TODOs that seemed implemented
15083         * UpDownBase.cs: Removed unneeded TODO and Fixme
15084         * MessageBox.cs: Implemented support for Default button and removed TODO
15085         * FileDialog.cs: Removed obsolete TODO
15086         * DomainUpDown.cs: Removed obsolete TODO
15087         * ButtonBase.cs: Removed obsolete TODO
15088         * XplatUIWin32.cs: Removed obsolete TODO
15089         * Form.cs:
15090           - Removed obsolete TODO
15091           - Calling CheckAcceptButton when the acceptbutton is changed to allow
15092             internal status updates
15093           - Making sure the active control is selected when the control is created
15094         * CurrencyManager.cs: Removed obsolete TODO
15095
15096 2006-03-29  Mike Kestner  <mkestner@novell.com>
15097
15098         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
15099         of PrintPreviewDialog and RichTextBox.
15100
15101 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
15102
15103         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
15104           DarkDark, Light and LightLight colors for a specific color
15105         * ThemeWin32Classic.cs:
15106           - Use Button drawing code to draw RadioButtons and CheckBoxes with
15107             Appearance = Button 
15108           - Make use of the new ResPool helper CPColor
15109           - Draw ProgressBar and StatusBar with correct 3D borders
15110
15111 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
15112
15113         * ColorDialog.cs: Return selected color. Fixes bug #77940.
15114
15115 2006-03-28  Mike Kestner  <mkestner@novell.com>
15116
15117         * ListView.cs: fix Icon layout to plan for scrollbar widths when
15118         calculating col/row counts.
15119
15120 2006-03-28  Mike Kestner  <mkestner@novell.com>
15121
15122         * ColumnHeader.cs:
15123         * ListView.cs:
15124         * ListViewItem.cs:
15125         * Menu.cs: 
15126         switch to explicit interface method implementation for some methods
15127         corcompare identifies as inconsistent with MS.
15128
15129 2006-03-28  Mike Kestner  <mkestner@novell.com>
15130
15131         * MainMenu.cs: 
15132         * Menu.cs:
15133         add a few missing methods from the class status output.
15134
15135 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
15136
15137         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
15138           correct.
15139
15140 2006-03-28  Mike Kestner  <mkestner@novell.com>
15141
15142         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
15143
15144 2006-03-27  Mike Kestner  <mkestner@novell.com>
15145
15146         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
15147         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
15148
15149 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
15150
15151         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
15152
15153 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15154
15155         * ThemeWin32Classic.cs:
15156           - GroupBox: Inserted a little gap between the text and the lines
15157             on the right side
15158           - Made the code in CPDrawBorder3D more readable
15159           - Corrected the drawing location of the up and down arrows in 
15160             CPDrawScrollButton
15161
15162 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15163
15164         * ControlPaint.cs: Corrected line widths in DrawBorder for
15165           ButtonBorderStyle Inset and Outset
15166
15167 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15168
15169         * ThemeWin32Classic.cs:
15170           - Rewrote the totally broken CPDrawBorder3D method. That was
15171             one of the main problems for the terrific ThemeWin32Classic
15172             look
15173           - Updated and corrected Button drawing
15174           - Correct the dimensions of the SizeGrip to match ms ones
15175           - Removed a small drawing glitch in DrawComboBoxEditDecorations
15176         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
15177           Border3DStyle.Sunken to match ms.
15178
15179 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15180
15181         * ThemeWin32Classic.cs: First small part of the "de-uglify
15182           ThemeWin32Classic" effort, SizeGrip
15183
15184 2006-03-24  Jackson Harper  <jackson@ximian.com>
15185
15186         * XplatUIX11.cs: Give a max idle time of one second, this matches
15187         MS and forces an Idle event every second when there are no other
15188         events in the queue.
15189
15190 2006-03-24  Mike Kestner  <mkestner@novell.com>
15191
15192         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
15193         * ListView.Item.cs: fix layout issues with null image lists and images
15194         smaller than checkbox size.
15195         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
15196         mode like MS does.  It's weird, but consistent.  ;-)
15197         Fixes #77890.
15198
15199 2006-03-24  Mike Kestner  <mkestner@novell.com>
15200
15201         * ListView.cs: Scroll wheel support for the item control.  Fixes
15202         #77839.
15203
15204 2006-03-23  Jackson Harper  <jackson@ximian.com>
15205
15206         * ScrollableControl.cs: Special case negative sized areas, not
15207         zero.
15208         * MonthCalendar.cs: Save the rect of the clicked date so we can
15209         use it for invalidation.
15210         - Try to cut down on the number of invalidates
15211         - Invalidate the rect the mouse is over and was over when moving
15212         the mouse, so we get the focus box following the cursor.
15213
15214 2006-03-23  Mike Kestner  <mkestner@novell.com>
15215
15216         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
15217         focus rectangle drawing. Fixes #77835.
15218
15219 2006-03-23  Mike Kestner  <mkestner@novell.com>
15220
15221         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
15222         the if and else if and reverting back to the original == check on the
15223         None conditional.
15224
15225 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
15226
15227         * FontDialog.cs: Update the example panel if the selected index of
15228           the fontListBox changes.
15229
15230 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
15231
15232         * FileDialog.cs: Make FileDialog remember which directory it was in
15233           last in the same execution.
15234
15235 2006-03-22  Mike Kestner  <mkestner@novell.com>
15236
15237         * FileDialog.cs: make the DropDownMenu on the toolbar display
15238         RadioChecks since they are mutually exclusive and that's what MS does.
15239
15240 2006-03-22  Mike Kestner  <mkestner@novell.com>
15241
15242         * Theme.cs: add Color param to CPDrawMenuGlyph.
15243         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
15244         checks and radio marks and arrows are visible on highlighted items.
15245         * ControlPaint.cs: update to use new Theme signature.
15246
15247 2006-03-22  Mike Kestner  <mkestner@novell.com>
15248
15249         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
15250         is active. Fixes #77870.
15251
15252 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
15253
15254         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
15255           to be focused/selected after startup
15256
15257 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
15258
15259         * ColorDialog.cs: 
15260           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
15261             CustomColors and ShowHelp properties
15262           - Some internal rewrites to get better results when using the
15263             ColorMatrix
15264
15265 2006-03-22  Mike Kestner  <mkestner@novell.com>
15266
15267         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
15268         HoverSelection.  Fixes #77836.
15269
15270 2006-03-22  Mike Kestner  <mkestner@novell.com>
15271
15272         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
15273         ToggleButtons.  (De)Sensitize the Back button around a stack count of
15274         1, not 0.  Update ButtonSize based on a pixel count of the win32
15275         control.  Adjust the toolbar size/location for new button size.
15276
15277 2006-03-22  Jackson Harper  <jackson@ximian.com>
15278
15279         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
15280         true.
15281         * ScrollBar.cs: When doing increments and decrements we need to
15282         set the Value property so that ValueChanged gets raised. A
15283         possible optimization here would be to make an internal SetValue
15284         that doesn't invalidate immediately.
15285         * ToolTip.cs: Tooltips get added to their container (when
15286         supplied) so they get disposed when the container is disposed.
15287         - Don't create tooltips for String.Empty. This prevents all these
15288         little 2-3 pixel windows from showing up when running nunit-gui
15289         and driving me mad.
15290         * Form.cs: Don't set topmost when setting the owner if the handles
15291         haven't been created yet.  The topmost set will happen when the
15292         handles are created.
15293
15294 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
15295
15296         * XplatUIX11.cs:
15297           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
15298           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
15299             visible (to allow them to recalculate their sizes)
15300
15301 2006-03-21  Mike Kestner  <mkestner@novell.com>
15302
15303         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
15304         methods. Removed a ton of redundant code.  Still not really happy with
15305         the border rendering, but I think that's mainly because of the
15306         ControlDarkDark being black instead of a dark grey. Depending on how 
15307         close we want to be, we might want to revisit those color choices.
15308         Among the new features added during the refactor were DropDownArrow
15309         pressed rendering, Disabled image rendering.  Proper flat appearance
15310         boundary rendering.  Removed the Divider and Wrapping dividers since I
15311         can't figure out any combination of themes and conditions to make the
15312         MS control draw a horizontal line on a toolbar despite what the
15313         Divider property docs indicate.
15314         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
15315         conditions and incorrect layout.  Updated to coding standard.
15316         * ToolBarButton.cs: refactored layout and positioning code from
15317         ToolBar to here.  Invalidate wherever possible instead of forcing
15318         redraws of the whole toolbar. 
15319         (Known remaining issues: explicit ButtonSize smaller than provided
15320         images.)
15321
15322 2006-03-21  Mike Kestner  <mkestner@novell.com>
15323
15324         * ContextMenu.cs (Show): use the position parameter instead of just
15325         showing at the MousePosition.
15326
15327 2006-03-21  Jackson Harper  <jackson@ximian.com>
15328
15329         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
15330         control handle this.
15331         * TreeNodeCollection.cs: If we are clearing the root node we need
15332         to reset top_node so calcs can still happen.
15333         * ThemeWin32Classic.cs: This is a Flags so we need to check
15334         properly.
15335         
15336 2006-03-21  Jackson Harper  <jackson@ximian.com>
15337
15338         * DataGrid.cs: Create columns when the binding context has been
15339         changed.
15340         * X11Structs.cs: Keysyms are uints.
15341         - Add size to fix build.
15342
15343 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
15344
15345         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15346           XplatUIOSX.cs: 
15347           - Added ResetMouseHover method to allow controls to retrigger
15348             hovering if they need it more than once
15349           - Implemented MouseHoverTime and MouseHoverSize properties
15350         * Timer.cs: Start() must reset the interval
15351         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
15352           properties
15353
15354 2006-03-21  Jackson Harper  <jackson@ximian.com>
15355
15356         * X11Keyboard.cs: improved layout detection. Move the nonchar
15357         tables into this file.
15358         * KeyboardLayouts.cs: Move the tables into resource files.
15359
15360 2006-03-21  Mike Kestner  <mkestner@novell.com>
15361
15362         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
15363
15364 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
15365
15366         * Mime.cs: Various speed optimizations. Looking up mime types
15367           is now 2 times faster than before
15368
15369 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
15370
15371         * CreateParams.cs: Added internal menu field
15372         * Control.cs: 
15373           - Switched call order for UpdateBounds; now we always call
15374             the one that also takes ClientSize, and we're calculating the 
15375             client size via driver method in the others. The previous
15376             method of tracking client size by difference wasn't working
15377             for forms where even the starting client size wouldn't match
15378             the overall form size (due to borders) (Part of fix for #77729)
15379           - CreateParams(): Do not use parent.Handle unless the handle is
15380             already created. Causes havoc with Nexxia and throws off our
15381             creation of controls
15382         * XplatUIX11.cs:
15383           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
15384           - Switched handling of ConfigureNotify over to new PerformNCCalc 
15385             method (consolidates code)
15386           - Changed RequestNCRecalc to use new PerformNCCalc method
15387           - Added calls to RequestNCRecalc when menus and borders are changed
15388             to allow app to set NC size. (Part of fix for #77729) This matches
15389             when MS send a WM_NCRECALC on Win32 windows.
15390           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
15391             (Part of fix for #77729). This matches what MS does, they also
15392             send that message when the form is made visible.
15393           - XException.GetMessage: Improved usability of X errors by including
15394             a translation of the window into Hwnd and Control class
15395           - Improved debug info for window creation, reparenting and destruction
15396           - Created helper method WindowIsMapped() [Currently not used]
15397         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
15398         * Form.cs:
15399           - CreateParams: Now setting our menu on the new internal menu field
15400           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
15401             avoid calculating the same property twice
15402         * Hwnd.cs:
15403           - Improved usability of ToString() for debugging purposes
15404           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
15405             determine the height of the menu, instead of just the font. This
15406             required to also create a graphics context and to keep a bmp 
15407             around (for performance reasons)
15408
15409 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
15410
15411         * MenuAPI.cs: Added OnMouseUp method
15412         * Form.cs:
15413           - Now remembering the requested client size, avoids size errors
15414           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
15415             instead of base if the menu is active. This is required due to
15416             control now capturing and releasing on down/up and it would
15417             prematurely release our menu capture
15418
15419 2006-03-17  Jackson Harper  <jackson@ximian.com>
15420
15421         * KeyboardLayouts.cs: Add the czech layouts.
15422
15423 2006-03-16  Jackson Harper  <jackson@ximian.com>
15424
15425         * Control.cs: Use the viewport space when sizing not the controls
15426         client size, so things like ScrollableControl that effect the
15427         viewport size (when scrollbars are added) are computed correctly.
15428         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
15429         of ManagerEntrys.
15430         - Handle creating BindingManagers for null data sources.
15431         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
15432         source, otherwise when rows are added they are added to the 'fake'
15433         datasource and we will crash when trying to set the position in
15434         those rows.
15435         - Use Implicit scrollbars on the datagrid so they arent
15436         selectable.
15437         
15438 2006-03-16  Jackson Harper  <jackson@ximian.com>
15439
15440         * Binding.cs:
15441         * InternalWindowManager.cs:
15442         * MdiWindowManager.cs:
15443         * X11Keyboard.cs: I really want Mike to love me again (fix
15444         compiler warnings).
15445
15446 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
15447
15448         * DataGrid.cs:
15449           - OnMouseDown: Switch to editing mode when clicking on the cell
15450                          even if we're clicking on the cell that's currently 
15451                          selected
15452           - ProcessGridKey: Left/Right now wrap like MS.Net does
15453           - ProcessGridKey: Tab now knows to add a new row when tab is
15454                             pressed in the cell of the last column of the 
15455                             last row
15456           - ProcessGridKey: Enter now adds another row  if pressed in the last
15457                             row and selectes the new row, same column cell
15458           - ProcessGridKey: Home/End navigate columns, not rows, like 
15459                             originally implemented
15460           - Broke ProcessKeyPreview code out into an extra Internal method
15461             so it can be called from the edit code
15462         * DataGridTextBox.cs (ProcessKeyMessage):
15463           - Switched to accept Tab keypresses
15464           - Added F2 handling to allow jumping to the end of the edited cell
15465           - Added logic to allow moving caret left/right inside edited cell
15466             and making the edited cell jump when the caret hits cell borders
15467           - Tab and Enter are now passed to the datagrid after being handled
15468         * TextBoxBase.cs:
15469           - Removed capture code now that Control handles it
15470           - set_SelectionStart now ensures caret is visible
15471
15472 2006-03-16  Jackson Harper  <jackson@ximian.com>
15473
15474         * TrackBar.cs: Debackwards the increment/decrement for handling
15475         mouse clicks on the bar with vertical trackbars.
15476         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
15477         bottom to match MS.
15478
15479 2006-03-16  Mike Kestner  <mkestner@novell.com>
15480
15481         * ListView.cs: make shift/ctrl keyboard and mouse selection 
15482         consistent with the MS control. Fix a bug in
15483         SelectedListViewItemCollection.Clear that was pissing me off for the
15484         better part of a day because the collection was being altered
15485         underneath us as we walked the list.
15486
15487 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
15488
15489         * Control.cs: Not sure how we could miss this so long, but it seems
15490           that MS.Net has Capture set all the way from before calling 
15491           OnMouseDown through sending the mouse events until after
15492           OnMouseUp. This will fix DataGrid's selection being set to end
15493           at the location of the MouseUp.
15494
15495 2006-03-15  Jackson Harper  <jackson@ximian.com>
15496
15497         * BindingContext.cs: Check the binding after its added so that it
15498           can initialize the binding managers and hookup to events.
15499         * Binding.cs: Data members seem to sometimes include rows/cols in
15500           the format Row.Column we now take this into account.
15501           - Hookup to the position changed event so we can update the
15502           control when the position has changed in the data set.
15503         * CurrencyManager.cs: Take into account the row/col naming
15504           convention when creating dataset tables.
15505         * BindingContext.cs: Using a newer better way of storing
15506           datasource/datamember pairs.  Hopefully this better matches MS for
15507           looking up binding managers.
15508
15509
15510 2006-03-15  Jackson Harper  <jackson@ximian.com>
15511
15512         * BindingContext.cs: The currency manager needs the data member
15513         name, if the member is a data set we use the name to find the
15514         correct table.
15515         * CurrencyManager.cs: When creating the list prefer an IList over
15516         an IListSource.
15517         - Attempt to create a DataTable from a DataSet (TODO: might need
15518         some better error checking here, although MS doesn't seem to have much)
15519         - If we have a DataTable create a view and use it as our list.
15520
15521 2006-03-15  Mike Kestner  <mkestner@novell.com>
15522
15523         * ListView.cs: keep a matrix of the icon mode layout to facilitate
15524         keyboard navigation. Support Up/Down/Left/Right selection correctly
15525         for all 4 View modes.
15526         * ListViewItem.cs: add internal row/col fields for icon layouts.
15527
15528 2006-03-15  Jackson Harper  <jackson@ximian.com>
15529
15530         * TabControl.cs: Redraw the tabs when we resize so their newly
15531         calculated sizes are drawn on screen.
15532         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
15533         composite characters.
15534         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
15535         - filter events so that composite characters can be created
15536         patches by peter
15537         * X11Structs.cs: Add XIMProperties enum.
15538
15539 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15540
15541         * Control.cs (BringToFront, SendToBack): Don't use window or handle
15542           unless it's created
15543
15544 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15545
15546         * Control.cs (PerformLayout): We don't need to consider visiblity
15547           for anchoring, only for docking. This fixes 'whacky' alignment
15548           in listbox and other controls that use implicit scrollbars after
15549           the previous PerformLayout patch
15550         * ListBox.cs: Switched to use implicit scrollbars
15551           
15552 2006-03-14  Mike Kestner  <mkestner@novell.com>
15553
15554         * ToolBar.cs: 
15555         * VScrollBar.cs:
15556         - chain up the "new event" overrides to base and use
15557         OnEvent to raise them.  Part of fix for bug #76509.
15558
15559 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
15560
15561         * FileDialog.cs: Do not select an item in the parent directory
15562           on backspace
15563
15564 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15565
15566         * Control.cs (PerformLayout): It would seem that we considered
15567           invisible windows for our layout. Not quite the right thing
15568           to do. Now we don't any longer, thereby fixing bug #76889.
15569
15570 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15571
15572         * Control.cs (CanFocus): I goofed. A control can have focus 
15573           even though it's not selectable. Made it match MS docs.
15574
15575 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15576
15577         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
15578           center by default (fixes #76895)
15579         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
15580           all uses of Border3DSides.All with the explicit ORd together
15581           Left|Right|Top|Bottom because I assume that nobody was aware 
15582           that All also implies a center fill. Most places I checked had
15583           a fill right above.
15584         * ProgressBarStyle.cs: Added
15585
15586 2006-03-13  Mike Kestner  <mkestner@novell.com>
15587
15588         * ListView.cs: fix breakage in drag shadow header positioning 
15589         from Peter's csc compilation fix.
15590
15591 2006-03-13  Mike Kestner  <mkestner@novell.com>
15592
15593         * ListView.cs: fix NRE produced by backspacing twice in a focused
15594         FileDialog.
15595
15596 2006-03-13  Mike Kestner  <mkestner@novell.com>
15597
15598         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
15599
15600 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15601
15602         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
15603           be changed
15604         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
15605           the allowed size before making programmatic size changes
15606
15607 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
15608
15609         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
15610           set, metacity is broken and will still use the emty sizes in 
15611           the struct. (Fix for #77089)
15612
15613 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15614
15615         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
15616           WindowExStyles and marked both enums as Flags
15617         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
15618           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
15619           to match WindowStyles split
15620         * XplatUIX11.cs:
15621           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
15622           - Updated to match WindowStyles split
15623         * XplatUIWin32.cs:
15624           - Fixed FosterParent creation, was using ExStyle on the Style field
15625             (This should help with Popup focus issues)
15626           - Updated to match WindowStyles split
15627
15628 2006-03-13  Jackson Harper  <jackson@ximian.com>
15629
15630         * MdiWindowManager.cs: Use the system menu height. Fixes some
15631         strange sizing issues.
15632
15633 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15634
15635         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
15636         * TextBoxBase.cs:
15637           - Scroll to caret after inserting text (#77672)
15638           - Make scroll range one pixel higher, fixes off-by-one error (and
15639             makes underlines visible on the last line)
15640
15641 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
15642
15643         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
15644           the keyboard state from being stuck with keys in 'pressed' state when
15645           focus is switched away via keyboard
15646         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
15647           reset the keyboard if no X11 KeyUp events are expected to come
15648         * X11Structs.cs: Switched type of Visible to bool to match driver
15649
15650 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15651
15652         * TextControl.cs:
15653           - Switched caret to be just 1 pixel wide, matches MS and looks less
15654             clunky
15655           - Moved caret display 1 pixel down from the top of the control
15656             to improve view
15657           - InsertCharAtCharet: Update the selection start if moving the caret
15658             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
15659           - No longer always creating the caret when the caret methods are
15660             called. Only the actual ShowCaret/HideCaret will do that now
15661           - Only setting caret visible if the owner control has focus
15662           - UpdateView: Added invalidation-shortcut logic for center and right 
15663             aligned text. Previously we'd update all according to the left
15664             logic which caused drawing errors. Also fixed height of invalidated
15665             areas, now properly invalidating the whole area (was off-by-one)
15666           - owner_HandleCreated: Always generate the document when the
15667             handle is created; this ensures that 
15668         * TextBoxBase.cs:
15669           - Fixed situation where caret would disappear under the right
15670             window border, also improved scrolling behaviour on left-
15671             aligned textboxes
15672           - Fixed right-aligned textboxes to have a border to the
15673             right instead of the caret being under the right border
15674         * XplatUIX11.cs:
15675           - Switched from 'nested' to simple visible/not visible tracking 
15676             for caret (part of fix for #77671)
15677           - No longer passing through translated FocusIn/FocusOut messages
15678             since we were notifying too often and the wrong windows. Instead
15679             we just notify our focussed window of receiving or loosing focus
15680         * XplatUIWin32.cs: Switched from 'nested' show/hide 
15681           counting for caret to simple visible yes/no behaviour (part of 
15682           fix for #77671)
15683
15684 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15685
15686         * Mime.cs: Remove debug code...
15687
15688 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15689
15690         * MimeGenerated.cs: Removed
15691         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
15692           and subclasses) from /usr/(local/)share/mime and
15693           $HOME/.local/share/mime.
15694
15695 2006-03-10  Jackson Harper  <jackson@ximian.com>
15696
15697         * MdiWindowManager.cs: Recalc the NC area when a window is
15698         maximized/restored so that the menu area is drawn on forms that
15699         don't have a menu.
15700
15701 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15702
15703         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15704           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
15705           us to force a WM_NCCALCRESIZE message being sent. This is needed
15706           for MDI maximizing.
15707
15708 2006-03-10  Jackson Harper  <jackson@ximian.com>
15709
15710         * Form.cs: We need to use the ActiveMenu when calculating menu
15711         height.
15712         - Fix nullref when the window manager hasn't been created yet.
15713         * Control.cs: Fix nullref when we try to bring a control to the
15714         front that has no parent.
15715         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
15716         height.
15717         - Add a dummy item to the maximized menu so it always has the
15718         correct height. Otherwise when there are no menus we don't get our
15719         icon and buttons.
15720         
15721
15722 2006-03-10  Jackson Harper  <jackson@ximian.com>
15723
15724         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
15725         stuff.
15726         * Form.cs: Make the window_state internal so the window managers
15727         can track it.
15728         - When an MDI child is maximized let its window manager create the
15729         main menu (so it can add its icon).
15730         - Notify the window managers of state changes
15731         - Let the window manager paint its buttons and handle button
15732         clicks on the menu when it is maximized.
15733         * InternalWindowManager.cs: Move the prev_bounds into the mdi
15734         window manager, since tool windows don't use it, only mdi windows.
15735         - Tell the main form that we don't want it to handle NCPAINT
15736         itself to avoid extra painting.
15737         - Handle clicks on a maximized windows menu.
15738         - Handle window state changes
15739         - Handle minimize/maximize clicks correctly by setting the window state.
15740         * MdiWindowManager.cs: Add an icon menu that (the menu you get
15741         when clicking on the forms icon).
15742         - New method to create a forms maximized menu. This is its normal
15743         menu + an icon.
15744         - Handle window state changes.
15745         - Handle sizing of maximized windows.  Maximized windows are just
15746         drawn bigger then the parent visible area. All controls are still
15747         there, they are just outside the visible area (this matches windows).
15748         * MdiClient.cs: No scrollbars when a child window is maximized.
15749         - Let the children windows figure out how big they should be when
15750         sizing maximized windows.
15751         - Implement a version of ArrangeIconicWindows somewhat similar to
15752         Windows version.  There are some little differences, but I don't
15753         think any app will rely on the layout of minimized mdi windows.
15754
15755 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15756
15757         * Padding.cs: Several fixes to allow compiling with csc 2.0
15758
15759 2006-03-09  Jackson Harper  <jackson@ximian.com>
15760
15761         * Menu.cs:
15762         * MenuItem.cs: Cheap hack so we can add items to the list without
15763         the events being raised.  This allows adding mdi items during
15764         drawing. TODO: Should probably find a better time to add the items.
15765
15766 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15767
15768         * ThemeWin32Classic.cs:
15769           - CheckBox_DrawText: Added logic to not wrap if not enough space
15770             is available (Fix for bug #77727)
15771           - RadioButton_DrawText: Added logic not to wrap if not enough
15772             space is available (Fix for bug #77727). Also removed some
15773             duplicate code, DrawString always drawing the regular text
15774             before hitting the if statement.
15775
15776 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
15777
15778         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
15779
15780 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15781
15782         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
15783         * ContainerControl.cs: Partial implementation of some 2.0 scaling
15784           methods. Moved the new 2.0 properties into alphabetical order with
15785           other properties and added MonoTODO tags
15786
15787 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15788
15789         * AutoScaleMode.cs: Added. Fix build.
15790
15791 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15792
15793         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15794           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
15795           and was requiring premature handle creation for calls from above
15796         * Form.cs, Control.cs: Removed handle arguments from calls to
15797           CalculateClientRect()
15798
15799 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15800
15801         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
15802           drag_column.column_rect is MarshalByRef and can't be used that way
15803
15804 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15805
15806         * AxHost.cs: Added deserialization constructor for 
15807           AxHost+State (fixes 77743)
15808
15809 2006-03-09  Mike Kestner  <mkestner@novell.com>
15810
15811         * ListView.cs: 
15812         - Added column drag reordering for details view.
15813         - fixed behavior when mouse is dragged off column and
15814         AllowColumnReorder is false.
15815         * ColumnHeader.cs: clone the format too in Clone.
15816         * Theme.cs: add DrawListViewHeaderDragDetails method.
15817         * ThemeWin32Classic.cs:
15818         - impl new method for drawing drag column shadows and targets.
15819         - support column offset for details mode in DrawListViewItem.
15820
15821 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15822
15823         * TextControl.cs: Reset the char_count when the document is cleared
15824           (Fixes bug reported on mono-winforms mailing list)
15825
15826 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15827
15828         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
15829           of calling base we simply process the key ourselves, since both
15830           DefWindowProc and the handled method would set m.Result. 
15831           (Fixes #77732)
15832
15833 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15834
15835         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
15836           method also moves the window; instead implemented a copy of
15837           Control.ScaleCore (Part of fix for #77456)
15838         * TextBoxBase.cs: 
15839           - Created new CreateGraphicsInternal method to allow providing
15840             a graphics context when no handle is created without triggering
15841             handle creation. (Part of fix for #77456)
15842           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15843         * TextControl.cs: 
15844           - Switched Constructor to require TextBoxBase instead of Control (to
15845             allow uncast access to CreateGraphicsInternal)
15846           - Safeguarded use of owner.Handle property. No longer accessing it
15847             unless the handle is already created.
15848           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15849           - Now triggering a recalc when owning control becomes visible
15850         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
15851           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
15852           premature handle creation (Part of fix for #77456)
15853         * Control.cs:
15854           - We now only destroy our double-buffering buffers when the
15855             control is resized or disposed, but not when visibility
15856             changes. (The code even re-created them twice every time)
15857           - Now requiring a redraw of the buffer on visibility changes
15858             (fixes bug 77654 part 2)
15859           - Not passing OnParentVisibleChanged up unless the control
15860             is visible
15861           - CanFocus: Fixed to match MS documentation
15862           - Focus: Fixed to return actual focus state and to check if
15863             setting focus is legal before setting it
15864
15865 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
15866
15867         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
15868           when to draw focus rectangle by looking at parent focus and
15869           selected state instead. This fixes TabPages on Linux sometimes
15870           having none or multiple focus rectangles.
15871         * XplatUIX11.cs (SetFocus): 
15872           - Don't set the focus if the same window already has focus
15873           - Use SendMessage instead of PostMessage (like it's Win32
15874             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
15875             to match MS behaviour
15876         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
15877           are not selectable.
15878
15879 2006-03-07  Jackson Harper  <jackson@ximian.com>
15880
15881         * PictureBox.cs: Revert line I accidently committed last week.
15882
15883 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
15884
15885         * Control.cs: 
15886           - Added new IsRecreating and ParentIsRecreating properties to
15887             allow testing if RecreateHandle has been called on ourselves
15888             or one of our parents
15889           - WndProc(WM_DESTROY): If our control handle is being recreated
15890             we immediately need to create the handle when receiving the
15891             destroy, that way our child windows find a valid parent handle
15892             when they themselves are being recreated upon WM_DESTROY receipt
15893             (fix for bug #77654 part 1)
15894         * XplatUIX11.cs:
15895           - DestroyWindow: WM_DESTROY must be sent to our own window before
15896             notifying any child windows. MS documents that child windows
15897             are still valid when WM_DESTROY is received. (Control now relies on
15898             this behaviour)
15899           - Added some fine-grain debug options
15900
15901 2006-03-06  Jackson Harper  <jackson@ximian.com>
15902
15903         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
15904         box and base calculations off this.
15905         * MdiChildContext.cs:
15906         * MdiWindowManager.cs: Don't need to ensure scrollbars here
15907         anymore.
15908         
15909 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
15910
15911         * Splitter.cs: In situations where the affected control is added
15912           to the parent's control list after the splitter, we would not
15913           populate affected. Now we try populating it on mousedown, if
15914           it's not already set, and force it to be re-set whenever our
15915           parent changes.
15916
15917 2006-03-03  Matt Hargett  <matt@use.net>
15918
15919         * Control.cs: implement Control.Padding
15920         * Padding.cs: -Padding.All returns -1 when constructing with the
15921         implicit default ctor
15922         -Padding.ToString() matches MS.NET
15923         * ContainerControl.cs: implement
15924         ContainerControl.AutoScaleDimensions
15925         * ListControl.cs: implement ListControl.FormattingEnabled
15926         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
15927         * ButtonBase.cs:
15928         * TabPage.cs: Implement UseVisualStyleBackColor.
15929         * PictureBox.cs: Implement PictureBox.InitialImage.
15930
15931 2006-03-03  Mike Kestner  <mkestner@novell.com>
15932
15933         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
15934         event declarations to proxy to base event.
15935         * ListViewItem.cs: update to use ItemControl.
15936         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
15937         * ThemeWin32Classic.cs: update to new ListView theme API and fix
15938         column header label rendering for 0 width columns.
15939
15940 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
15941
15942         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
15943           that causes the control to be created. Fixes #77476.
15944
15945 2006-03-02  Jackson Harper  <jackson@ximian.com>
15946
15947         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
15948         expose_pending.
15949
15950 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
15951
15952         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
15953           passed in for the EventArgs (fixes #77690)
15954
15955 2006-03-01  Jackson Harper  <jackson@ximian.com>
15956
15957         * ScrollBar.cs: Refresh afterbeing resized.
15958
15959 2006-02-28  Mike Kestner  <mkestner@novell.com>
15960
15961         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
15962         Clean up a tracker compile warning.
15963         * MenuItem.cs: add internal PerformPopup method.
15964         [Fixes #77457]
15965
15966 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15967
15968         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
15969           implicit expose) when the text is set to null
15970
15971 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
15972
15973         * RichTextBox.cs (FlushText): When newline is true, we always
15974           need to split the line, even if no text is on it and we may
15975           never eat newlines. (Fixes #77669)
15976
15977 2006-02-28  Mike Kestner  <mkestner@novell.com>
15978
15979         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
15980         and set Selected instead.
15981         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
15982         collections.
15983
15984 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15985
15986         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
15987
15988 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
15989
15990         * FontDialog.cs:
15991           - Got rid of the panel. All controls are now directly added to
15992             the dialog form
15993           - It is now possible to set a font with the Font property
15994           - MinSize and MaxSize property do now what they should
15995           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
15996           - Searching and selecting a font with the font textbox works now,
15997             the same applies to the style and size textbox
15998           - Draw the correct 3D border in the example panel
15999           - Fixed a little mem leak (unused fonts didn't get disposed)
16000           - Many other internal updates/rewrites...
16001           - Fix typo
16002
16003 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
16004
16005         * TextControl.cs: 
16006           - InsertRTFFromStream: Added 'number of characters inserted' argument
16007           - set_SelectedRTF: Now using the number of characters to calculate
16008             the new location for the selection and cursor (x/y cannot be used
16009             due to potentially already wrapped text)
16010
16011 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
16012
16013         * TextControl.cs: Added property and implemented means to allow 
16014           disabling recalculation of a document (can be used to speed up
16015           multiple inserts and is needed to make RTF inserts predictable, see
16016           bug #77659)
16017         * RichTextBox.cs: Using the new NoRecalc property of Document to
16018           keep x/y insert locations predictable. Also makes it faster inserting
16019           large chunks of RTF
16020
16021 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
16022
16023         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
16024           it's easier for a child control to handle the other messages without
16025           having to duplicate the special functionality
16026         * TextBoxBase.cs
16027           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
16028             code to handle processing the key ourselves, in order to get 
16029             access to the result of KeyEventArgs.Handled. We now only call 
16030             ProcessKey if they key hasn't been handled already. Fixes #77526.
16031           - set_Text: If null or empty string is given, just clear the 
16032             document. Fixes part of #77526
16033
16034 2006-02-27  Jackson Harper  <jackson@ximian.com>
16035
16036         * SizeGrip.cs: Paint the background color before painting the grip
16037         so things look right.
16038         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
16039
16040 2006-02-27  Mike Kestner  <mkestner@novell.com>
16041
16042         * ListView.cs:
16043           - Restructure layout and invalidation model to remove a ton of
16044           flicker from the control and speed up performance in general.
16045           - Add manual column resize, flickers like crazy, but I already have
16046           some ideas on how I'll fix that. (#76822)
16047           - Merge the three Icon-based views into a single layout method.
16048           - Move item selection interaction logic from the item since 
16049           interaction with the collections is more appropriate to the view.
16050           - Deselection on non-item clicks.
16051         * ListViewItem.cs:
16052           - Encapsulate most of the layout. Add some internal props to trigger
16053           layout.  Move to a model where Items invalidate themselves instead
16054           of just invalidating the whole control every time something changes.
16055           - Invalidate on Text/Caption changes.
16056           - switch to an offset based layout model to avoid having to absolute
16057           position every element on item moves.
16058           - correct checkbox layout to conform to MS layout.
16059         * ThemeWin32Classic.cs:
16060           - refactor some column header drawing code.
16061           - fix string justification for column headers (#76821)
16062           - make SmallIcon labels top justified for compat with MS impl.
16063         * ThemeClearlooks.cs:
16064           - adjust to new ListViewItem internal checkbox bounds api.
16065
16066 2006-02-27  Jackson Harper  <jackson@ximian.com>
16067
16068         * Control.cs:  Change where implicit controls fall in the zorder.
16069         They are now on top of all children.
16070         - Synced AddImplicit code with Add
16071         - Removed unused enumerator.
16072         * SizeGrip.cs: Remove the TODO as its been TODONE.
16073
16074 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
16075
16076         * TextControl.cs(Insert): Combine the last lines unless the insertion
16077           string ends with \n\n, otherwise we leave one line too many (Fixes
16078           something I noticed with the testapp for #77526; the bug itself was
16079           already fixed in the previous checkin)
16080
16081 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
16082
16083         * RichTextBox.cs:
16084           - SelectionColor and SelectionFont methods no longer set absolute
16085             styles. Instead, the keep font or color respectively (This 
16086             resolves a long-standing FIXME in the code)
16087           - When flushing RTF text, the insert code now considers text trailing
16088             behind the insertion point (Fixes the bug where when replacing
16089             the selected text via SelectedRTF the remainder of the line behind 
16090             the selection would stay on the first insertion line)
16091         * TextBoxBase.cs:
16092           - AppendText now updates the selection points after inserting text
16093           - AppendText now ensures that the last tag (sometimes 0-length) of
16094             the document is used for the style information (Fixes part of 
16095             bug #77220)
16096         * TextControl.cs:
16097           - Created new FontDefiniton class to allow describing partial style
16098             changes
16099           - StreamLine() now takes a lines argument, to allow it to decide
16100             whether an encountered zero-length tag is the last in the document
16101             (which must be kept to not loose the font/color contained in it,
16102             for later appends)
16103           - Created Combine() and Split() methods for Marker structs, to 
16104             support marker updates due to reformatted documents (soft line
16105             wraps)
16106           - Implemented Document.CaretTag setter
16107           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
16108             of the last line (Not the cause, but also exposed by bug #77220)
16109           - Added LineTag argument to InsertString method, to allow callers
16110             to force a certain tag to be used (required to force use of the
16111             trailing zero-length tag of a document)
16112           - Now updating markers in Combine(), to avoid stale tag markers
16113           - Added some method descriptions to aid maintenance
16114           - Implemented new FormatText concept, allowing additive/subtractive
16115             formatting by only specifying the components that are to be 
16116             changed. This was needed for resolving the RTB.SelectedColor/
16117             RTB.SelectedFont fixmes
16118           - Added Break() support method to allow breaking up linetags (used
16119             for partial formatting)
16120           - Added GenerateTextFormat() method. It is used for partial 
16121             formatting and allows to generate a full font/color from given
16122             attributes and an existing tag.
16123
16124 2006-02-26  Jackson Harper  <jackson@ximian.com>
16125
16126         * XplatUIX11.cs:  Use the correct caption height.
16127         - Translate hittest coordinates to screen coords to match MS.
16128         * XplatUIWin32.cs: When we create MDI windows we need to reset
16129         some of the style flags, so we get a nice blank window, and can
16130         draw all the decorations ourselves.
16131         - Set a clipping rectangle on the non client paint event, the
16132         window manager drawing code needs one.
16133         * Form.cs: The window manager needs to know when the window state
16134         has been updated.
16135         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
16136         don't need to factor in border and title sizes in these
16137         methods. TODO: Remove the args and fix the call points.
16138         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
16139         properly.
16140         - Let the driver set the cursors.
16141         - Improve active window handling
16142         - Correct sizes for title bars and buttons.
16143         - Match MS drawing better
16144         * MdiWindowManager.cs: We don't need to handle border style
16145         updates specially anymore.
16146         - Check for scrollbars when windows are done moving
16147         - Handle Active properly.
16148         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
16149         correctly. I am spewing the exception though, so we don't hide the
16150         bugs.
16151         
16152 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
16153
16154         * DataGridViewRowPostPaintEventArgs.cs,
16155           DataGridViewCellPaintingEventArgs.cs,
16156           DataGridViewRowCollection.cs,
16157           DataGridViewRowPrePaintEventArgs.cs,
16158           DataGridViewCell.cs: Clear a few warnings and implement a few
16159           exceptions that should be thrown.
16160
16161 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
16162
16163         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
16164           'inheriting' our parent's (non-default) cursor. (Part of
16165            the fix for #77479)
16166
16167 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
16168
16169         * XplatUIX11.cs: Fixed cast to make csc happy
16170
16171 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
16172
16173         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
16174           it's for the client area (part of fix for #77479 and needed
16175           for MDI window cursor handling)
16176         * XplatUIX11.cs
16177           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
16178             the appropriate default cursors and also passing the message
16179             up the parent chain 
16180           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
16181             for non-client areas
16182
16183 2006-02-15  Jackson Harper  <jackson@ximian.com>
16184
16185         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
16186         is a real MDI window
16187
16188 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
16189
16190         * X11DesktopColors.cs: Instead of checking the desktop session
16191           string for "KDE" check if it starts with "KDE"
16192
16193 2006-02-10  Jackson Harper  <jackson@ximian.com>
16194
16195         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
16196         systems).
16197
16198 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
16199
16200         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
16201           errors
16202         * ColorDialog.cs:
16203           - Got rid of the panel. All controls are now directly added to
16204             the dialog form
16205           - Changed to mono coding style
16206
16207 2006-02-10  Jackson Harper  <jackson@ximian.com>
16208
16209         * InternalWindowManager.cs: We don't need the set visibility to
16210         false hack anymore now that peter has written beautiful shutdown
16211         code.
16212
16213 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
16214
16215         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
16216           where already explicitly destroyed
16217
16218 2006-02-10  Jackson Harper  <jackson@ximian.com>
16219
16220         * MdiClient.cs: Handle the case where windows are too high or to
16221         the left and we need scrollbars.
16222
16223 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
16224
16225         * MimeIcon.cs: Added some icons
16226         * FileDialog.cs:
16227           - Fixed bug #77477
16228           - Got rid of the panel. All controls are now directly added to
16229             the dialog form
16230           - Changed to mono coding style
16231           - On Linux "My Computer" and "My Network" will now show some
16232             more usefull information. A new class, MasterMount, gathers
16233             this information from /proc/mount. Updated MWFFileView to make
16234             use of this information
16235           - Fixed a bug that caused FileDialog to crash when
16236             ".recently_used" file had a zero size
16237           - FilterIndex does now what it should
16238           - Some Refactoring
16239         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
16240             FileDialog changes
16241
16242 2006-02-09  Jackson Harper  <jackson@ximian.com>
16243
16244         * ComboBox.cs: Don't touch if null.
16245
16246 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
16247
16248         * Cursor.cs: 64bit safeness fix
16249         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
16250
16251 2006-02-09  Jackson Harper  <jackson@ximian.com>
16252
16253         * Form.cs: If a form is made into an MDI form update the styles so
16254         all the props can get set correctly.
16255         - Kill the mdi_container when we dont need it anymore.
16256         * InternalWindowManager.cs: Add missing NOT
16257
16258 2006-02-08  Jackson Harper  <jackson@ximian.com>
16259
16260         * InternalWindowManager.cs: Respek clipping when drawing MDi
16261         decorations.
16262
16263 2006-02-08  Jackson Harper  <jackson@ximian.com>
16264
16265         * Hwnd.cs: Add bits to track non client expose events.
16266         * XplatUIX11.cs: Track non client expose events on the hwnd. This
16267         gives us a proper invalid rect and will allow for some nice
16268         optimizations with NC client drawing
16269         - MDI windows are children windows, so move their style handling
16270         into the child window block.
16271         * InternalWindowManager.cs: Remove a state reset that was
16272         getting invoked at the wrong time. Fixes managed windows getting
16273         into a 'stuck' captured state.
16274
16275 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
16276
16277         * TextControl.cs (Document.ctor): Now initializing 
16278           selection_anchor. Fixes #77493
16279
16280 2006-02-07  Jackson Harper  <jackson@ximian.com>
16281
16282         * TrackBar.cs: The increment/decrements were backwards.
16283
16284 2006-02-07  Mike Kestner  <mkestner@novell.com>
16285
16286         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
16287         to the instance itself.
16288
16289 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
16290
16291         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
16292           on ulongs and pointers, the size differs between 32bit and 64bit
16293           systems. 
16294
16295 2006-02-07  Mike Kestner  <mkestner@novell.com>
16296
16297         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
16298         for 64 bit platforms to work around a metacity bug. 
16299
16300 2006-02-07  Jackson Harper  <jackson@ximian.com>
16301
16302         * TrackBar.cs: Process the input keys we need, and hookup to
16303         KeyDown instead of using WndProc, so we get key messages.
16304
16305 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
16306
16307         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
16308           machine we're on. 
16309         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
16310           we need to translate the XdndVersion atoms array before sending it
16311
16312 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
16313
16314         * XplatUIX11.cs: 
16315           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
16316             number of bits for the property, not the number of bytes. The
16317             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
16318             but would not crash since it specified 8 bits instead of 4 bits)
16319           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
16320             defined as XID -> long in the C headers)
16321           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
16322             references since those are now IntPtr to begin with
16323           - Switched all Atom.XXX 'int' casts to IntPtr casts
16324           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
16325           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
16326           - Added XChangeActivePointerGrab DllImport (for X11DnD)
16327         * X11Structs.cs:
16328           - Changed 'int' type for Atoms in XEvent structures to IntPtr
16329           - Changed atom in HoverStruct to be IntPtr
16330         * X11DnD.cs:
16331           - Removed local DllImports, switched code to use those from XplatUIX11
16332           - Removed/fixed casts related to the switch of Atom to be a IntPtr
16333
16334 2006-02-06  Mike Kestner  <mkestner@novell.com>
16335
16336         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
16337         method signatures in the import region.  There may still be some
16338         lingering struct marshaling issues, as I didn't drill down into those.
16339         Yet.
16340
16341 2006-02-06  Jackson Harper  <jackson@ximian.com>
16342
16343         * ComboBox.cs: Dont manually set the top_item, this is computed
16344         when the scrollbar position is set.
16345
16346 2006-02-06  Mike Kestner  <mkestner@novell.com>
16347
16348         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
16349         startup crashes on amd64.  There's other fixes needed.  All pinvoke
16350         usage of Atom needs to be mapped to IntPtr for example.  And there are
16351         likely other int/long issues to be addressed.
16352
16353 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
16354
16355         * FileDialog.cs: One more...
16356
16357 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16358
16359         * FileDialog.cs: Next try
16360
16361 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16362
16363         * FileDialog.cs: First part of fix for #77464
16364
16365 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16366
16367         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
16368           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
16369           AcceptButton border drawing.
16370
16371 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
16372
16373         * Form.cs: Moved positioning of form after auto scaling is applied,
16374           otherwise it would possibly use wrong form size.
16375
16376 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
16377
16378         * Control.cs (RecreateHandle): No need to re-create any child
16379           controls, the child windows will get destroyed automatically by
16380           the windowing system or driver, and re-created when the handle
16381           is being accessed the first time. Fixes #77456
16382         * Form.cs: No longer setting the form to closing if the handle is 
16383           being recreated. This seems like the right thing to do, don't
16384           have a bug or testcase for this, though.
16385
16386 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16387
16388         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
16389           controls to avoid unwanted side effects
16390
16391 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
16392
16393         * Control.cs: 
16394           - ScaleCore needs to scale the bounds, not the ClientSize of the 
16395             control. Fixes #77416.
16396           - DefaultSize is 0,0 for control
16397         * TextBoxBase.cs: 
16398           - DefaultSize is 100, 20
16399           - SetBoundsCore: Now enforcing the height, no matter if the provided
16400             height is more or less than the preferred one, as long as AutoSize
16401             is on
16402         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
16403
16404 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16405
16406         * Control.cs:
16407           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
16408             call unless both performLayout is true *and* we have a pending
16409             layout change
16410           - ResumeLayout: MS does not completely nest Suspend and Resume,
16411             they bottom out at 0, fixed our code to match that.
16412           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
16413             SetBoundsCore, we were updating even when we shouldn't. This fixes
16414             swf-anchors mis-anchoring when resizing the app fast and lots.
16415           - UpdateDistances: Now only setting the left and top distance if 
16416             we have a parent and are not suspended, this is based on
16417             a suggestion by Don Edvaldson in bug #77355.
16418           - OnVisibleChanged: Fixed logic when to create the control. We may
16419             not create the control if we have no parent or if it's not visible;
16420             switched to using Visible property instead of is_visible field 
16421             since the property also considers parent states. This fixes a bug
16422             when starting Paint.Net
16423
16424 2006-02-02  Jackson Harper  <jackson@ximian.com>
16425
16426         * Form.cs: If the forms handle hasn't been created yet don't call
16427         into xplatui to make it top most, just set the topmost flag on the
16428         form in CreateParams
16429         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
16430
16431 2006-02-01  Jackson Harper  <jackson@ximian.com>
16432
16433         * ScrollableControl.cs: Refactored the Recalculate method a
16434         little, this wasn't handling all the variants of bottom and right
16435         bars needed to be added and added/removed based on their
16436         counterparts being added/removed (which changes the drawable
16437         size). Also we special case client widths and heights of 0 and
16438         don't add the scrollbar for those.
16439
16440 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
16441
16442         * XplatUIX11.cs: 
16443           - Added method to get AbsoluteGeometry(); currently unused, but might
16444             be used in the future, if we try again to figure out toplevel
16445             coordinates with some more crappy window managers
16446           - Added FrameExtents() method to retrieve the WM set decoration size
16447           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
16448             to deal with at least KDE, FVWM and metacity (Fixes #77092)
16449         * Hwnd.cs: 
16450           - Added whacky_wm tracking var for metacity
16451           - Added logic to have default menu height if the actual menu height
16452             has not yet been calculated (part of fix for #77426)
16453         * Form.cs: Keep track whether client size has been set and re-set 
16454           it if a menu is added/removed afterwards (Fixes #77426)
16455
16456 2006-01-31  Jackson Harper  <jackson@ximian.com>
16457
16458         * Control.cs: When a new Site is set on the component attempt to
16459         pull the AmbientProperties from it.
16460
16461 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
16462
16463         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
16464           in the background of the owning form. Fixes #77332
16465
16466 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16467
16468         * MimeIcon.cs: Fix for #77409
16469
16470 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16471
16472         * XplatUIX11GTK.cs: Initial import
16473
16474 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
16475
16476         * FixedSizeTextBox: fixes class signature
16477
16478 2006-01-30  Jackson Harper  <jackson@ximian.com>
16479
16480         * FixedSizeTextBox.cs: New internal class that represents a
16481         textBox that will not be scaled.
16482         * TreeView.cs:
16483         * ComboBox.cs:
16484         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
16485         standard TextBox.
16486                 
16487 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
16488
16489         * XplatUIX11.cs: Retrieve default screen number instead of
16490           assuming 0. Attempted fix for #77318
16491
16492 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
16493
16494         * XplatUIWin32.cs: 
16495           - GetWindowPos: When a window is parented by FosterParent, use 
16496             the desktop instead of FosterParent as the base to get coordinates
16497           - CreateWindow: Don't make FosterParent the parent window for Popups
16498             if we don't want a taskbar entry, Popups automatically don't get one
16499         * Hwnd.cs: Need to call remove to actually remove the key from the
16500           hash table
16501
16502 2006-01-30  Mike Kestner  <mkestner@novell.com>
16503
16504         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
16505
16506 2006-01-30  Jackson Harper  <jackson@ximian.com>
16507
16508         * TreeView.cs:
16509         * TreeNode.cs: Raise events no matter how the treenode is
16510         checked. Patch by Don Edvalson.
16511
16512 2006-01-30  Jackson Harper  <jackson@ximian.com>
16513
16514         * TreeNode.cs: Signature fix.
16515
16516 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
16517
16518         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
16519
16520 2006-01-20  Mike Kestner  <mkestner@novell.com>
16521
16522         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
16523         event forwarding when menus are active.
16524         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
16525         Most of the patch is pdb's with a little rework.
16526
16527 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16528
16529         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
16530           Removed GetMenuDC and ReleaseMenuDC methods; replaced
16531           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
16532         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
16533         * InternalWindowManager.cs: Added use of PaintEventStart/End to
16534           handling of WM_NCPAINT message, now passing the PaintEventArgs to
16535           the PaintWindowDecorations method
16536         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
16537         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
16538         * MenuAPI.cs: Made tracker window invisible
16539         * XplatUIWin32.cs:
16540           - Removed GetMenuDC and ReleaseMenuDC methods
16541           - Implemented the client=false path for PaintEventStart and
16542             PaintEventEnd
16543
16544 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16545
16546         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
16547         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
16548           styles
16549         * Form.cs: 
16550           - MaximizeBox, MinimizeBox: Recreate the handle when setting
16551             the style
16552           - CreateParams: Reworked the styles to match MS look'n'feel,
16553             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
16554             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
16555
16556 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16557
16558         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
16559           window is not mapped, since otherwise every form that's being 
16560           created is considered minimized, which is wrong.
16561         * Form.cs: Catching the exception and returning our internal value
16562           instead
16563
16564 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16565
16566         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
16567           SetWindowMinMax() to have means to tell the driver about the minimum,
16568           maximum and maximized state window sizes. (Part of the fix for #76485)
16569         * Form.cs:
16570           - Implemented tracking of minimum and maximum window size, now calling
16571             new SetWindowMinMax() driver method to tell the driver (Part of the
16572             fix for #76485)
16573           - Finished handling of WM_GETMINMAXINFO method, now setting all values
16574             (Completes fix for #76485)
16575           - Calling new SetWindowMinMax driver method when the handle for a 
16576             form is created, to make sure the driver knows about it even if
16577             the values have been set before the window was created
16578           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
16579             to avoid messing up our anchoring calculations (partial fix
16580             for #77355)
16581         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
16582         * XplatUIX11.cs:
16583           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
16584           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
16585             (and presumably other freedesktop.org compliant WMs). Left the
16586             assumption unmapped=minimized, needed for SetVisible to work.
16587           - Now setting the window state when creating windows
16588           - Fixed SetVisible to consider/set the window state when mapping
16589             a Form. We cannot set the state before it's mapped, and we cannot
16590             use Form.WindowState once it's mapped (since it would ask the
16591             driver and get 'normal'. Therefore, we grab the state before
16592             mapping, map, and then set state.
16593           - Implmemented SetWindowMinMax method; Metacity does not seem to
16594             honor the ZoomHints, though.
16595         * XplatUIWin32.cs:
16596           - Removed MINMAXINFO (moved to XplatUIStructs)
16597           - Added SetWindowMinMax stub (on Win32 the only way to set that
16598             information is in response to the WM_GETMINMAXINFO message, which
16599             is handled in Form.cs)
16600           - Added logic to SetVisible to set the proper window state when a 
16601             form is made visible (fixes #75720)
16602
16603 2006-01-26  Jackson Harper  <jackson@ximian.com>
16604
16605         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
16606         same way we handle them with Invoke.
16607
16608 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
16609
16610         * Form.cs:
16611           - Added tracking of window state so CreateParams can return
16612             the appropriate style
16613           - Moved setting of WS_CAPTION style in CreateParams to allow
16614             styles without caption
16615         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
16616           control if the TextBox property is accessed. Fixes #77345
16617         * Control.cs:
16618           - get_Created: now uses is_disposed and is_created to determine
16619             return value (suggested by Jackson)
16620           - CreateHandle: No longer exits if the handle is being recreated
16621           - RecreateHandle: If the handle is not yet created call the 
16622             appropriate method to create either control or handle. If the
16623             control is already created CreateHandle will simply exit instead
16624             of just creating the handle
16625         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
16626           now SendMessage WM_DESTROY directly to the control when DestroyWindow
16627           is called.
16628         * XplatUIX11.cs: 
16629           - When DestroyWindow is called, instead of waiting for the 
16630             DestroyNotification from X11, we directly post it to the WndProc
16631             and immediately dispose the hwnd object.
16632             Same applies to DestroyChildWindows, and this obsoletes the
16633             expose_pending tracking. Contrary to Win32 behaviour we destroy our
16634             child windows before our own, to avoid X11 errors.
16635           - Removed the direct sending of WM_PAINT on UpdateWindow
16636         * XplatUIWin32.cs:
16637           - Reworked DoEvents and GetMessage to allow access to internal queue
16638             even when trying non-blocking access to the queue.  Fixes #77335. 
16639             Based on a patch suggestion by Don Edvalson. The new private
16640             GetMessage can now also be used as a backend for a PeekMessage
16641             frontend version.
16642         * XplatUI.cs: Improved debug output for CreateWindow
16643
16644 2006-01-25  Jackson Harper  <jackson@ximian.com>
16645
16646         * Help.cs: Allow param to be null. Patch by Don Edvalson.
16647
16648 2006-01-24  Jackson Harper  <jackson@ximian.com>
16649
16650         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
16651         when we have a MaxDropItems lower then the selected index.
16652
16653 2006-01-24  Jackson Harper  <jackson@ximian.com>
16654
16655         * Control.cs: Don't allow selection of non visible controls, allow
16656         selection of controls without parents.
16657
16658 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16659
16660         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
16661         * DataGridDrawingLogic.cs: Add editing row only when is necessary
16662
16663 2006-01-23  Jackson Harper  <jackson@ximian.com>
16664
16665         * UpDownBase.cs: Make the textbox handle all the selection and
16666         tabbing. This fixes tabing to updown controls.
16667
16668 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16669
16670         * TextBoxBase.cs: fixes exception thown the object was null
16671
16672 2006-01-23  Jackson Harper  <jackson@ximian.com>
16673
16674         * ButtonBase.cs: Just use the base CreateParams. They set
16675         visibility and enabled correctly.
16676         * ComboBox.cs:
16677         * TrackBar.cs:
16678         * MonthCalendar.cs: Lets let the base set as much of the
16679         createparams as possible so we don't have duplicate code all over
16680         the place.
16681
16682 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
16683
16684         * ThemeGtk.cs: Added TrackBar and some experimental code to
16685           get double buffering back
16686
16687 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
16688
16689         * DataGrid.cs: Allows row number set internally higher than the last
16690         when creating a new row. Restores the editing functionality.
16691
16692 2006-01-20  Mike Kestner  <mkestner@novell.com>
16693
16694         * MimeIcon.cs: delay Image creation until the icons are accessed
16695         instead of creating 190 scaled images on GnomeHandler startup.
16696
16697 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
16698
16699         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
16700           first call base before processing the event. Fixes #77279
16701
16702 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
16703
16704         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
16705           that the stride for the GDI bitmap would match the stride of
16706           a DIB or a Cursor.
16707
16708 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
16709
16710         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
16711
16712 2006-01-19  Jackson Harper  <jackson@ximian.com>
16713
16714         * ComboBox.cs: Hookup the text controls keydown event so we get
16715         those when the text control has the focus.
16716
16717 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16718
16719         * Label.cs: Now using the base events instead of defining new ones;
16720           this allows us to just call the base properties without having to
16721           duplicate all base property logic 
16722
16723 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16724
16725         * Label.cs: A label by default is not a tabstop (Fixes one of our
16726           failing nunit tests)
16727
16728 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16729
16730         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
16731         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
16732
16733 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16734
16735         * Cursor.cs: Reimplemented creating cursor bitmaps without using
16736           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
16737           This fixes #77218
16738         * XplatUIWin32.cs: 
16739           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
16740             constructor creates images that can't be saved. Part of the fix
16741             for #76103
16742           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
16743           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
16744             bug fix for handling window state in forms properly)
16745
16746 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16747
16748         * ThemeGtk.cs: Simplify ScrollBar drawing
16749
16750 2006-01-18  Jackson Harper  <jackson@ximian.com>
16751
16752         * Splitter.cs: Set the default dock style for the splitter control
16753         in the constructor.
16754
16755 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16756
16757         * ThemeGtk.cs: Corrected StateType and ShadowType for
16758           gtk_paint_box
16759
16760 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16761
16762         * Control.cs: Make use of Theme.DoubleBufferingSupported
16763         * ThemeGtk.cs:
16764           - Added drawing for flat style buttons
16765           - Added ScrollBar drawing
16766
16767 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16768
16769         * ThemeClearlooks.cs: Removed some unneeded code.
16770         * ThemeGtk.cs: First part of ThemeGtk enhancements.
16771
16772 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16773
16774         * LinkLabel.cs: We need to update the hover drawing when
16775           leaving the control as well.
16776
16777 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
16778
16779         * DataGrid.cs: Clicking on non empty areas in the columns
16780            area was giving an exception
16781
16782 2006-01-17  Jackson Harper  <jackson@ximian.com>
16783
16784         * ThemeWin32Classic.cs:
16785         * ListView.cs: Do not draw/clip the headers when the header style
16786         is None.
16787
16788 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16789
16790         * DataGrid.cs: Fixes 77260
16791         
16792 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16793
16794         * DataGrid.cs: Clicking on a column on a empty grid was giving
16795           an exception
16796
16797 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16798
16799         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
16800           or any keypress will crash the grid.
16801
16802 2006-01-17  Mike Kestner  <mkestner@novell.com>
16803
16804         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
16805         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
16806         invisible/previously-visible items.
16807         [Fixes #76909]
16808
16809 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
16810
16811         * ThemeClearlooks.cs:
16812         - Added CL_Draw_Button method; now other theme controls that are 
16813           not derived from button or do not have a button can draw buttons
16814           too
16815         - Updated ComboBox drawing
16816         - Beautified RadioButton drawing
16817         - Corrected drawing of bottom and left tabs
16818         - Beautified DateTimePicker and MonthCalendar
16819         - Added CPDrawButton and CPDrawRadioButton
16820
16821 2006-01-16  Jackson Harper  <jackson@ximian.com>
16822
16823         * ComboBox.cs: Set the initial value of the scrollbar to the
16824         current index. Reduce the numbers of refreshs and IndexOfs called.
16825
16826 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
16827
16828         * FileDialog.cs: When the file listview is focused hitting the
16829           backspace key moves the fileview to the parent directory
16830
16831 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16832
16833         * Form.cs: 
16834           - Added RecreateHandle call when changing taskbar visibility to 
16835             trigger reparenting in Win32 driver (Fixes #75719)
16836           - If a window has minimize or maximize buttons, it cannot have
16837             a help button
16838         * XplatUIWin32.cs:
16839           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
16840             the toplevel form with FosterParent (A toolwindow not on the
16841             taskbar) (Fixes #75719)
16842           - Made FosterParent a toolwindow
16843
16844 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16845
16846         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
16847
16848 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16849
16850         * ToolTip.cs: If SetToolTip is called from a control and the mouse
16851           is currently over that control, make sure that tooltip_window.Text
16852           gets updated
16853
16854 2006-01-13  Mike Kestner  <mkestner@novell.com>
16855
16856         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
16857
16858 2006-01-13  Jackson Harper  <jackson@ximian.com>
16859
16860         * TreeView.cs: On MS GetNodeAt never actually factors in the X
16861         value passed.  Also redraw the selected node when we recieve
16862         focus, so tabbing between trees works correctly.
16863
16864 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16865
16866         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
16867           ~/.gconf/%gconf-tree.xml, so use
16868           .gconf/desktop/gnome/interface/%gconf.xml
16869
16870 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16871
16872         * TextControl.cs: Draw text in gray if control is disabled
16873
16874 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16875
16876         * TreeView.cs: Draw the focus rectangle outside the highlight, to
16877           make sure it's always visible. Fixes #76680.
16878
16879 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16880
16881         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
16882
16883 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
16884
16885         * PageSetupDialog.cs: Added.
16886         * PrintDialog.cs: Attributes.
16887         * PrintPreviewControl.cs: Updates.
16888         * PrintPreviewDialog.cs: Updates.
16889         
16890 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16891
16892         * Control.cs: Undid my selection check fix, since it's not needed
16893         * TextBoxBase.cs:
16894           - Now considering the presence of hscroll/vscroll when sizing
16895             vscroll/hscroll respectively. Fixed bug #77077
16896           - Added Left/Up/Down/Right to IsInputKey list to prevent
16897             ContainerControl from stealing them. This fixes what I broke
16898             with my last checkin.
16899
16900 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
16901
16902         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
16903           I finally understand how the property can be set without a setter :-)
16904
16905 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16906
16907         * Application.cs:
16908           - Switched RunLoop to use static Message.Create to create a 
16909             Message object
16910           - Added PreProcessMessage call in runloop for keyboard events; this
16911             is part of the fix for #77219, I overlooked this originally in the
16912             MSDN doc for PreProcessMessage
16913         * Control.cs:
16914           - Removed call to PreProcessMessage from handling of keyboard 
16915             messages; it's supposed to be done in the message pump
16916           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
16917             per MSDN documentation.
16918           - IsInputChar: All chars are input chars by default; removed the 
16919             parent calling chain, MS does not document that
16920           - PreProcessMessage: If IsInputChar is true, we want to return false
16921             to allow dispatching of the message
16922           - When selecting the next control, now also check that we're not
16923             selecting ourselves again and therefore return a false positive.
16924         * TextBoxBase.cs:
16925           - Tried to match return values for IsInputKey and ProcessDialogKey
16926             to what MS returns; moved processing of our special keys outside
16927             ProcessDialogKey since MS does not seem to return true on those.
16928           - Moved code that previously was in ProcessDialogKey into new private
16929             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
16930           - Reworked handling of WM_CHAR to not have to duplicate code from
16931             Control.cs anymore, instead we simply call down to base.
16932            
16933 2006-01-12  Jackson Harper  <jackson@ximian.com>
16934
16935         * ComboBox.cs: We always need to refresh the text area when
16936         EndUpdate is called. Fixes the combobox in the file dialog.
16937         * Control.cs: Don't create the creator_thread until the controls
16938         handle is created.  Also in InvokeRequired we check if the
16939         creator_thread is null. This gives the effect of InvokeRequired
16940         returning true if the controls handle is not created yet, and
16941         matches MS.
16942
16943 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16944
16945         * XplatUI.cs:
16946           - Added StartLoop() driver method. This is used to allow drivers to
16947             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
16948             loop for a particular thread
16949           - Added EndLoop() driver method. This is called once the message
16950             pump for the thread is shut down
16951           - Added SupportsTransparency method to allow the driver to indicate
16952             opacity support for windows
16953         * Form.cs:
16954           - Removed TODO attribute, completed AllowTransparency property
16955           - Added documented logic to Opacity
16956         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
16957           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
16958           versions of CompatibleTextRendering
16959         * X11Structs.cs: Added opacity atom to our atom enumeration
16960         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
16961           of a form might be set before it's reparented by the WM, and we need
16962           the opacity value without calling up to Form)
16963         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
16964           SupportsTransparency() driver methods
16965         * Application.cs: Now calling StartLoop and EndLoop driver methods
16966         * XplatUIX11.cs:
16967           - Added opacity atom registration
16968           - Added StartLoop()/EndLoop() methods. They're empty right now but
16969             will need to get implemented when we switch to a per-thread queue
16970           - Implemented SupportsTransparency() method
16971           - Implemented SetWindowTransparency() method
16972           - Added support for setting the opacity value when a window is
16973             reparented (since the opacity needs to be set on the WM frame)
16974         * XplatUIOSX.cs, XplatUIWin32.cs:
16975           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
16976
16977 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16978
16979         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
16980
16981 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16982
16983         * FileDialog.cs: Added ToolTip for MWFFileView
16984         * MimeIcon.cs: Rewrote GnomeHandler.
16985           - Get currently used gnome icon theme from
16986             ($HOME)/.gconf/%gconf-tree.xml
16987           - Make use of inherited icon themes
16988           - Support SVG icon themes like Tango via librsvg
16989
16990 2006-01-12  Miguel de Icaza  <miguel@novell.com>
16991
16992         Revert's Jackson's revert which broke 2.0 builds.   Fix both
16993         builds. 
16994         
16995         * Application.cs: Move the use_compatible_text_rendering outside
16996         the NET_2_0 define.  If we ever need to use the
16997         use_compatible_text_rendering on the individual controls they will
16998         access the variable from the common shared code paths.
16999
17000 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
17001
17002         * XplatUI.cs:
17003           - Added more granular debug options
17004           - Added method to print both window text and id
17005           - Switched debug output to use new Window() debug method
17006           - Added IsEnabled() driver method
17007           - Added EnableWindow() driver method
17008         * Form.cs:
17009           - Removed end_modal; no longer needed, new loop handles termination
17010             via 'closing' variable
17011           - If form is modal, setting DialogResult will now initiate loop
17012             termination via 'closing' variable
17013           - Added support for is_enabled/WS_DISABLED to CreateParams
17014           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
17015             does all the work
17016           - Removed code that's now in RunLoop from ShowDialog()
17017           - Added various documented sanity checks to ShowDialog()
17018           - Added handling of WM_DESTROY message; we set 'closing' on getting
17019             the message to indicate the message pump to terminate
17020           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
17021             send by the Application.ExitThread method. (We send the message
17022             to destroy the window after all other events have been
17023             processed through the queue, instead of destroying the handle 
17024             directly)
17025           - Moved code from Close() method to WM_CLOSE handler; added logic
17026             to only send close-related events if the form is not displayed
17027             modal
17028         * Splitter.cs (..ctor): Fixed typo in resource name
17029         * Control.cs:
17030           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
17031             brush now
17032           - set_Cursor: Now only setting calling into XplatUI if the handle for
17033             the control is already created; this avoids implict handle creation
17034             or crashes if it's not created
17035           - set_Enabled: Now setting the enabled state via the new driver method
17036             instead of just tracking it
17037           - CreateParams: Added logic to set WS_DISABLED based on enabled state
17038           - CreateControl: Reordered event firing and method calls to more
17039             closely fire events in the order MS does. Now setting the
17040             enabled state in the driver when creating the control.
17041           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
17042             match MS order
17043         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
17044           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
17045         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
17046         * Hwnd.cs:
17047           - Added tracking of window enabled state (get_Enabled/set_Enabled)
17048           - Added EnabledHwnd property to easily allow a driver to find the
17049             handle of the first enabled window in the parent chain (this is
17050             used by drivers to pass up input events of disabled windows)
17051         * XplatUIDriver.cs: Added IsEnabled() method
17052         * Application.cs:
17053           - Removed crude and obsolete exiting tracking variable
17054           - Removed internal ModalRun(); replaced by RunLoop()
17055           - Implemented private CloseForms() method to allow closing all 
17056             windows owned by a particular (or all) threads
17057           - Exit() now properly closes all windows without forcing the message
17058             pump to quit
17059           - Removed obsolete InternalExit() method
17060           - Changed Run() methods to use new RunLoop() message pump
17061           - Implemented new RunLoop() method for both modal and non-modal forms
17062         * CommonDialog.cs:
17063           - get_CreateParams: Added setting of WS_DISABLED
17064           - Simplified ShowDialog(); now all the work is done in RunLoop(),
17065             invoked via Form.ShowDialog()
17066         * NativeWindow.cs: We don't remove the window from the collection when
17067           the handle is destroyed; there might still be messages for it in the
17068           queue (mainly the resulting WM_DESTROY); instead it will be removed
17069           when Control calls InvalidateHandle in the WM_DESTROY handler
17070         * XplatUIX11.cs:
17071           - CreateWindow: Added logic to handle the WS_DISABLED window style
17072           - EnableWindow: Implemented based on Hwnd.Enabled
17073           - GetMessage: Reset PostQuitState so the method can be called again
17074           - Implemented support for disabled windows (passing messages to the
17075             first enabled parent) in handling all input messages
17076           - Added optimizations for handling Expose events
17077           - Implemeted new driver method IsEnabled()
17078           - Now always resetting paint pending tracking vars when we start paint
17079           - Re-implemented UpdateWindow via just sending a WM_PAINT message
17080         * XplatUIOSX.cs: Added IsEnabled method stub
17081         * XplatUIWin32.cs: Implemented new IsEnabled() method
17082
17083 2006-01-11  Jackson Harper  <jackson@ximian.com>
17084
17085         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
17086         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
17087         variables a little.
17088         * ColorDialog.cs: Clear out the old form before adding the new
17089         panel.  
17090
17091 2006-01-11  Jackson Harper  <jackson@ximian.com>
17092
17093         * X11Dnd.cs: Make sure to add all the text formats when adding
17094         strings to the data object.
17095         * TreeNodeCollection.cs: When adding to a sorted tree we need to
17096         do some redrawing too.  Also change the UpdateNode to an
17097         UpdateBelow so the newly added node gets painted.
17098         
17099 2006-01-11  Miguel de Icaza  <miguel@novell.com>
17100
17101         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
17102         LinkLabel.cs, PropertyGrid.cs: Implement the
17103         UseCompatibleTextRendering property for 2.x
17104
17105         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
17106
17107 2006-01-11  Jackson Harper  <jackson@ximian.com>
17108
17109         * TreeView.cs: Use the property for setting the selected node so
17110         the correct events get raised.
17111         * TreeNode.cs: Update the tree when the fore/back colours of a
17112         node are set.
17113
17114 2006-01-10  Jackson Harper  <jackson@ximian.com>
17115
17116         * TreeView.cs: Allow setting SelectedNode to null.
17117
17118 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17119
17120         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
17121
17122 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17123
17124         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
17125
17126 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17127
17128         * PrintDialog.cs: Added attributes and set default property values.
17129
17130 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17131
17132         * PrintControllerWithStatusDialog.cs: 
17133         Added PrintControllerWithStatusDialog.
17134
17135 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17136
17137         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
17138         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
17139
17140 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17141
17142         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
17143
17144 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
17145
17146         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
17147         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
17148
17149 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
17150
17151         * MimeIcon.cs: Added internal class SVGUtil.
17152
17153 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
17154
17155         * FileDialog.cs: Don't crash if there are two files with the
17156           same name but different locations.
17157
17158 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
17159
17160         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
17161         dates across multiple month grids. Used to not highlight entire 
17162         month, but does now.
17163         
17164 2006-01-06  Jackson Harper  <jackson@ximian.com>
17165
17166         * MonthCalendar.cs: Removed DoEvents call to prevent a running
17167         message loop. Change timer intervals to numbers that seem more
17168         natural.
17169
17170 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
17171
17172         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
17173           object for location info since screen object is now implemented.
17174
17175 2006-01-05  Jackson Harper  <jackson@ximian.com>
17176
17177         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
17178         * AsyncMethodResult.cs: We no longer use a WeakReference for the
17179         AsyncMethodResult, this is because we ALWAYS want the
17180         ManualResetEvent to get set.
17181         * Control.cs: When disposing use an async invoke to call shutdown
17182         code, so that thigns don't block on the finalizer thread.  Also
17183         check if we even have a message loop before trying to send
17184         messages, if we don't then don't bother sending messages.
17185         - No more weak references for async methods
17186         * XplatUIDriver.cs: No more weak references for async methods.
17187
17188 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17189
17190         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
17191           returns two FontFamily with the same name
17192
17193 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
17194
17195         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
17196           drawing disabled text. Instead using the ColorGrayText color
17197
17198 2006-01-04  Jackson Harper  <jackson@ximian.com>
17199
17200         * TreeNode.cs: redraw the node when its image index is changed.
17201
17202 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
17203
17204         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
17205           time I checked there are no others like it.
17206
17207 2006-01-04  Jackson Harper  <jackson@ximian.com>
17208
17209         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
17210         this gives the behavoir I was looking for.
17211         * Control.cs: Special case Invoking EventHandlers, this matches MS
17212         and fixes part of bug #76326.
17213
17214 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17215
17216         * ThemeClearlooks.cs, FileDialog.cs:
17217           - Reflect the latest Theme class changes
17218           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
17219             with DateTime
17220             
17221 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17222
17223         * Theme.cs: Cache UI resource images and resize them if needed
17224
17225 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
17226
17227         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
17228           is called. This fixes the crash in Nexxia when setting the font
17229           attributes in the chat. [However, RTF needs a look-over to make sure
17230           that all SelectionXXX methods handle the special case that selection
17231           is empty and therefore the change must be applied to all text starting
17232           at the cursor/selection start]
17233
17234 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
17235
17236         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17237           XplatUIOSX.cs: Added SendMessage and PostMessage methods
17238         * X11Keyboard.cs: Switched to new way of calling PostMessage
17239
17240 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
17241
17242         * Theme.cs: Added theme interface for images to allow the theme to
17243           control what images are used for things like FileDialog, MessageBox
17244           icons, etc.
17245         * MessageBox.cs: Now uses the new Theme icon/image interfaces
17246
17247 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
17248
17249         * FileDialog.cs:
17250           - Removed some dead code
17251           - Opening a recently used file does work now
17252           - Small UI enhancements
17253           - Refactoring
17254
17255 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
17256
17257         * FileDialog.cs: Forgot too add __MonoCS__
17258
17259 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
17260
17261         * FileDialog.cs: We are able to read recently used files now let's
17262           go on and write them.
17263
17264 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
17265
17266         * FileDialog.cs: Breathe some life into "last open"/"recently used"
17267           button
17268         * MimeIcon.cs: Do a check for the top level media type also
17269
17270 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
17271
17272         * ThemeClearlooks.cs:
17273           - Added CPDrawStringDisabled
17274           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
17275             some chars if the text doesn't fit into text_rect
17276           - DrawListViewItem: If View = View.LargeIcon center the image;
17277             rewrote the drawing of ListViewItem.Text if View = 
17278             View.LargeIcon
17279
17280 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
17281
17282         * MimeIcon.cs: Use default KDE icon theme if there is no
17283           "48x48" directory for the current icon theme, fixes #77114
17284         * Mime.cs: Disable not working and actually not used code. 
17285         * ThemeWin32Classic.cs:
17286           - Replace "new SolidBrush" in GetControlBackBrush and
17287             GetControlForeBrush with ResPool.GetSolidBrush
17288           - Changed DrawListViewItem from private to protected virtual
17289         * FileDialog.cs:
17290           - Added form.MaximizeBox = true
17291           - Don't throw an exception if there is a broken symbolic link
17292
17293 2005-12-23  Jackson Harper  <jackson@ximian.com>
17294
17295         * TabControl.cs: Give the panels focus, keyboard navigation is
17296         fixed so this works correctly now.
17297         - We need these key events also.
17298         * ToolBar.cs: Remove some of the poor mans double buffering.
17299         
17300 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
17301
17302         * ComboBox.cs: The internal TextBox now returns the focus.
17303
17304 2005-12-23  Jackson Harper  <jackson@ximian.com>
17305
17306         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
17307
17308 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17309
17310         * Control.cs: Removed debug code
17311         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
17312           implicit children
17313
17314 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
17315
17316         * Control.cs: When creating the control, update the Z-order after
17317           all it's children are created, too. (Fixes nexxia not showing
17318           picturebox bug)
17319
17320 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17321
17322         * Control.cs: Do not update the anchoring distances if layout is
17323           suspended, instead do it once layout is resumed
17324
17325 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
17326
17327         * Control.cs: 
17328           - After many hours of debugging, for both Jackson and
17329             myself, it turns out that it helps to set the parent of a control
17330             if you want to actually see it onscreen. In the spirit of that
17331             discovery, we're now setting the parent of the control and
17332             it's children when the control's handle is created. This fix
17333             will make Lutz Roeder's Reflector run happily. 
17334           - now just creating the handle instead of the whole control when
17335             getting a graphics context for the control.
17336
17337 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17338
17339         * ScrollableControl.cs: When calculating the canvas, don't consider
17340           the scrollbar widths. Instead, predict if horizontal scrollbar
17341           will affect canvas when deciding on vertical display and vice versa.
17342
17343 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17344
17345         * RichTextBox.cs: Set default RTF font for documents that don't
17346           have a font table (Fixes #77076)
17347
17348 2005-12-22  Jackson Harper  <jackson@ximian.com>
17349
17350         * TextBoxBase.cs: It's difficult to do, but you can have an empty
17351         clipboard. This prevents a NullRef in that case.
17352         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
17353         clipboard. PRIMARY is for the currently selected text only. (We
17354         should implement PRIMARY at some point.
17355
17356 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17357
17358         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
17359           a Unicode function with a structure that was defined in Ansi way.
17360           This fixes #76942.
17361
17362 2005-12-21  Jackson Harper  <jackson@ximian.com>
17363
17364         * StatusBar.cs: Statusbar handles its fore/back colours on it's
17365         on. Because thats how it rolls. (and this avoids it using ambient
17366         colours).
17367         * ThemeWin32Classic.cs: Use the proper back color for filling.
17368         * Menu.cs: Use the system menu bar color for drawing menu
17369         bars. Using the window back color will bring ambient colours into
17370         the picture.
17371
17372 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
17373
17374         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
17375           Bitmaps were created and not disposed.
17376
17377 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17378
17379         * Control.cs (CreateControl): Don't do anything if the control is
17380           already created, otherwise we'd fire the OnCreated event more than
17381           once
17382
17383 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17384
17385         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
17386           will always match. Instead return -1. Fixes #76464.
17387
17388 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17389
17390         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
17391           neither the beginning nor the end of the line (Fixes bug #76479)
17392
17393 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17394
17395         * Control.cs:
17396           - ControlNativeWindow.ControlFromHandle(): Now handling situation
17397             where handle is invalid
17398           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
17399             instead of slower linear search
17400         * NativeWindow.cs: Don't remove the window from the hashtable until
17401           after the driver has destroyed it (since the driver might use
17402           Control.FromHandle to lookup the control object
17403         * Hwnd.cs: Added DestroyPending property to track if a window is 
17404           already destroyed as far as the driver is concerned and only hasn't
17405           yet notified the control
17406         * XplatUIX11.cs:
17407           - Activate(): Check if the window is still valid before using the 
17408             handle
17409           - Implemented DestroyChildWindow() method to mark child windows as
17410             destroyed when a window is destroyed. This prevents situations 
17411             where we might call an X method based on queued events for a
17412             window that already has been destroyed but we haven't yet pulled
17413             the destroy method from the queue.
17414           - Added a call to the new DestroyChildWindow() method to the drivers
17415             DestroyWindow code. Also now marking the destroyed window itself
17416             as pending
17417
17418 2005-12-20  Jackson Harper  <jackson@ximian.com>
17419
17420         * StatusBar.cs:
17421         * StatusBarPanel.cs: Don't calculate panel sizes on draw
17422         anymore. Just do them when needed, also track the rects of panels
17423         so that we can optimize refreshing more in the future.
17424
17425 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
17426
17427         * ColorDialog.cs: Fixed focus drawing in small color controls
17428
17429 2005-12-19  Jackson Harper  <jackson@ximian.com>
17430
17431         * InternalWindowManager.cs:
17432         * MdiWindowManager.cs: Cleanup some coordinate system changes so
17433         moving windows works properly.
17434
17435 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
17436
17437         * Control.cs: 
17438           - Removed call to InitLayout() from SetBoundsCore(); doc says
17439             it's only called when a control is added to a container
17440           - Split InitLayout logic, moved to separate UpdateDistances() method
17441             since we need to perform those calculations more often than just
17442             when adding the control to a container. (Needed to fix #77022)
17443           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
17444           - Reduced the OnBindingContextChanged events count, don't send them
17445             unless the control is created, we still aren't totally matching
17446             MS, but I can't quite figure out some of their rules
17447
17448 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17449
17450         * ThemeClearlooks.cs: Corrected distance between ProgressBar
17451           stripes
17452
17453 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17454
17455         * ThemeClearlooks.cs:
17456           - Updated ProgressBar drawing
17457           - Corrected drawing of ScrollBars and scroll buttons
17458           - Some temporary fixes for minor pixel artefacts
17459
17460 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
17461
17462         * Control.cs:
17463           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
17464             cause events to be sent in the same order as MS does.
17465           - Added ChangeParent() method to trigger various OnXXXChanged events
17466             that need to be fired when a parent changes (This is a reworking
17467             of the patch from r54254, with the X11 errors fixed)
17468           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
17469             since on MS we get OnLayoutChanged events when calling Clear()
17470           - Changed Enabled property to consider parent state as well, if a
17471             parent is not enabled, the control will not be either
17472           - Changed Parent property to simply call Controls.Add() since that
17473             now does all the work required, this way we avoid code duplication
17474           - Threw in a few OnBindingsContextChanged calls to try and match
17475             when MS sends them. We seem to send a few too many, though.
17476           - Added call to CreateControl when adding the control to a parent.
17477             We were never calling CreateControl. Still needs some work, in
17478             some places we treat HandleCreated and ControlCreated as equal, 
17479             which is wrong
17480           - Removed obsolete commented out code from UpdateZOrder()
17481
17482 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17483
17484         * ThemeClearlooks.cs: Updated TrackBar drawing.
17485
17486 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17487
17488         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
17489
17490 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17491
17492         * FileDialog.cs: Add the Help button and the open readonly
17493           checkbox only if needed
17494
17495 2005-12-16  Jackson Harper  <jackson@ximian.com>
17496
17497         * Control.cs: Make sure we have an active menu before trying to
17498         process commands on it. Prevents menu-less forms from crashing
17499         when Alt is pressed.
17500         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
17501         Dieter Bremes.
17502         * RichTextBox.cs: Expand statement to help out gmcs and fix the
17503         2.0 build.
17504
17505 2005-12-16  Jackson Harper  <jackson@ximian.com>
17506
17507         * InternalWindowManager.cs: Don't translate tool windows screen
17508         coordinates. This fixes windows 'bouncing' around when being moved.
17509
17510 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17511
17512         * TextBoxBase.cs:
17513           - MaxLength now treats 2^31-1 equal to unlimited length (this is
17514             not quite MS compatible, MS uses that number only for single line
17515             and 2^32-1 for multi-line, but I figure it won't hurt keeping
17516             the limit at 2GB)
17517           - Now enforcing the MaxLength limit when entering characters
17518           - Added argument to internal Paste() method to track if it's called
17519             from programatically or via keyboard, since keyboard driven pastes
17520             need to enforce max-length
17521           - Added logic to Paste to only paste as many chars as MaxLength 
17522             allows
17523         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
17524         * TextControl.cs:
17525           - Added Length property to return number of characters in document
17526           - Added private CharCount property which only tracks actual chars
17527             in the document (no linefeeds) and fires event when CharCount
17528             changes
17529           - Added tracking of character count to all methods that alter it
17530           - Added LengthChanged event to allow applications to subscribe
17531             to any changes to the document
17532
17533 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17534
17535         * TextBox.cs: 
17536           - Removed local password_char field (moved to TextBoxBase)
17537           - Now setting the document's password var when password is
17538             set
17539         * TextBoxBase.cs:
17540           - Added password_char field (needed here so MultiLine can
17541             access it)
17542           - Added logic to MultiLine property setter to set the document's
17543             variable when password display is allowed
17544           - Removed debug code and made some debug code conditional
17545         * TextControl.cs:
17546           - Added RecalculatePasswordLine() method to handle special password
17547             char only lines
17548           - Added PasswordChar property, also added related tracking vars
17549           - Draw() method now uses local text var for grabbing text to draw,
17550             this var is set to line.text unless we're doing password display,
17551             then it is set to the pre-generated all-password-chars line
17552           - Added calling RecalculatePasswordLine() method for password lines
17553
17554 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17555
17556         * Hwnd.cs: 
17557           - Added Reparented property to allow tracking of Window Manager
17558             reparenting actions (which affect X/Y calculations of toplevel 
17559             windows)
17560           - Made ToString() print window handles in hex
17561         * XplatUIX11.cs:
17562           - AddConfigureNotify(): Now uses reparented state off Hwnd to
17563             determine if X/Y needs offsetting
17564           - AddConfigureNotify(): Fixed offset calculations
17565           - Now adds ReparentNotify messages into the queue
17566           - Now processes ReparentNotify messages and causes a 
17567             WM_WINDOWPOSCHANGED message to be sent upstream if a window
17568             is reparented (as most likely it's X/Y coordinates are changed
17569             due to that)
17570
17571 2005-12-14  Jackson Harper  <jackson@ximian.com>
17572
17573         * XplatUIX11.cs: Tool windows still need to respek focus.
17574
17575 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17576
17577         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
17578           have a working release
17579
17580 2005-12-13  Jackson Harper  <jackson@ximian.com>
17581
17582         * Form.cs: Update styles after setting the border style regardless
17583         of whether or not the window is using a window manager.
17584
17585 2005-12-13  Jackson Harper  <jackson@ximian.com>
17586
17587         * Form.cs: We now hook into an internal window manager instead of just an
17588         MDI subsystem, this is so we can have properly behaving tool windows.
17589         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
17590         * InternalWindowManager.cs: New internal class that acts as a
17591         window manager for tool windows and as a base for mdi windows.
17592         * MdiWindowManager.cs: New class that acts as a window manager for
17593         mdi windows.
17594
17595 2005-12-12  Jackson Harper  <jackson@ximian.com>
17596
17597         * Control.cs: Updates so we match behavoir for for implicit
17598         controls. Fixes explosions in MDI.
17599
17600 2005-12-12  Jackson Harper  <jackson@ximian.com>
17601
17602         * Control.cs: Implement Invalidate (Region).
17603
17604 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
17605
17606         * Control.cs: 
17607           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
17608             the same events as MS does. MS fires events for each property 
17609             except, for unknown reasons, Cursor, when the control is reparented. 
17610             I can't seem to totally match add/remove since MS also fires some 
17611             VisibleChanged events, which makes no sense. Consolidated the
17612             parenting code into a separate method so it can be called from
17613             both Add and Remove. set_Parent no longer needs any special logic
17614             as it calls the parent's add method which implicitly fires
17615             all events
17616           - Removed some obsolete code and debug output
17617           - Enabled state is inherited from parents, if this is enabled
17618
17619 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
17620
17621         * Form.cs: Removed commented out code
17622
17623 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
17624
17625         * Control.cs:
17626           - Added internal version of Invoke, with additional argument 
17627             indicating if we're calling it from a Dispose() handler. That
17628             way we can avoid BeginInvoke throwing an exception if we're
17629             calling for an already destroyed window.
17630           - Added a dispose argument to BeginInvokeInternal, and made the
17631             check if a valid window handle chain exists conditional on
17632             it not being a dispose call
17633           - Removed code in DestroyHandle to destroy our children. Since we
17634             now handle the WM_DESTROY message we will catch all our children
17635             being destroyed.
17636           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
17637         * Form.cs:
17638           - Added a field to track the application context of the form.
17639           - No need to set closing variable as response to WM_CLOSE, instead
17640             we destroy the window. We also call PostQuitMessage if the form
17641             has an application context (which makes it the main app form,
17642             which, when closed terminates the app)
17643         * XplatUI.cs:
17644           - Dropped Exit() method, it's naming was confusing
17645           - Added PostQuitMessage() which causes GetMessage to return false
17646             once the message queue is empty
17647         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
17648           PostQuitMessage()
17649         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
17650           no longer a valid XplatUI method, but left it in since it's used
17651           internally. Added empty PostQuitMessage() method.
17652         * MenuAPI.cs: Replaced call to Exit() with call to
17653           PostQuitMessage, even though this is probably no longer needed.
17654         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
17655         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
17656         * Application.cs:
17657           - Replaced call to XplatUI.Exit() with PostQuitMessage()
17658           - Removed old debug code that would call XplatUI for exception
17659             display, enabled standard exception handling (Still not enabled
17660             though, until NativeWindow's ExternalExceptionHandler define
17661             is removed
17662         * NativeWindow.cs:
17663           - Added internal method to allow control to update NativeWindow
17664             after a window has been destroyed
17665           - Added handling of already destroyed windows when calling i
17666             DestroyWindow
17667           - Added removal of handle from list on ReleaseHandle
17668         * XplatUIX11.cs:
17669           - Dropped GetMessageResult var and related code
17670           - Added PostQuitState to field to track if PostQuitMessage has been
17671             called
17672           - Dropped Exit() method
17673           - Added PostQuitMessage() method
17674           - GetMessage now will return false if PostQuitState is set and no
17675             more messages are in the queue.
17676           - Expose handler will no longer generate WM_PAINT messages if we are
17677             in PostQuitState since it's very likely any windows have already
17678             been destroyed, and since Hwnd won't get updated until we have
17679             processed the DestroyNotify we'd be causing X errors.
17680         
17681 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17682
17683         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
17684           Thanks to Mike for pointing out the err of my ways.
17685
17686 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17687
17688         * Control.cs(PreProcessMessage): Moved menu handling back, but
17689           after all other key handling, to match MS (who handles Menu in
17690           DefWndProc)
17691         * Menu.cs (WndProc): Removed my brainfart
17692
17693 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17694
17695         * Control.cs(PreProcessMessage): Removed special menu handling 
17696         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
17697
17698 2005-12-07  Mike Kestner  <mkestner@novell.com>
17699
17700         * Control.cs : special case SYSKEYUP so that we can adjust keynav
17701         state according in tracker.
17702         * Menu.cs : promote tracker field to base class and provide a tracker
17703         lookup capability.  Add/Remove shortcuts dynamically if the top menu
17704         has a tracker. Unparent items that are removed from the collection.
17705         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
17706         * Theme*.cs: add always_show_hotkeys field to support configurability
17707         of mnemonic display.  win32 doesn't show mnemonics until Alt is
17708         pressed.
17709
17710 2005-12-07  Jackson Harper  <jackson@ximian.com>
17711
17712         * MdiChildContext.cs: Use Control.ResetCursor.
17713         * Control.cs: ResetCursor needs to set the property so that the
17714         correct XplatUI call gets made.
17715
17716 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17717
17718         * Control.cs: More fixes to make our key events match MS. We
17719           were not setting the modifier state on KeyData, and we were
17720           not generating any events when Alt was pressed with a key
17721           since handling of WM_SYSxxx was missing for the OnKey methods.
17722
17723 2005-12-07  Jackson Harper  <jackson@ximian.com>
17724
17725         * MdiChildContext.cs: reenable the sizing code.
17726         - When the mouse leaves a window reset its cursor.
17727
17728 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17729
17730         * ThemeClearlooks.cs: Reflect latest Hwnd changes
17731
17732 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17733
17734         * Hwnd.cs: Now using the theme 3d bordersize to calculate
17735           widths of Fixed3D borders
17736
17737 2005-12-07  Jackson Harper  <jackson@ximian.com>
17738
17739         * MdiClient.cs: Fix warnings. Earn Mike's love.
17740
17741 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17742
17743         * ThemeClearlooks.cs:
17744           - Adjusted mouse over button color
17745           - Added first parts of CheckBox drawing
17746           - Added correct color for selected text background
17747           - Fixed ComboBox drawing
17748           - Added CPDrawBorder3D and CPDrawBorder
17749
17750 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17751
17752         * XplatUIX11.cs: Added call to XBell for AudibleAlert
17753
17754 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
17755
17756         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17757           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
17758           alert users via sound. We could add an enum arg with different
17759           types of alerts in the future
17760
17761 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17762
17763         * Control.cs: Fix behaviour problems pointed out by Mike
17764
17765 2005-12-05  Mike Kestner  <mkestner@novell.com>
17766
17767         * StatusBarPanel.cs: add Invalidate method and hook it into all the
17768         prop setters.  Calls parent.Refresh for now, but could be maybe be
17769         optimized with an internal method on StatusBar at some point.
17770         [Fixes #76513]
17771
17772 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
17773
17774         * RichTextBox.cs: Implemented get_SelectionColor
17775
17776 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
17777
17778         * ThemeClearlooks.cs:
17779           - Removed dead code
17780           - Draw black button border only if button is Form.AcceptButton
17781           - Draw correct button color for pressed RadioButton if the mouse 
17782             has entered the button
17783           - Updated ProgressBar drawing!
17784           - Updated CPDrawSizeGrip drawing
17785           - Updated StatusBarPanel drawing
17786
17787 2005-12-05  Mike Kestner  <mkestner@novell.com>
17788
17789         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
17790         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
17791
17792 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
17793
17794         * ThemeClearlooks.cs: Initial check-in, activate with
17795           export MONO_THEME=clearlooks
17796         * ThemeEngine.cs: Added ThemeClearlooks
17797
17798 2005-12-03  Mike Kestner  <mkestner@novell.com>
17799
17800         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
17801         [Fixes #76897]
17802
17803 2005-12-02  Jackson Harper  <jackson@ximian.com>
17804
17805         * Form.cs: If the child form has no menu the default main menu is
17806         used as the active menu.
17807
17808 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
17809
17810         * ListBox.cs: Check if any items exist before trying to resolve 
17811           coordinates into items
17812
17813 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17814
17815         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
17816           as the second color for the background hatch
17817
17818 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17819
17820         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
17821         * RichTextBox.cs: FormatText position arguments are 1-based, now making
17822           sure that what we pass to FormatText is always 1-based. Fixes #76885
17823
17824 2005-11-29  Miguel de Icaza  <miguel@novell.com>
17825
17826         * NumericUpDown.cs (EndInit): When we are done initializing,
17827         reflect any updates on the UI.
17828
17829 2005-12-02  Jackson Harper  <jackson@ximian.com>
17830
17831         * ImplicitHScrollBar.cs:
17832         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
17833         their container controls.
17834         * TreeView.cs: Use the new implicit scrollbars.
17835
17836 2005-12-02  Jackson Harper  <jackson@ximian.com>
17837
17838         * TreeView.cs: Make top_node internal so the TreeNodeCollections
17839         can play with it.
17840         * TreeNodeCollection.cs: If we remove the topnode we need to
17841         update topnode to the next node in line.
17842         - When clearing nodes go through the same process as removing
17843         them, so they get depareneted and checked if they are top node.
17844
17845 2005-12-01  Jackson Harper  <jackson@ximian.com>
17846
17847         * TreeView.cs: When imagelists are used the image area is
17848         selectable as well as the text.
17849         - If there are no selected nodes select the first one.
17850         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
17851         so don't do it more then we need to.
17852
17853 2005-12-01  Jackson Harper  <jackson@ximian.com>
17854
17855         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
17856         that arrows can be scaled.
17857
17858 2005-12-01  Jackson Harper  <jackson@ximian.com>
17859
17860         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
17861         fail. Patch by Dieter Bremes
17862
17863 2005-11-30  Jackson Harper  <jackson@ximian.com>
17864
17865         * Form.cs: Property is 2.0 only
17866         * PrintDialog.cs: Signature fix.
17867
17868 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17869
17870         * TextControl.cs: 
17871           - No longer artificially moves text 2 pixels down (now that we have
17872             borders this is no longer needed)
17873           - Added calcs for left, hanging and right indent
17874
17875 2005-11-23  Mike Kestner  <mkestner@novell.com>
17876
17877         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
17878
17879 2005-11-30  Jackson Harper  <jackson@ximian.com>
17880
17881         * MdiChildContext.cs: Set the cloned menus forms, as these don't
17882         get cloned as part of CloneMenu ().
17883         * Menu.cs: Make sure the parent of the items get set correctly
17884         when they are added.  And the owners are notified of the changes.
17885         * Form.cs: Create an ActiveMenu property, so that when MDI is used
17886         we can change the menu being displayed/handled by the form without
17887         changing the menu assosciated with the form.
17888         - Don't let Mdi children draw/handle menus.
17889         
17890 2005-11-30  Jackson Harper  <jackson@ximian.com>
17891
17892         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
17893         a MenuChanged event. Just to make the API a little more
17894         consistent.
17895         * MainMenu.cs:
17896         * MenuItem.cs: Use the new OnMenuChanged
17897         * MdiChildContext.cs: Handle menu merging.
17898         * Form.cs: Implement MergedMenu.
17899         
17900 2005-11-30  Jackson Harper  <jackson@ximian.com>
17901
17902         * Menu.cs: We were misusing Add. Add goes behind the specified
17903         index according to the docs, and does not replace the specified
17904         index. So I added an Insert method.
17905
17906 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17907
17908         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
17909           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
17910           is for Jackson
17911         * RichTextBox.cs: Added calls to base for DnD events
17912
17913 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
17914
17915         * TextControl.cs:
17916           - Fixed drag-selection related crash; style fixes
17917           - Implemented undo class
17918             o Implemented method to capture document state for specified
17919               range in document tree
17920             o Implemented method to restore captured document state
17921             o Implemented cursor tracking
17922             o Implemented basic undo stack
17923           - Added undo cursor tracking to methods altering cursor location
17924           - Added undo tracking to selection deletion (still missing
17925             other text-altering hookups)
17926         * RichTextBox.cs:
17927           - Added SelectionLength property
17928           - Implemented CanPaste()
17929           - Implemented Paste()
17930           - Added missing protected methods
17931           - Fixed RTF->Document conversion; now uses font index 0 and color 
17932             index 0 as the default font for the parsed text
17933           - Fixed RTF<->Document font size translation
17934           - Fixed RTF generation, now properly handles cross-tag boundaries
17935             for single line selection
17936           - No longer always appends blank line to generated RTF
17937           - Removed TODOs
17938           - Added missing attributes
17939           - Hooked up undo-related methods
17940         * TextBoxBase.cs:
17941           - Implemented Copy()
17942           - Implemented Paste()
17943           - Implemented Cut()
17944           - Fixed caret mis-behaviour on backspace across line-boundaries
17945
17946 2005-11-29  Jackson Harper  <jackson@ximian.com>
17947
17948         * MdiClient.cs: Add a method for activating mdi children. Very
17949         basic right now. I imagine someday it might need more girth.
17950         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
17951         children windows names are added to the menu item.
17952         * ThemeWin32Classic.cs: Draw the arrow if the item is an
17953         mdilist. This happens regardless of whether or not there are any
17954         mdi windows to see in the list, and according to my tests happens
17955         before the items are even added. Also happens if there isn't even
17956         an mdi client to get windows from.
17957
17958 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
17959
17960         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
17961         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
17962
17963 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
17964
17965         * DataGridTableStyle.cs:
17966           - Create always the styles for the missing columns even if they are
17967             provided by the user (not default table style)
17968         * DataGrid.cs:
17969           - Fixes bug 76770
17970           - Fixes SetDataBinding (always re-attach source)
17971           - Fixes SetNewDataSource (only clear styles if they are not for 
17972             this source)
17973          -  Expands OnTableStylesCollectionChanged to handle style refresh 
17974             and remove properly
17975
17976 2005-11-29  Jackson Harper  <jackson@ximian.com>
17977
17978         * FileDialog.cs: Implement missing bits, remove some dead
17979         code.
17980         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
17981         creation of the panel so that the options set on the dialog are
17982         seen when the panel is created.
17983         * TreeView.cs: raise a click when items are clicked.
17984         
17985 2005-11-29  Jackson Harper  <jackson@ximian.com>
17986
17987         * MdiClient.cs: Pass some signature methods through to base.
17988
17989 2005-11-28  Jackson Harper  <jackson@ximian.com>
17990
17991         * ListView.cs: Raise the click event when items are clicked.
17992
17993 2005-11-28  Jackson Harper  <jackson@ximian.com>
17994
17995         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
17996         a nullref.
17997
17998 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
17999
18000         * ThemeNice.cs: - Removed 1 pixel bitmaps
18001           - Use SmoothingMode.AntiAlias where it makes sense
18002             (ScrollButton arrow for example)
18003           - Enhanced Button focus drawing
18004           - Fixed ComboBox drawing (no artefacts anymore, focus
18005             rectangle is back again, reduced size of ComboButton, etc.)
18006           - Fixed RadioButton focus drawing for Appearence.Button
18007           - Slight ScrollButton redesign
18008           - Some LinearGradientBrush size fixes
18009           - GroupBoxes have now rounded edges
18010           - Fixed StatusBar drawing
18011
18012 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
18013
18014         * ThemeNice.cs: - Remove dead code
18015           - use correct background colors for menus, etc.
18016           - Fake pixel drawing with 1 pixel bitmaps
18017
18018 2005-11-24  Jackson Harper  <jackson@ximian.com>
18019
18020         * MdiClient.cs: Size the scrollbars when resizing the window.
18021         - Resize the maximized windows when the client is resized
18022         * Form.cs: Make the child context available
18023         
18024 2005-11-23  Jackson Harper  <jackson@ximian.com>
18025
18026         * MdiChildContext.cs: Don't size windows if they are maximized.
18027
18028 2005-11-23  Mike Kestner  <mkestner@novell.com>
18029
18030         * ContextMenu.cs: use MenuTracker.
18031         * Control.cs: remove menu handle usage.
18032         * Form.cs: remove menu handle usage.
18033         * Hwnd.cs: remove menu handle usage.
18034         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
18035         motion and clicks to the new Tracker handlers.
18036         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
18037         and handle usage.
18038         * MenuAPI.cs: refactored to combine popup and menubar event handling.
18039         Killed the MENU and MENUITEM data types and associated collections
18040         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
18041         MenuTracker class that exposes the leftovers from the old MenuAPI
18042         static methods. Restructured Capture handling so that only one grab is
18043         done for the entire menu hierarchy instead of handing off grabs to
18044         submenus. Tracker now has an invisible control to Capture when active.
18045         * MenuItem.cs: add sizing accessors, kill Create
18046         and handle usage.
18047         * Theme.cs: remove menu handle and MENU(ITEM) usage.
18048         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
18049         MENU(ITEM). remove menu handle usage, use Menu directly.
18050         * XplatUIDriver.cs: remove menu handle usage.
18051         * XplatUIOSX.cs: remove menu handle usage.
18052         * XplatUIWin32.cs: remove menu handle usage.
18053         * XplatUIX11.cs: remove menu handle usage.
18054
18055 2005-11-22  Jackson Harper  <jackson@ximian.com>
18056
18057         * Hwnd.cs: Don't compute the menu size for
18058         DefaultClientRectangle.
18059         - Reenable menu sizes being computed for GetClienRectangle.
18060         * Form.cs: Remove comment of trechery
18061         
18062 2005-11-22  Jackson Harper  <jackson@ximian.com>
18063
18064         * Hwnd.cs: The adjustments for the menu bar are made when it is
18065         attached to the form.
18066
18067 2005-11-19  Jackson Harper  <jackson@ximian.com>
18068
18069         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
18070         (just like on windows).
18071
18072 2005-11-19  Jackson Harper  <jackson@ximian.com>
18073
18074         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
18075         use real buttons anymore because they are in non client area. The
18076         one TODO here is that I need to somehow invalidate a section of
18077         the non client area.
18078
18079 2005-11-18  Jackson Harper  <jackson@ximian.com>
18080
18081         * Control.cs: Put the enum check back in now that MDI doesnt have
18082         to use this to set border styles.
18083         * Form.cs: Only set mdi child windows borders if the handle has
18084         been created.
18085         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
18086         this directly on to the driver.
18087         - Get the move start position before adjusting for the titlebar
18088         height, this fixes the windows "skipping" when they are first
18089         moved.
18090
18091 2005-11-18  Jackson Harper  <jackson@ximian.com>
18092
18093         * XplatUIX11.cs: Just compute the mdi borders separately as they
18094         don't totally match up with normal form borders.
18095
18096 2005-11-18  Jackson Harper  <jackson@ximian.com>
18097
18098         * Control.cs: Set WS_ styles for borders, so that the driver does
18099         not have to retrieve the control instance to figure out what kind
18100         of borders it should have.
18101         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
18102         driver can know its an mdi child easily.
18103         * XplatUIX11.cs: Get the border styles and whether the window is
18104         MDI from the Styles and ExStyles params instead of having to get a
18105         control. This prevents a chicken and egg problem.       
18106
18107 2005-11-18  Jackson Harper  <jackson@ximian.com>
18108
18109         * MdiClient.cs: Fix typo so scrollbars show up correctly.
18110
18111 2005-11-18  Jackson Harper  <jackson@ximian.com>
18112
18113         * MdiClient.cs: Calculate when to add and remove scrollbars
18114         correctly.
18115         * MdiChildContext.cs: Adjust the y position to take the titlebar
18116         into account.
18117         - No height for FormBorderStyle.None
18118
18119 2005-11-18  Jackson Harper  <jackson@ximian.com>
18120
18121         * Control.cs: Allow non enum values to be used for
18122         InternalBorderStyle.  MDI does this to set a special border style.
18123         - New utility methods for converting points to/from client coords
18124         - Add the newly created control to the Controls collection before
18125         updating its style. This way UpdateStyle can walk the control
18126         heirarchy to find the control if needed.
18127         so I don't need to create a new Point object all the time.
18128         * Form.cs: Let MDI windows handle their border styles.
18129         - Set styles on MDI windows so the correct title style is derived.
18130         * MdiChildContext.cs: Move all the painting and window handling
18131         into the non client area.
18132         - Use correct sizing and put correct buttons on frames based on
18133         the FormBorderStyle.
18134         - Notify the mdi client about scrolling
18135         - Need to handle the buttons ourselves now, because they are all
18136         in non client areas and we can't add controls there.
18137         * MdiClient.cs: Halfway to scrolling, this implementation is
18138         somewhat broken though, we need to check to make sure other
18139         windows aren't causing scrolling before removing the bars. Also
18140         the bars need to be drawn on top, maybe I can switch implicit
18141         controls to be on top.
18142         * Hwnd.cs: caption_height and tool_caption_height are now
18143         properties of an hwnd, this way they can be set by the driver
18144         based on the type of window they are.  In X11 the window manager
18145         handles the decorations so caption_height is zero unless its an
18146         MDI window.
18147         - Add 3 pixel borders for MDI windows (0xFFFF).
18148         - Get rid of some code duplication, have DefaultClientRectanle
18149         just call GetClientRectangle.
18150         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
18151         Hwnd now.
18152         - Set border styles differently for mdi windows.
18153         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
18154         Hwnd now.
18155         
18156 2005-11-15  Mike Kestner  <mkestner@novell.com>
18157
18158         * Menu.cs: when adding an item to the collection, if item is already 
18159         parented, remove it from the parent.
18160
18161 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
18162
18163         * X11DesktopColors.cs: Added KDE support
18164
18165 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
18166
18167         * XplatUIWin32.cs: 
18168           - Clipboard methods now can translate Rtf format
18169           - No longer removes clipboard contents whenever a new format is added
18170             to allow placing multiple formats on the clipboard
18171         * Clipboard.cs: Clipboard now supports getting a IDataObject and
18172           will place all formats contained in it onto the clipboard. Also
18173           now cleans the clipboard before placing a new object onto it
18174         * RichTextBox.cs:
18175           - Implemented set_Rtf
18176           - Implemented set_SelectedRtf
18177           - Created InsertRTFFromStream() method to allow single code base
18178             for all properties and methods that insert RTF into document
18179           - Removed debug output
18180         * TextControl.cs:
18181           - Fixed Delete(int) to fix up line numbers
18182           - Fixed ReplaceSelection to combine start and end line
18183           - Fixed serious DeleteChars bug that would leave the document tree
18184             broken
18185           - Improved DumpTree with several logic checks to detect broken
18186             document trees
18187           - Removed debug lines
18188           - Fixed Caret.WordForward/WordBack moving code, now always also 
18189             updates caret.tag (fixes crash when word-selecting across tag
18190             boundaries via keyboard)
18191           - Added Insert() method for inserting multiline text into documents
18192           - Fixed DeleteChars() calculation errors that would cause a broken
18193             tag chain with multiple tag lines
18194           - DeleteChars() no longer crashes on multi-tag lines if not all tags
18195           - Split() no longer moves caret if split is at caret location
18196           - ReplaceSelection() now updates the cursor and re-displays it
18197           - ReplaceSelection() now uses new Insert() method to avoid code
18198             duplication
18199           - FormatText() can now handle formatting partial lines
18200         * TextBoxBase.cs:
18201           - Append now uses new TextControl.Insert() method (this avoids 
18202             duplicate code)
18203           - Implemented Ctrl-X (Cut) (
18204           - Implemented Ctrl-C (Copy)
18205           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
18206             regeneration when pasting text; roundtripping Copy&Paste within
18207             edit control still fails due to some calculation bugs in GenerateRTF)
18208           - The Delete key will now remove the current selection if it is visible
18209         * TextBox.cs: Removed debug lines
18210         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
18211           driver to be initialized and can't therefore be done via a static ctor)
18212
18213 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
18214
18215         * TextControl.cs: Added backend code for finding char arrays and strings
18216         * TextBoxBase.cs:
18217           - Added mouse wheel scroll support
18218           - Added support for VScroll and HScroll events
18219         * RichTextBox.cs:
18220           - Implemented all seven Find() variants
18221           - Implemented GetCharFromPosition()
18222           - Implemented GetCharIndexFromPosition()
18223           - Implemented GetLineFromIndex()
18224           - Implemented GetPositionFromCharIndex();
18225           - Implemented SaveFile for PlainText and UnicodeText
18226           - Fixed set_Font, now setting a new font applies that font to
18227             the whole document
18228           - Implemented generic Document to RTF converter
18229           - Implemented SaveFile for RichText format (still missing unicode
18230             conversion for non-ansi chars)
18231           - Implemented get_Rtf
18232           - Implemented get_SelectedRtf
18233
18234 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
18235
18236         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
18237           to allow any captures to be released before triggering OnClick. This
18238           way a click handler may capture the mouse without interference.
18239         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
18240           This way we send them even though X may not allow a grab (if the window
18241           isn't visible, for example)
18242
18243 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
18244
18245         * DataGridViewRowEventArgs.cs: DataGridView implementation
18246         * DataGridViewElement.cs: DataGridView implementation
18247         * DataGridViewComboBoxCell.cs: DataGridView implementation
18248         * DataGridViewDataErrorContexts.cs: DataGridView implementation
18249         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
18250         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
18251         * ImageLayout.cs: DataGridView implementation
18252         * DataGridViewComboBoxColumn.cs: DataGridView implementation
18253         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
18254         * DataGridViewSelectionMode.cs: DataGridView implementation
18255         * IDataGridViewEditingControl.cs: DataGridView implementation
18256         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
18257         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
18258         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
18259         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
18260         * DataGridViewColumnSortMode.cs: DataGridView implementation
18261         * DataGridView.cs: DataGridView implementation
18262         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
18263         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
18264         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
18265         * Padding.cs: DataGridView implementation
18266         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
18267         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
18268         * DataGridViewRowEventHandler.cs: DataGridView implementation
18269         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
18270         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
18271         * DataGridViewButtonCell.cs: DataGridView implementation
18272         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
18273         * DataGridViewEditMode.cs: DataGridView implementation
18274         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
18275         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
18276         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
18277         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
18278         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
18279         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
18280         * DataGridViewCellEventHandler.cs: DataGridView implementation
18281         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
18282         * DataGridViewCellStyleConverter.cs: DataGridView implementation
18283         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
18284         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
18285         * DataGridViewColumnEventArgs.cs: DataGridView implementation
18286         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
18287         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
18288         * QuestionEventArgs.cs: DataGridView implementation
18289         * IDataGridViewEditingCell.cs: DataGridView implementation
18290         * DataGridViewTriState.cs: DataGridView implementation
18291         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
18292         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
18293         * DataGridViewColumnCollection.cs: DataGridView implementation
18294         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
18295         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
18296         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
18297         * DataGridViewColumn.cs: DataGridView implementation
18298         * DataGridViewCellBorderStyle.cs: DataGridView implementation
18299         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
18300         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
18301         * DataGridViewRow.cs: DataGridView implementation
18302         * DataGridViewImageCellLayout.cs: DataGridView implementation
18303         * DataGridViewImageCell.cs: DataGridView implementation
18304         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
18305         * DataGridViewCheckBoxCell.cs: DataGridView implementation
18306         * DataGridViewHeaderCell.cs: DataGridView implementation
18307         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
18308         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
18309         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
18310         * DataGridViewTextBoxColumn.cs: DataGridView implementation
18311         * QuestionEventHandler.cs: DataGridView implementation
18312         * DataGridViewCellStyleScopes.cs: DataGridView implementation
18313         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
18314         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
18315         * DataGridViewCell.cs: DataGridView implementation
18316         * DataGridViewCellEventArgs.cs: DataGridView implementation
18317         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
18318         * DataGridViewCellStyle.cs: DataGridView implementation
18319         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
18320         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
18321         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
18322         * TextFormatFlags.cs: DataGridView implementation
18323         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
18324         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
18325         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
18326         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
18327         * DataGridViewButtonColumn.cs: DataGridView implementation
18328         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
18329         * HandledMouseEventArgs.cs: DataGridView implementation
18330         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
18331         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
18332         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
18333         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
18334         * DataGridViewRowCollection.cs: DataGridView implementation
18335         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
18336         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
18337         * DataGridViewHitTestType.cs: DataGridView implementation
18338         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
18339         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
18340         * DataGridViewColumnEventHandler.cs: DataGridView implementation
18341         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
18342         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
18343         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
18344         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
18345         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
18346         * DataGridViewContentAlignment.cs: DataGridView implementation
18347         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
18348         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
18349         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
18350         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
18351         * DataGridViewPaintParts.cs: DataGridView implementation
18352         * DataGridViewCellCollection.cs: DataGridView implementation
18353         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
18354         * DataGridViewImageColumn.cs: DataGridView implementation
18355         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
18356         * DataGridViewElementStates.cs: DataGridView implementation
18357         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
18358         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
18359         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
18360         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
18361         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
18362         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
18363         * DataGridViewRowHeaderCell.cs: DataGridView implementation
18364         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
18365         * DataGridViewTextBoxCell.cs: DataGridView implementation
18366         * DataGridViewBand.cs: DataGridView implementation
18367         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
18368         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
18369         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
18370         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
18371         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
18372         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
18373         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
18374         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
18375         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
18376         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
18377         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
18378
18379 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
18380
18381         * ThemeWin32Classic.cs: 
18382           - Draw the outside focus rectangle around buttons
18383           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
18384             doesn't use end caps for every dash of a line anymore. This
18385             workaround ignores the forecolor.
18386
18387 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
18388
18389         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
18390           endian safe.
18391
18392 2005-11-07  Jackson Harper  <jackson@ximian.com>
18393
18394         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
18395
18396 2005-11-07  Jackson Harper  <jackson@ximian.com>
18397
18398         * ScrollableControl.cs: Calculate the maximum and change vars
18399         (more) correctly so that scrollbars appear as a sensible size.
18400
18401 2005-11-04  Jackson Harper  <jackson@ximian.com>
18402
18403         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
18404         collection.
18405         * TreeView.cs: When the tree is sorted null out the top_node so
18406         that it is recalculated.
18407         - Use dotted lines instead of dashed lines to match MS better.
18408
18409 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
18410
18411         * ListView.cs: 
18412           - Implements key search for items. Useful when browsing files with FileDialog
18413           - When changing view mode or when clear the items reset scrollbar positions
18414
18415 2005-11-04  Jackson Harper  <jackson@ximian.com>
18416
18417         * CurrencyManager.cs: Implement the MetaDataChanged event, the
18418         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
18419         as to what the method may do as there is no real way of creating a
18420         derived CurrencyManager and calling the method. 
18421
18422 2005-11-03  Jackson Harper  <jackson@ximian.com>
18423
18424         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
18425         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
18426         method which seems to just be used internally to refresh the tabs.
18427
18428 2005-11-03  Jackson Harper  <jackson@ximian.com>
18429
18430         * TabControl.cs: Implement the remove method. Fix some broken
18431         comments.
18432
18433 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18434
18435         * DateTimePicker.cs:
18436           - Added missing DateTimePickerAccessibleObject class
18437           - Added missing events
18438           - Added OnFontChanged method
18439         * Form.cs: Added missing attributes
18440         * TreeView.cs: Added missing attributes
18441
18442 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
18443
18444         * GridItemCollection.cs: Fix signatures
18445
18446 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18447
18448         * XplatUI.cs: Updated build rev/date
18449         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
18450           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
18451         * Application.cs: Trigger context-specific ExitThread events
18452
18453 2005-11-03  Jackson Harper  <jackson@ximian.com>
18454
18455         * Menu.cs:
18456         * MainMenu.cs:
18457         * GridTableStylesCollection.cs:
18458         * Timer.cs:
18459         * TabPage.cs:
18460         * HelpProvider.cs:
18461         * StatusBar.cs:
18462         * MonthCalendar.cs: Signature fixes
18463
18464 2005-11-03  Jackson Harper  <jackson@ximian.com>
18465
18466         * TreeNodeCollection.cs: Remove should not be virtual.
18467         * TreeView.cs: Implement the last of the missing methods.
18468
18469 2005-11-03  Jackson Harper  <jackson@ximian.com>
18470
18471         * TreeNodeConverter.cs: Implement to get off my class-status back.
18472
18473 2005-11-03  Jackson Harper  <jackson@ximian.com>
18474
18475         * TreeView.cs: Hookup the bits for drag and drop.
18476         * TreeNode.cs: Don't cache the tree_view or index anymore, now
18477         that nodes can be moved from tree to tree easily this just causes
18478         all sorts of problems.
18479         * TreeNodeCollection: Don't need to give treenodes an index and
18480         treeview anymore when they are added, these are computed on the
18481         fly. Also make sure to remove a node before its added.
18482
18483 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18484
18485         * TextControl.cs:
18486           - Added CaretSelection enum
18487           - Added comparison methods to Marker struct, makes selection code
18488             more readable
18489           - Added SelectionStart and SelectionEnd as 'moveable' location for
18490             the CaretDirection enum and handler
18491           - Added selection_prev variable to track optimized invalidation for
18492             word and line selection
18493           - Added SelectionVisible property (returns true if there is a valid 
18494             selection)
18495           - Switched CaretHasFocus to only display the caret if there is no
18496             visible selection
18497           - Avoiding StringBuilder.ToString to retrieve a single char, instead
18498             using the direct character index; should be much faster
18499           - Added various conditional debug statements
18500           - Fixed invalidation calculation for selection ranges
18501           - Added ExpandSelection() method to support word and line selection
18502           - Switched SetSelectionToCaret to use new Marker compare overloads
18503           - Added central IsWordSeparator() method to determine word 
18504             separators/whitespace and FindWordSeparator() to streamline common
18505             usage of IsWordSeparator()
18506         * TextBoxBase.cs:
18507           - Removed unneeded grabbed variable, it was just mirroring
18508             Control.Capture
18509           - No longer firing OnTextChanged event when Text setter is called,
18510             since the base will fire the event for us
18511           - Added handling of Ctrl-Up/Down selection
18512           - Added handling of Shift-Cursorkey selection
18513           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
18514             words
18515           - Added handling of Shift and Ctrl-Shift-Home/End selection
18516           - Removed some debug output
18517           - Added handling for single/double/tripple-click to place caret/
18518             select word/select line respectively (Fixes bug #76031)
18519           - Added support for drag expansion of word/line selection
18520         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
18521           current selection
18522
18523 2005-11-02  Jackson Harper  <jackson@ximian.com>
18524
18525         * X11Dnd.cs: If the drag is going to and from a MWF window just
18526         copy the data instead of sending it out through the X Selection
18527         mechanism.
18528
18529 2005-11-02  Jackson Harper  <jackson@ximian.com>
18530
18531         * X11Dnd.cs:
18532         * XplatUIX11.cs: When in a drag we don't want motion notify
18533         messages to get passed on to the other controls. This prevents
18534         mouse move messages from showing up in the drag source.
18535
18536 2005-11-02  Jackson Harper  <jackson@ximian.com>
18537
18538         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
18539         the correct button is release to end a drag.
18540         * XplatUIX11.cs: Make the button state internal so the drag system
18541         can access it.  Dragging needs to know about all button releases,
18542         not just left button.
18543
18544 2005-11-02  Miguel de Icaza  <miguel@novell.com>
18545
18546         * Form.cs (Icon): If the icon is null, reset the icon to the
18547         default value. 
18548
18549         * Cursor.cs: When writing the AND-mask bitmap do not include the
18550         number of colors, but hardcode those to two (black and white),
18551         fixes the loading of color cursors (Paint Dot Net).
18552
18553         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
18554         turn off autoscaling.
18555
18556         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
18557
18558 2005-11-02  Jackson Harper  <jackson@ximian.com>
18559
18560         * X11Dnd.cs: Make sure to send a status message if the pointer
18561         enters a control that can not accept a drop, otherwise the cursor
18562         isn't updated correctly. Also tried to compress the lines of code
18563         a bit.
18564
18565 2005-11-02  Jackson Harper  <jackson@ximian.com>
18566
18567         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
18568         set actions correctly.  This isn't perfect as XDND and win32 have
18569         some differences on how you allow actions. I'll clear this up by
18570         adding a path for drag from MWF to MWF windows.
18571         * XplatUIX11.cs: Hook into the dnd system.
18572
18573 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
18574
18575         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
18576         previously shown but they are no longer need it. Very obvious when 
18577         browsing files with FileDialog.
18578
18579 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
18580
18581         * Control.cs: We always need to call OnPaintBackground. We pretty much
18582           ignore AllPaintingInWmPaint and always do the painting there, whether 
18583           it's set or not, since we always ignore the WM_ERASEBKGND message 
18584           (which we don't generate on X11). This fixes #76616.
18585         * Panel.cs: Removed unneeded background painting. This happens properly
18586           in Control.cs already
18587
18588 2005-10-31  Mike Kestner  <mkestner@novell.com>
18589
18590         * Menu.cs: Add items to collection before setting their index.
18591         * MenuItem.cs : add range checking with ArgumentException like MS.
18592         [Fixes #76510]
18593
18594 2005-10-31  Jackson Harper  <jackson@ximian.com>
18595
18596         * ListBox.cs: Invalidate if the area is visible at all not just
18597         contained in the visible rect. Fixes unselection of semi visible
18598         items.
18599
18600 2005-10-31  Jackson Harper  <jackson@ximian.com>
18601
18602         * Control.cs: Consistently name the dnd methods. Make them
18603         internal so we can override them to match some MS behavoir
18604         internally.
18605         * Win32DnD.cs: Use the new consistent names.
18606
18607 2005-10-31  Jackson Harper  <jackson@ximian.com>
18608
18609         * TreeView.cs: Don't draw the selected node when we lose focus.
18610
18611 2005-10-31  Jackson Harper  <jackson@ximian.com>
18612
18613         * X11Dnd.cs: We still need to reset the state even though a full
18614         reset isn't being done, otherwise status's still get sent all over
18615         the place.
18616
18617 2005-10-31  Jackson Harper  <jackson@ximian.com>
18618
18619         * Control.cs: Make the dnd_aware flag internal so the dnd
18620         subsystem can check it. Catch exceptions thrown in dnd handlers to
18621         match MS behavoir.
18622         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
18623         * X11Dnd.cs: Handle null data in the converters. Set the XDND
18624         version when sending a XdndEnter. Use the control/hwnd dnd_aware
18625         flags to reduce the number of dnd enters/status's sent.
18626
18627 2005-10-31  Jackson Harper  <jackson@ximian.com>
18628
18629         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
18630
18631 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
18632
18633         * PictureBox.cs: Fixes 76512
18634
18635 2005-10-28  Jackson Harper  <jackson@ximian.com>
18636
18637         * X11Dnd.cs: Early implementation to support winforms being a drag
18638         source for data on X11. Also restructured the converters so they
18639         can go both ways now.
18640         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
18641         
18642 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
18643
18644         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
18645           clipboard requests
18646
18647 2005-10-27  Jackson Harper  <jackson@ximian.com>
18648
18649         * TreeNode.cs: Implement serialization so my DnD examples will work.
18650
18651 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
18652
18653         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
18654           TreeView.cs: Don't dispose objects that are not owned.
18655           
18656 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
18657
18658         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
18659           should retrieve the current cursor and report that, but XplatUI
18660           doesn't (yet) have an interface for that (and I'm not sure I even
18661           can, on X11)
18662         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
18663           until any message loop processing is done (and the WM_SETCURSOR
18664           replaces the cursor to the proper one)
18665         * XplatUIX11.cs: 
18666           - Fixed override behaviour, we can't set the cursor globally on X11, 
18667             just for our windows.
18668           - Invalidating the System.Drawing X11 display handle when we are
18669             shutting down
18670         * Control.cs: Fix to make csc happy
18671
18672 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
18673
18674         * TextBoxBase.cs: 
18675           - get_Text: Add last line (without trailing newline) to returned
18676             value (Fixes 76212)
18677           - get_TextLength: Count last line in returned length
18678           - ToString: Call Text property instead of duplicating code
18679
18680 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
18681
18682         * ImageList.cs: Dispose ImageAttributes objects.
18683
18684 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18685
18686         * ImageList.cs: Use attribute constructors with less arguments where
18687           possible.
18688
18689 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18690
18691         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
18692           Use typeof instead of strings when assembly is referenced. Added
18693           some more comments.
18694
18695 2005-10-21  Jackson Harper  <jackson@ximian.com>
18696
18697         * ListView.cs: Raise a double click event. Also tried to somewhat
18698         fix when the selectedindexchanged event is raised. Its still
18699         broken though.
18700
18701 2005-10-21  Jackson Harper  <jackson@ximian.com>
18702
18703         * TreeView.cs: New method to invalidate the plus minus area of a
18704         node without invalidating the whole node (maybe this can be used
18705         in some more places).
18706         * TreeNodeCollection.cs: When adding to an empty node we need to
18707         invalidate its plus minus area so the little block shows up.
18708         
18709 2005-10-21  Jackson Harper  <jackson@ximian.com>
18710
18711         * TreeView.cs: Make sure that when we invalidate a node the bounds
18712         are big enough to cover the selected box and the focus
18713         rectangle. Use a different colour for the lines connecting nodes
18714         so they show up with all themes.
18715
18716 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18717
18718         * NativeWindow.cs: Don't call anything that could call into the driver,
18719           we might be on a different thread.
18720
18721 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
18722
18723         * Control.cs(Dispose): Since Dispose might run on a different thread,
18724           make sure that we call methods that could call into the driver via
18725           invoke, to avoid thread issues
18726
18727 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18728
18729         * XplatUI.cs: Removed finalizer
18730         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
18731           not allowing to be called on the finalizer thread.
18732
18733 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
18734
18735         * ImageList.cs:
18736           - Reverted r51889 and r51891.
18737           - Added ImageListItem class that stores unmodified image items and image
18738             properties required to create list images until handle is created.
18739           - Added AddItem and moved image creation logic to AddItemInternal.
18740           - Added CreateHandle method that creates images based on unmodified items.
18741           - Added DestroyHandle that changes state to store unmodified items.
18742           - Add and AddStrip methods no more create handle.
18743           - ReduceColorDepth has no return value.
18744           - Dispose destroys handle.
18745           - Modified other methods to reflect the above changes.
18746           - Implemented key support.
18747           - Added profile 2.0 members and attributes.
18748           - Added private Reset and ShouldSerialize methods that provide the same
18749             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
18750             them as they are private.
18751           - Added some more comments about implementation details.
18752
18753 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18754
18755         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
18756
18757 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18758
18759         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
18760
18761 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18762
18763         * DataGridDrawingLogic.cs: Fixes column hit calcultation
18764         * DataGridColumnStyle.cs: Remove debug message
18765
18766 2005-10-20  Jackson Harper  <jackson@ximian.com>
18767
18768         * TreeView.cs: We can always get input keys regardless of whether
18769         or not editing is enabled. They are used for navigation.
18770
18771 2005-10-20  Jackson Harper  <jackson@ximian.com>
18772
18773         * TreeNode.cs: Use the viewport rect for determining if a node
18774         needs to be moved for visibility. Don't use Begin/End edit. This
18775         calls a full refresh when its done.
18776         * TreeView.cs: New SetBottom works correctly.  Make the viewport
18777         rect property internal so the treenodes can see it. When clicking
18778         on a node we need to ensure that its visible because it might just
18779         be partly visible when clicked.
18780
18781 2005-10-20  Jackson Harper  <jackson@ximian.com>
18782
18783         * TreeNodeCollection.cs: Remove debug code.
18784
18785 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18786
18787         * Datagrid.cs: Implements column sorting in Datagrid
18788         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
18789
18790 2005-10-20  Jackson Harper  <jackson@ximian.com>
18791
18792         * TreeNodeCollection.cs: Remove items properly. Update the correct
18793         area after removing them.
18794
18795 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18796
18797         * Datagrid.cs: Should not call base.OnPaintBackground
18798
18799 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18800
18801         * XplatUIX11.cs (GetMessage):
18802           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
18803             window instead of client window
18804           - Now properly calculates NC_xBUTTONUP message coordinates
18805           - ScreenToMenu now properly calculates it's coordinates of whole 
18806             window, since menus are in the whole window, not in the client
18807             window
18808           - Added WholeToScreen coordinate translation method
18809
18810 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
18811
18812         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
18813           want to return a message, loop back to the beginning of the function
18814           and grab the next real message to process instead.
18815
18816 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18817
18818         * Splitter.cs: Properly set limits if no filler control is used
18819
18820 2005-10-19  Jackson Harper  <jackson@ximian.com>
18821
18822         * ColorDialog.cs: Don't show the help button if it is not enabled
18823         instead of disabling it (this is what MS does). Don't create the
18824         panel until the dialog is run, otherwise the vars (such as
18825         ShowHelp) are not set yet.
18826
18827 2005-10-19  Jackson Harper  <jackson@ximian.com>
18828
18829         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
18830         are reduced when adding nodes.
18831         * TreeNode.cs:
18832         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
18833         tree.
18834         
18835 2005-10-19  Jackson Harper  <jackson@ximian.com>
18836
18837         * FolderBrowserDialog.cs: End editing our treeview so the window
18838         actually gets refreshed.
18839
18840 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18841
18842         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
18843           Obsoleted handling of WM_ERASEBKGND, now always draws our background
18844           inside of WM_PAINT
18845
18846 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18847
18848         * MenuAPI.cs: Returns after Hidding window
18849         * XplatUIX11.cs: Added TODO found while debugging menu issues
18850
18851 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18852
18853         * XplatUIX11.cs: Do not re-map the whole window when it's size
18854           becomes non-zero unless it's supposed to be actually visible
18855
18856 2005-10-18  Jackson Harper  <jackson@ximian.com>
18857
18858         * TreeView.cs: We don't need to keep a count anymore.
18859         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
18860         use the Grow method.
18861
18862 2005-10-18  Jackson Harper  <jackson@ximian.com>
18863
18864         * TreeNodeCollection.cs: Insert is not supported on arrays, so
18865         implement it manually here.
18866
18867 2005-10-18  Jackson Harper  <jackson@ximian.com>
18868
18869         * ImageList.cs: Dont kill the list when the colour depth is
18870         changed, just change the colour depth of all the images.
18871         - Same goes for setting the image size. Just resize them all
18872         instead of killing the list softly.
18873
18874 2005-10-18  Jackson Harper  <jackson@ximian.com>
18875
18876         * Control.cs: Don't invalidate empty rectangles.
18877
18878 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18879
18880         * ListViewItem.cs:
18881           - Adds checked item to the Checked/Item lists (where empty before)
18882           - Do not add items to the Selected lists if they are already present
18883         * ListView.cs:
18884           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
18885           - When deleting items make sure that we delete them for the Selected
18886           and Checked list also.
18887
18888 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18889
18890         * Label.cs: Dispose objects no longer used
18891         * ThemeWin32Classic.cs: Dispose objects no longer used
18892
18893 2005-10-18  Jackson Harper  <jackson@ximian.com>
18894
18895         * TabControl.cs: Don't refresh the whole control when the tabs are
18896         scrolled, we just need to refresh the tab area.
18897
18898 2005-10-17  Jackson Harper  <jackson@ximian.com>
18899
18900         * XplatUIX11.cs: Compress code a little bit. Only calculate the
18901         after handle when we need it.
18902
18903 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18904
18905         * Control.cs: When the parent size changes, recalculate anchor 
18906           positions. Partial fix for #76462
18907
18908 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18909
18910         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
18911           drawn. Fixes #76462
18912
18913 2005-10-17  Jackson Harper  <jackson@ximian.com>
18914
18915         * MonthCalendar.cs: Don't create the numeric up down until our
18916         handle is created. Otherwise our handle is created in the
18917         constructor and we don't know if we are a WS_CHILD or WS_POPUP
18918         yet.
18919
18920 2005-10-17  Jackson Harper  <jackson@ximian.com>
18921
18922         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
18923         correctly.
18924
18925 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18926         * TreeNode.cs : small logical fix (was using local var instead of field)
18927         
18928 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18929
18930         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
18931
18932 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18933
18934         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
18935
18936 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
18937
18938         * Control.cs: 
18939           - Re-implemented anchoring code. My first version was really broken.
18940             This fixes bug #76033. Unlike the previous implementation we will
18941             no longer have round errors since all numbers are calculated from
18942             scratch every time. Removed various anchor-related obsolete vars.
18943           - InitLayout no longer causes layout event firing and layout to be 
18944             performed
18945
18946 2005-10-16  Jackson Harper  <jackson@ximian.com>
18947
18948         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
18949         which was broken).
18950
18951 2005-10-16  Jackson Harper  <jackson@ximian.com>
18952
18953         * TabControl.cs: Remove debug code.
18954
18955 2005-10-16  Jackson Harper  <jackson@ximian.com>
18956
18957         * XEventQueue.cs: Increase the default queue size (very simple
18958         apps needed to grow the queue).
18959         * Hwnd.cs: No finalizer so we don't need to suppress
18960         finalization. Compute the invalid area manually so a new rectangle
18961         does not newto be created.
18962         * ScrollableControl.cs: Don't set any params (otherwise visibility
18963         isn't set correctly).
18964         * MdiChildContext.cs: New constructor takes the mdi parent so it
18965         doesn't have to be computed and avoids a crash on windows. Draw
18966         the window icon properly, and allow the text to be seen.
18967         * Form.cs: Use new MdiChildContext constructor. Make sure the
18968         child context isn't null in wndproc.
18969         * TabControl.cs: Don't set focus, this is muddling keyboard
18970         behavoir. Expand the tab rows when a window size increase will
18971         allow extra tabs to be seen. Don't allow tabs smaller than the
18972         width of a window to be scrolled out of view.
18973         * TreeNode.cs:
18974         * TreeView.cs: Use measure string to calculate a nodes width, the
18975         width is cached and only updated when the text or the font is
18976         changed. Don't check for expand/collapse clicks on the first level
18977         nodes if root lines are disabled.
18978         
18979 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
18980
18981         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
18982
18983 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18984
18985         * DataGridBoolColumn.cs: fixes warning
18986
18987 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18988
18989         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
18990         to match more to match more precisely the MS Net behavior
18991
18992 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18993
18994         * Hwnd.cs: Added field to track if window is mapped
18995         * XplatUIX11.cs: 
18996           - Unmap windows if they become 0-size, re-map when 
18997             they are >0 again; fixes #76035
18998           - Re-set our error handler after initializing X11Desktop
18999             to override any error handlers Gtk or whatever was called
19000             may have set.
19001
19002 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
19003
19004         * CheckedListBox.cs: Removed unused vars
19005         * ListView.cs: Fixed signatures
19006         * RichTextBox.cs: Removed unused vars
19007         * TextBoxBase.cs: Removed unused vars
19008         * XplatUIWin32.cs: Removed unused vars
19009         * XplatUIX11.cs: Removed unused vars
19010         * XplatUI.cs: Updated version and date to latest published
19011
19012 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
19013
19014         * Cursor.cs: Added private .ctor to work around a bug in
19015           resourceset (Thanks to Geoff Norton for the help on this)
19016         * SplitterEventArgs.cs: Made fields accessible so we don't
19017           waste boatloads of objects and can reuse the same one
19018           in Splitter
19019         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
19020           any captions and borders when generating screen coordinates
19021         * Splitter.cs: Reimplemented control, now fully complete, uses
19022           rubberband drawing, supports and obeys all properties, has
19023           proper cursors
19024
19025 2005-10-13  Miguel de Icaza  <miguel@novell.com>
19026
19027         * Form.cs (Form): Setup default values for autoscale and
19028         autoscale_base_size;  Make these instance variables, not static
19029         variables. 
19030
19031         (OnLoad): on the first load, adjust the size of the form.
19032
19033 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
19034
19035         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
19036           width argument to DrawReversibleRectangle()
19037         * XplatUIWin32.cs, XplatUIX11.cs: 
19038           - Implemented width for DrawReversibleRectangle()
19039           - Added logic to DrawReversibleRectangle that recognizes a zero
19040             width or height and only draws a line in that situation
19041         
19042 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
19043
19044         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
19045         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
19046         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
19047           method (it uses our FosterParent window to get a graphics context)
19048
19049 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
19050
19051         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
19052           and SetWindowBackground methods
19053         * Control.cs:
19054           - Setting proper ControlStyles
19055           - We no longer call XplatUI.SetWindowBackground and XplatUI.
19056             EraseWindowBackground, instead we draw the window background
19057             ourselves in PaintControlBackground. This behaviour is
19058             required to match MS, where, when OnPaintBackground is not
19059             called, the background is not drawn.
19060           - Removed unneeded Refresh() in set_Text
19061         * Hwnd.cs: Dropped the ErasePending support. No longer needed
19062         * XplatUIX11.cs:
19063           - Created DeriveStyles method to translate from CreateParams to
19064             FormBorderStyle and TitleStyle, also handles BorderStyle (which
19065             matches FormBorderStyle enum values)
19066           - Consolidated SetHwndStyles and CalculateWindowRect border/title
19067             style calculations into single DeriveStyles method
19068           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
19069             from redrawing the whole window on any resize or expose.
19070           - Fixed CreateWindow usage of SetWindowValuemask. Before not
19071             all styles were applied to our whole/client window appropriately
19072           - Removed EraseWindowBackground() and SetWindowBackground() methods
19073           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
19074             no longer clear/redraw the background through X
19075           - Removed handling of erase_pending bit, we have no use for it (or
19076             so it seems)
19077         * XplatUIOSX.cs:
19078           - Removed generation and handling of WM_ERASEBKGND message
19079           - Removed EraseWindowBackground() and SetWindowBackground() methods
19080           - Removed handling of hwnd.ErasePending flag
19081         * XplatUIWin32.cs:
19082           - Removed EraseWindowBackground() and SetWindowBackground() methods
19083           - We no longer call EraseWindowBackground on PaintEventStart, we 
19084             ignore the fErase flag, erasing is handled in Control in the
19085             background handler
19086         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
19087           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
19088           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
19089           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
19090           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
19091           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
19092           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
19093
19094 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
19095
19096         * PropertyGrids.cs: Get sub properties
19097         * PropertyGridView.cs: Fix drawing code
19098
19099 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19100
19101         * ListBox.cs: Fixes 76383
19102
19103 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19104
19105         * DataGridTextBoxColumn.cs: Sets location and size before attachment
19106         * ThemeWin32Classic.cs: Fixes border drawing and calculations
19107         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
19108
19109
19110 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19111
19112         * ComboBox.cs: Fixes border drawing
19113
19114 2005-10-10  Miguel de Icaza  <miguel@novell.com>
19115
19116         * MimeIcon.cs: Ignore errors if the file can not be read.
19117
19118 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19119
19120         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
19121          - Fixed border calculations
19122          - Fixed horizontal scrolling in single column listboxes
19123          - Fixed drawing issues
19124
19125 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
19126
19127         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
19128           FormBorderStyle enum
19129         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
19130           code to determine FormBorderStyles from CreateParams
19131         * Form.cs:
19132           - Fixed bug where we'd set the wrong window styles if we were
19133             not creating an MDI window
19134           - Added call to XplatUI.SetBorderStyle when form borders are set
19135         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
19136         * Hwnd.cs:
19137           - Removed obsolete edge style
19138           - Switched from BorderStyle to FormBorderStyle
19139         
19140 2005-10-10  Jackson Harper  <jackson@ximian.com>
19141
19142         * Form.cs: Use the property to get the window handle instead of
19143         accessing it directly. Prevents a null reference exception.
19144
19145 2005-10-10  Jackson Harper  <jackson@ximian.com>
19146
19147         * TreeView.cs: Don't adjust the rect given to DrawString now that
19148         our libgdiplus draws correctly.
19149
19150 2005-10-08  Jackson Harper  <jackson@ximian.com>
19151
19152         * TreeView.cs: Don't try to find the clicked on node if there are
19153         no nodes in the tree.
19154
19155 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
19156
19157         * RichTextBox.cs:
19158
19159           restore
19160
19161 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
19162
19163         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
19164           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
19165           ErrorProvider.cs:
19166           Use ResPool for brushes and dispose System.Drawing objects that
19167           are not used anymore.
19168
19169 2005-10-07  Jackson Harper  <jackson@ximian.com>
19170
19171         * MdiChildContext.cs: Use the new borders instead of drawing them
19172         ourselves.
19173
19174 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
19175
19176         * Calling UpdateBounds after changing the window's BorderStyle 
19177         since the style can change the ClientSize
19178
19179 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19180
19181         * Control.cs: Made PaintControlBackground virtual
19182         * Panel.cs: Overriding PaintControlBackground instead of using paint
19183           event; paint event method was interfering with 'real' users of the
19184           event.
19185
19186 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
19187
19188         * ThemeWin32Classic.cs: remove border drawing since it is handled
19189         by the base control class now and was causing double border drawing.
19190
19191 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19192
19193         * Panel.cs: Redraw our background on paint. Not a pretty solution,
19194           but it does seem to match MS behaviour. This fixes bug #75324
19195
19196 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19197
19198         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
19199           somewhat hackish looking
19200
19201 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19202
19203         * TextBoxBase.cs:
19204           - We now accept Enter even if AcceptEnter is false, if the containing
19205             form does not have an AcceptButton configured (fixes bug #76355)
19206           - Calculations are now fixed to no longer use Width/Height, but
19207             ClientSize.Width/Height, since we now support borders (this was
19208             a result of fixing borders and therefore bug #76166)
19209           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
19210             true (fixes bug #76354)
19211         
19212 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19213
19214         * Control.cs: 
19215           - Defaulting BorderStyle and setting it in XplatUI when our window 
19216             is created
19217           - Added enum check to InternalBorderStyle setter
19218         * XplatUIX11.cs: 
19219           - Added drawing of window borders
19220           - Now properly calculates WM decorations offset for toplevel 
19221             windows (fixes bug #74763)
19222         * XplatUIWin32.cs: 
19223           - Implemented BorderStyles for windows (we're letting win32 draw 
19224             the border for us)
19225           - Fixed the signature for SetWindowLong
19226         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
19227           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
19228           setting borders
19229         * UpDownBase.cs: Remove drawing of borders, this is handled by
19230           the driver, outside the client area
19231         * ListView.cs: Removed bogus border calculations. The control should
19232           be oblivious to borders, since those are not part of the client
19233           area. 
19234         * X11DesktopColors.cs: Commented out (currently) unneeded variables
19235         * ThemeWin32Classic.cs: Removed border calculations from ListView 
19236           drawing code
19237
19238 2005-10-06  Jackson Harper  <jackson@ximian.com>
19239
19240         * MdiChildContext.cs: Clear out the old virtual position remove
19241         all the unneeded calls to CreateGraphics.
19242
19243 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19244
19245         * TextControl.cs: Use proper color for highlighted text; fixes #76350
19246
19247 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19248
19249         * Form.cs: 
19250           - Added loading and setting of our new default icon
19251           - Only set icon if window is already created
19252
19253 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19254
19255         * Label.cs:
19256           - Do not explicitly set the foreground and background colors, to
19257             allow inheriting from parents (fixes #76302)
19258           - Use Control's InternalBorderStyle property to deal with borders
19259
19260 2005-10-06  Jackson Harper  <jackson@ximian.com>
19261
19262         * MdiChildContext.cs: Use the new xplatui function to draw a
19263         reversible rect.
19264
19265 2005-10-06  Jackson Harper  <jackson@ximian.com>
19266
19267         * Form.cs: Add the parent before creating the child context cause
19268         we need the parent when setting up the child.
19269
19270 2005-10-06  Jackson Harper  <jackson@ximian.com>
19271
19272         * FolderBrowserDialog.cs: redo the tree population code so a
19273         second thread isn't used. Should be a lot faster and more stable
19274         now.
19275
19276 2005-10-05  Jackson Harper  <jackson@ximian.com>
19277
19278         * TreeView.cs: There are no expand/collapse boxes if the node has
19279         no children.
19280
19281 2005-10-05  Jackson Harper  <jackson@ximian.com>
19282
19283         * X11DesktopColors.cs: Get menu colours for the gtk theme.
19284
19285 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
19286
19287         * FileDialog.cs: Fix InitialDirectory
19288
19289 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
19290
19291         * ComboBox.cs:
19292                 - Fixes changing between styles
19293                 - Fixes simple mode
19294                 - Fixes last item crashing when navigating with keyboard
19295
19296 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
19297
19298         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
19299
19300 2005-10-05  Jackson Harper  <jackson@ximian.com>
19301
19302         * TreeView.cs: If updating the root node do a full refresh.
19303         * TreeNode.cs: The root node should be expanded by default. Also
19304         added a utility prop to tell if we are the root node.
19305         * TreeNodeCollection.cs: Only refresh if the node we are being
19306         added to is expanded. Also added a comment on a potential
19307         optimization.
19308         
19309 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
19310
19311         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
19312           in dispose method. Fixes #76330
19313
19314 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
19315
19316         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
19317
19318                 - Implements vertical and horizontal scrolling using XplatUI
19319                 - Fixes keyboard navagation
19320                 - Fixes EnsureVisible
19321                 - Drawing fixes
19322                 - Handles and draws focus properly
19323
19324
19325 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
19326
19327         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
19328           Create handle. NET_2_0: Destroy handle when value is null.
19329
19330 2005-10-03  Jackson Harper  <jackson@ximian.com>
19331
19332         * ScrollBar.cs: My last scrollbar patch was broken. This is a
19333         revert and a new patch to prevent the thumb from refreshing so
19334         much.
19335
19336 2005-10-02  Jackson Harper  <jackson@ximian.com>
19337
19338         * ScrollBar.cs: Don't update position if it hasn't actually
19339         changed. This occurs when you hold down the increment/decrement
19340         buttons and the thumb gets to the max/min.
19341
19342 2005-10-01  Jackson Harper  <jackson@ximian.com>
19343
19344         * Form.cs:
19345         * MdiChildContext.cs:
19346         * MdiClient.cs: Implement ActiveMdiChild in Form.
19347
19348 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
19349
19350         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
19351
19352 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
19353
19354         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
19355           be found
19356
19357 2005-09-30  Jackson Harper  <jackson@ximian.com>
19358
19359         * ListBox.cs: Don't do a full refresh unless some data has
19360         actually changed.
19361
19362 2005-09-30  Jackson Harper  <jackson@ximian.com>
19363
19364         * TreeView.cs: Make sure that the checkboxes size is factored in
19365         even when not visible.
19366
19367 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19368
19369         * FileDialog.cs: Fix Jordi's build break
19370
19371 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19372
19373         * FileDialog.cs: 
19374                 - Use standard the Windows colours for the combobox as espected
19375                 - Dispose objects that use resouces when no longer need them
19376
19377 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19378
19379         * X11DesktopColors.cs: Initial incomplete implementation
19380         * XplatUIX11.cs: Added call to initialize X11DesktopColors
19381
19382 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
19383
19384         * Theme.cs: 
19385           - Switched Theme color names to match the names defined in 
19386             System.Drawing.KnownColors. Life's hard enough, no need to make 
19387             it harder.
19388           - Added setters to all theme color properties so themes can set
19389             their color schemes. The setters also propagate the color changes
19390             to System.Drawing.KnownColors via reflection
19391         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
19392           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
19393           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
19394           use the new, more logical theme color names
19395         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
19396           post-NT colors
19397         * ThemeWin32Classic.cs:
19398           - Removed code to set the old classic Windows colors. Instead it
19399             now relies on the colors returned by System.Drawing.KnownColors
19400             which will be either modern static colors (Unix) or colors
19401             read from the user's configuration (Win32)
19402           - Updated to use the new, more logical theme color names
19403           - Switched DataGrid drawing code to use only Theme colors instead of
19404             a mix of System.Drawing.KnownColors and Theme colors
19405           - DrawFrameControl(): Removed code that fills the button area, the
19406             fill would overwrite any previous fill done by a control. This
19407             fixes bug #75338 
19408           - Added DrawReversibleRectangle() stub
19409         * ScrollableControl.cs: Set visible state to false when scrollbars
19410           are removed (pdn fix)
19411         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
19412           DrawReversibleRectangle() method to allow drawing primitive 
19413           'rubber bands'
19414         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
19415
19416 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19417
19418         * ImageList.cs: Add(Icon): Create handle.
19419
19420 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19421
19422         * ListView.cs:
19423         * ThemeWin32Classic.cs:
19424                 - Fixes detail mode
19425                 - Sets clippings
19426                 - Issues with drawing
19427
19428 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19429
19430         * ImageList.cs: Moved RecreateHandle back to ImageList as event
19431           source has to be the ImageList.
19432
19433 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19434
19435         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
19436
19437 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19438
19439         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
19440
19441 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19442
19443         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
19444
19445 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
19446         * GridItem.cs: Fixed TODOs
19447         * GridItemCollection.cs: Added ICollection interface
19448
19449 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19450
19451         * ImageList.cs: Resize icons when needed.
19452
19453 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
19454
19455         * ListViewItem.cs
19456                 - Fixes GetBounds and returns on screen rects
19457         * ListView.cs:
19458                 - Fixes vertical and horzintal scrolling of items
19459         * ThemeWin32Classic.cs:
19460                 - Fixes drawing
19461                 
19462 2005-09-29  Raja R Harinath  <harinath@gmail.com>
19463
19464         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
19465
19466 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
19467
19468         * ImageList.cs: Added comments about handle creation. Moved Handle,
19469           HandleCreated and OnRecreateHandle implementations to ImageCollection.
19470           Handle is created in Add methods.
19471
19472 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19473          
19474         * DataGridDrawingLogic.cs: 
19475                 - Takes rows into account on Colum calculations
19476                 - Returns the column when clickig
19477         * DataGrid.cs:
19478                 - Fixes default HitTestInfo values
19479                 - Fixes HitTestInfo.ToString
19480                 - Fixes ResetBackColor          
19481         
19482 2005-09-28  Jackson Harper  <jackson@ximian.com>
19483
19484         * MdiChildContext.cs: Obey rules for fixed sized windows (no
19485         sizing or cursor changes). Also added some temp code to draw the
19486         titlebars text (Makes dev a little easier).
19487
19488 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19489
19490         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
19491
19492 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19493          
19494         * ListBox.cs: Fixes bug 76253
19495
19496 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19497
19498         * ImageList.cs: Added comments about the current implementation. Added
19499           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
19500           Format32bppArgb to preserve transparency and can use Graphics.FromImage
19501           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
19502           with Bitmap.LockBits for better performance. Revised the whole file to
19503           match MS.NET behaviour and provide better performance. Non-public
19504           interface members are calling public members even when they throw
19505           NotSupportedException for better maintainability. Moved ColorDepth,
19506           ImageSize, ImageStream and TransparentColor implementations to
19507           ImageCollection for better performance as these properties are not used
19508           by ImageList.
19509         * ImageListStreamer.cs: Added a new internal constructor that takes an
19510           ImageList.ImageCollection and serializes Images based on
19511           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
19512           match ImageList property name.
19513
19514 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
19515
19516         * ListBox.cs: Fixes IndexFromPoint for last item
19517
19518 2005-09-27  Jackson Harper  <jackson@ximian.com>
19519
19520         * Form.cs: Set the position of new mdi children correctly.
19521
19522 2005-09-27  Jackson Harper  <jackson@ximian.com>
19523
19524         * MdiClient.cs: New mdi children need to be added to the back of
19525         the controls collection so the zorder is set correctly. Also add a
19526         count of all the child windows that have been created.
19527
19528 2005-09-27  Jackson Harper  <jackson@ximian.com>
19529
19530         * Form.cs (CreateParams): Setup MDI forms correctly.
19531
19532 2005-09-27  Jackson Harper  <jackson@ximian.com>
19533
19534         * MdiChildContext.cs:
19535         * MonthCalendar.cs:
19536         * UpDownBase.cs:
19537         * ListBox.cs:
19538         * ListView.cs:
19539         * TextBoxBase.cs:
19540         * TreeView.cs:
19541         * ScrollableControl.cs:
19542         * ComboBox.cs: Add implicit controls using the new implict control
19543         functionality in ControlCollection. Also try to block multiple
19544         control add in a suspend/resume layout to save some cycles.
19545         
19546 2005-09-27  Jackson Harper  <jackson@ximian.com>
19547
19548         * Control.cs: Add functionality to the controls collection to add
19549         'implicit controls' these are controls that are created by the
19550         containing control but should not be exposed to the user. Such as
19551         scrollbars in the treeview.
19552         * Form.cs: The list var of the ControlsCollection is no longer
19553         available because of the potential of implicit controls getting
19554         ignored by someone accessing the list directly.
19555
19556 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
19557
19558         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
19559           loose it's parent. (Fixed bug introduced in r49103 when we added
19560           setting the child parent to null on Remove)
19561
19562 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
19563
19564         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
19565         * Splitter.cs: Added missing attributes for BorderStyle property.
19566         * TextBoxBase.cs: Marked Calculate* methods internal.
19567         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
19568         MS.NET.
19569
19570 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
19571          
19572         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
19573
19574 2005-09-25  Jackson Harper  <jackson@ximian.com>
19575
19576         * TreeView.cs: Update the node bounds correctly regardless of
19577         whether the node is visible.
19578
19579 2005-09-25  Jackson Harper  <jackson@ximian.com>
19580
19581         * ImageList.cs: Don't dispose the image after it is added to the
19582         image list. Only reformat images that need to be resized.
19583
19584 2005-09-25  Jackson Harper  <jackson@ximian.com>
19585
19586         * ImageList.cs: Don't set the format when changing the image.
19587
19588 2005-09-25  Jackson Harper  <jackson@ximian.com>
19589
19590         * TreeView.cs: We can't just assume the node has a font. Use the
19591         treeviews font if no node font is available.
19592
19593 2005-09-25  Jackson Harper  <jackson@ximian.com>
19594
19595         * TreeView.cs: Allow the scrollbars to be reset with negative
19596         values.
19597         - Don't add scrollbars to negative sized windows.
19598
19599 2005-09-23  Jackson Harper  <jackson@ximian.com>
19600
19601         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
19602         old Mono.Posix. Also remove some stray code that shouldn't have
19603         been committed.
19604
19605 2005-09-23  Jackson Harper  <jackson@ximian.com>
19606
19607         * TreeView.cs: Attempt at proper sizing of the horizontal
19608         scrollbar. Also don't resize the scrollbars unless they are
19609         visible.
19610
19611 2005-09-23  Jackson Harper  <jackson@ximian.com>
19612
19613         * TreeView.cs: We don't need to expand the invalid area when the
19614         selection changes, as this is all drawn in the node's bounding
19615         box. The area needs to be expanded (previous typo was contracting
19616         it) when the focus rect moves.
19617
19618 2005-09-23  Jackson Harper  <jackson@ximian.com>
19619
19620         * TreeView.cs: Display the selection box under the correct
19621         circumstances. We were rendering white text with no selection box
19622         before.
19623
19624 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
19625
19626         * TextControl.cs(Split): Now updates selection start/end if it points 
19627           into a line that's being split. Fixes a FIXME and bug #75258
19628
19629 2005-09-23  Jackson Harper  <jackson@ximian.com>
19630
19631         * Binding.cs:
19632         * ListControl.cs: Don't use the path when retrieving binding
19633         managers from the binding context. My bat sense tells me that the
19634         path is only used on insertion.
19635
19636 2005-09-22  Jackson Harper  <jackson@ximian.com>
19637
19638         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
19639
19640 2005-09-22  Jackson Harper  <jackson@ximian.com>
19641
19642         * Splitter.cs: There are special cursors used for splitting.
19643         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
19644
19645 2005-09-22  Jackson Harper  <jackson@ximian.com>
19646
19647         * Splitter.cs: Change the cursor appropriately when the splitter
19648         is moused over, so the user actually knows there is a splitter
19649         there.
19650
19651 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19652
19653        * Label.cs : Fix ToString method to give same output as MS.NET
19654
19655 2005-09-22  Jackson Harper  <jackson@ximian.com>
19656
19657         * TreeView.cs: Create the scrollbars when the handle is created
19658         and add them right away, just make them invisble. Also account for
19659         the window being shrunk vertically to the point that the vert
19660         scrollbar needs to be added.
19661         - Remove some 0.5 adjustments to get around anti aliasing issues.
19662         
19663 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
19664          
19665         * MainMenu.cs: Fixes default value
19666         * MenuItem.cs: Fixes default value
19667
19668 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
19669
19670         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
19671
19672 2005-09-21  Jackson Harper  <jackson@ximian.com>
19673
19674         * Control.cs: Don't try to set the border style on the window if
19675         it hasn't been created. When the window is created the border
19676         style will be used.
19677
19678 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19679
19680         * Control.cs (Update): Don't call XplatUI if we don't have a
19681           window handle yet
19682
19683 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19684
19685         * ContainerControl.cs: Instead of throwing an exception, print
19686           a one-time warning about Validate not being implemented
19687         * XplatUIWin32.cs: Removed debug output
19688
19689 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19690
19691         * Control.cs: Only set XplatUI background if we expect the windowing
19692           system to handle the background. This stops controls that draw their
19693           own background from flickering
19694
19695         * XplatUIX11.cs: Support custom visuals and colormaps for window 
19696           creation. This allows, amongst other things, using MWF X11 windows 
19697           with OpenGL.
19698
19699 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19700
19701         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
19702           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
19703           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
19704           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
19705           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
19706           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
19707           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
19708           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
19709           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
19710           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
19711           GridColumnStylesCollection.cs, 
19712           IDataGridColumnStyleEditingNotificationService.cs,
19713           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
19714           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
19715           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
19716           TreeNodeCollection.cs, AmbientProperties.cs, 
19717           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19718           DataObject.cs, ErrorProvider.cs, Splitter.cs,
19719           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
19720           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
19721           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
19722           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
19723           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
19724           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
19725           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
19726           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
19727           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
19728           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
19729           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
19730           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
19731           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
19732           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
19733           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
19734           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
19735           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
19736           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
19737           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
19738           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
19739           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
19740           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
19741           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
19742           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
19743           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
19744           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
19745           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
19746           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
19747           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
19748           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
19749           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
19750           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
19751           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
19752           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
19753           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
19754
19755 2005-09-21  Jackson Harper  <jackson@ximian.com>
19756
19757         * TreeNode.cs: Call Before/After Expand not Collapse when
19758         expanding.
19759
19760 2005-09-20  Jackson Harper  <jackson@ximian.com>
19761         
19762         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
19763
19764 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19765          
19766         * ListViewItem.cs:
19767                 - Fixes bug 76120
19768                 - Fixes proper storing of subitems
19769                 - Fixes not updated items
19770
19771 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
19772
19773         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
19774           things if our window handle isn't created yet. Also disabled 
19775           debug for TextBoxBase
19776
19777 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
19778
19779         * MenuAPI.cs: Remove filtering of events to allow menu usage
19780
19781 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19782
19783         * Cursor.cs: Allow null to be passed to Cursor.Current.
19784
19785 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
19786
19787         * ThemeWin32Classic.cs:
19788           - Change some private methods/fields to protected virtual so that 
19789             they can be accessed and overriden in derived classes
19790           - First refactoring of some methods. Derived themes now don't 
19791             need to duplicate the complete code from ThemeWin32Classic
19792         * ThemeNice.cs:
19793           - Added nice StatusBar
19794           - Derive from ThemeWin32Classic and not Theme
19795           - Removed duplicate ThemeWin32Classic code
19796
19797 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19798
19799         * Control.cs (ControlCollection.Add): If the value null is passed
19800         the control is ignored. 
19801
19802         Optimize this loop.
19803
19804 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
19805
19806         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
19807           PostQuitMessage state.
19808         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
19809
19810 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
19811
19812         * Application.cs: Our constructor will never get called, move 
19813           initialization to fields; fixes bug #75933
19814
19815 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19816
19817         * FileDialog.cs :
19818                 - Allow files to be selected properly using file name
19819                 combo box.
19820                 - Add ability to change diretory (absolute / relative)
19821                 using file name combo box.
19822
19823 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19824          
19825         * ListBox.cs: 
19826                 - Fixes Multicolumn listboxes item wrong calculations
19827                 - Allows to click when only one item is in the listbox
19828                 - Fixes crash when no items using keyboard navigation
19829
19830 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
19831
19832         * ComboBox.cs: Reverted almost everything from the latest patch which
19833           broke ComboBox
19834
19835 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
19836         
19837         * ToolTip.cs:
19838                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
19839         * ComboBox.cs:
19840                 - When DropDownStyle is Simple, it does not show scrollbar 
19841                 to the last item of the list.
19842                 - When DropDownStyle is Simple, it crashed when the list was 
19843                 scrolled down with the down cursor key.
19844                 - Fixed a bug that when DropDownStyle is DropDownList, the 
19845                 selected item was not shown.
19846                 - The position of the selected item was not preserved when 
19847                 the next dropdown happened.
19848         * ThemeWin32Classic.cs:
19849                 - Items were wrapped at the right end.
19850         * CheckedListBox.cs:
19851                 - Fixed Add method
19852         * ListBox.cs:
19853                 - Items should be fully shown.
19854                 - When resizing and vertical scrollbar disappeared, the item 
19855                 of index 0 should be on the top of the list.
19856                 - GetItemRectangle should consider the size of ver. scrollbar
19857         * StatusBar.cs:
19858                 - SizingGrip area should not be allocated when it is not 
19859                 displayed.
19860                 - Now it reflects MinWidth of the containing panel and 
19861                 fixed a crash that happens when its width becomes so small.
19862
19863 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19864
19865         * CheckedListBox.cs: Fixes bug 76028
19866         * ListBox.cs: Fixes bug 76028
19867
19868 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19869
19870         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
19871         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
19872
19873 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
19874
19875         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
19876
19877 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19878
19879         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
19880
19881 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19882
19883         * IRootGridEntry.cs: Added
19884         * PropertyGridCommands.cs: Added
19885         * PropertiesTab.cs: Added missing methods and property
19886         * PropertyGridView.cs: Made class internal
19887         * PropertyGridTextBox.cs: Made class internal
19888
19889 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19890
19891         * MimeIcon.cs: Try to check some other environment variables
19892           if "DESKTOP_SESSION" returns "default"
19893
19894 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19895
19896         * ThemeNice.cs: Corrected background colors (e.g. menus)
19897         * ColorDialog.cs: Use correct background colors for controls
19898
19899 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19900
19901         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
19902
19903 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
19904
19905         * RichTextBox.cs: Added initial implementation
19906         * lang.cs: Removed. Was accidentally checked in long time ago
19907         * TODO: Removed. Contents were obsolete
19908
19909 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19910                                                                                 
19911         * PropertiesTab.cs : Added
19912
19913 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19914                                                                                 
19915         * PropertyGrid.cs : Update
19916         * PropertyGridView.cs : Update
19917         * System.Windows.Forms.resx : Added images and strings
19918
19919 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
19920
19921         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
19922  
19923 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
19924
19925         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
19926           a busy loop right after the Ungrab the X11 display is otherwise 
19927           blocked
19928
19929 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
19930
19931         * ThemeWin32Classic.cs: Optimise the use of clipping
19932
19933 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
19934
19935         * DataGrid.cs: fixes recursion bug
19936
19937 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
19938
19939         * ThemeNice.cs: 
19940           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
19941           - Cleanup
19942
19943 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
19944
19945         * ThemeNice.cs: Draw nice ProgressBars
19946
19947 2005-09-01  Miguel de Icaza  <miguel@novell.com>
19948
19949         * VScrollBar.cs: Another buglet found by Aaron's tool. 
19950
19951         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
19952         bug finder.
19953
19954 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
19955
19956         * ThemeNice.cs:
19957           - Added nicer menu drawing
19958           - Updated DrawTab
19959           - some refactoring
19960
19961 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19962
19963         * CreateParams.cs (ToString): Made output match MS
19964         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
19965             handle is already created (to avoid forcing window creation)
19966         * XplatUIX11.cs: Set window text to caption after creating window,
19967           in case Text was set before window was created
19968         * Form.cs: Use this.Text instead of a static string as caption
19969
19970 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19971
19972         * NotifyIcon.cs: Don't set the window to visible; this screws
19973           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
19974           OnPaint without a bitmap)
19975         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
19976           happen very often anyway; we could add the check to the WM_PAINT 
19977           event generation code
19978
19979 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19980
19981         * NotifyIcon.cs: Fill the icon area with a background color, to 
19982           avoid 'residue' when transparent icons are drawn
19983         * XplatUIX11.cs:
19984           - Handle whole_window == client_window when destroying windows
19985           - SystrayAdd(): Set client_window to whole_window value to
19986             get mouse and other events passed to NotifyIcon
19987
19988 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19989
19990         * Form.cs: Set proper default for Opacity property
19991         * NotifyIcon.cs:
19992           - ShowSystray(): Don't bother creating telling the OS
19993             about the systray item if no icon is provided
19994           - Now handles WM_NCPAINT message to deal with whole/client window
19995             split
19996           - Create window as visible to not get caught by Expose optimization
19997         * Hwnd.cs: Removed debug message
19998         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
19999           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
20000             PaintEventStart/End to use new client argument
20001         * TextBoxBase.cs:
20002           - Commented out debug messages
20003           - Switched PaintEventStart/End to use new client argument
20004         * XplatUI.cs: Added client window bool to PaintEventStart()/
20005           PaintEventEnd() calls, to support drawing in non-client areas
20006         * XplatUIDriver.cs: 
20007           - Added client window bool to PaintEventStart()/PaintEventEnd() 
20008             calls, to support drawing in non-client areas
20009           - Added conditional compile to allow using MWF BeginInvoke 
20010             on MS runtime
20011         * XplatUIX11.cs:
20012           - Added some conditional debug output
20013           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
20014             whole/client window split
20015           - Implemented handling of client argument to PaintEventStart()/End()
20016         * Control.cs:
20017           - Throw exception if BeginInvoke() is called and the window handle
20018             or one of the window's parent handles is not created
20019           - Added conditional compile to allow using MWF BeginInvoke on
20020             MS runtime
20021           - get_Parent(): Only sets parent if handle is created. This avoids
20022             forcing window handle creation when parent is set.
20023           - Now fires Layout and Parent changed events in proper order
20024           - Switched to use Handle instead of window.Handle for Z-Order setting,
20025             the get_Parent() patch above causes us to possibly get null for 'window'
20026           - Implemented handling of client argument to PaintEventStart()/End()
20027           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
20028             default handling)
20029           - Now sends a Refresh() to all child windows when Refresh() is called
20030
20031 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
20032
20033         * Form.cs: Added (non-functional) Opacity property
20034         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
20035
20036 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
20037         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
20038           use export MONO_THEME=nice to activate it.
20039           Currently supported controls:
20040           - Button
20041           - ComboBox
20042           - ScrollBar
20043           - TabControl (TabAlignment.Top only, other will follow)
20044         * ThemeEngine.cs: Add theme nice
20045         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
20046           if enabled
20047
20048 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
20049
20050         * Splitter.cs: Resize docked control and its neighbor.
20051
20052 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
20053         -- Making Windows with Menus layout correctly --
20054         * Form.cs : The first leg of the fix
20055                 Menu setter - adjust Client Size as needed to make space for the menu
20056                 SetClientSizeCore - doesn't call base version to be able to pass the 
20057                         menu handle to XplatUI.CalculateWindowRect
20058         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
20059         * XplatUIX11.cs: The critical second leg of the fix
20060                 GetWindowPos needs to use a recalculated client_rect
20061                 so that resizing the window doesn't break layout of child controls. 
20062                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
20063                 Lots of \t\n killed
20064
20065 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
20066
20067         * Label.cs: Now properly recalculates width and height on Font and Text
20068           changes if AutoSize is set
20069
20070 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
20071         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
20072
20073 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
20074
20075         * ImageList.cs: Makes ToString method compatible with MS
20076
20077 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
20078
20079         * MenuAPI.cs: fixes bug 75716
20080
20081 2005-08-11 Umadevi S <sumadevi@novell.com>
20082         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
20083
20084 2005-08-11 Umadevi S <sumadevi@novell.com>
20085         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
20086
20087 2005-08-10  Umadevi S <sumadevi@novell.com>
20088         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
20089
20090 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
20091
20092         * Menu.cs: fixes bug 75700
20093         * MenuAPI.cs: fixes navigation issues
20094
20095 2005-08-09  Umadevi S <sumadevi@novell.com>
20096         * CheckedListBox.cs - simple fix for GetItemChecked.
20097
20098 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
20099
20100         * ComboBox.cs: Serveral fixes
20101         * ListBox.cs: Serveral fixes
20102
20103 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
20104
20105         * ComboBox.cs: Fixes FindString methods and GetItemHeight
20106         * ListBox.cs: Fixes FindString methods
20107
20108 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
20109
20110         * DataGrid.cs: fixes bugs exposed by new tests
20111
20112 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
20113
20114         * Mime.cs: Compile Mono assembly references only if compiling
20115           with Mono (Allows to build with VS.Net again)
20116
20117 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
20118
20119         * Control.cs (PaintControlBackground): Draw background image
20120         corrrectly.
20121         (CheckForIllegalCrossThreadCalls): Stubbed.
20122         
20123         * Form.cs (OnCreateControl): Center when should be centered.
20124         
20125         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
20126
20127 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
20128
20129         * Binding.cs: Binding to properties should be case unsensitive
20130
20131 2005-07-18 vlindos@nucleusys.com
20132
20133         * DataGrid.cs: fixes setmember order
20134
20135 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
20136
20137         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
20138         * FileDialog.cs: FileDialog is now resizable and uses the new
20139           MimeIconEngine
20140
20141 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
20142
20143         * DataGridTextBoxColumn.cs: default value
20144         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
20145         * GridTableStylesCollection.cs: fixes checking MappingName
20146         * DataGridDrawingLogic.cs: fixes drawing logic issues
20147         * DataSourceHelper.cs: rewritten to make compatible with more data sources
20148         * DataGrid.cs: fixes    
20149
20150 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
20151
20152         * MimeGenerated.cs: Use case sensitive comparer for
20153           NameValueCollections
20154
20155 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
20156
20157         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
20158         * ThemeWin32Classic.cs: bug fixes, code refactoring
20159         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
20160         * DataGrid.cs: bug fixes, code refactoring
20161         * DataGridTextBox.cs: bug fixes, code refactoring
20162         * DataGridColumnStyle.cs:  bug fixes, code refactoring
20163         * Theme.cs:  bug fixes, code refactoring
20164
20165 2005-07-01  Peter Bartok  <pbartok@novell.com> 
20166
20167         * TextControl.cs: Quick fix for the reported crash on ColorDialog
20168           and other text box usage
20169
20170 2005-07-01  Jackson Harper  <jackson@ximian.com>
20171
20172         * TabControl.cs: Make sure the bottom of the tab covers the pages
20173         border.
20174
20175 2005-06-30  Peter Bartok  <pbartok@novell.com> 
20176
20177         * Form.cs (ShowDialog): Assign owner of the dialog
20178         * TextBoxBase.cs: Always refresh caret size when deleting, caret
20179           might have been moved to a tag with different height
20180
20181 2005-06-30  Jackson Harper  <jackson@ximian.com>
20182
20183         * Form.cs: Don't create an infinite loop when setting focus
20184         * MenuItem.cs: Don't dirty the parents if we don't have any
20185
20186 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
20187
20188         * LibSupport.cs: Rename
20189
20190 2005-06-29  Peter Bartok  <pbartok@novell.com>
20191
20192         * TextBoxBase.cs: Re-align caret after deleting a character
20193         * TextControl.cs:
20194           - DeleteChars(): Ensure that tag covers the provided position
20195           - StreamLine(): Drop reference for dropped tag
20196
20197 2005-06-29  Peter Bartok  <pbartok@novell.com> 
20198
20199         * TextControl.cs: 
20200           - Selections now work properly, anchoring at the initial location
20201             and properly extending in either direction (SetSelectionToCaret(),
20202             SetSelectionStart() and SetSelectionEnd())
20203           - No longer redraws the whole control on selection change, now
20204             calculates delta between previous and new selection and only
20205             invalidates/redraws that area
20206           - Fixed FindPos() math off-by-one errors
20207           - Changed DeleteChars() to verify the provided tag covers the
20208             provided position, selections may have a tag that doesn't cover
20209             the position if the selection is at a tag border
20210           - Fixed off-by-one errors in DeleteChars()
20211           - Added missing streamlining check in DeleteChars() to remove
20212             zero-length tags
20213           - Implemented Invalidate() method, now properly calculates exposures
20214             between two given lines/positions
20215           - Implemented SetSelection()
20216           - Obsoleted and removed FixupSelection()
20217           - Improved RecalculateDocument() logic, removing code duplication
20218
20219 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20220
20221         * LibSupport.cs: changes to match different input/output arguments.
20222
20223 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20224
20225         * LibSupport.cs: added libsupport.so init routine.
20226
20227 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
20228         
20229         * ControlBindingsCollection.cs
20230                 - Throws an exception on null datasource when adding
20231                 - Checks for duplicated bindings when adding
20232
20233 2005-06-28  Jackson Harper  <jackson@ximian.com>
20234
20235         * TreeView.cs (OnKeyDown): Support left and right properly
20236         (navigates as well as expanding and collapsing.
20237         - Add support for Multiply, this expands all the selected nodes
20238         children.
20239         - Fix some tabbing.
20240
20241 2005-06-28  Jackson Harper  <jackson@ximian.com>
20242
20243         * TreeView.cs: Implement keyboard navigation, currently supports,
20244         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
20245         support for toggling checkboxes with the space bar.
20246
20247 2005-06-28  Jackson Harper  <jackson@ximian.com>
20248
20249         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
20250         tree.
20251
20252 2005-06-28  Jackson Harper  <jackson@ximian.com>
20253
20254         * TreeView.cs: Add missing event.
20255
20256 2005-06-27  Peter Bartok  <pbartok@novell.com> 
20257
20258         * TextControl.cs:
20259           - Made line ending size configurable (now allows for counting 
20260             lineendings as \n or \r\n)
20261           - Added margin to viewport to keep caret visible on right side
20262           - Fixed translation routines for line/pos to documentpos to consider
20263             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
20264           - Fixed some line-endings to be unix style
20265           - Fixed Document.FormatText to perform it's calculations 1-based
20266           - Added descriptions for a few methods that might otherwise get 
20267             used wrong
20268           - Added NOTE section with some basic conventions to remember at 
20269             the top of the file
20270           - Major fixup for RichTextBox selection drawing:
20271             * Fixed crashes when multiple tags on a single line were selected
20272             * fixed selection box drawing not overlaying text
20273             * fixed bogus offset calculation for tags not starting at index 1
20274             * Switched behaviour from using multiple Substrings of a 
20275               StringBuilder.ToString() to using multiple 
20276               StringBuilder.ToString(start, length) statements, hoping this is
20277               faster (kept original version commented out in the code, in case
20278               original version was faster)
20279         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
20280           alignment != Left
20281         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
20282           call it as well
20283
20284 2005-06-27  Jackson Harper  <jackson@ximian.com>
20285
20286         * TabControl.cs: Move to the left and right with the arrow
20287         keys. These keys don't cycle beyond first and last like
20288         tab. Refresh all the tabs when scrolling them to the left or
20289         right.
20290
20291 2005-06-27  Jackson Harper  <jackson@ximian.com>
20292
20293         * TabControl.cs:
20294           - ToString: Added method
20295           - CreateParams: Remove TODO and comment
20296           - OnKeyDown: Cycle through bounds properly.
20297           - SelectedIndex: Scroll to the right or left if we need to
20298           display the newly selected tab.
20299
20300 2005-06-23  Jackson Harper  <jackson@ximian.com>
20301
20302         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
20303         set.
20304
20305 2005-06-23  Jackson Harper  <jackson@ximian.com>
20306
20307         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
20308         CTRL-SHIFT-TAB, and HOME, END are there any others?
20309
20310 2005-06-23  Jackson Harper  <jackson@ximian.com>
20311
20312         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
20313
20314 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20315         
20316         * DataGridTextBoxColumn.cs: fixes and enhancements
20317         * ThemeWin32Classic.cs: fixes and enhancements
20318         * DataGridBoolColumn.cs:  fixes and enhancements
20319         * DataGridDrawingLogic.cs:  fixes and enhancements
20320         * CurrencyManager.cs: fixes and enhancements
20321         * DataGrid.cs: fixes and enhancements
20322         * DataGridColumnStyle.cs:  fixes and enhancements
20323
20324 2005-06-22  Jackson Harper  <jackson@ximian.com>
20325
20326         * TabControl.cs: Add some missing methods that just call into the
20327         base. Make the TabPageCollection's IList interface behave in the
20328         same manner as the MS implementation.
20329
20330 2005-06-22  Peter Bartok  <pbartok@novell.com> 
20331
20332         * TextControl.cs: Added sanity check
20333         * TextBoxBase.cs: 
20334           - Fixed wrapping behaviour, don't set wrap on single line controls
20335             (this fixes the breakage of colordialog introduced in an earlier
20336              checkin)
20337           - Added rudimentary support for autoscrolling right-aligned controls
20338             (still needs fixing, also, center alignment scroll is missing)
20339
20340 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20341         
20342         * ScrollBar.cs: Fixes thumbpos on Maximum values
20343
20344 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
20345         
20346         * PropertyGridView.cs: Pass context information to UITypeEditors 
20347
20348 2005-06-21  Peter Bartok  <pbartok@novell.com> 
20349
20350         * TextBoxBase.cs:
20351           - Now calling PositionCaret with absolute space coordinates
20352           - Enabled vertical scrolling
20353           - Better tracking of scrollbar changes, tied into WidthChange
20354             event
20355           - Improved cursor tracking
20356           - Removed debug output
20357         * TextControl.cs:
20358           - PositionCaret coordinates are now works in absolute space, not 
20359             the canvas
20360           - Improved tracking of document size
20361           - Added events for width and height changes
20362
20363 2005-06-21  Peter Bartok  <pbartok@novell.com>
20364
20365         * Form.cs: Set focus to active control when form is activated
20366         * TextControl.cs: 
20367           - Added word-wrap functionality to RecalculateLine() 
20368           - Added some short function descriptions for VS.Net to aid in
20369             writing dependent controls
20370           - Added Caret property, returning the current coords of the caret
20371           - Added ViewPortWidth and ViewPortHeight properties
20372           - Added Wrap property
20373           - Added CaretMoved event
20374           - Removed some old debug code
20375           - Split() can now create soft splits
20376           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
20377           - Added method to format existing text
20378           - Fixed size/alignment calculations to use viewport
20379           - RecalculateDocument now can handle changing line-numbers while
20380             calculating lines
20381
20382         * TextBox.cs:
20383           - Added some wrap logic, we don't wrap if alignment is not left
20384           - Added casts for scrollbar var, base class switched types to
20385             also support RichTextBoxA
20386           - Implemented handling of scrollbar visibility flags
20387
20388         * TextBoxBase.cs:
20389           - Switched scrollbars type to RichTextBoxScrollBars to support
20390             RichTextBox
20391           - Added tracking of canvas width/height
20392           - Switched scrollbars to be not selectable (to keep focus on text)
20393           - Added central CalculateDocument() method to handle all redraw
20394             requirements
20395           - Added ReadOnly support
20396           - Added WordWrap support
20397           - Fixed handling of Enter key (we now treat it as a DialogKey)
20398           - Fixed caret positioning when h or v scroll is not zero
20399           - Fixed placing/generation of vertical scrollbar
20400           - Added CalculateScrollBars() method to allow updating scrollbar
20401             limits and visibility
20402           - Fixed handling of horizontal scroll
20403           - Added handling of vertical scroll
20404           - Implemented auto-'jump' when caret moves to close to a left or
20405             right border and there is text to be scrolled into view (currently
20406             there's the potential for a stack overflow, until a bug in
20407             scrollbar is fixed)
20408
20409 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
20410         
20411         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
20412
20413 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
20414
20415         * Mime.cs:
20416         - added inodes.
20417         - return application/x-zerosize for files with size zero
20418           (if no extension pattern matches).
20419         - check matches collection for strings too.
20420         - return only the first mime type if the name value
20421           collection has more than one mime type.
20422
20423 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
20424         
20425         * PropertyGrid.cs: Cleaned up some TODOs
20426         * PropertyGridView.cs: Added support for UITypeEditors
20427
20428 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20429         
20430         * DataGrid.cs: clears cached value
20431
20432 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20433
20434         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
20435         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
20436         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
20437         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
20438         
20439 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
20440
20441         * ThemeWin32Classic.cs: fixes colour
20442
20443 2005-06-15  Peter Bartok  <pbartok@novell.com>
20444
20445         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
20446         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
20447         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
20448         * Control.cs: Added some MWFCategory and MWFDescription attributes
20449         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
20450
20451 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
20452
20453         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
20454         usage
20455
20456 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
20457
20458         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
20459         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
20460         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
20461         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
20462         * DataGrid.cs: default datagrid settings for Default Styles, fixes
20463         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
20464
20465 2005-06-13  Jackson Harper  <jackson@ximian.com>
20466
20467         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
20468         isn't printed when the user enables dropping. (X11 does accept
20469         drops).
20470         
20471 2005-06-13  Jackson Harper  <jackson@ximian.com>
20472
20473         * TreeView.cs: Remove some TODOS.
20474
20475 2005-06-13  Jackson Harper  <jackson@ximian.com>
20476
20477         * Form.cs: Hook into the mdi framework.
20478         * MdiClient.cs: Use the base control collections add method so
20479         parents get setup correctly. Set the default back colour and dock
20480         style.
20481         * MdiChildContext.cs: New class, this bad actor handles an
20482         instance of an MDI window. Right now there is only basic
20483         support. You can drag, close, and resize windows. Minimize and
20484         Maximize are partially implemented.
20485
20486 2005-06-13  Jackson Harper  <jackson@ximian.com>
20487
20488         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
20489         freaky when both vals are negative. NOTE: There are probably other
20490         places in XplatUIX11 that this needs to be done.
20491
20492 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
20493
20494         * DataGrid.cs: implement missing methods, move KeyboardNavigation
20495         * DataGridColumnStyle.cs: fixes signature
20496
20497 2005-06-12  Jackson Harper  <jackson@ximian.com>
20498
20499         * XplatUIX11.cs: Use sizing cursors similar to the ones on
20500         windows.
20501
20502 2005-06-11  Jackson Harper  <jackson@ximian.com>
20503
20504         * StatusBarPanel.cs: Signature cleanups. Implement
20505         BeginInit/EndInit.
20506
20507 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
20508
20509         * DataGridTextBoxColumn.cs: Honors aligment
20510         * GridColumnStylesCollection.cs: Contains is case unsensitive
20511         * GridTableStylesCollection.cs: several fixes
20512         * DataGridTableStyle.cs: default column creation
20513         * DataGridDrawingLogic.cs: fixes
20514         * CurrencyManager.cs: ListName property
20515         * DataGrid.cs: multiple styles support
20516         * DataGridColumnStyle.cs: fixes
20517         
20518
20519 2005-06-10  Peter Bartok  <pbartok@novell.com>
20520
20521         * Control.cs(Select): Moved SetFocus call to avoid potential
20522           loops if controls change the active control when getting focus
20523         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
20524           the up/down buttons
20525
20526 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
20527
20528         * ImageListConverter.cs: Implemented
20529
20530 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20531
20532         * MonthCalendar.cs: Wired in NumericUpDown control for year
20533
20534 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20535
20536         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
20537           DoubleClick events, since they are not meant to be fired.
20538
20539 2005-06-09  Peter Bartok  <pbartok@novell.com>
20540
20541         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
20542           Jonathan's standalone controls into MWF, implemented missing
20543           events, attributes and methods; added xxxAccessible classes
20544         * AccessibleObject.cs: Made fields internal so other classes
20545           can change them if needed
20546
20547 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
20548
20549         * UpDownBase.cs: Complete implementation
20550         * NumericUpDown.cs: Complete implementation
20551         * DomainUpDown.cs: Complete implementation
20552
20553 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
20554
20555         * DataGridTextBoxColumn.cs: drawing fixes
20556         * DataGridCell.cs: fixes ToString method to match MSNet
20557         * DataGridTableStyle.cs: fixes
20558         * DataGridBoolColumn.cs: fixes, drawing
20559         * DataGridDrawingLogic.cs: fixes, new methods
20560         * DataGridTextBox.cs: Keyboard and fixes
20561         * DataGrid.cs:
20562                 - Keyboard navigation
20563                 - Scrolling fixes
20564                 - Row selection (single, multiple, deletion, etc)
20565                 - Lots of fixes
20566         
20567 2005-06-07  Jackson Harper  <jackson@ximian.com>
20568
20569         * ThemeWin32Classic.cs: Clear the background area when drawing
20570         buttons.
20571
20572 2005-06-06  Peter Bartok  <pbartok@novell.com>
20573
20574         * ImageListStreamer.cs: Fixed signature for GetData
20575         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
20576         * ComboBox.cs:
20577           - Added missing ChildAccessibleObject class
20578           - Added missing OnXXXFocus overrides, switched to using those
20579             instead of the event handler
20580         * Control.cs:
20581           - Added Parent property for ControlAccessibleObject
20582           - Fixed signatures
20583           - Fixed attributes
20584           - Added ResetBindings()
20585         * ListBindingConverter.cs: Implemented some methods
20586         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
20587         * ImageList.cs: Implemented basic handle scheme, removed TODOs
20588         * ContainerControl.cs: Fixed signature, now subscribing to the
20589           ControlRemoved event instead of overriding the handler, LAMESPEC
20590         * CurrencyManager.cs: Added missing attribute
20591         * MonthCalendar.cs: Added missing properties
20592
20593 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20594
20595         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
20596         
20597 2005-06-06  Gaurav Vaish and Ankit Jain
20598
20599         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
20600         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
20601         
20602 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20603
20604         * Control.cs: fixes CreateParams Width / Height.
20605
20606 2005-06-05  Peter Bartok  <pbartok@novell.com>
20607
20608         * Win32DnD.cs: Removed compilation warnings
20609
20610 2005-06-05  Peter Bartok  <pbartok@novell.com>
20611
20612         * Control.cs (CreateParams): Since we don't know if one of the
20613           properties we use is overridden, lets make sure if we fail accessing
20614           we continue with a backup plan
20615
20616 2005-06-05  Peter Bartok  <pbartok@novell.com>
20617
20618         * Win32DnD.cs:
20619           - Removed debug output
20620           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
20621             struct
20622           - Plugged resource leak
20623         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
20624           MS size
20625
20626 2005-06-05  Peter Bartok  <pbartok@novell.com>
20627
20628         * XplatUIWin32.cs: Removed DnD code
20629         * Win32DnD.cs: Implemented drop source and drop target functionality
20630
20631 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20632
20633         * UpDownBase.cs: remove duplicate addition of event, enable some code
20634         that was commented out.
20635         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
20636         Validate input when a key is pressed. It works fine now for every
20637         combination of Hexadecimal. Only missing some drawing love when sharing
20638         space with other controls.
20639
20640 2005-06-04  Peter Bartok  <pbartok@novell.com>
20641
20642         * Control.cs:
20643           - We need to pass a window for DragDrop, so enable callback events
20644           - Added DnD callback events when being a DragSource
20645         * XplatUI.cs (StartDrag): Added window handle argument
20646         * XplatUIDriver.cs (StartDrag): Added window handle argument
20647         * QueryContinueDragEventArgs: Made fields internally accessible so
20648           drivers can set them
20649         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
20650           can set them
20651
20652 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
20653
20654         * DataGridTextBoxColumn.cs: column text editing
20655         * DataGridTableStyle.cs: Respect columns styles created by the user
20656         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
20657         * DataGridBoolColumn.cs: bool column editing
20658         * DataGrid.cs: fixes to scrolling, properties, etc
20659         * DataGridTextBox.cs: handle keyboard
20660         * DataGridColumnStyle.cs: fixes
20661
20662 2005-06-02  Jackson Harper  <jackson@ximian.com>
20663
20664         * ImageListStreamer.cs: Somewhat broken implementation of
20665         GetObjectData. The RLE needs some work to match MS properly.
20666
20667 2005-06-02  Jackson Harper  <jackson@ximian.com>
20668
20669         * X11Dnd.cs: Attempting to keep at least one file in MWF
20670         monostyled.
20671
20672 2005-06-02  Peter Bartok  <pbartok@novell.com>
20673
20674         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
20675           that way
20676
20677 2005-06-02  Peter Bartok  <pbartok@novell.com>
20678
20679         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
20680         * XplatUI.cs: Added DoDragDrop() method
20681         * XplatUIDriver.cs: Added DoDragDrop() method
20682
20683 2005-06-02  Jackson Harper  <jackson@ximian.com>
20684
20685         * Splitter.cs: Implement BorderStyle.
20686
20687 2005-06-02  Jackson Harper  <jackson@ximian.com>
20688
20689         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
20690         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
20691         X11 using XDND.
20692
20693 2005-06-02  Peter Bartok  <pbartok@novell.com>
20694
20695         * DataObject.cs:
20696           - Added Data setter
20697           - Fixed broken insertion code for SetData, now also
20698             overwrites any existing entry of the same format name
20699         * Hwnd.cs: Added list of pointers that automatically gets
20700           freed when the window is disposed
20701         * XplatUI.cs: Call driver initialization method when loading
20702           a driver
20703         * Control.cs:
20704           - OnDragLeave takes EventArgs, not DragEventArgs
20705           - Added setting of WS_EX_ACCEPTFILES style when dropping is
20706             supported
20707           - Forces style update when drop state changes
20708         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
20709           not perfect since we cannot (yet) call the IDataObject.GetData()
20710           method, we keep getting 0x80004005 error, dunno why)
20711
20712 2005-06-02  Peter Bartok  <pbartok@novell.com>
20713
20714         * DragEventArgs.cs: Make fields internal so we can cache the
20715           object and re-set the fields from XplatUI
20716
20717 2005-06-02  Jackson Harper  <jackson@ximian.com>
20718
20719         * Control.cs: Add some internal methods so the DnD subsystem can
20720         raise DnD events. Also call into the driver when AllowDrop is set.
20721         * XplatUI.cs:
20722         * XplatUIDriver.cs: New method for setting whether or not a window
20723         is allowed to accept drag and drop messages.
20724                 
20725 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
20726         
20727         * ScrollBar.cs: Make sure that values sent in Scroll events
20728         are always between Maximum and Minimum.
20729
20730 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
20731
20732         * Menu.cs: Call MenuChanged when menuitem visibility has been
20733         changed.
20734         * MenuItem.cs: Rebuild menu when item is (not) visible.
20735         * MainMenu.cs: MainMenu has special MenuChanged.
20736         * Theme.cs: Caption and FrameBorderSize are not fixed.
20737         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
20738         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
20739         * XplatUIX11.cs,
20740         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
20741         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
20742
20743 2005-05-30  Jackson Harper  <jackson@ximian.com>
20744
20745         * DataFormat.cs: We can't statically initialize this stuff because
20746         it calls into the xplatui and could create a loop. So we lazy init
20747         it.
20748
20749 2005-05-28  Jackson Harper  <jackson@ximian.com>
20750
20751         * Control.cs: Proper implementation of Product(Name/Version).
20752
20753 2005-05-27  Jackson Harper  <jackson@ximian.com>
20754
20755         * DataObject.cs: Dont crash if no data is found.
20756
20757 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
20758         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
20759                 as per status page, guessing it should be set to true
20760
20761 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
20762
20763         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
20764         * DataGridTableStyle.cs: set proper formatting text, def header text
20765         * ThemeWin32Classic.cs: new themable paramaters
20766         * DataGridBoolColumn.cs: paint check box, get data, fixes
20767         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
20768         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
20769         * DataGridColumnStyle.cs: fixes
20770         * Theme.cs: new themable paramaters
20771                 
20772 2005-05-26  Peter Bartok  <pbartok@novell.com>
20773
20774         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
20775
20776 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20777         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
20778
20779 2005-05-24  Peter Bartok  <pbartok@novell.com>
20780
20781         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
20782           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
20783           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
20784           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
20785           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
20786           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
20787           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
20788           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
20789           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
20790           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
20791           missing attributes, etc
20792         * DataGridPreferredColumnWidthTypeConverter.cs: Added
20793
20794 2005-05-24  Peter Bartok  <pbartok@novell.com>
20795
20796         * Help.cs: Added, implemented trivial functions, throws up MessageBox
20797           when user tries to get help
20798         * DataObject.cs, DataFormats.cs, LinkArea.cs,
20799           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
20800           to suppress warnings
20801         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
20802           avoid unreachable code warning
20803
20804 2005-05-20  Peter Bartok  <pbartok@novell.com>
20805
20806         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
20807
20808 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20809
20810         * DataGridTextBoxColumn.cs: Basic painting methods
20811         * DataGridTableStyle.cs: Set table style in the column
20812         * ThemeWin32Classic.cs: Use Theme for colors
20813         * DataGridDrawingLogic.cs: Implement more drawing
20814         * DataGrid.cs: drawing, theming, enhacements, fixes
20815         * DataGridColumnStyle.cs: fixes, drawing
20816         * Theme.cs: theming for Datagrid
20817
20818 2005-05-20  Peter Bartok  <pbartok@novell.com>
20819
20820         * Cursor.cs: Implemented GetObjectData() method
20821
20822 2005-05-20  Peter Bartok  <pbartok@novell.com>
20823
20824         * Cursors.cs: Added setting of cursor name
20825         * Cursor.cs:
20826           - Implemented constructors
20827           - Implemented Draw and DrawStretched
20828           - Implemented Current property
20829           - Implemented == and != operators
20830           - Implemented Dispose()
20831           - Implemented ToString
20832           - Added missing attributes
20833         * XplatUIX11.cs:
20834           - Added missing reset for OverrideCursor when DoEvents is called
20835           - Fixed creation of cursor, logic was wrong
20836         * XplatUIWin32.cs:
20837           - Added missing reset for OverrideCursor when DoEvents is called
20838           - Fixed creation of cursor, bit arrays were swapped
20839         * Clipboard.cs: Removed obsolete MonoTODO attribute
20840
20841 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20842
20843         * ComboBox.cs: fixes OnSelectedItemChanged
20844         * ControlBindingsCollection.cs: fixes item range check
20845
20846 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20847
20848         * UpDownBase.cs:
20849                 - Calc preferred height properly
20850                 - Implement missing properties
20851                 
20852         * NumericUpDown.cs: Implement missing events
20853
20854 2005-05-19  Jackson Harper  <jackson@ximian.com>
20855
20856         * TabControl.cs: New method that resizes the tab pages before
20857         redrawing them. This as needed as the control is double buffered
20858         and sizing will not be recalculated unless ResizeTabPages is
20859         called.
20860         * TabPage.cs: Set base.Text instead of Text in the constructor so
20861         that UpdateOwner does not get called. Use the new Redraw method of
20862         TabControl instead of Refresh so the sizing is recalculated.
20863         * ThemeWin32Classic.cs: Draw the text for button tabs.
20864
20865 2005-05-19  Jackson Harper  <jackson@ximian.com>
20866
20867         * Control.cs: Paint control background images. Fix typo where
20868         PaintControlBackground was not getting called correctly.
20869
20870 2005-05-19  Peter Bartok  <pbartok@novell.com>
20871
20872         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
20873           I can investigate, apparently I broke FileDialog
20874
20875 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
20876
20877         * AxHost.cs: Some simple properties.
20878         * Control.cs: window must be accessible after ctor.
20879         * Form.cs: Added TransparencyKey property.
20880         * TextBoxBase.cs: Implemented Clear. Text property can be null.
20881         * XplatUIWin32.cs: SetBorderStyle implemented.
20882
20883 2005-05-18  Peter Bartok  <pbartok@novell.com>
20884
20885         * DataObject.cs: Entries are not global but particular to the
20886           DataObject, now it behaves that way
20887         * XplatUIWin32.cs: Implemented Clipboard methods
20888         * Clipboard.cs: Implemented
20889         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
20890         * XplatUIOSX.cs: Updated to final clipboard prototypes
20891         * XplatUIX11.cs: Implemented Clipboard methods
20892         * XplatUIDriver.cs: Updated to final clipboard prototypes
20893         * XplatUIStructs.cs:
20894           - Added BITMAPINFOHEADER struct
20895           - Added ClipboardFormats enum
20896         * X11Structs.cs:
20897           - Added ClipboardStruct
20898           - Added Atom enum items for clipboard types
20899           - Fixed atom types for Selection event structures
20900         * DataFormats.cs:
20901           - Added internal properties and methods for drivers to enumerate
20902             all known formats
20903           - Switched initialization method to allow drivers to assign their
20904             own IDs even for the MS predefined clipboard IDs
20905         * XplatUI.cs: Updated to final clipboard interface
20906
20907 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20908         * PropertyGridView.cs: Fixed compiler warnings.
20909
20910 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20911         * PropertyGrid.cs: Added some event calls
20912         * PropertyGridView.cs: Change drawing code to use double buffering
20913         * PropertyGridTextBox.cs: Changed Text property name
20914         * GridItem.cs: Added Bounds property.
20915         * GridEntry.cs: Added Bounds property.
20916
20917 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
20918
20919         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
20920         since GetType() may not return the correct type if the object is
20921         a remoting proxy.
20922
20923 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
20924
20925         * TreeNodeCollection.cs: fixes get/set item ranges
20926         
20927 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20928
20929         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
20930                 
20931 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20932
20933         * ComboBox.cs: Fix item range comparation
20934         * ListView.cs: Fix item range comparation
20935
20936 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
20937
20938         * FontDialog.cs:
20939           - Clear example panel when OnPaint is called
20940           - Better solution for displaying the example panel text
20941           - Select default indexes in the ListBoxes
20942
20943 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20944
20945         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
20946
20947 2005-05-11  Peter Bartok  <pbartok@novell.com>
20948
20949         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
20950         * SelectionRangeConverter.cs: Implemented
20951         * PropertyGrid.cs: Fixed attribute value
20952         * Control.cs:
20953           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
20954           - Added Sebastien Pouliot's CAS Stack Propagation fixes
20955         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
20956           that's common to all drivers. First methods to go there are
20957           Sebastien Pouliot's CAS Stack Propagation helper methods
20958         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
20959           Sebastien Pouliot for CAS Stack Propagation
20960
20961 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20962
20963         * OSXStructs.cs:
20964           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
20965
20966 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
20967
20968         * DataGridTextBoxColumn.cs: fixed some members
20969         * GridColumnStylesCollection.cs: indexed column is case insensitive
20970         * DataGridTableStyle.cs: fixes
20971         * ThemeWin32Classic.cs: add new theme parameter
20972         * Theme.cs: add new theme parameter
20973         * DataGridDrawingLogic.cs: Datagrid's drawing logic
20974         * DataGrid.cs: fixes, new internal properties, etc.
20975         * DataGridColumnStyle.cs: allows to set grid value
20976         *
20977
20978 2005-05-10  Peter Bartok  <pbartok@novell.com>
20979
20980         * AccessibleObject.cs:
20981           - Removed MonoTODO attribute on help, method is correct
20982           - Fixed Bounds property
20983         * AxHost.cs: Moved MonoTODO
20984         * ButtonBase.cs: Now setting AccessibleObject properties
20985         * RadioButton.cs: Setting proper AccessibleObject role
20986         * CheckBox.cs: Setting proper AccessibleObject role
20987         * ControlBindingsCollection.cs: Added properties, methods and attributes
20988         * DataFormats.cs: Fixed awkward internal API, and changed to enable
20989           userdefined DataFormats.Format items as well
20990         * ListControl.cs: Removed data_member from the public eye
20991         * OpenFileDialog.cs:
20992           - Made class sealed
20993           - Added missing attributes
20994         * SaveFileDialog.cs: Added missing attributes
20995         * ImageListStreamer.cs: Fixed code that caused warnings
20996         * LinkLabel.cs: Removed unreachable code
20997         * TreeView.cs: Fixed code that caused warnings
20998         * PropertyGridView.cs: Fixed code that caused warnings
20999         * GridColumnStylesCollection.cs: Added missing attributes
21000         * GridTableStylesCollection: Added missing attribute
21001         * PropertyManager: Added .ctor
21002         * SecurityIDType: Added
21003         * DataObject.cs: Implemented class
21004         * LinkArea.cs: Added missing attribute
21005
21006 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
21007
21008         * RadioButton.cs: call base method to allow to fire OnClick event
21009         * UpDownBase.cs: OnMouseUp call base method
21010         * CheckedListBox.cs: call base method before returning
21011         * TrackBar.cs: call base method before returning
21012         
21013
21014 2005-05-10  Peter Bartok  <pbartok@novell.com>
21015
21016         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
21017           for messages
21018
21019 2005-05-10  Peter Bartok  <pbartok@novell.com>
21020
21021         * DataFormats.cs: Implemented
21022         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
21023           XplatUIX11.cs: Added Clipboard APIs
21024         * XplatUIWin32.cs: Implemented Clipboard APIs
21025         * FolderBrowserDialog.cs: Added missing event, attributes
21026
21027 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
21028
21029         * CheckBox.cs: call base method to allow to fire OnClick event
21030
21031 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
21032
21033         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
21034
21035 2005-05-06  Peter Bartok  <pbartok@novell.com>
21036
21037         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
21038         * Screen.cs: Implemented
21039         * HelpNavigator.cs: Added
21040         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
21041           property
21042         * HelpProvider.cs: Implemented all we can do until we have a CHM
21043           help library (which means that "What's This" does work now)
21044
21045 2005-05-06  Jackson Harper  <jackson@ximian.com>
21046
21047         * XplatUIX11.cs: Fix waking up the main loop.
21048                 
21049 2005-05-05  Peter Bartok  <pbartok@novell.com>
21050
21051         * XplatUI.cs: Updated revision
21052         * Form.cs: Removed enless loop
21053         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
21054         * Label.cs (OnPaint): Added call to base.OnPaint()
21055         * ToolTip.cs: Made ToolTipWindow reusable for other controls
21056         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
21057         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
21058         * AxHost.cs: Added
21059         * ButtonBase.cs: Moved base.OnPaint() call to end of method
21060         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
21061           to ToolTip.ToolTipWindow for drawing and size methods; this allows
21062           reuse of ToolTipWindow by other controls
21063         * SizeGrip.cs: Moved base.OnPaint() call to end of method
21064         * XplatUIX11.cs: Now clipping drawing area (experimental)
21065         * PictureBox.cs: Moved base.OnPaint() call to end of method
21066         * Theme.cs: Fixed ToolTip abstracts to match new format
21067         * ErrorProvider.cs: Implemented
21068
21069 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
21070
21071         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
21072         * LinkLabel.cs:
21073                 - Adds cursors
21074                 - Handles focus
21075                 - Implements LinkBehavior
21076                 - Fixes many issues
21077
21078 2005-05-03  Jackson Harper  <jackson@ximian.com>
21079
21080         * ListView.cs: Calculate the scrollbar positioning on resize and
21081         paint, so they get put in the correct place.
21082
21083 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
21084
21085         * ColorDialogs.cs: The small color panels are now handled by
21086           SmallColorControl. This fixes drawing of the focus rectangle
21087           and adds a 3D border.
21088
21089 2005-05-03  Peter Bartok  <pbartok@novell.com>
21090
21091         * Control.cs: Modified version of Jonathan Chamber's fix for
21092           double-buffering
21093
21094 2005-05-03  Jackson Harper  <jackson@ximian.com>
21095
21096         * ListView.cs: Remove redraw variable. Control now handles whether
21097         or not a redraw needs to be done, and will only raise the paint
21098         event if redrawing is needed.
21099
21100 2005-05-03  Jackson Harper  <jackson@ximian.com>
21101
21102         * Splitter.cs: No decorations for the splitter form. Cache the
21103         hatch brush.
21104
21105 2005-05-03  Jackson Harper  <jackson@ximian.com>
21106
21107         * TreeView.cs: Use dashed lines to connect nodes. Use the
21108         ControlPaint method for drawing the focus rect instead of doing
21109         that in treeview.
21110
21111 2005-05-02  Peter Bartok  <pbartok@novell.com>
21112
21113         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
21114
21115 2005-04-29  Jackson Harper  <jackson@ximian.com>
21116
21117         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
21118         entire image buffer. Just clear the clipping rectangle.
21119
21120 2005-04-29  Jackson Harper  <jackson@ximian.com>
21121
21122         * ThemeWin32Classic.cs: Don't draw list view items that are
21123         outside the clipping rectangle.
21124
21125 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
21126
21127         * ListBox.cs: added horizontal item scroll
21128
21129 2005-04-29  Jackson Harper  <jackson@ximian.com>
21130
21131         * ThemeWin32Classic.cs: Remove some old debug code that was
21132         causing flicker with the new double buffering code.
21133
21134 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
21135
21136         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
21137         behave like combobox and comboboxlist (still not sure if this is
21138         correct though).
21139
21140 2005-04-28  Jackson Harper  <jackson@ximian.com>
21141
21142         * ThemeWin32Classic.cs: Don't fill the middle of progress
21143         bars. This fills areas outside of the clip bounds that don't need
21144         to be filled.
21145
21146 2005-04-28  Jackson Harper  <jackson@ximian.com>
21147
21148         * Control.cs: Don't expose functionality to touch the image buffers.
21149         * ProgressBar.cs:
21150         * ListView.cs: We do not need to (and no longer can) manipulate
21151         the image buffers directly. All of this is handled by Control.
21152
21153 2005-04-28  Peter Bartok  <pbartok@novell.com>
21154
21155         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
21156           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
21157           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
21158
21159 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
21160
21161         * Combobox:
21162                 - Adjust control's height for non-simple comboboxes (bug fix)
21163                 - Remove dead code
21164         * MenuAPI.cs: remove unused var
21165         * ScrollBar.cs: remove unsed var
21166                  
21167         * ListBox.cs: unselect items when clearing
21168
21169 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
21170
21171         * ListControl.cs: honors OnPositionChanged and default Selected Item
21172         * ListBox.cs: unselect items when clearing
21173
21174 2005-04-27  Jackson Harper  <jackson@ximian.com>
21175
21176         * X11Keyboard.cs: Initialize a default keyboard and give a warning
21177         if a "correct" keyboard is not found. This will make us not crash,
21178         but might give some users bad keyboard layouts...seems to be the
21179         same thing rewind does.
21180
21181 2005-04-27  Jackson Harper  <jackson@ximian.com>
21182
21183         * BindingManagerBase.cs: Attach the current/position changed
21184         handlers to their respective events.
21185
21186 2005-04-27  Jackson Harper  <jackson@ximian.com>
21187
21188         * Control.cs: Make sure that the first WM_PAINT does a full draw,
21189         not just a blit.
21190         * ThemeWin32Classic.cs: Don't fill the background for picture
21191         boxes. This could overright user drawing.
21192         * ComboBox.cs: Just fill the clipping rect not the entire client
21193         rect when drawing the background. This prevents pieces of the
21194         image buffer from getting overwritten and is theoretically faster.
21195
21196 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
21197
21198         * ComboBox.cs: Databinding support fixes, fire missing events
21199         * ListControl.cs: implement missing methods and properties, fixes
21200         * ThemeWin32Classic.cs: Databiding support on Drawing
21201         * CheckedListBox.cs: Databinding support fixes, fire missing events
21202         * ListBox.cs: Databinding support fixes, fire missing events
21203         
21204 2005-04-25  Peter Bartok  <pbartok@novell.com>
21205
21206         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
21207
21208 2005-04-25  Jackson Harper  <jackson@ximian.com>
21209
21210         * TreeView.cs: Use the horizontal scrollbars height not width when
21211         determining how much of the client area is available.
21212
21213 2005-04-25  Jackson Harper  <jackson@ximian.com>
21214
21215         * Control.cs: Double buffering is handled differently now. As per
21216         the spec, the extra buffer is created in the WM_PAINT message and
21217         passed down to the control's drawing code.
21218         * GroupBox.cs:
21219         * Label.cs:
21220         * CheckBox.cs:
21221         * ProgressBar.cs:
21222         * RadioButton.cs:
21223         * ColorDialog.cs:
21224         * ComboBox.cs:
21225         * PropertyGridView.cs:
21226         * UpDownBase.cs:
21227         * MessageBox.cs:
21228         * MenuAPI.cs:
21229         * ListView.cs:
21230         * ButtonBase.cs:
21231         * SizeGrip.cs:
21232         * ScrollBar.cs:
21233         * ListBox.cs:
21234         * TrackBar.cs:
21235         * ToolBar.cs:
21236         * PictureBox.cs:
21237         * DateTimePicker.cs:
21238         * StatusBar.cs:
21239         * TreeView.cs: Update to new double buffering system.
21240         * MonthCalendar.cs: Uncomment block, as Capture is now
21241         working. Update to new double buffering
21242         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
21243         * PaintEventArgs.cs: New internal method allows us to set the
21244         graphics object. This is used for double buffering.
21245         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
21246         rectangle. The internal paint_area var has been removed from
21247         StatusBar. The clipping rect should be used instead.
21248         * Theme.cs: Give the PictureBox drawing method a clipping rect.
21249         * TabPage.cs: The RefreshTabs method was removed, so just call the
21250         tab controls Refresh method now.
21251         * TabControl.cs: Update to new double buffering. Make sure the
21252         handle is created before sizing the tab pages, otherwise we will
21253         get stuck in a loop.
21254
21255 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
21256
21257         * LinkLabel.cs: Fix typo, bug #74719; patch
21258           from Borja Sanchez Zamorano
21259
21260 2005-04-22  Jackson Harper  <jackson@ximian.com>
21261
21262         * TreeNode.cs: Implement Handle stuff.
21263         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
21264
21265 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
21266
21267         * DataGridTextBoxColumn.cs: call base constructors, fixes
21268         * GridColumnStylesCollection.cs: missing events, methods, and functionality
21269         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
21270         * DataGridTableStyle.cs: implements create default column styles
21271         * DataGridBoolColumn.cs: which types can handle
21272         * DataGrid.cs: missing methods, fixes, new functionality
21273         * DataGridColumnStyle.cs: fixes
21274
21275 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
21276         * FolderBrowserDialog.cs:
21277         - Use a thread to fill the TreeView
21278         - Adjusted some sizes
21279
21280 2005-04-19  Peter Bartok  <pbartok@novell.com>
21281
21282         * LinkLabel.cs: (Re-)create the pieces when setting the Text
21283           property. Fixes #74360.
21284
21285 2005-04-19  Jackson Harper  <jackson@ximian.com>
21286
21287         * XEventQueue.cs: Lock when getting the lockqueue size.
21288         * PictureBox.cs: Call base OnPaint
21289         
21290 2005-04-19  Peter Bartok  <pbartok@novell.com>
21291
21292         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
21293           messages were no longer being processed (this broke BeginInvoke)
21294
21295           
21296 2005-04-18  Jackson Harper  <jackson@ximian.com>
21297
21298         * TreeView.cs: buglet that caused node images to get drawn
21299         regardless of whether or not they were in the clipping rectangle.
21300
21301 2005-04-18  Jackson Harper  <jackson@ximian.com>
21302
21303         * CurrencyManager.cs: There are four rules for GetItemProperties:
21304         - If the type is an array use the element type of the array
21305         - If the type is a typed list, use the type
21306         - If the list contains an Item property that is not an object, use
21307         that property
21308         - use the first element of the list if there are any elements in
21309         the list.
21310         
21311 2005-04-17  Jackson Harper  <jackson@ximian.oom>
21312
21313         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
21314         click. This handles offsets for scrolling properly and reduces
21315         memory. Also fixed GetNode to not offset now that TopNode works
21316         properly.
21317         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
21318         
21319 2005-04-17  Jackson Harper  <jackson@ximian.com>
21320
21321         * CursorConverter.cs: Initial implementation.
21322
21323 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21324
21325         * ListControl.cs: work towards complex data binding support on ListControl
21326         * CurrencyManager.cs: work towards complex data binding support on ListControl
21327         * ListBox.cs: work towards complex data binding support on ListControl
21328
21329
21330 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21331
21332         * GridTableStylesCollection.cs: fixes name and constructor
21333         * DataGridTableStyle.cs: fixes
21334         * DataGridBoolColumn.cs: fixes names and constructors
21335         * DataGrid.cs: define methods and properties. Some init implementations
21336         * DataGridCell.cs: define methods and properties. Some init implementations
21337         * GridTablesFactory.cs: Define methods and properties
21338
21339 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
21340
21341         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
21342         graphics port changes.  We still want the coordinates in global screen
21343         coordinates.
21344
21345 2005-04-14  Jackson Harper  <jackson@ximian.com>
21346
21347         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
21348         check plus minus or checkbox clicks unless those features are enabled.
21349
21350 2005-04-14  Jackson Harper  <jackson@ximian.com>
21351
21352         * TreeView.cs: Add methods for setting the top and bottom visible
21353         nodes. TreeNode::EnsureVisible uses these methods.
21354         * TreeNode.cs: Implement EnsureVisible
21355
21356 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
21357
21358         * Form.cs: Pospone menu assignation if the window has not been created yet
21359         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
21360         size and position
21361
21362 2005-04-12  Jackson Harper  <jackson@ximian.com>
21363
21364         * TreeView.cs: Set the TopNode properly when scrolling
21365         occurs. This has the added benifit of reducing the amount of
21366         walking that needs to be done when drawing. Also removed an old
21367         misleading TODO.
21368         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
21369         
21370 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
21371
21372         * Timer.cs: fixes interval setting when the timer is already enabled
21373         
21374 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
21375
21376         * FolderBrowserDialog.cs: First approach
21377
21378 2005-04-09  Peter Bartok  <pbartok@novell.com>
21379
21380         * FolderBrowserDialog: Added
21381
21382 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
21383
21384         * LinkLabel.cs: move drawing code into the theme
21385         * ThemeWin32Classic.cs: drawing code and painting background bugfix
21386         * Theme.cs: define DrawLinkLabel method
21387
21388 2005-04-05  Jackson Harper  <jackson@ximian.com>
21389
21390         * BindingContext.cs: Use weak references so these bad actors don't
21391         stay alive longer then they need to.
21392
21393 2005-04-05  Jackson Harper  <jackson@ximian.com>
21394
21395         * ListControl.cs: Basic implementation of complex databinding.
21396         * ComboBox.cs:
21397         * ListBox.cs: Add calls to ListControl databinding methods.
21398
21399 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
21400
21401         * FileDialog.cs:
21402           - Don't change PopupButtonState to Normal when the
21403             PopupButton gets pressed several times.
21404           - Renamed ButtonPanel to PopupButtonPanel
21405
21406 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
21407
21408         * ColorDialog.cs: Use cached objects instead of creating them
21409         * LinkLabel.cs: Use cached objects instead of creating them
21410         * Splitter.cs: Use cached objects instead of creating them
21411         * FontDialog.cs: Use cached objects instead of creating them
21412         * PropertyGridView.cs: Use cached objects instead of creating them
21413         * MessageBox.cs: Use cached objects instead of creating them
21414         * FileDialog.cs: Use cached objects instead of creating them
21415         * ThemeWin32Classic.cs: Use cached objects instead of creating them
21416         * TreeView.cs: Use cached objects instead of creating them
21417         
21418 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
21419
21420         * Control.cs: use Equals to compare the font since no == op
21421         * ScrollBar.cs: use Equals to compare the font since no == op
21422
21423 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
21424
21425         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
21426
21427 2005-04-01  Jackson Harper  <jackson@ximian.com>
21428
21429         * Binding.cs: Implement IsBinding.
21430         * BindingManagerBase.cs:
21431         * PropertyManager.cs:
21432         * CurrencyManager.cs: Add IsSuspended property.
21433
21434 2005-04-01  Jackson Harper  <jackson@ximian.com>
21435
21436         * Binding.cs: Had some IsAssignableFrom calls backwards.
21437
21438 2005-04-01  Jackson Harper  <jackson@ximian.com>
21439
21440         * Binding.cs: Handle null data members when pulling data.
21441         * PropertyManager.cs: Handle the data member being a property that
21442         does not exist.
21443
21444 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21445
21446         * DataGridTextBoxColumn.cs: fixes signature
21447         * DataGrid.cs: calls right constructor
21448
21449 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21450
21451         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
21452         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
21453         * GridTableStylesCollection.cs: implements GridTableStylesCollection
21454         * DataGridTableStyle.cs: implements DataGridTableStyle
21455         * DataGridBoolColumn.cs: implements DataGridBoolColumn
21456         * DataGridTextBox.cs: implements DataGridTextBox
21457         * DataGridColumnStyle.cs: implements DataGridColumnStyle
21458
21459 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
21460
21461         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
21462
21463 2005-03-29  Peter Bartok  <pbartok@novell.com>
21464
21465         * Application.cs:
21466           - Properly implemented CompanyName property
21467           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
21468             returns a path that includes CompanyName, ProductName and
21469             Version (fixes bug #70330)
21470
21471 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
21472
21473         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
21474           fixes bug #72588.
21475
21476 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21477
21478         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
21479         
21480           - Added ReadOnly CheckBox
21481           - Further refactoring: moved some code from Open-/SaveFileDialog
21482             to FileDialog
21483
21484 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21485
21486         * OpenFileDialog.cs: Fixed CheckFileExists
21487         * FileDialog.cs:
21488           Moved FileView and DirComboBox outside FileDialog class.
21489           They can now be used outside FileDialog
21490
21491 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21492
21493         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
21494         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
21495
21496 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21497
21498         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21499           - Added missing CreatePrompt property in SaveDialog
21500           - Overall SaveDialog handling should be better now
21501           - Added non standard ShowHiddenFiles property
21502           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
21503           - Added InitialDirectory and RestoreDirectory support
21504
21505 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
21506
21507         * FileDialog.cs: Made dirComboBox usable
21508
21509 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
21510
21511         * FileDialog.cs: Added Filter support (case sensitiv)
21512
21513 2005-03-24  Jackson Harper  <jackson@ximian.com>
21514
21515         * TabControl.cs: Need a couple more pixels for the lines.
21516
21517 2005-03-23  Jackson Harper  <jackson@ximian.com>
21518
21519         * TabControl.cs: Give the tab page focus when it is selected.
21520
21521 2005-03-23  Jackson Harper  <jackson@ximian.com>
21522
21523         * TabControl.cs: Account for the drawing of tabs borders when
21524         invalidating. If the slider was clicked dont do click detection on
21525         the tabs.
21526
21527 2005-03-23  Jackson Harper  <jackson@ximian.com>
21528
21529         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
21530
21531 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
21532
21533         * CategoryGridEntry.cs: Added
21534         * GridItem.cs: Added helper properties
21535         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
21536         * GridEntry.cs: Updated code for collection
21537         * PropertyGrid.cs: Cleaned up some formatting
21538         * PropertyGridView.cs: Added drop down functionality for enums.
21539         * GridItemCollection.cs: Added enumerator logic
21540         * PropertyGridEntry.cs: Added
21541
21542 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21543
21544         * FileDialog.cs:
21545           - Removed unnecessary commented code
21546           - Fixed handling for entering the filename manually in the combobox
21547
21548 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21549
21550         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
21551
21552 2005-03-18  Peter Bartok  <pbartok@novell.com>
21553
21554         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
21555           them being touching the border
21556
21557 2005-03-18  Peter Bartok  <pbartok@novell.com>
21558
21559         * TextControl.cs: Quick hack to center text better
21560
21561 2005-03-18  Peter Bartok  <pbartok@novell.com>
21562
21563         * ControlPaint.cs:
21564           - Don't throw NotImplemented exceptions, just print a notice once
21565             instead (requested by Miguel). This makes running existing SWF
21566             apps a bit easier
21567         * Control.cs:
21568           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
21569           - Added context menu trigger on right click
21570         * Panel.cs: Trigger invalidate on resize
21571         * StatusBar.cs:
21572           - Removed old double-buffer drawing
21573           - Added ResizeRedraw style to force proper update of statusbar
21574         * ListView.cs:
21575           - Removed debug output
21576         * ThemeWin32Classic.cs:
21577           - Fixed drawing of status bar, now draws Text property if there
21578             are no defined panels
21579
21580 2005-03-18  Jackson Harper  <jackson@ximian.com>
21581
21582         * ImageList.cs: When the image stream is set pull all the images
21583         from it.
21584         * ImageListStreamer.cs: Implement reading image list streams.
21585
21586 2005-03-18  Peter Bartok  <pbartok@novell.com>
21587
21588         * ThemeWin32Classic.cs (DrawPictureBox):
21589           - Fixed calculations for centered drawing
21590           - Fixed drawing for normal mode, not scaling the image on normal
21591
21592 2005-03-18  Peter Bartok  <pbartok@novell.com>
21593
21594         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
21595           textbox
21596         * FileDialog.cs:
21597           - Made Open/Save button the accept button for FileDialog
21598           - Tied the cancel button to the IButtonControl cancel button
21599           - Save/Open now properly builds the pathname
21600           - Now handles user-entered text
21601           - Preventing crash on right-click if no item is selected
21602           - Fixed Text property, now uses contents of textbox
21603           - Fixed SelectedText property, now just returns the text part that
21604             is selected in the text box
21605
21606 2005-03-18  Jackson Harper  <jackson@ximian.com>
21607
21608         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
21609         rect, make sure to de-adjust the interior rect after drawing the
21610         tab text.
21611
21612 2005-03-18  Peter Bartok  <pbartok@novell.com>
21613
21614         * MenuAPI.cs: Remove menu *before* executing selected action to
21615           prevent the menu from 'hanging around'
21616           
21617 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
21618
21619         * XplatUIOSX.cs: Implemented WorkingArea property
21620
21621 2005-03-17  Peter Bartok  <pbartok@novell.com>
21622
21623         * XplatUIX11.cs: Fixed menu coord calculations
21624         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
21625           for calculating offsets
21626
21627 2005-03-17  Peter Bartok  <pbartok@novell.com>
21628
21629         * Hwnd.cs: Do not consider menu presence for default client
21630           rectangle location/size
21631         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21632           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
21633           translation functions
21634         * FileDialog.cs: Fixed (what I presume is a) typo
21635
21636 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
21637
21638         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
21639           X access (avoids X-Async errors)
21640
21641 2005-03-16  Jackson Harper  <jackson@ximian.com>
21642
21643         * TabControl.cs: Raise the SelectedIndexChanged event.
21644
21645 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
21646
21647         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21648           - Removed vertical ToolBar and replaced it with a custom panel
21649             (desktop and home button already work)
21650           - Added Help button (some controls get resized or relocated then)
21651           - Draw correct text depending on Open or Save.
21652           - Fixed some typos...
21653
21654 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
21655
21656         * ScrollBar.cs:
21657           - Only change Maximum and Minimum when need it (bug fix)
21658
21659 2005-03-15  Peter Bartok  <pbartok@novell.com>
21660
21661         * Form.cs: Use Handle for icon, to trigger creation if
21662           the window does not yet exist
21663         * Control.cs:
21664           - CanSelect: Slight performance improvement
21665           - Focus(): Preventing possible recursion
21666           - Invalidate(): Removed ControlStyle based clear flag setting
21667           - WM_PAINT: fixed logic for calling OnPaintBackground
21668           - WM_ERASEBKGND: Fixed logic, added call to new driver method
21669             EraseWindowBackground if the control doesn't paint background
21670         * XplatUIWin32.cs:
21671           - Moved EraseWindowBackground() method to internal methods
21672           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
21673             is sent via SendMessage on BeginPaint call on Win32
21674         * XplatUIX11.cs:
21675           - Added EraseWindowBackground() method
21676           - No longer sends WM_ERASEBKGND on .Expose, but on call to
21677             PaintEventStart, which more closely matches Win32 behaviour
21678           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
21679           - Fixed SetFocus() to properly deal with client and whole windows
21680         * Hwnd.cs: Added ErasePending property
21681         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
21682         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
21683
21684 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
21685
21686         * XplatUIOSX.cs:
21687           - Fix hard loop when timers exist.
21688           - Fix bugs with middle and right click for 3 button mice.
21689
21690 2005-03-11  Peter Bartok  <pbartok@novell.com>
21691
21692         * XplatUIX11.cs:
21693           - get_WorkingArea: Need to call X directly, GetWindowPos only
21694             returns cached data now
21695           - Added sanity check to GetWindowPos hwnd usage
21696
21697 2005-03-11  Jackson Harper  <jackson@ximian.com>
21698
21699         * BindingManagerBase.cs: This method isn't used anymore as
21700         PullData now updates the data in the control.
21701
21702 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
21703
21704         * Form.cs: fixes menu drawing on X11
21705         * MenuAPI.cs:  fixes menu drawing on X11
21706
21707 2005-03-11  Peter Bartok  <pbartok@novell.com>
21708
21709         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
21710           from Jonathan Gilbert; should fix bug #73606
21711         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
21712           in Screen coordinates. Thanks, Jordi.
21713         * Form.cs: Added missing attribute
21714
21715 2005-03-11  Peter Bartok  <pbartok@novell.com>
21716
21717         * Form.cs:
21718           - Rudimentary Mdi support
21719           - Removed outdated FormParent code
21720           - Implemented lots of missing properties and methods, still missing
21721             transparency support
21722           - Added missing attributes
21723           - Implemented support for MaximumBounds
21724           - Added firing of various events
21725         * XplatUI.cs: Added SetIcon() method
21726         * XplatUIDriver.cs: Added SetIcon() abstract
21727         * XplatUIOSX.cs: Stubbed out SetIcon() method
21728         * XplatUIX11.cs:
21729           - Implemented SetIcon() support
21730           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
21731           - Switched to unix line endings
21732         * XplatUIWin32.cs:
21733           - Made POINT internal so for can access it as part of MINMAX
21734           - Implemented SetIcon() support
21735           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
21736             native Mdi support again, might have to go managed)
21737         * Control.cs: Now fires the StyleChanged event
21738         * MdiClient.cs: Added; still mostly empty
21739
21740 2005-03-10  Peter Bartok  <pbartok@novell.com>
21741
21742         * SaveFileDialog.cs: Added emtpy file
21743
21744 2005-03-08  Peter Bartok  <pbartok@novell.com>
21745
21746         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
21747           in turn triggers OnCreateContro) when creating a handle for the
21748           first time.
21749         * TextControl.cs: Fixed endless loop in certain cases when
21750           replacing the current selection
21751
21752 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
21753
21754         * ScrollBar.cs:
21755           - Honors NewValue changes in Scroll events allowing apps to change it
21756           - Adds First and Last Scroll events
21757           - Fixes Thumb events
21758
21759 2005-03-07  Peter Bartok  <pbartok@novell.com>
21760
21761         * Hwnd.cs: Added DefaultClientRectangle property
21762         * XplatUI.cs: Now using the X11 driver Where() method, which provides
21763           more detailed debug information
21764         * XplatUIX11.cs:
21765           - Fixed size-change feedback loop, where we would pull an old size
21766             off the queue and mistakenly change our window's size to an
21767             earlier value
21768           - Now compressing ConfigureNotify events, to reduce looping and
21769             redraw issues
21770         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
21771           is called
21772
21773 2005-03-07  Jackson Harper  <jackson@ximian.com>
21774
21775         * Binding.cs: Push data pushes from data -> property. Check if the
21776         property is readonly when attempting to set it.
21777
21778 2005-03-07  Jackson Harper  <jackson@ximian.com>
21779
21780         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
21781         instead of IsSubclassOf. Pulling data now sets the value on the
21782         control.
21783         * PropertyManager.cs:
21784         * CurrencyManager.cs: Just need to pull data when updating now,
21785         because PullData will set the value on the control.
21786
21787 2005-03-04  Jackson Harper  <jackson@ximian.com>
21788
21789         * Binding.cs: Implement data type parsing and converting on pulled
21790         data. TODO: Are there more ways the data can be converted?
21791
21792 2005-03-04  Jackson Harper  <jackson@ximian.com>
21793
21794         * Binding.cs: Support <Property>IsNull checks. Also bind to the
21795         controls Validating method so we can repull the data when the
21796         control loses focus.
21797
21798 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
21799
21800         * ColumnHeader.cs:
21801           - Fixes null string format
21802           
21803         * ListView.cs:
21804           - Adds enum type checks
21805           - Fixes redrawing and recalc need after changing some properties
21806           - Fixes on focus_item set after the event
21807           - Fixes adding columns after the control has been created
21808           
21809         * ThemeWin32Classic.cs:
21810           - Fixes CheckBox focus rectangle
21811           - Fixes ColumnHeader drawing
21812
21813
21814 2005-03-03  Jackson Harper  <jackson@ximian.com>
21815
21816         * Binding.cs: Bind to <Property>Changed events so we can detect
21817         when properties are changed and update the data.
21818
21819 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
21820
21821         * ImageList.cs:
21822           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
21823           - Fixes ImageList constructor with ImageList container
21824           - Fixes image scaling (wrong parameters at DrawImage)
21825
21826 2005-02-02  Jackson Harper  <jackson@ximian.com>
21827
21828         * Binding.cs: Make property searches case-insensitive. Eliminate
21829         some duplicated code.
21830
21831 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
21832
21833         * ComboBox.cs:
21834                 - Handle focus event
21835                 - Fix scrollbar events
21836                 - Discard highlighted item if remove it
21837                 - Fixes SelectedItem with strings
21838
21839 2005-03-01  Peter Bartok  <pbartok@novell.com>
21840
21841         * Control.cs:
21842           - Fixed Visible property, now follows (once again) parent chain
21843             to return false if any control in the chain is visible=false
21844           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
21845           - Fixed several places where is_visible instead of Visible was used
21846           - Implemented FIXME related to focus selection when setting focused
21847             control to be invisible
21848
21849         * XplatUIWin32.cs: Now using proper method to find out if window is
21850           visible. Thanks to Jordi for pointing it out
21851
21852 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
21853
21854         * ComboBox.cs: show/hide scrollbar instead of creating it
21855
21856 2005-02-27  Jackson Harper  <jackson@ximian.com>
21857
21858         * CurrencyManager.cs: Add PositionChanged stuff.
21859
21860 2005-02-27  Peter Bartok  <pbartok@novell.com>
21861
21862         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
21863         * XplatUIOSX.cs: Added GetMenuOrigin() stub
21864         * XplatUIWin32.cs: Implemented GetMenuOrigin()
21865         * XplatUIX11.cs:
21866           - Implemented GetMenuDC()
21867           - Implemented GetMenuOrigin()
21868           - Implemented ReleaseMenuDC()
21869           - Implemented generation of WM_NCPAINT message
21870           - Implemented generation and handling of WM_NCCALCSIZE message
21871         * Form.cs: Added debug helper message for Jordi's menu work
21872         * Hwnd.cs:
21873           - Modified ClientRect property; added setter, fixed getter to handle
21874             setting of ClientRect
21875           - Added MenuOrigin property
21876
21877 2005-02-26  Peter Bartok  <pbartok@novell.com>
21878
21879         * XplatUIX11.cs:
21880           - Destroys the caret if a window that's being destroyed contains it
21881           - Ignores expose events coming from the X11 queue for windows that
21882             already are destroyed
21883           - Now uses the proper variable for handling DestroyNotify, before we
21884             marked the wrong window as destroyed
21885           - Improved/added some debug output
21886
21887 2005-02-26  Peter Bartok  <pbartok@novell.com>
21888
21889         * X11Keyboard.cs: Fixes to work on 64bit systems
21890
21891 2005-02-26  Peter Bartok  <pbartok@novell.com>
21892
21893         * Control.cs:
21894           - Now calling OnHandleDestroyed from DestroyHandle()
21895             instead of Dispose()
21896           - Removed bogus call to controls.Remove() from DestroyHandle()
21897
21898 2005-02-26  Peter Bartok  <pbartok@novell.com>
21899
21900         * Control.cs: Properly destroy child windows when our handle is
21901           destroyed
21902
21903 2005-02-25  Peter Bartok  <pbartok@novell.com>
21904
21905         * XplatUI.cs:
21906           - Added 'DriverDebug' define to allow tracing XplatUI API calls
21907           - Alphabetized Static Methods and Subclasses
21908
21909         * XplatUIX11.cs:
21910           - Added XException class to allow custom handling of X11 exceptions
21911           - Created custom X11 error handler, tied into XException class
21912           - Added support for MONO_XEXCEPTIONS env var to allow the user
21913             to either throw an exception on X errors or continue running
21914             after displaying the error
21915           - Added handling of DestroyNotify message
21916           - Added handler for CreateNotify message (still disabled)
21917           - Improved (tried to at least) Where method to provide file and lineno
21918         * X11Structs.cs:
21919           - Added XErrorHandler delegate
21920           - Added XRequest enumeration (to suppor translation of errors)
21921
21922 2005-02-25  Jackson Harper  <jackson@ximian.com>
21923
21924         * PropertyManager.cs: Implement editing features
21925         * CurrencyManager.cs:
21926         * Binding.cs: First attempt at UpdateIsBinding
21927         * BindingManagerBase.cs: Call UpdateIsBinding before
21928         pushing/pulling data.
21929
21930 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
21931
21932         * MenuAPI.cs: Respect disabled items
21933         * ThemeWin32Classic.cs
21934                 - Caches ImageAttributes creation for DrawImageDisabled
21935                 - Fixes vertical menu line drawing
21936                 - Draws disabled arrows in disable menu items
21937
21938 2005-02-24  Peter Bartok  <pbartok@novell.com>
21939
21940         * Hwnd.cs:
21941           - Added UserData property to allow associating arbitrary objects
21942             with the handle
21943           - Fixed leak; now removing Hwnd references from static windows array
21944         * XplatUIWin32.cs:
21945           - Fixed Graphics leak in PaintEventEnd
21946           - Removed usage of HandleData, switched over to Hwnd class
21947         * HandleData.cs: Removed, obsoleted by Hwnd.cs
21948
21949 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21950
21951         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
21952         * ScrollBar.cs: Fixes bug
21953         * TrackBar.cs: removes death code, clipping, mimize refreshes,
21954          keyboard navigation enhancements
21955
21956 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21957
21958         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
21959         * GroupBox.cs: Add control styles
21960         * Label.cs: Add control styles
21961         * UpDownBase.cs: Add control styles
21962         * ListBox.cs: Add control styles
21963         * XplatUIWin32.cs: Fixes wrong parameter order
21964
21965
21966 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
21967
21968         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
21969
21970 2005-02-23  Jackson Harper  <jackson@ximian.com>
21971
21972         * PropertyManager.cs: Implement property binding. This doesn't
21973         seem to work yet though as (I think) there are some bugs in
21974         System.ComponentModel.PropertyDescriptor.
21975         * BindingContext.cs: Use new PropertyManager constructor.
21976
21977 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
21978
21979         * ProgressBar.cs: use clip region in ProgressBar
21980         * ThemeWin32Classic.cs: use clip region in ProgressBar
21981
21982 2004-02-22  Jackson Harper  <jackson@ximian.com>
21983
21984         * BindingsCollection.cs: Remove some debug code.
21985
21986 2005-02-22  Jackson Harper  <jackson@ximian.com>
21987
21988         * BindingContext.cs:
21989         * ControlBindingsCollection.cs:
21990         * CurrencyManager.cs:
21991         * Binding.cs:
21992         * BindingManagerBase.cs: Initial implementation
21993         * BindingsCollection.cs: Add an internal contains method that the
21994         BindingManagerBase uses to ensure bindings aren't added twice to
21995         the collection.
21996         * PropertyManager.cs: Stubbed out.
21997         * Control.cs:
21998         * ContainerControl.cs: Hook up databinding
21999         
22000 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
22001
22002         * XplatUIOSX.cs:
22003           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
22004           Fixed Invalidate/Update chain.
22005           Fixed tons of other minor bugs (this is almost a complete rewrite).
22006
22007 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
22008
22009         * ComboBox.cs: do subcontrol creation when the control is created
22010
22011 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
22012
22013         * Label.cs: fixes image drawing (image and imagelist)
22014         * ThemeWin32Classic.cs: cache brushes
22015         
22016 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
22017
22018         * Form.cs: Move menu drawing code to Theme class
22019         * ComboBox.cs: Move ComboBox drawing code to Theme class
22020         * MenuItem.cs: Move menu drawing code to Theme class
22021         * MenuAPI.cs: Move menu drawing code to Theme class
22022         * ThemeWin32Classic.cs: New methods
22023         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
22024         * ListBox.cs: Move Listbox drawing code to Theme class
22025         * Theme.cs: New methods
22026
22027 2005-02-20  Peter Bartok  <pbartok@novell.com>
22028
22029         * Control.cs:
22030           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
22031             only process mnemonics on those)
22032           - Fixed event sequence for key handling; first calling
22033             ProcessKeyEventArgs now
22034         * TextBoxBase.cs:
22035           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
22036             for processing non-character keys
22037           - Fixed WM_CHAR to generate proper event sequence before processing
22038         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
22039           generation
22040
22041 2005-02-19  Peter Bartok  <pbartok@novell.com>
22042
22043         * UserControl.cs: Added TextChanged event; added attributes
22044         * SizeGrip.cs: Implemented resizing and optional display of grip
22045         * Form.cs: Fixed attribute
22046         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22047           Changed meaning of ScrollWindow bool argument; instead of the
22048           clear attribute (which will be true usually anyway), it gives the
22049           option of moving child controls as well.
22050         * XplatUIX11.cs:
22051           - Changed to match new ScrollWindow argument
22052           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
22053             now handles the implicit parent window a WM puts around us
22054         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
22055           to work)
22056         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
22057         * TreeView.cs: Adjusted to new ScrollWindow arguments
22058
22059 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
22060
22061         * Form.cs: Menu integration with non-client area
22062         * MenuItem.cs: Menu integration with non-client area
22063         * MenuAPI.cs: Menu integration with non-client area
22064
22065 2005-02-18  Peter Bartok  <pbartok@novell.com>
22066
22067         * MethodInvoker.cs: Added
22068         * MdiLayout.cs: Added
22069         * SendKeys.cs: Started implementation
22070         * ErrorIconAlignment.cs: Added
22071
22072 2005-02-18  Peter Bartok  <pbartok@novell.com>
22073
22074         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
22075         * Form.cs: Added handling for Menu-related Non-client messages
22076
22077 2005-02-17  Peter Bartok  <pbartok@novell.com>
22078
22079         * UpDownBase.cs: Fixed typo, compilation errors
22080         * DomainUpDown.cs: Fixed attribute value
22081
22082 2005-02-16  Miguel de Icaza  <miguel@novell.com>
22083
22084         * UpDownBase.cs: Attach entry events.
22085         Propagate events.
22086         Add ForeColor property, Focused, InterceptArrowKeys (interception
22087         does not work yet).
22088
22089 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
22090
22091         * Form.cs:
22092                 - Redraw non client are on Setmenu
22093                 - Calc proper menu starting point
22094
22095 2005-02-17  Peter Bartok  <pbartok@novell.com>
22096
22097         * Application.cs: Fixed message_filter check
22098
22099 2005-02-17  Peter Bartok  <pbartok@novell.com>
22100
22101         * Application.cs: Now calls registered message filters
22102         * DockStyle.cs: Fixed attribute
22103         * Form.cs: Fixed attribute
22104         * Menu.cs: Fixed attribute
22105         * ToolTip.cs: Fixed attribute
22106         * TreeNode.cs: Added missing attributes and arranged in regions
22107         * PropertyGrid.cs: Fixed signatures
22108         * TreeNodeCollection.cs: Added attributes
22109         * Splitter.cs: Added missing attributes; arranged into regions
22110         * TabPage.cs: Added missing attributes; arranged into regions
22111         * TextBoxBase.cs: Added missing attributes
22112         * TextBox.cs: Added missing attributes
22113         * ArrangeDirection.cs: Added missing attributes
22114         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
22115         * ToolBarButton.cs: Fixed attributes
22116         * AnchorStyles.cs: Fixed attribute
22117         * TrackBar.cs: Fixed attributes
22118         * TabControl.cs: Added missing attributes and arranged into regions
22119         * ToolBar.cs: Fixed attribute
22120         * StatusBar.cs: Fixed signature, organized into regions and added
22121           attributes
22122         * StatusBarPanel.cs: Fixed attributes
22123         * ContentsResizedEventArgs.cs: Implemented
22124         * ContentsResizedEventHandler.cs: Implemented
22125         * DateBoldEventArgs.cs: Implemented
22126         * DateBoldEventHandler.cs: Implemented
22127         * UpDownEventArgs.cs: Implemented
22128         * UpDownEventHandler.cs: Implemented
22129         
22130 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
22131
22132         * Form.cs: first Menu NC refactoring
22133         * MenuAPI.cs: first Menu NC refactoring
22134         
22135 2005-02-16  Peter Bartok  <pbartok@novell.com>
22136
22137         * ImeMode.cs: Added missing attributes
22138         * Menu.cs: Fixed attribute
22139         * GroupBox.cs: Fixed attribute
22140         * Label.cs: Fixed attribute
22141         * ColorDialog.cs (RunDialog): Removed TODO attribute
22142         * ComboBox.cs: Fixed attributes
22143         * ListControl.cs: Added missing attributes
22144         * PropertyGrid.cs: Fixed attributes
22145         * Control.cs: Fixed attributes
22146         * ListViewItem.cs: Added TypeConverter attribute
22147         * NotifyIcon.cs: Fixed attributes
22148         * ListView.cs: Fixed attributes
22149         * ButtonBase.cs: Fixed attribute
22150         * ImageList.cs: Added missing attributes
22151         * ContainerControl.cs: Fixed signature
22152         * CheckedListBox.cs: Fixed attribute; added missing attributes
22153         * Panel.cs: Fixed attributes
22154         * PropertyTabChangedEventArgs.cs: Added missing attribute
22155         * PropertyValueChangedEventArgs.cs: Added missing attribute
22156         * Binding.cs: Fixed attribute
22157         * ListViewItemConverter: Implemented ListViewSubItemConverter class
22158         * ListBox.cs: Fixed attribute; added missing attributes;
22159         * ScrollableControl.cs: Added missing attributes
22160         * PictureBox.cs: Added missing attributes; implemented missing property
22161         * DateTimePicker.cs: Added missing attributes
22162         * Theme.cs (ToolWindowCaptionHeight): Fixed type
22163         * MonthCalendar.cs: Fixed attributes
22164         * StatusBarPanel.cs: Added missing attributes
22165         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
22166
22167 2005-02-16  Peter Bartok  <pbartok@novell.com>
22168
22169         * TextBoxBase.cs: The previous method to enforce height yet remember
22170           the requested high was less than ideal, this is an attempt to do
22171           it better.
22172         * Control.cs: Added comment about possible problem
22173         * Copyright: Updated format
22174         * GridItemType.cs: Fixed swapped values
22175
22176 2005-02-15  Jackson Harper  <jackson@ximian.com>
22177
22178         * BaseCollection.cs: Use property so we never access an
22179         uninitialized list. Also initialize the list in the property.
22180
22181 2005-02-15  Peter Bartok  <pbartok@novell.com>
22182
22183         * GroupBox.cs (ProcessMnemonic): Implemented
22184         * Label.cs (ProcessMnemonic): Implemented
22185         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
22186           hotkeys
22187
22188 2005-02-15  Peter Bartok  <pbartok@novell.com>
22189
22190         * RadioButton.cs (ProcessMnemonic): Implemented
22191         * CheckBox.cs (ProcessMnemonic): Implemented
22192         * Control.cs:
22193           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
22194             handling
22195           - Added internal method to allow calling ProcessMnemonic from other
22196             controls
22197         * ContainerControl.cs:
22198           - Started support for handling validation chain handling
22199           - Implemented ProcessMnemonic support
22200           - Added Select() call to Active, to make sure the active control
22201             receives focus
22202         * Form.cs: Setting toplevel flag for Forms (this was lost in the
22203           FormParent rewrite)
22204         * ThemeWin32Classic.cs:
22205           - DrawCheckBox(): Fixed stringformat to show hotkeys
22206           - DrawRadioButton(): Fixed stringformat to show hotkeys
22207         * CommonDialog.cs: Removed WndProc override, not needed
22208
22209 2005-02-14  Peter Bartok  <pbartok@novell.com>
22210
22211         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
22212           missed those in the rewrite
22213
22214 2005-02-14  Miguel de Icaza  <miguel@novell.com>
22215
22216         * NumericUpDown.cs (Increment, ToString): Add.
22217         (DecimalPlaces): implement.
22218         
22219         Add attributes.
22220         
22221         * UpDownBase.cs: Add the designer attributes.
22222
22223 2005-02-13  Peter Bartok  <pbartok@novell.com>
22224
22225         * Panel.cs: Removed border_style, now in Control
22226         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
22227           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
22228
22229 2005-02-13  Peter Bartok  <pbartok@novell.com>
22230
22231         * MouseButtons.cs: Added missing attributes
22232         * XplatUIStructs.cs: Added enumeration for title styles
22233         * LeftRightAlignment.cs: Added missing attributes
22234         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
22235           it compatible with Graphics.FromHwnd()
22236         * SelectedGridItemChangedEventArgs.cs: Fixed property type
22237         * Keys.cs: Added missing attributes
22238         * SelectionRange.cs: Added missing attributes
22239         * SelectionRangeConverter.cs: Added
22240         * XplatUI.cs:
22241           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
22242             ReleaseMenuDC methods
22243           - Renamed ReleaseWindow to UngrabWindow
22244           - Added proper startup notice to allow version identification
22245         * Form.cs:
22246           - Added missing attributes
22247           - Removed FormParent concept
22248         * Label.cs: Removed border_style field, now in Control
22249         * RadioButton.cs: Now properly selects RadioButton when focus is
22250           received
22251         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
22252         * Control.cs:
22253           - Added missing attributes
22254           - Added borderstyle handling
22255           - Removed FormParent concept support
22256           - Fixed calls to XplatUI to match changed APIs
22257           - Fixed bug that would case us to use disposed Graphics objects
22258           - Removed unneeded internal methods
22259           - PerformLayout(): Fixed to handle DockStyle.Fill properly
22260           - SelectNextControl(): Fixed to properly check common parents
22261         * TextBoxBase.cs: Removed border_style field (now in Control)
22262         * MessageBox.cs:
22263           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
22264             fixed calculations for form size
22265           - Added support for localized strings and icons
22266           - Improved form size calculations, added border
22267         * ListView.cs: Removed border_style field (now in Control)
22268         * X11Structs.cs: Moved several structs from X11 driver here
22269         * X11Keyboard.cs: Changed debug message
22270         * Application.cs: Removed FormParent concept support
22271         * CommonDialog.cs:
22272           - Resetting end_modal flag
22273           - Removed FormParent concept support
22274         * NativeWindow.cs: Removed FormParent concept support
22275         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
22276           Client area and Non-Client whole window to allow support for WM_NC
22277           messages
22278         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
22279           prevent using it until it supports Hwnd as per Geoff Norton's request
22280         * ToolBar.cs: Fixed drawing, was not doing proper drawing
22281         * PictureBox.cs: Removed border_style field, now in Control
22282         * XplatUIWin32.cs: Added new driver methods
22283
22284 2005-02-12  Peter Bartok  <pbartok@novell.com>
22285
22286         * OpacityConverter.cs: Implemented
22287         * Hwnd.cs: Internal class to support drivers that need to emulate
22288           client area/non-client area window behaviour
22289
22290 2005-02-11  Peter Bartok  <pbartok@novell.com>
22291
22292         * KeysConverter.cs: Implemented
22293
22294 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
22295
22296         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
22297         * LinkLabel: Added missing attributes
22298         * MainMenu.cs: fixes ToString
22299         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
22300         * ListBox.cs: fixes event position
22301         * TrackBar.cs: adds missing attributes and events
22302         
22303 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
22304
22305         * MenuItem.cs: Use SystemInformation and bug fixes
22306         * MenuAPI.cs: Use SystemInformation and bug fixes
22307
22308 2005-02-09  Jackson Harper  <jackson@ximian.com>
22309
22310         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
22311         their keystate otherwise things like VK_MENU get stuck "on".
22312
22313 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
22314
22315         * ListBox.cs: Fixes AddRange bug
22316         
22317 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
22318
22319         * ProgressBar.cs
22320                 - Add missing attributes
22321                 - Add missing method
22322                 
22323         * CheckedListBox.cs: Added missing attributes
22324                 - Add missing attributes
22325                 - Remove extra method
22326         
22327         * ComboBox.cs: Added missing attributes
22328         * VScrollBar.cs: Added missing attributes
22329         * ScrollBar.cs:  Added missing attributes
22330         * ListBox.cs: Fixes signature, add missing consts
22331         * LinkArea.cs:   Added missing attributes
22332         
22333
22334 2005-02-08  Peter Bartok  <pbartok@novell.com>
22335
22336         * Menu.cs: Added missing attributes
22337         * MainMenu.cs: Added missing attributes
22338         * GroupBox.cs: Added missing attributes
22339         * Label.cs: Added missing attributes
22340         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
22341         * ColorDialog.cs:
22342           - Added Instance and Options properties
22343           - Added missing attributes
22344         * Cursor.cs: Made Serializable
22345         * NotifyIcon: Added missing attributes
22346         * MenuItem.cs: Added missing attributes
22347         * TextBoxBase.cs: Implemented AppendText() and Select() methods
22348         * Panel.cs: Added Missing attributes
22349         * MonthCalendar.cs: Fixed CreateParams
22350
22351 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22352         
22353         * LinkLabel.cs:
22354                 - Fixes signature
22355                 - Fixes issues with links
22356                 - Adds the class attributes
22357
22358 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22359         
22360         * ComboBox.cs:
22361                 - Fixes button when no items available in dropdown
22362                 - Fixes repainting problems
22363                 - Adds the class attributes
22364                 
22365 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22366
22367         * XplatUIOSX.cs: Detect the menu bar and title bar height from
22368         the current theme.  Cache these on startup.
22369
22370 2005-02-07  Jackson Harper  <jackson@ximian.com>
22371
22372         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
22373         the scrollbar buttons when they are depressed.
22374
22375 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22376
22377         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
22378         Get the display size from the main displayid.  We currently dont
22379         support multiple display configurations.
22380
22381 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22382
22383         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
22384
22385 2005-02-07  Miguel de Icaza  <miguel@novell.com>
22386
22387         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
22388
22389 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
22390
22391         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
22392
22393 2005-02-04  Jackson Harper  <jackson@ximian.com>
22394
22395         * ThemeWin32Classic.cs: Respect the clipping rect when
22396         drawing. Only fill the intersection of clips and rects so there
22397         isn't a lot of large fills.
22398         * ScrollBar.cs: Pass the correct clipping rect to the theme
22399         engine. Remove some debug code.
22400
22401 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
22402         
22403         * DateTimePicker.cs:
22404                 - Fixed crash on DateTime.Parse, use Constructor instead
22405
22406 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22407         
22408         * MenuItem.cs:
22409         * MenuAPI.cs:
22410                 - Owner draw support (MeasureItem and DrawItem)
22411
22412 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22413         
22414         *  Menu.cs:
22415                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
22416                 - Fixes MenuItems.Add range
22417         * MenuItem.cs:
22418                 - MergeMenu and Clone and CloneMenu functions
22419
22420 2005-02-03  Jackson Harper  <jackson@ximian.com>
22421
22422         * ScrollBar.cs: Make abstract
22423         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
22424         is abstract.
22425
22426 2005-02-03  Jackson Harper  <jackson@ximian.com>
22427
22428         * ScrollBar.cs: First part of my scrollbar fixups. This removes
22429         all the unneeded refreshes and uses invalidates with properly
22430         computed rects.
22431
22432 2005-02-03  Peter Bartok  <pbartok@novell.com>
22433
22434         * ComponentModel.cs: Added
22435         * IDataGridEditingService.cs: Added
22436         * Timer.cs: Added missing attributes
22437         * ToolTip.cs: Added missing attributes
22438
22439 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22440
22441         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
22442
22443 2005-02-03  Peter Bartok  <pbartok@novell.com>
22444
22445         * ListBox.cs: Added missing attributes
22446
22447 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
22448         
22449         * ListBox.cs:
22450                 - Fixes font height after font change
22451                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
22452                 
22453 2005-02-02  Peter Bartok  <pbartok@novell.com>
22454
22455         * HandleData.cs: Introduced static methods to allow class
22456           to be more self-contained and track it's own HandleData objects
22457         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
22458           HandleData to use new static methods
22459
22460 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
22461
22462         * Combobox.cs:
22463                 - Fixes default size and PreferredHeight
22464                 - Missing events
22465                 - ObjectCollection.Insert implementation
22466                 
22467         * ListControl.cs
22468                 - Fixes signature
22469         * ListBox.cs:
22470                 - Several fixes
22471                 - ObjectCollection.Insert implementation
22472                 - No selection after clean
22473                 - Small fixes
22474
22475 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22476
22477         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
22478
22479 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
22480
22481         * Combobox.cs:
22482                 - Caches ItemHeight calculation for OwnerDrawVariable
22483                 - Handles dropdown properly
22484                 - Fixes several minor bugs
22485
22486 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22487
22488         * ListBox.cs:
22489                 - Fixes 71946 and 71950
22490                 - Fixes changing Multicolumn on the fly
22491                 - Fixes keyboard navigation on Multicolumn listboxes
22492
22493 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22494         
22495         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
22496         crash reporter log.
22497
22498 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22499
22500         * XplatUIOSX.cs: Allow applications to actually exit.
22501
22502 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22503
22504         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
22505         their parent at creation time rather than lazily later.  Fixes a major
22506         regression we were experiencing.
22507
22508 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22509
22510         * ThemeWin32Classic.cs: more date time picker painting fixes
22511         * DateTimePicker.cs: more monthcalendar drop down fixes
22512         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
22513
22514 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22515
22516         * ScrollBar.cs:
22517                 - When moving the thumb going outside the control should stop the moving
22518                 - Adds the firing of missing events
22519                 - Fixes no button show if Size is not specified
22520                 - End / Home keys for keyboard navigation
22521
22522 2005-01-30  Peter Bartok  <pbartok@novell.com>
22523
22524         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
22525           sanity check to prevent theoretical loop
22526         * XplatUIWin32.cs (SetVisible): Removed debug output
22527         * XplatUIX11.cs (SystrayChange): Added sanity check
22528         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
22529         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
22530           behaviour, valid until the X11 client window rewrite is done
22531         * TextBox.cs (ctor): Setting proper default foreground and background
22532           colors
22533
22534 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
22535
22536         * Theme: Added DrawDateTimePicker to interface
22537         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
22538         * DateTimePicker.cs: Created (still needs keys and painting code)
22539         * DateTimePickerFormat.cs: added
22540         * MonthCalendar.cs: fixed CreateParams for popup window mode
22541           
22542 2005-01-29  Peter Bartok  <pbartok@novell.com>
22543
22544         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
22545           this should also the calculations for ligher/darker
22546         * Theme.cs: Fixed defaults for ScrollBar widths/heights
22547
22548 2005-01-29  Peter Bartok  <pbartok@novell.com>
22549
22550         * ArrangeDirection.cs: Added
22551         * ArrangeStartingPositon.cs: Added
22552         * SystemInformation.cs: Implemented
22553         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22554           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
22555           used by SystemInformation class
22556         * X11Strucs.cs: Added XSizeHints structure
22557         * MenuAPI.cs:
22558           - Fixed CreateParams to make sure the menu window is always visible
22559           - TrackPopupMenu: Added check to make sure we don't draw the
22560             menu offscreen
22561
22562 2005-01-29  Peter Bartok  <pbartok@novell.com>
22563
22564         * HandleData.cs: Added method for altering invalid area
22565         * TextBoxBase.cs: Implemented TextLength
22566
22567 2005-01-28  Peter Bartok  <pbartok@novell.com>
22568
22569         * XplatUIX11.cs: Improvement over last patch, not sending
22570           the WM_PAINT directly anymore, instead we scroll any pending
22571           exposed areas and let the system pick out the WM_PAINT later
22572
22573 2005-01-28  Peter Bartok  <pbartok@novell.com>
22574
22575         * SWF.csproj: Deleted, no longer used. Instead,
22576           Managed.Windows.Forms/SWF.csproj should be used
22577         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
22578           directly, to avoid a potential race condition with the next
22579           scroll
22580
22581 2005-01-28  Peter Bartok  <pbartok@novell.com>
22582
22583         * XplatUI.cs: Made class internal
22584
22585 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
22586
22587         * CheckedListBox.cs:
22588                 - Draw focus
22589                 - Fixed Drawing
22590                 - Missing methods and events
22591
22592 2005-01-27  Peter Bartok  <pbartok@novell.com>
22593
22594         * Application.cs (Run): Don't use form if we don't have one
22595
22596 2005-01-27  Peter Bartok  <pbartok@novell.com>
22597
22598         * TextBoxBase.cs (get_Lines): Fixed index off by one error
22599
22600 2005-01-27  Peter Bartok  <pbartok@novell.com>
22601
22602         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
22603         * GridItem.cs: Added; Patch by Jonathan S. Chambers
22604         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
22605         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
22606         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
22607         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
22608         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22609         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22610         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22611         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22612         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22613         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22614
22615 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22616
22617         * Combobox.cs:
22618                 - Draw focus on Simple Combobox
22619                 - Fixes drawing issues
22620                 - fixes 71834
22621
22622 2005-01-27  Peter Bartok  <pbartok@novell.com>
22623
22624         * Form.cs:
22625           - Place window in default location, instead of hardcoded 0/0
22626           - Send initial LocationChanged event
22627         * Control.cs:
22628           - UpdateBounds after creation to find out where the WM placed us
22629           - Make sure that if the ParentForm changes location the Form
22630             is notified
22631         * XplatUIX11.cs: XGetGeometry will not return the coords relative
22632             to the root, but to whatever the WM placed around us.
22633             Translate to root coordinates before returning toplevel
22634             coordinates
22635         * XplatUIWin32.cs: Removed debug output
22636         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
22637           flag to GetWindowPos, to allow translation of coordinates on X11
22638
22639 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22640
22641         * ListBox.cs: connect LostFocus Event
22642
22643 2005-01-27  Peter Bartok  <pbartok@novell.com>
22644
22645         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22646           XplatUIX11.cs: Extended the Systray API
22647         * Form.cs: Removed debug output
22648         * Application.cs: Fixed focus assignment, always need to call
22649           XplatUI.Activate() since Form.Activate() has rules that may
22650           prevent activation
22651         * NotifyIcon.cs: Should be complete now
22652         * ToolTip.cs: Worked around possible timer bug
22653
22654 2005-01-27  Jackson Harper  <jackson@ximian.com>
22655
22656         * TabControl.cs:
22657         - Only invalidate the effected tabs when the
22658         selected index changes. This reduces drawing and gets rid of some
22659         flicker.
22660         - Only refresh if the tabs need to be shifted, otherwise only
22661         invalidate the slider button.
22662         - On windows the tabs are not filled to right if the slider is
22663         visible.
22664         
22665 2005-01-27  Jackson Harper  <jackson@ximian.com>
22666
22667         * TabControl.cs: Only refresh on mouseup if we are showing the
22668         slider. Also only invalidate the button whose state has changed.
22669
22670 2005-01-26  Peter Bartok  <pbartok@novell.com>
22671
22672         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
22673         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
22674           and SystrayRemove() methods
22675         * XplatUIOSX.cs: Stubbed Systray methods
22676         * XplatUIX11.cs:
22677           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
22678             methods
22679           - Fixed broken XChangeProperty calls (marshalling messed up things)
22680         * X11Structs.cs: Added enums and structs required for Size hinting
22681         * NotifyIcon.cs: Added & implemented
22682
22683 2005-01-26  Jackson Harper  <jackson@ximian.com>
22684
22685         * TabControl.cs: Space vertically layed out tabs properly.
22686
22687 2005-01-26  Peter Bartok  <pbartok@novell.com>
22688
22689         * Form.cs (CreateClientParams): Always set the location to 0,0
22690           since we're a child window.
22691
22692         * Control.cs (SetVisibleCore): Always explicitly setting the location
22693           of a toplevel window, apparently X11 doesn't like to move windows
22694           while they're not mapped.
22695
22696 2005-01-26  Jackson Harper  <jackson@ximian.com>
22697
22698         * TabControl.cs: Implement FillToRight size mode with vertically
22699         rendered tabs.
22700
22701 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22702
22703         * ControlPaint.cs, ThemeWin32Classic.cs
22704                 - Fixes DrawFocusRectangle
22705
22706 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22707
22708         * MenuAPI.cs:
22709                 - MenuBar tracking only starts when item is first clicked
22710                 - Fixes menu hidding for multiple subitems
22711                 - Unselect item in MenuBar when item Executed
22712                 - Fixes bug 71495
22713
22714 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
22715
22716         * ListControl.cs:
22717                 - IsInputKey for ListBox
22718         * ListBox.cs:
22719                 - Focus item
22720                 - Shift and Control item selection
22721                 - Implement SelectionMode.MultiExtended
22722                 - Fixes RightToLeft
22723         * ComboBox.cs:
22724                 - IsInputKey implemented
22725                 - Do not generate OnTextChangedEdit on internal txt changes
22726                 
22727 2005-01-23  Peter Bartok  <pbartok@novell.com>
22728
22729         * AccessibleObject.cs: Partially implemented Select()
22730         * MonthCalendar.cs: Added missing attributes and events
22731         * Form.cs: Fixed CreateParams behaviour, now controls derived from
22732           form can properly override CreateParams.
22733         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22734           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
22735           Control performs Invalidate & Update
22736         * NativeWindow (CreateHandle): Added special handling for Form
22737           and Form.FormParent classes to allow overriding of From.CreateParams
22738         * Control.cs:
22739           - ControlNativeWindow: Renamed 'control' variable to more intuitive
22740             name 'owner'
22741           - ControlNativeWindow: Added Owner property
22742           - Removed usage of Refresh() on property changes, changed into
22743             Invalidate(), we need to wait until the queue is processed for
22744             updates, direct calls might cause problems if not all vars for
22745             Paint are initialized
22746           - Added call to UpdateStyles() when creating the window, to set any
22747             styles that CreateWindow might have ignored.
22748           - Added support for Form CreateParent overrides to UpdateStyles()
22749         * MessageBox.cs: Removed no longer needed FormParent override stuff,
22750           CreateParams are now properly overridable
22751         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
22752           CreateParams are now properly overridable
22753
22754 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
22755
22756         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
22757         OnTextBoxChanged.
22758
22759         Capture LostFocus and OnTextBoxChanged.  The later introduces a
22760         recursive invocation that I have not figured out yet.
22761
22762         Reset the timer when not using (it was accumulating).
22763
22764
22765         (OnTextBoxChanged): Set UserEdit to true here to track whether the
22766         user has made changes that require validation.
22767
22768         Reset changing to avoid loops.
22769
22770 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
22771
22772         * NumericUpDown.cs: Display value at startup.
22773
22774         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
22775         ValidateEditText.
22776
22777         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
22778         filled in.  Added some basic parsing of text.
22779
22780         Still missing the OnXXX method overrides, and figuring out the
22781         events that must be emitted.
22782
22783         * UpDownBase.cs: Handle UserEdit on the Text property.
22784         
22785 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
22786
22787         * ComboBox.cs:
22788           - Fixes IntegralHeight
22789           - ToString method
22790
22791 2005-01-21  Jackson Harper  <jackson@ximian.com>
22792
22793         * TabControl.cs: Set the SelectedIndex property when SelectedTab
22794         is set so that the page visibility is updated and the tabs are
22795         sized correctly.
22796
22797 2005-01-21  Jackson Harper  <jackson@ximian.com>
22798
22799         * TabControl.cs: Use cliping rectangle for blitting. Give the
22800         theme the clipping rect so we can do clipping while
22801         drawing. Remove some debug code.
22802
22803 2005-01-21  Jackson Harper  <jackson@ximian.com>
22804
22805         * TabPage.cs: Add a new method so tab pages can force the tab
22806         control to recalculate the tab page sizes.
22807         * TabControl.cs: UpdateOwner needs to make the tab control recalc
22808         sizes.
22809
22810 2005-01-20  Jackson Harper  <jackson@ximian.com>
22811
22812         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
22813
22814 2005-01-20  Jackson Harper  <jackson@ximian.com>
22815
22816         * TreeView.cs: Set the bounds for nodes properly. They were
22817         getting screwed up when checkboxes were not enabled, but images
22818         were.
22819
22820 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
22821
22822         * ListBox.cs:
22823                 - Owner draw support
22824                 - Fixes
22825                 
22826 2005-01-20  Jackson Harper  <jackson@ximian.com>
22827
22828         * XplatUIStructs.cs: More misc keys
22829         * X11Keyboard.cs: Ignore some control keys.
22830
22831 2005-01-20  Jackson Harper  <jackson@ximian.com>
22832
22833         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
22834         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
22835
22836 2005-01-19  Peter Bartok  <pbartok@novell.com>
22837
22838         * Control.cs: Un-selecting the control when it is loosing focus
22839
22840 2005-01-19  Jackson Harper  <jackson@ximian.com>
22841
22842         * TreeView.cs: Hook up to the text controls leave event so we can
22843         end editing when the users clicks outside the text box.
22844         
22845 2005-01-19  Jackson Harper  <jackson@ximian.com>
22846
22847         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
22848         get set in the conversion array.
22849
22850 2005-01-19  Peter Bartok  <pbartok@novell.com>
22851
22852         * Application.cs (ModalRun): Added a call to CreateControl to ensure
22853           focus is properly set
22854         * Button.cs:
22855           - Added missing attributes
22856           - removed styles, those are already set in the base class
22857         * ButtonBase.cs:
22858           - Added missing attributes
22859           - Added clip window styles
22860         * CheckBox.cs: Added missing attributes
22861         * CommonDialog.cs:
22862           - FormParentWindow.CreateParams: Added required clip styles
22863         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
22864           also filters modifier keys
22865         * MessageBox.cs:
22866           - Added assignment of Accept and Cancel button to enable Enter
22867             and Esc keys in MessageBox dialogs
22868           - FormParentWindow.CreateParams: Added required clip styles
22869         * RadioButton.cs: Added missing attributes
22870         * TextControl.cs: No longer draws selection if control does not
22871           have focus
22872         * TextBoxBase.cs:
22873           - Now draws simple rectangle around test area to make it obvious
22874             there's a control. This is a hack until we properly support borders
22875           - A few simple fixes to support selections better, now erases selected
22876             text when typing, and resets selection when using movement keys
22877
22878 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
22879
22880         * UpDownBase.cs: Added some new properties.
22881
22882         * DomainUpDown.cs: Implement a lot to get my test working.
22883
22884 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22885
22886         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
22887
22888 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22889
22890         * OSXStructs (WindowAttributes): Fixed csc complaints
22891
22892 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22893
22894         * XplayUIOSX.cs:
22895           OSXStructs.cs: Initial refactor to move enums and consts into
22896           OSXStructs and use them in the driver for greater readability.
22897
22898 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22899
22900         * XplatUIOSX.cs: Initial support for Standard Cursors.
22901         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
22902
22903 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
22904
22905         * ComboBox.cs: ability to change style when the ctrl is already
22906         created, missing methods and events, bug fixes, signature fixes
22907
22908 2005-01-19  Peter Bartok  <pbartok@novell.com>
22909
22910         * Cursors.cs (ctor): Added ctor to fix signature
22911
22912 2005-01-18  Peter Bartok  <pbartok@novell.com>
22913
22914         * Button.cs: Implemented DoubleClick event
22915         * ButtonBase.cs:
22916           - Fixed keyboard handling to behave like MS, where the press of
22917             Spacebar is equivalent to a mousedown, and the key release is
22918             equivalent to mouseup. Now a spacebar push will give the same
22919             visual feedback like a mouse click.
22920           - Added missing attributes
22921           - Added ImeModeChanged event
22922           - Added support for generating DoubleClick event for derived classes
22923         * CheckBox.cs:
22924           - Implemented DoubleClick event
22925           - Added missing attributes
22926         * CommonDialog.cs: Added missing attribute
22927         * ContextMenu.cs: Added missing attributes
22928         * RadioButton.cs:
22929           - AutoChecked buttons do not allow to be unselected when clicked
22930             (otherwise we might end up with no selected buttons in a group)
22931           - Added missing attributes
22932           - Implemented DoubleClickEvent
22933         * ThreadExceptionDialog.cs: Enabled TextBox code
22934
22935 2005-01-18  Peter Bartok  <pbartok@novell.com>
22936
22937         * Form.cs: Removed debug output
22938         * Button.cs: Added support for DoubleClick method
22939
22940 2005-01-18  Peter Bartok  <pbartok@novell.com>
22941
22942         * Form.cs:
22943           - Added method to parent window that allows triggering size
22944             calculations when a menu is added/removed
22945           - set_Menu: Cleaned up mess from early days of Form and Control,
22946             now properly triggers a recalc when a menu is added/removed
22947           - Added case to select form itself as focused form if no child
22948             controls exist
22949           - Added PerformLayout call when showing dialog, to ensure properly
22950             placed controls
22951         * Control.cs:
22952           - Select(): Made internal so Form can access it
22953           - Focus(): Only call Xplat layer if required (avoids loop), and sets
22954             status
22955         * Application.cs (Run): Removed hack and calls PerformLayout instead
22956           to trigger calculation when Form becomes visible
22957
22958 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
22959
22960         * ComboBox.cs: fixes for ownerdraw
22961
22962 2005-01-18  Peter Bartok  <pbartok@novell.com>
22963
22964         * TextControl.cs:
22965           - Sentinel is no longer static, each Document gets it's own, this
22966             avoids locking or alternatively overwrite problems when more
22967             than one text control is used simultaneously.
22968           - Switched to use Hilight and HilightText brushes for text selection
22969
22970         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
22971
22972 2005-01-18  Peter Bartok  <pbartok@novell.com>
22973
22974         * Control.cs:
22975           - Hooked up the following events:
22976                 o ControlAdded
22977                 o ControlRemoved
22978                 o HandleDestroyed
22979                 o ImeModeChanged
22980                 o ParentChanged
22981                 o TabStopChanged
22982                 o Invalidated
22983                 o SystemColorsChanged
22984                 o ParentFontChanged
22985                 o Move
22986           - Removed debug output
22987           - Added a call to the current theme's ResetDefaults when a color change
22988             is detected
22989         * Form.cs: Now setting the proper ImeMode
22990         * Theme.cs: Defined a method to force recreation of cached resources
22991           and rereading of system defaults (ResetDefaults())
22992         * ThemeWin32Classic.cs: Added ResetDefaults() stub
22993
22994 2005-01-17  Peter Bartok  <pbartok@novell.com>
22995
22996         * Control.cs: Added missing attributes
22997
22998 2005-01-17  Jackson Harper  <jackson@ximian.com>
22999
23000         * TreeNode.cs: Implement editing. Add missing properties selected
23001         and visible.
23002         * TreeView.cs: Implement node editing. Also some fixes to use
23003         Invalidate (invalid area) instead of Refresh when selecting.
23004
23005 2005-01-17  Peter Bartok  <pbartok@novell.com>
23006
23007         * Control.cs:
23008           - Implemented InvokeGotFocus() method
23009           - Implemented InvokeLostFocus() method
23010           - Implemented InvokePaint() method
23011           - Implemented InvokePaintBackground() method
23012           - Implemented InvokeClick() method
23013           - Implemented FindForm() method
23014           - Implemented RectangleToClient() method
23015           - Implemented ClientToRectangle() method
23016           - Implemented ResetBackColor() method
23017           - Implemented ResetCursor() method
23018           - Implemented ResetFont() method
23019           - Implemented ResteForeColor() method
23020           - Implemented ResetImeMode() method
23021           - Implemented ResetLeftToRight() method
23022           - Implemented ResetText() method
23023           - Implemented Scale() methods
23024           - Implemented ScaleCore() method
23025           - Implemented Update() method
23026           - Removed unused variables
23027           - Stubbed AccessibilityNotifyClients and
23028             ControlAccessibleObject.NotifyClients() methods (dunno what to do
23029             with those yet)
23030           - Now setting proper default for RightToLeft property
23031           - Fixed bug in SetClientSizeCore that would cause windows to get
23032             really big
23033           - Now sending Click/DoubleClick events
23034           - Now selecting controls when left mouse button is clicked on
23035             selectable control
23036         * AccessibleEvents.cs: Added
23037         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
23038         * XplatUIOSX.cs: Stubbed UpdateWindow() method
23039         * XplatUIWin32.cs: Implemented UpdateWindow() method
23040         * XplatUIX11.cs: Implemented UpdateWindow() method
23041         * Form.cs: Removed stray semicolon causing CS0162 warning
23042         * ThemeWin32Classic.cs: Fixed unused variable warnings
23043         * ScrollableControl.cs: Now calls base method for ScaleCore
23044         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
23045           style to avoid interference with internal click handler (which is
23046           different than standard Control click handling)
23047         * RadioButton.cs:
23048           - Now unchecks all sibling radio buttons when control is
23049             selected (Fixes #68756)
23050           - Removed internal tabstop variable, using the one inherited from
23051             Control
23052
23053 2005-01-17  Jackson Harper  <jackson@ximian.com>
23054
23055         * NavigateEventArgs.cs: Fix base type.
23056         * LinkLabel.cs: Sig fix
23057         
23058 2005-01-17  Jackson Harper  <jackson@ximian.com>
23059
23060         * TreeView.cs: Only invalidate the effected nodes bounds when
23061         selecting nodes.
23062
23063 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
23064
23065         * XplatUIWin32.cs: fixes Win32 marshaling
23066         * XplatUIX11.cs: fixes method signature
23067
23068 2005-01-17  Peter Bartok  <pbartok@novell.com>
23069
23070         * XplatUIX11.cs: Clean up resources when we no longer need them
23071
23072 2005-01-17  Peter Bartok  <pbartok@novell.com>
23073
23074         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
23075           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
23076           and DestroyCursor() methods.
23077         * Cursor.cs: Partially implemented, now supports standard cursors;
23078           still contains some debug code
23079         * Cursors.cs: Implemented class
23080         * Control.cs:
23081           - WndProc(): Added handling of WM_SETCURSOR message, setting the
23082             appropriate cursor
23083           - Implemented Cursor property
23084           - Replaced break; with return; more straightforwar and possibly
23085             faster
23086           - Now properly setting the result for WM_HELP
23087         * X11Structs.cs: Added CursorFontShape enum
23088         * XplatUIStructs.cs:
23089           - Added StdCursor enum (to support DefineStdCursor() method)
23090           - Added HitTest enum (to support sending WM_SETCURSOR message)
23091         * XplatUIX11.cs:
23092           - Now sends the WM_SETCURSOR message
23093           - Implemented new cursor methods
23094         * XplatUIOSX.cs: Stubbed new cursor methods
23095         * XplatUIWin32.cs:
23096           - Implemented new cursor methods
23097           - Added GetSystemMetrics function and associated enumeration
23098
23099 2005-01-15  Peter Bartok  <pbartok@novell.com>
23100
23101         * Control.cs:
23102           - WndProc(): Now handles EnableNotifyMessage
23103           - SelectNextControl(): Fixed bug where if no child or sibling
23104             controls exist we looped endlessly
23105
23106 2005-01-14  Jackson Harper  <jackson@ximian.com>
23107
23108         * TreeView.cs: Recalculate the tab pages when a new one is added
23109         so that the proper bounding rects are created.
23110
23111 2005-01-14  Jackson Harper  <jackson@ximian.com>
23112
23113         * TreeView.cs: Draw a gray box instead of a grip in the lower
23114         right hand corner when there are both horizontal and vertical
23115         scroll bars.
23116
23117 2005-01-14  Jackson Harper  <jackson@ximian.com>
23118
23119         * Control.cs: When erasing backgrounds use FromHwnd instead of
23120         FromHdc when there is a NULL wparam. This occurs on the X driver.
23121         * XplatUIX11.cs: Set the wparam to NULL.
23122
23123 2005-01-13  Jackson Harper  <jackson@ximian.com>
23124
23125         * PictureBox.cs: Implement missing methods (except ToString, need
23126         to test that on windows) and events. When visibility is changed we
23127         need to redraw the image because the buffers are killed. When size
23128         is changed refresh if the sizemode needs it.
23129
23130 2005-01-13  Peter Bartok  <pbartok@novell.com>
23131
23132         * Control.cs (SelectNextControl): Was using wrong method to select
23133           a control
23134
23135 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
23136
23137         * ComboBox.cs: fixes dropstyle
23138
23139 2005-01-13  Peter Bartok  <pbartok@novell.com>
23140
23141         * Form.cs:
23142           - Implemented Select() override
23143           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
23144           - Now sets keyboard focus on startup
23145         * Control.cs (SelectNextControl): Now properly handles directed=true
23146         * TextBoxBase.cs:
23147           - WndProc: Now passes tab key on to base if AcceptTabChar=false
23148           - Added (really bad) focus rectangle (mostly for testing)
23149         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
23150           to enforce redraw on focus changes
23151         * ContainerControl.cs:
23152           - Fixed detection of Shift-Tab key presses
23153           - Fixed traversal with arrow keys
23154         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
23155           gonna keep this or if it's complete yet
23156         
23157 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
23158
23159         * ComboBox.cs: missing properties, fixes
23160
23161 2005-01-13  Peter Bartok  <pbartok@novell.com>
23162
23163         * Panel.cs (ctor): Setting Selectable window style to off
23164         * Splitter.cs (ctor): Setting Selectable window style to off
23165         * GroupBox.cs (ctor): Setting Selectable window style to off
23166         * Label.cs (ctor): Setting Selectable window style to off
23167
23168 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
23169
23170         * UpDownBase.cs (InitTimer): If the timer has been already
23171         created, enable it.
23172
23173         Use a TextBox instead of a Label.
23174
23175 2005-01-12  Jackson Harper  <jackson@ximian.com>
23176
23177         * TreeView.cs: Refresh the tree after sorting the nodes. Always
23178         draw the connecting node lines (when ShowLines is true).
23179         * TreeNode.cs: The nodes index can now be updated. This is used
23180         when a node collection is sorted.
23181         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
23182         insert or an existing unsorted node collection can be sorted.
23183         
23184 2005-01-12  Peter Bartok  <pbartok@novell.com>
23185
23186         * ContainerControl.cs: Implemented ProcessDialogKeys()
23187
23188 2005-01-12  Peter Bartok  <pbartok@novell.com>
23189
23190         * Control.cs:
23191           - Implemented SelectNextControl() method
23192           - Several focus related bug fixes
23193           - Fixed Docking calculations to match MS documentation and
23194             behaviour
23195
23196 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
23197
23198         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
23199         bug fixes
23200
23201 2005-01-12  Peter Bartok  <pbartok@novell.com>
23202
23203         * Control.cs:
23204           - Fixed broken Contains() method
23205           - Implemented GetNextControl() method. Finally. This is the pre-
23206             requisite for focus handling.
23207
23208 2005-01-12  Peter Bartok  <pbartok@novell.com>
23209
23210         * OSXStrucs.cs: Added
23211
23212 2005-01-12  Peter Bartok  <pbartok@novell.com>
23213
23214         * XplatUIWin32.cs:
23215           - Removed PeekMessageFlags
23216           - Implemented SetWindowStyle() method
23217         * XplatUIStructs.cs: Added PeekMessageFlags
23218         * X11Structs: Added missing border_width field to XWindowChanges struct
23219         * XplatUIX11.cs:
23220           - PeekMessage: Now throws exception if flags which are not yet
23221             supported are passed
23222           - Implemented SetWindowStyle() method
23223           - Fixed SetZOrder to handle AfterHwnd properly
23224         * XplatUI.cs: Added SetWindowStyle() method
23225         * XplatUIDriver.cs: Added SetWindowStyle() abstract
23226         * Control.cs:
23227           - Implemented UpdateStyles() method
23228           - Implemented UpdateZOrder() method
23229         * XplatUIOSX.cs: Added SetWindowStyle() stub
23230
23231 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
23232
23233         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
23234         button mouse).
23235
23236
23237 2005-01-11  Jackson Harper  <jackson@ximian.com>
23238
23239         * TreeView.cs: Still need to draw lines to siblings even if out of
23240         the current node is out of the clip.
23241
23242 2005-01-11  Jackson Harper  <jackson@ximian.com>
23243
23244         * TreeView.cs: When setting the hbar/vbar/grip position use
23245         SetBounds so that perform layout is only called once. Also suspend
23246         and resume layout so layout is only done once for all controls.
23247         - Removed some debug fluff
23248         * SizeGrip.cs: Call base implmentation in overriding methods.
23249         - When visibility is changed the drawing buffers are killed so we
23250         need to redraw.
23251
23252 2005-01-11  Jackson Harper  <jackson@ximian.com>
23253
23254         * TreeView.cs: Calculate the open node count while drawing. This
23255         saves us an entire tree traversal for every paint operation. Use
23256         a member var for the open node count so less vars are passed around.
23257
23258 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
23259
23260         * MonthCalendar.cs:
23261         - fixed selection to use mousemove, not mouse polling on timer
23262         * ThemeWin32Classic.cs
23263         - removed redundant unused variable "no_more_content"
23264         
23265 2005-01-11  Peter Bartok  <pbartok@novell.com>
23266
23267         * XplatUIX11.cs (DoEvents): Needs to return when no more events
23268           are pending, so it now calls PeekMessage instead of GetMessage;
23269           implemented a incomplete version of PeekMessage
23270         
23271 2005-01-11  Peter Bartok  <pbartok@novell.com>
23272
23273         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
23274           I18n issues
23275         * TextBoxBase.cs: Added sending of TextChanged event
23276
23277 2005-01-10  Jackson Harper  <jackson@ximian.com>
23278
23279         * TreeView.cs: Try not to draw outside the clipping rectangle on
23280         each node element.
23281
23282 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
23283
23284         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
23285
23286 2005-01-10  Jackson Harper  <jackson@ximian.com>
23287
23288         * TreeView.cs:
23289         - Implement fast scrolling. Now only the newly
23290         exposed nodes are drawn and the old image is moved using the
23291         XplatUI::ScrollWindow method.
23292         - Factor in height of nodes when calculating whether or not the
23293         node is in the clipping rect.
23294
23295 2005-01-10  Jackson Harper  <jackson@ximian.com>
23296
23297         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
23298
23299 2005-01-10  Peter Bartok  <pbartok@novell.com>
23300
23301         * Application.cs: Added temporary hack to resolve all our resize
23302           required issues on startup. This will get fixed properly at
23303           some point in the future
23304
23305 2005-01-10  Jackson Harper  <jackson@ximian.com>
23306
23307         * SizeGrip.cs: New internal class that is used as a sizing
23308         grip control...hence the name.
23309
23310 2005-01-10  Peter Bartok  <pbartok@novell.com>
23311
23312         * Control.cs: Implemented proper TabIndex handling, now assigning
23313           a tabindex when a control is added to a container
23314         * GroupBox.cs (ctor): Now sets the Container style bit, required
23315           for Control.GetNextControl()
23316
23317 2005-01-09  Jackson Harper  <jackson@ximian.com>
23318
23319         * TextBoxBase.cs: Clear window when scrolling (fixes build).
23320
23321 2005-01-09  Peter Bartok <pbartok@novell.com>
23322
23323         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
23324           XplatUIX11.cs: Added ability to control ScrollWindow expose and
23325           an overload for ScrollWindow to allow only scrolling a rectangle
23326
23327 2005-01-09  Peter Bartok <pbartok@novell.com>
23328
23329         * Form.cs:
23330           - Implemented SetDesktopBounds method
23331           - Implemented SetDesktopLocation method
23332
23333 2005-01-08  Jackson Harper  <jackson@ximian.com>
23334
23335         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
23336         the node count has changed, this removes to VScroll::Refresh calls
23337         when drawing.
23338
23339 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
23340
23341         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
23342
23343 2005-01-07  Jackson Harper  <jackson@ximian.com>
23344
23345         * TreeNode.cs: Just update the single node when it is
23346         checked. Don't refresh after toggling, the Expand/Collapse already
23347         handles this.
23348         * TreeView.cs: Respect clipping a little more when drawing. Try
23349         not to redraw things that don't need to be redrawn. Just hide the
23350         scrollbars when they are no longer needed instead of removing
23351         them, so they don't have to be created again and again.
23352         
23353 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
23354
23355         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
23356         coordinates to window space to place the caret properly, FIXED.
23357         Implement GetWindowState & SetWindowState
23358
23359 2005-01-06  Peter Bartok <pbartok@novell.com>
23360
23361         * Form.cs:
23362           - Implemented ClientSize property
23363           - Implemented DesktopBounds property
23364           - Implemented DesktopLocation property
23365           - Implemented IsRestrictedWindow property
23366           - Implemented Size property
23367           - Implemented TopLevel property
23368           - Implemented FormWindowState property
23369         * Control.cs:
23370           - Implemented GetTopLevel() method
23371           - Implemented SetTopLevel() method
23372         * X11Structs.cs (Atom):
23373           - Added AnyPropertyType definition
23374           - Added MapState definiton and updated XWindowAttribute struct
23375         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
23376         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
23377         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
23378         * XplatUIWin32.cs:
23379           - Implemented GetWindowState() and SetWindowState() methods
23380           - Fixed Win32GetWindowLong return type
23381         * XplatUIX11.cs:
23382           - Introduced central function for sending NET_WM messages
23383           - Implemented GetWindowState() and SetWindowState() methods
23384         * TextBoxBase.cs (set_Lines):
23385           - Now uses Foreground color for text added via Text property (Duh!)
23386           - Added code to remember programmatically requested size (fixes
23387             behaviour when Multiline is set after Size)
23388           - Added AutoSize logic
23389
23390 2005-01-06  Jackson Harper  <jackson@ximian.com>
23391
23392         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
23393
23394 2005-01-06  Jackson Harper  <jackson@ximian.com>
23395
23396         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
23397         set to less then 0.
23398
23399 2005-01-06  Jackson Harper  <jackson@ximian.com>
23400
23401         * ScrollableControl.cs: Lazy init the scrollbars.
23402         
23403 2005-01-06  Jackson Harper  <jackson@ximian.com>
23404
23405         * Theme.cs: Speed up getting pens and solid brushes, by using
23406         their ARGB as a hash instead of tostring and not calling Contains.
23407
23408 2005-01-06  Peter Bartok <pbartok@novell.com>
23409
23410         * Form.cs:
23411           - Implemented OnActivated and OnDeactivate event trigger
23412           - Implemented Activate() method
23413           - Fixed ShowDialog() to activate the form that was active before
23414             the dialog was shown
23415         * XplatUIX11.cs:
23416           - Added global active_window var that tracks the currently active
23417             X11 window
23418           - Now always grabs Property changes from the root window to always
23419             catch changes on the active window property
23420           - Added code to PropertyNotify handler to send Active/Inactive
23421             messages when state changes. This puts X11 and Win32 en par on
23422             WM_ACTIVATE notifications (except for double notifications when
23423             the user clicks away from our modal window to another one of our
23424             windows)
23425
23426 2005-01-05  Jackson Harper  <jackson@ximian.com>
23427
23428         * ImageList.cs: Implment ctor
23429
23430 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23431
23432         * XplatUIOSX.cs: Implement Activate/SetTopmost
23433
23434 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23435
23436         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
23437
23438 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23439
23440         * XplatUIOSX.cs: Implement GetActive/SetFocus.
23441
23442 2005-01-05  Peter Bartok <pbartok@novell.com>
23443
23444         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
23445           XplatUIOSX.cs: Added GetActive method to return the currently
23446           active window for the application (or null, if none is active)
23447         * Form.cs:
23448           - Implemented ActiveForm
23449           - Commented out owner assignment for modal dialogs (causes problems
23450             on Win32, since the owner will be disabled)
23451           - Reworked some Active/Focus handling (still incomplete)
23452         * CommonDialog.cs: Commented out owner assignment for modal dialogs
23453           (causes problems on Win32, since the owner will be disabled)
23454         * IWin32Window: Added ComVisible attribute
23455
23456 2005-01-05  Peter Bartok <pbartok@novell.com>
23457
23458         * ToolTip.cs (WndProc): Enable setting focus now that we have the
23459           required XplatUI functions.
23460
23461 2005-01-05  Peter Bartok <pbartok@novell.com>
23462
23463         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
23464           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
23465           to implement focus and activation handling; still incomplete and
23466           with debug output
23467
23468 2005-01-04  Peter Bartok <pbartok@novell.com>
23469
23470         * TextBoxBase.cs: Changed access level for Document property to
23471           match switch to internal for TextControl
23472
23473 2005-01-04  Peter Bartok <pbartok@novell.com>
23474
23475         * AccessibleObject: Added ComVisible attribute
23476
23477 2005-01-04  Jackson Harper  <jackson@ximian.com>
23478
23479         * X11Keyboard.cs: Remove unneeded var.
23480
23481 2005-01-04  Jackson Harper  <jackson@ximian.com>
23482
23483         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
23484         but PAINT.
23485         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
23486         ClientMessage. This makes apps exit cleanly (more often).
23487         
23488 2005-01-04  Jackson Harper  <jackson@ximian.com>
23489
23490         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
23491         handling focus, return correct colors and fonts,
23492         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
23493         handle selection, horizontal scrolling, and mouse interaction.
23494
23495 2005-01-04  Peter Bartok <pbartok@novell.com>
23496
23497         * ICommandExecutor.cs: Added
23498         * IDataGridColumnStyleEditingNotificationService.cs: Added
23499         * IFeatureSupport.cs: Added
23500         * IFileReaderService.cs: Added
23501         * IDataObject.cs: Added ComVisible attribute
23502         * AmbientProperties.cs: Added
23503         * BaseCollection.cs: Added missing attributes
23504         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
23505         * BaseCollection.cs: Added missing attributes
23506         * Binding.cs: Added TypeConverter attribute
23507         * BindingContext.cs: Added DefaultEvent attribute
23508         * BindingsCollection.cs: Added DefaultEvent attribute
23509         * Button.cs: Added DefaultValue attribute
23510         * DragEventArgs.cs: Added ComVisible attribute
23511         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
23512         * KeyEventArgs.cs: Added ComVisible attribute
23513         * KeyPressEventArgs.cs: Added ComVisible attribute
23514         * MouseEventArgs.cs: Added ComVisible attribute
23515         * NavigateEventArgs.cs: Added
23516         * NavigateEventHandler.cs: Added
23517         * FeatureSupport.cs: Added
23518         * OSFeature.cs: Added
23519         * Theme.cs: Added abstract Version property to support OSFeature
23520         * ThemeWin32Classic.cs: Added Version property to
23521           support OSFeature.Themes
23522         * ProgressBar.cs: Removed OnPaintBackground override, not required since
23523           the proper styles to avoid background drawing are set, also doesn't
23524           match MS signature
23525         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
23526         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
23527         * ScrollEventArgs.cs: Added ComVisible attribute
23528         * SplitterEventArgs.cs: Added ComVisible attribute
23529         * AccessibleSelection.cs: Added Flags attribute
23530         * Appearance.cs: Added ComVisible attribute
23531         * Border3DSide.cs: Added ComVisible attribute
23532         * Border3DStyle.cs: Added ComVisible attribute
23533         * BorderStyle.cs: Added ComVisible attribute
23534         * DragAction.cs: Added ComVisible attribute
23535         * ErrorBlinkStyle.cs: Added
23536         * ScrollEventType.cs: Added ComVisible attribute
23537         * AnchorStyles.cs: Added Editor attribute
23538         * DockStyle.cs: Added Editor attribute
23539         * HorizontalAlignment.cs: Added ComVisible attribute
23540         * HelpEventArgs.cs: Added ComVisible attribute
23541         * PaintEventArgs.cs: Added IDisposable
23542
23543 2005-01-04  Peter Bartok <pbartok@novell.com>
23544
23545         * TextControl.cs: Switched Line, LineTag and Document classes to
23546           internal
23547
23548 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23549
23550         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
23551         Simple mode, fixes, IntegralHeight, etc.
23552
23553 2005-01-04  Peter Bartok <pbartok@novell.com>
23554
23555         * TextBoxBase.cs: Using proper font variable now
23556
23557 2005-01-04  Peter Bartok <pbartok@novell.com>
23558
23559         * Form.cs (ShowDialog): Set parent to owner, if provided
23560         * GroupBox.cs: Removed unused vars
23561         * TextControl.cs:
23562           - Added GetHashCode() for Document and LineTag classes
23563           - Removed unused variables
23564           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
23565             to allow translation between continuous char position and line/pos
23566         * CheckBox.cs: Removed vars that are provided by base class
23567         * RadioButton.cs: Removed vars that are provided by base class, added
23568           new keyword where required
23569         * LinkLabel.cs: Added new keyword where required
23570         * Control.cs (WndProc): Removed unused variable
23571         * TextBoxBase.cs:
23572           - Finished SelectionLength property
23573           - Implemented SelectionStart property
23574           - Implemented Text property
23575           - Removed unused vars
23576         * MessageBox.cs: Added new keyword where required
23577         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
23578           WndProc signature
23579         * MenuAPI.cs: Added new keyword where required
23580         * ButtonBase.cs: Removed vars that are provided by base class, added
23581           new keyword where required
23582         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
23583           argument to double, to allow compiling with csc 2.0 (Atsushi ran
23584           into this)
23585         * Application.cs (Run): Now triggers the ThreadExit event
23586         * CommonDialog.cs: Added new keyword where required; now properly sets
23587           parent (owner) for dialog
23588         * XplatUIX11.cs: Commented out unused vars
23589         * StatusBar.cs: Fixed signature for Text property
23590         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
23591
23592 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23593
23594         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
23595         TrackBar.cs, MonthCalendar.cs: remove unused vars
23596
23597 2005-01-03  Jackson Harper  <jackson@ximian.com>
23598
23599         * ThemeWin32Classic.cs:
23600         * X11Keyboard.cs: Remove unused vars.
23601
23602 2005-01-03  Peter Bartok  <pbartok@novell.com>
23603
23604         * TextBox.cs:
23605           - set_Text: Tied into TextControl
23606           - set_TextAlignment: Tied into TextControl
23607         * TextControl.cs:
23608           - Added alignment properties and implemented alignment handling
23609             and drawing (still has a bug, not generating proper expose events)
23610           - Added new Line() constructor to allow passing the line alignment
23611           - Fixed selection setting, properly handling end<start now
23612           - Added aligment considerations to RecalculateDocument()
23613         * TextBoxBase.cs:
23614           - Now properly enforces control height for single line controls
23615           - Added support for CharacterCasing
23616           - Added IsInputKey override
23617           - Fixed Keys.Enter logic
23618           - Added SetBoundsCore override
23619           - Fixed mouse selection handling
23620
23621 2005-01-03  Jackson Harper  <jackson@ximian.com>
23622
23623         * TreeView.cs:
23624           - Collapse and uncheck all nodes when CheckBoxes is disabled.
23625           - Checkboxes are always aligned to the bottom of the node,
23626           regardless of item height.
23627           - Use the node bounds to draw the text so we can center it when
23628           the item height is greater then the font height.
23629           - Node::Bounds are only the text part of the node.
23630         * TreeNode.cs: New method to combine collapsing and unchecking all
23631           nodes recursively.
23632
23633 2005-01-02  Jackson Harper  <jackson@ximian.com>
23634
23635         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
23636         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
23637         tree when a check is changed. TODO: Only refresh the checked node.
23638
23639 2004-12-30  Jackson Harper  <jackson@ximian.com>
23640
23641         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
23642         * TreeNode.cs: When collapsing make sure to never collapse the
23643         root node.
23644
23645 2004-12-29  Jackson Harper  <jackson@ximian.com>
23646
23647         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
23648         
23649 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
23650
23651         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
23652
23653 2004-12-28  Peter Bartok  <pbartok@novell.com>
23654
23655         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
23656           not yet assigned
23657
23658 2004-12-28  Peter Bartok  <pbartok@novell.com>
23659
23660         * Control.cs (WndProc): Added WM_HELP handler, now generates
23661           HelpRequested event
23662         * Form.cs: Added HelpButton property and required support code
23663         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
23664
23665 2004-12-28  Peter Bartok  <pbartok@novell.com>
23666
23667         * CommonDialog.cs:
23668           - Made DialogForm.owner variable internal
23669           - Added check to ensure owner form is set before setting
23670             owner properties in CreateParams
23671
23672 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
23673
23674         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
23675           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
23676           GetCursorPos.  Fix major visibility issues.  Rework the windowing
23677           system to support borderless/titleless windows (implements menus).
23678           Fix GetWindowPos.  Implement initial background color support for
23679           views.
23680
23681 2004-12-28  Peter Bartok  <pbartok@novell.com>
23682
23683         * Form.cs (get_CreateParams): Make sure we have an owner before using
23684           the owner variable. Implement proper default if no owner exists
23685
23686 2004-12-28  Peter Bartok  <pbartok@novell.com>
23687
23688         * In preparation for making Managed.Windows.Forms the default build target
23689           for System.Windows.Forms, the following stubbed files were added.
23690           Dialogs are currently being implemented by contributors and are only
23691           short-term place holders.
23692         * ColorDialog.cs: Initial check-in (minmal stub)
23693         * DataGrid.cs: Initial check-in (minimal stub)
23694         * DataGridLineStyle.cs: Initial check-in (minimal stub)
23695         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
23696         * DataGridTableStyle.cs: Initial check-in (minimal stub)
23697         * FontDialog.cs: Initial check-in (minimal stub)
23698         * FileDialog.cs: Initial check-in (minimal stub)
23699         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
23700         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
23701         * OpenFileDialog: Initial check-in (minimal stub)
23702         * IComponentEditorPageSite.cs: Initial check-in
23703         * Splitter.cs: Initial check-in (for Jackson)
23704         * SplitterEventArgs.cs: Initial check-in (for Jackson)
23705         * SplitterEventHandler.cs: Initial check-in (for Jackson)
23706         * TextBox.cs: Initial check-in; still needs some wiring to
23707           TextControl backend
23708         * Form.cs: Implemented ControlBox property
23709         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
23710         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
23711         * TextControl.cs: Added selection functionality; added todo header
23712         * TextBoxBase.cs:
23713           - Implemented Lines property
23714           - Implemented TextHeight property
23715           - Implemented SelectedText property
23716           - Implemented SelectionLength property
23717           - Implemented SelectAll method
23718           - Implemented ToString method
23719           - Removed and cleaned up some debug code
23720           - Implemented (still buggy) mouse text selection
23721
23722 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
23723
23724         * ComboBox.cs: Complete DropDownList implementation, fixes.
23725
23726 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
23727
23728         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
23729         * ComboBoxStyle.cs: ComboBoxStyle enum
23730         * ComboBox.cs: Initial work on ComboBox control
23731
23732 2004-12-21  Peter Bartok  <pbartok@novell.com>
23733
23734         * Control.cs (ctor, CreateParams): Moved setting of is_visible
23735           forward so that anything that creates a window gets the default,
23736           also no longer uses Visible property in CreateParams to avoid
23737           walking up the parent chain and possibly get the wrong visible
23738           status. Fixed IsVisible to no longer walk up to the parent.
23739
23740 2004-12-21  Peter Bartok  <pbartok@novell.com>
23741
23742         * Form.cs (ShowDialog): Unset modality for the proper window
23743  
23744 2004-12-20  Peter Bartok  <pbartok@novell.com>
23745
23746         * CommonDialog.cs: Initial check-in
23747
23748 2004-12-20  Peter Bartok  <pbartok@novell.com>
23749
23750         * Control.cs (Visible): Now uses the parent window instead of the
23751           client area window for the property
23752
23753         * Form.cs
23754           - ShowDialog(): Now uses the proper window for modality
23755           - The default visibility state for the form parent is now false. This
23756             will prevent the user from seeing all the changes to the form and
23757             its controls before the application hits Application.Run()
23758           - Removed some stale commented out code
23759
23760         * NativeWindow.cs:
23761           - Added FindWindow() method to have a method to check for existence
23762             of a window handle
23763           - Added ability to override default exception handling (for example
23764             when debugging with VS.Net; to do this the ExternalExceptionHandler
23765             define must be set
23766           - Removed some useless debug output
23767
23768         * XplatUIX11.cs:
23769           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
23770             not working as expected
23771           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
23772             property to allow switching back to the modal window if focus is
23773             given to another one of our windows (Application Modal)
23774           - Now only sets override_redirect if we create a window
23775             without WS_CAPTION
23776           - Moved EventMask selection before mapping of newly created window
23777             so we can catch the map event as well
23778           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
23779           - Added various Atom related DllImports
23780           - Implemented Exit() method
23781           - .ctor() : No longer shows window if WS_VISIBLE is not defined
23782             in the CreateParams
23783
23784         * MessageBox.cs: Now properly deals with the FormParent window by
23785           providing an override the FormParent CreateParams property to
23786           set as POPUP instead of OVERLAPPED window.
23787
23788 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23789
23790         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
23791         Minor code cleanup.
23792
23793 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23794         
23795         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
23796
23797 2004-12-18  Peter Bartok  <pbartok@novell.com>
23798
23799         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
23800           implementing SetModal() method
23801
23802 2004-12-18  Peter Bartok  <pbartok@novell.com>
23803
23804         * X11Structs.cs (XGCValues): Fixed type of function element
23805         * XplatUI.cs: Added ScrollWindow() method
23806         * XplatUIDriver.cs: Added ScrollWindow() abstract
23807         * XplatUIWin32.cs: Implemented ScrollWindow() method
23808         * XplatUIX11.cs: Implemented ScrollWindow() method
23809         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
23810
23811 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23812
23813         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
23814         Some more keyboard support (INCOMPLETE)
23815
23816 2004-12-17  Peter Bartok  <pbartok@novell.com>
23817
23818         * TextControl.cs:
23819         - Added color attribute to line tags.
23820         - Added color argument to all functions dealing with tags
23821         - Added color argument support to various functions
23822         - Fixed miss-calculation of baseline/shift in certain circumstances
23823
23824         * TextBoxBase.cs: Added new color option to test code
23825
23826 2004-12-17  Jackson Harper  <jackson@ximian.com>
23827
23828         * TreeNode.cs:
23829         * MonthCalendar.cs: Signature fixes
23830
23831 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23832
23833         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
23834         keyboard event moved it.  Create a new graphics context for each paint resolves this
23835
23836 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23837
23838         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
23839         Make caret exist and go blink blink.  Initial keyboard support.
23840         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
23841         works.
23842
23843 2004-12-17  Jackson Harper  <jackson@ximian.com>
23844
23845         * XplatUIStructs.cs: Updated set of virtual keycodes.
23846         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
23847
23848 2004-12-17  Jackson Harper  <jackson@ximian.com>
23849
23850         * XplatUIX11.cs: Prune old keyboard code.
23851
23852 2004-12-17  Jackson Harper  <jackson@ximian.com>
23853
23854         * XplatUIX11.cs: When generating mouse wparams get the modifier
23855         keys from the ModifierKeys property.
23856
23857 2004-12-17  Jackson Harper  <jackson@ximian.com>
23858
23859         * X11Keyboard.cs: Send up/down input when generating
23860         messages. Remove some unused vars.
23861
23862 2004-12-17  Jackson Harper  <jackson@ximian.com>
23863
23864         * TabControl.cs:
23865         * TreeView.cs: get rid of warnings.
23866
23867 2004-12-17  Jackson Harper  <jackson@ximian.com>
23868
23869         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
23870
23871 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
23872
23873         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
23874           CheckedListBox.cs: Implementation
23875
23876 2004-12-17  Peter Bartok  <pbartok@novell.com>
23877
23878         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
23879
23880 2004-12-16  Peter Bartok  <pbartok@novell.com>
23881
23882         * TextControl.cs:
23883           - InsertCharAtCaret(): Fixed start pos fixup
23884           - CaretLine_get: No longer derives the line from the tag, the tag
23885             could be stale if lines in the document have been added or deleted
23886           - RebalanceAfterDelete(): Fixed bug in balancing code
23887           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
23888           - Line.Streamline(): Now can also elminate leading empty tags
23889           - DumpTree(): Added a few more tests and prevented exception on
23890             uninitialized data
23891           - Added Debug section for Combining lines
23892           - Delete(): Now copies all remaining properties of a line
23893           
23894         * TextBoxBase.cs:
23895           - Left mousebutton now sets the caret (and middle button still acts
23896             as formatting tester, which must go away soon)
23897           - Added Debug section for Deleting/Combining lines
23898           - Fixed calculations for UpdateView after Combining lines
23899
23900 2004-12-16  Peter Bartok  <pbartok@novell.com>
23901
23902         * TextControl.cs: Now properly aligns text on a baseline, using the
23903           new XplatUI.GetFontMetrics() method. Simplified several calculations
23904         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
23905           defined
23906
23907 2004-12-16  Peter Bartok  <pbartok@novell.com>
23908
23909         * XplatUI.cs: Added GetFontMetrics() method
23910         * XplatUIDriver.cs: Added GetFontMetrics() abstract
23911         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
23912           into libgdiplus, our private GetFontMetrics function
23913         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
23914         * XplatUIWin32.cs: Implemented GetFontMetrics() method
23915
23916 2004-12-16  Jackson Harper  <jackson@ximain.com>
23917
23918         * XplatUIStruct.cs: Add enum for dead keys
23919         * X11Keyboard.cs: Map and unmap dead keys.
23920
23921 2004-12-16  Jackson Harper  <jackson@ximian.com>
23922
23923         * X11Keyboard.cs: Detect and use the num lock mask.
23924
23925 2004-12-16  Peter Bartok  <pbartok@novell.com>
23926
23927         * Control.cs (CreateGraphics): Added check to make sure the
23928           handle of the window exists before calling Graphics.FromHwnd()
23929
23930 2004-12-16  Peter Bartok  <pbartok@novell.com>
23931
23932         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
23933           contains a lot of code that's not supposed to be there for the
23934           real thing, but required for developing/testing the textbox
23935           backend.
23936
23937 2004-12-16  Peter Bartok  <pbartok@novell.com>
23938
23939         * TextControl.cs:
23940         - Fixed Streamline method
23941         - Added FindTag method to Line
23942         - Added DumpTree method for debugging
23943         - Added DecrementLines() method for deleting lines
23944         - Fixed UpdateView to update the cursor to end-of-line on single-line
23945           updates
23946         - Added PositionCaret() method
23947         - Fixed MoveCaret(LineDown) to move into the last line, too
23948         - Added InsertChar overload
23949         - Fixed InsertChar tag offset calculations
23950         - Added DeleteChar() method
23951         - Added Combine() method for folding lines
23952         - Fixed Delete() method, no longer allocates wasted Line object and
23953           now copies all properties when swapping nodes
23954         - Delete() method now updates document line counter
23955
23956 2004-12-15  Jackson Harper  <jackson@ximian.com>
23957
23958         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
23959         * X11Keyboard.cs: Expose the currently selected modifier keys
23960         through a property.
23961
23962 2004-12-15  Peter Bartok  <pbartok@novell.com>
23963
23964         * TextControl.cs: Initial check-in. Still incomplete
23965
23966 2004-12-15  Jackson Harper  <jackson@ximian.com>
23967
23968         * TreeNode.cs:
23969         * TreeView.cs: Fix build on csc (second time today ;-))
23970
23971 2004-12-15  Jackson Harper  <jackson@ximian.com>
23972
23973         * TreeView.cs: Store the treenodes plus/minus box bounds when it
23974         is calculated and use this for click testing.
23975         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
23976
23977 2004-12-15  Jackson Harper  <jackson@ximian.com>
23978
23979         * TreeView.cs: Pass the nodes image index to the image list when
23980         drawing that image.
23981
23982 2004-12-15  Jackson Harper  <jackson@ximian.com>
23983
23984         * X11Keyboard.cs: Set messages hwnd.
23985         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
23986         post_message calls.
23987
23988 2004-12-15  Jackson Harper  <jackson@ximian.com>
23989
23990         * X11Keyboard.cs: Fix to compile with csc.
23991         
23992 2004-12-15  Jackson Harper  <jackson@ximian.com>
23993
23994         * X11Structs.cs: Add key mask values
23995         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
23996         * X11Keyboard.cs: New file - Extrapolates and interpolates key
23997         down/up foo into WM_CHAR foo
23998         * KeyboardLayouts.cs: Common keyboard layouts
23999         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
24000         post messages into the main queue.
24001
24002 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
24003
24004         * Button.cs: implement ProcessMnemonic
24005         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
24006           brushes everytime
24007         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
24008         * ButtonBase.cs: Show HotkeyPrefix (not the &)
24009
24010 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
24011         
24012         * MonthCalendar.cs: Implemented click-hold for next/previous month
24013           and date selection
24014           
24015 2004-12-11  Peter Bartok  <pbartok@novell.com>
24016
24017         * X11Structs.cs:
24018           - Added XKeyboardState (moved from XplatUIX11.cs)
24019           - Added XCreateGC related enums and structures
24020           - Added GXFunction for XSetFunction
24021
24022         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
24023
24024         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
24025           CaretVisible() calls
24026
24027         * ToolTip.cs: Added code to prevent stealing focus from app windows
24028
24029         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
24030           DestroyCaret, SetCaretPos and CaretVisible)
24031
24032         * XplatUIX11.cs:
24033           - Added implementation for caret functions
24034           - Moved hover variables into a struct, to make it a bit easier
24035             on the eyes and to debug
24036           - Removed XKeyboardState (moved to XplatUIX11.cs)
24037           - Moved Keyboard properties into the properties region
24038
24039         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
24040           call to get a graphics context for our control
24041
24042         * XplatUIOSX.cs: Added empty overrides for the new caret functions
24043
24044         * TreeView.cs: Fixed bug. No matter what color was set it would always
24045           return SystemColors.Window
24046
24047         * XplatUIWin32.cs: Implemented caret overrides
24048
24049 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
24050
24051         * ListBox.cs: fire events, implement missing methods and properties,
24052         sorting.
24053
24054 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
24055
24056         * MonthCalendar.cs: invalidation bug fixing
24057         * ThemeWin32Classic.cs: paint fixing
24058
24059 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
24060
24061         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
24062         prepare the CGContextRef there now.
24063
24064 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
24065
24066         * MonthCalendar.cs:
24067           - optimisationL only invalidate areas that have changed
24068         * ThemeWin32Classic.cs:
24069           - only paint parts that intersect with clip_area
24070
24071 2004-12-09  Peter Bartok  <pbartok@novell.com>
24072
24073         * Application.cs: Undid changes from r37004 which cause problems
24074         on X11
24075
24076 2004-12-09  Ravindra  <rkumar@novell.com>
24077
24078         * ToolBar.cs: Added support for displaying ContextMenu
24079         attached to a button on ToolBar.
24080         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
24081         property.
24082
24083 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
24084
24085         * Label.cs: autosize works in text change and removes unnecessary
24086         invalidate
24087
24088 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
24089
24090         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
24091         remove warnings
24092
24093 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
24094
24095         * XplatUIOSX.cs: Added mouse move/click/grab support
24096         Remove some debugging WriteLines not needed anymore.
24097         Add window resizing/positioning.
24098         Fix visibility on reparenting.
24099
24100 2004-12-08  Peter Bartok  <pbartok@novell.com>
24101
24102         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
24103
24104 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
24105
24106         * XplatUIOSX.cs: Initial checkin
24107         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
24108
24109 2004-12-03  Ravindra <rkumar@novell.com>
24110
24111         * ListView.cs: Added some keybindings and fixed scrolling.
24112         ScrollBars listen to ValueChanged event instead of Scroll
24113         Event. This would let us take care of all changes being
24114         done in the scrollbars' values programmatically or manually.
24115         * ListView.cs (CanMultiselect): Added a check for shift key.
24116         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
24117         * ListViewItem.cs (Clone): Fixed. We need to make a copy
24118         of ListViewSubItemCollection as well.
24119
24120 2004-12-06  Peter Bartok <pbartok@novell.com>
24121
24122         * Control.cs (Parent): Added check and exception to prevent
24123         circular parenting
24124
24125 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
24126
24127         * ListBox.cs: implemented clipping, selection single and multiple,
24128         bug fixing
24129
24130 2004-12-03  Ravindra <rkumar@novell.com>
24131
24132         * ListView.cs (ListView_KeyDown):
24133         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
24134         when CTRL key is pressed.
24135         * ListViewItem.cs (Selected): Fixed setting the property.
24136
24137 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
24138
24139         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
24140
24141         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
24142         MinimizeBox, ShowInTaskbar, TopMost properties.
24143
24144         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
24145         will be implemented).
24146
24147 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
24148
24149         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
24150
24151         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
24152         tests.
24153         
24154         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
24155         
24156         * TreeView.cs: BackColor is Colors.Window.
24157
24158 2004-12-01  Jackson Harper  <jackson@ximian.com>
24159
24160         * TreeView.cs: When resizing the tree if the user is making it
24161         smaller we don't get expose events, so we need to handle adding
24162         the horizontal scrollbar in the size changed handler as well as
24163         the expose handler.
24164
24165 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
24166
24167         * DrawItemState.cs: fixes wrong enum values
24168
24169 2004-12-01  Jackson Harper  <jackson@ximian.com>
24170
24171         * TreeView.cs: Resize the hbar as well as the vbar on resize.
24172
24173 2004-12-01  Jackson Harper  <jackson@ximian.com>
24174
24175         * NodeLabelEditEventArgs.cs:
24176         * NodeLabelEditEventHandler.cs:
24177         * OpenTreeNodeEnumerator.cs:
24178         * TreeNode.cs:
24179         * TreeNodeCollection.cs:
24180         * TreeView.cs:
24181         * TreeViewAction.cs:
24182         * TreeViewCancelEventArgs.cs:
24183         * TreeViewCancelEventHandler.cs:
24184         * TreeViewEventArgs.cs:
24185         * TreeViewEventHandler.cs: Initial implementation.
24186
24187 2004-12-01  Ravindra <rkumar@novell.com>
24188
24189         * ListView.cs (CalculateListView): Fixed scrolling related
24190         calculations. Also, removed some debug statements from other
24191         places.
24192         * ListViewItem.cs: Changed access to 'selected' instance variable
24193         from private to internal.
24194         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
24195
24196 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
24197
24198         * ThemeWin32Classic.cs: remove cache of brush and pens for
24199         specific controls and use the global system, fixes scrollbutton
24200         bugs (for small sizes, disabled, etc)
24201         
24202         * ScrollBar.cs: does not show the thumb for very small controls
24203         (as MS) and allow smaller buttons that the regular size
24204
24205 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
24206
24207         * UpDownBase.cs: Add abstract methods for the interface.
24208         Add new virtual methods (need to be hooked up to TextEntry when it
24209         exists).
24210         Add override methods for most features.
24211         Computes the size, forces the height of the text entry.
24212
24213         * NumericUpDown.cs: Put here the current testing code.
24214
24215         * Set eol-style property on all files that do not have mixed line
24216         endings, to minimize the future problems.  There are still a few
24217         files with mixed endings, and someone should choose whether they
24218         want to move it or not.
24219
24220 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
24221
24222         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
24223         System.Colors
24224         
24225 2004-11-30  Ravindra <rkumar@novell.com>
24226
24227         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
24228         drawing and replaced use of SystemColors by theme colors.
24229         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
24230         * ListView.cs (ListViewItemCollection.Add): Throw exception when
24231         same ListViewItem is being added more than once.
24232
24233 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
24234
24235         * MonthCalendar.cs:
24236           - ControlStyles love to make the control not flicker
24237           
24238 2004-11-30  Peter Bartok  <pbartok@novell.com>
24239
24240         * CharacterCasing.cs: Added
24241
24242 2004-11-29  Peter Bartok  <pbartok@novell.com>
24243
24244         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24245           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
24246           I am removing these files as they conflict with already completed
24247           work. While it is fantastic to get contributions to MWF, I
24248           respectfully ask that everyone please coordinate their contributions
24249           through mono-winforms-list or #mono-winforms at this time. We're
24250           explicitly avoiding stubbing and don't want controls that don't have
24251           their basic functionality implemented in svn. Please also see
24252           http://www.mono-project.com/contributing/winforms.html
24253
24254
24255 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
24256
24257         * Application.cs (ModalRun): Don't hang after exit.
24258
24259         * Theme.cs: New TreeViewDefaultSize property.
24260
24261         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
24262         with less hardcoded SystemColors constant.
24263         Implemented TreeViewDefaultSize.
24264
24265         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24266         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
24267
24268
24269 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
24270
24271         * MonthCalendar.cs:
24272           - Fix NextMonthDate and PrevMonthDate click moving calendar
24273
24274 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
24275
24276         * MonthCalendar.cs:
24277           - Fix usage of ScrollChange Property when scrolling months
24278
24279 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
24280
24281         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
24282          - Fixes menu destroying
24283          - Support adding and removing items on already created menus
24284
24285 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
24286
24287         * MonthCalendar.cs:
24288           - Re-worked all bolded dates handling to match win32
24289         * ThemeWin32Classic.cs:
24290           - Fixed rendering with bolded dates
24291
24292 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
24293
24294         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
24295         - Horizontal scroolbar
24296         - Multicolumn
24297         - Fixes
24298
24299
24300 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
24301
24302         * MonthCalendar.cs:
24303           - Fix Usage of MaxSelectionCount from SelectionRange
24304           - Fixed Shift + Cursor Selection
24305           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
24306           - Fixed normal cursor selection to be compat with win32
24307           - Fixed Shift + Mouse Click selection
24308
24309 2004-11-24  Peter Bartok <pbartok@novell.com>
24310
24311         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
24312         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
24313         * XplatUIX11.cs:
24314           - CreatedKeyBoardMsg now updates keystate with Alt key
24315           - Added workaround for timer crash to CheckTimers, Jackson will
24316             develop a proper fix and check in later
24317           - Implemented DispatchMessage
24318           - Removed calling the native window proc from GetMessage (call
24319             now moved to DispatchMessage)
24320
24321         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
24322           the keydata (Fixes bug #69831)
24323
24324         * XplatUIWin32.cs:
24325           - (DispatchMessage): Switched to return IntPtr
24326           - Added DllImport for SetFocus
24327
24328 2004-11-24  Ravindra <rkumar@novell.com>
24329
24330         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
24331         background drawing.
24332         * ListViewItem.cs: Fixed various properties, calculations
24333         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
24334         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
24335         and some internal properties. Fixed MouseDown handler and Paint
24336         method.
24337
24338 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24339
24340         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
24341
24342 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24343
24344         * ContainerControl.cs: correct accidental check in of local changes
24345
24346 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24347
24348         * ThemeWin32Classic.cs:
24349                 - Fixed Drawing Last month in grid (sometimes not showing)
24350         * MonthCalendar.cs:
24351                 - Fixed title width calculation bug (makeing title small)
24352
24353 2004-11-23  Peter Bartok <pbartok@novell.com>
24354
24355         * XplatUIX11.cs:
24356           - Added generation of WM_MOUSEHOVER event
24357           - Added missing assignment of async_method atom
24358           - Fixed WM_ERASEBKGND; now only redraws the exposed area
24359
24360 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24361
24362         * ThemeWin32Classic.cs:
24363                 - Fixed Drawing of today circle when showtodaycircle not set
24364                 - fixed drawing of first and last month in the grid (gay dates)
24365         * MonthCalendar.cs:
24366                 - Fixed Drawing of today circle
24367                 - Fixed drawing of grady dates
24368                 - Fixed HitTest for today link when ShowToday set to false
24369                 - Fixed DefaultSize to obey ShowToday
24370
24371 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24372
24373         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
24374         * System.Windows.Forms/Theme.cs
24375         * MonthCalendar.cs: added for MonthCalendar
24376         * SelectionRange.cs: added for MonthCalendar
24377         * Day.cs: added for MonthCalendar: added for MonthCalendar
24378         * DateRangeEventArgs.cs: added for MonthCalendar
24379         * DateRangeEventHandler.cs: added for MonthCalendar
24380
24381 2004-11-22  Ravindra <rkumar@novell.com>
24382
24383         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
24384         property.
24385
24386 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
24387
24388         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
24389         event handler.
24390         
24391         * NumericUpDown.cs: Added new implementation.
24392         * UpDownBase.cs: Added new implementation.
24393
24394         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
24395         implementations.
24396         
24397         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
24398         implementations.
24399
24400         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
24401         methods.
24402
24403 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
24404
24405         * Timer.cs  (Dispose): Should call the base dispose when
24406         overriding.
24407
24408 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24409
24410         * ScrollBar.cs: updates thumb position when max, min or increment
24411         is changed
24412
24413 2004-11-21  Ravindra <rkumar@novell.com>
24414
24415         * ListView.cs: Implemented item selection, activation and
24416         column header style. Fixed properties to do a redraw, if
24417         required. Added support for MouseHover, DoubleClick, KeyDown
24418         and KeyUp event handling and some minor fixes.
24419         * ListViewItem.cs: Fixed constructor.
24420         * ThemeWin32Classic.cs: Improved drawing for ListView.
24421
24422 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24423
24424         * ThemeWin32Classic.cs: initial listbox drawing code
24425         * DrawMode.cs: new enumerator
24426         * ListControl.cs: stubbed class
24427         * ListBox.cs: initial implementation
24428         * Theme.cs: new methods definitions
24429         * SelectionMode.cs: new enumerator
24430
24431 2004-11-17  Peter Bartok  <pbartok@novell.com>
24432
24433         * XplatUIWin32.cs: Added double-click events to the class style
24434         * Control.cs (WndProc):
24435           - Added handling of click-count to MouseDown/ MouseUp events.
24436           - Added handling of middle and right mouse buttons
24437           - Removed old debug code
24438
24439 2004-11-17  Jackson Harper  <jackson@ximian.com>
24440
24441         * XplatUIX11.cs: Use the new Mono.Unix namespace.
24442
24443 2004-11-17  Ravindra <rkumar@novell.com>
24444
24445         * ListView.cs: Added event handling for MouseMove/Up/Down.
24446         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
24447         * ThemeWin32Classic.cs: We need to clear the graphics context and
24448         draw column header in a proper state.
24449
24450
24451 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
24452
24453         *  Menu.cs: fixes signature
24454
24455 2004-11-16  Peter Bartok  <pbartok@novell.com>
24456
24457         * XplatUIX11.cs (GetMessage): Implemented generation of
24458           double click mouse messages
24459
24460 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
24461
24462         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
24463         not by menu
24464
24465 2004-11-11  Peter Bartok  <pbartok@novell.com>
24466
24467         * HandleData.cs: Added Visible property
24468         * XplatUIX11.cs (IsVisible): Now uses Visible property from
24469           HandleData
24470         * XplatUIX11.cs: Removed old debug leftovers
24471         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
24472         * Control.cs (WndProc): Removed old debug leftovers,
24473           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
24474           needed WM_SIZE handling
24475
24476 2004-11-11  Jackson Harper  <jackson@ximian.com>
24477
24478         * OwnerDrawPropertyBag.cs:
24479         * TreeViewImageIndexConverter.cs: Initial implementation
24480
24481 2004-11-10  Jackson Harper  <jackson@ximian.com>
24482
24483         * ThemeWin32Classic.cs:
24484         * TabControl.cs: instead of moving tabs by the slider pos just
24485         start drawing at the tab that is offset by the slider. This way
24486         scrolling always moves by exactly one tab.
24487
24488 2004-11-10  Jackson Harper  <jackson@ximian.com>
24489
24490         * TabControl.cs: You can only scroll left when the slider has
24491         already ben moved right.
24492         
24493 2004-11-10  Jackson Harper  <jackson@ximian.com>
24494
24495         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
24496         the clip area.
24497         
24498 2004-11-10  Jackson Harper  <jackson@ximian.com>
24499
24500         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
24501         clip area.
24502         
24503 2004-11-09  Jackson Harper  <jackson@ximian.com>
24504
24505         * TabControl.cs (CalcXPos): New helper method so we can determine
24506         the proper place to start drawing vertical tabs.
24507         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
24508         
24509 2004-11-09  Jackson Harper  <jackson@ximian.com>
24510
24511         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
24512         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
24513         and Bottom, left and right are illegal values for this and
24514         multiline is enabled when the alignment is set to left or right.
24515         (DrawTab): Each alignment block should draw the text itself now
24516         because Left requires special love. Also add rendering for Left
24517         aligned tabs.
24518         
24519 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
24520
24521         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
24522         does not destroy the windows, removes debugging messages
24523
24524 2004-11-09  jba  <jba-mono@optusnet.com.au>
24525
24526         * ThemeWin32Classic.cs
24527         (DrawButtonBase): Fix verticle text rect clipping in windows
24528         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24529         rendering and incorrect text rect clipping
24530         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24531         rendering and incorrect text rect clipping
24532         
24533 2004-11-08  Jackson Harper  <jackson@ximian.com>
24534
24535         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
24536         bottom when they are bottom aligned so the bottoms of the tabs get
24537         displayed.
24538         * TabControl.cs (DropRow): Move rows up instead of down when the
24539         tab control is bottom aligned.
24540
24541 2004-11-08 13:59  pbartok
24542
24543         * XplatUIX11.cs:
24544           - Added handling for various window styles
24545           - Added handling for popup windows
24546           - Added SetTopmost handling
24547
24548 2004-11-08 13:55  pbartok
24549
24550         * XplatUIWin32.cs:
24551           - Added argument to SetTopmost method
24552           - Fixed broken ClientToScreen function
24553
24554 2004-11-08 13:53  pbartok
24555
24556         * XplatUIStructs.cs:
24557           - Added missing WS_EX styles
24558
24559 2004-11-08 13:53  pbartok
24560
24561         * XplatUI.cs, XplatUIDriver.cs:
24562           - Added argument to SetTopmost
24563
24564 2004-11-08 13:52  pbartok
24565
24566         * X11Structs.cs:
24567           - Added XSetWindowAttributes structure
24568           - Improved XWindowAttributes structure
24569           - Added SetWindowValuemask enum
24570           - Added window creation arguments enum
24571           - Added gravity enum
24572           - Added Motif hints structure
24573           - Added various Motif flags and enums
24574           - Added PropertyMode enum for property functions
24575
24576 2004-11-08 13:50  pbartok
24577
24578         * Form.cs:
24579           - Fixed arguments for updated SetTopmost method
24580
24581 2004-11-08 13:49  pbartok
24582
24583         * ToolTip.cs:
24584           - Fixed arguments for updated SetTopmost function
24585           - Fixed usage of PointToClient
24586
24587 2004-11-08 13:44  pbartok
24588
24589         * MenuAPI.cs:
24590           - Added Clipping of children and siblings
24591
24592 2004-11-08 13:41  pbartok
24593
24594         * MainMenu.cs:
24595           - Removed SetMenuBarWindow call. We do this in Form.cs
24596
24597 2004-11-08 13:40  jackson
24598
24599         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
24600           scrolling jimmi in the correct location with bottom aligned tabs
24601
24602 2004-11-08 13:36  pbartok
24603
24604         * ContainerControl.cs:
24605           - Implemented BindingContext
24606           - Implemented ParentForm
24607
24608 2004-11-08 12:46  jackson
24609
24610         * TabControl.cs: Put bottom rendered tabs in the right location
24611
24612 2004-11-08 07:15  jordi
24613
24614         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
24615           removes dead code
24616
24617 2004-11-05 17:30  jackson
24618
24619         * TabControl.cs: When selected tabs are expanded make sure they
24620           don't go beyond the edges of the tab control
24621
24622 2004-11-05 14:57  jackson
24623
24624         * TabControl.cs: Reset show_slider so if the control is resized to
24625           a size where it is no longer needed it's not displayed anymore
24626
24627 2004-11-05 13:16  jackson
24628
24629         * TabControl.cs: Make tab pages non visible when added to the
24630           control
24631
24632 2004-11-05 12:42  jackson
24633
24634         * TabControl.cs: Implement SizeMode.FillToRight
24635
24636 2004-11-05 12:16  jackson
24637
24638         * Control.cs: Do not call CreateHandle if the handle is already
24639           created
24640
24641 2004-11-05 11:46  jackson
24642
24643         * TabControl.cs: Remove superflous call to CalcTabRows
24644
24645 2004-11-05 09:07  jackson
24646
24647         * XplatUIX11.cs: Update for Mono.Posix changes
24648
24649 2004-11-05 07:00  ravindra
24650
24651         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
24652           scrolling.
24653
24654 2004-11-04 22:47  jba
24655
24656         * ThemeWin32Classic.cs:
24657           - Fix Button rendering for FlatStyle = Flat or Popup
24658           - Fix RadioButton and CheckBox rendering when Appearance = Button
24659             (normal and flatstyle).
24660           - Correct outer rectangle color when drawing focus rectangle
24661           - Adjust button bounds to be 1 px smaller when focused
24662           - Make button not draw sunken 3d border when pushed (windows compat)
24663           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
24664           - Offset the text in RadioButton and Checkbox when being rendered as
24665           a button.
24666           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
24667           radiobuttons
24668           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
24669           - Fixed disabled text rendering for normally rendered radiobuttons
24670
24671 2004-11-04 10:26  jackson
24672
24673         * TabControl.cs: Recalculate tab rows when resizing
24674
24675 2004-11-04 07:47  jordi
24676
24677         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
24678           collection completion, drawing issues, missing features
24679
24680 2004-11-04 05:03  ravindra
24681
24682         * ScrollBar.cs:
24683                 - We need to recalculate the Thumb area when
24684                 LargeChange/maximum/minimum values are changed.
24685           - We set the 'pos' in UpdatePos() method to minimum, if it's less
24686                 than minimum. This is required to handle the case if large_change is
24687                 more than max, and use LargeChange property instead of large_change
24688                 variable.
24689           - We return max+1 when large_change is more than max, like MS does.
24690
24691 2004-11-04 04:29  ravindra
24692
24693         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
24694                 - Changed default value signatures (prefixed all with ListView).
24695                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
24696                 ListView.
24697           - Fixed calculations for ListViewItem and implemented Clone()
24698           method.
24699
24700 2004-11-04 04:26  ravindra
24701
24702         * Theme.cs, ThemeWin32Classic.cs:
24703                 - Changed default ListView values signatures (prefixed all with
24704                 ListView).
24705           - Fixed default size values for VScrollBar and HScrollBar.
24706                 - Fixed DrawListViewItem method.
24707
24708 2004-11-04 04:05  ravindra
24709
24710         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
24711
24712 2004-11-04 04:04  ravindra
24713
24714         * ImageList.cs: Implemented the missing overload for Draw method.
24715
24716 2004-11-03 19:29  jackson
24717
24718         * TabControl.cs: Handle dropping rows on selection properly
24719
24720 2004-11-03 11:59  jackson
24721
24722         * TabControl.cs: remove debug code
24723
24724 2004-11-03 11:52  jackson
24725
24726         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
24727           the scrolly widgerywoo
24728
24729 2004-11-02 13:52  jackson
24730
24731         * TabControl.cs: Resize the tab pages and tabs when the tab control
24732           is resized
24733
24734 2004-11-02 13:40  jackson
24735
24736         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
24737           selected tab to the bottom
24738
24739 2004-11-02 13:39  jackson
24740
24741         * TabPage.cs: Store the tab pages row
24742
24743 2004-11-02 12:33  jordi
24744
24745         * MenuItem.cs: fixes handle creation
24746
24747 2004-11-02 11:42  jackson
24748
24749         * TabControl.cs: signature fix
24750
24751 2004-11-02 08:56  jackson
24752
24753         * TabControl.cs: Calculate whether the tab is on an edge properly.
24754           Remove top secret debugging code
24755
24756 2004-11-01 19:57  jackson
24757
24758         * TabControl.cs: Add click handling, and proper sizing
24759
24760 2004-11-01 19:47  jackson
24761
24762         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
24763           tab controls
24764
24765 2004-11-01 19:39  jackson
24766
24767         * TabPage.cs: add internal property to store the bounds of a tab
24768           page
24769
24770 2004-10-30 04:23  ravindra
24771
24772         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
24773           values.
24774
24775 2004-10-30 04:21  ravindra
24776
24777         * ListView.cs, ListViewItem.cs: Added support for scrolling and
24778           fixed calculations.
24779
24780 2004-10-30 03:06  pbartok
24781
24782         * XplatUIX11.cs:
24783           - Removed extension of DllImported libs
24784
24785 2004-10-29 09:55  jordi
24786
24787         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
24788           navigation, itemcollection completion, menu fixes
24789
24790 2004-10-27 22:58  pbartok
24791
24792         * XplatUIX11.cs:
24793           - Now throws a nice error message when no X display could be opened
24794
24795 2004-10-26 13:51  jordi
24796
24797         * ListView.cs: removes warning
24798
24799 2004-10-26 03:55  ravindra
24800
24801         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
24802           ThemeWin32Classic.cs: Some formatting for my last checkins.
24803
24804 2004-10-26 03:36  ravindra
24805
24806         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
24807           control and default values.
24808
24809 2004-10-26 03:35  ravindra
24810
24811         * Theme.cs: Added some default values for ListView control.
24812
24813 2004-10-26 03:33  ravindra
24814
24815         * ToolBar.cs: ToolBar should use the user specified button size, if
24816           there is any. Added a size_specified flag for the same.
24817
24818 2004-10-26 03:33  ravindra
24819
24820         * ColumnHeader.cs: Added some internal members and calculations for
24821           ColumnHeader.
24822
24823 2004-10-26 03:32  ravindra
24824
24825         * ListViewItem.cs: Calculations for ListViewItem.
24826
24827 2004-10-26 03:31  ravindra
24828
24829         * ListView.cs: Added some internal members and calculations for
24830           ListView.
24831
24832 2004-10-22 13:31  jordi
24833
24834         * MenuAPI.cs: speedup menus drawing
24835
24836 2004-10-22 13:16  jackson
24837
24838         * XplatUIX11.cs: Make sure to update exposed regions when adding an
24839           expose event
24840
24841 2004-10-22 11:49  jackson
24842
24843         * Control.cs: oops
24844
24845 2004-10-22 11:41  jackson
24846
24847         * Control.cs: Check to see if the window should have its background
24848           repainted by X when drawing.
24849
24850 2004-10-22 11:31  jackson
24851
24852         * XplatUIX11.cs: When invalidating areas only use XClearArea if
24853           clear is true, this way we do not get flicker from X repainting the
24854           background
24855
24856 2004-10-22 11:28  jackson
24857
24858         * XEventQueue.cs: Queue properly
24859
24860 2004-10-21 09:38  jackson
24861
24862         * XEventQueue.cs: Fix access modifier
24863
24864 2004-10-21 09:36  jackson
24865
24866         * XEventQueue.cs: Don't loose messages
24867
24868 2004-10-21 09:22  jackson
24869
24870         * XEventQueue.cs: Don't loose messages
24871
24872 2004-10-20 04:15  jordi
24873
24874         * BootMode.cs: enum need it by SystemInfo
24875
24876 2004-10-19 21:58  pbartok
24877
24878         * XplatUIWin32.cs:
24879           - Small sanity check
24880
24881 2004-10-19 21:56  pbartok
24882
24883         * Form.cs:
24884           - Added private FormParentWindow class which acts as the container
24885             for our form and as the non-client area where menus are drawn
24886           - Added/Moved required tie-ins to Jordi's menus
24887           - Fixed/Implemented the FormStartPosition functionality
24888
24889 2004-10-19 21:52  pbartok
24890
24891         * Control.cs:
24892           - Removed unneeded locals
24893           - Added code to all size and location properties to understand and
24894             deal with the parent container of Form
24895
24896 2004-10-19 21:33  pbartok
24897
24898         * Application.cs:
24899           - Fixed to deal with new Form subclasses for menus
24900
24901 2004-10-19 17:48  jackson
24902
24903         * XEventQueue.cs: commit correct version of file
24904
24905 2004-10-19 16:50  jackson
24906
24907         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
24908
24909 2004-10-19 16:15  jordi
24910
24911         * MenuAPI.cs: MenuBarCalcSize returns the height
24912
24913 2004-10-19 08:31  pbartok
24914
24915         * Control.cs:
24916           - Added missing call to PreProcessMessage before calling OnXXXKey
24917           methods
24918
24919 2004-10-19 00:04  ravindra
24920
24921         * ToolTip.cs: Fixed constructor.
24922
24923 2004-10-18 09:31  jordi
24924
24925         * MenuAPI.cs: menuitems in menubars do not have shortcuts
24926
24927 2004-10-18 09:26  jordi
24928
24929         * MenuItem.cs: fixes MenuItem class signature
24930
24931 2004-10-18 08:56  jordi
24932
24933         * MenuAPI.cs: prevents windows from showing in the taskbar
24934
24935 2004-10-18 00:28  ravindra
24936
24937         * ToolTip.cs: Suppressed a warning message.
24938
24939 2004-10-18 00:27  ravindra
24940
24941         * Control.cs: Default value of visible property must be true.
24942
24943 2004-10-17 23:19  pbartok
24944
24945         * ToolTip.cs:
24946           - Complete implementation
24947
24948 2004-10-17 23:19  pbartok
24949
24950         * XplatUIX11.cs:
24951           - Added EnableWindow method
24952           - Added SetModal stub
24953           - Added generation of WM_ACTIVATE message (still needs testing)
24954           - Added SetTopMost stub
24955           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
24956
24957 2004-10-17 23:17  pbartok
24958
24959         * XplatUIWin32.cs:
24960           - Removed VirtualKeys to XplatUIStructs
24961           - Implemented SetTopMost method
24962           - Implemented EnableWindow method
24963           - Bugfix in ScreenToClient()
24964           - Bugfixes in ClientToScreen()
24965
24966 2004-10-17 22:51  pbartok
24967
24968         * XplatUIStructs.cs:
24969           - Added WS_EX styles to WindowStyles enumeration
24970
24971 2004-10-17 22:50  pbartok
24972
24973         * XplatUI.cs, XplatUIDriver.cs:
24974           - Added method for enabling/disabling windows
24975           - Added method for setting window modality
24976           - Added method for setting topmost window
24977
24978 2004-10-17 22:49  pbartok
24979
24980         * ThemeWin32Classic.cs:
24981           - Added ToolTip drawing code
24982
24983 2004-10-17 22:49  pbartok
24984
24985         * Theme.cs:
24986           - Added ToolTip abstracts
24987
24988 2004-10-17 22:47  pbartok
24989
24990         * Form.cs:
24991           - Fixed Form.ControlCollection to handle owner relations
24992           - Added Owner/OwnedForms handling
24993           - Implemented Z-Ordering for owned forms
24994           - Removed unneeded private overload of ShowDialog
24995           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
24996             so I hope)
24997           - Fixed Close(), had wrong default
24998           - Added firing of OnLoad event
24999           - Added some commented out debug code for Ownership handling
25000
25001 2004-10-17 22:16  pbartok
25002
25003         * Control.cs:
25004           - Fixed/implemented flat list of controls
25005
25006 2004-10-17 22:14  pbartok
25007
25008         * Application.cs:
25009           - Added code to simulate modal dialogs on Win32
25010
25011 2004-10-17 16:11  jordi
25012
25013         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
25014           mouse event
25015
25016 2004-10-17 13:39  jordi
25017
25018         * MenuAPI.cs: menu drawing fixes
25019
25020 2004-10-15 09:10  ravindra
25021
25022         * StructFormat.cs: General Enum.
25023
25024 2004-10-15 09:09  ravindra
25025
25026         * SizeGripStyle.cs: Enum for Form.
25027
25028 2004-10-15 09:08  ravindra
25029
25030         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
25031           in Theme for ListView.
25032
25033 2004-10-15 09:06  ravindra
25034
25035         * ColumnHeader.cs: Flushing some formatting changes.
25036
25037 2004-10-15 09:05  ravindra
25038
25039         * ListViewItem.cs: Implemented GetBounds method and fixed coding
25040           style.
25041
25042 2004-10-15 09:03  ravindra
25043
25044         * ListView.cs: Implemented Paint method and fixed coding style.
25045
25046 2004-10-15 07:34  jordi
25047
25048         * MenuAPI.cs: fix for X11
25049
25050 2004-10-15 07:32  ravindra
25051
25052         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
25053                 - Renamed Paint() method to Draw() for clarity. Also, moved
25054                 DrawImage() to OnPaint().
25055
25056 2004-10-15 07:25  ravindra
25057
25058         * CheckBox.cs, RadioButton.cs:
25059                 - Removed Redraw (), we get it from ButtonBase.
25060                 - Implemented Paint (), to do class specific painting.
25061
25062 2004-10-15 07:16  ravindra
25063
25064         * ButtonBase.cs:
25065                 - Redraw () is not virtual now.
25066                 - Added an internal virtual method Paint (), so that
25067                 derived classes can do their painting on their own.
25068                 - Modified OnPaint () to call Paint ().
25069
25070 2004-10-15 06:43  jordi
25071
25072         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
25073           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
25074
25075 2004-10-15 00:30  ravindra
25076
25077         * MessageBox.cs:
25078                 - MessageBox on windows does not have min/max buttons.
25079                 This change in CreateParams fixes this on Windows. We
25080                 still need to implement this windowstyle behavior in
25081                 our X11 driver.
25082
25083 2004-10-14 05:14  ravindra
25084
25085         * ToolBar.cs:
25086                 - Changed Redraw () to do a Refresh () always.
25087                 - Fixed the MouseMove event handling when mouse is pressed,
25088                 ie drag event handling.
25089                 - Replaced the usage of ToolBarButton.Pressed property to
25090                 ToolBarButton.pressed internal variable.
25091
25092 2004-10-14 05:10  ravindra
25093
25094         * ToolBarButton.cs:
25095                 - Added an internal member 'inside' to handle mouse move
25096                 with mouse pressed ie mouse drag event.
25097                 - Changed 'Pressed' property to return true only when
25098                 'inside' and 'pressed' are both true.
25099                 - Some coding style love.
25100
25101 2004-10-14 00:17  ravindra
25102
25103         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
25104           public method.
25105
25106 2004-10-14 00:15  ravindra
25107
25108         * ButtonBase.cs: Redraw () related improvements.
25109
25110 2004-10-14 00:14  ravindra
25111
25112         * MessageBox.cs: Moved InitFormSize () out of Paint method and
25113           removed unnecessary calls to Button.Show () method.
25114
25115 2004-10-13 17:50  pbartok
25116
25117         * XplatUIX11.cs:
25118           - Formatting fix
25119           - Removed destroying of window until we solve the problem of X
25120             destroying the window before us on shutdown
25121
25122 2004-10-13 16:32  pbartok
25123
25124         * ButtonBase.cs:
25125           - Now Redraws on MouseUp for FlatStyle Flat and Popup
25126
25127 2004-10-13 14:18  pbartok
25128
25129         * XplatUIX11.cs:
25130           - Added code to destroy the X window
25131
25132 2004-10-13 14:18  pbartok
25133
25134         * XplatUIWin32.cs:
25135           - Added code to destroy a window
25136
25137 2004-10-13 14:12  pbartok
25138
25139         * ButtonBase.cs:
25140           - Added the Redraw on Resize that got dropped in the last rev
25141
25142 2004-10-13 09:06  pbartok
25143
25144         * ThemeWin32Classic.cs:
25145           - Path from John BouAntoun:
25146             * Fix check rendering (centre correctly for normal style, offset
25147               correctly for FlatStyle).
25148             * Fix border color usage (use backcolor) for FlatStyle.Popup
25149             * Use checkbox.Capture instead of checkbox.is_pressed when
25150               rendering flatstyle states.
25151
25152 2004-10-12 21:48  pbartok
25153
25154         * ThemeWin32Classic.cs:
25155           - Removed all occurences of SystemColors and replaced them with the
25156             matching theme color
25157
25158 2004-10-12 21:41  pbartok
25159
25160         * ThemeWin32Classic.cs:
25161           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
25162             him using the function for flatstyle drawing
25163           - Changed functions to use the new version of CPDrawBorder3D
25164
25165 2004-10-12 21:15  pbartok
25166
25167         * ControlPaint.cs:
25168           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
25169             match MS documentation. They need to return defined colors if the
25170             passed color matches the configured control color. Thanks to John
25171             BouAntoun for pointing this out.
25172
25173 2004-10-12 20:57  pbartok
25174
25175         * Control.cs:
25176           - Fix from John BouAntoun: Raise ForeColorChanged event when text
25177             color is changed
25178
25179 2004-10-12 20:46  pbartok
25180
25181         * CheckBox.cs:
25182           - Fix from John BouAntoun: Now properly sets the Appearance property
25183
25184 2004-10-12 20:45  pbartok
25185
25186         * ThemeWin32Classic.cs:
25187           - Fixes from John BouAntoun: now handles forecolors and backcolors
25188             for flatstyle rendered controls much better; It also fixes normal
25189             checkbox rendering when pushed or disabled.
25190
25191 2004-10-08 02:50  jordi
25192
25193         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
25194           work
25195
25196 2004-10-07 08:56  jordi
25197
25198         * ThemeWin32Classic.cs: Removes deletion of cached brushes
25199
25200 2004-10-06 03:59  jordi
25201
25202         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
25203           XplatUIWin32.cs: removes warnings from compilation
25204
25205 2004-10-05 12:23  jackson
25206
25207         * RadioButton.cs: Fix ctor
25208
25209 2004-10-05 11:10  pbartok
25210
25211         * MessageBox.cs:
25212           - Partial implementation by Benjamin Dasnois
25213
25214 2004-10-05 10:15  jackson
25215
25216         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
25217           by John BouAntoun
25218
25219 2004-10-05 03:07  ravindra
25220
25221         * ToolBar.cs:
25222                 - Removed a private method, Draw ().
25223                 - Fixed the ButtonDropDown event handling.
25224                 - Fixed MouseMove event handling.
25225
25226 2004-10-05 03:04  ravindra
25227
25228         * ThemeWin32Classic.cs:
25229                 - Added DrawListView method and ListViewDefaultSize property.
25230                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
25231                 - Changed DOS style CRLF to Unix format (dos2unix).
25232
25233 2004-10-05 03:03  ravindra
25234
25235         * Theme.cs:
25236                 - Added DrawListView method and ListViewDefaultSize property.
25237
25238 2004-10-05 02:42  ravindra
25239
25240         * ToolBarButton.cs: Added an internal member dd_pressed to handle
25241           clicks on DropDown arrow.
25242
25243 2004-10-04 22:56  jackson
25244
25245         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
25246           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
25247           Control handle the buffers, derived classes should not have to
25248           CreateBuffers themselves.
25249
25250 2004-10-04 21:20  jackson
25251
25252         * StatusBar.cs: The control handles resizing the buffers now.
25253
25254 2004-10-04 21:18  jackson
25255
25256         * Control.cs: When resizing the buffers should be invalidated. This
25257           should be handled in Control not in derived classes.
25258
25259 2004-10-04 14:45  jackson
25260
25261         * TabPage.cs: oops
25262
25263 2004-10-04 02:14  pbartok
25264
25265         * LeftRightAlignment.cs:
25266           - Initial check-in
25267
25268 2004-10-04 01:09  jordi
25269
25270         * ThemeWin32Classic.cs: fixes right button position causing right
25271           button not showing on horizontal scrollbars
25272
25273 2004-10-02 13:12  pbartok
25274
25275         * XplatUIX11.cs:
25276           - Simplified the Invalidate method by using an X call instead of
25277             generating the expose ourselves
25278           - Added an expose when the window background is changed
25279           - Implemented ClientToScreen method
25280
25281 2004-10-02 13:08  pbartok
25282
25283         * XplatUIWin32.cs:
25284           - Added Win32EnableWindow method (test for implementing modal
25285           dialogs)
25286           - Added ClientToScreen method and imports
25287
25288 2004-10-02 13:07  pbartok
25289
25290         * XplatUI.cs, XplatUIDriver.cs:
25291           - Added ClientToScreen coordinate translation method
25292
25293 2004-10-02 13:06  pbartok
25294
25295         * KeyPressEventArgs.cs:
25296           - Fixed access level for constructor
25297
25298 2004-10-02 13:06  pbartok
25299
25300         * NativeWindow.cs:
25301           - Changed access level for the window_collection hash table
25302
25303 2004-10-02 13:05  pbartok
25304
25305         * Form.cs:
25306           - Added KeyPreview property
25307           - Added Menu property (still incomplete, pending Jordi's menu work)
25308           - Implemented ProcessCmdKey
25309           - Implemented ProcessDialogKey
25310           - Implemented ProcessKeyPreview
25311
25312 2004-10-02 13:02  pbartok
25313
25314         * Control.cs:
25315           - Added private method to get the Control object from the window
25316           handle
25317           - Implemented ContextMenu property
25318           - Implemented PointToScreen
25319           - Implemented PreProcessMessage
25320           - Implemented IsInputChar
25321           - Implemented IsInputKey
25322           - Implemented ProcessCmdKey
25323           - Completed ProcessKeyEventArgs
25324           - Fixed message loop to call the proper chain of functions on key
25325           events
25326           - Implemented ProcessDialogChar
25327           - Implemented ProcessDialogKey
25328           - Implemented ProcessKeyMessage
25329           - Implemented ProcessKeyPreview
25330           - Added RaiseDragEvent stub (MS internal method)
25331           - Added RaiseKeyEvent stub (MS internal method)
25332           - Added RaiseMouseEvent stub (MS Internal method)
25333           - Added RaisePaintEvent stub (MS Internal method)
25334           - Added ResetMouseEventArgs stub (MS Internal method)
25335           - Implemented RtlTranslateAlignment
25336           - Implemented RtlTranslateContent
25337           - Implemented RtlTranslateHorizontal
25338           - Implemented RtlTranslateLeftRight
25339           - Added generation of KeyPress event
25340
25341 2004-10-02 05:57  ravindra
25342
25343         * ListViewItem.cs: Added attributes.
25344
25345 2004-10-02 05:32  ravindra
25346
25347         * ListView.cs: Added attributes.
25348
25349 2004-10-01 11:53  jackson
25350
25351         * Form.cs: Implement the Close method so work on MessageBox can
25352           continue.
25353
25354 2004-09-30 14:06  pbartok
25355
25356         * XplatUIX11.cs:
25357           - Bug fixes
25358
25359 2004-09-30 11:34  jackson
25360
25361         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
25362
25363 2004-09-30 07:26  ravindra
25364
25365         * ListViewItemConverter.cs: Converter for ListViewItem.
25366
25367 2004-09-30 07:26  ravindra
25368
25369         * SortOrder.cs: Enum for ListView control.
25370
25371 2004-09-30 07:25  ravindra
25372
25373         * ColumnHeader.cs: Supporting class for ListView control.
25374
25375 2004-09-30 07:24  ravindra
25376
25377         * ListView.cs, ListViewItem.cs: Initial implementation.
25378
25379 2004-09-30 07:20  ravindra
25380
25381         * ItemActivation.cs: Enum for ListView Control.
25382
25383 2004-09-29 20:29  pbartok
25384
25385         * XplatUIX11.cs:
25386           - Added lookup of pixel value for background color; tries to get a
25387             color 'close' to the requested color, it avoids having to create a
25388             colormap.  Depending on the display this could mean the used color
25389             is slightly off the desired color. Might have to change it to a more
25390             resource intensive colormap approach, but it will work as a
25391           workaround to avoid red screens.
25392
25393 2004-09-29 14:27  jackson
25394
25395         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
25396
25397 2004-09-28 12:44  pbartok
25398
25399         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
25400           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
25401           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
25402           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
25403           TrackBar.cs, VScrollBar.cs:
25404           - Streamlined Theme interfaces:
25405             * Each DrawXXX method for a control now is passed the object for
25406               the control to be drawn in order to allow accessing any state the
25407               theme might require
25408
25409             * ControlPaint methods for the theme now have a CP prefix to avoid
25410               name clashes with the Draw methods for controls
25411
25412             * Every control now retrieves it's DefaultSize from the current
25413             theme
25414
25415 2004-09-28 12:17  jackson
25416
25417         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
25418           drawing
25419
25420 2004-09-24 14:57  jackson
25421
25422         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
25423           Gives us a nice little performance boost.
25424
25425 2004-09-24 12:02  jackson
25426
25427         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
25428           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
25429           Control and supporting classes. Initial checkin
25430
25431 2004-09-23 13:08  jackson
25432
25433         * Form.cs: Temp build fixage
25434
25435 2004-09-23 01:39  ravindra
25436
25437         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
25438           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
25439           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
25440           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
25441           EventHandlers needed by ListView Control.
25442
25443 2004-09-22 14:12  pbartok
25444
25445         * ScrollableControl.cs:
25446           - Implemented DockPadding property
25447           - Implemented AutoScroll property
25448           - Implemented AutoScrollMargin property
25449           - Implemented AutoScrollMinSize property
25450           - Implemented AutoScrollPosition property
25451           - Implemented DisplayRectangle property (still incomplete)
25452           - Implemented CreateParams property
25453           - Implemented HScroll property
25454           - Implemented VScroll property
25455           - Implemented OnVisibleChanged property
25456
25457 2004-09-22 14:09  pbartok
25458
25459         * Form.cs:
25460           - Added Form.ControllCollection class
25461           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
25462             RemoveOwnedForm (still incomplete, missing on-top and common
25463             minimize/maximize behaviour)
25464           - Added StartPosition property (still incomplete, does not use when
25465             creating the form)
25466           - Added ShowDialog() methods (still incomplete, missing forcing the
25467             dialog modal)
25468
25469 2004-09-22 14:05  pbartok
25470
25471         * Application.cs:
25472           - Added message loop for modal dialogs
25473
25474 2004-09-22 14:02  pbartok
25475
25476         * GroupBox.cs:
25477           - Fixed wrong types for events
25478
25479 2004-09-22 14:00  pbartok
25480
25481         * Shortcut.cs, FormWindowState.cs:
25482           - Fixed wrong values
25483
25484 2004-09-22 12:01  jackson
25485
25486         * Control.cs: Text is never null
25487
25488 2004-09-20 22:14  pbartok
25489
25490         * XplatUIWin32.cs:
25491           - Fixed accessibility level for Idle handler
25492
25493 2004-09-20 18:54  jackson
25494
25495         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25496           XplatUIX11.cs: New message loop that uses poll so we don't get a
25497           busy loop
25498
25499 2004-09-17 10:43  pbartok
25500
25501         * ScrollBar.cs:
25502           - Fixed behaviour of arrow buttons. Now properly behaves like
25503             Buttons (and like Microsoft's scrollbar arrow buttons)
25504
25505 2004-09-17 10:14  pbartok
25506
25507         * ScrollBar.cs:
25508           - Added missing release of keyboard/mouse capture
25509
25510 2004-09-17 06:18  jordi
25511
25512         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
25513           Theme.cs: Very early menu support
25514
25515 2004-09-16 17:45  pbartok
25516
25517         * XplatUIWin32.cs:
25518           - Fixed sending a window to the front
25519           - Added overload for SetWindowPos to avoid casting
25520
25521 2004-09-16 17:44  pbartok
25522
25523         * Control.cs:
25524           - Added SendToBack and BringToFront methods
25525
25526 2004-09-16 07:00  ravindra
25527
25528         * Copyright: Added Novell URL.
25529
25530 2004-09-16 07:00  ravindra
25531
25532         * ToolBar.cs: Invalidate should be done before redrawing.
25533
25534 2004-09-15 21:19  ravindra
25535
25536         * ColumnHeaderStyle.cs: Enum for ListView Control.
25537
25538 2004-09-15 21:18  ravindra
25539
25540         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
25541           ListView Control.
25542
25543 2004-09-13 18:26  jackson
25544
25545         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
25546           properly
25547
25548 2004-09-13 18:13  jackson
25549
25550         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
25551           a second thread and post messages into the main threads message
25552           queue. This makes timing much more consistent. Both win2K and XP
25553           have a minimum timer value of 15 milliseconds, so we now do this
25554           too.
25555
25556 2004-09-13 15:18  pbartok
25557
25558         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25559           XplatUIX11.cs:
25560           - Added Z-Ordering methods
25561
25562 2004-09-13 10:56  pbartok
25563
25564         * Form.cs:
25565           - Fixed #region names
25566           - Moved properties and methods into their proper #regions
25567
25568 2004-09-13 10:51  pbartok
25569
25570         * Form.cs:
25571           - Added Accept and CancelButton properties
25572           - Added ProcessDialogKey() method
25573
25574 2004-09-13 08:18  pbartok
25575
25576         * IWindowTarget.cs:
25577           - Initial check-in
25578
25579 2004-09-10 21:50  pbartok
25580
25581         * Control.cs:
25582           - Added DoDragDrop() [incomplete]
25583           - Properly implemented 'Visible' handling
25584           - Added SetVisibleCore()
25585           - Implemented FindChildAtPoint()
25586           - Implemented GetContainerControl()
25587           - Implemented Hide()
25588
25589 2004-09-10 19:28  pbartok
25590
25591         * Control.cs:
25592           - Moved methods into their appropriate #regions
25593           - Reordered methods within regions alphabetically
25594
25595 2004-09-10 18:57  pbartok
25596
25597         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25598           - Added method to retrieve text from window
25599
25600 2004-09-10 18:56  pbartok
25601
25602         * Control.cs:
25603           - Moved some internal functions into the internal region
25604           - Implemented FontHeight
25605           - Implemented RenderRightToLeft
25606           - Implemented ResizeRedraw
25607           - Implemented ShowFocusCues
25608           - Implemented ShowKeyboardCues
25609           - Implemented FromChildHandle
25610           - Implemented FromHandle
25611           - Implemented IsMnemonic
25612           - Implemented ReflectMessage
25613           - All public and protected Static Methods are now complete
25614
25615 2004-09-10 16:54  pbartok
25616
25617         * Control.cs:
25618           - Implemented remaining missing public instance properties
25619           - Alphabetized some out of order properties
25620
25621 2004-09-10 05:51  ravindra
25622
25623         * PictureBox.cs: Added a check for null image.
25624
25625 2004-09-10 00:59  jordi
25626
25627         * GroupBox.cs: remove cvs tag
25628
25629 2004-09-09 05:25  ravindra
25630
25631         * ToolBar.cs: Make redraw accessible from ToolBarButton.
25632
25633 2004-09-09 05:23  ravindra
25634
25635         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
25636           parent redraw.
25637
25638 2004-09-09 02:28  pbartok
25639
25640         * ThemeWin32Classic.cs:
25641           - Improve disabled string look
25642
25643 2004-09-09 01:15  jordi
25644
25645         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
25646           args and handler
25647
25648 2004-09-08 23:56  ravindra
25649
25650         * ItemBoundsPortion.cs: It's enum, not a class!
25651
25652 2004-09-08 23:47  ravindra
25653
25654         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
25655           Enums for Form.
25656
25657 2004-09-08 21:13  ravindra
25658
25659         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
25660           ListView control.
25661
25662 2004-09-08 21:03  ravindra
25663
25664         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
25665           avoid crash.
25666
25667 2004-09-08 21:01  ravindra
25668
25669         * ScrollableControl.cs: Removed unreachable code.
25670
25671 2004-09-08 06:45  jordi
25672
25673         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
25674
25675 2004-09-08 01:00  jackson
25676
25677         * XplatUIX11.cs: Only run the timers when updating the message
25678           queue. This effectively gives X messages a higher priority then
25679           timer messages. Timers still need love though
25680
25681 2004-09-07 14:01  jackson
25682
25683         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
25684           this for us and the handle is no longer valid.
25685
25686 2004-09-07 13:59  jackson
25687
25688         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
25689           loop that manages to not crash. TODO: Add poll and cleanup timers
25690
25691 2004-09-07 11:12  jordi
25692
25693         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
25694
25695 2004-09-07 03:40  jordi
25696
25697         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
25698           fixes, methods, multiple links
25699
25700 2004-09-06 06:55  jordi
25701
25702         * Control.cs: Caches ClientRectangle rectangle value
25703
25704 2004-09-05 02:03  jordi
25705
25706         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
25707           certain situations
25708
25709 2004-09-04 11:10  jordi
25710
25711         * Label.cs: Refresh when font changed
25712
25713 2004-09-02 16:24  pbartok
25714
25715         * Control.cs:
25716           - Added sanity check to creation of double buffer bitmap
25717
25718 2004-09-02 16:24  pbartok
25719
25720         * ButtonBase.cs:
25721           - Fixed selection of text color
25722           - Fixed handling of resize event; now properly recreates double
25723             buffering bitmap
25724           - Added missing assignment of TextAlignment
25725           - Added proper default for TextAlignment
25726
25727 2004-09-02 14:26  pbartok
25728
25729         * RadioButton.cs:
25730           - Added missing RadioButton.RadioButtonAccessibleObject class
25731
25732 2004-09-02 14:26  pbartok
25733
25734         * Control.cs:
25735           - Added missing Control.ControlAccessibleObject class
25736           - Started to implement Select()ion mechanisms, still very incomplete
25737
25738 2004-09-02 14:25  pbartok
25739
25740         * AccessibleObject.cs:
25741           - Added missing methods
25742
25743 2004-09-02 14:23  pbartok
25744
25745         * AccessibleNavigation.cs, AccessibleSelection.cs:
25746           - Initial check-in
25747
25748 2004-09-02 10:32  jordi
25749
25750         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
25751           pool for pens, brushes, and hatchbruses
25752
25753 2004-09-01 15:30  jackson
25754
25755         * StatusBar.cs: Fix typo
25756
25757 2004-09-01 14:44  pbartok
25758
25759         * RadioButton.cs:
25760           - Fixed state
25761
25762 2004-09-01 14:39  pbartok
25763
25764         * Button.cs, RadioButton.cs:
25765           - Functional initial check-in
25766
25767 2004-09-01 14:01  pbartok
25768
25769         * CheckBox.cs:
25770           - Added missing default
25771           - Added missing region mark
25772
25773 2004-09-01 09:10  jordi
25774
25775         * Label.cs: fixes method signatures, new methods, events, fixes
25776           autosize
25777
25778 2004-09-01 07:19  jordi
25779
25780         * Control.cs: Init string variables with an empty object
25781
25782 2004-09-01 04:20  jordi
25783
25784         * Control.cs: fires OnFontChanged event
25785
25786 2004-08-31 20:07  pbartok
25787
25788         * ButtonBase.cs:
25789           - Enabled display of strings
25790
25791 2004-08-31 20:05  pbartok
25792
25793         * Form.cs:
25794           - Added (partial) implementation of DialogResult; rest needs to be
25795             implemented when the modal loop code is done
25796
25797 2004-08-31 19:55  pbartok
25798
25799         * CheckBox.cs:
25800           - Fixed to match the removal of the needs_redraw concept
25801
25802 2004-08-31 19:55  pbartok
25803
25804         * ButtonBase.cs:
25805           - Removed the rather odd split between 'needs redraw' and redrawing
25806           - Now handles the events that require regeneration (ambient
25807             properties and size)
25808
25809 2004-08-31 19:41  pbartok
25810
25811         * Control.cs:
25812           - Added firing of BackColorChanged event
25813           - Added TopLevelControl property
25814           - Fixed handling of WM_ERASEBKGRND message
25815
25816 2004-08-31 12:49  pbartok
25817
25818         * ButtonBase.cs:
25819           - Removed debug
25820           - Minor fixes
25821
25822 2004-08-31 12:48  pbartok
25823
25824         * CheckBox.cs:
25825           - Finished (famous last words)
25826
25827 2004-08-31 04:35  jordi
25828
25829         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
25830           scrolling bugs, adds new methods
25831
25832 2004-08-30 14:42  pbartok
25833
25834         * CheckBox.cs:
25835           - Implemented CheckBox drawing code
25836
25837 2004-08-30 14:42  pbartok
25838
25839         * ButtonBase.cs:
25840           - Made Redraw() and CheckRedraw() virtual
25841           - Improved mouse up/down/move logic to properly track buttons
25842
25843 2004-08-30 09:44  pbartok
25844
25845         * CheckBox.cs:
25846           - Updated to fix broken build. Not complete yet.
25847
25848 2004-08-30 09:28  pbartok
25849
25850         * CheckState.cs:
25851           - Initial checkin
25852
25853 2004-08-30 09:17  pbartok
25854
25855         * Appearance.cs:
25856           - Initial check-in
25857
25858 2004-08-27 16:12  ravindra
25859
25860         * ToolBarButton.cs: Added TypeConverter attribute.
25861
25862 2004-08-27 16:07  ravindra
25863
25864         * ImageIndexConverter.cs: Implemented.
25865
25866 2004-08-27 14:17  pbartok
25867
25868         * Control.cs:
25869           - Removed unneeded stack vars
25870           - First attempt to fix sizing issues when layout is suspended
25871
25872 2004-08-25 15:35  jordi
25873
25874         * ScrollBar.cs: more fixes to scrollbar
25875
25876 2004-08-25 14:04  ravindra
25877
25878         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
25879           Added the missing divider code and grip for ToolBar Control.
25880
25881 2004-08-25 13:20  pbartok
25882
25883         * Control.cs:
25884           - Control now properly passes the ambient background color to child
25885             controls
25886
25887 2004-08-25 13:20  jordi
25888
25889         * ScrollBar.cs: small bug fix regarding bar position
25890
25891 2004-08-25 12:33  pbartok
25892
25893         * Timer.cs:
25894           - Now only calls SetTimer or KillTimer if the enabled state has
25895           changed
25896
25897 2004-08-25 12:33  pbartok
25898
25899         * XplatUIWin32.cs:
25900           - Fixed timer handling, now seems to work
25901           - Improved error message for window creation
25902
25903 2004-08-25 12:32  pbartok
25904
25905         * Control.cs:
25906           - Fixed generation of MouseUp message
25907
25908 2004-08-25 12:29  jordi
25909
25910         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
25911           and fixes for progressbar
25912
25913 2004-08-24 18:43  ravindra
25914
25915         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
25916           in ToolBar control.
25917
25918 2004-08-24 17:15  pbartok
25919
25920         * Panel.cs:
25921           - Added #region
25922           - Added missing events
25923           - Alphabetized
25924
25925 2004-08-24 17:14  pbartok
25926
25927         * StatusBar.cs, PictureBox.cs:
25928           - Now uses Control's CreateParams
25929
25930 2004-08-24 16:36  pbartok
25931
25932         * XplatUIX11.cs:
25933           - Fixed background color handling
25934           - Fixed sending of enter/leave events on a grab
25935
25936 2004-08-24 16:35  pbartok
25937
25938         * X11Structs.cs:
25939           - Refined definitions for CrossingEvent
25940
25941 2004-08-24 12:37  jordi
25942
25943         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
25944           formmating, methods signature, and adds missing events
25945
25946 2004-08-24 12:24  jordi
25947
25948         * Control.cs: fire OnEnabledChanged event
25949
25950 2004-08-24 11:17  pbartok
25951
25952         * XplatUIWin32.cs:
25953           - Implemented SetTimer() and KillTimer()
25954
25955 2004-08-24 11:16  pbartok
25956
25957         * XplatUIX11.cs:
25958           - Now uses Remove instead of Add to kill the timer
25959
25960 2004-08-24 10:16  jackson
25961
25962         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
25963           picture boxes in the theme now. Draw picture box borders and obey
25964           sizing modes
25965
25966 2004-08-24 05:49  jackson
25967
25968         * Timer.cs: Remove top secret debugging code
25969
25970 2004-08-24 05:34  jackson
25971
25972         * PictureBox.cs: Temp hack to make picture boxes draw their full
25973           image
25974
25975 2004-08-24 05:29  jackson
25976
25977         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25978           XplatUIX11.cs: Move timers to the driver level. On X they are
25979           queued by the driver and checked on idle.
25980
25981 2004-08-24 01:07  jackson
25982
25983         * XplatUIX11.cs: Use a queue for async messages instead of passing
25984           them as ClientMessages since that was totally broken. Also simply
25985           check for events and return an idle message if none are found. This
25986           gives us an idle handler, and prevents deadlocking when no messages
25987           are in the queue.
25988
25989 2004-08-23 18:19  ravindra
25990
25991         * XplatUIWin32.cs: Removed the unwanted destructor.
25992
25993 2004-08-23 17:27  pbartok
25994
25995         * ButtonBase.cs:
25996           - Finishing touches. Works now, just needs some optimizations.
25997
25998 2004-08-23 16:53  jordi
25999
26000         * ScrollBar.cs: small fix
26001
26002 2004-08-23 16:45  pbartok
26003
26004         * Application.cs:
26005           - Removed debug output
26006           - Simplifications
26007
26008 2004-08-23 16:43  jordi
26009
26010         * ScrollBar.cs: [no log message]
26011
26012 2004-08-23 16:10  pbartok
26013
26014         * Form.cs:
26015           - Fixed handling of WM_CLOSE message
26016           - Removed debug output
26017
26018 2004-08-23 16:09  pbartok
26019
26020         * Application.cs:
26021           - Added handling of Idle event
26022           - Added handling of form closing
26023           - Fixed reporting of MessageLoop property
26024           - Removed some unneeded code, should provide a bit of a speedup
26025
26026 2004-08-23 15:22  pbartok
26027
26028         * Control.cs:
26029           - Added InitLayout() method
26030           - Added code to properly perform layout when Anchor or Dock property
26031             is changed
26032           - Changed 'interpretation' of ResumeLayout. MS seems to have a
26033             LAMESPEC, tried to do it in a way that makes sense
26034
26035 2004-08-23 14:10  jordi
26036
26037         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
26038           properties and methods
26039
26040 2004-08-23 13:55  pbartok
26041
26042         * Control.cs:
26043           - Properly fixed Jordi's last fix
26044           - Now uses Cursor's Position property instead of calling XplatUI
26045           directly
26046
26047 2004-08-23 13:44  jordi
26048
26049         * PaintEventHandler.cs: Adding missing attribute
26050
26051 2004-08-23 13:39  pbartok
26052
26053         * Cursor.cs:
26054           - Implemented Position property
26055
26056 2004-08-23 13:39  pbartok
26057
26058         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26059           - Added method to move mouse cursor
26060
26061 2004-08-23 13:39  pbartok
26062
26063         * XplatUIX11.cs:
26064           - Fixed setting of background color
26065           - Added method to move mouse cursor
26066
26067 2004-08-23 13:16  jordi
26068
26069         * Control.cs: avoids null exception
26070
26071 2004-08-22 17:46  jackson
26072
26073         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
26074           PictureBox
26075
26076 2004-08-22 17:40  jackson
26077
26078         * XplatUIX11.cs: Add some missing locks
26079
26080 2004-08-22 15:10  pbartok
26081
26082         * Control.cs, Form.cs:
26083           - Removed OverlappedWindow style from Control, instead it's default
26084             now is child
26085           - Made form windows OverlappedWindow by default
26086
26087 2004-08-22 13:34  jackson
26088
26089         * ScrollBar.cs: Update the position through the Value property so
26090           the OnValueChanged event is raised.
26091
26092 2004-08-22 12:04  pbartok
26093
26094         * SWF.csproj:
26095           - Added Cursor.cs and UserControl.cs
26096
26097 2004-08-22 12:03  pbartok
26098
26099         * Cursor.cs:
26100           - Started implementation, not usable yet
26101
26102 2004-08-22 12:00  pbartok
26103
26104         * UserControl.cs:
26105           - Implemented UserControl (complete)
26106
26107 2004-08-21 19:20  ravindra
26108
26109         * ToolBar.cs: Correcting the formatting mess of VS.NET.
26110
26111 2004-08-21 18:49  ravindra
26112
26113         * ToolBar.cs: Probably this completes the missing attributes in
26114           toolbar control.
26115
26116 2004-08-21 18:03  ravindra
26117
26118         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
26119           Fixed toolbar control signatures.
26120
26121 2004-08-21 16:32  pbartok
26122
26123         * LinkLabel.cs:
26124           - Signature Fixes
26125
26126 2004-08-21 16:30  pbartok
26127
26128         * Label.cs:
26129           - Signature fixes
26130
26131 2004-08-21 16:19  pbartok
26132
26133         * Control.cs, Label.cs:
26134           - Signature fixes
26135
26136 2004-08-21 15:57  pbartok
26137
26138         * ButtonBase.cs:
26139           - Added loads of debug output for development
26140           - Fixed typo in method name
26141
26142 2004-08-21 15:52  pbartok
26143
26144         * ToolBarButtonClickEventArgs.cs:
26145           - Added missing base class
26146
26147 2004-08-21 14:53  pbartok
26148
26149         * Control.cs:
26150           - Updated to match new GrabWindow signature
26151
26152 2004-08-21 14:51  pbartok
26153
26154         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26155           - Added method to get default display size
26156
26157 2004-08-21 14:23  pbartok
26158
26159         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26160           - Added method to query current grab state
26161           - Added argument to allow confining a grab to a window
26162
26163 2004-08-21 14:22  pbartok
26164
26165         * Keys.cs:
26166           - Added [Flags] attribute so that modifiers can be used in bitwise
26167           ops
26168
26169 2004-08-21 14:21  pbartok
26170
26171         * TrackBar.cs, ScrollBar.cs:
26172           - Replaced direct XplatUI calls with their Control counterpart
26173
26174 2004-08-21 13:32  pbartok
26175
26176         * Control.cs:
26177           - Implemented Created property
26178
26179 2004-08-21 13:28  pbartok
26180
26181         * Control.cs:
26182           - Implemented ContainsFocus
26183
26184 2004-08-21 13:26  pbartok
26185
26186         * Control.cs:
26187           - Implemented CausesValidation
26188
26189 2004-08-21 13:21  pbartok
26190
26191         * Control.cs:
26192           - Implemented CanFocus
26193           - Implemented CanSelect
26194           - Implemented Capture
26195
26196 2004-08-21 12:35  pbartok
26197
26198         * XplatUIWin32.cs:
26199           - Fixed bug with Async message handling
26200           - Implemented getting the ModifierKeys
26201
26202 2004-08-21 12:32  jackson
26203
26204         * AsyncMethodResult.cs: Make sure we have the mutex before we
26205           release it. Fixes BeginInvoke on windows
26206
26207 2004-08-21 11:31  pbartok
26208
26209         * XplatUIWin32.cs, XplatUIX11.cs:
26210           - Drivers now return proper mouse state
26211
26212 2004-08-21 10:54  jackson
26213
26214         * Control.cs: Implement EndInvoke
26215
26216 2004-08-21 10:48  jackson
26217
26218         * Timer.cs: Remove unneeded finalizer
26219
26220 2004-08-20 19:52  ravindra
26221
26222         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
26223           in mouse event handling in the ToolBar control.
26224
26225 2004-08-20 19:50  ravindra
26226
26227         * ImageList.cs: Changed draw method to use the arguments passed in
26228           to draw the image.
26229
26230 2004-08-20 18:58  pbartok
26231
26232         * XplatUIStructs.cs:
26233           - Added private message for async communication
26234
26235 2004-08-20 17:38  ravindra
26236
26237         * Control.cs: Made RightToLeft property virtual and removed a
26238           Console.WriteLine.
26239
26240 2004-08-20 14:39  jordi
26241
26242         * ThemeGtk.cs: use style_attach
26243
26244 2004-08-20 14:39  pbartok
26245
26246         * XplatUIWin32.cs:
26247           - Added jackson's Async code from X11 to Win32
26248
26249 2004-08-20 14:09  pbartok
26250
26251         * SWF.csproj:
26252           - Added all new files
26253
26254 2004-08-20 14:09  pbartok
26255
26256         * Control.cs:
26257           - Added call to set window background color
26258
26259 2004-08-20 14:03  pbartok
26260
26261         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26262           - Added method for setting the window background
26263
26264 2004-08-20 14:02  pbartok
26265
26266         * XplatUIWin32.cs:
26267           - Added method for setting the background color
26268           - Added handling for erasing the window background
26269
26270 2004-08-20 13:45  jordi
26271
26272         * TrackBar.cs: fixes timer, new properties and methods
26273
26274 2004-08-20 13:34  jackson
26275
26276         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
26277           correct thread
26278
26279 2004-08-20 13:22  jackson
26280
26281         * Timer.cs: Timer Tick events are now handed through Controls Async
26282           mechanism so the callbacks are executed in the same thread as X
26283
26284 2004-08-20 13:19  jackson
26285
26286         * XplatUIDriver.cs: Expose functionality to send async messages
26287           through the driver
26288
26289 2004-08-20 13:18  jackson
26290
26291         * Control.cs: Implement Begininvoke
26292
26293 2004-08-20 13:14  jackson
26294
26295         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
26296           messages through the driver
26297
26298 2004-08-20 13:12  jackson
26299
26300         * XplatUIX11.cs: Lock before all X operations. Also added Async
26301           method functionality through XSendEvent
26302
26303 2004-08-20 13:11  jackson
26304
26305         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
26306           This will screw up on 64 bit systems)
26307
26308 2004-08-20 13:10  jackson
26309
26310         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
26311           Async messages through X/Win32
26312
26313 2004-08-19 19:39  pbartok
26314
26315         * XplatUIX11.cs:
26316           - Updated code to match new HandleData.DeviceContext type
26317
26318 2004-08-19 19:38  pbartok
26319
26320         * HandleData.cs:
26321           - Made DeviceContext a generic object to allow usage from various
26322           drivers
26323           - Added support for queueing Windows messages
26324
26325 2004-08-19 19:37  pbartok
26326
26327         * XplatUIWin32.cs:
26328           - Added generation of MouseEnter, MouseLeave and MouseHover events
26329           - Added cleanup on EndPaint
26330
26331 2004-08-19 19:17  pbartok
26332
26333         * Control.cs:
26334           - Added handling of WM_MOUSEHOVER
26335           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
26336           code
26337
26338 2004-08-19 18:55  jordi
26339
26340         * ThemeGtk.cs: fixes button order
26341
26342 2004-08-19 18:12  jordi
26343
26344         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
26345
26346 2004-08-19 17:09  pbartok
26347
26348         * Control.cs:
26349           - Added Right property
26350           - Added RightToLeft property
26351
26352 2004-08-19 16:27  jordi
26353
26354         * ThemeGtk.cs: experimental GTK theme support
26355
26356 2004-08-19 16:26  jordi
26357
26358         * ITheme.cs, Theme.cs: move themes from an interface to a class
26359
26360 2004-08-19 16:25  jordi
26361
26362         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
26363           theme enhancaments
26364
26365 2004-08-19 16:04  pbartok
26366
26367         * XplatUIX11.cs:
26368           - Added colormap basics
26369           - Added a way to re-initialize with a different display handle
26370           - Fixed setting of the window background color
26371           - Added various X11 imports related to colors and colormaps
26372
26373 2004-08-19 15:51  pbartok
26374
26375         * X11Structs.cs:
26376           - Removed packing hints (Paolo suggested this a while back)
26377           - fixed colormap type
26378           - Added default Atom types
26379           - Added Screen and color structs and enums
26380
26381 2004-08-19 15:39  pbartok
26382
26383         * ImageList.cs:
26384           - Added missing Draw() method
26385           - Added missing RecreateHandle event
26386
26387 2004-08-19 15:30  pbartok
26388
26389         * Form.cs:
26390           - Added handling of WM_CLOSE
26391
26392 2004-08-18 13:16  jordi
26393
26394         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
26395           a table
26396
26397 2004-08-18 09:56  jordi
26398
26399         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
26400
26401 2004-08-17 15:31  ravindra
26402
26403         * SWF.csproj: Updated project.
26404
26405 2004-08-17 15:25  pbartok
26406
26407         * Control.cs:
26408           - Drawing improvement; don't call UpdateBounds if we are not visible
26409             (or have been minimized)
26410
26411 2004-08-17 15:24  pbartok
26412
26413         * XplatUIWin32.cs:
26414           - Finished IsVisible
26415           - Added Win32GetWindowPlacement
26416
26417 2004-08-17 15:08  jackson
26418
26419         * Panel.cs: Initial checkin of the Panel
26420
26421 2004-08-17 14:25  pbartok
26422
26423         * Control.cs:
26424           - Fixed broken handling of default window sizes
26425
26426 2004-08-17 13:29  jackson
26427
26428         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
26429           has a large startup time.
26430
26431 2004-08-17 10:25  jackson
26432
26433         * HandleData.cs: union areas properly
26434
26435 2004-08-17 10:12  jackson
26436
26437         * HandleData.cs: union areas properly
26438
26439 2004-08-16 20:00  ravindra
26440
26441         * ToolBar.cs, ToolBarButton.cs: Added attributes.
26442
26443 2004-08-16 18:48  ravindra
26444
26445         * ToolBar.cs: Added attributes.
26446
26447 2004-08-16 17:17  ravindra
26448
26449         * SWF.csproj: Updated project.
26450
26451 2004-08-16 17:16  jackson
26452
26453         * XplatUIX11.cs: Check for more expose events before sending a
26454           WM_PAINT so they can all be grouped together. This makes dragging a
26455           window across another window redraw in a sane way.
26456
26457 2004-08-16 15:47  pbartok
26458
26459         * Control.cs:
26460           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
26461             support OnMouseEnter/Leave()
26462           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
26463             exposure handling
26464
26465 2004-08-16 15:46  pbartok
26466
26467         * XplatUIStructs.cs, XplatUIX11.cs:
26468           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
26469           OnMouseEnter/Leave()
26470
26471 2004-08-16 15:34  jackson
26472
26473         * XplatUIX11.cs: Group multiple expose events in HandleData, make
26474           sure messages get the message field set to WM_NULL if they are not
26475           handled.
26476
26477 2004-08-16 15:24  jackson
26478
26479         * HandleData.cs: HandleData is used for storing message information
26480           for window handles
26481
26482 2004-08-15 17:23  ravindra
26483
26484         * ColorDepth.cs: Added attribute.
26485
26486 2004-08-15 17:23  ravindra
26487
26488         * SWF.csproj: Updated project for ToolBar Control.
26489
26490 2004-08-15 17:20  ravindra
26491
26492         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
26493           control and also dos2unix format.
26494
26495 2004-08-15 17:13  ravindra
26496
26497         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
26498           ToolBarButtonClickEventArgs.cs,
26499           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
26500           ToolBarTextAlign.cs: First Implementation of ToolBar control.
26501
26502 2004-08-15 15:31  pbartok
26503
26504         * ButtonBase.cs:
26505           - First (mostly) working version
26506
26507 2004-08-13 16:15  pbartok
26508
26509         * Control.cs:
26510           - Fixed Anchor default
26511
26512 2004-08-13 15:43  pbartok
26513
26514         * Control.cs:
26515           - Changed GetCursorPos signature
26516
26517 2004-08-13 15:42  pbartok
26518
26519         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26520           - Changed signature for GetCursorPos
26521
26522 2004-08-13 15:25  pbartok
26523
26524         * XplatUIX11.cs:
26525           - Cleanup
26526           - Fixed resizing/exposure handling
26527
26528 2004-08-13 15:22  jordi
26529
26530         * ThemeWin32Classic.cs: removes redundant code and fixes issues
26531           with tickposition
26532
26533 2004-08-13 14:55  jordi
26534
26535         * TrackBar.cs: change from wndproc to events
26536
26537 2004-08-13 13:00  jordi
26538
26539         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26540           XplatUIX11.cs: implements PointToClient (ScreenToClient)
26541
26542 2004-08-13 12:53  pbartok
26543
26544         * XplatUIWin32.cs:
26545           - Changed GetWindowPos to also provide client area size
26546           - Fixed broken prototypes for several win32 functions
26547
26548 2004-08-13 12:53  pbartok
26549
26550         * XplatUI.cs, XplatUIDriver.cs:
26551           - Changed GetWindowPos to also provide client area size
26552
26553 2004-08-13 12:52  pbartok
26554
26555         * XplatUIX11.cs:
26556           - Added generation of WM_POSCHANGED
26557           - Changed GetWindowPos to also provide client area size
26558
26559 2004-08-13 12:52  pbartok
26560
26561         * Control.cs:
26562           - Added Dispose() and destructor
26563           - Fixed resizing and bounds calculation
26564           - Fixed Layout
26565           - Added memory savings for invisible windows
26566
26567 2004-08-13 12:46  jordi
26568
26569         * TrackBar.cs: adds timer and grap window
26570
26571 2004-08-13 10:25  jackson
26572
26573         * Timer.cs: SWF Timer
26574
26575 2004-08-12 16:59  pbartok
26576
26577         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26578           - Implemented method to get current mouse position
26579
26580 2004-08-12 14:29  jordi
26581
26582         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
26583           enhancement, fix mouse problems, highli thumb, etc
26584
26585 2004-08-12 13:31  pbartok
26586
26587         * Control.cs:
26588           - Fixed Anchoring bugs
26589
26590 2004-08-12 13:01  jackson
26591
26592         * StatusBar.cs: Don't forget things
26593
26594 2004-08-12 12:54  jackson
26595
26596         * ThemeWin32Classic.cs: Handle owner draw status bars
26597
26598 2004-08-12 12:54  jackson
26599
26600         * StatusBar.cs: Implement missing properties, events, and methods.
26601           Handle mouse clicking
26602
26603 2004-08-12 10:19  jackson
26604
26605         * StatusBarPanelClickEventArgs.cs,
26606           StatusBarPanelClickEventHandler.cs: Classes for handling status
26607           bar panel click events
26608
26609 2004-08-12 10:10  jackson
26610
26611         * Control.cs: Add missing properties
26612
26613 2004-08-12 09:46  pbartok
26614
26615         * BindingsManagerBase.cs:
26616           - Name changed to BindingManagerBase.cs
26617
26618 2004-08-12 09:25  jordi
26619
26620         * ScrollableControl.cs: calls ctrlbase instead of exeception
26621
26622 2004-08-11 16:28  pbartok
26623
26624         * InputLanguageChangingEventArgs.cs:
26625           - Never check in before compiling. Fixes the last check-in
26626
26627 2004-08-11 16:26  pbartok
26628
26629         * InputLanguageChangingEventArgs.cs:
26630           - More signature fixes
26631
26632 2004-08-11 16:20  pbartok
26633
26634         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
26635           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
26636           ImageListStreamer.cs, InputLanguage.cs,
26637           InputLanguageChangedEventArgs.cs,
26638           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
26639           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
26640           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
26641           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26642           - Signature fixes
26643
26644 2004-08-11 16:16  pbartok
26645
26646         * Application.cs:
26647           - Fixed Signature
26648           - Added .Net 1.1 method
26649
26650 2004-08-11 15:25  pbartok
26651
26652         * SWF.csproj:
26653           - Fixed BindingManagerBase.cs filename
26654
26655 2004-08-11 15:22  pbartok
26656
26657         * BindingManagerBase.cs:
26658           - Was checked in with wrong filename
26659
26660 2004-08-11 14:50  pbartok
26661
26662         * SWF.csproj:
26663           - Updated
26664
26665 2004-08-11 13:41  jordi
26666
26667         * XplatUIWin32.cs: Fixes ClientRect
26668
26669 2004-08-11 13:19  pbartok
26670
26671         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26672           XplatUIX11.cs:
26673           - We had SetWindowPos and MoveWindow to set window positions and
26674             size, removed MoveWindow. We have GetWindowPos, so it made sense to
26675             keep SetWindowPos as matching counterpart
26676           - Added some X11 sanity checking
26677
26678 2004-08-11 12:59  pbartok
26679
26680         * Control.cs:
26681           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
26682             (It seems that SetBounds is just a front for SetBoundsCore and
26683              SetBoundsCore updates the underlying window system and
26684              UpdateBounds is responsible for updating the variables associated
26685              with the Control and sending the events)
26686           - Major cleanup of Size handling; we now have two sizes, client_size
26687             and bounds. Bounds defines the window with decorations, client_size
26688             without them.
26689
26690 2004-08-11 12:55  pbartok
26691
26692         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26693           - Added method to calculate difference between decorated window and
26694             raw client area
26695
26696 2004-08-11 12:54  pbartok
26697
26698         * Label.cs:
26699           - Forcing redraw on resize
26700
26701 2004-08-11 11:43  pbartok
26702
26703         * ImageList.cs:
26704           - Removed disposing of the actual images when the list is disposed
26705
26706 2004-08-11 09:13  pbartok
26707
26708         * Control.cs:
26709           - Now properly reparents windows
26710
26711 2004-08-11 08:37  pbartok
26712
26713         * Control.cs:
26714           - Duh!
26715
26716 2004-08-11 07:47  pbartok
26717
26718         * Control.cs:
26719           - Rewrote the collection stuff. Might not be as fast now, not
26720             keeping the number of children around and accessible directly, but
26721             it's more straightforward
26722
26723 2004-08-11 07:44  pbartok
26724
26725         * AccessibleObject.cs:
26726           - Fixed to match ControlCollection rewrite
26727
26728 2004-08-11 07:43  pbartok
26729
26730         * ImageList.cs:
26731           - Added missing creation of the collection list
26732
26733 2004-08-10 20:08  jackson
26734
26735         * StatusBar.cs: Get the paint message from WndProc
26736
26737 2004-08-10 19:31  jackson
26738
26739         * ThemeWin32Classic.cs: Create Brushes as little as possible
26740
26741 2004-08-10 19:20  jackson
26742
26743         * UICues.cs: Add Flags attribute
26744
26745 2004-08-10 19:19  jackson
26746
26747         * StatusBarPanel.cs: Signature cleanup
26748
26749 2004-08-10 19:10  jackson
26750
26751         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
26752           Initial implementation of status bar item drawing
26753
26754 2004-08-10 17:27  jordi
26755
26756         * TrackBar.cs: add missing methods, properties, and restructure to
26757           hide extra ones
26758
26759 2004-08-10 16:24  jackson
26760
26761         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
26762           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
26763           attribute
26764
26765 2004-08-10 13:21  jordi
26766
26767         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
26768           enhancements and standarize on win colors defaults
26769
26770 2004-08-10 12:52  jackson
26771
26772         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
26773           ThemeWin32Classic.cs: Implement DrawItem functionality
26774
26775 2004-08-10 12:47  jordi
26776
26777         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
26778
26779 2004-08-10 12:32  jordi
26780
26781         * Control.cs: throw ontextchange event
26782
26783 2004-08-10 11:43  pbartok
26784
26785         * Control.cs:
26786           - Added more to the still unfinished Dock/Anchor layout code
26787
26788 2004-08-10 11:39  pbartok
26789
26790         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26791           - Added GetWindowPos method
26792
26793 2004-08-10 11:36  pbartok
26794
26795         * XplatUIWin32.cs:
26796           - Implemented several methods
26797
26798 2004-08-10 09:47  jackson
26799
26800         * TrackBar.cs: Allow control to handle buffering
26801
26802 2004-08-10 09:41  jackson
26803
26804         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
26805
26806 2004-08-10 09:24  jackson
26807
26808         * Label.cs, LinkLabel.cs: Let Control handle buffering.
26809
26810 2004-08-10 09:09  jackson
26811
26812         * StatusBar.cs: Let Control handle all the buffering.
26813
26814 2004-08-10 09:08  jackson
26815
26816         * Control.cs: Control will now handle the buffering code, so each
26817           control does not have to implement this.
26818
26819 2004-08-10 08:34  jackson
26820
26821         * XplatUIDriver.cs: Use default colors from the theme
26822
26823 2004-08-09 17:12  pbartok
26824
26825         * ImageList.cs:
26826           - Fixed several bugs Ravindra pointed out
26827
26828 2004-08-09 16:11  pbartok
26829
26830         * Control.cs:
26831           - Added incomplete dock layout code
26832           - Added support for mouse wheel
26833
26834 2004-08-09 16:09  pbartok
26835
26836         * XplatUIX11.cs:
26837           - Added handling for middle and right mousebutton
26838           - Added handling for mouse wheel
26839           - Added handling for key state and mouse state and position
26840           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
26841           messages
26842
26843 2004-08-09 15:40  jackson
26844
26845         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
26846           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
26847           checkin
26848
26849 2004-08-09 15:37  jackson
26850
26851         * StatusBar.cs: Initial implementation of StatusBar
26852
26853 2004-08-09 15:36  jackson
26854
26855         * ITheme.cs: Add support for drawing status bar and getting status
26856           bar item sizes
26857
26858 2004-08-09 15:35  pbartok
26859
26860         * MouseButtons.cs:
26861           - Fixed values
26862
26863 2004-08-09 15:34  jackson
26864
26865         * ThemeWin32Classic.cs: Add support for drawing status bar and get
26866           status bar item sizes
26867
26868 2004-08-09 15:21  jackson
26869
26870         * ThemeWin32Classic.cs: Use known colors for default control
26871           colours
26872
26873 2004-08-09 15:12  jackson
26874
26875         * ThemeWin32Classic.cs: Make the default font static, it is static
26876           in control so this doesn't change functionality and creating fonts
26877           is sloooooow.
26878
26879 2004-08-09 14:56  pbartok
26880
26881         * X11Structs.cs:
26882           - Added GrabMode enum
26883
26884 2004-08-09 14:55  pbartok
26885
26886         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26887           - Removed Run method, was only required for initial development
26888
26889 2004-08-09 14:51  pbartok
26890
26891         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26892           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
26893           capture
26894
26895 2004-08-09 13:48  pbartok
26896
26897         * XplatUIX11.cs:
26898           - Fixed default sizing for child windows
26899
26900 2004-08-09 12:56  pbartok
26901
26902         * XplatUIX11.cs:
26903           - Added generation of WM_DESTROY message
26904           - Added handling of window manager induced shutdown
26905
26906 2004-08-09 11:31  jackson
26907
26908         * ThemeWin32Classic.cs: New names for control properties
26909
26910 2004-08-09 11:25  jackson
26911
26912         * Control.cs: Use new color names
26913
26914 2004-08-09 11:02  jackson
26915
26916         * XplatUI.cs: Get default window properties from the theme
26917
26918 2004-08-09 11:01  jackson
26919
26920         * ITheme.cs: The theme engine now controls default window
26921           properties
26922
26923 2004-08-09 11:00  jackson
26924
26925         * ThemeWin32Classic.cs: Add default window color properties
26926
26927 2004-08-09 10:17  jackson
26928
26929         * ThemeWin32Classic.cs: Use correct default back color
26930
26931 2004-08-09 10:05  jackson
26932
26933         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
26934           the theme now.
26935
26936 2004-08-09 09:56  jackson
26937
26938         * XplatUI.cs: Remove defaults, these are handled by the theme now.
26939
26940 2004-08-09 09:54  jackson
26941
26942         * Control.cs: Get default properties from the theme.
26943
26944 2004-08-09 09:53  jackson
26945
26946         * ITheme.cs: Themes now handle default control properties
26947
26948 2004-08-09 09:53  jackson
26949
26950         * ThemeWin32Classic.cs: Themes now handle default control
26951           properties so coloring will be consistent
26952
26953 2004-08-08 16:54  jordi
26954
26955         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
26956
26957 2004-08-08 15:08  jordi
26958
26959         * XplatUIX11.cs: fixes keyboard crash
26960
26961 2004-08-08 13:47  jordi
26962
26963         * Label.cs: add cvs header info
26964
26965 2004-08-08 12:09  jackson
26966
26967         * ThemeWin32Classic.cs: Add pen_buttonface
26968
26969 2004-08-08 11:52  jordi
26970
26971         * Label.cs, LinkLabel.cs: [no log message]
26972
26973 2004-08-08 11:34  jordi
26974
26975         * ThemeWin32Classic.cs: Use Windows Standard Colours
26976
26977 2004-08-07 17:32  jordi
26978
26979         * TrackBar.cs: throw exceptions of invalid enums values
26980
26981 2004-08-07 17:31  jordi
26982
26983         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
26984           draw method name
26985
26986 2004-08-07 16:56  jackson
26987
26988         * HorizontalAlignment.cs: Initial checkin
26989
26990 2004-08-07 13:16  jordi
26991
26992         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
26993           methods
26994
26995 2004-08-07 13:05  jordi
26996
26997         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
26998           GetSysColor defines
26999
27000 2004-08-06 18:01  pbartok
27001
27002         * ThemeWin32Classic.cs:
27003           - Fixed some rounding issues with float/int
27004
27005 2004-08-06 18:00  jackson
27006
27007         * DockStyle.cs, AnchorStyles.cs:
27008
27009                   Add flags and serializable attributes.
27010
27011 2004-08-06 17:46  pbartok
27012
27013         * XplatUIX11.cs:
27014           - Implemented GetParent
27015
27016 2004-08-06 17:18  pbartok
27017
27018         * TrackBar.cs:
27019           - Fixed some rounding issues with float/int
27020
27021 2004-08-06 17:17  pbartok
27022
27023         * X11Structs.cs, XplatUIX11.cs:
27024           - Fixed Refresh and Invalidate
27025
27026 2004-08-06 15:30  pbartok
27027
27028         * Control.cs, X11Structs.cs, XplatUIX11.cs:
27029           - Fixed recursive loop when resizing
27030           - Improved/fixed redrawing on expose messages
27031
27032 2004-08-06 09:53  jordi
27033
27034         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
27035           keyboard navigation
27036
27037 2004-08-06 08:02  pbartok
27038
27039         * X11Structs.cs, XplatUIX11.cs:
27040           - Fixed reparenting
27041           - Fixed window border creation
27042
27043 2004-08-05 15:38  pbartok
27044
27045         * XplatUIX11.cs:
27046           - Attempted fix for reparenting problems
27047
27048 2004-08-04 15:14  pbartok
27049
27050         * Control.cs:
27051           - Fixed Invalidation bug (calculated wrong client area)
27052           - Added ClientSize setter
27053
27054 2004-08-04 15:13  pbartok
27055
27056         * Form.cs:
27057           - Added AutoScale properties
27058
27059 2004-08-04 15:13  pbartok
27060
27061         * SWF.csproj:
27062           - Added latest files
27063
27064 2004-08-04 14:11  pbartok
27065
27066         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
27067           XplatUIX11.cs:
27068           - Added Invalidate handling
27069
27070 2004-08-03 17:09  jordi
27071
27072         * XplatUIDriver.cs: fixes spelling mistake
27073
27074 2004-07-27 09:53  jordi
27075
27076         * TrackBar.cs: fixes trackbar events, def classname, methods
27077           signature
27078
27079 2004-07-27 09:29  jordi
27080
27081         * ScrollBar.cs: fixes scrollbar events
27082
27083 2004-07-27 04:38  jordi
27084
27085         * Control.cs: changes to be able to run winforms samples
27086
27087 2004-07-26 11:42  jordi
27088
27089         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
27090           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
27091
27092 2004-07-26 05:41  jordi
27093
27094         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
27095           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
27096           implementation
27097
27098 2004-07-22 09:22  jordi
27099
27100         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
27101           check link overlapping, implement events, and fixes
27102
27103 2004-07-21 10:28  jordi
27104
27105         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
27106
27107 2004-07-21 10:19  jordi
27108
27109         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
27110           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
27111           LinkLabelLinkClickedEventArgs.cs,
27112           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
27113           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
27114           implementation
27115
27116 2004-07-19 13:09  jordi
27117
27118         * Control.cs, Label.cs: label control re-written: added missing
27119           functionlity, events, and properties
27120
27121 2004-07-19 10:49  jordi
27122
27123         * Control.cs: fixes SetBounds logic
27124
27125 2004-07-19 01:29  jordi
27126
27127         * Control.cs: Call RefreshWindow only if the window has created
27128
27129 2004-07-15 14:05  pbartok
27130
27131         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
27132           - Implemented ImageList and ImageList.ImageCollection classes
27133           - Added ColorDepth enumeration
27134           - Updated SWF VS.Net project
27135
27136 2004-07-15 11:06  jordi
27137
27138         * XplatUIStructs.cs: added MsgButons enum
27139
27140 2004-07-15 11:03  jordi
27141
27142         * Control.cs: added basic mouse handeling events
27143
27144 2004-07-15 03:38  jordi
27145
27146         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
27147           Vertical TrackBar control implementation
27148
27149 2004-07-13 09:33  jordi
27150
27151         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
27152
27153 2004-07-13 09:31  jordi
27154
27155         * Control.cs, Form.cs: commit: new properties and fixes form size
27156           problems
27157
27158 2004-07-09 14:13  miguel
27159
27160         * ProgressBar.cs: Spelling
27161
27162 2004-07-09 11:25  pbartok
27163
27164         * ProgressBar.cs:
27165           - Removed usage of Rectangle for drawing. Miguel pointed out it's
27166           faster
27167
27168 2004-07-09 11:17  miguel
27169
27170         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
27171
27172                 * ProgressBar.cs: Fixed spelling for `block'
27173
27174                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
27175                 style guidelines.
27176
27177                 Avoid using the += on rect.X, that exposed a bug in the compiler.
27178
27179 2004-07-08 23:21  pbartok
27180
27181         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
27182           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
27183           BaseCollection.cs, Binding.cs, BindingContext.cs,
27184           BindingMemberInfo.cs, BindingsCollection.cs,
27185           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
27186           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
27187           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
27188           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
27189           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
27190           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
27191           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
27192           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
27193           FrameStyle.cs, GiveFeedbackEventArgs.cs,
27194           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
27195           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
27196           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
27197           InputLanguageChangedEventArgs.cs,
27198           InputLanguageChangedEventHandler.cs,
27199           InputLanguageChangingEventArgs.cs,
27200           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
27201           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
27202           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
27203           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
27204           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
27205           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
27206           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
27207           QueryAccessibilityHelpEventArgs.cs,
27208           QueryAccessibilityHelpEventHandler.cs,
27209           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
27210           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
27211           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
27212           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
27213           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
27214           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
27215           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
27216           XplatUIX11.cs, lang.cs:
27217           - Initial check-in
27218
27219